net.sf.jaxme.xs.xml.impl
Class XsTNumFacetImpl

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.XsTAnnotatedImpl
              extended bynet.sf.jaxme.xs.xml.impl.XsTFacetBaseImpl
                  extended bynet.sf.jaxme.xs.xml.impl.XsTFixedFacetImpl
                      extended bynet.sf.jaxme.xs.xml.impl.XsTNumFacetImpl
All Implemented Interfaces:
XsObject, XsTAnnotated, XsTFacetBase, XsTFixedFacet, XsTNumFacet, XsTOpenAttrs
Direct Known Subclasses:
XsEFractionDigitsImpl, XsELengthImpl, XsEMaxLengthImpl, XsEMinLengthImpl, XsETotalDigitsImpl

public abstract class XsTNumFacetImpl
extends XsTFixedFacetImpl
implements XsTNumFacet

Implementation of xs:numFacet, following this specification:

  <xs:complexType name="numFacet">
    <xs:complexContent>
      <xs:restriction base="xs:facet">
        <xs:sequence>
          <xs:element ref="xs:annotation" minOccurs="0"/>
        </xs:sequence>
        <xs:attribute name="value" type="xs:nonNegativeInteger" use="required"/>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>
 

Author:
Jochen Wiedmann

Constructor Summary
protected XsTNumFacetImpl(XsObject pParent)
           
 
Method Summary
 long getValue()
           
 void setValue(long pValue)
           
 void validate()
          Validates the types, attributes, elements, ... internal state.
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsTFixedFacetImpl
isFixed, setFixed
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsTFacetBaseImpl
getFacetName
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsTAnnotatedImpl
createAnnotation, getAnnotation, getId, setId
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsTOpenAttrsImpl
getOpenAttributes, setAttribute
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsObjectImpl
asXsQName, getContext, 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.XsTFixedFacet
isFixed, setFixed
 
Methods inherited from interface net.sf.jaxme.xs.xml.XsTFacetBase
getFacetName
 
Methods inherited from interface net.sf.jaxme.xs.xml.XsTAnnotated
createAnnotation, getAnnotation, getId, setId
 
Methods inherited from interface net.sf.jaxme.xs.xml.XsObject
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject
 

Constructor Detail

XsTNumFacetImpl

protected XsTNumFacetImpl(XsObject pParent)
Method Detail

setValue

public void setValue(long pValue)
              throws org.xml.sax.SAXException
Specified by:
setValue in interface XsTNumFacet
Throws:
org.xml.sax.SAXException

getValue

public long getValue()
Specified by:
getValue in interface XsTNumFacet

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