Package org.apache.cxf.common.xmlschema
Class SchemaCollection
java.lang.Object
org.apache.cxf.common.xmlschema.SchemaCollection
Wrapper class for XmlSchemaCollection that deals with various quirks and bugs.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleanorg.apache.ws.commons.schema.XmlSchemaAttributegetAttributeByQName(QName qname) org.apache.ws.commons.schema.XmlSchemaElementgetElementByQName(QName qname) org.apache.ws.commons.schema.extensions.ExtensionRegistryorg.apache.ws.commons.schema.utils.NamespacePrefixListorg.apache.ws.commons.schema.XmlSchemagetSchemaByTargetNamespace(String namespaceURI) This function is not part of the XmlSchema API.org.apache.ws.commons.schema.XmlSchemagetSchemaForElement(QName name) org.apache.ws.commons.schema.XmlSchemaTypegetTypeByQName(QName schemaTypeName) org.apache.ws.commons.schema.XmlSchema[]getXmlSchema(String systemId) org.apache.ws.commons.schema.XmlSchemaCollectionorg.apache.ws.commons.schema.XmlSchema[]inthashCode()voidinit()org.apache.ws.commons.schema.XmlSchemanewXmlSchemaInCollection(String namespaceURI) Once upon a time, XmlSchema had a bug in the constructor used in this function.org.apache.ws.commons.schema.XmlSchemaorg.apache.ws.commons.schema.XmlSchemaorg.apache.ws.commons.schema.XmlSchemavoidsetBaseUri(String baseUri) voidsetExtReg(org.apache.ws.commons.schema.extensions.ExtensionRegistry extReg) voidsetNamespaceContext(org.apache.ws.commons.schema.utils.NamespacePrefixList namespaceContext) voidsetSchemaResolver(org.apache.ws.commons.schema.resolver.URIResolver schemaResolver) voidvalidateElementName(QName referrer, QName elementQName) voidvalidateQNameNamespace(QName qname) Validate that a qualified name points to some namespace in the schema.voidvalidateTypeName(QName referrer, QName typeQName) 
- 
Constructor Details- 
SchemaCollectionpublic SchemaCollection()
- 
SchemaCollectionpublic SchemaCollection(org.apache.ws.commons.schema.XmlSchemaCollection col) 
 
- 
- 
Method Details- 
getXmlSchemaCollectionpublic org.apache.ws.commons.schema.XmlSchemaCollection getXmlSchemaCollection()
- 
equals
- 
getElementByQName
- 
getAttributeByQName
- 
getExtRegpublic org.apache.ws.commons.schema.extensions.ExtensionRegistry getExtReg()
- 
getNamespaceContextpublic org.apache.ws.commons.schema.utils.NamespacePrefixList getNamespaceContext()
- 
getTypeByQName
- 
getXmlSchema
- 
getXmlSchemaspublic org.apache.ws.commons.schema.XmlSchema[] getXmlSchemas()
- 
hashCodepublic int hashCode()
- 
initpublic void init()
- 
read
- 
read
- 
read
- 
setBaseUri
- 
setExtRegpublic void setExtReg(org.apache.ws.commons.schema.extensions.ExtensionRegistry extReg) 
- 
setNamespaceContextpublic void setNamespaceContext(org.apache.ws.commons.schema.utils.NamespacePrefixList namespaceContext) 
- 
setSchemaResolverpublic void setSchemaResolver(org.apache.ws.commons.schema.resolver.URIResolver schemaResolver) 
- 
getSchemaByTargetNamespaceThis function is not part of the XmlSchema API. Who knows why?- Parameters:
- namespaceURI- targetNamespace
- Returns:
- schema, or null.
 
- 
getSchemaForElement
- 
newXmlSchemaInCollectionOnce upon a time, XmlSchema had a bug in the constructor used in this function. So this wrapper was created to hold a workaround.- Parameters:
- namespaceURI- TNS for new schema.
- Returns:
- new schema
 
- 
validateQNameNamespaceValidate that a qualified name points to some namespace in the schema.- Parameters:
- qname-
 
- 
validateElementName
- 
validateTypeName
- 
addCrossImportspublic void addCrossImports()
 
-