%JSON.Mapping
class %JSON.Mapping extends %Library.RegisteredObject, %XML.Adaptor
%JSON.Mapping is the internal class which represents the contents of the XData block which defines a JSON Adaptor mapping.Property Inventory
Parameters
parameter NAMESPACE = http://www.intersystems.com/jsonmapping;
Inherited description: NAMESPACE specifies the XML namespace to be used when projecting the
class to XML. If NAMESPACE = "", the default namespace is used for the XML schema
is used as the namespace for his class.
parameter XMLFORMAT = literal;
Inherited description: The XMLFORMAT parameter controls the generation of the XMLExport and XMLImport
methods for XML enabled classes to include code for only literal or only encoded format.
This allows the generated routines to be significantly smaller since usually
both formats are not needed.
If XMLFORMAT="Literal", then only support for literal format import and export is generated.
If XMLFORMAT="Encoded", then only support for SOAP encoded format import and export is generated.
The default is to generate support for both literal and encoded format.
parameter XMLIGNOREINVALIDATTRIBUTE = 0;
Inherited description: The XMLIGNOREINVALIDATTRIBUTE parameter allows the programmer to control handling of unexpected
attributes in the XML input.
By default (XMLIGNOREINVALIDATTRIBUTE = 1), will ignore unexpected attributes.
If XMLIGNOREINVALIDATTRIBUTE is set = 0, then an unexpected attribute will be treated as an error.
Properties
property IgnoreInvalidField as %Boolean (XMLPROJECTION = "attribute") [ InitialExpression = 0 ];
See %JSONIGNOREINVALIDFIELD class parameter in %JSON.Adaptor
Property methods: IgnoreInvalidFieldDisplayToLogical(), IgnoreInvalidFieldGet(), IgnoreInvalidFieldIsValid(), IgnoreInvalidFieldLogicalToDisplay(), IgnoreInvalidFieldLogicalToXSD(), IgnoreInvalidFieldNormalize(), IgnoreInvalidFieldSet(), IgnoreInvalidFieldXSDToLogical()
property IgnoreNull as %Boolean (XMLPROJECTION = "attribute") [ InitialExpression = 0 ];
See %JSONIGNORENULL class parameter in %JSON.Adaptor
Property methods: IgnoreNullDisplayToLogical(), IgnoreNullGet(), IgnoreNullIsValid(), IgnoreNullLogicalToDisplay(), IgnoreNullLogicalToXSD(), IgnoreNullNormalize(), IgnoreNullSet(), IgnoreNullXSDToLogical()
property Mapping as %String (XMLPROJECTION = "attribute");
See %JSONMAPPING class parameter in %JSON.Adaptor
Property methods: MappingDisplayToLogical(), MappingGet(), MappingIsValid(), MappingLogicalToDisplay(), MappingLogicalToOdbc(), MappingNormalize(), MappingSet()
property Null as %Boolean (XMLPROJECTION = "attribute") [ InitialExpression = 0 ];
See %JSONNULL class parameter in %JSON.Adaptor
Property methods: NullDisplayToLogical(), NullGet(), NullIsValid(), NullLogicalToDisplay(), NullLogicalToXSD(), NullNormalize(), NullSet(), NullXSDToLogical()
property Reference as %String (XMLPROJECTION = "attribute") [ InitialExpression = "OBJECT" ];
See %JSONREFERENCE class parameter in %JSON.Adaptor
Property methods: ReferenceDisplayToLogical(), ReferenceGet(), ReferenceIsValid(), ReferenceLogicalToDisplay(), ReferenceLogicalToOdbc(), ReferenceNormalize(), ReferenceSet()
property propertyList as list of %JSON.MappingProperty (XMLNAME = "Property", XMLPROJECTION = "element");
The list of property definitions
Property methods: propertyListBuildValueArray(), propertyListCollectionToDisplay(), propertyListCollectionToOdbc(), propertyListDisplayToCollection(), propertyListGet(), propertyListGetObject(), propertyListGetObjectId(), propertyListGetSwizzled(), propertyListIsValid(), propertyListOdbcToCollection(), propertyListSet(), propertyListSetObject(), propertyListSetObjectId()
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()
- XMLDTD()
- XMLExport()
- XMLExportToStream()
- XMLExportToString()
- XMLNew()
- XMLSchema()
- XMLSchemaNamespace()
- XMLSchemaType()