public class DefinitionBase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected AnyMap |
_definitionMap
Any Map from creation, so additional properties from the AnyMap parsed are retained.
|
protected java.lang.String |
_name
The name of the worker definition (mandatory).
|
protected boolean |
_readOnly
optional read-only flag.
|
protected java.util.Date |
_timestamp
optional timestamp for this definition.
|
static java.lang.String |
KEY_NAME
Property for name in json.
|
static java.lang.String |
KEY_READ_ONLY
Property for readOnly in json.
|
static java.lang.String |
KEY_TIMESTAMP
timestamp for this workflow (optional).
|
| Modifier | Constructor and Description |
|---|---|
|
DefinitionBase(AnyMap definitionMap)
Constructor for WorkerDefinition.
|
protected |
DefinitionBase(java.lang.String name)
Create a new
DefinitionBase from an overriding definition. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
java.util.Date |
getTimestamp() |
boolean |
isReadOnly() |
AnyMap |
toAny()
Returns the object as an Any representation.
|
AnyMap |
toAny(boolean includingAdditionalAttributes)
Returns object information as an Any representation.
|
java.lang.String |
toString() |
protected boolean |
validateName()
override in subclasses to disable name validation.
|
public static final java.lang.String KEY_TIMESTAMP
public static final java.lang.String KEY_NAME
public static final java.lang.String KEY_READ_ONLY
protected final java.lang.String _name
protected final AnyMap _definitionMap
protected final java.util.Date _timestamp
protected final boolean _readOnly
public DefinitionBase(AnyMap definitionMap) throws InvalidDefinitionException
definitionMap - The any Object with one definitionInvalidDefinitionException - exception if the any object is not filled with all desired valuesprotected DefinitionBase(java.lang.String name)
DefinitionBase from an overriding definition. Timestamp will be set to "now", readonly will be
false.name - the name of the definition.protected boolean validateName()
public java.lang.String getName()
public java.util.Date getTimestamp()
public boolean isReadOnly()
public AnyMap toAny()
public java.lang.String toString()
toString in class java.lang.Objectpublic AnyMap toAny(boolean includingAdditionalAttributes)
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.