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

org.sweble.wikitext.lazy.parser.XmlElementClose 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.parser;

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




/**
 * 

Closing XML tag

*/ public class XmlElementClose extends LeafNode implements NamedXmlElement { private static final long serialVersionUID = 1L; // ========================================================================= public XmlElementClose() { super(); } public XmlElementClose(String name) { super(); setName(name); } @Override public int getNodeType() { return org.sweble.wikitext.lazy.AstNodeTypes.NT_XML_TAG_CLOSE; } // ========================================================================= // Properties private String name; public final String getName() { return this.name; } public final String setName(String name) { String old = this.name; this.name = name; return old; } @Override public final int getPropertyCount() { return 1; } @Override public final AstNodePropertyIterator propertyIterator() { return new AstNodePropertyIterator() { @Override protected int getPropertyCount() { return 1; } @Override protected String getName(int index) { switch (index) { case 0: return "name"; default: throw new IndexOutOfBoundsException(); } } @Override protected Object getValue(int index) { switch (index) { case 0: return XmlElementClose.this.getName(); default: throw new IndexOutOfBoundsException(); } } @Override protected Object setValue(int index, Object value) { switch (index) { case 0: return XmlElementClose.this.setName((String) value); default: throw new IndexOutOfBoundsException(); } } }; } // ========================================================================= // Children // ========================================================================= }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy