public class DelegateNode extends Object implements IFXGNode
<Rect width="20" height="20">
<fill>
<SolidColor color="#FFCC00" />
</fill>
</Rect>
| Modifier and Type | Field and Description |
|---|---|
protected IFXGNode |
delegate |
protected IFXGNode |
documentNode |
protected int |
endColumn |
protected int |
endLine |
protected String |
name |
protected int |
startColumn |
protected int |
startLine |
protected String |
uri |
| Constructor and Description |
|---|
DelegateNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(IFXGNode child,
Collection<ICompilerProblem> problems)
Adds an FXG child node to the delegate node.
|
List<IFXGNode> |
getChildren()
debug method, do not use
|
IFXGNode |
getDocumentNode() |
String |
getDocumentPath() |
int |
getEndColumn() |
int |
getEndLine() |
String |
getNodeName() |
String |
getNodeURI()
return the namespace URI of this node.
|
int |
getStartColumn() |
int |
getStartLine() |
void |
setAttribute(String name,
String value,
Collection<ICompilerProblem> problems)
Sets an FXG attribute on the delegate node.
|
void |
setDelegate(IFXGNode delegate,
Collection<ICompilerProblem> problems) |
void |
setDocumentNode(IFXGNode root)
Establishes the root node of the FXG document containing this node.
|
void |
setEndColumn(int column) |
void |
setEndLine(int line) |
void |
setName(String name) |
void |
setNodeURI(String uri) |
void |
setStartColumn(int column) |
void |
setStartLine(int line) |
protected String name
protected IFXGNode delegate
protected IFXGNode documentNode
protected String uri
protected int startLine
protected int startColumn
protected int endLine
protected int endColumn
public void setName(String name)
public String getNodeName()
getNodeName in interface IFXGNodepublic void setDelegate(IFXGNode delegate, Collection<ICompilerProblem> problems)
public void addChild(IFXGNode child, Collection<ICompilerProblem> problems)
public List<IFXGNode> getChildren()
IFXGNodegetChildren in interface IFXGNodepublic void setAttribute(String name, String value, Collection<ICompilerProblem> problems)
setAttribute in interface IFXGNodename - - the unqualified attribute namevalue - - the attribute valueproblems - problem collection used to collect problems occurred within this methodpublic IFXGNode getDocumentNode()
getDocumentNode in interface IFXGNodepublic void setDocumentNode(IFXGNode root)
setDocumentNode in interface IFXGNoderoot - - the root node of the FXG document.public String getNodeURI()
getNodeURI in interface IFXGNodepublic void setNodeURI(String uri)
uri - - the namespace URI of this node.public int getStartLine()
getStartLine in interface IFXGNodepublic void setStartLine(int line)
setStartLine in interface IFXGNodeline - - the line on which the node declaration started.public int getStartColumn()
getStartColumn in interface IFXGNodepublic void setStartColumn(int column)
setStartColumn in interface IFXGNodecolumn - - the line on which the node declaration started.public int getEndLine()
getEndLine in interface IFXGNodepublic void setEndLine(int line)
setEndLine in interface IFXGNodeline - - the line on which the node declaration ended.public int getEndColumn()
getEndColumn in interface IFXGNodepublic void setEndColumn(int column)
setEndColumn in interface IFXGNodecolumn - the column on which the node declaration ended.public String getDocumentPath()
getDocumentPath in interface IFXGNodeCopyright © 2016 The Apache Software Foundation. All rights reserved.