|
|||||||||
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.DafAttribute
public class DafAttribute
Klasse, die den Zugriff auf Attribute seitens der Datenverteiler-Applikationsfunktionen ermöglicht.
Field Summary | |
---|---|
private int |
_arraySize
Anzahl von Elementen in einem Feld, falls diese Attribut ein Feld ist |
private short |
_attributePosition
Die Position dieses Attributs in der Attributegruppe oder Attributeliste |
private DafAttributeType |
_attributeType
Der Attributtyp dieses Attributs |
private long |
_attributeTypeId
Die Id des Attributtyps dieses Attributs |
private String |
_defaultAttributeValue
Default-Attributwert oder null falls nicht definiert. |
private boolean |
_isDynamicArray
Flag, das gesetzt ist, wenn das Attribut ein Array mit variabler Länge ist. |
Constructor Summary | |
---|---|
DafAttribute(DafDataModel dataModel)
Erzeugt ein neues Objekt dessen Eigenschaften im Anschluss mit der read-Methode eingelesen werden sollten. |
|
DafAttribute(long id,
String pid,
String name,
long typId,
byte state,
String error,
DafDataModel dataModel,
short validFromVersionNumber,
short validToVersionNumber,
long responsibleObjectId,
long[] setIds,
short attributePosition,
int arraySize,
boolean isDynamicArray,
long attributeTypeId,
String defaultAttributeValue)
Erzeugt ein neues Objekt mit den angegebenen Eigenschaften |
Method Summary | |
---|---|
AttributeType |
getAttributeType()
Bestimmt den Typ dieses Attributs über den ein Zugriff auf die Eigenschaften von konkreten Attributwerten ermöglicht wird. |
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. |
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. |
String |
parseToString()
Liefert eine textuelle Beschreibung dieses Objekts für Debug-Zwecke zurück. |
void |
read(DataInputStream in)
Deserialisiert dieses Objekt. |
void |
write(DataOutputStream out)
Serialisiert dieses Objekt. |
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, setState, 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.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 |
---|
private short _attributePosition
private int _arraySize
private boolean _isDynamicArray
private long _attributeTypeId
private DafAttributeType _attributeType
private String _defaultAttributeValue
null
falls nicht definiert.
Constructor Detail |
---|
public DafAttribute(DafDataModel dataModel)
dataModel
- DataModel Implementierung, der das neue Objekt zugeordnet ist.public DafAttribute(long id, String pid, String name, long typId, byte state, String error, DafDataModel dataModel, short validFromVersionNumber, short validToVersionNumber, long responsibleObjectId, long[] setIds, short attributePosition, int arraySize, boolean isDynamicArray, long attributeTypeId, String defaultAttributeValue)
Method Detail |
---|
public final String parseToString()
DafSystemObject
parseToString
in class DafConfigurationObject
public final void write(DataOutputStream out) throws IOException
DafSystemObject
write
in class DafConfigurationObject
out
- Stream auf den das Objekt geschrieben werden soll.
IOException
public final void read(DataInputStream in) throws IOException
DafSystemObject
read
in class DafConfigurationObject
in
- Stream von dem das Objekt gelesen werden soll.
IOException
public final AttributeType getAttributeType()
Attribute
getAttributeType
in interface Attribute
public final int getMaxCount()
Attribute
getMaxCount
in interface Attribute
public final int getPosition()
Attribute
getPosition
in interface Attribute
1
.public final boolean isCountLimited()
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 final boolean isCountVariable()
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 final boolean isArray()
Attribute
isArray
in interface Attribute
true
, wenn dieses Attribut ein Feld ist;false
, wenn dieses
Attribut kein Feld ist.public String getDefaultAttributeValue()
Attribute
getDefaultAttributeValue
in interface Attribute
null
falls kein Defaultwert festgelegt wurde.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |