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

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.ConfigAttributeType
                  extended by de.bsvrz.puk.config.configFile.datamodel.ConfigTimeAttributeType
All Implemented Interfaces:
AttributeType, ConfigurationObject, SystemObject, TimeAttributeType, UndefinedAttributeValueAccess, Comparable

public class ConfigTimeAttributeType
extends ConfigAttributeType
implements TimeAttributeType

Implementierung des Intefaces TimeAttributeType auf Seiten der Konfiguration.

Author:
Stephan Homeyer (sth), Kappich Systemberatung

Nested Class Summary
private  class ConfigTimeAttributeType.TimeAttributeTypeValues
          Diese Klasse liest die Informationen für diesen Attributtypen mit Hilfe des Deserializers direkt aus dem Byte-Array des konfigurierenden Datensatzes aus und verwendet nicht die Methode SystemObject.getConfigurationData(de.bsvrz.dav.daf.main.config.AttributeGroup), da dort Informationen benötigt werden, die hier erst zur Verfügung gestellt werden.
 
Field Summary
private static Debug _debug
          DebugLogger für Debug-Ausgaben
private  ConfigTimeAttributeType.TimeAttributeTypeValues _values
          Speichert die Eigenschaften des ZeitstempelAttributTypen.
 
Fields inherited from class de.bsvrz.puk.config.configFile.datamodel.ConfigSystemObject
_systemObjectInfo
 
Fields inherited from interface de.bsvrz.dav.daf.main.config.TimeAttributeType
MILLISECONDS, SECONDS
 
Constructor Summary
ConfigTimeAttributeType(ConfigurationArea configurationArea, SystemObjectInformationInterface systemObjectInfo)
          Konstruktor eines Zeitstempel-Attribut-Typs.
 
Method Summary
 byte getAccuracy()
           
private  ConfigTimeAttributeType.TimeAttributeTypeValues getTimeAttributeTypeValues()
          Gibt das Objekt zurück, welches die Eigenschaften dieses AttributTyps enthält.
 boolean isDefined(Data data)
           
 boolean isRelative()
           
 void setToUndefined(Data data)
           
 
Methods inherited from class de.bsvrz.puk.config.configFile.datamodel.ConfigAttributeType
getDefaultAttributeValue, loadDefaultAttributeValue
 
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.AttributeType
getDefaultAttributeValue
 
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 ConfigTimeAttributeType.TimeAttributeTypeValues _values
Speichert die Eigenschaften des ZeitstempelAttributTypen.

Constructor Detail

ConfigTimeAttributeType

public ConfigTimeAttributeType(ConfigurationArea configurationArea,
                               SystemObjectInformationInterface systemObjectInfo)
Konstruktor eines Zeitstempel-Attribut-Typs.

Parameters:
configurationArea - Konfigurationsbereich dieses Zeitstempel-Attribut-Typs
systemObjectInfo - das korrespondierende Objekt aus den Konfigurationsdateien
Method Detail

isRelative

public boolean isRelative()
Specified by:
isRelative in interface TimeAttributeType

getAccuracy

public byte getAccuracy()
Specified by:
getAccuracy in interface TimeAttributeType

getTimeAttributeTypeValues

private ConfigTimeAttributeType.TimeAttributeTypeValues getTimeAttributeTypeValues()
Gibt das Objekt zurück, welches die Eigenschaften dieses AttributTyps enthält. Existiert es noch nicht, so wird es erzeugt und der entsprechende konfigurierende Datensatz ausgelesen.

Returns:
die Eigenschaften des AttributTyps

setToUndefined

public void setToUndefined(Data data)
Specified by:
setToUndefined in interface UndefinedAttributeValueAccess

isDefined

public boolean isDefined(Data data)
Specified by:
isDefined in interface UndefinedAttributeValueAccess