com.sun.xml.ws.spi.db
Class TypeInfo

java.lang.Object
  extended by 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

Field Summary
 Annotation[] annotations
          The annotations associated with the reference of this type.
 QName tagName
          The associated XML element name that the JAX-RPC uses with this type reference.
 Type type
          The Java type that's being referenced.
 
Constructor Summary
TypeInfo(QName tagName, Type type, Annotation... annotations)
           
 
Method Summary
<A extends Annotation>
A
get(Class<A> annotationType)
          Finds the specified annotation from the array and returns it.
 Type getGenericType()
           
 TypeInfo getItemType()
           
 TypeInfo getParentCollectionType()
           
 boolean isGlobalElement()
           
 boolean isNillable()
           
 boolean isRepeatedElement()
           
 Map<String,Object> properties()
           
 void setGenericType(Type genericType)
           
 void setGlobalElement(boolean isGlobalElement)
           
 void setNillable(boolean nillable)
           
 void setParentCollectionType(TypeInfo parentCollectionType)
           
 TypeInfo toItemType()
          Creates a TypeInfo for the item type, if this TypeInfo represents a collection type.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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()
Creates a TypeInfo for the item type, if this TypeInfo represents a collection type. Otherwise returns an identical type.


properties

public Map<String,Object> properties()

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)

toString

public String toString()
Overrides:
toString in class Object

getItemType

public TypeInfo getItemType()


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.