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.
-
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.booleanReturns the preserve flag.booleanReturnstrueif there is a read method available, andfalseotherwise.booleanReturnstrueif there is a write method available, andfalseotherwise.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.Methods inherited from class TypeInfo
equals, getComments, getDescription, getName, getType, hashCode, isConstrained, isNullable, setComments, setConstrained, setDescription, setNullable
-
Constructor Details
-
PropertyInfo
Creates a new info object for a property.- Parameters:
name- the property name.type- the class.
-
-
Method Details
-
isPreserve
-
setPreserve
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 (nullnot permitted).
-
getXmlHandler
-
setXmlHandler
Sets the XML handler.- Parameters:
xmlHandler- the fully qualified class name for the attribute handler.
-
getXmlName
-
setXmlName
-
isReadMethodAvailable
Returnstrueif there is a read method available, andfalseotherwise.- Returns:
- a boolean.
-
setReadMethodAvailable
Sets a flag indicating whether or not there is a read method for this property.- Parameters:
readMethodAvailable- the new value of the flag.
-
isWriteMethodAvailable
Returnstrueif there is a write method available, andfalseotherwise.- Returns:
- a boolean.
-
setWriteMethodAvailable
Sets a flag indicating whether or not there is a write method for this property.- Parameters:
writeMethodAvailable- the new value of the flag.
-