Class XmlObjectEncoder
java.lang.Object
org.identityconnectors.framework.impl.serializer.xml.XmlObjectEncoder
- All Implemented Interfaces:
ObjectEncoder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteBooleanContents(boolean v) Writes the value in-line.voidwriteBooleanField(String fieldName, boolean v) Writes a boolean.voidwriteByteArrayContents(byte[] v) Special case for byte [] that uses base64 encoding for XMLvoidwriteByteContents(byte v) Writes the value in-line.voidwriteClassContents(Class<?> v) Writes the value in-line.voidwriteClassField(String name, Class<?> v) Writes a Class.voidwriteDoubleContents(double v) Writes the value in-line.voidwriteDoubleField(String fieldName, double v) Writes a double.voidwriteFloatContents(float v) Writes the value in-line.voidwriteFloatField(String fieldName, float v) Writes a float.voidwriteIntContents(int v) Writes the value in-line.voidwriteIntField(String fieldName, int v) Writes an int.voidwriteLongContents(long v) Writes the value in-line.voidwriteLongField(String fieldName, long v) Writes a long.voidWrites a sub-objectvoidwriteObjectField(String fieldName, Object object, boolean inline) Writes an object using the appropriate serializer for that objectvoidWrites the value in-line.voidwriteStringField(String fieldName, String str) Writes a String.
-
Constructor Details
-
XmlObjectEncoder
-
-
Method Details
-
writeObject
-
writeBooleanContents
public void writeBooleanContents(boolean v) Description copied from interface:ObjectEncoderWrites the value in-line.- Specified by:
writeBooleanContentsin interfaceObjectEncoder
-
writeBooleanField
Description copied from interface:ObjectEncoderWrites a boolean.- Specified by:
writeBooleanFieldin interfaceObjectEncoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. Becomes the attribute name for xml serializationv- The value to serialize
-
writeByteContents
public void writeByteContents(byte v) Description copied from interface:ObjectEncoderWrites the value in-line.- Specified by:
writeByteContentsin interfaceObjectEncoder
-
writeByteArrayContents
public void writeByteArrayContents(byte[] v) Description copied from interface:ObjectEncoderSpecial case for byte [] that uses base64 encoding for XML- Specified by:
writeByteArrayContentsin interfaceObjectEncoder
-
writeClassContents
Description copied from interface:ObjectEncoderWrites the value in-line.- Specified by:
writeClassContentsin interfaceObjectEncoder
-
writeClassField
Description copied from interface:ObjectEncoderWrites a Class.- Specified by:
writeClassFieldin interfaceObjectEncoder- Parameters:
name- A hint of the field name. Ignored for binary serialization. Becomes the attribute name for xml serializationv- The value to serialize
-
writeDoubleContents
public void writeDoubleContents(double v) Description copied from interface:ObjectEncoderWrites the value in-line.- Specified by:
writeDoubleContentsin interfaceObjectEncoder
-
writeDoubleField
Description copied from interface:ObjectEncoderWrites a double.- Specified by:
writeDoubleFieldin interfaceObjectEncoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. Becomes the attribute name for xml serializationv- The value to serialize
-
writeFloatContents
public void writeFloatContents(float v) Description copied from interface:ObjectEncoderWrites the value in-line.- Specified by:
writeFloatContentsin interfaceObjectEncoder
-
writeFloatField
Description copied from interface:ObjectEncoderWrites a float.- Specified by:
writeFloatFieldin interfaceObjectEncoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. Becomes the attribute name for xml serializationv- The value to serialize
-
writeIntContents
public void writeIntContents(int v) Description copied from interface:ObjectEncoderWrites the value in-line.- Specified by:
writeIntContentsin interfaceObjectEncoder
-
writeIntField
Description copied from interface:ObjectEncoderWrites an int.- Specified by:
writeIntFieldin interfaceObjectEncoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. Becomes the attribute name for xml serializationv- The value to serialize
-
writeLongContents
public void writeLongContents(long v) Description copied from interface:ObjectEncoderWrites the value in-line.- Specified by:
writeLongContentsin interfaceObjectEncoder
-
writeLongField
Description copied from interface:ObjectEncoderWrites a long.- Specified by:
writeLongFieldin interfaceObjectEncoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. Becomes the attribute name for xml serializationv- The value to serialize
-
writeObjectContents
Description copied from interface:ObjectEncoderWrites a sub-object- Specified by:
writeObjectContentsin interfaceObjectEncoder- Parameters:
o- The object to write
-
writeObjectField
Description copied from interface:ObjectEncoderWrites an object using the appropriate serializer for that object- Specified by:
writeObjectFieldin interfaceObjectEncoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. Becomes the subelement name for xml serializationobject- The object to serializeinline- Ignore for binary serialization. For xml serialization, this causes us not to have a sub-element. When inlining, polymorphic typing is not supported.
-
writeStringContents
Description copied from interface:ObjectEncoderWrites the value in-line.- Specified by:
writeStringContentsin interfaceObjectEncoder
-
writeStringField
Description copied from interface:ObjectEncoderWrites a String.- Specified by:
writeStringFieldin interfaceObjectEncoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. Becomes the attribute name for xml serializationstr- The value to serialize
-