org.apache.ws.jaxme.xs.xml

Class XsBlockSet


public class XsBlockSet
extends java.lang.Object

Implementation of xs:derivationset. Follows this specification:
   <xs:simpleType name="blockSet">
     <xs:annotation>
       <xs:documentation>
         A utility type, not for public use
       </xs:documentation>
       <xs:documentation>
         #all or (possibly empty) subset of {substitution, 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>
           <xs:simpleType>
             <xs:restriction base="xs:derivationControl">
               <xs:enumeration value="extension"/>
               <xs:enumeration value="restriction"/>
               <xs:enumeration value="substitution"/>
             </xs:restriction>
           </xs:simpleType>
         </xs:list>
       </xs:simpleType>
     </xs:union>
   </xs:simpleType>
 
Author:
Jochen Wiedmann

Constructor Summary

XsBlockSet(String pValue)
Creates a new DerivationSet with the given value.

Method Summary

boolean
equals(Object o)
int
hashCode()
boolean
isExtensionAllowed()
Returns whether extension is allowed.
boolean
isRestrictionAllowed()
Returns whether restriction is allowed.
boolean
isSubstitutionAllowed()
Returns whether restriction is allowed.
void
setExtensionAllowed(boolean pExtensionAllowed)
Sets whether extension is allowed.
void
setRestrictionAllowed(boolean pRestrictionAllowed)
Sets whether restriction is allowed.
void
setSubstitutionAllowed(boolean pSubstitutionAllowed)
Sets whether restriction is allowed.
String
toString()
static XsBlockSet
valueOf(String pValue)
Returns a DerivationSet matching the given value.

Constructor Details

XsBlockSet

public XsBlockSet(String pValue)
Creates a new DerivationSet with the given value.

Method Details

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.

isSubstitutionAllowed

public boolean isSubstitutionAllowed()
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.

setSubstitutionAllowed

public void setSubstitutionAllowed(boolean pSubstitutionAllowed)
Sets whether restriction is allowed.

toString

public String toString()

valueOf

public static XsBlockSet valueOf(String pValue)
Returns a DerivationSet matching the given value.