@AlfrescoPublicApi public class AssociationRef extends java.lang.Object implements EntityRef, java.io.Serializable
Note that the ID of the association might not be populated.
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
|
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() |
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.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()
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.