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

Class XsAGDefRefImpl

Implemented Interfaces:
XsAGDefRef

public class XsAGDefRefImpl
extends java.lang.Object
implements XsAGDefRef

Implementation 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.

Author:
Jochen Wiedmann

Constructor Summary

XsAGDefRefImpl(XsObject pOwner)
Creates a new instance with the given parent object.

Method Summary

XsNCName
getName()
XsQName
getRef()
void
setName(XsNCName pName)
void
setRef(String pRef)
void
setRef(XsQName pRef)
void
validate()

Constructor Details

XsAGDefRefImpl

public XsAGDefRefImpl(XsObject pOwner)
Creates a new instance with the given parent object.

Method Details

getName

public XsNCName getName()
Specified by:
getName in interface XsAGDefRef

getRef

public XsQName getRef()
Specified by:
getRef in interface XsAGDefRef

setName

public void setName(XsNCName pName)
Specified by:
setName in interface XsAGDefRef

setRef

public void setRef(String pRef)
            throws SAXException

setRef

public void setRef(XsQName pRef)
Specified by:
setRef in interface XsAGDefRef

validate

public void validate()
            throws SAXException
Specified by:
validate in interface XsAGDefRef