org.apache.ws.jaxme.xs.xml.impl

Class XsTOpenAttrsImpl

Implemented Interfaces:
XsObject, XsTOpenAttrs
Known Direct Subclasses:
XsEAnnotationImpl, XsESchemaImpl, XsTAnnotatedImpl

public class XsTOpenAttrsImpl
extends XsObjectImpl
implements XsTOpenAttrs

A common base type for most of the schema elements. Implements the following specification:
  <xs:complexType name="openAttrs">
    <xs:annotation>
      <xs:documentation>
        This type is extended by almost all schema types
        to allow attributes from other namespaces to be
        added to user schemas.
      </xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:restriction base="xs:anyType">
        <xs:anyAttribute namespace="##other" processContents="lax"/>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>
 
Author:
Jochen Wiedmann

Constructor Summary

XsTOpenAttrsImpl(XsObject pParent)

Method Summary

Attributes
getOpenAttributes()
Returns the attributes having other namespaces.
boolean
setAttribute(String pQName, String pNamespaceURI, String pLocalName, String pValue)
This method receives all the attributes, including those from the XML schema namespace.

Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl

asXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validate

Constructor Details

XsTOpenAttrsImpl

protected XsTOpenAttrsImpl(XsObject pParent)

Method Details

getOpenAttributes

public Attributes getOpenAttributes()
Returns the attributes having other namespaces.
Specified by:
getOpenAttributes in interface XsTOpenAttrs

setAttribute

public boolean setAttribute(String pQName,
                            String pNamespaceURI,
                            String pLocalName,
                            String pValue)
            throws SAXException