
public class XmlValue extends Object
| Constructor and Description |
|---|
XmlValue(XmlDecl decl) |
XmlValue(XmlValue from) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFromString(String valueOrig)
Add a value into the Multiple values from the String (not compatible with
subXml)
|
void |
addValue(Object value)
Add a value into the Multiple values from the Object
|
protected static Object |
convert(Class<?> type,
String value)
Convert String value to the specified type.
|
boolean |
getBoolean() |
byte |
getByte() |
char |
getCharacter() |
Class<?> |
getClassType() |
Object |
getCloneValue() |
static Object |
getCloneValue(XmlType type,
Object value)
Utility function to get a clone of a value
|
Date |
getDate() |
XmlDecl |
getDecl() |
double |
getDouble() |
float |
getFloat() |
int |
getInteger() |
String |
getIntoString()
Get a value into a String
|
List<?> |
getList() |
long |
getLong() |
String |
getName()
Get Java field name
|
short |
getShort() |
String |
getString() |
XmlValue[] |
getSubXml() |
Timestamp |
getTimestamp() |
XmlType |
getType() |
Object |
getValue() |
String |
getXmlPath() |
boolean |
isEmpty()
Test if the Value is empty.
|
boolean |
isMultiple() |
boolean |
isSubXml() |
void |
setFromString(String value)
Set a value from String
|
void |
setValue(Object value) |
String |
toFullString() |
String |
toString() |
public final XmlDecl getDecl()
public final String getName()
public final Class<?> getClassType()
public final XmlType getType()
public final String getXmlPath()
public final boolean isSubXml()
public final XmlValue[] getSubXml()
public final boolean isMultiple()
public final List<?> getList()
public final void addFromString(String valueOrig) throws InvalidObjectException, InvalidArgumentException
valueOrig - InvalidObjectExceptionInvalidArgumentExceptionpublic final void addValue(Object value) throws InvalidObjectException
value - InvalidObjectExceptionpublic final Object getValue()
public static Object getCloneValue(XmlType type, Object value) throws InvalidObjectException
type - value - InvalidObjectExceptionpublic final Object getCloneValue() throws InvalidObjectException
InvalidObjectExceptionpublic final String getString()
public final int getInteger()
public final boolean getBoolean()
public final long getLong()
public final float getFloat()
public final char getCharacter()
public final byte getByte()
public final double getDouble()
public final short getShort()
public final Date getDate()
public final Timestamp getTimestamp()
public final void setFromString(String value) throws InvalidArgumentException
value - InvalidArgumentExceptionpublic final boolean isEmpty()
public final String getIntoString()
public final void setValue(Object value) throws InvalidObjectException
value - the value to setInvalidObjectExceptionNumberFormatExceptionprotected static Object convert(Class<?> type, String value) throws InvalidArgumentException
InvalidArgumentExceptionpublic final String toFullString()
Copyright © 2009–2022 Waarp. All rights reserved.