|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgoldengate.common.xml.XmlValue
public class XmlValue
XmlValue base element
Constructor Summary | |
---|---|
XmlValue(XmlDecl decl)
|
|
XmlValue(XmlValue from)
|
Method Summary | |
---|---|
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 |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XmlValue(XmlDecl decl)
public XmlValue(XmlValue from)
Method Detail |
---|
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
value
-
InvalidObjectException
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)
value
- public boolean isEmpty()
public String getIntoString()
public void setValue(Object value) throws InvalidObjectException
value
- the value to set
InvalidObjectException
NumberFormatException
protected static Object convert(Class<?> type, String value) throws IllegalArgumentException
IllegalArgumentException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |