| Modifier and Type | Class and Description |
|---|---|
protected static class |
XSDLoader.NXSchemaResolver |
protected static class |
XSDLoader.SchemaErrorHandler |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
collectReferencedXSD |
protected List<String> |
referencedXSD |
protected SchemaManagerImpl |
schemaManager |
protected SchemaBindingDescriptor |
sd |
| Constructor and Description |
|---|
XSDLoader(SchemaManagerImpl schemaManager) |
XSDLoader(SchemaManagerImpl schemaManager,
boolean collectReferencedXSD)
Deprecated.
since 10.2, seems unused
|
XSDLoader(SchemaManagerImpl schemaManager,
SchemaBindingDescriptor sd) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
collectReferencedXSD(com.sun.xml.xsom.XSSchemaSet xsSchemas) |
protected Type |
createComplexType(Schema schema,
ComplexType superType,
String name,
com.sun.xml.xsom.XSContentType content,
boolean abstractType) |
protected Type |
createFakeComplexType(Schema schema,
ComplexType superType,
String name,
com.sun.xml.xsom.XSModelGroup mg) |
protected static Field |
createField(ComplexType type,
com.sun.xml.xsom.XSAttributeDecl element,
Type fieldType,
boolean isNillable) |
protected static Field |
createField(ComplexType type,
com.sun.xml.xsom.XSElementDecl element,
Type fieldType) |
protected static ListType |
createListType(Schema schema,
String name,
Type itemType,
int min,
int max) |
protected ListType |
createListType(Schema schema,
String name,
com.sun.xml.xsom.XSParticle particle) |
protected static String |
getAnonymousTypeName(com.sun.xml.xsom.XSType type,
String fieldName) |
protected ObjectResolverService |
getObjectResolverService() |
protected com.sun.xml.xsom.parser.XSOMParser |
getParser() |
List<String> |
getReferencedXSD()
Deprecated.
since 10.2, seems unused
|
protected Type |
getType(String name) |
protected static String |
getTypeName(com.sun.xml.xsom.XSType type,
String fieldName) |
protected static boolean |
isNillable(com.sun.xml.xsom.XSElementDecl element)
ignore case where xsd:nillable is recognized as false by xsom (we don't know if it's not specified and we want to
preserve a default value to true.
|
protected void |
loadAttributes(Schema schema,
com.sun.xml.xsom.XSComplexType xsct,
ComplexType ct) |
protected Type |
loadComplexType(Schema schema,
String name,
com.sun.xml.xsom.XSType type) |
protected ListType |
loadListType(Schema schema,
com.sun.xml.xsom.XSListSimpleType type,
String fieldName) |
Schema |
loadSchema(String name,
String prefix,
File file) |
Schema |
loadSchema(String name,
String prefix,
File file,
String xsdElement)
Called by schema manager.
|
Schema |
loadSchema(String name,
String prefix,
File file,
String xsdElement,
boolean isVersionWritable) |
Schema |
loadSchema(String name,
String prefix,
URL url) |
Schema |
loadSchema(String name,
String prefix,
URL url,
String xsdElement)
Create Nuxeo schema from a XSD resource.
|
protected Schema |
loadSchema(String name,
String prefix,
com.sun.xml.xsom.XSSchemaSet schemaSet,
String xsdElement) |
protected Schema |
loadSchema(String name,
String prefix,
com.sun.xml.xsom.XSSchemaSet schemaSet,
String xsdElement,
boolean isVersionWritable) |
protected SimpleType |
loadSimpleType(Schema schema,
com.sun.xml.xsom.XSType type,
String fieldName) |
protected Type |
loadType(Schema schema,
com.sun.xml.xsom.XSType type,
String fieldName) |
protected Type |
processModelGroup(Schema schema,
ComplexType superType,
String name,
ComplexType ct,
com.sun.xml.xsom.XSModelGroup mg,
boolean abstractType) |
protected void |
registerSchema(Schema schema) |
protected final SchemaManagerImpl schemaManager
protected List<String> referencedXSD
protected boolean collectReferencedXSD
protected SchemaBindingDescriptor sd
public XSDLoader(SchemaManagerImpl schemaManager)
public XSDLoader(SchemaManagerImpl schemaManager, SchemaBindingDescriptor sd)
@Deprecated public XSDLoader(SchemaManagerImpl schemaManager, boolean collectReferencedXSD)
protected ObjectResolverService getObjectResolverService()
protected void registerSchema(Schema schema)
protected com.sun.xml.xsom.parser.XSOMParser getParser()
public Schema loadSchema(String name, String prefix, File file) throws SAXException, IOException, TypeException
SAXExceptionIOExceptionTypeExceptionpublic Schema loadSchema(String name, String prefix, File file, String xsdElement) throws SAXException, IOException, TypeException
SAXExceptionIOExceptionTypeExceptionpublic Schema loadSchema(String name, String prefix, File file, String xsdElement, boolean isVersionWritable) throws SAXException, IOException, TypeException
isVersionWritable - if true, the schema's fields will be writable even for Version document.SAXExceptionIOExceptionTypeExceptionprotected void collectReferencedXSD(com.sun.xml.xsom.XSSchemaSet xsSchemas)
public Schema loadSchema(String name, String prefix, URL url, String xsdElement) throws SAXException, TypeException
name - schema nameprefix - schema prefixurl - url to load the XSD resourcexsdElement - name of the complex element to use as root of the schemaSAXExceptionTypeExceptionpublic Schema loadSchema(String name, String prefix, URL url) throws SAXException, TypeException
SAXExceptionTypeExceptionprotected Schema loadSchema(String name, String prefix, com.sun.xml.xsom.XSSchemaSet schemaSet, String xsdElement) throws TypeException
TypeExceptionprotected Schema loadSchema(String name, String prefix, com.sun.xml.xsom.XSSchemaSet schemaSet, String xsdElement, boolean isVersionWritable) throws TypeException
TypeExceptionprotected Type loadType(Schema schema, com.sun.xml.xsom.XSType type, String fieldName) throws TypeBindingException
schema - the nuxeo schema into we register the type.type - the XSD type to loadfieldName - the field name owning this type, this is used when type is anonymous/localTypeBindingExceptionprotected Type loadComplexType(Schema schema, String name, com.sun.xml.xsom.XSType type) throws TypeBindingException
name - the type name (note, the type may have a null name if an anonymous type)TypeBindingExceptionprotected void loadAttributes(Schema schema, com.sun.xml.xsom.XSComplexType xsct, ComplexType ct) throws TypeBindingException
TypeBindingExceptionprotected SimpleType loadSimpleType(Schema schema, com.sun.xml.xsom.XSType type, String fieldName) throws TypeBindingException
TypeBindingExceptionprotected ListType loadListType(Schema schema, com.sun.xml.xsom.XSListSimpleType type, String fieldName) throws TypeBindingException
TypeBindingExceptionprotected Type createComplexType(Schema schema, ComplexType superType, String name, com.sun.xml.xsom.XSContentType content, boolean abstractType) throws TypeBindingException
TypeBindingExceptionprotected Type createFakeComplexType(Schema schema, ComplexType superType, String name, com.sun.xml.xsom.XSModelGroup mg) throws TypeBindingException
TypeBindingExceptionprotected Type processModelGroup(Schema schema, ComplexType superType, String name, ComplexType ct, com.sun.xml.xsom.XSModelGroup mg, boolean abstractType) throws TypeBindingException
TypeBindingExceptionprotected ListType createListType(Schema schema, String name, com.sun.xml.xsom.XSParticle particle) throws TypeBindingException
TypeBindingExceptionprotected static ListType createListType(Schema schema, String name, Type itemType, int min, int max)
protected static Field createField(ComplexType type, com.sun.xml.xsom.XSElementDecl element, Type fieldType)
protected static Field createField(ComplexType type, com.sun.xml.xsom.XSAttributeDecl element, Type fieldType, boolean isNillable)
protected static String getTypeName(com.sun.xml.xsom.XSType type, String fieldName)
protected static String getAnonymousTypeName(com.sun.xml.xsom.XSType type, String fieldName)
@Deprecated public List<String> getReferencedXSD()
protected static boolean isNillable(com.sun.xml.xsom.XSElementDecl element)
Copyright © 2019 Nuxeo. All rights reserved.