org.w3._2001.xmlschema
Class Attribute

java.lang.Object
  extended by org.w3._2001.xmlschema.OpenAttrs
      extended by org.w3._2001.xmlschema.Annotated
          extended by org.w3._2001.xmlschema.Attribute
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TopLevelAttribute

public class Attribute
extends Annotated
implements java.io.Serializable

Java class for attribute complex type.

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

 <complexType name="attribute">
   <complexContent>
     <extension base="{http://www.w3.org/2001/XMLSchema}annotated">
       <sequence>
         <element name="simpleType" type="{http://www.w3.org/2001/XMLSchema}localSimpleType" minOccurs="0"/>
       </sequence>
       <attGroup ref="{http://www.w3.org/2001/XMLSchema}defRef"/>
       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}QName" />
       <attribute name="use" default="optional">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
             <enumeration value="prohibited"/>
             <enumeration value="optional"/>
             <enumeration value="required"/>
           </restriction>
         </simpleType>
       </attribute>
       <attribute name="default" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="fixed" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="form" type="{http://www.w3.org/2001/XMLSchema}formChoice" />
       <anyAttribute processContents='lax' namespace='##other'/>
     </extension>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  java.lang.String _default
           
protected  java.lang.String fixed
           
protected  FormChoice form
           
protected  java.lang.String name
           
protected  javax.xml.namespace.QName ref
           
protected  LocalSimpleType simpleType
           
protected  javax.xml.namespace.QName type
           
protected  java.lang.String use
           
 
Fields inherited from class org.w3._2001.xmlschema.Annotated
annotation, id
 
Constructor Summary
Attribute()
           
 
Method Summary
 java.lang.String getDefault()
          Gets the value of the default property.
 java.lang.String getFixed()
          Gets the value of the fixed property.
 FormChoice getForm()
          Gets the value of the form property.
 java.lang.String getName()
          Gets the value of the name property.
 javax.xml.namespace.QName getRef()
          Gets the value of the ref property.
 LocalSimpleType getSimpleType()
          Gets the value of the simpleType property.
 javax.xml.namespace.QName getType()
          Gets the value of the type property.
 java.lang.String getUse()
          Gets the value of the use property.
 void setDefault(java.lang.String value)
          Sets the value of the default property.
 void setFixed(java.lang.String value)
          Sets the value of the fixed property.
 void setForm(FormChoice value)
          Sets the value of the form property.
 void setName(java.lang.String value)
          Sets the value of the name property.
 void setRef(javax.xml.namespace.QName value)
          Sets the value of the ref property.
 void setSimpleType(LocalSimpleType value)
          Sets the value of the simpleType property.
 void setType(javax.xml.namespace.QName value)
          Sets the value of the type property.
 void setUse(java.lang.String value)
          Sets the value of the use 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

type

protected javax.xml.namespace.QName type

use

protected java.lang.String use

_default

protected java.lang.String _default

fixed

protected java.lang.String fixed

form

protected FormChoice form

name

protected java.lang.String name

ref

protected javax.xml.namespace.QName ref
Constructor Detail

Attribute

public Attribute()
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

getType

public javax.xml.namespace.QName getType()
Gets the value of the type property.

Returns:
possible object is QName

setType

public void setType(javax.xml.namespace.QName value)
Sets the value of the type property.

Parameters:
value - allowed object is QName

getUse

public java.lang.String getUse()
Gets the value of the use property.

Returns:
possible object is String

setUse

public void setUse(java.lang.String value)
Sets the value of the use property.

Parameters:
value - allowed object is String

getDefault

public java.lang.String getDefault()
Gets the value of the default property.

Returns:
possible object is String

setDefault

public void setDefault(java.lang.String value)
Sets the value of the default property.

Parameters:
value - allowed object is String

getFixed

public java.lang.String getFixed()
Gets the value of the fixed property.

Returns:
possible object is String

setFixed

public void setFixed(java.lang.String value)
Sets the value of the fixed property.

Parameters:
value - allowed object is String

getForm

public FormChoice getForm()
Gets the value of the form property.

Returns:
possible object is FormChoice

setForm

public void setForm(FormChoice value)
Sets the value of the form property.

Parameters:
value - allowed object is FormChoice

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

getRef

public javax.xml.namespace.QName getRef()
Gets the value of the ref property.

Returns:
possible object is QName

setRef

public void setRef(javax.xml.namespace.QName value)
Sets the value of the ref 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.