public class CDATANode extends AbstractFXGNode implements ITextNode
Modifier and Type | Field and Description |
---|---|
String |
content |
protected String |
id |
ALPHA_MAX_INCLUSIVE, ALPHA_MIN_INCLUSIVE, COLOR_BLACK, COLOR_RED, COLOR_WHITE, documentNode, endColumn, endLine, EPSILON, GRADIENT_ENTRIES_MAX_INCLUSIVE, startColumn, startLine, uri
Constructor and Description |
---|
CDATANode() |
Modifier and Type | Method and Description |
---|---|
void |
addTextProperty(String propertyName,
ITextNode node,
Collection<ICompilerProblem> problems)
A text node may also have special child property nodes that represent
complex property values that cannot be set via a simple attribute.
|
String |
getId()
An id attribute provides a well defined name to a text node.
|
String |
getNodeName() |
Map<String,String> |
getTextAttributes() |
List<ITextNode> |
getTextChildren() |
HashMap<String,ITextNode> |
getTextProperties() |
void |
setAttribute(String name,
String value,
Collection<ICompilerProblem> problems)
Sets an FXG attribute on this text node.
|
void |
setId(String value)
Sets the node id.
|
addChild, getChildren, getDocumentNode, getDocumentPath, getEndColumn, getEndLine, getFileVersion, getNodeURI, getStartColumn, getStartLine, isVersionGreaterThanCompiler, setDocumentNode, setEndColumn, setEndLine, setNodeURI, setStartColumn, setStartLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChild, getChildren, getDocumentNode, getDocumentPath, getEndColumn, getEndLine, getNodeURI, getStartColumn, getStartLine, setDocumentNode, setEndColumn, setEndLine, setStartColumn, setStartLine
public String getId()
public void setId(String value)
public String getNodeName()
getNodeName
in interface IFXGNode
public Map<String,String> getTextAttributes()
getTextAttributes
in interface ITextNode
public List<ITextNode> getTextChildren()
getTextChildren
in interface ITextNode
public HashMap<String,ITextNode> getTextProperties()
getTextProperties
in interface ITextNode
public void addTextProperty(String propertyName, ITextNode node, Collection<ICompilerProblem> problems)
addTextProperty
in interface ITextNode
propertyName
- - the property's local namenode
- - the value nodeproblems
- problems to collectpublic void setAttribute(String name, String value, Collection<ICompilerProblem> problems)
setAttribute
in interface IFXGNode
setAttribute
in class AbstractFXGNode
name
- - the unqualified attribute name.value
- - the attribute value.problems
- problem collection used to collect problems occurred within this methodCopyright © 2016 The Apache Software Foundation. All rights reserved.