org.plasma.xml.schema
Class AbstractSimpleType

java.lang.Object
  extended by org.plasma.xml.schema.OpenAttrs
      extended by org.plasma.xml.schema.Annotated
          extended by org.plasma.xml.schema.AbstractSimpleType
Direct Known Subclasses:
LocalSimpleType, SimpleType

public abstract class AbstractSimpleType
extends Annotated

Java class for simpleType complex type.

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

 <complexType name="simpleType">
   <complexContent>
     <extension base="{http://www.w3.org/2001/XMLSchema}annotated">
       <group ref="{http://www.w3.org/2001/XMLSchema}simpleDerivation"/>
       <attribute name="final" type="{http://www.w3.org/2001/XMLSchema}simpleDerivationSet" />
       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}NCName" />
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.util.List<java.lang.String> finals
           
protected  List list
           
protected  java.lang.String name
           
protected  Restriction restriction
           
protected  Union union
           
 
Fields inherited from class org.plasma.xml.schema.Annotated
annotation, id
 
Constructor Summary
AbstractSimpleType()
           
 
Method Summary
 void accept(SimpleTypeVisitor visitor)
          Encapsulates the (breadth-first) traversal logic for XSD SimpleType hierarchies across restrictions, lists, unions and other elements, creating "visit" events ala.
 java.util.List<java.lang.String> getFinals()
          Gets the value of the finals property.
 List getList()
          Gets the value of the list property.
 java.lang.String getName()
          Gets the value of the name property.
 Restriction getRestriction()
          Gets the value of the restriction property.
 Union getUnion()
          Gets the value of the union property.
 void setList(List value)
          Sets the value of the list property.
 void setName(java.lang.String value)
          Sets the value of the name property.
 void setRestriction(Restriction value)
          Sets the value of the restriction property.
 void setUnion(Union value)
          Sets the value of the union property.
 
Methods inherited from class org.plasma.xml.schema.Annotated
getAnnotation, getId, setAnnotation, setId
 
Methods inherited from class org.plasma.xml.schema.OpenAttrs
getOtherAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

union

protected Union union

list

protected List list

restriction

protected Restriction restriction

finals

protected java.util.List<java.lang.String> finals

name

protected java.lang.String name
Constructor Detail

AbstractSimpleType

public AbstractSimpleType()
Method Detail

getUnion

public Union getUnion()
Gets the value of the union property.

Returns:
possible object is Union

setUnion

public void setUnion(Union value)
Sets the value of the union property.

Parameters:
value - allowed object is Union

getList

public List getList()
Gets the value of the list property.

Returns:
possible object is List

setList

public void setList(List value)
Sets the value of the list property.

Parameters:
value - allowed object is List

getRestriction

public Restriction getRestriction()
Gets the value of the restriction property.

Returns:
possible object is Restriction

setRestriction

public void setRestriction(Restriction value)
Sets the value of the restriction property.

Parameters:
value - allowed object is Restriction

getFinals

public java.util.List<java.lang.String> getFinals()
Gets the value of the finals 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 finals property.

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

    getFinals().add(newItem);
 

Objects of the following type(s) are allowed in the list String


getName

public java.lang.String getName()
Gets the value of the name property.

Returns:
possible object is String

setName

public void setName(java.lang.String value)
Sets the value of the name property.

Parameters:
value - allowed object is String

accept

public void accept(SimpleTypeVisitor visitor)
Encapsulates the (breadth-first) traversal logic for XSD SimpleType hierarchies across restrictions, lists, unions and other elements, creating "visit" events ala. the Visitor pattern for the given visitor.

See Also:
Restriction, List, Union


Copyright © 2013. All Rights Reserved.