Package org.jfree.xml.generator.model
Class PropertyInfo
java.lang.Object
org.jfree.xml.generator.model.TypeInfo
org.jfree.xml.generator.model.PropertyInfo
- Direct Known Subclasses:
IgnoredPropertyInfo
,IndexedPropertyInfo
Information about a property.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Preserve?private PropertyType
The property type - indicates how the property is described in XML.private boolean
Is there a read method available?private boolean
Is there a write method available?private String
The XML handler.private String
The XML name. -
Constructor Summary
ConstructorsConstructorDescriptionPropertyInfo
(String name, Class type) Creates a new info object for a property. -
Method Summary
Modifier and TypeMethodDescriptionReturns the property type.Returns the XML handler.Returns the XML name.boolean
Returns the preserve flag.boolean
Returnstrue
if there is a read method available, andfalse
otherwise.boolean
Returnstrue
if there is a write method available, andfalse
otherwise.void
setPreserve
(boolean preserve) Sets the preserve flag.void
setPropertyType
(PropertyType propertyType) Sets the property type.void
setReadMethodAvailable
(boolean readMethodAvailable) Sets a flag indicating whether or not there is a read method for this property.void
setWriteMethodAvailable
(boolean writeMethodAvailable) Sets a flag indicating whether or not there is a write method for this property.void
setXmlHandler
(String xmlHandler) Sets the XML handler.void
setXmlName
(String xmlName) Sets the XML name.Methods inherited from class org.jfree.xml.generator.model.TypeInfo
equals, getComments, getDescription, getName, getType, hashCode, isConstrained, isNullable, setComments, setConstrained, setDescription, setNullable
-
Field Details
-
preserve
private boolean preservePreserve? -
readMethodAvailable
private boolean readMethodAvailableIs there a read method available? -
writeMethodAvailable
private boolean writeMethodAvailableIs there a write method available? -
propertyType
The property type - indicates how the property is described in XML. -
xmlName
The XML name. -
xmlHandler
The XML handler.
-
-
Constructor Details
-
PropertyInfo
Creates a new info object for a property.- Parameters:
name
- the property name.type
- the class.
-
-
Method Details
-
isPreserve
public boolean isPreserve()Returns the preserve flag.- Returns:
- the preserve flag.
-
setPreserve
public void setPreserve(boolean preserve) Sets the preserve flag.- Parameters:
preserve
- the preserve flag.
-
getPropertyType
Returns the property type. This describes how the property is handled in XML.- Returns:
- the property type.
-
setPropertyType
Sets the property type.- Parameters:
propertyType
- the type (null
not permitted).
-
getXmlHandler
Returns the XML handler.- Returns:
- the XML handler.
-
setXmlHandler
Sets the XML handler.- Parameters:
xmlHandler
- the fully qualified class name for the attribute handler.
-
getXmlName
Returns the XML name.- Returns:
- the XML name.
-
setXmlName
Sets the XML name.- Parameters:
xmlName
- the XML name.
-
isReadMethodAvailable
public boolean isReadMethodAvailable()Returnstrue
if there is a read method available, andfalse
otherwise.- Returns:
- a boolean.
-
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.
-
isWriteMethodAvailable
public boolean isWriteMethodAvailable()Returnstrue
if there is a write method available, andfalse
otherwise.- Returns:
- a boolean.
-
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.
-