org.jibx.xsd2jibx
Class XsdFeature

java.lang.Object
  extended by org.jibx.xsd2jibx.XsdStructure
      extended by org.jibx.xsd2jibx.XsdFeature
Direct Known Subclasses:
XsdAttribute, XsdElement

public abstract class XsdFeature
extends XsdStructure


Field Summary
protected  java.lang.String ref
           
protected  java.lang.String type
           
protected  XsdType xsdType
           
 
Fields inherited from class org.jibx.xsd2jibx.XsdStructure
name, parentComplexType, schema
 
Constructor Summary
protected XsdFeature()
           
  XsdFeature(XsdFeature original)
          Creates a copy/clone.
 
Method Summary
 java.lang.String getFieldName()
          returns the name of the Java source file field to be created.
 JQName getFieldQName()
           
 java.lang.String getGetMethod()
           
 java.lang.String getJavaName()
           
 java.lang.String getSetMethod()
          Returns a qualified class name given an XSD xml type, including namespace prefix.
 XsdType getType()
           
protected abstract  void importRef()
           
abstract  boolean isRequired()
           
 java.lang.String toString()
           
 
Methods inherited from class org.jibx.xsd2jibx.XsdStructure
createXsdType, getGenerator, getName, getParentComplexType, getSchema, getTargetNamespace, getXsdType, isImportedFromBase, setGenerator, setImportedFromBase, setName, setParentComplexType, setSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

protected java.lang.String type

xsdType

protected XsdType xsdType

ref

protected java.lang.String ref
Constructor Detail

XsdFeature

protected XsdFeature()

XsdFeature

public XsdFeature(XsdFeature original)
Creates a copy/clone.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class XsdStructure

getJavaName

public java.lang.String getJavaName()

getFieldName

public java.lang.String getFieldName()
returns the name of the Java source file field to be created.


importRef

protected abstract void importRef()

getFieldQName

public JQName getFieldQName()

getSetMethod

public java.lang.String getSetMethod()
Returns a qualified class name given an XSD xml type, including namespace prefix. It checks to see if it a default type, an XsdSimpleType, a XsdComplexType, then an XsdElement. If it is none of those, an error is logged and it defaults to a java.lang.String.


getGetMethod

public java.lang.String getGetMethod()

getType

public XsdType getType()

isRequired

public abstract boolean isRequired()