|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.tatool.core.element.AbstractPropertyHolder
ch.tatool.core.element.NodeImpl
public class NodeImpl
Default node implementation. Provides helper methods to assign a parent as well as support for id chaining where the id is "{parentId}.{localId}"
| Constructor Summary | |
|---|---|
NodeImpl()
|
|
NodeImpl(String defaultId)
|
|
| Method Summary | |
|---|---|
protected static void |
assignParent(Node parent,
Collection<Object> objects)
Sets the parent to the provided objects if they are of type Node |
protected static void |
assignParent(Node parent,
Object object)
Sets the parent to the provided object if the object is type Node |
protected static void |
assignParents(Node parent,
Collection<Element> objects)
Sets the parent to the provided objects if they are of type Node |
String |
getId()
Unique id of the element. |
String |
getLocalId()
|
Node |
getParent()
|
void |
setId(String id)
|
void |
setLocalId(String id)
|
void |
setParent(Node parent)
|
| Methods inherited from class ch.tatool.core.element.AbstractPropertyHolder |
|---|
clearProperties, getKeys, getProperty, removeProperty, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ch.tatool.data.PropertyHolder |
|---|
clearProperties, getKeys, getProperty, removeProperty, setProperty |
| Constructor Detail |
|---|
public NodeImpl()
public NodeImpl(String defaultId)
| Method Detail |
|---|
public void setId(String id)
public String getLocalId()
public void setLocalId(String id)
public String getId()
getId in interface PropertyHolderpublic Node getParent()
getParent in interface Nodepublic void setParent(Node parent)
setParent in interface Node
protected static void assignParent(Node parent,
Object object)
protected static void assignParent(Node parent,
Collection<Object> objects)
protected static void assignParents(Node parent,
Collection<Element> objects)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||