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
SAXException
IOException
TypeException
public Schema loadSchema(String name, String prefix, File file, String xsdElement) throws SAXException, IOException, TypeException
SAXException
IOException
TypeException
public 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.SAXException
IOException
TypeException
protected 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 schemaSAXException
TypeException
public Schema loadSchema(String name, String prefix, URL url) throws SAXException, TypeException
SAXException
TypeException
protected Schema loadSchema(String name, String prefix, com.sun.xml.xsom.XSSchemaSet schemaSet, String xsdElement) throws TypeException
TypeException
protected Schema loadSchema(String name, String prefix, com.sun.xml.xsom.XSSchemaSet schemaSet, String xsdElement, boolean isVersionWritable) throws TypeException
TypeException
protected 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/localTypeBindingException
protected 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)TypeBindingException
protected void loadAttributes(Schema schema, com.sun.xml.xsom.XSComplexType xsct, ComplexType ct) throws TypeBindingException
TypeBindingException
protected SimpleType loadSimpleType(Schema schema, com.sun.xml.xsom.XSType type, String fieldName) throws TypeBindingException
TypeBindingException
protected ListType loadListType(Schema schema, com.sun.xml.xsom.XSListSimpleType type, String fieldName) throws TypeBindingException
TypeBindingException
protected Type createComplexType(Schema schema, ComplexType superType, String name, com.sun.xml.xsom.XSContentType content, boolean abstractType) throws TypeBindingException
TypeBindingException
protected Type createFakeComplexType(Schema schema, ComplexType superType, String name, com.sun.xml.xsom.XSModelGroup mg) throws TypeBindingException
TypeBindingException
protected Type processModelGroup(Schema schema, ComplexType superType, String name, ComplexType ct, com.sun.xml.xsom.XSModelGroup mg, boolean abstractType) throws TypeBindingException
TypeBindingException
protected ListType createListType(Schema schema, String name, com.sun.xml.xsom.XSParticle particle) throws TypeBindingException
TypeBindingException
protected 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 © 2018 Nuxeo. All rights reserved.