Class PlainAttributeProperties
- java.lang.Object
-
- de.bsvrz.puk.config.xmlFile.properties.PlainAttributeProperties
-
- All Implemented Interfaces:
AttributeProperties
public class PlainAttributeProperties extends java.lang.Object implements AttributeProperties
Kapselt die Eigenschaften eines Attributs in Versorgungsdateien entsprechend K2S.DTD.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String_attributeTypePid
-
Constructor Summary
Constructors Constructor Description PlainAttributeProperties(java.lang.String attributeTypePid)Erzeugt ein neues Objekt für ein Attribut eines vorgegebenen Attributtyps.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAttributeTypePid()Liefert den Attributtyps dieses Attributs.java.lang.StringgetDefault()Bestimmt den Defaultwert dieses Attributs.de.bsvrz.dav.daf.main.config.SystemObjectInfogetInfo()Bestimmt die Info mit Kurzinfo und Beschreibung dieses Attributs.intgetMaxCount()Bestimmt die maximale Anzahl von Arrayelementen.java.lang.StringgetName()Bestimmt den Namen des AttributsTargetValuegetTargetValue()Bestimmt, ob die Anzahl Arrayelemente variabel oder fest ist.voidsetDefault(java.lang.String aDefault)Setzt den Defaultwert dieses Attributs.voidsetInfo(de.bsvrz.dav.daf.main.config.SystemObjectInfo info)Setzt die Info mit Kurzinfo und Beschreibung dieses Attributs.voidsetMaxCount(int maxCount)Setzt die maximale Anzahl von Arrayelementen.voidsetMaxCount(java.lang.String maxCount)Setzt die maximale Anzahl von Arrayelementen.voidsetName(java.lang.String name)Setzt den Namen des Attributs.voidsetTargetValue(TargetValue targetValue)Legt fest, ob die Anzahl Arrayelemente variabel oder fest ist.voidsetTargetValue(java.lang.String targetValue)Legt fest, ob die Anzahl Arrayelemente variabel oder fest ist.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.bsvrz.puk.config.xmlFile.properties.AttributeProperties
getAttributeTypePid, getInfo, getMaxCount, getName, getTargetValue, setInfo, setMaxCount, setMaxCount, setName, setTargetValue, setTargetValue
-
-
-
-
Method Detail
-
getDefault
public java.lang.String getDefault()
Bestimmt den Defaultwert dieses Attributs.- Returns:
- Defaultwert dieses Attributs oder
nullfalls der Wert nicht gesetzt wurde
-
setDefault
public void setDefault(java.lang.String aDefault)
Setzt den Defaultwert dieses Attributs.- Parameters:
aDefault- Defaultwert dieses Attributs
-
getAttributeTypePid
public java.lang.String getAttributeTypePid()
Description copied from interface:AttributePropertiesLiefert den Attributtyps dieses Attributs.- Specified by:
getAttributeTypePidin interfaceAttributeProperties- Returns:
- Attributtyps dieses Attributs
-
getMaxCount
public int getMaxCount()
Description copied from interface:AttributePropertiesBestimmt die maximale Anzahl von Arrayelementen.- Specified by:
getMaxCountin interfaceAttributeProperties- Returns:
- maximale Anzahl von Arrayelementen oder -1 falls der Wert nicht gesetzt wurde.
-
setMaxCount
public void setMaxCount(java.lang.String maxCount)
Description copied from interface:AttributePropertiesSetzt die maximale Anzahl von Arrayelementen.- Specified by:
setMaxCountin interfaceAttributeProperties- Parameters:
maxCount- Maximale Anzahl von Arrayelementen.
-
setMaxCount
public void setMaxCount(int maxCount)
Description copied from interface:AttributePropertiesSetzt die maximale Anzahl von Arrayelementen.- Specified by:
setMaxCountin interfaceAttributeProperties- Parameters:
maxCount- Maximale Anzahl von Arrayelementen.
-
getTargetValue
public TargetValue getTargetValue()
Description copied from interface:AttributePropertiesBestimmt, ob die Anzahl Arrayelemente variabel oder fest ist.- Specified by:
getTargetValuein interfaceAttributeProperties- Returns:
- TargetValue.FIX oder TargetValue.VARIABLE
-
setTargetValue
public void setTargetValue(java.lang.String targetValue)
Description copied from interface:AttributePropertiesLegt fest, ob die Anzahl Arrayelemente variabel oder fest ist.- Specified by:
setTargetValuein interfaceAttributeProperties- Parameters:
targetValue- "variabel" oder "fest"
-
setTargetValue
public void setTargetValue(TargetValue targetValue)
Description copied from interface:AttributePropertiesLegt fest, ob die Anzahl Arrayelemente variabel oder fest ist.- Specified by:
setTargetValuein interfaceAttributeProperties- Parameters:
targetValue- TargetValue.FIX oder TargetValue.VARIABLE
-
getName
public java.lang.String getName()
Description copied from interface:AttributePropertiesBestimmt den Namen des Attributs- Specified by:
getNamein interfaceAttributeProperties- Returns:
- Namen des Attributs oder "" falls der Wert nicht gesetzt wurde
-
setName
public void setName(java.lang.String name)
Description copied from interface:AttributePropertiesSetzt den Namen des Attributs.- Specified by:
setNamein interfaceAttributeProperties- Parameters:
name- Name des Attributs.
-
getInfo
public de.bsvrz.dav.daf.main.config.SystemObjectInfo getInfo()
Description copied from interface:AttributePropertiesBestimmt die Info mit Kurzinfo und Beschreibung dieses Attributs.- Specified by:
getInfoin interfaceAttributeProperties- Returns:
- Info mit Kurzinfo und Beschreibung dieses Attributs
-
setInfo
public void setInfo(de.bsvrz.dav.daf.main.config.SystemObjectInfo info)
Description copied from interface:AttributePropertiesSetzt die Info mit Kurzinfo und Beschreibung dieses Attributs.- Specified by:
setInfoin interfaceAttributeProperties- Parameters:
info- Info mit Kurzinfo und Beschreibung dieses Attributs
-
-