|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.bind.api.TypeReference
public final class TypeReference
A reference to a JAXB-bound type.
Subject to change without notice.
| Field Summary | |
|---|---|
java.lang.annotation.Annotation[] |
annotations
The annotations associated with the reference of this type. |
javax.xml.namespace.QName |
tagName
The associated XML element name that the JAX-RPC uses with this type reference. |
java.lang.reflect.Type |
type
The Java type that's being referenced. |
| Constructor Summary | |
|---|---|
TypeReference(javax.xml.namespace.QName tagName,
java.lang.reflect.Type type,
java.lang.annotation.Annotation... annotations)
|
|
| Method Summary | ||
|---|---|---|
boolean |
equals(java.lang.Object o)
|
|
|
get(java.lang.Class<A> annotationType)
Finds the specified annotation from the array and returns it. |
|
int |
hashCode()
|
|
TypeReference |
toItemType()
Creates a TypeReference for the item type,
if this TypeReference represents a collection type. |
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final javax.xml.namespace.QName tagName
public final java.lang.reflect.Type type
public final java.lang.annotation.Annotation[] annotations
| Constructor Detail |
|---|
public TypeReference(javax.xml.namespace.QName tagName,
java.lang.reflect.Type type,
java.lang.annotation.Annotation... annotations)
| Method Detail |
|---|
public <A extends java.lang.annotation.Annotation> A get(java.lang.Class<A> annotationType)
public TypeReference toItemType()
TypeReference for the item type,
if this TypeReference represents a collection type.
Otherwise returns an identical type.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||