|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.bsvrz.dav.daf.main.impl.config.DafSystemObject
de.bsvrz.dav.daf.main.impl.config.DafConfigurationObject
de.bsvrz.dav.daf.main.impl.config.DafAttributeType
de.bsvrz.dav.daf.main.impl.config.DafIntegerAttributeType
public class DafIntegerAttributeType
Klasse, die den Zugriff auf Ganzzahl-Attributtypen seitens der Datenverteiler-Applikationsfunktionen ermöglicht.
Field Summary |
---|
Fields inherited from class de.bsvrz.dav.daf.main.impl.config.DafAttributeType |
---|
_dataValueType |
Fields inherited from interface de.bsvrz.dav.daf.main.config.IntegerAttributeType |
---|
BYTE, INT, LONG, SHORT |
Constructor Summary | |
---|---|
DafIntegerAttributeType(DafDataModel dataModel)
Erzeugt ein neues Objekt dessen Eigenschaften im Anschluss mit der read-Methode eingelesen werden sollten. |
|
DafIntegerAttributeType(long id,
String pid,
String name,
long typId,
byte state,
String error,
DafDataModel dataModel,
short validFromVersionNumber,
short validToVersionNumber,
long responsibleObjectId,
long[] setIds,
int mode,
long rangeId,
String defaultAttributeValue)
Erzeugt ein neues Objekt mit den angegebenen Eigenschaften |
Method Summary | |
---|---|
int |
getByteCount()
Bestimmt die Größe von Attributen dieses Typs in Bytes. |
IntegerValueRange |
getRange()
Bestimmt den für Attribute dieses Attributtyps definierten Zahlenbereich. |
List<IntegerValueState> |
getStates()
Bestimmt die mit diesem Attributtyp erlaubten diskreten Zustände eines Attributs. |
short |
getValueSize()
Bestimmt die Größe von Attributen dieses Typs in Bytes. |
boolean |
isDefined(Data data)
Die Implementierung dieser Methode prüft ob das übergebene Attribut definiert ist. |
String |
parseToString()
Liefert eine textuelle Beschreibung dieses Objekts für Debug-Zwecke zurück. |
void |
read(DataInputStream in)
Deserialisiert dieses Objekt. |
void |
setToUndefined(Data data)
Die Implementierung dieser Methode setzt ein Attribut auf den sogenannten "undefiniert Wert". |
void |
write(DataOutputStream out)
Serialisiert dieses Objekt. |
Methods inherited from class de.bsvrz.dav.daf.main.impl.config.DafAttributeType |
---|
getDefaultAttributeValue |
Methods inherited from class de.bsvrz.dav.daf.main.impl.config.DafConfigurationObject |
---|
addSet, duplicate, duplicate, getMutableSet, getNonMutableSet, getNotValidSince, getObjectSet, getObjectSets, getValidSince, isValid, removeSet, revalidate |
Methods inherited from class de.bsvrz.dav.daf.main.impl.config.DafSystemObject |
---|
compareTo, equals, getConfigurationArea, getConfigurationAreaId, getConfigurationData, getConfigurationData, getConfigurationData, getDataModel, getId, getInfo, getInternType, getName, getNameOrPidOrId, getObject, getPid, getPidOrId, getPidOrNameOrId, getState, getType, getUsedAttributeGroupUsages, hashCode, invalidate, isOfType, isOfType, setConfigurationData, setConfigurationData, setConfigurationData, setName, storeName, 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 |
Constructor Detail |
---|
public DafIntegerAttributeType(DafDataModel dataModel)
dataModel
- DataModel Implementierung, der das neue Objekt zugeordnet ist.public DafIntegerAttributeType(long id, String pid, String name, long typId, byte state, String error, DafDataModel dataModel, short validFromVersionNumber, short validToVersionNumber, long responsibleObjectId, long[] setIds, int mode, long rangeId, String defaultAttributeValue)
Method Detail |
---|
public int getByteCount()
IntegerAttributeType
getByteCount
in interface IntegerAttributeType
public short getValueSize()
IntegerAttributeType
IntegerAttributeType.getByteCount()
als short
zurück.
getValueSize
in interface IntegerAttributeType
public IntegerValueRange getRange()
IntegerAttributeType
getRange
in interface IntegerAttributeType
null
, wenn kein Zahlenbereich definiert ist.public List<IntegerValueState> getStates()
IntegerAttributeType
getStates
in interface IntegerAttributeType
IntegerValueState
.public final String parseToString()
DafSystemObject
parseToString
in class DafConfigurationObject
public final void write(DataOutputStream out) throws IOException
DafSystemObject
write
in class DafAttributeType
out
- Stream auf den das Objekt geschrieben werden soll.
IOException
public final void read(DataInputStream in) throws IOException
DafSystemObject
read
in class DafAttributeType
in
- Stream von dem das Objekt gelesen werden soll.
IOException
public void setToUndefined(Data data)
UndefinedAttributeValueAccess
setToUndefined
in interface UndefinedAttributeValueAccess
data
- Attribut, dessen Wert auf "undefiniert Wert" gesetzt werden sollpublic boolean isDefined(Data data)
UndefinedAttributeValueAccess
isDefined
in interface UndefinedAttributeValueAccess
data
- Attribut, das geprüft werden soll
UndefinedAttributeValueAccess.setToUndefined(de.bsvrz.dav.daf.main.Data)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |