|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xmlBlaster.util.property.PropEntry
org.xmlBlaster.util.property.PropLong
public final class PropLong
Base class for the various property data type implementations.
Field Summary | |
---|---|
private long |
value
|
private long |
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 | |
---|---|
PropLong(long value)
Constructor for the default value |
|
PropLong(java.lang.String propName,
long value)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a shallow clone, you can change safely all basic or immutable types like boolean, String, int. |
long |
getDefaultValue()
|
java.lang.String |
getTypeString()
|
long |
getValue()
|
java.lang.String |
getValueString()
|
static void |
main(java.lang.String[] args)
java org.xmlBlaster.util.property.PropLong |
void |
setDefaultValue(long value)
Overwrite the default value given to the constructor. |
void |
setValue(long value)
Overwrites any default or environment settings. |
void |
setValue(long 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 |
---|
private long valueDefault
private long value
Constructor Detail |
---|
public PropLong(long value)
public PropLong(java.lang.String propName, long value)
Method Detail |
---|
public final java.lang.String getTypeString()
getTypeString
in class PropEntry
public final java.lang.String getValueString()
getValueString
in class PropEntry
public void setValue(long value)
public void setValue(java.lang.String value, int creationOrigin)
setValue
in class PropEntry
The
- new value as String type, will be converted to native typecreationOrigin
- e.g. PropEntry.CREATED_BY_JVMENVpublic void setValue(long value, int creationOrigin)
the
- new value to usecreationOrigin
- e.g. PropEntry.CREATED_BY_JVMENVpublic long getValue()
public void setDefaultValue(long value)
public long getDefaultValue()
public java.lang.Object clone()
clone
in class PropEntry
public static void main(java.lang.String[] args)
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |