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, setStartLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocumentNode, getDocumentPath, getEndColumn, getEndLine, getNodeName, getNodeURI, getStartColumn, getStartLine, setDocumentNode, setEndColumn, setEndLine, setStartColumn, setStartLineprotected String id
public String getId()
public void setId(String value)
public Map<String,String> getTextAttributes()
getTextAttributes in interface ITextNodepublic List<ITextNode> getTextChildren()
getTextChildren in interface ITextNodepublic HashMap<String,ITextNode> getTextProperties()
getTextProperties in interface ITextNodepublic void addTextProperty(String propertyName, ITextNode node, Collection<ICompilerProblem> problems)
addTextProperty in interface ITextNodepropertyName - - 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 IFXGNodeaddChild in class AbstractFXGNodechild - - a child FXG node to be added to this node.problems - problem collection used to collect problems occurred within this methodpublic List<IFXGNode> getChildren()
IFXGNodegetChildren in interface IFXGNodegetChildren in class AbstractFXGNodepublic void setAttribute(String name, String value, Collection<ICompilerProblem> problems)
setAttribute in interface IFXGNodesetAttribute in class AbstractFXGNodename - - 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.