Package org.apache.cxf.common.xmlschema
Class SchemaCollection
- java.lang.Object
- 
- org.apache.cxf.common.xmlschema.SchemaCollection
 
- 
 public class SchemaCollection extends Object Wrapper class for XmlSchemaCollection that deals with various quirks and bugs.
- 
- 
Constructor SummaryConstructors Constructor Description SchemaCollection()SchemaCollection(org.apache.ws.commons.schema.XmlSchemaCollection col)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCrossImports()booleanequals(Object obj)org.apache.ws.commons.schema.XmlSchemaAttributegetAttributeByQName(QName qname)org.apache.ws.commons.schema.XmlSchemaElementgetElementByQName(QName qname)org.apache.ws.commons.schema.extensions.ExtensionRegistrygetExtReg()org.apache.ws.commons.schema.utils.NamespacePrefixListgetNamespaceContext()org.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.XmlSchemaCollectiongetXmlSchemaCollection()org.apache.ws.commons.schema.XmlSchema[]getXmlSchemas()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.XmlSchemaread(Document d, String uri)org.apache.ws.commons.schema.XmlSchemaread(Element elem)org.apache.ws.commons.schema.XmlSchemaread(Element elem, String uri)voidsetBaseUri(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)
 
- 
- 
- 
Method Detail- 
getXmlSchemaCollectionpublic org.apache.ws.commons.schema.XmlSchemaCollection getXmlSchemaCollection() 
 - 
getElementByQNamepublic org.apache.ws.commons.schema.XmlSchemaElement getElementByQName(QName qname) 
 - 
getAttributeByQNamepublic org.apache.ws.commons.schema.XmlSchemaAttribute getAttributeByQName(QName qname) 
 - 
getExtRegpublic org.apache.ws.commons.schema.extensions.ExtensionRegistry getExtReg() 
 - 
getNamespaceContextpublic org.apache.ws.commons.schema.utils.NamespacePrefixList getNamespaceContext() 
 - 
getTypeByQNamepublic org.apache.ws.commons.schema.XmlSchemaType getTypeByQName(QName schemaTypeName) 
 - 
getXmlSchemapublic org.apache.ws.commons.schema.XmlSchema[] getXmlSchema(String systemId) 
 - 
getXmlSchemaspublic org.apache.ws.commons.schema.XmlSchema[] getXmlSchemas() 
 - 
initpublic void init() 
 - 
readpublic org.apache.ws.commons.schema.XmlSchema read(Element elem) 
 - 
setBaseUripublic void setBaseUri(String baseUri) 
 - 
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) 
 - 
getSchemaByTargetNamespacepublic org.apache.ws.commons.schema.XmlSchema getSchemaByTargetNamespace(String namespaceURI) This function is not part of the XmlSchema API. Who knows why?- Parameters:
- namespaceURI- targetNamespace
- Returns:
- schema, or null.
 
 - 
getSchemaForElementpublic org.apache.ws.commons.schema.XmlSchema getSchemaForElement(QName name) 
 - 
newXmlSchemaInCollectionpublic org.apache.ws.commons.schema.XmlSchema newXmlSchemaInCollection(String namespaceURI) 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
 
 - 
validateQNameNamespacepublic void validateQNameNamespace(QName qname) Validate that a qualified name points to some namespace in the schema.- Parameters:
- qname-
 
 - 
addCrossImportspublic void addCrossImports() 
 
- 
 
-