
org.sweble.wikitext.engine.log.IllegalNameException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swc-engine Show documentation
Show all versions of swc-engine Show documentation
A minimal engine using the Sweble Wikitext Parser to
process articles in the context of a MediaWiki-like configuration.
/*
* This file is auto-generated.
* DO NOT MODIFY MANUALLY!
*
* Generated by AstNodeGenerator.
* Last generated: 2014-09-12 00:38:33.
*/
package org.sweble.wikitext.engine.log;
import de.fau.cs.osr.ptk.common.ast.*;
/**
* Illegal Name Exception
*/
public class IllegalNameException
extends InnerNode.InnerNode1
{
private static final long serialVersionUID = 1L;
// =========================================================================
public IllegalNameException()
{
super((AstNode) null);
}
public IllegalNameException(AstNode name, String message)
{
super(name);
setMessage(message);
}
// =========================================================================
// Properties
private String message;
public final String getMessage()
{
return this.message;
}
public final String setMessage(String message)
{
String old = this.message;
this.message = message;
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 "message";
default:
throw new IndexOutOfBoundsException();
}
}
@Override
protected Object getValue(int index)
{
switch (index)
{
case 0:
return IllegalNameException.this.getMessage();
default:
throw new IndexOutOfBoundsException();
}
}
@Override
protected Object setValue(int index, Object value)
{
switch (index)
{
case 0:
return IllegalNameException.this.setMessage((String) value);
default:
throw new IndexOutOfBoundsException();
}
}
};
}
// =========================================================================
// Children
public final void setName(AstNode name)
{
set(0, name);
}
public final AstNode getName()
{
return (AstNode) get(0);
}
private static final String[] CHILD_NAMES = new String[] {"name"};
public final String[] getChildNames()
{
return CHILD_NAMES;
}
// =========================================================================
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy