public class HierarchicalElement extends Object
ContentServicesUtil.parseHtml(String)
extractions.Constructor and Description |
---|
HierarchicalElement() |
Modifier and Type | Method and Description |
---|---|
HierarchicalElement |
addChildren(Collection<HierarchicalElement> children)
Add a given collection of
elements as children. |
HierarchicalElement |
addChildren(HierarchicalElement... children)
Add a given
element as children. |
Collection<HierarchicalElement> |
getChildren()
Returns this
element 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 given
id . |
HierarchicalElement |
setName(String name)
Set name with a given
name . |
HierarchicalElement |
setParentId(String parentId)
Set the parent identifier with a given
parentId . |
HierarchicalElement |
setPosition(int position)
Set the hierarchy position with a given
position . |
public String getId()
public HierarchicalElement setId(String id)
id
.id
- the identifier to be set.element
.public String getName()
public HierarchicalElement setName(String name)
name
.name
- the name to be set.element
.public String getParentId()
public HierarchicalElement setParentId(String parentId)
parentId
.parentId
- the parent identifier.element
.public int getPosition()
public HierarchicalElement setPosition(int position)
position
.position
- the hierarchy position.element
.public Collection<HierarchicalElement> getChildren()
element
children.element
children.public HierarchicalElement addChildren(HierarchicalElement... children)
element
as children.public HierarchicalElement addChildren(Collection<HierarchicalElement> children)
elements
as children.LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.