Interface IStructure
- All Superinterfaces:
IChangeGenerator,IChangeListener,IHasCustomValues,IHasValues
- All Known Subinterfaces:
IApprovalStruct,IBaselineCollectionElement,IBuildDeploymentArtifact,IBuildEvent,IBuildEvents,IBuildLinkedWorkItemStruct,IBuildTestResults,IExternallyLinkedWorkItemStruct,IFeatureSelection,IFeatureSelectionItem,IHyperlinkStruct,ILinkedOslcResourceStruct,ILinkedRevisionStruct,ILinkedWorkItemStruct,IModule.IOutlineNumberingDef,IModule.IRenderingLayoutStruct,IModule.IStructureNode,IModuleComment.IImportedCommentStruct,IParameterDefinitionStruct,IParametersAndDefinitionsStruct,IParameterStruct<T>,IPlanningConstraintStruct,IPlanRecord,IRow,ISignature,ISignatureData,ITable,ITestRecord,ITestStep,ITestStepResult,ITestSteps
- All Known Implementing Classes:
Structure
Structure, which wraps underlying
Map in from IDataObject
to the level of the IPObjects.
It has several functions:
- Translates
SubterraURIs toIPObjects (in case of reference type keys). - Propagates the dirty flag to the owner object.
- Checks the type of inserted items against model.
- Protects the read only collections.
-
Method Summary
Modifier and TypeMethodDescriptiongetEnumeration(String key) Returns theIEnumerationif this one was registered for specific key ornull.getEnumerationOptionForField(String key, String optionId) Returns wrapped enumeration option for given field.Returns the wrapped value.booleanbooleanbooleanisReadOnly(String key) voidMethods inherited from interface com.polarion.platform.persistence.model.IChangeGenerator
setChangeOwnerMethods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChangedMethods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomField
-
Method Details
-
getPrototype
IStructType getPrototype() -
getValue
Returns the wrapped value.- Specified by:
getValuein interfaceIHasValues- Parameters:
key-
-
setValue
- Specified by:
setValuein interfaceIHasValues
-
isReadOnly
boolean isReadOnly()- Returns:
trueif the whole structure is read-only,falseotherwise.- See Also:
-
isReadOnly
- Returns:
trueif the whole structure is read-only or if the given key is defined and is read-only,falseotherwise.- See Also:
-
isModified
boolean isModified()- Returns:
Trueis this object was modified since it's load,falseotherwise.- Since:
- 3.2.0
-
getEnumeration
Returns theIEnumerationif this one was registered for specific key ornull.This is a convenience method, which calls the appropriate method on the
IDataService- Parameters:
key- the key of some field of the structure- Returns:
- the enumeration factory or
null
-
getEnumerationTypeForField
- Returns:
- the Optional of
IEnumTypefor the given field if it is of enum or multi-enum type, otherwise returns Optional.empty(). - Since:
- 3.21.1
-
getEnumerationOptionForField
Returns wrapped enumeration option for given field.- Parameters:
key- field name (notnull)optionId- option id- Returns:
- wrapped option (
nullif and only ifoptionIdisnull) - Throws:
UnknownKeyException- if the field is not valid or of enumeration type- Since:
- 3.21.2
- See Also:
-