xmlBlaster 2.2.0 API

org.xmlBlaster.util.property
Class PropBoolean

java.lang.Object
  extended by org.xmlBlaster.util.property.PropEntry
      extended by org.xmlBlaster.util.property.PropBoolean
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public final class PropBoolean
extends PropEntry
implements java.io.Serializable, java.lang.Cloneable

Base class for the various property data type implementations.

Author:
xmlBlaster@marcelruff.info
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
private  boolean value
           
 
Fields inherited from class org.xmlBlaster.util.property.PropEntry
CREATED_BY_CMDLINE, CREATED_BY_DEFAULT, CREATED_BY_JVMENV, CREATED_BY_PROPFILE, CREATED_BY_SETTER, creationOrigin, propName, SEP
 
Constructor Summary
PropBoolean(boolean value)
          Constructor for the default value
PropBoolean(java.lang.String propName, boolean value)
          Constructor for the default value
 
Method Summary
 java.lang.Object clone()
          Returns a shallow clone, you can change savely all basic or immutable types like boolean, String, int.
 java.lang.String getTypeString()
           
 boolean getValue()
           
 java.lang.String getValueString()
           
static void main(java.lang.String[] args)
          java org.xmlBlaster.util.property.PropBoolean
 void setValue(boolean value)
           
 void setValue(boolean value, int creationOrigin)
           
 void setValue(java.lang.String value, int creationOrigin)
           
 
Methods inherited from class org.xmlBlaster.util.property.PropEntry
isDefault, isModified, isSet, setCreationOrigin, setFromEnv, setFromEnv, setFromEnv, toString, toXml, toXml
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

value

private boolean value
Constructor Detail

PropBoolean

public PropBoolean(boolean value)
Constructor for the default value


PropBoolean

public PropBoolean(java.lang.String propName,
                   boolean value)
Constructor for the default value

Method Detail

getTypeString

public final java.lang.String getTypeString()
Specified by:
getTypeString in class PropEntry
Returns:
"boolean"

getValueString

public final java.lang.String getValueString()
Specified by:
getValueString in class PropEntry
Returns:
The value in String form

setValue

public void setValue(boolean value)

setValue

public void setValue(java.lang.String value,
                     int creationOrigin)
Specified by:
setValue in class PropEntry
Parameters:
The - new value as String type, will be converted to native type
creationOrigin - e.g. PropEntry.CREATED_BY_JVMENV

setValue

public void setValue(boolean value,
                     int creationOrigin)
Parameters:
creationOrigin - e.g. PropEntry.CREATED_BY_JVMENV

getValue

public boolean getValue()

clone

public java.lang.Object clone()
Returns a shallow clone, you can change savely all basic or immutable types like boolean, String, int. Currently RouteInfo is not cloned (so don't change it)

Overrides:
clone in class PropEntry

main

public static void main(java.lang.String[] args)
java org.xmlBlaster.util.property.PropBoolean


xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.