java.lang.Object
org.apache.ws.jaxme.xs.xml.impl.XsGSimpleRestrictionModelImpl
- All Implemented Interfaces:
- org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
- public class XsGSimpleRestrictionModelImpl
- extends java.lang.Object
- implements org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
Interface of xs:simpleRestrictionModel, following
this specification:
<xs:group name="simpleRestrictionModel">
<xs:sequence>
<xs:element name="simpleType" type="xs:localSimpleType" minOccurs="0"/>
<xs:group ref="xs:facets" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:group>
<xs:group name="facets">
<xs:annotation>
<xs:documentation>
We should use a substitution group for facets, but
that's ruled out because it would allow users to
add their own, which we're not ready for yet.
</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:element ref="xs:minExclusive"/>
<xs:element ref="xs:minInclusive"/>
<xs:element ref="xs:maxExclusive"/>
<xs:element ref="xs:maxInclusive"/>
<xs:element ref="xs:totalDigits"/>
<xs:element ref="xs:fractionDigits"/>
<xs:element ref="xs:length"/>
<xs:element ref="xs:minLength"/>
<xs:element ref="xs:maxLength"/>
<xs:element ref="xs:enumeration"/>
<xs:element ref="xs:whiteSpace"/>
<xs:element ref="xs:pattern"/>
</xs:choice>
</xs:group>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
owner
private final org.apache.ws.jaxme.xs.xml.XsObject owner
simpleType
private org.apache.ws.jaxme.xs.xml.XsTLocalSimpleType simpleType
facets
private java.util.List facets
XsGSimpleRestrictionModelImpl
protected XsGSimpleRestrictionModelImpl(org.apache.ws.jaxme.xs.xml.XsObject pOwner)
createSimpleType
public org.apache.ws.jaxme.xs.xml.XsTLocalSimpleType createSimpleType()
- Specified by:
createSimpleType in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
getSimpleType
public org.apache.ws.jaxme.xs.xml.XsTLocalSimpleType getSimpleType()
- Specified by:
getSimpleType in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
getFacetByName
protected org.apache.ws.jaxme.xs.xml.XsTFacetBase getFacetByName(java.lang.String pName)
addFacet
protected void addFacet(org.apache.ws.jaxme.xs.xml.XsTFacetBase pFacet)
addUniqueFacet
protected void addUniqueFacet(org.apache.ws.jaxme.xs.xml.XsTFacetBase pFacet)
createMinExclusive
public org.apache.ws.jaxme.xs.xml.XsEMinExclusive createMinExclusive()
- Specified by:
createMinExclusive in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
getMinExclusive
public org.apache.ws.jaxme.xs.xml.XsEMinExclusive getMinExclusive()
- Specified by:
getMinExclusive in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
createMinInclusive
public org.apache.ws.jaxme.xs.xml.XsEMinInclusive createMinInclusive()
- Specified by:
createMinInclusive in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
getMinInclusive
public org.apache.ws.jaxme.xs.xml.XsEMinInclusive getMinInclusive()
- Specified by:
getMinInclusive in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
createMaxExclusive
public org.apache.ws.jaxme.xs.xml.XsEMaxExclusive createMaxExclusive()
- Specified by:
createMaxExclusive in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
getMaxExclusive
public org.apache.ws.jaxme.xs.xml.XsEMaxExclusive getMaxExclusive()
- Specified by:
getMaxExclusive in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
createMaxInclusive
public org.apache.ws.jaxme.xs.xml.XsEMaxInclusive createMaxInclusive()
- Specified by:
createMaxInclusive in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
getMaxInclusive
public org.apache.ws.jaxme.xs.xml.XsEMaxInclusive getMaxInclusive()
- Specified by:
getMaxInclusive in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
createTotalDigits
public org.apache.ws.jaxme.xs.xml.XsETotalDigits createTotalDigits()
- Specified by:
createTotalDigits in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
getTotalDigits
public org.apache.ws.jaxme.xs.xml.XsETotalDigits getTotalDigits()
- Specified by:
getTotalDigits in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
createFractionDigits
public org.apache.ws.jaxme.xs.xml.XsEFractionDigits createFractionDigits()
- Specified by:
createFractionDigits in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
getFractionDigits
public org.apache.ws.jaxme.xs.xml.XsEFractionDigits getFractionDigits()
- Specified by:
getFractionDigits in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
createLength
public org.apache.ws.jaxme.xs.xml.XsELength createLength()
- Specified by:
createLength in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
getLength
public org.apache.ws.jaxme.xs.xml.XsELength getLength()
- Specified by:
getLength in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
createMinLength
public org.apache.ws.jaxme.xs.xml.XsEMinLength createMinLength()
- Specified by:
createMinLength in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
getMinLength
public org.apache.ws.jaxme.xs.xml.XsEMinLength getMinLength()
- Specified by:
getMinLength in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
createMaxLength
public org.apache.ws.jaxme.xs.xml.XsEMaxLength createMaxLength()
- Specified by:
createMaxLength in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
getMaxLength
public org.apache.ws.jaxme.xs.xml.XsEMaxLength getMaxLength()
- Specified by:
getMaxLength in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
createWhiteSpace
public org.apache.ws.jaxme.xs.xml.XsEWhiteSpace createWhiteSpace()
- Specified by:
createWhiteSpace in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
getWhiteSpace
public org.apache.ws.jaxme.xs.xml.XsEWhiteSpace getWhiteSpace()
- Specified by:
getWhiteSpace in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
createPattern
public org.apache.ws.jaxme.xs.xml.XsEPattern createPattern()
- Specified by:
createPattern in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
getPatterns
public org.apache.ws.jaxme.xs.xml.XsEPattern[] getPatterns()
- Specified by:
getPatterns in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
createEnumeration
public org.apache.ws.jaxme.xs.xml.XsEEnumeration createEnumeration()
- Specified by:
createEnumeration in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
getEnumerations
public org.apache.ws.jaxme.xs.xml.XsEEnumeration[] getEnumerations()
- Specified by:
getEnumerations in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
hasFacets
public boolean hasFacets()
- Description copied from interface:
org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
Returns whether any facet has been defined.
- Specified by:
hasFacets in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
getFacets
public org.apache.ws.jaxme.xs.xml.XsTFacetBase[] getFacets()
- Description copied from interface:
org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel
Returns an array of all facets.
- Specified by:
getFacets in interface org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel