Méthode | Description | |
---|---|---|
Composite ( Context context, |
Constructor for the
|
|
IsOverridden ( OutputNode node, Object value, |
This is used to determine whether the specified value has been overridden by the strategy. If the item has been overridden then no more serialization is require for that value, this is effectively telling the serialization process to stop writing.
|
|
Read ( InputNode node ) : Object |
This If any of the required contacts are not present within the provided XML element this will terminate deserialization and throw an exception. The annotation missing is reported in the exception.
|
|
Read ( InputNode node, Instance value, Class real ) : Object |
This If any of the required contacts are not present within the provided XML element this will terminate deserialization and throw an exception. The annotation missing is reported in the exception.
|
|
Read ( InputNode node, Object source ) : Object |
This If any of the required contacts are not present within the provided XML element this will terminate deserialization and throw an exception. The annotation missing is reported in the exception.
|
|
Read ( InputNode node, Object source, Label label ) : Object |
This
|
|
Read ( InputNode node, Schema schema, Instance value ) : Object |
This If any of the required contacts are not present within the provided XML element this will terminate deserialization and throw an exception. The annotation missing is reported in the exception.
|
|
Read ( InputNode node, Object source, Schema schema ) : void |
This If any of the required contacts are not present within the provided XML element this will terminate deserialization and throw an exception. The annotation missing is reported in the exception.
|
|
ReadAttribute ( InputNode node, Object source, LabelMap map ) : void |
This
|
|
ReadAttributes ( InputNode node, Object source, Schema schema ) : void |
This Once all attributes within the XML element have been evaluated the
|
|
ReadConstructor ( InputNode node, Schema schema, Instance value ) : Object |
This This takes the approach of reading the XML elements and attributes before instantiating the object. Instantiation is performed using a declared constructor. The parameters for the constructor are taken from the deserialized objects.
|
|
ReadDefault ( InputNode node, Schema schema, Instance value ) : Object |
This This takes the approach that the object is instantiated first and then the annotated fields and methods are deserialized from the XML elements and attributes. When all the details have be deserialized they are set on the internal contacts of the object.
|
|
ReadElement ( InputNode node, Object source, LabelMap map ) : void |
This
|
|
ReadElements ( InputNode node, Object source, Schema schema ) : void |
This Once all elements within the XML element have been evaluated the
|
|
ReadObject ( InputNode node, Object source, Label label ) : Object |
This
|
|
ReadPrimitive ( InputNode node, Instance value ) : Object |
This
|
|
ReadResolve ( InputNode node, Object source, Caller caller ) : Object |
The
|
|
ReadText ( InputNode node, Object source, Schema schema ) : void |
This
|
|
ReadVersion ( InputNode node, Object source, Label label ) : void |
This method is used to read the version from the provided input node. Once the version has been read it is used to determine how to deserialize the object. If the version is not the initial version then it is read in a manner that ignores excessive XML elements and attributes. Also none of the annotated fields or methods are required if the version is not the initial version.
|
|
ReadVersion ( InputNode node, Object source, Schema schema ) : void |
This method is used to read the version from the provided input node. Once the version has been read it is used to determine how to deserialize the object. If the version is not the initial version then it is read in a manner that ignores excessive XML elements and attributes. Also none of the annotated fields or methods are required if the version is not the initial version.
|
|
Validate ( InputNode node ) : bool |
This If any of the required contacts are not present within the given XML element this will terminate validation and throw an exception The annotation missing is reported in the exception.
|
|
Validate ( InputNode node, Class type ) : bool |
This If any of the required contacts are not present within the given XML element this will terminate validation and throw an exception The annotation missing is reported in the exception.
|
|
Validate ( InputNode node, Label label ) : void |
This
|
|
Validate ( InputNode node, LabelMap map ) : void |
This method checks to see if there are any
|
|
Validate ( InputNode node, LabelMap map, Object source ) : void |
This method checks to see if there are any
|
|
ValidateAttribute ( InputNode node, LabelMap map ) : void |
This
|
|
ValidateAttributes ( InputNode node, Schema schema ) : void |
This Once all attributes within the XML element have been evaluated the
|
|
ValidateElement ( InputNode node, LabelMap map ) : void |
This
|
|
ValidateElements ( InputNode node, Schema schema ) : void |
This Once all elements within the XML element have been evaluated the
|
|
ValidateText ( InputNode node, Schema schema ) : void |
This
|
|
Write ( OutputNode node, Object source ) : void |
This
|
|
Write ( OutputNode node, Object source, Schema schema ) : void |
This
|
|
WriteAttribute ( OutputNode node, Object value, Label label ) : void |
This write method is used to set the value of the provided object as an attribute to the XML element. This will acquire the string value of the object using
|
|
WriteAttributes ( OutputNode node, Object source, Schema schema ) : void |
This write method is used to write all the attribute contacts from the provided source object to the XML element. This visits all the contacts marked with the
|
|
WriteElement ( OutputNode node, Object value, Converter convert ) : void |
This is used write the element specified using the specified converter. Writing the value using the specified converter will result in the node being populated with the elements, attributes, and text values to the provided node. If there is a problem writing the value using the converter an exception is thrown.
|
|
WriteElement ( OutputNode node, Object value, Label label ) : void |
This write method is used to append the provided object as an element to the given XML element object. This will recursively write the contacts from the provided object as elements. This is done using the If the element being written is inline, then this will not check to see if there is a "class" attribute specifying the name of the class. This is because inline elements do not have an outer class and thus could never have an override.
|
|
WriteElements ( OutputNode node, Object source, Schema schema ) : void |
This write method is used to write all the element contacts from the provided source object to the XML element. This visits all the contacts marked with the
|
|
WriteNamespaces ( OutputNode node, Class type, Label label ) : void |
This is used to apply
|
|
WriteReplace ( Object source ) : Object |
The
|
|
WriteText ( OutputNode node, Object value, Label label ) : void |
This write method is used to set the value of the provided object as the text for the XML element. This will acquire the string value of the object using
|
|
WriteText ( OutputNode node, Object source, Schema schema ) : void |
This write method is used to write the text contact from the provided source object to the XML element. This takes the text value from the source object and writes it to the single contact marked with the
|
|
WriteVersion ( OutputNode node, Object source, Schema schema ) : void |
This method is used to write the version attribute. A version is written only if it is not the initial version or if it required. The version is used to determine how to deserialize the XML. If the version is different from the expected version then it allows the object to be deserialized in a manner that does not require any attributes or elements, and unmatched nodes are ignored.
|
public Composite ( Context context, |
||
context | Context | /// the source object used to perform serialization /// |
type | /// this is the XML schema type to use for this /// | |
Résultat | SimpleFramework.Xml.Strategy |
public IsOverridden ( OutputNode node, Object value, |
||
node | OutputNode | /// the node that a potential override is written to /// |
value | Object | /// this is the object instance to be serialized /// |
type | /// this is the type of the object to be serialized /// | |
Résultat | bool |
public Read ( InputNode node ) : Object | ||
node | InputNode | /// the XML element contact values are deserialized from /// |
Résultat | Object |
public Read ( InputNode node, Instance value, Class real ) : Object | ||
node | InputNode | /// the XML element contact values are deserialized from /// |
value | Instance | /// this is the instance for the object within the graph /// |
real | Class | /// this is the real type that is to be evaluated /// |
Résultat | Object |
public Read ( InputNode node, Object source ) : Object | ||
node | InputNode | /// the XML element contact values are deserialized from /// |
source | Object | /// the object whose contacts are to be deserialized /// |
Résultat | Object |
public Read ( InputNode node, Object source, Label label ) : Object | ||
node | InputNode | /// this is the node that contains the contact value /// |
source | Object | /// the type of the object that is being deserialized /// |
label | Label | /// this is the label used to create the converter /// |
Résultat | Object |
public Read ( InputNode node, Schema schema, Instance value ) : Object | ||
node | InputNode | /// the XML element contact values are deserialized from /// |
schema | Schema | /// this is the schema for the class to be deserialized /// |
value | Instance | /// this is the value used for the deserialization /// |
Résultat | Object |
public Read ( InputNode node, Object source, Schema schema ) : void | ||
node | InputNode | /// the XML element contact values are deserialized from /// |
source | Object | /// this type of the object that is to be deserialized /// |
schema | Schema | /// this object visits the objects contacts /// |
Résultat | void |
public ReadAttribute ( InputNode node, Object source, LabelMap map ) : void | ||
node | InputNode | /// this is the node that contains the contact value /// |
source | Object | /// the type of the object that is being deserialized /// |
map | LabelMap | /// this is the map that contains the label objects /// |
Résultat | void |
public ReadAttributes ( InputNode node, Object source, Schema schema ) : void | ||
node | InputNode | /// this is the XML element to be evaluated /// |
source | Object | /// the type of the object that is being deserialized /// |
schema | Schema | /// this is used to visit the attribute contacts /// |
Résultat | void |
public ReadConstructor ( InputNode node, Schema schema, Instance value ) : Object | ||
node | InputNode | /// the XML element contact values are deserialized from /// |
schema | Schema | /// this is the schema for the class to be deserialized /// |
value | Instance | /// this is the value used for the deserialization /// |
Résultat | Object |
public ReadDefault ( InputNode node, Schema schema, Instance value ) : Object | ||
node | InputNode | /// the XML element contact values are deserialized from /// |
schema | Schema | /// this is the schema for the class to be deserialized /// |
value | Instance | /// this is the value used for the deserialization /// |
Résultat | Object |
public ReadElement ( InputNode node, Object source, LabelMap map ) : void | ||
node | InputNode | /// this is the node that contains the contact value /// |
source | Object | /// the type of the object that is being deserialized /// |
map | LabelMap | /// this is the map that contains the label objects /// |
Résultat | void |
public ReadElements ( InputNode node, Object source, Schema schema ) : void | ||
node | InputNode | /// this is the XML element to be evaluated /// |
source | Object | /// the type of the object that is being deserialized /// |
schema | Schema | /// this is used to visit the element contacts /// |
Résultat | void |
public ReadObject ( InputNode node, Object source, Label label ) : Object | ||
node | InputNode | /// this is the node that contains the contact value /// |
source | Object | /// the source object to assign the contact value to /// |
label | Label | /// this is the label used to create the converter /// |
Résultat | Object |
public ReadPrimitive ( InputNode node, Instance value ) : Object | ||
node | InputNode | /// this is the node to be converted to a primitive /// |
value | Instance | /// this is the type for the object within the graph /// |
Résultat | Object |
public ReadResolve ( InputNode node, Object source, Caller caller ) : Object | ||
node | InputNode | /// the XML element object provided as a replacement /// |
source | Object | /// the type of the object that is being deserialized /// |
caller | Caller | /// this is used to invoke the callback methods /// |
Résultat | Object |
public ReadText ( InputNode node, Object source, Schema schema ) : void | ||
node | InputNode | /// this is the XML element to acquire the text from /// |
source | Object | /// the type of the object that is being deserialized /// |
schema | Schema | /// this is used to visit the element contacts /// |
Résultat | void |
public ReadVersion ( InputNode node, Object source, Label label ) : void | ||
node | InputNode | /// the XML element contact values are deserialized from /// |
source | Object | /// the type of the object that is being deserialized /// |
label | Label | /// this is the label used to read the version attribute /// |
Résultat | void |
public ReadVersion ( InputNode node, Object source, Schema schema ) : void | ||
node | InputNode | /// the XML element contact values are deserialized from /// |
source | Object | /// this object whose contacts are to be deserialized /// |
schema | Schema | /// this object visits the objects contacts /// |
Résultat | void |
public Validate ( InputNode node ) : bool | ||
node | InputNode | /// the XML element contact values are validated from /// |
Résultat | bool |
public Validate ( InputNode node, Class type ) : bool | ||
node | InputNode | /// the XML element contact values are validated from /// |
type | Class | /// this is the type to validate against the input node /// |
Résultat | bool |
public Validate ( InputNode node, Label label ) : void | ||
node | InputNode | /// this is the node that contains the contact value /// |
label | Label | /// this is the label used to create the converter /// |
Résultat | void |
public Validate ( InputNode node, LabelMap map ) : void | ||
node | InputNode | /// this is the node that contains the composite data /// |
map | LabelMap | /// this contains the converters to perform validation /// |
Résultat | void |
public Validate ( InputNode node, LabelMap map, Object source ) : void | ||
node | InputNode | |
map | LabelMap | /// this is the map to check for remaining labels /// |
source | Object | /// this is the object that has been deserialized /// |
Résultat | void |
public ValidateAttribute ( InputNode node, LabelMap map ) : void | ||
node | InputNode | /// this is the node that contains the contact value /// |
map | LabelMap | /// this is the map that contains the label objects /// |
Résultat | void |
public ValidateAttributes ( InputNode node, Schema schema ) : void | ||
node | InputNode | /// this is the XML element to be validated /// |
schema | Schema | /// this is used to visit the attribute contacts /// |
Résultat | void |
public ValidateElement ( InputNode node, LabelMap map ) : void | ||
node | InputNode | /// this is the node that contains the contact value /// |
map | LabelMap | /// this is the map that contains the label objects /// |
Résultat | void |
public ValidateElements ( InputNode node, Schema schema ) : void | ||
node | InputNode | /// this is the XML element to be evaluated /// |
schema | Schema | /// this is used to visit the element contacts /// |
Résultat | void |
public ValidateText ( InputNode node, Schema schema ) : void | ||
node | InputNode | /// this is the XML element to acquire the text from /// |
schema | Schema | /// this is used to visit the element contacts /// |
Résultat | void |
public Write ( OutputNode node, Object source ) : void | ||
node | OutputNode | /// the XML element the object is to be serialized to /// |
source | Object | /// this is the source object to be serialized /// |
Résultat | void |
public Write ( OutputNode node, Object source, Schema schema ) : void | ||
node | OutputNode | /// the XML element the object is to be serialized to /// |
source | Object | /// this is the source object to be serialized /// |
schema | Schema | /// this is used to track the referenced contacts /// |
Résultat | void |
public WriteAttribute ( OutputNode node, Object value, Label label ) : void | ||
node | OutputNode | /// this is the XML element to write the attribute to /// |
value | Object | /// this is the value to be set as an attribute /// |
label | Label | /// the label that contains the contact details /// |
Résultat | void |
public WriteAttributes ( OutputNode node, Object source, Schema schema ) : void | ||
node | OutputNode | /// this is the XML element to write attributes to /// |
source | Object | /// this is the source object to be serialized /// |
schema | Schema | /// this is used to track the referenced attributes /// |
Résultat | void |
public WriteElement ( OutputNode node, Object value, Converter convert ) : void | ||
node | OutputNode | /// this is the node that the value is to be written to /// |
value | Object | /// this is the value that is to be written /// |
convert | Converter | /// this is the converter used to perform writing /// |
Résultat | void |
public WriteElement ( OutputNode node, Object value, Label label ) : void | ||
node | OutputNode | /// this is the XML element to write the element to /// |
value | Object | /// this is the value to be set as an element /// |
label | Label | /// the label that contains the contact details /// |
Résultat | void |
public WriteElements ( OutputNode node, Object source, Schema schema ) : void | ||
node | OutputNode | /// this is the XML element to write elements to /// |
source | Object | /// this is the source object to be serialized /// |
schema | Schema | /// this is used to track the referenced elements /// |
Résultat | void |
public WriteNamespaces ( OutputNode node, Class type, Label label ) : void | ||
node | OutputNode | /// this is the node that decorations are applied to /// |
type | Class | /// this is the type to acquire the decoration for /// |
label | Label | /// this contains the primary decorator to be used /// |
Résultat | void |
public WriteReplace ( Object source ) : Object | ||
source | Object | /// this is the source object that is to be replaced /// |
Résultat | Object |
public WriteText ( OutputNode node, Object value, Label label ) : void | ||
node | OutputNode | /// this is the XML element to write the text value to /// |
value | Object | /// this is the value to set as the XML element text /// |
label | Label | /// the label that contains the contact details /// |
Résultat | void |
public WriteText ( OutputNode node, Object source, Schema schema ) : void | ||
node | OutputNode | /// this is the XML element to write text value to /// |
source | Object | /// this is the source object to be serialized /// |
schema | Schema | /// this is used to track the referenced elements /// |
Résultat | void |
public WriteVersion ( OutputNode node, Object source, Schema schema ) : void | ||
node | OutputNode | /// this is the node to read the version attribute from /// |
source | Object | /// this is the source object that is to be written /// |
schema | Schema | /// this is the schema that contains the version /// |
Résultat | void |