Package lumis.contentservices.util
Class HierarchicalElement
- java.lang.Object
-
- lumis.contentservices.util.HierarchicalElement
-
public class HierarchicalElement extends java.lang.Object
Hierarchical Element Object, used forContentServicesUtil.parseHtml(String)
extractions.- Since:
- 9.0.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description HierarchicalElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HierarchicalElement
addChildren(java.util.Collection<HierarchicalElement> children)
Add a given collection ofelements
as children.HierarchicalElement
addChildren(HierarchicalElement... children)
Add a givenelement
as children.java.util.Collection<HierarchicalElement>
getChildren()
Returns thiselement
children.java.lang.String
getId()
Returns the identifier.java.lang.String
getName()
Returns the name.java.lang.String
getParentId()
Returns the parent identifier.int
getPosition()
Returns the position.HierarchicalElement
setId(java.lang.String id)
Set identifier with a givenid
.HierarchicalElement
setName(java.lang.String name)
Set name with a givenname
.HierarchicalElement
setParentId(java.lang.String parentId)
Set the parent identifier with a givenparentId
.HierarchicalElement
setPosition(int position)
Set the hierarchy position with a givenposition
.
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Returns the identifier.- Returns:
- the identifier.
- Since:
- 9.0.0
-
setId
public HierarchicalElement setId(java.lang.String id)
Set identifier with a givenid
.- Parameters:
id
- the identifier to be set.- Returns:
- the changed
element
. - Since:
- 9.0.0
-
getName
public java.lang.String getName()
Returns the name.- Returns:
- the name.
- Since:
- 9.0.0
-
setName
public HierarchicalElement setName(java.lang.String name)
Set name with a givenname
.- Parameters:
name
- the name to be set.- Returns:
- the changed
element
. - Since:
- 9.0.0
-
getParentId
public java.lang.String getParentId()
Returns the parent identifier.- Returns:
- the parent identifier.
- Since:
- 9.0.0
-
setParentId
public HierarchicalElement setParentId(java.lang.String parentId)
Set the parent identifier with a givenparentId
.- Parameters:
parentId
- the parent identifier.- Returns:
- the changed
element
. - Since:
- 9.0.0
-
getPosition
public int getPosition()
Returns the position.- Returns:
- the hierarchy position.
- Since:
- 9.0.0
-
setPosition
public HierarchicalElement setPosition(int position)
Set the hierarchy position with a givenposition
.- Parameters:
position
- the hierarchy position.- Returns:
- the changed
element
. - Since:
- 9.0.0
-
getChildren
public java.util.Collection<HierarchicalElement> getChildren()
Returns thiselement
children.- Returns:
- this
element
children. - Since:
- 9.0.0
-
addChildren
public HierarchicalElement addChildren(HierarchicalElement... children)
Add a givenelement
as children.
-
addChildren
public HierarchicalElement addChildren(java.util.Collection<HierarchicalElement> children)
Add a given collection ofelements
as children.
-
-