Package org.jfree.xml.generator.model
Class TypeInfo
java.lang.Object
org.jfree.xml.generator.model.TypeInfo
- Direct Known Subclasses:
PropertyInfo
Retains information about a type.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests this object for equality with another object.Returns the comments for this type info.Returns the type description.getName()Returns the type name.getType()Returns the class.inthashCode()Returns a hash code for this object.booleanReturnstrueif the type is constrained, andfalseotherwise.booleanReturns 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.
-
Field Details
-
name
The type name. -
type
The class. -
nullable
private boolean nullableA flag indicating whether or not the type can take a null value. -
constrained
private boolean constrained??. -
description
A description. -
comments
Comments.
-
-
Constructor Details
-
TypeInfo
Creates a new instance.- Parameters:
name- the type name (nullnot permitted).type- the class.
-
-
Method Details
-
getType
Returns the class.- Returns:
- The class.
-
isNullable
public boolean isNullable()Returns the nullable status.- Returns:
- A boolean.
-
setNullable
public void setNullable(boolean nullable) Sets the nullable flag.- Parameters:
nullable- the flag.
-
isConstrained
public boolean isConstrained()Returnstrueif the type is constrained, andfalseotherwise.- Returns:
- A boolean.
-
setConstrained
public void setConstrained(boolean constrained) Sets the flag that indicates whether or not the type is constrained.- Parameters:
constrained- the flag.
-
getDescription
Returns the type description.- Returns:
- The type description.
-
setDescription
Sets the type description.- Parameters:
description- the description.
-
getName
Returns the type name.- Returns:
- The type name.
-
getComments
Returns the comments for this type info.- Returns:
- The comments.
-
setComments
Sets the comments for this type info.- Parameters:
comments- the comments.
-
equals
Tests this object for equality with another object. -
hashCode
public int hashCode()Returns a hash code for this object.
-