Method | Description | |
---|---|---|
GetAttribute ( Object key ) : Object |
This is used to acquire the attribute mapped to the specified key. In order for this to return a value it must have been previously placed into the context as it is empty by default.
|
|
GetCaller ( Class type ) : Caller |
This is used to acquire the
|
|
GetDecorator ( Class type ) : Decorator |
This will acquire the
|
|
GetInstance ( Class type ) : Instance |
This will create an
|
|
GetInstance ( Value value ) : Instance |
This will create an
|
|
GetName ( Class type ) : String |
This is used to acquire the name of the specified type using the
|
|
GetOverride ( |
This is used to resolve and load a class for the given element. The class should be of the same type or a subclass of the class specified. It can be resolved using the details within the provided XML element, if the details used do not represent any serializable values they should be removed so as not to disrupt the deserialization process. For example the default strategy removes all "class" attributes from the given elements.
|
|
GetProperty ( String text ) : String |
Replaces any template variables within the provided string. This is used in the deserialization process to replace variables with system properties, environment variables, or used specified mappings. If a template variable does not have a mapping from the
|
|
GetScanner ( Class type ) : |
This creates a
|
|
GetSchema ( Class type ) : Schema |
This creates a
|
|
GetVersion ( Class type ) : Version |
This returns the version for the type specified. The version is used to determine how the deserialization process is performed. If the version of the type is different from the version for the XML document, then deserialization is done in a best effort.
|
|
IsFloat ( Class type ) : bool | ||
IsFloat ( |
This is used to determine if the type specified is a floating point type. Types that are floating point are the double and float primitives as well as the java types for this primitives.
|
|
IsPrimitive ( Class type ) : bool |
This is used to determine whether the scanned class represents a primitive type. A primitive type is a type that contains no XML annotations and so cannot be serialized with an XML form. Instead primitives a serialized using transformations.
|
|
IsPrimitive ( |
This is used to determine whether the scanned type represents a primitive type. A primitive type is a type that contains no XML annotations and so cannot be serialized with an XML form. Instead primitives a serialized using transformations.
|
|
IsStrict ( ) : bool |
This is used to determine if the deserialization mode is strict or not. If this is not strict then deserialization will be done in such a way that additional elements and attributes can be ignored. This allows external XML formats to be used without having to match the object structure to the XML fully.
|
|
SetOverride ( |
This is used to attach elements or attributes to the given element during the serialization process. This method allows the strategy to augment the XML document so that it can be deserialized using a similar strategy. For example the default strategy adds a "class" attribute to the element.
|
|
Source ( Strategy strategy, |
Constructor for the
|
|
Source ( Strategy strategy, |
Constructor for the
|
public GetAttribute ( Object key ) : Object | ||
key | Object | /// this is the name of the attribute to retrieve /// |
return | Object |
public GetCaller ( Class type ) : Caller | ||
type | Class | /// this is the type to acquire the caller for /// |
return | Caller |
public GetDecorator ( Class type ) : Decorator | ||
type | Class | /// this is the type to acquire the decorator for /// |
return | Decorator |
public GetInstance ( Class type ) : Instance | ||
type | Class | /// this is the type that is to be instantiated /// |
return | Instance |
public GetInstance ( Value value ) : Instance | ||
value | Value | /// this contains information on the object instance /// |
return | Instance |
public GetName ( Class type ) : String | ||
type | Class | /// this is the type to acquire the root name for /// |
return | String |
public GetOverride ( |
||
type | /// this is the type of the root element expected /// | |
node | InputNode | /// this is the element used to resolve an override /// |
return | Value |
public GetProperty ( String text ) : String | ||
text | String | /// this is processed by the template engine object /// |
return | String |
public GetScanner ( Class type ) : |
||
type | Class | /// the schema class the scanner is created for /// |
return |
public GetSchema ( Class type ) : Schema | ||
type | Class | /// the schema class the schema is created for /// |
return | Schema |
public GetVersion ( Class type ) : Version | ||
type | Class | /// this is the type to acquire the version for /// |
return | Version |
public IsFloat ( Class type ) : bool | ||
type | Class | /// this is the type to determine if it is a float /// |
return | bool |
public IsFloat ( |
||
type | /// this is the type to determine if it is a float /// | |
return | bool |
public IsPrimitive ( Class type ) : bool | ||
type | Class | /// this is the type to determine if it is primitive /// |
return | bool |
public IsPrimitive ( |
||
type | /// this is the type to determine if it is primitive /// | |
return | bool |
public SetOverride ( |
||
type | /// this is the field type for the associated value /// | |
value | Object | /// this is the instance variable being serialized /// |
node | OutputNode | /// this is the element used to represent the value /// |
return | bool |
public Source ( Strategy strategy, |
||
strategy | Strategy | /// this is used to resolve the classes used /// |
support | /// this is the context used to process strings /// | |
style | /// this is the style used for the serialization /// | |
return | SimpleFramework.Xml.Filter |
public Source ( Strategy strategy, |
||
strategy | Strategy | /// this is used to resolve the classes used /// |
support | /// this is the context used to process strings /// | |
style | /// this is the style used for the serialization /// | |
strict | bool | /// this determines whether to read in strict mode /// |
return | SimpleFramework.Xml.Filter |