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 Summary
Constructors -
Method Summary
Modifier 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
-
SchemaCollection
public SchemaCollection() -
SchemaCollection
public SchemaCollection(org.apache.ws.commons.schema.XmlSchemaCollection col)
-
-
Method Details
-
getXmlSchemaCollection
public org.apache.ws.commons.schema.XmlSchemaCollection getXmlSchemaCollection() -
equals
-
getElementByQName
-
getAttributeByQName
-
getExtReg
public org.apache.ws.commons.schema.extensions.ExtensionRegistry getExtReg() -
getNamespaceContext
public org.apache.ws.commons.schema.utils.NamespacePrefixList getNamespaceContext() -
getTypeByQName
-
getXmlSchema
-
getXmlSchemas
public org.apache.ws.commons.schema.XmlSchema[] getXmlSchemas() -
hashCode
public int hashCode() -
init
public void init() -
read
-
read
-
read
-
setBaseUri
-
setExtReg
public void setExtReg(org.apache.ws.commons.schema.extensions.ExtensionRegistry extReg) -
setNamespaceContext
public void setNamespaceContext(org.apache.ws.commons.schema.utils.NamespacePrefixList namespaceContext) -
setSchemaResolver
public void setSchemaResolver(org.apache.ws.commons.schema.resolver.URIResolver schemaResolver) -
getSchemaByTargetNamespace
This function is not part of the XmlSchema API. Who knows why?- Parameters:
namespaceURI- targetNamespace- Returns:
- schema, or null.
-
getSchemaForElement
-
newXmlSchemaInCollection
Once 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
-
validateQNameNamespace
Validate that a qualified name points to some namespace in the schema.- Parameters:
qname-
-
validateElementName
-
validateTypeName
-
addCrossImports
public void addCrossImports()
-