Top Description Methods
org.glassfish.jaxb.runtime.v2.model.runtime

public Interface RuntimePropertyInfo

extends PropertyInfo<Type, Class<T>>
Known Direct Subinterfaces
org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeReferencePropertyInfo, org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeValuePropertyInfo, org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeAttributePropertyInfo, org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeElementPropertyInfo, org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeMapPropertyInfo
Imports
org.glassfish.jaxb.core.v2.model.core.PropertyInfo, org.glassfish.jaxb.runtime.v2.runtime.JAXBContextImpl, org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor, java.lang.reflect.Type, java.util.Collection

PropertyInfo that exposes more information.
Author
Kohsuke Kawaguchi ([email protected])

Method Summary

Modifier and TypeMethod and Description
public boolean
elementOnlyContent()

Returns true if this property has an element-only content.

public Accessor<BeanT, ValueT>

Returns:

never null.
getAccessor
()

Gets the Accessor for this property.

public Type

Returns:

always non-null.
getIndividualType
()

Gets the type of the individual item.

public Type

Returns:

always non-null.
getRawType
()

Gets the "raw" type of the field.

public Collection<? extends RuntimeTypeInfo>
ref()

Redeclares org.glassfish.jaxb.core.v2.model.core.PropertyInfo.ref.

List of TypeInfos that this property references.

Inherited from org.glassfish.jaxb.core.v2.model.core.PropertyInfo:
displayNamegetAdaptergetExpectedMimeTypegetNamegetSchemaTypeidinlineBinaryDataisCollectionkindparent

Method Detail

elementOnlyContentback to summary
public boolean elementOnlyContent()

Returns true if this property has an element-only content. False otherwise.

getAccessorback to summary
public Accessor<BeanT, ValueT> getAccessor()

Gets the Accessor for this property.

Even for a multi-value property, this method returns an accessor to that property. IOW, the accessor works against the raw type.

This methods returns unoptimized accessor (because optimization accessors are often combined into bigger pieces, and optimization generally works better if you can look at a bigger piece, as opposed to individually optimize a smaller components)

Returns:Accessor<BeanT, ValueT>

never null.

See Also
Accessor#optimize(JAXBContextImpl)
getIndividualTypeback to summary
public Type getIndividualType()

Gets the type of the individual item. The individual type is the signature of the property used to store individual values. For a non-collection field, this is the same as getRawType(). For acollection property, this is the type used to store individual value. So if getRawType() is Collection<Integer>, this method will return Integer.

Returns:Type

always non-null.

getRawTypeback to summary
public Type getRawType()

Gets the "raw" type of the field. The raw type is the actual signature of the property. For example, if the field is the primitive int, this will be the primitive int. If the field is Object, this will be Object. If the property is the collection and typed as Collection<Integer>, this method returns Collection<Integer>.

Returns:Type

always non-null.

refback to summary
public Collection<? extends RuntimeTypeInfo> ref()

Redeclares org.glassfish.jaxb.core.v2.model.core.PropertyInfo.ref.

Doc from org.glassfish.jaxb.core.v2.model.core.PropertyInfo.ref.

List of TypeInfos that this property references. This allows the caller to traverse the reference graph without getting into the details of each different property type.

Annotations
@Override