public class ConfigAttribute extends ConfigConfigurationObject implements Attribute
Implementierung eines Attribut-Objekts auf Seiten der Konfiguration.
Modifier and Type | Class and Description |
---|---|
private class |
ConfigAttribute.AttributeValues
Diese Klasse liest die Informationen für das Attribut mit Hilfe des Deserializers direkt aus dem Byte-Array des konfigurierenden Datensatzes aus.
|
Modifier and Type | Field and Description |
---|---|
private static Debug |
_debug
DebugLogger für Debug-Ausgaben
|
private java.lang.String |
_defaultAttributeValue
Default-Attributwert oder
null falls nicht definiert. |
private ConfigAttribute.AttributeValues |
_values
Speichert die Attributeigenschaften dieses Attributs.
|
_systemObjectInfo
Constructor and Description |
---|
ConfigAttribute(ConfigurationArea configurationArea,
SystemObjectInformationInterface systemObjectInfo)
Konstruktor für ein KonfigurationsObjekt.
|
Modifier and Type | Method and Description |
---|---|
AttributeType |
getAttributeType()
Bestimmt den Typ dieses Attributs über den ein Zugriff auf die Eigenschaften von konkreten Attributwerten
ermöglicht wird.
|
private ConfigAttribute.AttributeValues |
getAttributeValues()
Gibt das Objekt zurück, welches die Attributeigenschaften dieses Attributs enthält.
|
java.lang.String |
getDefaultAttributeValue()
Ermittelt den Default-Attributwert dieses Attribut.
|
int |
getMaxCount()
Bestimmt, ob die maximale Feldgröße dieses Attributs beschränkt ist.
|
int |
getPosition()
Bestimmt die Position eines Attributs oder einer Attributliste in der übergeordneten Attributmenge
(Attributgruppe bzw.
|
(package private) void |
invalidateCache()
Wird aufgerufen, wenn das Objekt verändert wird.
|
boolean |
isArray()
Bestimmt, ob dieses Attribut ein Feld ist.
|
boolean |
isCountLimited()
Bestimmt, ob die Feldgröße dieses Attributs durch eine Obergrenze beschränkt ist.
|
boolean |
isCountVariable()
Bestimmt, ob die Feldgröße dieses Attributs variieren kann.
|
void |
loadDefaultAttributeValue()
Lädt den Default-Attributwert dieses Attributs aus einem konfigurierenden Datensatz.
|
addSet, directDuplicate, directModification, duplicate, duplicate, getMutableSet, getNonMutableSet, getNotValidSince, getObjectSet, getObjectSets, getValidSince, invalidate, isValid, removeSet, revalidate, simpleRevalidate
checkChangePermit, createConfigurationData, equals, getConfigurationData, getConfigurationData, getConfigurationData, getConfigurationData, getConfigurationData, getConfigurationDataBytes, getId, getName, getObjectLookupForData, getPid, getSerializerVersion, getType, getUsedAttributeGroupUsages, hashCode, originalHashCode, removeConfigurationData, setConfigurationData, setConfigurationData, setName, simpleInvalidation
compareTo, getConfigurationArea, getConfigurationData, getDataModel, getInfo, getNameOrPidOrId, getPidOrId, getPidOrNameOrId, isOfType, isOfType, setConfigurationData, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addSet, duplicate, duplicate, getMutableSet, getNonMutableSet, getNotValidSince, getObjectSet, getObjectSets, getValidSince, removeSet, revalidate
getConfigurationArea, getConfigurationData, getConfigurationData, getConfigurationData, getDataModel, getId, getInfo, getName, getNameOrPidOrId, getPid, getPidOrId, getPidOrNameOrId, getType, getUsedAttributeGroupUsages, invalidate, isOfType, isOfType, isValid, setConfigurationData, setConfigurationData, setConfigurationData, setName, toString
private static final Debug _debug
DebugLogger für Debug-Ausgaben
private ConfigAttribute.AttributeValues _values
Speichert die Attributeigenschaften dieses Attributs.
private java.lang.String _defaultAttributeValue
Default-Attributwert oder null
falls nicht definiert.
public ConfigAttribute(ConfigurationArea configurationArea, SystemObjectInformationInterface systemObjectInfo)
Konstruktor für ein KonfigurationsObjekt.
configurationArea
- der Konfigurationsbereich dieses KonfigurationsObjektssystemObjectInfo
- das korrespondierende Objekt für die Dateioperationen dieses KonfigurationsObjektspublic int getPosition()
de.bsvrz.dav.daf.main.config.Attribute
getPosition
in interface Attribute
1
.public boolean isCountLimited()
de.bsvrz.dav.daf.main.config.Attribute
isCountLimited
in interface Attribute
true
, wenn die Anzahl der Werte beschränkt ist;false
, wenn die
Anzahl der Werte nicht beschränkt ist.public boolean isCountVariable()
de.bsvrz.dav.daf.main.config.Attribute
isCountVariable
in interface Attribute
true
, wenn die Anzahl der Werte dieses Attributs mit jedem Datensatz variieren
kann;false
, wenn die Anzahl der Werte fix ist.public int getMaxCount()
de.bsvrz.dav.daf.main.config.Attribute
getMaxCount
in interface Attribute
public boolean isArray()
de.bsvrz.dav.daf.main.config.Attribute
public AttributeType getAttributeType()
de.bsvrz.dav.daf.main.config.Attribute
getAttributeType
in interface Attribute
public java.lang.String getDefaultAttributeValue()
Ermittelt den Default-Attributwert dieses Attribut.
getDefaultAttributeValue
in interface Attribute
null
falls kein Defaultwert festgelegt wurde.public void loadDefaultAttributeValue()
Lädt den Default-Attributwert dieses Attributs aus einem konfigurierenden Datensatz.
private ConfigAttribute.AttributeValues getAttributeValues()
Gibt das Objekt zurück, welches die Attributeigenschaften dieses Attributs enthält. Existiert es noch nicht, so wird es erzeugt und der entsprechende konfigurierende Datensatz ausgelesen.
void invalidateCache()
Wird aufgerufen, wenn das Objekt verändert wird. Soll alle zwischengespeicherten Daten neu anfordern bzw. zurücksetzen.
invalidateCache
in class ConfigConfigurationObject