|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.hgraph.SiblingReference
public class SiblingReference
Sibling references act as a mainteneance structure for mapping between regular objec references and H-graph meta references. Sibling references have a global name, and they may have a local name. Global names change, if the referred IHgraphNode's name change. Local names take precedence over global names, and they are as such overriding when the same
| Constructor Summary | |
|---|---|
SiblingReference(IHgraphNode siblingRef)
Creates a Sibling Reference from the global name and object reference to the sibling |
|
SiblingReference(java.lang.String localName,
IHgraphNode siblingRef)
Creates a Sibling Reference from a local name and the global name an object reference to the sibling |
|
| Method Summary | |
|---|---|
java.lang.String |
getGlobalName()
|
java.lang.String |
getLocalName()
|
IHgraphNode |
getRef()
|
boolean |
hasLocalName()
|
void |
setGlobalName(java.lang.String globalName)
Sets the global name. |
void |
setRef(IHgraphNode ref)
Sets the object reference. |
java.lang.String |
toXML()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SiblingReference(IHgraphNode siblingRef)
siblingRef - The node to be referred
public SiblingReference(java.lang.String localName,
IHgraphNode siblingRef)
localName - A local name for the sibling reference. The local name is static and cannot be changed after
creation time. It remains the same although the global name is changed.siblingRef - the node to be referred| Method Detail |
|---|
public boolean hasLocalName()
public java.lang.String getLocalName()
public java.lang.String getGlobalName()
public IHgraphNode getRef()
public void setGlobalName(java.lang.String globalName)
globalName - public void setRef(IHgraphNode ref)
ref - public java.lang.String toXML()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||