|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChildAssoc
Represents a special type of association between nodes, that of the parent-child relationship.
Method Summary | |
---|---|
void |
buildAssociation(Node parentNode,
Node childNode)
Performs the necessary work on the provided nodes to ensure that a bidirectional association is properly set up. |
Node |
getChild()
|
ChildAssociationRef |
getChildAssocRef(QNameDAO qnameDAO)
A convenience method to get a reference to this association. |
java.lang.String |
getChildNodeName()
|
long |
getChildNodeNameCrc()
|
java.lang.Long |
getId()
|
int |
getIndex()
|
boolean |
getIsPrimary()
|
Node |
getParent()
|
QName |
getQName(QNameDAO qnameDAO)
A convenience method to aggregate the qualified name's namespace and localname into a single qualified name. |
long |
getQnameCrc()
|
java.lang.String |
getQnameLocalName()
|
java.lang.Long |
getQnameNamespaceId()
|
QName |
getTypeQName(QNameDAO qnameDAO)
Convenience method to get the association's type |
java.lang.Long |
getTypeQNameId()
|
java.lang.Long |
getVersion()
|
void |
removeAssociation()
Performs the necessary work on the parent and
child nodes to maintain the inverse association sets |
void |
setChildNodeName(java.lang.String childNodeName)
|
void |
setChildNodeNameCrc(long crc)
|
void |
setIndex(int index)
Set the index of this association |
void |
setIsPrimary(boolean isPrimary)
|
void |
setQName(QNameDAO qnameDAO,
QName qname)
Convenience method to set the association's qname |
void |
setQnameCrc(long crc)
|
void |
setQnameLocalName(java.lang.String localName)
|
void |
setQnameNamespaceId(java.lang.Long namespaceId)
|
void |
setTypeQName(QNameDAO qnameDAO,
QName typeQName)
Convenience method to set the association's type |
void |
setTypeQNameId(java.lang.Long typeQNameId)
|
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
void buildAssociation(Node parentNode, Node childNode)
The association attributes still have to be set up.
parentNode
- childNode
- #setName(String)
,
ChildAssoc.setIsPrimary(boolean)
void removeAssociation()
parent
and
child
nodes to maintain the inverse association sets
ChildAssociationRef getChildAssocRef(QNameDAO qnameDAO)
qnameDAO
- the DAO to resolve the qname references
QName getTypeQName(QNameDAO qnameDAO)
qnameDAO
- the helper DAO
void setTypeQName(QNameDAO qnameDAO, QName typeQName)
qnameDAO
- the helper DAOtypeQName
- the association's type QNameQName getQName(QNameDAO qnameDAO)
void setQName(QNameDAO qnameDAO, QName qname)
qnameDAO
- the helper DAOqname
- the association's QNamejava.lang.Long getId()
java.lang.Long getVersion()
Node getParent()
Node getChild()
java.lang.Long getTypeQNameId()
void setTypeQNameId(java.lang.Long typeQNameId)
typeQNameId
- the association's dictionary typejava.lang.String getChildNodeName()
void setChildNodeName(java.lang.String childNodeName)
childNodeName
- the name of the child node, which may be truncated and
terminated with ... in order to not exceed 50 characters.long getChildNodeNameCrc()
void setChildNodeNameCrc(long crc)
crc
- the crc valuejava.lang.Long getQnameNamespaceId()
void setQnameNamespaceId(java.lang.Long namespaceId)
namespaceId
- the namespace of the association's local QNamejava.lang.String getQnameLocalName()
void setQnameLocalName(java.lang.String localName)
localName
- the localname of the association's local QNamelong getQnameCrc()
void setQnameCrc(long crc)
crc
- the crc valueboolean getIsPrimary()
void setIsPrimary(boolean isPrimary)
int getIndex()
void setIndex(int index)
index
- the association index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |