public abstract class AbstractTextNode extends AbstractFXGNode implements ITextNode
Modifier and Type | Field and Description |
---|---|
protected List<ITextNode> |
content
This nodes child text nodes.
|
protected String |
id |
protected Map<String,String> |
textAttributes
The attributes set on this node.
|
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 |
---|
AbstractTextNode() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(IFXGNode child,
Collection<ICompilerProblem> problems)
Check child node to ensure that exception isn't thrown for ignorable
white spaces.
|
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.
|
List<IFXGNode> |
getChildren()
debug method, do not use
|
String |
getId()
An id attribute provides a well defined name to a text node.
|
Map<String,String> |
getTextAttributes() |
List<ITextNode> |
getTextChildren() |
HashMap<String,ITextNode> |
getTextProperties() |
protected void |
rememberAttribute(String name,
String value)
Remember that an attribute was set on this node.
|
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.
|
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
getDocumentNode, getDocumentPath, getEndColumn, getEndLine, getNodeName, getNodeURI, getStartColumn, getStartLine, setDocumentNode, setEndColumn, setEndLine, setStartColumn, setStartLine
protected String id
public String getId()
public void setId(String value)
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 collectprotected void rememberAttribute(String name, String value)
name
- - the unqualified attribute name.value
- - the attribute value.public void addChild(IFXGNode child, Collection<ICompilerProblem> problems)
addChild
in interface IFXGNode
addChild
in class AbstractFXGNode
child
- - a child FXG node to be added to this node.problems
- problem collection used to collect problems occurred within this methodpublic List<IFXGNode> getChildren()
IFXGNode
getChildren
in interface IFXGNode
getChildren
in class AbstractFXGNode
public 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.