public final class FeatureTreeNode extends Object
| Modifier and Type | Method and Description |
|---|---|
FeatureTreeNode |
addChild(FeatureTreeNode node) |
FeatureTreeNode |
addChild(String nodeName)
Add a child to the node
|
FeatureTreeNode |
addMetadataChild(String nodeName)
Add a child to the node
|
static FeatureTreeNode |
createRootNode(String name) |
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes() |
List<FeatureTreeNode> |
getChildren() |
String |
getName() |
String |
getValue() |
int |
hashCode() |
boolean |
isMetadataNode() |
void |
setAttribute(String attributeName,
String attributeValue)
Added attribute for the node
|
void |
setAttributes(Map<String,String> toSet) |
void |
setValue(String value)
Add value to the node
|
String |
toString()
{ @inheritDoc }
|
public String getName()
public String getValue()
public List<FeatureTreeNode> getChildren()
public FeatureTreeNode addChild(String nodeName) throws FeatureParsingException
child - new child node for the current nodeFeatureParsingException - occurs when child adds to node with value or if the node is a
metadata nodepublic FeatureTreeNode addMetadataChild(String nodeName) throws FeatureParsingException
child - new child node for the current nodeFeatureParsingException - occurs when child adds to node with value or if the node is a
metadata nodepublic FeatureTreeNode addChild(FeatureTreeNode node) throws FeatureParsingException
FeatureParsingExceptionpublic void setValue(String value) throws FeatureParsingException
value - valueFeatureParsingException - occurs when value adds to the node with childrens or if the
object is a metadata node and the value is not a hex stringpublic boolean isMetadataNode()
public Map<String,String> getAttributes()
public void setAttribute(String attributeName, String attributeValue)
attributeName - name of the attributeattributeValue - value of the attributepublic static final FeatureTreeNode createRootNode(String name)
Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.