|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A IRelation s operand - the so called source or target
of a relation.
IRelationOperand s belong to a . The wrap the objects they reference to enable
type checking within the relation service. IRelationOperandType
Each IRelationOperand implementation should also implement the
method getValue() to retrieve the operands wrapped object
without a type cast.
| Method Summary | |
IResource |
asResource()
Get the relation operand as resource, if this operand is managed by a repository manager. |
java.lang.String |
getID()
Get the relation operand's unique id. |
java.lang.Object |
getObject()
Get the relation operand's unwrapped object. |
IRelation |
getRelationBySource(IRelationType type,
IRelationOperand target)
same as type.getRelation(this, target); |
IRelation |
getRelationByTarget(IRelationType type,
IRelationOperand source)
same as type.getRelation(source, this); |
IRelationList |
getRelationsBySource(IRelationType type)
same as type.getRelationBySource(this); |
IRelationList |
getRelationsBySource(IResourceContext context)
same as IRelationService.getRelationsBySource(context, this); |
IRelationList |
getRelationsBySource(IResourceContext context,
IRelationOperand target)
same as IRelationService.getRelations(context, this, target); |
IRelationList |
getRelationsByTarget(IRelationType type)
same as type.getRelationByTarget(this); |
IRelationList |
getRelationsByTarget(IResourceContext context)
same as IRelationService.getRelationsByTarget(context, this); |
IRelationList |
getRelationsByTarget(IResourceContext context,
IRelationOperand source)
same as IRelationService.getRelations(source, this); |
IRelationOperandType |
getType()
Get the relation operand's type. |
| Method Detail |
public IRelationOperandType getType()
throws ResourceException
IRelationOperandType with the type of this operand.ResourceException - an error occured while retrieving
the operand's type.
public java.lang.String getID()
throws ResourceException
String 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 java.lang.Object getObject()
Object with the unwrapped operand, referenced by
this IRelationOperand .
public IResource asResource()
throws ResourceException
IResource 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.
public IRelationList getRelationsBySource(IResourceContext context)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
IRelationService.getRelationsBySource(context, this);context - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situation
public IRelationList getRelationsBySource(IRelationType type)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
type.getRelationBySource(this);type - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situation
public IRelationList getRelationsBySource(IResourceContext context,
IRelationOperand target)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
IRelationService.getRelations(context, this, target);context - TBD: Description of the incoming method parametertarget - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situation
public IRelation getRelationBySource(IRelationType type,
IRelationOperand target)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
type.getRelation(this, target);type - TBD: Description of the incoming method parametertarget - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situation
public IRelationList getRelationsByTarget(IResourceContext context)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
IRelationService.getRelationsByTarget(context, this);context - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situation
public IRelationList getRelationsByTarget(IRelationType type)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
type.getRelationByTarget(this);type - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situation
public IRelationList getRelationsByTarget(IResourceContext context,
IRelationOperand source)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
IRelationService.getRelations(source, this);context - TBD: Description of the incoming method parametersource - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situation
public IRelation getRelationByTarget(IRelationType type,
IRelationOperand source)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
type.getRelation(source, this);type - TBD: Description of the incoming method parametersource - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situation
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||