public class TypeInfo extends java.lang.Object
Constructor and Description |
---|
TypeInfo(java.lang.String name,
java.lang.Class type)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Tests this object for equality with another object.
|
Comments |
getComments()
Returns the comments for this type info.
|
java.lang.String |
getDescription()
Returns the type description.
|
java.lang.String |
getName()
Returns the type name.
|
java.lang.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(java.lang.String description)
Sets the type description.
|
void |
setNullable(boolean nullable)
Sets the nullable flag.
|
public TypeInfo(java.lang.String name, java.lang.Class type)
name
- the type name (null
not permitted).type
- the class.public java.lang.Class getType()
public boolean isNullable()
public void setNullable(boolean nullable)
nullable
- the flag.public boolean isConstrained()
true
if the type is constrained, and false
otherwise.public void setConstrained(boolean constrained)
constrained
- the flag.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description.public java.lang.String getName()
public Comments getComments()
public void setComments(Comments comments)
comments
- the comments.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the other object.public int hashCode()
hashCode
in class java.lang.Object