Class Reference
IRIS for UNIX 2019.4
InterSystems: The power behind what matters   
Documentation  Search
  [ENSLIB] >  [%JSON] >  [MappingProperty]
Private  Storage   

class %JSON.MappingProperty extends %RegisteredObject, %XML.Adaptor

%JSON.MappingProperty is the internal class which represents the Property elements in the XData block which defines a JSON Adaptor mapping.


Parameters Properties Methods Queries Indices ForeignKeys Triggers
3 7


FieldName IgnoreNull Include Mapping Name
Null Reference

%%OIDGet %AddToSaveSet %BindExport %BuildObjectGraph
%ClassIsLatestVersion %ClassName %Close %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IncrementCount %IsA %IsModified
%New %NormalizeObject %ObjectModified %OriginalNamespace
%PackageName %RemoveFromSaveSet %SerializeObject %SetModified
%ValidateObject %XMLGenerate XMLAfterExport XMLBeforeExport
XMLDTD XMLExport XMLExportInternal XMLExportToStream
XMLExportToString XMLGetSchemaImports XMLImport XMLImportInternal
XMLIsObjectEmpty XMLNew XMLSchema XMLSchemaNamespace


• parameter NAMESPACE = "";
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";
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.
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.


• property FieldName as %String(XMLPROJECTION="attribute");
See %JSONFIELDNAME property parameter in %JSON.Adaptor
• property IgnoreNull as %Boolean(XMLPROJECTION="attribute");
See %JSONIGNORENULL property parameter in %JSON.Adaptor
• property Include as %String(XMLPROJECTION="attribute");
See %JSONINCLUDE property parameter in %JSON.Adaptor
• property Mapping as %String(XMLPROJECTION="attribute");
See %JSONMAPPING property parameter in %JSON.Adaptor
• property Name as %String(XMLPROJECTION="attribute") [ Required ];
Property name.
• property Null as %Boolean(XMLPROJECTION="attribute");
See %JSONNULL property parameter in %JSON.Adaptor
• property Reference as %String(XMLPROJECTION="attribute");
See %JSONREFERENCE property parameter in %JSON.Adaptor

Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.