public class AttributeProtocolData extends ProtocolData
isDefined()
, isPlain()
usw. an, auch wenn die Attributgruppe diese Daten eigentlich nicht unterstützen würde. Besonders wichtig ist dies bei
Fehlermeldungen von PuA (wie z.B. einer Division durch 0, oder einem "Keine Daten"-Datensatz), da hier die Meldung unabhängig vom Attributtyp über
asTextValue()
abgerufen werden kann.de.bsvrz.dav.daf.main.Data.Array, de.bsvrz.dav.daf.main.Data.FormatException, de.bsvrz.dav.daf.main.Data.NumberArray, de.bsvrz.dav.daf.main.Data.NumberValue, de.bsvrz.dav.daf.main.Data.ReferenceArray, de.bsvrz.dav.daf.main.Data.ReferenceValue, de.bsvrz.dav.daf.main.Data.TextArray, de.bsvrz.dav.daf.main.Data.TextValue, de.bsvrz.dav.daf.main.Data.TimeArray, de.bsvrz.dav.daf.main.Data.TimeValue
Constructor and Description |
---|
AttributeProtocolData(de.bsvrz.dav.daf.main.config.Attribute attribute,
de.bsvrz.dav.daf.main.config.ObjectLookup dataModel,
ResultValue value)
Erstellt eine neue Instanz anhand eines Attributs
|
AttributeProtocolData(de.bsvrz.dav.daf.main.config.AttributeType attributeType,
de.bsvrz.dav.daf.main.config.ObjectLookup dataModel,
ResultValue value)
Erstellt eine neue Instanz anhand eines Attributtyps
|
Modifier and Type | Method and Description |
---|---|
de.bsvrz.dav.daf.main.Data.Array |
asArray() |
de.bsvrz.dav.daf.main.Data.ReferenceArray |
asReferenceArray() |
de.bsvrz.dav.daf.main.Data.ReferenceValue |
asReferenceValue() |
de.bsvrz.dav.daf.main.Data.NumberArray |
asScaledArray() |
de.bsvrz.dav.daf.main.Data.NumberValue |
asScaledValue() |
de.bsvrz.dav.daf.main.Data.TextArray |
asTextArray() |
de.bsvrz.dav.daf.main.Data.TextValue |
asTextValue() |
de.bsvrz.dav.daf.main.Data.TimeArray |
asTimeArray() |
de.bsvrz.dav.daf.main.Data.TimeValue |
asTimeValue() |
de.bsvrz.dav.daf.main.Data.NumberArray |
asUnscaledArray() |
de.bsvrz.dav.daf.main.Data.NumberValue |
asUnscaledValue() |
de.bsvrz.dav.daf.main.Data |
createUnmodifiableCopy() |
de.bsvrz.dav.daf.main.config.AttributeType |
getAttributeType() |
protected java.util.List<de.bsvrz.dav.daf.main.Data> |
getChildrenList() |
de.bsvrz.dav.daf.main.Data |
getItem(java.lang.String itemName) |
java.lang.String |
getName() |
boolean |
isArray() |
boolean |
isDefined() |
boolean |
isError()
Gibt true zurück, wenn es sich um einen von PuA generierten Fehlerwert handelt.
|
boolean |
isList() |
boolean |
isNoChange()
Gibt true zurück, wenn es sich bei diesem Wert um eine NoChange-Markierung handelt.
|
boolean |
isPlain() |
convertDataToList, createModifiableCopy, equals, equals, getArray, getReferenceArray, getReferenceValue, getScaledArray, getScaledValue, getTextArray, getTextValue, getTimeArray, getTimeValue, getUnscaledArray, getUnscaledValue, hashCode, isNoChange, iterator, setToDefault, toString, valueToString
public AttributeProtocolData(de.bsvrz.dav.daf.main.config.AttributeType attributeType, de.bsvrz.dav.daf.main.config.ObjectLookup dataModel, ResultValue value) throws java.lang.IllegalArgumentException
attributeType
- AttributtypdataModel
- dataModelvalue
- Wert von PuAjava.lang.IllegalArgumentException
- Wenn Attributtyp nicht mit dem Wert von PuA kompatibel ist. Eine gewisse Toleranz ist erlaubt, aber z.B. in einer Liste
kann kein einzelnes atomares Datum sein.public AttributeProtocolData(de.bsvrz.dav.daf.main.config.Attribute attribute, de.bsvrz.dav.daf.main.config.ObjectLookup dataModel, ResultValue value) throws java.lang.IllegalArgumentException
attribute
- AttributdataModel
- dataModelvalue
- Wert von PuAjava.lang.IllegalArgumentException
- Wenn Attribut nicht mit dem Wert von PuA kompatibel ist. Eine gewisse Toleranz ist erlaubt, aber z.B. in einer Liste
kann kein einzelnes atomares Datum sein.public de.bsvrz.dav.daf.main.Data createUnmodifiableCopy()
public java.lang.String getName()
public de.bsvrz.dav.daf.main.config.AttributeType getAttributeType()
public boolean isDefined()
public boolean isNoChange()
ProtocolData
isNoChange
in class ProtocolData
public boolean isList()
public boolean isArray()
public boolean isPlain()
public de.bsvrz.dav.daf.main.Data getItem(java.lang.String itemName)
public de.bsvrz.dav.daf.main.Data.TextValue asTextValue()
public de.bsvrz.dav.daf.main.Data.TimeValue asTimeValue()
public de.bsvrz.dav.daf.main.Data.NumberValue asScaledValue()
public de.bsvrz.dav.daf.main.Data.NumberValue asUnscaledValue()
public de.bsvrz.dav.daf.main.Data.ReferenceValue asReferenceValue()
public de.bsvrz.dav.daf.main.Data.Array asArray()
public de.bsvrz.dav.daf.main.Data.TextArray asTextArray()
public de.bsvrz.dav.daf.main.Data.TimeArray asTimeArray()
public de.bsvrz.dav.daf.main.Data.NumberArray asScaledArray()
public de.bsvrz.dav.daf.main.Data.NumberArray asUnscaledArray()
public de.bsvrz.dav.daf.main.Data.ReferenceArray asReferenceArray()
public boolean isError()
ProtocolData
isError
in class ProtocolData
protected java.util.List<de.bsvrz.dav.daf.main.Data> getChildrenList()
getChildrenList
in class ProtocolData