public class StringOperand extends AbstractRelationOperand
IRelationOperand
implementation for String
s. Constructor and Description |
---|
StringOperand(String string)
Create a
StringOperand out of a String . |
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.
|
Object |
getObject()
Get the relation operand's unwrapped object.
|
IRelationOperandType |
getType()
Get the relation operand's type.
|
String |
getValue()
Get the wrapped string.
|
int |
hashCode() |
getRelationBySource, getRelationByTarget, getRelationsBySource, getRelationsBySource, getRelationsBySource, getRelationsByTarget, getRelationsByTarget, getRelationsByTarget
public StringOperand(String string) throws InvalidArgumentException
StringOperand
out of a String
.string
- the String
to wrap.InvalidArgumentException
- , if the given string is
null
.public String getValue()
String
for this operand.public IRelationOperandType getType() throws ResourceException
IRelationOperand
getType
in interface IRelationOperand
getType
in class AbstractRelationOperand
IRelationOperandType
with the type of this operand.ResourceException
- an error occured while retrieving
the operand's type.public String getID() throws ResourceException
IRelationOperand
getID
in interface IRelationOperand
getID
in class AbstractRelationOperand
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 Object getObject()
IRelationOperand
getObject
in interface IRelationOperand
getObject
in class AbstractRelationOperand
Object
with the unwrapped operand, referenced by
this IRelationOperand
.public IResource asResource() throws ResourceException
IRelationOperand
asResource
in interface IRelationOperand
asResource
in class AbstractRelationOperand
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.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 2018 SAP AG Complete Copyright Notice