com.skaringa.javaxml
Class PropertyKeys

java.lang.Object
  extended by com.skaringa.javaxml.PropertyKeys

public class PropertyKeys
extends java.lang.Object

This class provides string constants that can be used to set properties for ObjectTransformer.

See Also:
ObjectTransformer.setProperty(String, Object)

Field Summary
static java.lang.String OMIT_ID
          omit_id = "yes" | "no" Specifies whether the unique object id should be surpressed during serialization or not.
static java.lang.String OMIT_XSI_NIL
          omit_xsi_nil = "yes" | "no" Specifies whether the xsi:nil attributes should be surpressed during serialization or not.
static java.lang.String OMIT_XSI_TYPE
          omit_xsi_type = "yes" | "no" Specifies whether the xsi:type attributes should be surpressed during serialization or not.
static java.lang.String SKIP_UNKNOWN_FIELDS
          skip_unknown_fields = "yes" | "no" If set to "yes", then fields that are contained in the XML but are unknown to the target class are silently skipped during deserialization.
static java.lang.String SORT_FIELDS
          sort_fields = "yes" | "no" Specifies whether the declared fields of a class should be ordered lexicographically during serialization.
 
Constructor Summary
PropertyKeys()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OMIT_XSI_TYPE

public static final java.lang.String OMIT_XSI_TYPE
omit_xsi_type = "yes" | "no" Specifies whether the xsi:type attributes should be surpressed during serialization or not. Setting this property results in a shorter and more human-readable output, but the output may be not deserializable (especially if the serialized object makes use of collections, maps, or derived classes).

See Also:
Constant Field Values

OMIT_XSI_NIL

public static final java.lang.String OMIT_XSI_NIL
omit_xsi_nil = "yes" | "no" Specifies whether the xsi:nil attributes should be surpressed during serialization or not. Setting this property results in a shorter and more human-readable output, but the result of the deserialization may be not an exact copy of the serialized object.

See Also:
Constant Field Values

OMIT_ID

public static final java.lang.String OMIT_ID
omit_id = "yes" | "no" Specifies whether the unique object id should be surpressed during serialization or not. This ID is needed for the handling of cyclic references in the object to be serialized. If your objects don't have cyclic references, then you can savely use this property.

See Also:
Constant Field Values

SORT_FIELDS

public static final java.lang.String SORT_FIELDS
sort_fields = "yes" | "no" Specifies whether the declared fields of a class should be ordered lexicographically during serialization. Remark: If a static field String[] skaFieldOrder exists in the class, then the fields are ordered according to the order of their names in skaFieldOrder. If neither this property is set to 'yes' nor skaFieldOrder exists, then the fields are not in any particular order.

See Also:
Constant Field Values

SKIP_UNKNOWN_FIELDS

public static final java.lang.String SKIP_UNKNOWN_FIELDS
skip_unknown_fields = "yes" | "no" If set to "yes", then fields that are contained in the XML but are unknown to the target class are silently skipped during deserialization. If not set or set to "no", then those unknown fields cause a DeserializerException.

See Also:
Constant Field Values
Constructor Detail

PropertyKeys

public PropertyKeys()