public interface GuideModelImporter
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createFormJsonFromSchema(SchemaImportOptions schemaImportOptions)
Returns JSON String of the schema depending on the schemaImportOptions.
|
java.lang.String |
createFragmentJsonFromSchema(SchemaImportOptions schemaImportOptions) |
java.lang.String |
getDefinitionOfElement(GuideSchemaType schemaType,
java.lang.String schemaRef,
java.lang.String rootName,
java.lang.String bindRef)
Returns the definition of the element at the end of the bindRef.
|
java.lang.String |
getJSONHTMLFragmentOrForm(LazyLoadingOptions lazyLoadingOptions)
This API would return JSON or HTML for a on demand fragment panel or a
list of JSON or HTML of all the on demand components of an AF
The API is to be user with the following flags set in lazyLoadingOptions
// Todo THIS API has to be marked private
GET_CHILD_PANEL_JSON-
GET_CHILD_FORM_JSON-
GET_JSON_FOR_ALL_LAZY_CHILDERN-
GET_CHILD_PANEL_HTML-
GET_CHILD_FORM_HTML-
GET_HTML_FOR_ALL_LAZY_CHILDREN-
GET_RENDER_JSON_FOR_PARENT_FORM-
GET_RENDER_HTML_FOR_PARENT_FORM -
GET_PIGGY_BANKED_JSON
|
java.util.List<java.lang.String> |
getLazyChildren(Resource guideContainer) |
JSONArray |
getRootElementsFromSchema(GuideSchemaType schemaType,
java.lang.String schemaPath)
Depending on the schema Type, the API returns JSONArray containing root Elements of the XSD,
Form Data Model or JSON Schema
|
JSONArray |
getSchemaDefinitions(GuideSchemaType schemaType,
java.lang.String schemaPath) |
JSONObject |
getSchemaJson(Resource guideContainerResource)
This API converts the XSD into a JSON representation that contains the values of minOccur, type, bindRef,
defaultValue, maxOccur and nillable property for every Node.
|
java.lang.String |
getTypeOfElement(java.lang.String xsdRef,
java.lang.String rootName,
java.lang.String xPath) |
JSONArray |
getXDPFragmentSubForms(java.lang.String xfaPath) |
JSONArray |
getXSDComplexTypes(java.lang.String xsdPath) |
JSONArray |
getXSDRootElements(java.lang.String xsdPath) |
java.lang.String |
importFromDataDictionary(Resource guideContainer) |
java.lang.String |
importFromDataDictionary(java.lang.String ddRef) |
java.lang.String |
importFromXFA(Resource guideContainer) |
java.util.Hashtable<java.lang.String,java.lang.Object> |
importFromXFA(java.lang.String xfaFormdomJson,
boolean saveXFAObjects) |
java.lang.String |
importFromXSD(java.io.InputStream xsdStream,
java.lang.String rootElName,
java.lang.String rootElNamespace) |
java.lang.String |
importFromXSD(Resource guideContainer) |
java.lang.String |
importFromXSD(java.lang.String xsdPath,
java.lang.String elementName,
java.lang.String elementNameSpace) |
java.lang.String |
importFromXSDForFragment(Resource guideContainer) |
boolean |
isSchemaValid(GuideSchemaType schemaType,
java.lang.String schemaPath) |
java.lang.String createFormJsonFromSchema(SchemaImportOptions schemaImportOptions) throws GuideException
schemaImportOptions
- GuideException
java.lang.String createFragmentJsonFromSchema(SchemaImportOptions schemaImportOptions) throws GuideException
GuideException
java.lang.String importFromXSD(Resource guideContainer) throws GuideException
GuideException
java.lang.String importFromXSD(java.io.InputStream xsdStream, java.lang.String rootElName, java.lang.String rootElNamespace) throws GuideException
GuideException
JSONArray getRootElementsFromSchema(GuideSchemaType schemaType, java.lang.String schemaPath)
schemaType
- schemaPath
- GuideException
java.lang.String importFromXFA(Resource guideContainer) throws GuideException
GuideException
java.util.Hashtable<java.lang.String,java.lang.Object> importFromXFA(java.lang.String xfaFormdomJson, boolean saveXFAObjects) throws GuideException
GuideException
JSONArray getXSDRootElements(java.lang.String xsdPath) throws GuideException
GuideException
java.lang.String importFromXSD(java.lang.String xsdPath, java.lang.String elementName, java.lang.String elementNameSpace) throws GuideException
GuideException
JSONArray getSchemaDefinitions(GuideSchemaType schemaType, java.lang.String schemaPath) throws GuideException
GuideException
boolean isSchemaValid(GuideSchemaType schemaType, java.lang.String schemaPath) throws GuideException
GuideException
java.lang.String importFromDataDictionary(Resource guideContainer) throws GuideException
GuideException
java.lang.String importFromDataDictionary(java.lang.String ddRef) throws GuideException
GuideException
JSONArray getXDPFragmentSubForms(java.lang.String xfaPath) throws GuideException
GuideException
JSONArray getXSDComplexTypes(java.lang.String xsdPath) throws GuideException
GuideException
java.lang.String importFromXSDForFragment(Resource guideContainer) throws GuideException
GuideException
java.lang.String getTypeOfElement(java.lang.String xsdRef, java.lang.String rootName, java.lang.String xPath) throws org.xml.sax.SAXException, JSONException
org.xml.sax.SAXException
JSONException
java.lang.String getJSONHTMLFragmentOrForm(LazyLoadingOptions lazyLoadingOptions) throws GuideException
lazyLoadingOptions
- GuideException
java.util.List<java.lang.String> getLazyChildren(Resource guideContainer) throws GuideException
GuideException
JSONObject getSchemaJson(Resource guideContainerResource) throws GuideException
guideContainerResource
- GuideException
java.lang.String getDefinitionOfElement(GuideSchemaType schemaType, java.lang.String schemaRef, java.lang.String rootName, java.lang.String bindRef) throws GuideException
schemaType
- - type of schemaschemaRef
- - path of schema on CRXrootName
- - String, Name of the root element.bindRef
- - bindRef of the element.GuideException
Copyright © 2010 - 2020 Adobe. All Rights Reserved