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 IFXGNode
public void setDelegate(IFXGNode delegate, Collection<ICompilerProblem> problems)
public void addChild(IFXGNode child, Collection<ICompilerProblem> problems)
public List<IFXGNode> getChildren()
IFXGNode
getChildren
in interface IFXGNode
public void setAttribute(String name, String value, Collection<ICompilerProblem> problems)
setAttribute
in interface IFXGNode
name
- - the unqualified attribute namevalue
- - the attribute valueproblems
- problem collection used to collect problems occurred within this methodpublic IFXGNode getDocumentNode()
getDocumentNode
in interface IFXGNode
public void setDocumentNode(IFXGNode root)
setDocumentNode
in interface IFXGNode
root
- - the root node of the FXG document.public String getNodeURI()
getNodeURI
in interface IFXGNode
public void setNodeURI(String uri)
uri
- - the namespace URI of this node.public int getStartLine()
getStartLine
in interface IFXGNode
public void setStartLine(int line)
setStartLine
in interface IFXGNode
line
- - the line on which the node declaration started.public int getStartColumn()
getStartColumn
in interface IFXGNode
public void setStartColumn(int column)
setStartColumn
in interface IFXGNode
column
- - the line on which the node declaration started.public int getEndLine()
getEndLine
in interface IFXGNode
public void setEndLine(int line)
setEndLine
in interface IFXGNode
line
- - the line on which the node declaration ended.public int getEndColumn()
getEndColumn
in interface IFXGNode
public void setEndColumn(int column)
setEndColumn
in interface IFXGNode
column
- the column on which the node declaration ended.public String getDocumentPath()
getDocumentPath
in interface IFXGNode
Copyright © 2016 The Apache Software Foundation. All rights reserved.