| |
|
| java.lang.Object org.netbeans.modules.schema2beansdev.GraphNode
GraphNode | public class GraphNode (Code) | | This class is a node of the schema graph that the TreeBuilder is creating
from the parsed schema. For every type we get 1 GraphNode. Every java
bean property (or java class attribute), has an associated GraphLink.
Groupings are represented in GraphLink's.
Each element of the graph tree is a node (root, intermediate node and
leaves). Each node references a GraphLink object which takes care
of linking the different nodes of the graph.
The schema instances information (*, + or ?) and the relationship
as a sequence (,) or choice (|) information are held in the GraphLink
object. There is only one GraphNode instance of an element in the graph
event if the element is referenced by several graph links.
A GrapNode is a leaf if its element GraphLink is null.
To see a pretty graph of GraphNode's and GraphLink's, run with these
options: -t dot -genDotGraph out.dot
And run `dotty out.dot`.
...
1 GraphNode for type "bill"
1 GraphLink for xsd:sequence (storing the grouping info)
1 GraphNode for type "addressType"
1 GraphLink for "shipTo" java bean property
1 GraphLink for "billTo" java bean property
|
addExtraDataIncludeAlias | public void addExtraDataIncludeAlias(Object data)(Code) | | |
getExtendedProperty | public Object getExtendedProperty(String name)(Code) | | These are generic properties that the schema parser wants to pass
to the code generation phase.
|
getMarked | boolean getMarked()(Code) | | |
getName | String getName()(Code) | | This method will return the name without any namespace info.
|
getNodes | GraphNode[] getNodes()(Code) | | Returns the list of all the GraphNodes used directly by this
element (this represent all the elements used to declare the
current GraphNode definition in the DTD (only one level
of the subtree of this element).
|
getRefCount | int getRefCount()(Code) | | |
incrRefCount | void incrRefCount()(Code) | | |
isAbstract | boolean isAbstract()(Code) | | |
isCreated | boolean isCreated()(Code) | | |
isUnion | public boolean isUnion()(Code) | | |
setAbstract | void setAbstract(boolean value)(Code) | | |
setCreated | void setCreated(boolean value)(Code) | | |
setExtendedProperty | public void setExtendedProperty(String name, Object value)(Code) | | These are generic properties that the schema parser wants to pass
to the code generation phase.
|
setMarked | void setMarked(boolean value)(Code) | | |
setUnion | public void setUnion(boolean value)(Code) | | |
|
|
|