Package com.sun.xml.bind.api
Class TypeReference
java.lang.Object
com.sun.xml.bind.api.TypeReference
A reference to a JAXB-bound type.
Subject to change without notice.
- Since:
- 2.0 EA1
- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Annotation[]
The annotations associated with the reference of this type.final QName
The associated XML element name that the JAX-RPC uses with this type reference.final Type
The Java type that's being referenced. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
<A extends Annotation>
AFinds the specified annotation from the array and returns it.int
hashCode()
Creates aTypeReference
for the item type, if thisTypeReference
represents a collection type.
-
Field Details
-
tagName
The associated XML element name that the JAX-RPC uses with this type reference. Always non-null. Strings are interned. -
type
The Java type that's being referenced. Always non-null. -
annotations
The annotations associated with the reference of this type. Always non-null.
-
-
Constructor Details
-
TypeReference
-
-
Method Details
-
get
Finds the specified annotation from the array and returns it. Null if not found. -
toItemType
Creates aTypeReference
for the item type, if thisTypeReference
represents a collection type. Otherwise returns an identical type. -
equals
-
hashCode
public int hashCode()
-