|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.identityconnectors.framework.impl.serializer.xml.XmlObjectDecoder
public class XmlObjectDecoder
| Constructor Summary | |
|---|---|
XmlObjectDecoder(Element node,
Class<?> expectedClass)
|
|
| Method Summary | |
|---|---|
int |
getNumSubObjects()
Returns the number of anonymous sub-objects. |
boolean |
readBooleanContents()
Reads the value in-line. |
boolean |
readBooleanField(String fieldName,
boolean dflt)
Reads a boolean. |
byte[] |
readByteArrayContents()
reads the value in-line. |
Class<?> |
readClassContents()
reads the value in-line. |
Class<?> |
readClassField(String name,
Class<?> dflt)
Reads a Class. |
double |
readDoubleContents()
reads the value in-line. |
double |
readDoubleField(String fieldName,
double dflt)
Reads a double. |
float |
readFloatContents()
Reads the value in-line. |
float |
readFloatField(String fieldName,
float dflt)
Reads a float. |
int |
readIntContents()
Reads the value in-line. |
int |
readIntField(String fieldName,
int dflt)
Reads an int. |
long |
readLongContents()
reads the value in-line. |
long |
readLongField(String fieldName,
long dflt)
Reads a long. |
Object |
readObject()
|
Object |
readObjectContents(int index)
Reads a sub-object |
Object |
readObjectField(String fieldName,
Class<?> expected,
Object dflt)
Reads an object using the appropriate serializer for that object |
String |
readStringContents()
Reads the value in-line. |
String |
readStringField(String fieldName,
String dflt)
Reads a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlObjectDecoder(Element node,
Class<?> expectedClass)
| Method Detail |
|---|
public Object readObject()
public boolean readBooleanContents()
ObjectDecoder
readBooleanContents in interface ObjectDecoder
public boolean readBooleanField(String fieldName,
boolean dflt)
ObjectDecoder
readBooleanField in interface ObjectDecoderpublic byte[] readByteArrayContents()
ObjectDecoder
readByteArrayContents in interface ObjectDecoderpublic Class<?> readClassContents()
ObjectDecoder
readClassContents in interface ObjectDecoder
public Class<?> readClassField(String name,
Class<?> dflt)
ObjectDecoder
readClassField in interface ObjectDecoderpublic double readDoubleContents()
ObjectDecoder
readDoubleContents in interface ObjectDecoder
public double readDoubleField(String fieldName,
double dflt)
ObjectDecoder
readDoubleField in interface ObjectDecoderpublic float readFloatContents()
ObjectDecoder
readFloatContents in interface ObjectDecoder
public float readFloatField(String fieldName,
float dflt)
ObjectDecoder
readFloatField in interface ObjectDecoderpublic int readIntContents()
ObjectDecoder
readIntContents in interface ObjectDecoder
public int readIntField(String fieldName,
int dflt)
ObjectDecoder
readIntField in interface ObjectDecoderpublic long readLongContents()
ObjectDecoder
readLongContents in interface ObjectDecoder
public long readLongField(String fieldName,
long dflt)
ObjectDecoder
readLongField in interface ObjectDecoderpublic int getNumSubObjects()
ObjectDecoder
getNumSubObjects in interface ObjectDecoderpublic Object readObjectContents(int index)
ObjectDecoder
readObjectContents in interface ObjectDecoder
public Object readObjectField(String fieldName,
Class<?> expected,
Object dflt)
ObjectDecoder
readObjectField in interface ObjectDecoderpublic String readStringContents()
ObjectDecoder
readStringContents in interface ObjectDecoder
public String readStringField(String fieldName,
String dflt)
ObjectDecoder
readStringField in interface ObjectDecoder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||