public class XmlValue extends Object
Constructor and Description |
---|
XmlValue(XmlDecl decl) |
XmlValue(XmlValue from) |
Modifier and Type | Method and Description |
---|---|
void |
addFromString(String value)
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 value) throws InvalidObjectException, InvalidArgumentException
value
- InvalidObjectException
InvalidArgumentException
public void addValue(Object value) throws InvalidObjectException
value
- InvalidObjectException
public Object getValue()
public static Object getCloneValue(XmlType type, Object value) throws InvalidObjectException
type
- value
- InvalidObjectException
public Object getCloneValue() throws InvalidObjectException
InvalidObjectException
public 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
- InvalidArgumentException
public boolean isEmpty()
public String getIntoString()
public void setValue(Object value) throws InvalidObjectException
value
- the value to setInvalidObjectException
NumberFormatException
protected static Object convert(Class<?> type, String value) throws InvalidArgumentException
InvalidArgumentException
public String toFullString()
Copyright © 2009–2019 Waarp. All rights reserved.