|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.init.its.ds.ItsTagElement
public class ItsTagElement
This class represents an ITS node. Each node has a number of its attributes. each attribute contains the local ITS attribute and its value.
Constructor Summary | |
---|---|
ItsTagElement()
|
Method Summary | |
---|---|
void |
addAllAttributes(java.util.Collection<IitsAttribute> attributes)
Adds all attributes to this ITS tag Element |
void |
addAttribute(IitsAttribute itsAttribute)
adds an its attribute to the element |
void |
addAttribute(ItsAttributes dcname,
java.lang.String dcvalue)
adds an its attribute to the element |
void |
addAttribute(java.lang.String dcname,
java.lang.String dcvalue)
adds an its attribute to the element |
void |
addChild(IitsTagElement element)
Adds an IITagsElement to this element |
java.util.List<IitsAttribute> |
getAttributes()
Returns a list of all its attributes |
java.util.List<IitsTagElement> |
getChildren()
Returns all child its tag elements, if any |
IitsId |
getId()
Returns the id of this element |
IitsTagElement |
getLastChild()
returns the last inserted child from this element |
IitsTagElement |
getNextChild()
returns the next IitsTagElement |
IitsTagElement |
getParentElement()
returns the parent element |
boolean |
hasChildren()
Returns if this Element has any child nodes |
boolean |
hasMoreChildren()
returns true if there are more child elements available |
boolean |
hasParent()
Returns true if this element has a parent element |
boolean |
isEmpty()
Returns true, if this element is an orphan (has no parent nor children nor any values) |
boolean |
isParent()
returns true if this element is parent |
boolean |
isRoot()
Returns true if this tag element is the root element (eg. is parent and has no parent element) |
void |
removeChild(IitsTagElement child)
Removes a child from this branch. |
java.util.Map<ItsAttributes,java.util.List<java.lang.String>> |
renderAttributes()
Convenience method to render all attributes as map |
void |
reset()
resets the iterator |
void |
setId(IitsId id)
Sets the id of this its element |
void |
setParent(boolean parent)
set this element as parent |
void |
setParentElement(IitsTagElement e)
Sets the ItsTageElements parent |
java.lang.String |
toString()
|
void |
update(java.util.Map<ItsAttributes,java.util.List<java.lang.String>> values)
Updates this elements values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ItsTagElement()
Method Detail |
---|
public void addChild(IitsTagElement element)
IitsTagElement
addChild
in interface IitsTagElement
public void removeChild(IitsTagElement child)
IitsTagElement
removeChild
in interface IitsTagElement
public java.util.List<IitsTagElement> getChildren()
IitsTagElement
getChildren
in interface IitsTagElement
public boolean hasChildren()
IitsTagElement
hasChildren
in interface IitsTagElement
public IitsId getId()
IitsTagElement
getId
in interface IitsTagElement
public void setId(IitsId id)
IitsTagElement
setId
in interface IitsTagElement
public IitsTagElement getNextChild()
IitsTagElement
getNextChild
in interface IitsTagElement
public boolean hasMoreChildren()
IitsTagElement
hasMoreChildren
in interface IitsTagElement
public IitsTagElement getParentElement()
IitsTagElement
getParentElement
in interface IitsTagElement
public void setParentElement(IitsTagElement e)
IitsTagElement
setParentElement
in interface IitsTagElement
public boolean isParent()
IitsTagElement
isParent
in interface IitsTagElement
public void setParent(boolean parent)
IitsTagElement
setParent
in interface IitsTagElement
public java.util.List<IitsAttribute> getAttributes()
IitsTagElement
getAttributes
in interface IitsTagElement
public java.util.Map<ItsAttributes,java.util.List<java.lang.String>> renderAttributes()
IitsTagElement
renderAttributes
in interface IitsTagElement
public void addAttribute(IitsAttribute itsAttribute)
IitsTagElement
addAttribute
in interface IitsTagElement
public void addAttribute(java.lang.String dcname, java.lang.String dcvalue)
IitsTagElement
addAttribute
in interface IitsTagElement
dcname
- the name of the data category attributedcvalue
- the value of the data category attributepublic void addAttribute(ItsAttributes dcname, java.lang.String dcvalue)
IitsTagElement
addAttribute
in interface IitsTagElement
dcname
- the name of the data category attributedcvalue
- the value of the data category attributepublic IitsTagElement getLastChild()
IitsTagElement
getLastChild
in interface IitsTagElement
IitsTagElement
public void addAllAttributes(java.util.Collection<IitsAttribute> attributes)
IitsTagElement
addAllAttributes
in interface IitsTagElement
attributes
- a collection of IitsAttributepublic java.lang.String toString()
toString
in class java.lang.Object
public boolean isRoot()
IitsTagElement
isRoot
in interface IitsTagElement
public boolean hasParent()
IitsTagElement
hasParent
in interface IitsTagElement
public boolean isEmpty()
IitsTagElement
isEmpty
in interface IitsTagElement
public void reset()
IitsTagElement
reset
in interface IitsTagElement
public void update(java.util.Map<ItsAttributes,java.util.List<java.lang.String>> values)
IitsTagElement
update
in interface IitsTagElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |