Package org.simpleframework.xml.core
Class ClassType
java.lang.Object
org.simpleframework.xml.core.ClassType
- All Implemented Interfaces:
Type
The
ClassType
object is used to represent a type that
is neither a field or method. Such a type is used when an object
is to be used to populate a collection. In such a scenario there
is no method or field annotations associated with the object.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetAnnotation
(Class<T> type) This is used to acquire an annotation of the specified type.getType()
This is the class associated with this type.toString()
This is used to describe the type as it exists within the owning class.
-
Field Details
-
type
This is the type that is represented by this instance.
-
-
Constructor Details
-
ClassType
Constructor for theClassType
object. This will create a type used to represent a stand alone object, such as an object being inserted in to a Java collection.- Parameters:
type
- this is the class that this type represents
-
-
Method Details
-
getType
This is the class associated with this type. This is used by the serialization framework to determine how the XML is to be converted in to an object and vice versa. -
getAnnotation
This is used to acquire an annotation of the specified type. If no such annotation exists for the type then this will return null. Currently for classes this will always be null.- Specified by:
getAnnotation
in interfaceType
- Parameters:
type
- this is the annotation type be be acquired- Returns:
- currently this method will always return null
-
toString
This is used to describe the type as it exists within the owning class. This is used to provide error messages that can be used to debug issues that occur when processing.
-