Class Schema
- java.lang.Object
-
- com.ibm.di.connector.maximo.parsing.Schema
-
public final class Schema extends java.lang.ObjectThis class provides access to descriptive information about Maximo Objects Structures (MOS) based on its XML Schema Descriptor (XSD), which is generated by the Maximo Object Structure Application. Every element is exposed throughschema elementobjects, organized in a hierarchical way.- Since:
- 7.1
- See Also:
SchemaConfiguration,SchemaElement
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclearSchemaCache()Clears every schema object cached.static SchemagetInstance(SchemaConfiguration cfg, Log log)Builds aschemaobject based on the Maximo Object Structure and its XML Schema Descriptor's URL (XSD).SchemaElementgetMboByName(java.lang.String mboName)Returns the schema element that represents the specified MBO.java.util.Set<java.lang.String>getMboNameList()Returns a list of all valid MBO names.SchemaElementgetMos()Returns a schema element that describes the Maximo Object Structure (MOS).SchemaElementgetRootMbo()Returns the definition of the root or top-level MBO.java.lang.StringtoString()
-
-
-
Method Detail
-
getInstance
public static Schema getInstance(SchemaConfiguration cfg, Log log) throws MxConnConfigException, MxConnIOException, MxConnXmlParsingException
Builds aschemaobject based on the Maximo Object Structure and its XML Schema Descriptor's URL (XSD).- Parameters:
cfg- configuration parameter required to build the schema object- Returns:
Schemabased on the Maximo Object Structure and its XML Schema Descriptor's URL (XSD)- Throws:
MxConnConfigException- if the configuration provided is not validMxConnIOException- if any sort of communication problem occurs when trying to retrieve the XSDMxConnXmlParsingException- if the XSD content can not be parsed- See Also:
clearSchemaCache()
-
clearSchemaCache
public static void clearSchemaCache()
Clears every schema object cached.
-
getMboByName
public SchemaElement getMboByName(java.lang.String mboName) throws MxConnConfigException
Returns the schema element that represents the specified MBO.- Parameters:
mboName- name of the MBO to be returned- Returns:
- schema element that represents the specified MBO
- Throws:
MxConnConfigException- ifmboNamedoes not exist
-
getMboNameList
public java.util.Set<java.lang.String> getMboNameList()
Returns a list of all valid MBO names.- Returns:
- list of all valid MBO names
-
getMos
public SchemaElement getMos()
Returns a schema element that describes the Maximo Object Structure (MOS).- Returns:
- schema element that describes the Maximo Object Structure
-
getRootMbo
public SchemaElement getRootMbo()
Returns the definition of the root or top-level MBO.- Returns:
- the definition of the root or top-level MBO
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-