de.bsvrz.puk.config.xmlFile.properties
Class ConfigurationIntegerDef

java.lang.Object
  extended by de.bsvrz.puk.config.xmlFile.properties.ConfigurationIntegerDef
All Implemented Interfaces:
ConfigurationAttributeType

public class ConfigurationIntegerDef
extends Object
implements ConfigurationAttributeType

Diese Klasse beschreibt eine Ganzzahl nach der K2S.DTD.

Author:
Kappich+Kniß Systemberatung Aachen (K2S), Achim Wullenkord (AW)

Constructor Summary
ConfigurationIntegerDef()
           
 
Method Summary
 int getBits()
          Attribut "bits"
 ConfigurationIntegerValueRange[] getValueRangeAndState()
          Array, das Objekte enthält, die vom Typ ConfigurationValueRange und vom Typ ConfigurationState sein können.
 void setBits(int bits)
          Attribut "bits"
 void setBits(String bits)
          Attribut "bits"
 void setValueRangeAndState(ConfigurationIntegerValueRange[] regionAndState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationIntegerDef

public ConfigurationIntegerDef()
Method Detail

getBits

public int getBits()
Attribut "bits"

Returns:
bits oder -1, falls der Wert nicht gesetzt wurde

setBits

public void setBits(String bits)
             throws IllegalArgumentException
Attribut "bits"

Parameters:
bits - s.o.
Throws:
IllegalArgumentException - setBits(int)

setBits

public void setBits(int bits)
             throws IllegalArgumentException
Attribut "bits"

Parameters:
bits - s.o.
Throws:
IllegalArgumentException - Die Anzahl Bits ist kleiner gleich 0 oder größer als 64

getValueRangeAndState

public ConfigurationIntegerValueRange[] getValueRangeAndState()
Array, das Objekte enthält, die vom Typ ConfigurationValueRange und vom Typ ConfigurationState sein können.

Returns:
Array mit Objekten (Typ siehe oben) oder ein leeres Array, falls keine Objekte vorhanden sind

setValueRangeAndState

public void setValueRangeAndState(ConfigurationIntegerValueRange[] regionAndState)
Parameters:
regionAndState - Array, das Objekte enthält, die vom Typ ConfigurationValueRange und vom Typ ConfigurationState sein können. Sind keine Objekte vorhanden, so ist das Array leer.
Throws:
IllegalArgumentException - Bei Objekten vom Typ "ConfigurationState" muss jeder Wert und jeder Name eindeutig (nur einmal vergeben) sein. Wird diese Exception geworfen, wurde dagegen verstossen.