Class PrometheusDataValues
java.lang.Object
io.github.tonywasher.joceanus.prometheus.data.PrometheusDataValues
Arguments class for DataItem.
- Author:
- Tony Washer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface for a grouped item.static final classInfoItem class.static interfaceInterface for an infoSet item. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructor.protectedPrometheusDataValues(PrometheusDataItem pItem, String pItemName) Constructor.PrometheusDataValues(String pName) Constructor.PrometheusDataValues(Element pElement, MetisFieldItem.MetisFieldSetDef pFields) Constructor.protectedPrometheusDataValues(Element pElement, MetisFieldItem.MetisFieldSetDef pFields, String pItemName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValue(MetisDataItem.MetisDataFieldId pField, Object pValue) Add value.final Iterator<PrometheusDataValues> Obtain Child iterator.protected ElementcreateXML(Document pDocument, OceanusDataFormatter pFormatter, boolean pStoreIds) Create XML element for item.Obtain Field iterator.final StringObtain Item Type.Obtain value.<T> TgetValue(MetisDataItem.MetisDataFieldId pField, Class<T> pClass) Obtain value of specified class.final booleanDoes this item have children?final booleanDoes this item have InfoItems?Obtain InfoItems iterator.
-
Field Details
-
ATTR_TYPE
List type attribute. -
ATTR_SIZE
List size attribute. -
ATTR_VERS
Data Version attribute.
-
-
Constructor Details
-
PrometheusDataValues
Constructor.- Parameters:
pItem- the Item to obtain values frompItemName- the item name
-
PrometheusDataValues
Constructor.- Parameters:
pElement- the Item to obtain values frompFields- the field definitions
-
PrometheusDataValues
protected PrometheusDataValues(Element pElement, MetisFieldItem.MetisFieldSetDef pFields, String pItemName) Constructor.- Parameters:
pElement- the Item to obtain values frompFields- the field definitionspItemName- the item name
-
PrometheusDataValues
Constructor.- Parameters:
pName- the Item type
-
PrometheusDataValues
Constructor.- Parameters:
pItem- the Item to obtain values from
-
-
Method Details
-
getItemType
Obtain Item Type.- Returns:
- the Item Type
-
fieldIterator
Obtain Field iterator.- Returns:
- the Field iterator
-
hasInfoItems
public final boolean hasInfoItems()Does this item have InfoItems?- Returns:
- true/false
-
infoIterator
Obtain InfoItems iterator.- Returns:
- the iterator
-
hasChildren
public final boolean hasChildren()Does this item have children?- Returns:
- true/false
-
childIterator
Obtain Child iterator.- Returns:
- the iterator
-
addValue
Add value.- Parameters:
pField- the Field definitionpValue- the field value
-
getValue
Obtain value.- Parameters:
pField- the Field definition- Returns:
- the field value
-
getValue
Obtain value of specified class.- Type Parameters:
T- the item type- Parameters:
pField- the Field definitionpClass- the class- Returns:
- the field value
-
createXML
Create XML element for item.- Parameters:
pDocument- the document to hold the item.pFormatter- the data formatterpStoreIds- do we include IDs in XML- Returns:
- the new element
-