Class EnumerationReference
java.lang.Object
com.polarion.alm.shared.api.model.ModelEntityReferenceBase<Enumeration,EnumerationReference>
com.polarion.alm.shared.api.model.eo.EnumerationReference
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,HasId
,HasProjectId
,ModelEntityReference
,Serializable
public final class EnumerationReference
extends ModelEntityReferenceBase<Enumeration,EnumerationReference>
implements HasId, HasProjectId
- Since:
- 3.9.0
- See Also:
-
Constructor Summary
ConstructorDescriptionEnumerationReference
(String id, String type, Scope scope) EnumerationReference
(String id, String type, String projectId) -
Method Summary
Modifier and TypeMethodDescriptioncreateReferenceForObjectBasedEnum
(String additionalValue) Returns the same instance when this is not reference to object based enumeration.createReferenceForScope
(Scope scope) createReferenceForType
(String type) boolean
get
(ReadOnlyTransaction transaction) Returns the entity referenced by this reference.static String
Returns the input String when it is not id of object based enumeration.static String
int
hashCode()
id()
boolean
boolean
For non-object based enumeration it just compares IDsscope()
toPath()
Returns type specific unique identification path of the object, for example for Work Items in project it is 'projectId/workItemId'.
It ignores requested revision.type()
Methods inherited from class com.polarion.alm.shared.api.model.ModelEntityReferenceBase
toString
-
Constructor Details
-
EnumerationReference
- Parameters:
type
- - empty string or string containing only white space characters is treated as nullprojectId
- - null means global scope- Throws:
IllegalArgumentException
- when id is empty string- Since:
- 3.19.2
-
Method Details
-
id
-
type
-
scope
-
projectId
- Specified by:
projectId
in interfaceHasProjectId
-
toPath
Description copied from interface:ModelEntityReference
Returns type specific unique identification path of the object, for example for Work Items in project it is 'projectId/workItemId'.
It ignores requested revision.- Specified by:
toPath
in interfaceModelEntityReference
- See Also:
-
createReferenceForType
-
createReferenceForObjectBasedEnum
@NotNull public EnumerationReference createReferenceForObjectBasedEnum(@Nullable String additionalValue) Returns the same instance when this is not reference to object based enumeration. -
getObjectBasedEnumIdPrefix
Returns the input String when it is not id of object based enumeration. -
getObjectBaseEnumValue
-
hashCode
public int hashCode() -
equals
-
isObjectBased
public boolean isObjectBased()- Returns:
- true if this is reference to object based enumeration.
- Since:
- 3.9.2
-