public class Schema extends Object implements DescriptionObject, ErrorHandler
| Modifier and Type | Field and Description |
|---|---|
protected StringBuffer |
errors |
org.exolab.castor.xml.schema.Schema |
som |
| Modifier | Constructor and Description |
|---|---|
protected |
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) |
void |
fatalError(SAXParseException ex) |
String |
getItemID() |
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 org.exolab.castor.xml.schema.Schema som
protected Schema(String schema)
schema - the XSD stringpublic String getXSD()
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) throws IOException
export in interface DescriptionObjectIOExceptionCopyright © 1997–2017 CRISTAL-iSE. All rights reserved.