|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IitsTagElement
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 |
void |
update(java.util.Map<ItsAttributes,java.util.List<java.lang.String>> values)
Updates this elements values |
Method Detail |
---|
void addChild(IitsTagElement element)
element
- void removeChild(IitsTagElement child)
child
- java.util.List<IitsTagElement> getChildren()
boolean hasChildren()
boolean isEmpty()
IitsId getId()
void setId(IitsId id)
id
- IitsTagElement getNextChild()
boolean hasMoreChildren()
IitsTagElement getParentElement()
void setParentElement(IitsTagElement e)
e
- boolean isParent()
boolean hasParent()
boolean isRoot()
void setParent(boolean parent)
parent
- java.util.List<IitsAttribute> getAttributes()
java.util.Map<ItsAttributes,java.util.List<java.lang.String>> renderAttributes()
void addAttribute(IitsAttribute itsAttribute)
itsAttribute
- void addAttribute(java.lang.String dcname, java.lang.String dcvalue)
dcname
- the name of the data category attributedcvalue
- the value of the data category attributevoid addAttribute(ItsAttributes dcname, java.lang.String dcvalue)
dcname
- the name of the data category attributedcvalue
- the value of the data category attributevoid addAllAttributes(java.util.Collection<IitsAttribute> attributes)
attributes
- a collection of IitsAttributeIitsTagElement getLastChild()
IitsTagElement
void update(java.util.Map<ItsAttributes,java.util.List<java.lang.String>> values)
values
- void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |