DEPRECATED
Object
A utility class which can generate DocumentSchemaDefs from an XML file.
This supports both the "doc-schemas" DTD and the Interwoven datacapture.cfg 4.0 DTD (except for replicants, which are ignored).
Object
RefSchemaGenerator
Constructor Summary |
Method Summary |
public static void |
|
public static void |
|
public static |
|
public static |
|
public static |
|
public static |
|
public static | |
public static |
|
public static |
|
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RefSchemaGenerator()
Method Detail |
public static void addIWProperty(Add a property entry to a schema from an interwoven "item" element.Element
e,DefaultDocumentSchema
schema)
throwsDocumentException
For now, we're not going to investigate the "item" any further. This means replicants and options are ignored.
DocumentException
public static void addProperty(Add the attribute information in the given "attribute" element (following the doc-schemas DTD) to the specified schema.Element
e,DefaultDocumentSchema
schema)
throwsDocumentException
This will throw a DocumentException on any error (i.e. it will not try to do its best with what it has, but will stop on any problem).
DocumentException
DEPRECATED Not needed.
public staticCreate a SAX parser for use.Parser
createParser()
throwsDocumentException
DocumentException
public staticGet a DocumentBuilder to use when parsing schema documentsDocumentBuilder
getDocumentBuilder()
throwsDocumentException
This will return at least a non-validating DocumentBuilder.
DocumentException
public staticGet a DocumentSchemaDef from a "ruleset" IW element.DocumentSchemaDef
getIWSchema(Element
e)
throwsDocumentException
DocumentException
public staticGet the list of DocumentSchemaDefs from the Interwoven datacapture DTD element.List
getIWSchemas(String
uri,Element
root)
throwsDocumentException
DocumentException
public staticGet a DefaultDocumentSchema from a Element following the doc-schemas DTD.DefaultDocumentSchema
getSchema(Element
e)
throwsDocumentException
DocumentException
public staticGet a list of DocumentSchemaDefs from the XML at path.List
getSchemas(String
uri)
throwsDocumentException
Currently, that XML must be either of the doc-schemas DTD or the Interwoven datacapture DTD. If the document structure is wrong at any point, the schema will be completely ignored.
DocumentException
public staticGet the list of DocumentSchemaDefs from the doc-schemas DTD element.List
getSchemas(String
uri,Element
root)
throwsDocumentException
DocumentException