Top Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.model.impl

pack-priv Class RuntimeReferencePropertyInfoImpl

extends ReferencePropertyInfoImpl<Type, Class<T>, Field, Method>
implements RuntimeReferencePropertyInfo
Class Inheritance
All Implemented Interfaces
org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeReferencePropertyInfo, org.glassfish.jaxb.runtime.v2.model.runtime.RuntimePropertyInfo, org.glassfish.jaxb.core.v2.model.core.PropertyInfo, org.glassfish.jaxb.core.v2.model.annotation.AnnotationSource, org.glassfish.jaxb.core.v2.model.core.ReferencePropertyInfo
Imports
org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeElement, .RuntimeReferencePropertyInfo, org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor, java.lang.reflect.Field, .Method, .Type, java.util.Set

Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final Accessor<BeanT, ValueT>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
elementOnlyContent()

Implements org.glassfish.jaxb.runtime.v2.model.runtime.RuntimePropertyInfo.elementOnlyContent.

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

public Accessor<BeanT, ValueT>
public Set<? extends RuntimeElement>
public Set<? extends RuntimeElement>
Inherited from org.glassfish.jaxb.runtime.v2.model.impl.ReferencePropertyInfoImpl:
addTypegetDOMHandlergetWildcardisMixedisRequiredkindlink

Field Detail

accback to summary
private final Accessor<BeanT, ValueT> acc

Constructor Detail

RuntimeReferencePropertyInfoImplback to summary
public RuntimeReferencePropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type, Class<T>, Field, Method> seed)

Method Detail

elementOnlyContentback to summary
public boolean elementOnlyContent()

Implements org.glassfish.jaxb.runtime.v2.model.runtime.RuntimePropertyInfo.elementOnlyContent.

Doc from org.glassfish.jaxb.runtime.v2.model.runtime.RuntimePropertyInfo.elementOnlyContent.

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

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

Implements org.glassfish.jaxb.runtime.v2.model.runtime.RuntimePropertyInfo.getAccessor.

Doc from org.glassfish.jaxb.runtime.v2.model.runtime.RuntimePropertyInfo.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)

Annotations
@Override
getElementsback to summary
public Set<? extends RuntimeElement> getElements()

Overrides org.glassfish.jaxb.runtime.v2.model.impl.ReferencePropertyInfoImpl.getElements.

Implements org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeReferencePropertyInfo.getElements, org.glassfish.jaxb.core.v2.model.core.ReferencePropertyInfo.getElements.

Doc from org.glassfish.jaxb.core.v2.model.core.ReferencePropertyInfo.getElements.

Returns the information about the possible elements in this property.

As of 2004/08/17, the spec only allows you to use different element names when a property is a collection, but I think there's really no reason to limit it there --- if the user wants to use a different tag name for different objects, I don't see why this can be limited to collections.

So this is a generalization of the spec. We always allow a property to have multiple types and use different tag names for it, depending on the actual type.

In most of the cases, this collection only contains 1 item. So the runtime system is encouraged to provide a faster code-path that is optimized toward such cases.

Annotations
@Override
refback to summary
public Set<? extends RuntimeElement> ref()

Overrides org.glassfish.jaxb.runtime.v2.model.impl.ReferencePropertyInfoImpl.ref.

Implements org.glassfish.jaxb.core.v2.model.core.ReferencePropertyInfo.ref, org.glassfish.jaxb.runtime.v2.model.runtime.RuntimePropertyInfo.ref, org.glassfish.jaxb.core.v2.model.core.PropertyInfo.ref.

Doc from org.glassfish.jaxb.core.v2.model.core.ReferencePropertyInfo.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.. If this has a wildcard in it, then the returned list will contain WildcardTypeInfo.

Annotations
@Override