|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dk.brics.jwig.analysis.summarygraph.Node
Node (associated with a constant template).
Constructor Summary | |
Node(Object key,
Template xml,
Object origin)
Constructs new XML node. |
Method Summary | |
void |
addAllOpenGaps()
Adds all present gaps as "maybe open". |
boolean |
addOpenGap(String gap)
Adds "maybe open" gap. |
void |
addStringEdge(StringEdge e)
Adds string edge. |
void |
addTemplateEdge(TemplateEdge e)
Adds template edge. |
Object |
clone()
Clones node. |
Object |
getKey()
Returns key. |
Set |
getOpenGaps()
Get "maybe open" gaps. |
Object |
getOrigin()
Returns origin object. |
Collection |
getReverseEdges()
Returns collection of locations of gaps with edges to this node. |
Collection |
getStringEdges()
Returns all string edges. |
Template |
getTemplate()
Returns XML template of this node. |
Collection |
getTemplateEdges()
Returns all template edges. |
StringEdge |
lookupStringEdge(String gap)
Finds string edge with given gap name. |
TemplateEdge |
lookupTemplateEdge(Node to,
String gap)
Finds template edge with given destination and gap name. |
Collection |
lookupTemplateEdges(String gap)
Finds template edges with given gap name. |
boolean |
removeOpenGap(String gap)
Removes "maybe open" gap. |
String |
toString()
Returns name of this node. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Node(Object key, Template xml, Object origin)
key
- unique key, no two nodes in a graph should have the same keyxml
- an XML template (no two nodes in a summary graph may have identical templates)origin
- object describing the XML templateMethod Detail |
public void addAllOpenGaps()
public boolean addOpenGap(String gap)
gap
- gap namepublic void addStringEdge(StringEdge e)
public void addTemplateEdge(TemplateEdge e)
public Object clone()
clone
in class Object
Node
objectpublic Object getKey()
public Set getOpenGaps()
public Object getOrigin()
public Collection getReverseEdges()
public Collection getStringEdges()
public Template getTemplate()
public Collection getTemplateEdges()
public StringEdge lookupStringEdge(String gap)
gap
- gap name
public TemplateEdge lookupTemplateEdge(Node to, String gap)
to
- destinationgap
- gap name
public Collection lookupTemplateEdges(String gap)
gap
- gap name
public boolean removeOpenGap(String gap)
gap
- gap namepublic String toString()
toString
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |