|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkirk.io.sdl.SDLElement
This class represents an SDL element. It has a name, and a value. What this value actually is, is decided by the subclasses. SDL has 2 types of elements, the normal element, and the data element. These are represented by 2 subclasses.
Field Summary | |
protected String |
name
The name of this element. |
Constructor Summary | |
SDLElement(String name)
Constructs a new SDLElement with the given name. |
Method Summary | |
SDLDataElement |
getAsDataElement()
Convenience method for casting this element to the data type. |
SDLNormalElement |
getAsNormalElement()
Convenience method for casting this element to the normal type. |
String |
getName()
Returns the name of this element. |
void |
setName(String name)
Sets the name of this element to name . |
abstract String |
toString(String indent)
Returns a string representation of this SDLElement with the given
indentation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String name
Constructor Detail |
public SDLElement(String name)
SDLElement
with the given name.
name
- The name of the element.Method Detail |
public String getName()
public void setName(String name)
name
.
name
- The name this element should have.public SDLNormalElement getAsNormalElement()
public SDLDataElement getAsDataElement()
public abstract String toString(String indent)
SDLElement
with the given
indentation.
indent
- The indentation to be used.
SDLElement
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |