public class PropertyInfo extends TypeInfo
Constructor and Description |
---|
PropertyInfo(java.lang.String name,
java.lang.Class type)
Creates a new info object for a property.
|
Modifier and Type | Method and Description |
---|---|
PropertyType |
getPropertyType()
Returns the property type.
|
java.lang.String |
getXmlHandler()
Returns the XML handler.
|
java.lang.String |
getXmlName()
Returns the XML name.
|
boolean |
isPreserve()
Returns the preserve flag.
|
boolean |
isReadMethodAvailable()
Returns
true if there is a read method available, and false
otherwise. |
boolean |
isWriteMethodAvailable()
Returns
true if there is a write method available, and false
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(java.lang.String xmlHandler)
Sets the XML handler.
|
void |
setXmlName(java.lang.String xmlName)
Sets the XML name.
|
equals, getComments, getDescription, getName, getType, hashCode, isConstrained, isNullable, setComments, setConstrained, setDescription, setNullable
public PropertyInfo(java.lang.String name, java.lang.Class type)
name
- the property name.type
- the class.public boolean isPreserve()
public void setPreserve(boolean preserve)
preserve
- the preserve flag.public PropertyType getPropertyType()
public void setPropertyType(PropertyType propertyType)
propertyType
- the type (null
not permitted).public java.lang.String getXmlHandler()
public void setXmlHandler(java.lang.String xmlHandler)
xmlHandler
- the fully qualified class name for the attribute handler.public java.lang.String getXmlName()
public void setXmlName(java.lang.String xmlName)
xmlName
- the XML name.public boolean isReadMethodAvailable()
true
if there is a read method available, and false
otherwise.public void setReadMethodAvailable(boolean readMethodAvailable)
readMethodAvailable
- the new value of the flag.public boolean isWriteMethodAvailable()
true
if there is a write method available, and false
otherwise.public void setWriteMethodAvailable(boolean writeMethodAvailable)
writeMethodAvailable
- the new value of the flag.