de.bsvrz.puk.config.configFile.datamodel
Class ConfigAttribute

java.lang.Object
  extended by de.bsvrz.puk.config.configFile.datamodel.AbstractConfigSystemObject
      extended by de.bsvrz.puk.config.configFile.datamodel.ConfigSystemObject
          extended by de.bsvrz.puk.config.configFile.datamodel.ConfigConfigurationObject
              extended by de.bsvrz.puk.config.configFile.datamodel.ConfigAttribute
All Implemented Interfaces:
Attribute, ConfigurationObject, SystemObject, Comparable

public class ConfigAttribute
extends ConfigConfigurationObject
implements Attribute

Implementierung eines Attribut-Objekts auf Seiten der Konfiguration.

Author:
Stephan Homeyer (sth), Kappich Systemberatung

Nested Class Summary
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.
 
Field Summary
private static Debug _debug
          DebugLogger für Debug-Ausgaben
private  String _defaultAttributeValue
          Default-Attributwert oder null falls nicht definiert.
private  ConfigAttribute.AttributeValues _values
          Speichert die Attributeigenschaften dieses Attributs.
 
Fields inherited from class de.bsvrz.puk.config.configFile.datamodel.ConfigSystemObject
_systemObjectInfo
 
Constructor Summary
ConfigAttribute(ConfigurationArea configurationArea, SystemObjectInformationInterface systemObjectInfo)
          Konstruktor für ein KonfigurationsObjekt.
 
Method Summary
 AttributeType getAttributeType()
           
private  ConfigAttribute.AttributeValues getAttributeValues()
          Gibt das Objekt zurück, welches die Attributeigenschaften dieses Attributs enthält.
 String getDefaultAttributeValue()
          Ermittelt den Default-Attributwert dieses Attribut.
 int getMaxCount()
           
 int getPosition()
           
 boolean isArray()
           
 boolean isCountLimited()
           
 boolean isCountVariable()
           
 void loadDefaultAttributeValue()
          Lädt den Default-Attributwert dieses Attributs aus einem konfigurierenden Datensatz.
 
Methods inherited from class de.bsvrz.puk.config.configFile.datamodel.ConfigConfigurationObject
addSet, directDuplicate, directModification, duplicate, duplicate, getMutableSet, getNonMutableSet, getNotValidSince, getObjectSet, getObjectSets, getValidSince, invalidate, isValid, removeSet, revalidate, simpleRevalidate
 
Methods inherited from class de.bsvrz.puk.config.configFile.datamodel.ConfigSystemObject
checkChangePermit, createConfigurationData, equals, getConfigurationData, getConfigurationData, getConfigurationData, getConfigurationData, getConfigurationData, getConfigurationDataBytes, getId, getName, getPid, getSerializerVersion, getType, getUsedAttributeGroupUsages, hashCode, removeConfigurationData, setConfigurationData, setConfigurationData, setName, simpleInvalidation
 
Methods inherited from class de.bsvrz.puk.config.configFile.datamodel.AbstractConfigSystemObject
compareTo, getConfigurationArea, getConfigurationData, getDataModel, getInfo, getNameOrPidOrId, getPidOrId, getPidOrNameOrId, isOfType, isOfType, setConfigurationData, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.bsvrz.dav.daf.main.config.ConfigurationObject
addSet, duplicate, duplicate, getMutableSet, getNonMutableSet, getNotValidSince, getObjectSet, getObjectSets, getValidSince, removeSet, revalidate
 
Methods inherited from interface de.bsvrz.dav.daf.main.config.SystemObject
getConfigurationArea, getConfigurationData, getConfigurationData, getConfigurationData, getDataModel, getId, getInfo, getName, getNameOrPidOrId, getPid, getPidOrId, getPidOrNameOrId, getType, getUsedAttributeGroupUsages, invalidate, isOfType, isOfType, isValid, setConfigurationData, setConfigurationData, setConfigurationData, setName, toString
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

_debug

private static final Debug _debug
DebugLogger für Debug-Ausgaben


_values

private ConfigAttribute.AttributeValues _values
Speichert die Attributeigenschaften dieses Attributs.


_defaultAttributeValue

private String _defaultAttributeValue
Default-Attributwert oder null falls nicht definiert.

Constructor Detail

ConfigAttribute

public ConfigAttribute(ConfigurationArea configurationArea,
                       SystemObjectInformationInterface systemObjectInfo)
Konstruktor für ein KonfigurationsObjekt.

Parameters:
configurationArea - der Konfigurationsbereich dieses KonfigurationsObjekts
systemObjectInfo - das korrespondierende Objekt für die Dateioperationen dieses KonfigurationsObjekts
Method Detail

getPosition

public int getPosition()
Specified by:
getPosition in interface Attribute

isCountLimited

public boolean isCountLimited()
Specified by:
isCountLimited in interface Attribute

isCountVariable

public boolean isCountVariable()
Specified by:
isCountVariable in interface Attribute

getMaxCount

public int getMaxCount()
Specified by:
getMaxCount in interface Attribute

isArray

public boolean isArray()
Specified by:
isArray in interface Attribute

getAttributeType

public AttributeType getAttributeType()
Specified by:
getAttributeType in interface Attribute

getDefaultAttributeValue

public String getDefaultAttributeValue()
Ermittelt den Default-Attributwert dieses Attribut.

Specified by:
getDefaultAttributeValue in interface Attribute
Returns:
Default-Attributwert dieses Attribut oder null falls kein Defaultwert festgelegt wurde.

loadDefaultAttributeValue

public void loadDefaultAttributeValue()
Lädt den Default-Attributwert dieses Attributs aus einem konfigurierenden Datensatz.


getAttributeValues

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.

Returns:
die Attributeigenschaften