com.sun.xml.bind.v2.model.runtime

Interface RuntimePropertyInfo

public interface RuntimePropertyInfo extends PropertyInfo<Type,Class>

PropertyInfo that exposes more information.
Method Summary
booleanelementOnlyContent()
Returns true if this property has an element-only content.
AccessorgetAccessor()
Gets the Accessor for this property.
TypegetIndividualType()
Gets the type of the individual item.
TypegetRawType()
Gets the "raw" type of the field.
Collection<? extends RuntimeTypeInfo>ref()

Method Detail

elementOnlyContent

public boolean elementOnlyContent()
Returns true if this property has an element-only content. False otherwise.

getAccessor

public Accessor 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: never null.

See Also: Accessor

getIndividualType

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 {@code Collection}, this method will return Integer.

Returns: always non-null.

getRawType

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 {@code Collection}, this method returns {@code Collection}.

Returns: always non-null.

ref

public Collection<? extends RuntimeTypeInfo> ref()
{@inheritDoc }