org.jfree.xml.generator.model
Class TypeInfo
java.lang.Object
org.jfree.xml.generator.model.TypeInfo
Retains information about a type.
TypeInfo(String name, Class type) - Creates a new instance.
|
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.
|
TypeInfo
public TypeInfo(String name,
Class type)
Creates a new instance.
name
- the type name (null
not permitted).type
- the class.
equals
public boolean equals(Object o)
Tests this object for equality with another object.
getDescription
public String getDescription()
Returns the type description.
getName
public String getName()
Returns the type name.
getType
public Class getType()
Returns the class.
hashCode
public int hashCode()
Returns a hash code for this object.
isConstrained
public boolean isConstrained()
Returns true
if the type is constrained, and false
otherwise.
isNullable
public boolean isNullable()
Returns the nullable status.
setConstrained
public void setConstrained(boolean constrained)
Sets the flag that indicates whether or not the type is constrained.
setDescription
public void setDescription(String description)
Sets the type description.
description
- the description.
setNullable
public void setNullable(boolean nullable)
Sets the nullable flag.