|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.p13n.content.document.ref.RefSchemaGenerator
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).
Constructor Summary | |
RefSchemaGenerator()
Deprecated. |
Method Summary | |
static void |
addIWProperty(Element e,
DefaultDocumentSchema schema)
Deprecated. Add a property entry to a schema from an interwoven "item" element. |
static void |
addProperty(Element e,
DefaultDocumentSchema schema)
Deprecated. Add the attribute information in the given "attribute" element (following the doc-schemas DTD) to the specified schema. |
static Parser |
createParser()
Deprecated. Not needed. |
static DocumentBuilder |
getDocumentBuilder()
Deprecated. Get a DocumentBuilder to use when parsing schema documents This will return at least a non-validating DocumentBuilder. |
static DocumentSchemaDef |
getIWSchema(Element e)
Deprecated. Get a DocumentSchemaDef from a "ruleset" IW element. |
static List |
getIWSchemas(String uri,
Element root)
Deprecated. Get the list of DocumentSchemaDefs from the Interwoven datacapture DTD element. |
static DefaultDocumentSchema |
getSchema(Element e)
Deprecated. Get a DefaultDocumentSchema from a Element following the doc-schemas DTD. |
static List |
getSchemas(String uri)
Deprecated. Get a list of DocumentSchemaDefs from the XML at path. |
static List |
getSchemas(String uri,
Element root)
Deprecated. Get the list of DocumentSchemaDefs from the doc-schemas DTD element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RefSchemaGenerator()
Method Detail |
public static void addIWProperty(Element e, DefaultDocumentSchema schema) throws DocumentException
For now, we're not going to investigate the "item" any further. This means replicants and options are ignored.
DocumentException
public static void addProperty(Element e, DefaultDocumentSchema schema) throws DocumentException
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).
e
- the "attribute" element.schema
- the schema to add the property info to.
DocumentException
- thrown on any invalid XML.public static Parser createParser() throws DocumentException
DocumentException
public static DocumentBuilder getDocumentBuilder() throws DocumentException
This will return at least a non-validating DocumentBuilder.
DocumentException
- thrown when JAXP fails (unrecoverable).public static DocumentSchemaDef getIWSchema(Element e) throws DocumentException
DocumentException
public static List getIWSchemas(String uri, Element root) throws DocumentException
DocumentException
public static DefaultDocumentSchema getSchema(Element e) throws DocumentException
e
- the "doc-schema" Element.
DocumentException
- thrown in invalid XML.public static List getSchemas(String uri) throws DocumentException
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.
uri
- the URI to the xml.
DocumentException
- thrown on a parsing error or invalid XML.public static List getSchemas(String uri, Element root) throws DocumentException
root
- the "doc-schemas" Element.
DocumentException
- thrown on an unrecoverable error getting the
schemas.
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |