Class SolutionId
- java.lang.Object
-
- de.fraunhofer.iese.mydata.common.MyDataEntity
-
- de.fraunhofer.iese.mydata.solution.SolutionId
-
- All Implemented Interfaces:
Serializable
@Embeddable public class SolutionId extends MyDataEntity implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SolutionId()
SolutionId(String urnOrIdentifier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static SolutionId
fromActionId(ActionId aid)
static SolutionId
fromClientId(ClientId clientId)
static SolutionId
fromComponentId(ComponentId componentId)
static SolutionId
fromInfoId(InfoId iid)
static SolutionId
fromPolicyId(PolicyId pid)
static SolutionId
fromTimerId(TimerId tid)
String
getIdentifier()
int
hashCode()
void
setIdentifier(String identifier)
void
setUrn(String urnOrIdentifier)
String
toString()
-
Methods inherited from class de.fraunhofer.iese.mydata.common.MyDataEntity
fromJson, getGson, getGson, toJson, validate, validateAndNullCheck
-
-
-
-
Constructor Detail
-
SolutionId
public SolutionId()
-
SolutionId
public SolutionId(String urnOrIdentifier)
- Parameters:
urnOrIdentifier
- will be set to the urn if starts with "urn:solution:", else the prefix will be add and set as urn
-
-
Method Detail
-
fromPolicyId
public static SolutionId fromPolicyId(PolicyId pid) throws InvalidEntityException
- Throws:
InvalidEntityException
-
fromTimerId
public static SolutionId fromTimerId(TimerId tid) throws InvalidEntityException
- Throws:
InvalidEntityException
-
fromActionId
public static SolutionId fromActionId(ActionId aid) throws InvalidEntityException
- Throws:
InvalidEntityException
-
fromComponentId
public static SolutionId fromComponentId(ComponentId componentId) throws InvalidEntityException
- Throws:
InvalidEntityException
-
fromClientId
public static SolutionId fromClientId(ClientId clientId)
-
fromInfoId
public static SolutionId fromInfoId(InfoId iid) throws InvalidEntityException
- Throws:
InvalidEntityException
-
setUrn
public void setUrn(String urnOrIdentifier)
- Parameters:
urnOrIdentifier
- will be set to the urn if starts with "urn:solution:", else the prefix will be add and set as urn
-
toString
public String toString()
- Overrides:
toString
in classMyDataEntity
-
getIdentifier
public String getIdentifier() throws InvalidEntityException
- Throws:
InvalidEntityException
-
setIdentifier
public void setIdentifier(String identifier) throws InvalidEntityException
- Throws:
InvalidEntityException
-
-