Méthode | Description | |
---|---|---|
CycleStrategy ( ) : SimpleFramework.Xml.Stream |
Constructor for the
|
|
CycleStrategy ( String mark, String refer ) : SimpleFramework.Xml.Stream |
Constructor for the
|
|
CycleStrategy ( String mark, String refer, String label ) : SimpleFramework.Xml.Stream |
Constructor for the
|
|
CycleStrategy ( String mark, String refer, String label, String length ) : SimpleFramework.Xml.Stream |
Constructor for the
|
|
Read ( Type type, NodeMap node, Dictionary, map ) : Value, |
This method is used to read an object from the specified node. In order to get the root type the field and node map are specified. The field represents the annotated method or field within the deserialized object. The node map is used to get the attributes used to describe the objects identity, or in the case of an existing object it contains an object reference.
|
|
Write ( Type type, Object value, NodeMap node, Dictionary, map ) : bool |
This is used to write the reference in to the XML element that is to be written. This will either insert an object identity if the object has not previously been written, or, if the object has already been written in a previous element, this will write the reference to that object. This allows all cycles within the graph to be serialized so that they can be fully deserialized.
|
public CycleStrategy ( ) : SimpleFramework.Xml.Stream | ||
Résultat | SimpleFramework.Xml.Stream |
public CycleStrategy ( String mark, String refer ) : SimpleFramework.Xml.Stream | ||
mark | String | /// this is used to mark the identity of an object /// |
refer | String | /// this is used to refer to an existing object /// |
Résultat | SimpleFramework.Xml.Stream |
public CycleStrategy ( String mark, String refer, String label ) : SimpleFramework.Xml.Stream | ||
mark | String | /// this is used to mark the identity of an object /// |
refer | String | /// this is used to refer to an existing object /// |
label | String | /// this is used to specify the class for the field /// |
Résultat | SimpleFramework.Xml.Stream |
public CycleStrategy ( String mark, String refer, String label, String length ) : SimpleFramework.Xml.Stream | ||
mark | String | /// this is used to mark the identity of an object /// |
refer | String | /// this is used to refer to an existing object /// |
label | String | /// this is used to specify the class for the field /// |
length | String | /// this is the length attribute used for arrays /// |
Résultat | SimpleFramework.Xml.Stream |
public Read ( Type type, NodeMap node, Dictionary, map ) : Value, | ||
type | Type | /// the method or field in the deserialized object /// |
node | NodeMap | /// this is the XML element attributes to read /// |
map | Dictionary, | /// this is the session map used for deserialization /// |
Résultat | Value, |
public Write ( Type type, Object value, NodeMap node, Dictionary, map ) : bool | ||
type | Type | /// the type of the field or method in the object /// |
value | Object | /// this is the actual object that is to be written /// |
node | NodeMap | /// this is the XML element attribute map to use /// |
map | Dictionary, | /// this is the session map used for the serialization /// |
Résultat | bool |