Class Schema
java.lang.Object
org.cristalise.kernel.persistency.outcome.Schema
- All Implemented Interfaces:
DescriptionObject,ErrorHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidorg.exolab.castor.xml.schema.SchemagetSom()Returns the SchemaObjectModel (SOM) implemented by the caster xml schema project.getXml(boolean prettyPrint) getXSD()Returns the XSD string.makeDescCollections(TransactionKey transactionKey) validate()Validates the schemaData (XML)voidMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cristalise.kernel.utils.DescriptionObject
exists, export, getItemPath, getName, getNamespace, getVersion, getXml, makeDescCollection, setItemPath, setName, setNamespace, setVersion, toOutcome
-
Field Details
-
errors
-
javaxSchema
-
-
Constructor Details
-
Schema
-
Schema
-
Schema
Sets schema name to 'Schema' and version to 0- Parameters:
schema- the XSD string
-
-
Method Details
-
getXSD
Returns the XSD string. Convenience method- Returns:
- the XSD string
-
getSom
public org.exolab.castor.xml.schema.Schema getSom()Returns the SchemaObjectModel (SOM) implemented by the caster xml schema project. WARNING: Castor implementation does not support 'xs:any'- Returns:
- castor xml schema object
-
getJavaxSchema
-
validate
Validates the schemaData (XML)- Returns:
- errors in String format
- Throws:
IOException
-
getItemID
- Specified by:
getItemIDin interfaceDescriptionObject
-
error
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
warning
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
makeDescCollections
- Specified by:
makeDescCollectionsin interfaceDescriptionObject
-
getXml
- Specified by:
getXmlin interfaceDescriptionObject- Throws:
InvalidDataException
-
getResourceType
- Specified by:
getResourceTypein interfaceDescriptionObject
-
equals
-