Class PrometheusStaticDataItem
java.lang.Object
io.github.tonywasher.joceanus.metis.field.MetisFieldVersionedItem
io.github.tonywasher.joceanus.prometheus.data.PrometheusDataItem
io.github.tonywasher.joceanus.prometheus.data.PrometheusEncryptedDataItem
io.github.tonywasher.joceanus.prometheus.data.PrometheusStaticDataItem
- All Implemented Interfaces:
MetisDataItem.MetisDataDeletableItem,MetisDataItem.MetisDataIndexedItem,MetisDataItem.MetisDataNamedItem,MetisDataItem.MetisDataObjectFormat,MetisFieldItem,MetisFieldItem.MetisFieldTableItem,MetisFieldItem.MetisFieldUpdatableItem,PrometheusTableItem,Comparable<Object>
public abstract class PrometheusStaticDataItem
extends PrometheusEncryptedDataItem
implements MetisDataItem.MetisDataNamedItem
Template for a Static Data item and List.
- Author:
- Tony Washer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe dataMap class.static classRepresents a list of StaticData objects.Nested classes/interfaces inherited from class io.github.tonywasher.joceanus.prometheus.data.PrometheusEncryptedDataItem
PrometheusEncryptedDataItem.PrometheusEncryptedList<T extends PrometheusEncryptedDataItem>Nested classes/interfaces inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldItem
MetisFieldItem.MetisFieldDef, MetisFieldItem.MetisFieldItemType, MetisFieldItem.MetisFieldSetDef, MetisFieldItem.MetisFieldTableItem, MetisFieldItem.MetisFieldUpdatableItem, MetisFieldItem.MetisFieldVersionedDefNested classes/interfaces inherited from interface io.github.tonywasher.joceanus.prometheus.data.PrometheusTableItem
PrometheusTableItem.PrometheusTableList<T extends PrometheusTableItem> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringBadId error.static final StringBadName error.Fields inherited from class io.github.tonywasher.joceanus.prometheus.data.PrometheusDataItem
DESCLEN, ERROR_CREATEITEM, ERROR_DISABLED, ERROR_DUPLICATE, ERROR_EXIST, ERROR_INVALIDCHAR, ERROR_LENGTH, ERROR_MISSING, ERROR_MULT, ERROR_NEGATIVE, ERROR_POSITIVE, ERROR_RANGE, ERROR_RESOLUTION, ERROR_UNKNOWN, ERROR_VALIDATION, ERROR_ZERO, NAMELEN -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPrometheusStaticDataItem(PrometheusStaticDataItem.PrometheusStaticList<?> pList, PrometheusDataValues pValues) Values constructor.protectedPrometheusStaticDataItem(PrometheusStaticDataItem.PrometheusStaticList<?> pList, PrometheusStaticDataClass pClass) Basic Constructor.protectedPrometheusStaticDataItem(PrometheusStaticDataItem.PrometheusStaticList<?> pList, PrometheusStaticDataItem pSource) Copy Constructor.protectedPrometheusStaticDataItem(PrometheusStaticDataItem.PrometheusStaticList<?> pList, String pValue) Basic Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdjust map for this item.protected voidApply basic changes.booleanapplyChanges(PrometheusDataItem pData) Apply changes to the item from a changed version.intcompareValues(PrometheusDataItem pThat) compareTo another dataItem.formatObject(OceanusDataFormatter pFormatter) Obtain Object summary.Obtain the fieldSet.final StringgetDesc()Return the description of the Static Data.final byte[]Return the encrypted description of the Static Data.final booleanIs the Static item enabled.protected final Class<? extends PrometheusStaticDataClass> Obtain the Enum class of this Static Data.getList()Obtain the list.final StringgetName()Get the Name.final byte[]Return the encrypted name of the Static Data.final IntegergetOrder()Return the sort order of the Static Data.Return the Static class of the Static Data.booleanIs the item to be included in output XML?booleanIs the item disabled?voidsetDescription(String pDesc) Set a new description.voidsetEnabled(boolean isEnabled) Set Enabled indicator.voidSet a new name.voidsetOrder(int iOrder) Set Order indicator.protected final voidsetValueDesc(String pValue) Set the Description.protected final voidsetValueEnabled(Boolean isEnabled) Set the Enabled flag.toString()Methods inherited from class io.github.tonywasher.joceanus.prometheus.data.PrometheusEncryptedDataItem
adoptSecurity, getDataKeySet, getDataKeySetId, getDifference, getEncryptor, getOriginalValues, getValues, initialiseSecurity, newVersionValues, resolveDataSetLinks, setDataKeySet, setDataKeySet, setEncryptedValue, setEncryptedValue, setEncryptedValue, setNextDataKeySet, updateSecurityMethods inherited from class io.github.tonywasher.joceanus.prometheus.data.PrometheusDataItem
addError, byteLength, clearActive, clearTouches, compareId, compareTo, deRegister, equals, fieldChanged, getBase, getBaseState, getDataSet, getFieldState, getItemState, getItemType, getNextVersion, getStyle, getTouchStatus, getValueSetVersion, hashCode, indexOf, isActive, isEditable, isHeader, isListLocked, isLocked, popHistory, removeItem, resolveDataLink, rewindToVersion, setBase, setHeader, setHistory, setNewVersion, setValidEdit, touchItem, touchOnUpdate, touchUnderlyingItems, unLink, updateMaps, validate, validStringMethods inherited from class io.github.tonywasher.joceanus.metis.field.MetisFieldVersionedItem
adjustState, checkForHistory, clearErrors, clearHistory, condenseHistory, fieldChanged, getEditState, getFieldErrors, getFieldErrors, getFirstError, getIndexedId, getOriginalVersion, getState, getValidation, getValuesHistory, getVersion, getVersionedField, hasChanges, hasErrors, hasErrors, hasHistory, isDeleted, isValid, maybePopHistory, pushHistory, pushHistory, resetHistory, setDeleted, setEditState, setHistory, setIndexedId, setItemType, setValuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.tonywasher.joceanus.metis.data.MetisDataItem.MetisDataDeletableItem
isDeleted, setDeletedMethods inherited from interface io.github.tonywasher.joceanus.metis.data.MetisDataItem.MetisDataIndexedItem
getIndexedIdMethods inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldItem.MetisFieldUpdatableItem
checkForHistory, getFieldErrors, getFieldErrors, getValuesHistory, hasErrors, pushHistory, skipField
-
Field Details
-
ERROR_BADID
BadId error. -
ERROR_BADNAME
BadName error.
-
-
Constructor Details
-
PrometheusStaticDataItem
protected PrometheusStaticDataItem(PrometheusStaticDataItem.PrometheusStaticList<?> pList, PrometheusStaticDataItem pSource) Copy Constructor.- Parameters:
pList- The list to associate the Static Data withpSource- The static data to copy
-
PrometheusStaticDataItem
protected PrometheusStaticDataItem(PrometheusStaticDataItem.PrometheusStaticList<?> pList, String pValue) throws OceanusException Basic Constructor.- Parameters:
pList- The list to associate the Static Data withpValue- the name of the new item- Throws:
OceanusException- on error
-
PrometheusStaticDataItem
protected PrometheusStaticDataItem(PrometheusStaticDataItem.PrometheusStaticList<?> pList, PrometheusStaticDataClass pClass) throws OceanusException Basic Constructor.- Parameters:
pList- The list to associate the Static Data withpClass- the class of the new item- Throws:
OceanusException- on error
-
PrometheusStaticDataItem
protected PrometheusStaticDataItem(PrometheusStaticDataItem.PrometheusStaticList<?> pList, PrometheusDataValues pValues) throws OceanusException Values constructor.- Parameters:
pList- the List to add topValues- the values constructor- Throws:
OceanusException- on error
-
-
Method Details
-
getDataFieldSet
Description copied from interface:MetisFieldItemObtain the fieldSet.- Specified by:
getDataFieldSetin interfaceMetisFieldItem- Overrides:
getDataFieldSetin classMetisFieldVersionedItem- Returns:
- the fieldSet
-
formatObject
Description copied from interface:MetisDataItem.MetisDataObjectFormatObtain Object summary.- Specified by:
formatObjectin interfaceMetisDataItem.MetisDataObjectFormat- Overrides:
formatObjectin classPrometheusDataItem- Parameters:
pFormatter- the data formatter- Returns:
- the display summary of the object
-
toString
-
includeXmlField
Description copied from class:PrometheusDataItemIs the item to be included in output XML?- Overrides:
includeXmlFieldin classPrometheusDataItem- Parameters:
pField- the field to check- Returns:
- true/false
-
getName
Description copied from interface:MetisDataItem.MetisDataNamedItemGet the Name.- Specified by:
getNamein interfaceMetisDataItem.MetisDataNamedItem- Returns:
- the name
-
getNameBytes
public final byte[] getNameBytes()Return the encrypted name of the Static Data.- Returns:
- the encrypted name
-
getDesc
Return the description of the Static Data.- Returns:
- the description
-
getDescBytes
public final byte[] getDescBytes()Return the encrypted description of the Static Data.- Returns:
- the encrypted description
-
getOrder
Return the sort order of the Static Data.- Returns:
- the order
-
getStaticClass
Return the Static class of the Static Data.- Returns:
- the class
-
getEnabled
public final boolean getEnabled()Is the Static item enabled.- Returns:
true/false
-
isDisabled
public boolean isDisabled()Description copied from class:PrometheusDataItemIs the item disabled?- Overrides:
isDisabledin classPrometheusDataItem- Returns:
- true/false
-
getEnumClass
Obtain the Enum class of this Static Data.- Returns:
- the class
-
setValueDesc
Set the Description.- Parameters:
pValue- the description- Throws:
OceanusException- on error
-
setValueEnabled
Set the Enabled flag.- Parameters:
isEnabled- TRUE/FALSE
-
compareValues
Description copied from class:PrometheusDataItemcompareTo another dataItem.- Specified by:
compareValuesin classPrometheusDataItem- Parameters:
pThat- the DataItem to compare- Returns:
- the order
-
getList
Description copied from class:PrometheusDataItemObtain the list.- Overrides:
getListin classPrometheusEncryptedDataItem- Returns:
- the list
-
setName
Set a new name.- Parameters:
pName- the name- Throws:
OceanusException- on error
-
setDescription
Set a new description.- Parameters:
pDesc- the description- Throws:
OceanusException- on error
-
setEnabled
public void setEnabled(boolean isEnabled) Set Enabled indicator.- Parameters:
isEnabled- TRUE/FALSE
-
setOrder
public void setOrder(int iOrder) Set Order indicator.- Parameters:
iOrder- the order
-
applyChanges
Description copied from class:PrometheusDataItemApply changes to the item from a changed version. Overwritten by objects that have changes- Overrides:
applyChangesin classPrometheusDataItem- Parameters:
pData- the changed element.- Returns:
- were changes made?
-
applyBasicChanges
Apply basic changes.- Parameters:
pData- the changed element
-
adjustMapForItem
public void adjustMapForItem()Description copied from class:PrometheusDataItemAdjust map for this item.- Overrides:
adjustMapForItemin classPrometheusDataItem
-