Apache CXF API

org.apache.cxf.aegis.type
Class TypeClassInfo

java.lang.Object
  extended by org.apache.cxf.aegis.type.TypeClassInfo

public class TypeClassInfo
extends Object

Object to carry information for a type, such as that from an XML mapping file. Note that this class has a misleading name. It is used both for type information that corresponds to a type, and also for parameters of methods and elements of beans. When describing a top-level type, minOccurs and maxOccurs are not meaningful. Nillable is only used for parameters. It might be that the code could be deconfused by using the nillable property in here for the non-parameters cases that look at minOccurs and maxOccurs. Historically, the code for dealing with nillable was very confused, and so the support here is a bit ginger, until someone figures out how to sort things out. Thus the three-valued support instead of a plain boolean.


Constructor Summary
TypeClassInfo()
           
 
Method Summary
 Object[] getAnnotations()
           
 String getDescription()
           
 Object getGenericType()
           
 Object getKeyType()
           
 QName getMappedName()
           
 long getMaxOccurs()
           
 long getMinOccurs()
           
 Boolean getNillable()
           
 Class getType()
           
 Class getTypeClass()
           
 QName getTypeName()
           
 Object getValueType()
           
 boolean isFlat()
           
 boolean nonDefaultAttributes()
           
 void setAnnotations(Object[] annotations)
           
 void setDescription(String description)
           
 void setFlat(boolean flat)
           
 void setGenericType(Object genericType)
           
 void setKeyType(Object keyType)
           
 void setMappedName(QName mappedName)
           
 void setMaxOccurs(long maxOccurs)
           
 void setMinOccurs(long minOccurs)
           
 void setNillable(Boolean nillable)
           
 void setType(Class type)
           
 void setTypeClass(Class typeClass)
           
 void setTypeName(QName name)
           
 void setValueType(Object valueType)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeClassInfo

public TypeClassInfo()
Method Detail

nonDefaultAttributes

public boolean nonDefaultAttributes()

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getAnnotations

public Object[] getAnnotations()

setAnnotations

public void setAnnotations(Object[] annotations)

getGenericType

public Object getGenericType()

setGenericType

public void setGenericType(Object genericType)

getKeyType

public Object getKeyType()

setKeyType

public void setKeyType(Object keyType)

getTypeClass

public Class getTypeClass()

setTypeClass

public void setTypeClass(Class typeClass)

getTypeName

public QName getTypeName()

setTypeName

public void setTypeName(QName name)

getType

public Class getType()

setType

public void setType(Class type)

getMappedName

public QName getMappedName()

setMappedName

public void setMappedName(QName mappedName)

getMaxOccurs

public long getMaxOccurs()

setMaxOccurs

public void setMaxOccurs(long maxOccurs)

getMinOccurs

public long getMinOccurs()

setMinOccurs

public void setMinOccurs(long minOccurs)

isFlat

public boolean isFlat()

setFlat

public void setFlat(boolean flat)

toString

public String toString()
Overrides:
toString in class Object

getValueType

public Object getValueType()

setValueType

public void setValueType(Object valueType)

getNillable

public Boolean getNillable()

setNillable

public void setNillable(Boolean nillable)

Apache CXF API

Apache CXF