xmlBlaster 2.2.0 API

org.xmlBlaster.util.property
Class PropString

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

public final class PropString
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  java.lang.String value
           
private  java.lang.String valueDefault
           
 
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
PropString(java.lang.String value)
          Constructor for the default value
PropString(java.lang.String propName, java.lang.String 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 getDefaultValue()
           
 java.lang.String getTypeString()
           
 java.lang.String getValue()
           
 java.lang.String getValueString()
           
static void main(java.lang.String[] args)
          java org.xmlBlaster.util.property.PropString
 void setDefaultValue(java.lang.String value)
          Overwrite the default value given to the constructor.
 void setValue(java.lang.String value)
           
 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

valueDefault

private java.lang.String valueDefault

value

private java.lang.String value
Constructor Detail

PropString

public PropString(java.lang.String value)
Constructor for the default value


PropString

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

Method Detail

getTypeString

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

getValueString

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

setValue

public void setValue(java.lang.String value)

setValue

public void setValue(java.lang.String value,
                     int creationOrigin)
Specified by:
setValue in class PropEntry
Parameters:
creationOrigin - e.g. PropEntry.CREATED_BY_JVMENV

getValue

public java.lang.String getValue()

setDefaultValue

public void setDefaultValue(java.lang.String value)
Overwrite the default value given to the constructor.


getDefaultValue

public java.lang.String getDefaultValue()

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.PropString


xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.