org.apache.ws.jaxme.xs.xml

Interface XsAGDefRef

Known Subinterfaces:
XsEChoice, XsESequence, XsTAll, XsTAttributeGroup, XsTElement, XsTExplicitGroup, XsTGroup, XsTGroupRef, XsTLocalElement, XsTRealGroup, XsTTopLevelElement
Known Implementing Classes:
XsAGDefRefImpl, XsEChoiceImpl, XsESequenceImpl, XsTAllImpl, XsTAttributeGroupImpl, XsTElementImpl, XsTExplicitGroupImpl, XsTGroupImpl, XsTGroupRefImpl, XsTLocalAllElementImpl, XsTLocalElementImpl, XsTRealGroupImpl, XsTTopLevelElementImpl

public interface XsAGDefRef

Interface of the attribute group xs:defRef, as specified by the following:
  <xs:attributeGroup name="defRef">
    <xs:annotation>
      <xs:documentation>
        for element, group and attributeGroup,
        which both define and reference
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="name" type="xs:NCName"/>
    <xs:attribute name="ref" type="xs:QName"/>
  </xs:attributeGroup>
 

Implementation note: The 'name' and 'ref' attributes are mutually exclusive. This is checked by the 'validate' method.

Author:
Jochen Wiedmann

Method Summary

XsNCName
getName()
XsQName
getRef()
void
setName(XsNCName pName)
void
setRef(XsQName pRef)
void
validate()
Validates whether the attribute groups constraints are met.

Method Details

getName

public XsNCName getName()

getRef

public XsQName getRef()

setName

public void setName(XsNCName pName)

setRef

public void setRef(XsQName pRef)

validate

public void validate()
            throws SAXException
Validates whether the attribute groups constraints are met.