Package com.sun.tools.xjc.api
Interface Property
-
- All Known Implementing Classes:
PropertyImpl
public interface PropertyRepresents a property of a wrapper-style element.Carrys information about one property of a wrapper-style element. This interface is solely intended for the use by the JAX-RPC and otherwise the use is discouraged.
REVISIT: use CodeModel.
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
- See Also:
Mapping
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.xml.namespace.QNameelementName()Name of the XML element that corresponds to the property.java.lang.Stringname()The name of the property.javax.xml.namespace.QNamerawName()JTypetype()The Java type of the property.
-
-
-
Method Detail
-
name
java.lang.String name()
The name of the property.This method returns a valid identifier suitable for the use as a variable name.
- Returns:
- always non-null. Camel-style name like "foo" or "barAndZot". Note that it may contain non-ASCII characters (CJK, etc.) The caller is responsible for proper escaping if it wants to print this as a variable name.
-
type
JType type()
The Java type of the property.- 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().
-
elementName
javax.xml.namespace.QName elementName()
Name 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.
- Returns:
- always non-null valid
QName.
-
rawName
javax.xml.namespace.QName rawName()
-
-