Class SolutionId
java.lang.Object
de.fraunhofer.iese.mydata.common.MyDataEntity
de.fraunhofer.iese.mydata.solution.SolutionId
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SolutionIdfromActionId(ActionId aid) static SolutionIdfromClientId(ClientId clientId) static SolutionIdfromComponentId(ComponentId componentId) static SolutionIdfromInfoId(InfoId iid) static SolutionIdfromPolicyId(PolicyId pid) static SolutionIdfromTimerId(TimerId tid) inthashCode()voidsetIdentifier(String identifier) voidtoString()Methods inherited from class de.fraunhofer.iese.mydata.common.MyDataEntity
fromJson, getGson, getGson, toJson, validate, validateAndNullCheck
-
Constructor Details
-
SolutionId
public SolutionId() -
SolutionId
- Parameters:
urnOrIdentifier- will be set to the urn if starts with "urn:solution:", else the prefix will be add and set as urn
-
-
Method Details
-
fromPolicyId
- Throws:
InvalidEntityException
-
fromTimerId
- Throws:
InvalidEntityException
-
fromActionId
- Throws:
InvalidEntityException
-
fromComponentId
- Throws:
InvalidEntityException
-
fromClientId
-
fromInfoId
- Throws:
InvalidEntityException
-
setUrn
- Parameters:
urnOrIdentifier- will be set to the urn if starts with "urn:solution:", else the prefix will be add and set as urn
-
toString
- Overrides:
toStringin classMyDataEntity
-
equals
-
hashCode
public int hashCode() -
getIdentifier
- Throws:
InvalidEntityException
-
setIdentifier
- Throws:
InvalidEntityException
-