org.apache.ws.jaxme.xs.xml

Class XsSimpleDerivationSet

public class XsSimpleDerivationSet extends 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(String pValue)

Creates a new DerivationSet with the given value.

Method Summary
booleanequals(Object o)
inthashCode()
booleanisListAllowed()

Returns whether derivation of lists is allowed.

booleanisRestrictionAllowed()

Returns whether derivation of restrictions is allowed.

booleanisUnionAllowed()

Returns whether derivation of unions is allowed.

StringtoString()
static XsSimpleDerivationSetvalueOf(String pValue)

Returns a DerivationSet matching the given value.

Constructor Detail

XsSimpleDerivationSet

public XsSimpleDerivationSet(String pValue)

Creates a new DerivationSet with the given value.

Method Detail

equals

public boolean equals(Object o)

hashCode

public int hashCode()

isListAllowed

public boolean isListAllowed()

Returns whether derivation of lists is allowed.

isRestrictionAllowed

public boolean isRestrictionAllowed()

Returns whether derivation of restrictions is allowed.

isUnionAllowed

public boolean isUnionAllowed()

Returns whether derivation of unions is allowed.

toString

public String toString()

valueOf

public static XsSimpleDerivationSet valueOf(String pValue)

Returns a DerivationSet matching the given value.