
org.sweble.wikitext.engine.log.CompilerLog 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.*;
/**
* Compiler Log
*/
public class CompilerLog
extends ContentNode
{
private static final long serialVersionUID = 1L;
// =========================================================================
public CompilerLog()
{
super();
}
// =========================================================================
// Properties
private String title;
public final String getTitle()
{
return this.title;
}
public final String setTitle(String title)
{
String old = this.title;
this.title = title;
return old;
}
private Long revision;
public final Long getRevision()
{
return this.revision;
}
public final Long setRevision(Long revision)
{
Long old = this.revision;
this.revision = revision;
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 "title";
case 1:
return "revision";
default:
throw new IndexOutOfBoundsException();
}
}
@Override
protected Object getValue(int index)
{
switch (index)
{
case 0:
return CompilerLog.this.getTitle();
case 1:
return CompilerLog.this.getRevision();
default:
throw new IndexOutOfBoundsException();
}
}
@Override
protected Object setValue(int index, Object value)
{
switch (index)
{
case 0:
return CompilerLog.this.setTitle((String) value);
case 1:
return CompilerLog.this.setRevision((Long) value);
default:
throw new IndexOutOfBoundsException();
}
}
};
}
// =========================================================================
// Children
// =========================================================================
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy