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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
org.apache.ws.commons.schema.XmlSchemaAttribute
getAttributeByQName
(QName qname) org.apache.ws.commons.schema.XmlSchemaElement
getElementByQName
(QName qname) org.apache.ws.commons.schema.extensions.ExtensionRegistry
org.apache.ws.commons.schema.utils.NamespacePrefixList
org.apache.ws.commons.schema.XmlSchema
getSchemaByTargetNamespace
(String namespaceURI) This function is not part of the XmlSchema API.org.apache.ws.commons.schema.XmlSchema
getSchemaForElement
(QName name) org.apache.ws.commons.schema.XmlSchemaType
getTypeByQName
(QName schemaTypeName) org.apache.ws.commons.schema.XmlSchema[]
getXmlSchema
(String systemId) org.apache.ws.commons.schema.XmlSchemaCollection
org.apache.ws.commons.schema.XmlSchema[]
int
hashCode()
void
init()
org.apache.ws.commons.schema.XmlSchema
newXmlSchemaInCollection
(String namespaceURI) Once upon a time, XmlSchema had a bug in the constructor used in this function.org.apache.ws.commons.schema.XmlSchema
org.apache.ws.commons.schema.XmlSchema
org.apache.ws.commons.schema.XmlSchema
void
setBaseUri
(String baseUri) void
setExtReg
(org.apache.ws.commons.schema.extensions.ExtensionRegistry extReg) void
setNamespaceContext
(org.apache.ws.commons.schema.utils.NamespacePrefixList namespaceContext) void
setSchemaResolver
(org.apache.ws.commons.schema.resolver.URIResolver schemaResolver) void
validateElementName
(QName referrer, QName elementQName) void
validateQNameNamespace
(QName qname) Validate that a qualified name points to some namespace in the schema.void
validateTypeName
(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()
-