org.apache.ws.jaxme.xs.xml

Class XsDerivationSet

public class XsDerivationSet extends Object

Implementation of xs:derivationset. Follows this specification:

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

Author: Jochen Wiedmann

Constructor Summary
XsDerivationSet(String pValue)

Creates a new DerivationSet with the given value.

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

Returns whether extension is allowed.

booleanisRestrictionAllowed()

Returns whether restriction is allowed.

voidsetExtensionAllowed(boolean pExtensionAllowed)

Sets whether extension is allowed.

voidsetRestrictionAllowed(boolean pRestrictionAllowed)

Sets whether restriction is allowed.

StringtoString()
static XsDerivationSetvalueOf(String pValue)

Returns a DerivationSet matching the given value.

Constructor Detail

XsDerivationSet

public XsDerivationSet(String pValue)

Creates a new DerivationSet with the given value.

Method Detail

equals

public boolean equals(Object o)

hashCode

public int hashCode()

isExtensionAllowed

public boolean isExtensionAllowed()

Returns whether extension is allowed.

isRestrictionAllowed

public boolean isRestrictionAllowed()

Returns whether restriction is allowed.

setExtensionAllowed

public void setExtensionAllowed(boolean pExtensionAllowed)

Sets whether extension is allowed.

setRestrictionAllowed

public void setRestrictionAllowed(boolean pRestrictionAllowed)

Sets whether restriction is allowed.

toString

public String toString()

valueOf

public static XsDerivationSet valueOf(String pValue)

Returns a DerivationSet matching the given value.