org.jfree.xml.generator.model

Class PropertyInfo

public class PropertyInfo extends TypeInfo

Information about a property.
Constructor Summary
PropertyInfo(String name, Class type)
Creates a new info object for a property.
Method Summary
PropertyTypegetPropertyType()
Returns the property type.
StringgetXmlHandler()
Returns the XML handler.
StringgetXmlName()
Returns the XML name.
booleanisPreserve()
Returns the preserve flag.
booleanisReadMethodAvailable()
Returns true if there is a read method available, and false otherwise.
booleanisWriteMethodAvailable()
Returns true if there is a write method available, and false otherwise.
voidsetPreserve(boolean preserve)
Sets the preserve flag.
voidsetPropertyType(PropertyType propertyType)
Sets the property type.
voidsetReadMethodAvailable(boolean readMethodAvailable)
Sets a flag indicating whether or not there is a read method for this property.
voidsetWriteMethodAvailable(boolean writeMethodAvailable)
Sets a flag indicating whether or not there is a write method for this property.
voidsetXmlHandler(String xmlHandler)
Sets the XML handler.
voidsetXmlName(String xmlName)
Sets the XML name.

Constructor Detail

PropertyInfo

public PropertyInfo(String name, Class type)
Creates a new info object for a property.

Parameters: name the property name. type the class.

Method Detail

getPropertyType

public PropertyType getPropertyType()
Returns the property type. This describes how the property is handled in XML.

Returns: the property type.

getXmlHandler

public String getXmlHandler()
Returns the XML handler.

Returns: the XML handler.

getXmlName

public String getXmlName()
Returns the XML name.

Returns: the XML name.

isPreserve

public boolean isPreserve()
Returns the preserve flag.

Returns: the preserve flag.

isReadMethodAvailable

public boolean isReadMethodAvailable()
Returns true if there is a read method available, and false otherwise.

Returns: a boolean.

isWriteMethodAvailable

public boolean isWriteMethodAvailable()
Returns true if there is a write method available, and false otherwise.

Returns: a boolean.

setPreserve

public void setPreserve(boolean preserve)
Sets the preserve flag.

Parameters: preserve the preserve flag.

setPropertyType

public void setPropertyType(PropertyType propertyType)
Sets the property type.

Parameters: propertyType the type (null not permitted).

setReadMethodAvailable

public void setReadMethodAvailable(boolean readMethodAvailable)
Sets a flag indicating whether or not there is a read method for this property.

Parameters: readMethodAvailable the new value of the flag.

setWriteMethodAvailable

public void setWriteMethodAvailable(boolean writeMethodAvailable)
Sets a flag indicating whether or not there is a write method for this property.

Parameters: writeMethodAvailable the new value of the flag.

setXmlHandler

public void setXmlHandler(String xmlHandler)
Sets the XML handler.

Parameters: xmlHandler the fully qualified class name for the attribute handler.

setXmlName

public void setXmlName(String xmlName)
Sets the XML name.

Parameters: xmlName the XML name.