Top Description Methods
com.sun.tools.xjc.api

public Interface Property

Known Direct Implementers
com.sun.tools.xjc.api.impl.s2j.PropertyImpl
Imports
javax.xml.namespace.QName, com.sun.codemodel.JType

Represents 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 ([email protected])
See Also
Mapping

Method Summary

Modifier and TypeMethod and Description
public QName

Returns:

always non-null valid QName.
elementName
()

Name of the XML element that corresponds to the property.

public String

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.
name
()

The name of the property.

public QName
public JType

Returns:

always non-null. JType is a representation of a Java type in a codeModel. If you just need the fully-qualified class name, call JType#fullName().
type
()

The Java type of the property.

Method Detail

elementNameback to summary
public 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:QName

always non-null valid QName.

nameback to summary
public String name()

The name of the property.

This method returns a valid identifier suitable for the use as a variable name.

Returns:String

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.

rawNameback to summary
public QName rawName()
typeback to summary
public JType type()

The Java type of the property.

Returns:JType

always non-null. JType is a representation of a Java type in a codeModel. If you just need the fully-qualified class name, call JType#fullName().