public interface SchemaInformation extends Serializable
The SchemaInformation object supports four types of Artifacts.
When an Artifact is a Payload or CMET, both XSD content and corresponding MIF
content should be populated. When an Artifact is a CORE_MIF, only the MIF
content should be populated. When the Artifact is an Interaction Schema, only
the XSD content should be populated. The following table describes this
detail.
Type | XSD Required | MIF Required |
PAYLOAD | Yes | Yes |
CMET | Yes | Yes |
CORE_MIF | No | Yes |
INTERACTION | Yes | No |
e.g, If an Artifact Id is PRTS_MT00008HT01, then the Schema name is derived as PRTS_MT00008HT01.xsd and MIF name is derived as PRTS_MT00008HT01.mif. If an Artifact type is CORE_MIF, then the artifact name should be set 'cmetinfo.coremif' by default.
When downloading or searching schemas, the SchemaInformation object can also
be used to refer a Composite Schema. In this case, the SchemaInformation's
type will be INTERACTION. When the SchemaInformation type is INTERACTION,
only the XSD content will be present. MIF content will not be present. When
loading the SchemaInformation list into server, the following validation
rules are applied:
Validation Rules:
The following code sample explains how to populate SchemaInformation object.
Example:
SchemaInformation schemaInformation = new SchemaInformationImpl();
schemaInformation.setSchemaType(SchemaInformation.CMET); // setting
SchemaInformation type as CMET
schemaInformation.setXsd(xsdContent); // setting XSD content of CMET in
string format
schemaInformation.setMif(mifContent); // setting MIF content of CMET in
string format
schemaInformation.setSchemaDescription(testDesctiption); //setting test
description in string format
Modifier and Type | Field and Description |
---|---|
static String |
CMET
CMET - Set by the user, if the Artifact type is CMET.
|
static String |
CORE_MIF
CORE_MIF - Set by the user, if the Artifact type is PAYLOAD.
|
static String |
PAYLOAD
PAYLOAD - Set by the user, if the Artifact type is PAYLOAD.
|
Modifier and Type | Method and Description |
---|---|
String |
getArtifactId()
Returns the schema file name (artifact id, without file extension )
|
String |
getMif()
Returns the mif content
|
String |
getSchemaDescription()
Returns the schema description
|
String |
getSchemaType()
Returns the schema type (CMET or PAYLOAD or CORE_MIF)
|
String |
getXsd()
Returns the xsd content
|
void |
setArtifactId(String fileName)
Sets the schema file name (artifact id, without file extension )
|
void |
setMif(String m_mif)
Sets the mif content
|
void |
setSchemaDescription(String description)
Sets the schema description
|
void |
setSchemaType(String type)
Sets the schema type (CMET or PAYLOAD or CORE_MIF)
|
void |
setXsd(String m_xsd)
Sets the xsd content
|
static final String CMET
static final String PAYLOAD
static final String CORE_MIF
String getMif()
void setMif(String m_mif)
String getSchemaDescription()
void setSchemaDescription(String description)
String getArtifactId()
void setArtifactId(String fileName)
String getSchemaType()
void setSchemaType(String type)
String getXsd()
void setXsd(String m_xsd)
HDR Glossary HDR Concept Lists HDR Exceptions HDR Programmer's Guide HDR Implementation Guide HDR Profile Options
Copyright © 2016, 2018, Oracle. All rights reserved