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