Package com.sun.xml.ws.spi.db
Class TypeInfo
- java.lang.Object
-
- com.sun.xml.ws.spi.db.TypeInfo
-
public final class TypeInfo extends Object
A reference to a JAXB-bound type.Subject to change without notice.
- Since:
- 2.0 EA1
- Author:
- Kohsuke Kawaguchi, shih-chang.chen@oracle.com
-
-
Field Summary
Fields Modifier and Type Field Description Annotation[]annotationsThe annotations associated with the reference of this type.QNametagNameThe associated XML element name that the JAX-RPC uses with this type reference.TypetypeThe Java type that's being referenced.
-
Constructor Summary
Constructors Constructor Description TypeInfo(QName tagName, Type type, Annotation... annotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A extends Annotation>
Aget(Class<A> annotationType)Finds the specified annotation from the array and returns it.TypegetGenericType()TypeInfogetItemType()TypeInfogetParentCollectionType()TypeInfogetWrapperType()booleanisGlobalElement()booleanisNillable()booleanisRepeatedElement()Map<String,Object>properties()voidsetGenericType(Type genericType)voidsetGlobalElement(boolean isGlobalElement)voidsetNillable(boolean nillable)voidsetParentCollectionType(TypeInfo parentCollectionType)TypeInfotoItemType()StringtoString()
-
-
-
Field Detail
-
tagName
public final QName tagName
The associated XML element name that the JAX-RPC uses with this type reference. Always non-null. Strings are interned.
-
type
public Type type
The Java type that's being referenced. Always non-null.
-
annotations
public final Annotation[] annotations
The annotations associated with the reference of this type. Always non-null.
-
-
Constructor Detail
-
TypeInfo
public TypeInfo(QName tagName, Type type, Annotation... annotations)
-
-
Method Detail
-
get
public <A extends Annotation> A get(Class<A> annotationType)
Finds the specified annotation from the array and returns it. Null if not found.
-
toItemType
public TypeInfo toItemType()
-
isGlobalElement
public boolean isGlobalElement()
-
setGlobalElement
public void setGlobalElement(boolean isGlobalElement)
-
getParentCollectionType
public TypeInfo getParentCollectionType()
-
setParentCollectionType
public void setParentCollectionType(TypeInfo parentCollectionType)
-
isRepeatedElement
public boolean isRepeatedElement()
-
getGenericType
public Type getGenericType()
-
setGenericType
public void setGenericType(Type genericType)
-
isNillable
public boolean isNillable()
-
setNillable
public void setNillable(boolean nillable)
-
getItemType
public TypeInfo getItemType()
-
getWrapperType
public TypeInfo getWrapperType()
-
-