java.lang.Object
org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl
org.apache.ws.jaxme.xs.xml.impl.XsTOpenAttrsImpl
- All Implemented Interfaces:
- org.apache.ws.jaxme.xs.xml.XsObject, org.apache.ws.jaxme.xs.xml.XsTOpenAttrs
- Direct Known Subclasses:
- XsEAnnotationImpl, XsESchemaImpl, XsTAnnotatedImpl
- public class XsTOpenAttrsImpl
- extends XsObjectImpl
- implements org.apache.ws.jaxme.xs.xml.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>
| Fields inherited from class org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl |
|
| Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl |
asXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
attributes
private org.xml.sax.helpers.AttributesImpl attributes
XsTOpenAttrsImpl
protected XsTOpenAttrsImpl(org.apache.ws.jaxme.xs.xml.XsObject pParent)
getOpenAttributes
public org.xml.sax.Attributes getOpenAttributes()
- Description copied from interface:
org.apache.ws.jaxme.xs.xml.XsTOpenAttrs
Returns the attributes having other namespaces.
- Specified by:
getOpenAttributes in interface org.apache.ws.jaxme.xs.xml.XsTOpenAttrs
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
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 getOpenAttributes() 55
and the value true is returned.