Method | Description | |
---|---|---|
IsOverridden ( OutputNode node, Object value ) : bool |
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.
|
|
PrimitiveKey ( Context context, |
Constructor for the
|
|
Read ( InputNode node ) : Object |
This method is used to read the key value from the node. The value read from the node is resolved using the template filter. If the key value can not be found according to the annotation attributes then an exception is thrown.
|
|
Read ( InputNode node, Object value ) : Object |
This method is used to read the key value from the node. The value read from the node is resolved using the template filter. If the key value can not be found according to the annotation attributes then an exception is thrown.
|
|
ReadAttribute ( InputNode node, String key ) : Object |
This method is used to read the key value from the node. The value read from the node is resolved using the template filter. If the key value can not be found according to the annotation attributes then an null is assumed and returned.
|
|
ReadElement ( InputNode node, String key ) : Object |
This method is used to read the key value from the node. The value read from the node is resolved using the template filter. If the key value can not be found according to the annotation attributes then null is assumed and returned.
|
|
Validate ( InputNode node ) : bool |
This method is used to read the key value from the node. The value read from the node is resolved using the template filter. If the key value can not be found according to the annotation attributes then the node is considered as null and is valid.
|
|
ValidateAttribute ( InputNode node, String key ) : bool |
This method is used to read the key value from the node. The value read from the node is resolved using the template filter. If the key value can not be found according to the annotation attributes then the node is considered as null and is valid.
|
|
ValidateElement ( InputNode node, String key ) : bool |
This method is used to read the key value from the node. The value read from the node is resolved using the template filter. If the key value can not be found according to the annotation attributes then the node is considered as null and is valid.
|
|
Write ( OutputNode node, Object item ) : void |
This method is used to write the value to the specified node. The value written to the node can be an attribute or an element depending on the annotation attribute values. This method will maintain references for serialized elements.
|
|
WriteAttribute ( OutputNode node, Object item ) : void |
This method is used to write the value to the specified node. This will write the item as an attribute to the provided node, the name of the attribute is taken from the annotation.
|
|
WriteElement ( OutputNode node, Object item ) : void |
This method is used to write the value to the specified node. This will write the item as an element to the provided node, also this enables references to be used during serialization.
|
public IsOverridden ( OutputNode node, Object value ) : bool | ||
node | OutputNode | /// the node that a potential override is written to /// |
value | Object | /// this is the object instance to be serialized /// |
return | bool |
public PrimitiveKey ( Context context, |
||
context | Context | /// this is the context object used for serialization /// |
entry | /// this is the entry object that describes entries /// | |
type | /// this is the type that this converter deals with /// | |
return | SimpleFramework.Xml.Strategy |
public Read ( InputNode node ) : Object | ||
node | InputNode | /// this is the node to read the key value from /// |
return | Object |
public Read ( InputNode node, Object value ) : Object | ||
node | InputNode | /// this is the node to read the key value from /// |
value | Object | /// this is the value to deserialize in to /// |
return | Object |
public ReadAttribute ( InputNode node, String key ) : Object | ||
node | InputNode | /// this is the node to read the key value from /// |
key | String | /// this is the name of the attribute used by the key /// |
return | Object |
public ReadElement ( InputNode node, String key ) : Object | ||
node | InputNode | /// this is the node to read the key value from /// |
key | String | /// this is the name of the element used by the key /// |
return | Object |
public Validate ( InputNode node ) : bool | ||
node | InputNode | /// this is the node to read the key value from /// |
return | bool |
public ValidateAttribute ( InputNode node, String key ) : bool | ||
node | InputNode | /// this is the node to read the key value from /// |
key | String | /// this is the name of the attribute used by the key /// |
return | bool |
public ValidateElement ( InputNode node, String key ) : bool | ||
node | InputNode | /// this is the node to read the key value from /// |
key | String | /// this is the name of the element used by the key /// |
return | bool |
public Write ( OutputNode node, Object item ) : void | ||
node | OutputNode | /// this is the node that the value is written to /// |
item | Object | /// this is the item that is to be written /// |
return | void |
public WriteAttribute ( OutputNode node, Object item ) : void | ||
node | OutputNode | /// this is the node that the value is written to /// |
item | Object | /// this is the item that is to be written /// |
return | void |
public WriteElement ( OutputNode node, Object item ) : void | ||
node | OutputNode | /// this is the node that the value is written to /// |
item | Object | /// this is the item that is to be written /// |
return | void |