org.w3._2001.xmlschema
Class Restriction

java.lang.Object
  extended by org.w3._2001.xmlschema.OpenAttrs
      extended by org.w3._2001.xmlschema.Annotated
          extended by org.w3._2001.xmlschema.Restriction
All Implemented Interfaces:
java.io.Serializable

public class Restriction
extends Annotated
implements java.io.Serializable

base attribute and simpleType child are mutually exclusive, but one or other is required

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <extension base="{http://www.w3.org/2001/XMLSchema}annotated">
       <group ref="{http://www.w3.org/2001/XMLSchema}simpleRestrictionModel"/>
       <attribute name="base" type="{http://www.w3.org/2001/XMLSchema}QName" />
       <anyAttribute processContents='lax' namespace='##other'/>
     </extension>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  javax.xml.namespace.QName base
           
protected  java.util.List<java.io.Serializable> facets
           
protected  LocalSimpleType simpleType
           
 
Fields inherited from class org.w3._2001.xmlschema.Annotated
annotation, id
 
Constructor Summary
Restriction()
           
 
Method Summary
 javax.xml.namespace.QName getBase()
          Gets the value of the base property.
 java.util.List<java.io.Serializable> getFacets()
          Gets the value of the facets property.
 LocalSimpleType getSimpleType()
          Gets the value of the simpleType property.
 void setBase(javax.xml.namespace.QName value)
          Sets the value of the base property.
 void setSimpleType(LocalSimpleType value)
          Sets the value of the simpleType property.
 java.lang.String toString()
          Generates a String representation of the contents of this type.
 
Methods inherited from class org.w3._2001.xmlschema.Annotated
getAnnotation, getId, setAnnotation, setId
 
Methods inherited from class org.w3._2001.xmlschema.OpenAttrs
getOtherAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

simpleType

protected LocalSimpleType simpleType

facets

protected java.util.List<java.io.Serializable> facets

base

protected javax.xml.namespace.QName base
Constructor Detail

Restriction

public Restriction()
Method Detail

getSimpleType

public LocalSimpleType getSimpleType()
Gets the value of the simpleType property.

Returns:
possible object is LocalSimpleType

setSimpleType

public void setSimpleType(LocalSimpleType value)
Sets the value of the simpleType property.

Parameters:
value - allowed object is LocalSimpleType

getFacets

public java.util.List<java.io.Serializable> getFacets()
Gets the value of the facets property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the facets property.

For example, to add a new item, do as follows:

    getFacets().add(newItem);
 

Objects of the following type(s) are allowed in the list Pattern JAXBElement<NoFixedFacet> JAXBElement<NumFacet> JAXBElement<Facet> JAXBElement<Facet> JAXBElement<NumFacet> TotalDigits JAXBElement<NumFacet> JAXBElement<NumFacet> JAXBElement<Facet> WhiteSpace JAXBElement<Facet>


getBase

public javax.xml.namespace.QName getBase()
Gets the value of the base property.

Returns:
possible object is QName

setBase

public void setBase(javax.xml.namespace.QName value)
Sets the value of the base property.

Parameters:
value - allowed object is QName

toString

public java.lang.String toString()
Generates a String representation of the contents of this type. This is an extension method, produced by the 'ts' xjc plugin

Overrides:
toString in class Annotated


Copyright © 2011 evolveum. All Rights Reserved.