|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.service.cmr.repository.AssociationRef
public class AssociationRef
This class represents a regular, named node relationship between two nodes.
Note that the ID of the association might not be populated.
Constructor Summary | |
---|---|
AssociationRef(java.lang.Long id,
NodeRef sourceRef,
QName assocTypeQName,
NodeRef targetRef)
Construct a representation of a source --- name ----> target relationship. |
|
AssociationRef(NodeRef sourceRef,
QName assocTypeQName,
NodeRef targetRef)
Construct a representation of a source --- name ----> target relationship. |
|
AssociationRef(java.lang.String assocRefStr)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares: AssociationRef.sourceRef
AssociationRef.targetRef
AssociationRef.assocTypeQName
|
java.lang.Long |
getId()
Gets the unique identifier for this association. |
NodeRef |
getSourceRef()
|
NodeRef |
getTargetRef()
|
QName |
getTypeQName()
Get the qualified name of the source-target association |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AssociationRef(NodeRef sourceRef, QName assocTypeQName, NodeRef targetRef)
sourceRef
- the source reference - never nullassocTypeQName
- the qualified name of the association type - never nulltargetRef
- the target node reference - never null.public AssociationRef(java.lang.Long id, NodeRef sourceRef, QName assocTypeQName, NodeRef targetRef)
id
- unique identifier - may be nullsourceRef
- the source reference - never nullassocTypeQName
- the qualified name of the association type - never nulltargetRef
- the target node reference - never null.public AssociationRef(java.lang.String assocRefStr)
childAssocRefStr
- a string of the form id|sourceNodeRef|targetNodeRef|assocTypeQName.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Long getId()
public QName getTypeQName()
public NodeRef getTargetRef()
public NodeRef getSourceRef()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |