|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.service.relation.operands.AbstractRelationOperand
com.sapportals.wcm.service.relation.operands.ResourceOperand
IRelationOperand implementation for IResource s.
| Field Summary | |
protected IResource |
resource
|
protected RID |
rid
|
| Constructor Summary | |
ResourceOperand(IResource resource)
Create a RelationOperand out of a IResource . |
|
ResourceOperand(RID rid)
Create a RelationOperand out of a IResource . |
|
| Method Summary | |
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. |
| Methods inherited from class com.sapportals.wcm.service.relation.operands.AbstractRelationOperand |
getRelationBySource, getRelationByTarget, getRelationsBySource, getRelationsBySource, getRelationsBySource, getRelationsByTarget, getRelationsByTarget, getRelationsByTarget |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected IResource resource
protected RID rid
| Constructor Detail |
public 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 parameter
InvalidArgumentException - if the given resource is
null .| Method Detail |
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 boolean equals(Object object)
public IRelationOperandType getType()
throws ResourceException
IRelationOperand
getType in interface IRelationOperandgetType in class AbstractRelationOperandResourceException
public String getID()
throws ResourceException
IRelationOperand
getID in interface IRelationOperandgetID in class AbstractRelationOperandResourceExceptionpublic Object getObject()
IRelationOperand
getObject in interface IRelationOperandgetObject in class AbstractRelationOperand
public IResource asResource()
throws ResourceException
IRelationOperand
asResource in interface IRelationOperandasResource in class AbstractRelationOperandResourceException
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||