org.apache.ws.jaxme.xs.xml
Class XsSimpleDerivationSet

java.lang.Object
  extended by org.apache.ws.jaxme.xs.xml.XsSimpleDerivationSet

public class XsSimpleDerivationSet
extends java.lang.Object

Implementation of xs:derivationset. Follows this specification:

  <xs:simpleType name="simpleDerivationSet">
    <xs:annotation>
      <xs:documentation>
        #all or (possibly empty) subset of {restriction, union, list}
      </xs:documentation>
      <xs:documentation>
        A utility type, not for public use
      </xs:documentation>
    </xs:annotation>
    <xs:union>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="#all"/>
        </xs:restriction>
      </xs:simpleType>
      <xs:simpleType>
        <xs:restriction base="xs:derivationControl">
          <xs:enumeration value="list"/>
          <xs:enumeration value="union"/>
          <xs:enumeration value="restriction"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:union>
  </xs:simpleType>
 

Author:
Jochen Wiedmann

Constructor Summary
XsSimpleDerivationSet(java.lang.String pValue)
          Creates a new DerivationSet with the given value.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 boolean isListAllowed()
          Returns whether derivation of lists is allowed.
 boolean isRestrictionAllowed()
          Returns whether derivation of restrictions is allowed.
 boolean isUnionAllowed()
          Returns whether derivation of unions is allowed.
 java.lang.String toString()
           
static XsSimpleDerivationSet valueOf(java.lang.String pValue)
          Returns a DerivationSet matching the given value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XsSimpleDerivationSet

public XsSimpleDerivationSet(java.lang.String pValue)

Creates a new DerivationSet with the given value.

Method Detail

isListAllowed

public boolean isListAllowed()

Returns whether derivation of lists is allowed.


isUnionAllowed

public boolean isUnionAllowed()

Returns whether derivation of unions is allowed.


isRestrictionAllowed

public boolean isRestrictionAllowed()

Returns whether derivation of restrictions is allowed.


valueOf

public static XsSimpleDerivationSet valueOf(java.lang.String pValue)

Returns a DerivationSet matching the given value.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object