org.jfree.xml.generator.model

Class TypeInfo

Known Direct Subclasses:
PropertyInfo

public class TypeInfo
extends java.lang.Object

Retains information about a type.

Constructor Summary

TypeInfo(String name, Class type)
Creates a new instance.

Method Summary

boolean
equals(Object o)
Tests this object for equality with another object.
Comments
getComments()
Returns the comments for this type info.
String
getDescription()
Returns the type description.
String
getName()
Returns the type name.
Class
getType()
Returns the class.
int
hashCode()
Returns a hash code for this object.
boolean
isConstrained()
Returns true if the type is constrained, and false otherwise.
boolean
isNullable()
Returns the nullable status.
void
setComments(Comments comments)
Sets the comments for this type info.
void
setConstrained(boolean constrained)
Sets the flag that indicates whether or not the type is constrained.
void
setDescription(String description)
Sets the type description.
void
setNullable(boolean nullable)
Sets the nullable flag.

Constructor Details

TypeInfo

public TypeInfo(String name,
                Class type)
Creates a new instance.
Parameters:
name - the type name (null not permitted).
type - the class.

Method Details

equals

public boolean equals(Object o)
Tests this object for equality with another object.
Parameters:
o - the other object.
Returns:
A boolean.

getComments

public Comments getComments()
Returns the comments for this type info.
Returns:
The comments.

getDescription

public String getDescription()
Returns the type description.
Returns:
The type description.

getName

public String getName()
Returns the type name.
Returns:
The type name.

getType

public Class getType()
Returns the class.
Returns:
The class.

hashCode

public int hashCode()
Returns a hash code for this object.
Returns:
A hash code.

isConstrained

public boolean isConstrained()
Returns true if the type is constrained, and false otherwise.
Returns:
A boolean.

isNullable

public boolean isNullable()
Returns the nullable status.
Returns:
A boolean.

setComments

public void setComments(Comments comments)
Sets the comments for this type info.
Parameters:
comments - the comments.

setConstrained

public void setConstrained(boolean constrained)
Sets the flag that indicates whether or not the type is constrained.
Parameters:
constrained - the flag.

setDescription

public void setDescription(String description)
Sets the type description.
Parameters:
description - the description.

setNullable

public void setNullable(boolean nullable)
Sets the nullable flag.
Parameters:
nullable - the flag.