All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sweble.wikitext.lazy.encval.IllegalCodePoint Maven / Gradle / Ivy

There is a newer version: 3.1.9
Show newest version
/* 
 * This file is auto-generated.
 * DO NOT MODIFY MANUALLY!
 * 
 * Generated by AstNodeGenerator.
 * Last generated: 2014-09-12 00:37:37.
 */

package org.sweble.wikitext.lazy.encval;

import de.fau.cs.osr.ptk.common.ast.*;




/**
 * 

Encoding Validator

*/ public class IllegalCodePoint extends LeafNode { private static final long serialVersionUID = 1L; // ========================================================================= public IllegalCodePoint() { super(); } public IllegalCodePoint(String codePoint, IllegalCodePointType type) { super(); setCodePoint(codePoint); setType(type); } @Override public int getNodeType() { return org.sweble.wikitext.lazy.AstNodeTypes.NT_ILLEGAL_CODE_POINT; } // ========================================================================= // Properties private String codePoint; public final String getCodePoint() { return this.codePoint; } public final String setCodePoint(String codePoint) { String old = this.codePoint; this.codePoint = codePoint; return old; } private IllegalCodePointType type; public final IllegalCodePointType getType() { return this.type; } public final IllegalCodePointType setType(IllegalCodePointType type) { IllegalCodePointType old = this.type; this.type = type; return old; } @Override public final int getPropertyCount() { return 2; } @Override public final AstNodePropertyIterator propertyIterator() { return new AstNodePropertyIterator() { @Override protected int getPropertyCount() { return 2; } @Override protected String getName(int index) { switch (index) { case 0: return "codePoint"; case 1: return "type"; default: throw new IndexOutOfBoundsException(); } } @Override protected Object getValue(int index) { switch (index) { case 0: return IllegalCodePoint.this.getCodePoint(); case 1: return IllegalCodePoint.this.getType(); default: throw new IndexOutOfBoundsException(); } } @Override protected Object setValue(int index, Object value) { switch (index) { case 0: return IllegalCodePoint.this.setCodePoint((String) value); case 1: return IllegalCodePoint.this.setType((IllegalCodePointType) value); default: throw new IndexOutOfBoundsException(); } } }; } // ========================================================================= // Children // ========================================================================= }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy