org.jibx.xsd2jibx
Class XsdFeature
java.lang.Object
org.jibx.xsd2jibx.XsdStructure
org.jibx.xsd2jibx.XsdFeature
- Direct Known Subclasses:
- XsdAttribute, XsdElement
public abstract class XsdFeature
- extends XsdStructure
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 |
type
protected java.lang.String type
xsdType
protected XsdType xsdType
ref
protected java.lang.String ref
XsdFeature
protected XsdFeature()
XsdFeature
public XsdFeature(XsdFeature original)
- Creates a copy/clone.
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()