Package org.apache.xmlbeans.impl.schema
Class SoapEncSchemaTypeSystem
- java.lang.Object
-
- org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase
-
- org.apache.xmlbeans.impl.schema.SoapEncSchemaTypeSystem
-
- All Implemented Interfaces:
SchemaTypeLoader,SchemaTypeSystem
public class SoapEncSchemaTypeSystem extends SchemaTypeLoaderBase implements SchemaTypeSystem
-
-
Field Summary
Fields Modifier and Type Field Description static StringARRAY_TYPEstatic StringSOAP_ARRAYstatic StringSOAPENC
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaAnnotation[]annotations()Returns the top-level annotationsSchemaAttributeGroup[]attributeGroups()Returns the attribute groups defined in this loader.SchemaType[]attributeTypes()Returns the attribute types defined in this loader.SchemaType[]documentTypes()Returns the document types defined in this loader.SchemaGlobalAttributefindAttribute(QName qName)Returns the global attribute defintion with the given name, or null if none.SchemaAttributeGroupfindAttributeGroup(QName qName)Returns the attribute group defintion with the given name, or null if none.SchemaAttributeGroup.ReffindAttributeGroupRef(QName qName)Used for on-demand loading.SchemaGlobalAttribute.ReffindAttributeRef(QName qName)Used for on-demand loading.SchemaTypefindAttributeType(QName qName)Returns the attribute type containing the given attribute name, or null if none.SchemaType.ReffindAttributeTypeRef(QName qName)Used for on-demand loading.SchemaTypefindDocumentType(QName qName)Returns the document type rooted at the given element name, or null if none.SchemaType.ReffindDocumentTypeRef(QName qName)Used for on-demand loading.SchemaGlobalElementfindElement(QName qName)Returns the global element defintion with the given name, or null if none.SchemaGlobalElement.ReffindElementRef(QName qName)Used for on-demand loading.SchemaIdentityConstraint.ReffindIdentityConstraintRef(QName qName)Used for on-demand loading.SchemaModelGroupfindModelGroup(QName qName)Returns the model group defintion with the given name, or null if none.SchemaModelGroup.ReffindModelGroupRef(QName qName)Used for on-demand loading.SchemaTypefindType(QName qName)Returns the type with the given name, or null if none.SchemaType.ReffindTypeRef(QName qName)Used for on-demand loading.static SchemaTypeSystemget()ClassLoadergetClassLoader()Returns the classloader used by this loader for resolving types.StringgetName()Returns the name of this loader.InputStreamgetSourceAsStream(String string)Loads original XSD source as a stream.SchemaGlobalAttribute[]globalAttributes()Returns the global attributes defined in this loader.SchemaGlobalElement[]globalElements()Returns the global elements defined in this loader.SchemaType[]globalTypes()Returns the global types defined in this loader.StringhandleForType(SchemaType type)Returns the handle for the given type within this loader.booleanisNamespaceDefined(String string)True if the typeloader contains any definitions in the given namespace.SchemaModelGroup[]modelGroups()Returns the model groups defined in this loader.voidresolve()Describeresolvemethod here.SchemaComponentresolveHandle(String string)Locates a type, element, or attribute using the handle.voidsave(Filer filer)Saves this type system using a FilervoidsaveToDirectory(File file)DescribesaveToDirectorymethod here.SchemaTypetypeForClassname(String string)Finds a type for a given fully-qualified XML Bean classnameSchemaTypetypeForHandle(String string)Locates a type, element, or attribute using the handle.-
Methods inherited from class org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase
compilePath, compilePath, compileQuery, compileQuery, newDomImplementation, newInstance, newXmlSaxHandler, parse, parse, parse, parse, parse, parse, parse, typeForSignature
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.xmlbeans.SchemaTypeLoader
compilePath, compileQuery, newDomImplementation, newInstance, newXmlSaxHandler, parse, parse, parse, parse, parse, parse, parse, typeForSignature
-
-
-
-
Field Detail
-
SOAPENC
public static final String SOAPENC
- See Also:
- Constant Field Values
-
SOAP_ARRAY
public static final String SOAP_ARRAY
- See Also:
- Constant Field Values
-
ARRAY_TYPE
public static final String ARRAY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public static SchemaTypeSystem get()
-
getName
public String getName()
Returns the name of this loader.- Specified by:
getNamein interfaceSchemaTypeSystem
-
findType
public SchemaType findType(QName qName)
Description copied from interface:SchemaTypeLoaderReturns the type with the given name, or null if none.- Specified by:
findTypein interfaceSchemaTypeLoader- Overrides:
findTypein classSchemaTypeLoaderBase
-
findDocumentType
public SchemaType findDocumentType(QName qName)
Description copied from interface:SchemaTypeLoaderReturns the document type rooted at the given element name, or null if none.- Specified by:
findDocumentTypein interfaceSchemaTypeLoader- Overrides:
findDocumentTypein classSchemaTypeLoaderBase
-
findAttributeType
public SchemaType findAttributeType(QName qName)
Description copied from interface:SchemaTypeLoaderReturns the attribute type containing the given attribute name, or null if none.- Specified by:
findAttributeTypein interfaceSchemaTypeLoader- Overrides:
findAttributeTypein classSchemaTypeLoaderBase
-
findElement
public SchemaGlobalElement findElement(QName qName)
Description copied from interface:SchemaTypeLoaderReturns the global element defintion with the given name, or null if none.- Specified by:
findElementin interfaceSchemaTypeLoader- Overrides:
findElementin classSchemaTypeLoaderBase
-
findAttribute
public SchemaGlobalAttribute findAttribute(QName qName)
Description copied from interface:SchemaTypeLoaderReturns the global attribute defintion with the given name, or null if none.- Specified by:
findAttributein interfaceSchemaTypeLoader- Overrides:
findAttributein classSchemaTypeLoaderBase
-
findModelGroup
public SchemaModelGroup findModelGroup(QName qName)
Description copied from interface:SchemaTypeLoaderReturns the model group defintion with the given name, or null if none.- Specified by:
findModelGroupin interfaceSchemaTypeLoader- Overrides:
findModelGroupin classSchemaTypeLoaderBase
-
findAttributeGroup
public SchemaAttributeGroup findAttributeGroup(QName qName)
Description copied from interface:SchemaTypeLoaderReturns the attribute group defintion with the given name, or null if none.- Specified by:
findAttributeGroupin interfaceSchemaTypeLoader- Overrides:
findAttributeGroupin classSchemaTypeLoaderBase
-
isNamespaceDefined
public boolean isNamespaceDefined(String string)
Description copied from interface:SchemaTypeLoaderTrue if the typeloader contains any definitions in the given namespace.- Specified by:
isNamespaceDefinedin interfaceSchemaTypeLoader
-
findTypeRef
public SchemaType.Ref findTypeRef(QName qName)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findTypeRefin interfaceSchemaTypeLoader
-
findDocumentTypeRef
public SchemaType.Ref findDocumentTypeRef(QName qName)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findDocumentTypeRefin interfaceSchemaTypeLoader
-
findAttributeTypeRef
public SchemaType.Ref findAttributeTypeRef(QName qName)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findAttributeTypeRefin interfaceSchemaTypeLoader
-
findElementRef
public SchemaGlobalElement.Ref findElementRef(QName qName)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findElementRefin interfaceSchemaTypeLoader
-
findAttributeRef
public SchemaGlobalAttribute.Ref findAttributeRef(QName qName)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findAttributeRefin interfaceSchemaTypeLoader
-
findModelGroupRef
public SchemaModelGroup.Ref findModelGroupRef(QName qName)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findModelGroupRefin interfaceSchemaTypeLoader
-
findAttributeGroupRef
public SchemaAttributeGroup.Ref findAttributeGroupRef(QName qName)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findAttributeGroupRefin interfaceSchemaTypeLoader
-
findIdentityConstraintRef
public SchemaIdentityConstraint.Ref findIdentityConstraintRef(QName qName)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findIdentityConstraintRefin interfaceSchemaTypeLoader
-
typeForClassname
public SchemaType typeForClassname(String string)
Description copied from interface:SchemaTypeLoaderFinds a type for a given fully-qualified XML Bean classname- Specified by:
typeForClassnamein interfaceSchemaTypeLoader
-
getSourceAsStream
public InputStream getSourceAsStream(String string)
Description copied from interface:SchemaTypeLoaderLoads original XSD source as a stream. SeeSchemaComponent.getSourceName().- Specified by:
getSourceAsStreamin interfaceSchemaTypeLoader
-
getClassLoader
public ClassLoader getClassLoader()
Returns the classloader used by this loader for resolving types.- Specified by:
getClassLoaderin interfaceSchemaTypeSystem
-
resolve
public void resolve()
Describeresolvemethod here.- Specified by:
resolvein interfaceSchemaTypeSystem
-
globalTypes
public SchemaType[] globalTypes()
Description copied from interface:SchemaTypeSystemReturns the global types defined in this loader.- Specified by:
globalTypesin interfaceSchemaTypeSystem- Returns:
- an array consisting of a single type
-
documentTypes
public SchemaType[] documentTypes()
Description copied from interface:SchemaTypeSystemReturns the document types defined in this loader.- Specified by:
documentTypesin interfaceSchemaTypeSystem
-
attributeTypes
public SchemaType[] attributeTypes()
Description copied from interface:SchemaTypeSystemReturns the attribute types defined in this loader.- Specified by:
attributeTypesin interfaceSchemaTypeSystem
-
globalElements
public SchemaGlobalElement[] globalElements()
Description copied from interface:SchemaTypeSystemReturns the global elements defined in this loader.- Specified by:
globalElementsin interfaceSchemaTypeSystem
-
globalAttributes
public SchemaGlobalAttribute[] globalAttributes()
Description copied from interface:SchemaTypeSystemReturns the global attributes defined in this loader.- Specified by:
globalAttributesin interfaceSchemaTypeSystem
-
modelGroups
public SchemaModelGroup[] modelGroups()
Description copied from interface:SchemaTypeSystemReturns the model groups defined in this loader.- Specified by:
modelGroupsin interfaceSchemaTypeSystem
-
attributeGroups
public SchemaAttributeGroup[] attributeGroups()
Description copied from interface:SchemaTypeSystemReturns the attribute groups defined in this loader.- Specified by:
attributeGroupsin interfaceSchemaTypeSystem
-
annotations
public SchemaAnnotation[] annotations()
Description copied from interface:SchemaTypeSystemReturns the top-level annotations- Specified by:
annotationsin interfaceSchemaTypeSystem
-
handleForType
public String handleForType(SchemaType type)
Returns the handle for the given type within this loader.
-
resolveHandle
public SchemaComponent resolveHandle(String string)
Description copied from interface:SchemaTypeSystemLocates a type, element, or attribute using the handle.- Specified by:
resolveHandlein interfaceSchemaTypeSystem
-
typeForHandle
public SchemaType typeForHandle(String string)
Description copied from interface:SchemaTypeSystemLocates a type, element, or attribute using the handle.- Specified by:
typeForHandlein interfaceSchemaTypeSystem
-
saveToDirectory
public void saveToDirectory(File file)
DescribesaveToDirectorymethod here.- Specified by:
saveToDirectoryin interfaceSchemaTypeSystem- Parameters:
file- aFilevalue
-
save
public void save(Filer filer)
Description copied from interface:SchemaTypeSystemSaves this type system using a Filer- Specified by:
savein interfaceSchemaTypeSystem
-
-