Package com.sun.tools.xjc.api.impl.s2j
Class PropertyImpl
- java.lang.Object
-
- com.sun.tools.xjc.api.impl.s2j.PropertyImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected JCodeModelcodeModelprotected QNameelementNameprotected FieldOutlinefrprotected Mappingparent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QNameelementName()Name of the XML element that corresponds to the property.Stringname()The name of the property.QNamerawName()Returns raw schema name for simpleType property.JTypetype()The Java type of the property.
-
-
-
Field Detail
-
fr
protected final FieldOutline fr
-
elementName
protected final QName elementName
-
parent
protected final Mapping parent
-
codeModel
protected final JCodeModel codeModel
-
-
Method Detail
-
name
public final String name()
Description copied from interface:PropertyThe name of the property.This method returns a valid identifier suitable for the use as a variable name.
-
rawName
public final QName rawName()
Returns raw schema name for simpleType property. May return null for other types.
-
elementName
public final QName elementName()
Description copied from interface:PropertyName of the XML element that corresponds to the property.Each child of a wrapper style element corresponds with an element, and this method returns that name.
- Specified by:
elementNamein interfaceProperty- Returns:
- always non-null valid
QName.
-
type
public final JType type()
Description copied from interface:PropertyThe Java type of the property.- Specified by:
typein interfaceProperty- Returns:
- always non-null.
JTypeis a representation of a Java type in a codeModel. If you just need the fully-qualified class name, callJType.fullName().
-
-