public class ResourceOperand extends AbstractRelationOperand
IRelationOperand implementation for IResource s.
| Modifier and Type | Field and Description |
|---|---|
protected IResource |
resource |
protected RID |
rid |
| Constructor and Description |
|---|
ResourceOperand(IResource resource)
Create a
RelationOperand out of a IResource . |
ResourceOperand(RID rid)
Create a
RelationOperand out of a IResource . |
| Modifier and Type | Method and Description |
|---|---|
IResource |
asResource()
Get the relation operand as resource, if this operand is managed by a
repository manager.
|
boolean |
equals(Object object) |
String |
getID()
Get the relation operand's unique id.
|
IResource |
getLinkValue()
If the wrapped resource is an internal link, return the target of the link
(following several links). if it's not a internal link just return the
resource.
|
Object |
getObject()
Get the relation operand's unwrapped object.
|
IRelationOperandType |
getType()
Get the relation operand's type.
|
IResource |
getValue()
Get the wrapped resource.
|
int |
hashCode() |
getRelationBySource, getRelationByTarget, getRelationsBySource, getRelationsBySource, getRelationsBySource, getRelationsByTarget, getRelationsByTarget, getRelationsByTargetpublic ResourceOperand(IResource resource) throws InvalidArgumentException
RelationOperand out of a IResource .resource - the IResource to wrap.InvalidArgumentException - if the given resource is
null .public ResourceOperand(RID rid) throws InvalidArgumentException
RelationOperand out of a IResource .rid - TBD: Description of the incoming method parameterInvalidArgumentException - if the given resource is
null .public IResource getValue()
IResource for this operand.public IResource getLinkValue() throws ResourceException
IResource for this operand if it's not an internal
link, otherwise the target of this operand.ResourceException - Exception raised in failure situationpublic IRelationOperandType getType() throws ResourceException
IRelationOperandgetType in interface IRelationOperandgetType in class AbstractRelationOperandIRelationOperandType with the type of this operand.ResourceException - an error occured while retrieving
the operand's type.public String getID() throws ResourceException
IRelationOperandgetID in interface IRelationOperandgetID in class AbstractRelationOperandString with the unique id of this operand. the id is
only unique within the operand's type.ResourceException - an error occured while retrieving
the operand's id.public Object getObject()
IRelationOperandgetObject in interface IRelationOperandgetObject in class AbstractRelationOperandObject with the unwrapped operand, referenced by
this IRelationOperand .public IResource asResource() throws ResourceException
IRelationOperandasResource in interface IRelationOperandasResource in class AbstractRelationOperandIResource with the resource represented by this
operand. returns null , if this operand can not be
converted to a resource.ResourceException - an error occured while retrieving
the operand's resource.| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2017 SAP AG Complete Copyright Notice