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

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.XsTFacetImpl
                          extended bynet.sf.jaxme.xs.xml.impl.XsEWhiteSpaceImpl
All Implemented Interfaces:
XsEWhiteSpace, XsObject, XsTAnnotated, XsTFacet, XsTFacetBase, XsTFixedFacet, XsTOpenAttrs

public class XsEWhiteSpaceImpl
extends XsTFacetImpl
implements XsEWhiteSpace

Implementation of xs:whiteSpace, following this specification:

  <xs:element name="whiteSpace" id="whiteSpace">
    <xs:annotation>
      <xs:documentation
        source="http://www.w3.org/TR/xmlschema-2/#element-whiteSpace"/>
    </xs:annotation>
    <xs:complexType>
      <xs:complexContent>
        <xs:restriction base="xs:facet">
          <xs:sequence>
            <xs:element ref="xs:annotation" minOccurs="0"/>
          </xs:sequence>
          <xs:attribute name="value" use="required">
            <xs:simpleType>
              <xs:restriction base="xs:NMTOKEN">
                <xs:enumeration value="preserve"/>
                <xs:enumeration value="replace"/>
                <xs:enumeration value="collapse"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:restriction>
      </xs:complexContent>
    </xs:complexType>
  </xs:element>
 

Author:
Jochen Wiedmann

Constructor Summary
protected XsEWhiteSpaceImpl(XsObject pParent)
           
 
Method Summary
 java.lang.String getFacetName()
           
 boolean isCollapsing()
           
 boolean isPreserving()
           
 boolean isReplacing()
           
 void setValue(java.lang.String pValue)
           
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsTFacetImpl
getValue, validate
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsTFixedFacetImpl
isFixed, setFixed
 
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.XsTFacet
getValue
 
Methods inherited from interface net.sf.jaxme.xs.xml.XsTFixedFacet
isFixed, setFixed
 
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, validate
 

Constructor Detail

XsEWhiteSpaceImpl

protected XsEWhiteSpaceImpl(XsObject pParent)
Method Detail

setValue

public void setValue(java.lang.String pValue)
Specified by:
setValue in interface XsTFacet
Overrides:
setValue in class XsTFacetImpl

isPreserving

public boolean isPreserving()
Specified by:
isPreserving in interface XsEWhiteSpace

isReplacing

public boolean isReplacing()
Specified by:
isReplacing in interface XsEWhiteSpace

isCollapsing

public boolean isCollapsing()
Specified by:
isCollapsing in interface XsEWhiteSpace

getFacetName

public java.lang.String getFacetName()
Specified by:
getFacetName in interface XsTFacetBase
Specified by:
getFacetName in class XsTFacetBaseImpl