net.sf.jaxme.xs.jaxb.impl
Class JAXBXsSchemaImpl

java.lang.Object
  extended bynet.sf.jaxme.xs.xml.impl.XsObjectImpl
      extended bynet.sf.jaxme.xs.xml.impl.XsTOpenAttrsImpl
          extended bynet.sf.jaxme.xs.xml.impl.XsESchemaImpl
              extended bynet.sf.jaxme.xs.jaxb.impl.JAXBXsSchemaImpl
All Implemented Interfaces:
JAXBXsSchema, XsESchema, XsObject, XsTOpenAttrs

public class JAXBXsSchemaImpl
extends XsESchemaImpl
implements JAXBXsSchema

Author:
Jochen Wiedmann

Constructor Summary
JAXBXsSchemaImpl(XSContext pContext)
          Creates a new instance of JAXBXsSchemaImpl.
 
Method Summary
 java.lang.String[] getJaxbExtensionBindingPrefixes()
          Returns the list of extension binding prefixes.
 JAXBSchemaBindings getJAXBSchemaBindings()
           
 java.lang.String getJaxbVersion()
          Returns the jaxb:version attribute.
 boolean setAttribute(java.lang.String pQName, java.lang.String pNamespaceURI, java.lang.String pLocalName, java.lang.String pValue)
          This method receives all the attributes, including those from the XML schema namespace.
 void setJaxbExtensionBindingPrefixes(java.lang.String pExtensionBindingPrefixes)
           
 void setJaxbVersion(java.lang.String pVersion)
           
 void validate()
          Validates the types, attributes, elements, ... internal state.
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsESchemaImpl
createAnnotation, createAttribute, createAttributeGroup, createComplexType, createElement, createGroup, createImport, createInclude, createNotation, createRedefine, createSimpleType, getAttributeFormDefault, getBlockDefault, getChilds, getContext, getElementFormDefault, getFinalDefault, getId, getLang, getTargetNamespace, getTargetNamespacePrefix, getVersion, setAttributeFormDefault, setBlockDefault, setElementFormDefault, setFinalDefault, setId, setLang, setTargetNamespace, setVersion
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsTOpenAttrsImpl
getOpenAttributes
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsObjectImpl
asXsQName, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jaxme.xs.xml.XsESchema
createAnnotation, createAttribute, createAttributeGroup, createComplexType, createElement, createGroup, createImport, createInclude, createNotation, createRedefine, createSimpleType, getAttributeFormDefault, getBlockDefault, getChilds, getContext, getElementFormDefault, getFinalDefault, getId, getTargetNamespace, getTargetNamespacePrefix, getVersion, setAttributeFormDefault, setBlockDefault, setElementFormDefault, setFinalDefault, setId, setTargetNamespace, setVersion
 
Methods inherited from interface net.sf.jaxme.xs.xml.XsTOpenAttrs
getOpenAttributes
 
Methods inherited from interface net.sf.jaxme.xs.xml.XsObject
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject
 

Constructor Detail

JAXBXsSchemaImpl

public JAXBXsSchemaImpl(XSContext pContext)

Creates a new instance of JAXBXsSchemaImpl.

Method Detail

setJaxbVersion

public void setJaxbVersion(java.lang.String pVersion)

setJaxbExtensionBindingPrefixes

public void setJaxbExtensionBindingPrefixes(java.lang.String pExtensionBindingPrefixes)

getJaxbExtensionBindingPrefixes

public java.lang.String[] getJaxbExtensionBindingPrefixes()
Description copied from interface: JAXBXsSchema

Returns the list of extension binding prefixes.

Specified by:
getJaxbExtensionBindingPrefixes in interface JAXBXsSchema

getJaxbVersion

public java.lang.String getJaxbVersion()
Description copied from interface: JAXBXsSchema

Returns the jaxb:version attribute.

Specified by:
getJaxbVersion in interface JAXBXsSchema

validate

public void validate()
              throws org.xml.sax.SAXException
Description copied from interface: XsObject

Validates the types, attributes, elements, ... internal state.

Specified by:
validate in interface XsObject
Overrides:
validate in class XsObjectImpl
Throws:
org.xml.sax.SAXException

getJAXBSchemaBindings

public JAXBSchemaBindings getJAXBSchemaBindings()
Specified by:
getJAXBSchemaBindings in interface JAXBXsSchema

setAttribute

public boolean setAttribute(java.lang.String pQName,
                            java.lang.String pNamespaceURI,
                            java.lang.String pLocalName,
                            java.lang.String pValue)
                     throws org.xml.sax.SAXException
Description copied from class: XsTOpenAttrsImpl

This method receives all the attributes, including those from the XML schema namespace. The method refuses to handle the attribute, if it has the XML schema namespace by returning the value false. Otherwise, the attribute is added to the list returned by XsTOpenAttrsImpl.getOpenAttributes() and the value true is returned.

Overrides:
setAttribute in class XsESchemaImpl
Throws:
org.xml.sax.SAXException