@AlfrescoPublicApi public class AssociationRef extends Object implements EntityRef, Serializable
Note that the ID of the association might not be populated.
Constructor and Description |
---|
AssociationRef(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(String assocRefStr) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
|
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() |
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(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(String assocRefStr)
assocRefStr
- a string of the form id|sourceNodeRef|targetNodeRef|assocTypeQName.public String toString()
public boolean equals(Object o)
public Long getId()
public QName getTypeQName()
public NodeRef getTargetRef()
public NodeRef getSourceRef()
Copyright © 2005–2017 Alfresco Software. All rights reserved.