org.eclipse.smila.jobmanager
Class DataObjectTypeDefinition
java.lang.Object
org.eclipse.smila.jobmanager.DefinitionBase
org.eclipse.smila.jobmanager.DataObjectTypeDefinition
public class DataObjectTypeDefinition
- extends DefinitionBase
Container class for data object type definition elements.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
KEY_DATA_OBJECT_TYPE_DEFINITIONS
public static final java.lang.String KEY_DATA_OBJECT_TYPE_DEFINITIONS
- Property for data object types in json.
- See Also:
- Constant Field Values
DataObjectTypeDefinition
public DataObjectTypeDefinition(AnyMap dotAny)
throws InvalidConfigException
- Constructor for DataObjectTypeDefinition.
- Parameters:
dotAny - The any Object with one dataObjectTypeDefinition
- Throws:
InvalidConfigException - exception if the any object is not filled with all desired values
toAny
public AnyMap toAny(boolean includingAdditionalAttributes)
- Returns this object as an Any representation.
- Overrides:
toAny in class DefinitionBase
- Parameters:
includingAdditionalAttributes - 'true' if also any additional information in the AnyMap should be returned, 'false' if only the (minimal
set of) relevant information should be returned.
- Returns:
- Any object describing this object
parseDataObjectTypeDefinitions
public static java.util.Collection<DataObjectTypeDefinition> parseDataObjectTypeDefinitions(AnyMap dataObjectTypeDefinitionsAny,
boolean setReadOnly)
throws InvalidConfigException
- Parameters:
dataObjectTypeDefinitionsAny - The any object with the desired valuessetReadOnly - if 'true' the resulting definitions will have the readOnly flag set to 'true'
- Returns:
- the collection the data object type definitions
- Throws:
InvalidConfigException - exception if the any object is not filled with all desired values
getObject
public ValueExpression getObject(DataObjectTypeDefinition.Mode mode)
- Parameters:
mode - the mode
- Returns:
- the object expression for the given mode
getStore
public ValueExpression getStore(DataObjectTypeDefinition.Mode mode)
- Parameters:
mode - the mode
- Returns:
- the store expression for the given mode
hasPersistentMode
public boolean hasPersistentMode()
- Returns:
- true, if data object type has persistent mode definition.
hasTransientMode
public boolean hasTransientMode()
- Returns:
- true, if data object type has transient mode definition.