|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Property
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.
Mapping
Method Summary | |
---|---|
javax.xml.namespace.QName |
elementName()
Name of the XML element that corresponds to the property. |
java.lang.String |
getValue(java.lang.String $bean,
java.lang.String $var,
java.lang.String uniqueName)
Deprecated. this method is provided for now to allow gradual migration for JAX-RPC. |
java.lang.String |
name()
The name of the property. |
java.lang.String |
setValue(java.lang.String $bean,
java.lang.String $var,
java.lang.String uniqueName)
Deprecated. this method is provided for now to allow gradual migration for JAX-RPC. |
com.sun.codemodel.JType |
type()
The Java type of the property. |
Method Detail |
---|
java.lang.String name()
This method returns a valid identifier suitable for the use as a variable name.
com.sun.codemodel.JType type()
JType
is a representation of a Java type in a codeModel.
If you just need the fully-qualified class name, call JType.fullName()
.javax.xml.namespace.QName elementName()
Each child of a wrapper style element corresponds with an element, and this method returns that name.
QName
.java.lang.String setValue(java.lang.String $bean, java.lang.String $var, java.lang.String uniqueName)
$bean
- A variable name that evaluates to the
"type representation" of the bean that receives
new values.$var
- A variable name that evaluates to the values to be set.
The type of this variable must be the one returned by
type()
uniqueName
- Sometimes this method needs to generate additional local
variables to get the job done. This parameter specifies
what names can be used in such occasion.
This parameter must not be null.
For example, when you pass "abc", you are guaranteeing that
any identifier "abc.*" (in regexp) is usable unused
identifier names in the context where this code is used.
java.lang.String getValue(java.lang.String $bean, java.lang.String $var, java.lang.String uniqueName)
$bean
- A variable name that evaluates to the
"type representation" of the bean whose values
will be retrieved.$var
- A variable name that evaluates to the values to be set.
The type of this variable must be the one returned by
type()
.uniqueName
- Sometimes this method needs to generate additional local
variables to get the job done. This parameter specifies
what names can be used in such occasion.
This parameter must not be null.
For example, when you pass "abc", you are guaranteeing that
any identifier "abc.*" (in regexp) is usable unused
identifier names in the context where this code is used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |