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

public Interface RuntimeElementPropertyInfo

extends ElementPropertyInfo<Type, Class<T>>, RuntimePropertyInfo
Known Direct Implementers
org.glassfish.jaxb.runtime.v2.model.impl.RuntimeElementInfoImpl.RuntimePropertyImpl, org.glassfish.jaxb.runtime.v2.model.impl.RuntimeElementPropertyInfoImpl
Imports
org.glassfish.jaxb.core.v2.model.core.ElementPropertyInfo, java.lang.reflect.Type, java.util.Collection, .List

Author
Kohsuke Kawaguchi

Method Summary

Modifier and TypeMethod and Description
public List<? extends RuntimeTypeRef>
getTypes()

Redeclares org.glassfish.jaxb.core.v2.model.core.ElementPropertyInfo.getTypes.

Returns the information about the types allowed in this property.

public Collection<? extends RuntimeTypeInfo>
Inherited from org.glassfish.jaxb.core.v2.model.core.ElementPropertyInfo:
getAdaptergetXmlNameisCollectionNillableisCollectionRequiredisRequiredisValueList
Inherited from org.glassfish.jaxb.runtime.v2.model.runtime.RuntimePropertyInfo:
elementOnlyContentgetAccessorgetIndividualTypegetRawType

Method Detail

getTypesback to summary
public List<? extends RuntimeTypeRef> getTypes()

Redeclares org.glassfish.jaxb.core.v2.model.core.ElementPropertyInfo.getTypes.

Doc from org.glassfish.jaxb.core.v2.model.core.ElementPropertyInfo.getTypes.

Returns the information about the types allowed in this property.

In a simple case like the following, an element property only has one TypeRef that points to String and tag name "foo".

@XmlElement
String abc;

However, in a general case an element property can be heterogeneous, meaning you can put different types in it, each with a different tag name (and a few other settings.)


// list can contain String or Integer.
@XmlElements({
  @XmlElement(name="a",type=String.class),
  @XmlElement(name="b",type=Integer.class),
})
List<Object> abc;

In this case this method returns a list of two TypeRefs.

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

Redeclares org.glassfish.jaxb.core.v2.model.core.PropertyInfo.ref, org.glassfish.jaxb.runtime.v2.model.runtime.RuntimePropertyInfo.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