Module com.sun.xml.bind.osgi
Interface RuntimePropertyInfo
-
- All Superinterfaces:
AnnotationSource
,PropertyInfo<Type,Class>
- All Known Subinterfaces:
RuntimeAttributePropertyInfo
,RuntimeElementPropertyInfo
,RuntimeMapPropertyInfo
,RuntimeReferencePropertyInfo
,RuntimeValuePropertyInfo
public interface RuntimePropertyInfo extends PropertyInfo<Type,Class>
PropertyInfo
that exposes more information.- Author:
- Kohsuke Kawaguchi ([email protected])
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
elementOnlyContent()
Returns true if this property has an element-only content.Accessor
getAccessor()
Gets theAccessor
for this property.Type
getIndividualType()
Gets the type of the individual item.Type
getRawType()
Gets the "raw" type of the field.Collection<? extends RuntimeTypeInfo>
ref()
List ofTypeInfo
s that this property references.-
Methods inherited from interface org.glassfish.jaxb.core.v2.model.annotation.AnnotationSource
hasAnnotation, readAnnotation
-
Methods inherited from interface org.glassfish.jaxb.core.v2.model.core.PropertyInfo
displayName, getAdapter, getExpectedMimeType, getName, getSchemaType, id, inlineBinaryData, isCollection, kind, parent
-
-
-
-
Method Detail
-
ref
Collection<? extends RuntimeTypeInfo> ref()
Description copied from interface:PropertyInfo
List ofTypeInfo
s that this property references. This allows the caller to traverse the reference graph without getting into the details of each different property type.- Specified by:
ref
in interfacePropertyInfo<Type,Class>
- Returns:
- non-null read-only collection.
-
getAccessor
Accessor getAccessor()
Gets theAccessor
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.optimize(JAXBContextImpl)
-
elementOnlyContent
boolean elementOnlyContent()
Returns true if this property has an element-only content. False otherwise.
-
getRawType
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 asCollection<Integer>
, this method returnsCollection<Integer>
.- Returns:
- always non-null.
-
getIndividualType
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 asgetRawType()
. For acollection property, this is the type used to store individual value. So ifgetRawType()
isCollection<Integer>
, this method will returnInteger
.- Returns:
- always non-null.
-
-