|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeAssoc
Represents a generic association between two nodes. The association is named and bidirectional by default.
Method Summary | |
---|---|
void |
buildAssociation(Node sourceNode,
Node targetNode)
Wires up the necessary bits on the source and target nodes so that the association is immediately bidirectional. |
java.lang.Long |
getId()
|
AssociationRef |
getNodeAssocRef(QNameDAO qnameDAO)
Convenience method to retrieve the association's reference |
Node |
getSource()
|
Node |
getTarget()
|
QName |
getTypeQName(QNameDAO qnameDAO)
Convenience method to retrieve the association's type QName |
java.lang.Long |
getTypeQNameId()
|
java.lang.Long |
getVersion()
|
void |
setTypeQName(QNameDAO qnameDAO,
QName typeQName)
Convenience method to set the association's type |
void |
setTypeQNameId(java.lang.Long typeQNameId)
|
Method Detail |
---|
void buildAssociation(Node sourceNode, Node targetNode)
The association attributes still have to be set.
sourceNode
- targetNode
- #setName(String)
AssociationRef getNodeAssocRef(QNameDAO qnameDAO)
qnameDAO
- helper DAO
QName getTypeQName(QNameDAO qnameDAO)
qnameDAO
- helper DAO
void setTypeQName(QNameDAO qnameDAO, QName typeQName)
qnameDAO
- the helper DAOtypeQName
- the association's type QNamejava.lang.Long getId()
java.lang.Long getVersion()
Node getSource()
Node getTarget()
java.lang.Long getTypeQNameId()
void setTypeQNameId(java.lang.Long typeQNameId)
typeQNameId
- the association's dictionary type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |