public class XSDGenerator extends Object implements CommonConstants
Generate an XML schema for validating a Reg-XML document. The schema may be generated just for the baseline model or for extension data models.
MetaDictionaryGenerator| Modifier and Type | Field and Description |
|---|---|
static String |
XLINK_NAMESPACE |
static String |
XLINK_PREFIX |
static String |
XSD_NAMESPACE |
static String |
XSD_PREFIX |
AAF_METADICT_NAMESPACE, AAF_METADICT_PREFIX, AAF_XML_NAMESPACE, AAF_XML_PREFIX, ApplicationPluginObjectID, ApplicationPluginsID, MAX_NUM_RGBA_COMPS, MemberOfID, ObjectClassID, ParentClassID, PropertiesID, XMLClassIDAsAttributeName| Constructor and Description |
|---|
XSDGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateBaselineXSDAsAString() |
static DocumentFragment |
generateBaslineXSD() |
static DocumentFragment |
generateXSD(Collection<ClassDefinition> classes,
String targetNamespace,
String targetPrefix,
String rootElement,
String rootClass) |
static String |
generateXSDAsAString(Collection<ClassDefinition> classes,
String targetNamespace,
String targetPrefix,
String rootElement,
String rootClass) |
static void |
main(String[] args) |
public static final String XSD_NAMESPACE
public static final String XSD_PREFIX
public static final String XLINK_NAMESPACE
public static final String XLINK_PREFIX
public static final DocumentFragment generateBaslineXSD()
public static final String generateBaselineXSDAsAString()
public static final DocumentFragment generateXSD(Collection<ClassDefinition> classes, String targetNamespace, String targetPrefix, String rootElement, String rootClass) throws NullPointerException
NullPointerExceptionpublic static final String generateXSDAsAString(Collection<ClassDefinition> classes, String targetNamespace, String targetPrefix, String rootElement, String rootClass) throws NullPointerException
NullPointerExceptionpublic static final void main(String[] args)
(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.