|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.hgraph.SiblingFunc
public class SiblingFunc
Sibling functionality for H-Graph nodes. This class provides functionality for holding and maintaining a set of Sibling References.
| Field Summary | |
|---|---|
static java.lang.String |
CHILDSIBLINGREFERENCES_TAG
|
static java.lang.String |
SIBLINGREFERENCES_TAG
|
| Constructor Summary | |
|---|---|
SiblingFunc(IHgraphNode node)
|
|
| Method Summary | |
|---|---|
int |
addChildSiblingReference(java.lang.String referer,
java.lang.String referee)
Creates a new child sibling reference and adds it to the local map. |
int |
addSiblingReference(SiblingReference ref)
Adds a sibling reference to the local sibling reference map. |
int |
childSatName(java.lang.String oldName,
java.lang.String newName)
Called when a child name is sat. |
java.lang.String |
childSiblingReferenceMapToXML()
|
IHgraphNode |
getSiblingReference(java.lang.String name)
|
java.lang.Object |
getSiblingReferenceFromGlobalName(java.lang.String name)
|
java.lang.Object |
getSiblingReferenceFromLocalName(java.lang.String name)
|
int |
removeSiblingReference(SiblingReference ref)
Removes a specific sibling reference |
int |
removeSiblingReference(java.lang.String name)
Removes a sibling reference based on its name. |
java.lang.String |
siblingReferencesToXML()
|
void |
updateChildSiblingReferences(java.lang.String name,
IHgraphNode ref)
Called when the node with some given global name changes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SIBLINGREFERENCES_TAG
public static final java.lang.String CHILDSIBLINGREFERENCES_TAG
| Constructor Detail |
|---|
public SiblingFunc(IHgraphNode node)
| Method Detail |
|---|
public int childSatName(java.lang.String oldName,
java.lang.String newName)
public void updateChildSiblingReferences(java.lang.String name,
IHgraphNode ref)
name - The global name of the child whose reference is changedref - The new reference of the child
public int addChildSiblingReference(java.lang.String referer,
java.lang.String referee)
referer - referee -
public int addSiblingReference(SiblingReference ref)
SiblingReferencepublic int removeSiblingReference(java.lang.String name)
name -
public int removeSiblingReference(SiblingReference ref)
ref -
public IHgraphNode getSiblingReference(java.lang.String name)
public java.lang.Object getSiblingReferenceFromLocalName(java.lang.String name)
public java.lang.Object getSiblingReferenceFromGlobalName(java.lang.String name)
public java.lang.String siblingReferencesToXML()
public java.lang.String childSiblingReferenceMapToXML()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||