public class Schema extends Object implements DescriptionObject, ErrorHandler
| Modifier and Type | Field and Description |
|---|---|
protected StringBuffer |
errors |
Schema |
javaxSchema |
| Constructor and Description |
|---|
Schema(String schema)
Sets schema name to 'Schema' and version to 0
|
Schema(String name,
int version,
ItemPath itemPath,
String schema) |
Schema(String name,
int version,
String schema) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
error(SAXParseException ex) |
void |
export(Writer imports,
File dir,
boolean shallow) |
void |
fatalError(SAXParseException ex) |
String |
getItemID() |
Schema |
getJavaxSchema() |
org.exolab.castor.xml.schema.Schema |
getSom()
Returns the SchemaObjectModel (SOM) implemented by the caster xml schema project.
|
String |
getXSD()
Returns the XSD string.
|
CollectionArrayList |
makeDescCollections() |
String |
validate()
Validates the schemaData (XML)
|
void |
warning(SAXParseException ex) |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetItemPath, getName, getVersion, setItemPath, setName, setVersionprotected StringBuffer errors
public Schema javaxSchema
public Schema(String schema)
schema - the XSD stringpublic String getXSD()
public org.exolab.castor.xml.schema.Schema getSom()
public Schema getJavaxSchema()
public String validate() throws IOException
IOExceptionpublic String getItemID()
getItemID in interface DescriptionObjectpublic void error(SAXParseException ex) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException ex) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionpublic void warning(SAXParseException ex) throws SAXException
warning in interface ErrorHandlerSAXExceptionpublic CollectionArrayList makeDescCollections()
makeDescCollections in interface DescriptionObjectpublic void export(Writer imports, File dir, boolean shallow) throws IOException
export in interface DescriptionObjectIOExceptionCopyright © 1997–2019 CRISTAL-iSE. All rights reserved.