
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 XmlDecl getDecl()
public String getName()
public Class<?> getClassType()
public XmlType getType()
public String getXmlPath()
public boolean isSubXml()
public XmlValue[] getSubXml()
public boolean isMultiple()
public List<?> getList()
public void addFromString(String valueOrig) throws InvalidObjectException, InvalidArgumentException
valueOrig - InvalidObjectExceptionInvalidArgumentExceptionpublic void addValue(Object value) throws InvalidObjectException
value - InvalidObjectExceptionpublic Object getValue()
public static Object getCloneValue(XmlType type, Object value) throws InvalidObjectException
type - value - InvalidObjectExceptionpublic Object getCloneValue() throws InvalidObjectException
InvalidObjectExceptionpublic String getString()
public int getInteger()
public boolean getBoolean()
public long getLong()
public float getFloat()
public char getCharacter()
public byte getByte()
public double getDouble()
public short getShort()
public Date getDate()
public Timestamp getTimestamp()
public void setFromString(String value) throws InvalidArgumentException
value - InvalidArgumentExceptionpublic boolean isEmpty()
public String getIntoString()
public void setValue(Object value) throws InvalidObjectException
value - the value to setInvalidObjectExceptionNumberFormatExceptionprotected static Object convert(Class<?> type, String value) throws InvalidArgumentException
InvalidArgumentExceptionpublic String toFullString()
Copyright © 2009–2020 Waarp. All rights reserved.