Class XmlObjectDecoder
- java.lang.Object
-
- org.identityconnectors.framework.impl.serializer.xml.XmlObjectDecoder
-
- All Implemented Interfaces:
ObjectDecoder
public class XmlObjectDecoder extends Object implements ObjectDecoder
-
-
Constructor Summary
Constructors Constructor Description XmlObjectDecoder(Element node, Class<?> expectedClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumSubObjects()Returns the number of anonymous sub-objects.booleanreadBooleanContents()Reads the value in-line.booleanreadBooleanField(String fieldName, boolean dflt)Reads a boolean.byte[]readByteArrayContents()reads the value in-line.bytereadByteContents()reads the value in-line.Class<?>readClassContents()reads the value in-line.Class<?>readClassField(String name, Class<?> dflt)Reads a Class.doublereadDoubleContents()reads the value in-line.doublereadDoubleField(String fieldName, double dflt)Reads a double.floatreadFloatContents()Reads the value in-line.floatreadFloatField(String fieldName, float dflt)Reads a float.intreadIntContents()Reads the value in-line.intreadIntField(String fieldName, int dflt)Reads an int.longreadLongContents()reads the value in-line.longreadLongField(String fieldName, long dflt)Reads a long.ObjectreadObject()ObjectreadObjectContents(int index)Reads a sub-objectObjectreadObjectField(String fieldName, Class<?> expected, Object dflt)Reads an object using the appropriate serializer for that objectStringreadStringContents()Reads the value in-line.StringreadStringField(String fieldName, String dflt)Reads a String.
-
-
-
Method Detail
-
readObject
public Object readObject()
-
readBooleanContents
public boolean readBooleanContents()
Description copied from interface:ObjectDecoderReads the value in-line.- Specified by:
readBooleanContentsin interfaceObjectDecoder
-
readBooleanField
public boolean readBooleanField(String fieldName, boolean dflt)
Description copied from interface:ObjectDecoderReads a boolean.- Specified by:
readBooleanFieldin interfaceObjectDecoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. The attribute name for xml serialization
-
readByteContents
public byte readByteContents()
Description copied from interface:ObjectDecoderreads the value in-line.- Specified by:
readByteContentsin interfaceObjectDecoder
-
readByteArrayContents
public byte[] readByteArrayContents()
Description copied from interface:ObjectDecoderreads the value in-line.- Specified by:
readByteArrayContentsin interfaceObjectDecoder
-
readClassContents
public Class<?> readClassContents()
Description copied from interface:ObjectDecoderreads the value in-line.- Specified by:
readClassContentsin interfaceObjectDecoder
-
readClassField
public Class<?> readClassField(String name, Class<?> dflt)
Description copied from interface:ObjectDecoderReads a Class.- Specified by:
readClassFieldin interfaceObjectDecoder- Parameters:
name- A hint of the field name. Ignored for binary serialization. The attribute name for xml serialization
-
readDoubleContents
public double readDoubleContents()
Description copied from interface:ObjectDecoderreads the value in-line.- Specified by:
readDoubleContentsin interfaceObjectDecoder
-
readDoubleField
public double readDoubleField(String fieldName, double dflt)
Description copied from interface:ObjectDecoderReads a double.- Specified by:
readDoubleFieldin interfaceObjectDecoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. The attribute name for xml serialization
-
readFloatContents
public float readFloatContents()
Description copied from interface:ObjectDecoderReads the value in-line.- Specified by:
readFloatContentsin interfaceObjectDecoder
-
readFloatField
public float readFloatField(String fieldName, float dflt)
Description copied from interface:ObjectDecoderReads a float.- Specified by:
readFloatFieldin interfaceObjectDecoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. The attribute name for xml serialization
-
readIntContents
public int readIntContents()
Description copied from interface:ObjectDecoderReads the value in-line.- Specified by:
readIntContentsin interfaceObjectDecoder
-
readIntField
public int readIntField(String fieldName, int dflt)
Description copied from interface:ObjectDecoderReads an int.- Specified by:
readIntFieldin interfaceObjectDecoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. The attribute name for xml serialization
-
readLongContents
public long readLongContents()
Description copied from interface:ObjectDecoderreads the value in-line.- Specified by:
readLongContentsin interfaceObjectDecoder
-
readLongField
public long readLongField(String fieldName, long dflt)
Description copied from interface:ObjectDecoderReads a long.- Specified by:
readLongFieldin interfaceObjectDecoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. The attribute name for xml serialization
-
getNumSubObjects
public int getNumSubObjects()
Description copied from interface:ObjectDecoderReturns the number of anonymous sub-objects.- Specified by:
getNumSubObjectsin interfaceObjectDecoder- Returns:
-
readObjectContents
public Object readObjectContents(int index)
Description copied from interface:ObjectDecoderReads a sub-object- Specified by:
readObjectContentsin interfaceObjectDecoder
-
readObjectField
public Object readObjectField(String fieldName, Class<?> expected, Object dflt)
Description copied from interface:ObjectDecoderReads an object using the appropriate serializer for that object- Specified by:
readObjectFieldin interfaceObjectDecoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. The subelement name for xml serialization
-
readStringContents
public String readStringContents()
Description copied from interface:ObjectDecoderReads the value in-line.- Specified by:
readStringContentsin interfaceObjectDecoder
-
readStringField
public String readStringField(String fieldName, String dflt)
Description copied from interface:ObjectDecoderReads a String.- Specified by:
readStringFieldin interfaceObjectDecoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. The attribute name for xml serialization
-
-