org.jfree.xml.generator.model

Class TypeInfo

public class TypeInfo extends Object

Retains information about a type.
Constructor Summary
TypeInfo(String name, Class type)
Creates a new instance.
Method Summary
booleanequals(Object o)
Tests this object for equality with another object.
CommentsgetComments()
Returns the comments for this type info.
StringgetDescription()
Returns the type description.
StringgetName()
Returns the type name.
ClassgetType()
Returns the class.
inthashCode()
Returns a hash code for this object.
booleanisConstrained()
Returns true if the type is constrained, and false otherwise.
booleanisNullable()
Returns the nullable status.
voidsetComments(Comments comments)
Sets the comments for this type info.
voidsetConstrained(boolean constrained)
Sets the flag that indicates whether or not the type is constrained.
voidsetDescription(String description)
Sets the type description.
voidsetNullable(boolean nullable)
Sets the nullable flag.

Constructor Detail

TypeInfo

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

Parameters: name the type name (null not permitted). type the class.

Method Detail

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.