public final class PropertyInfo
extends java.lang.Object
implements java.lang.Comparable
Object2Dom
to
hold metadata about a persistent property. Classes outside of the
oracle.ide.marshal.xml
package should create new
instances of this class using the PropertyInfoFactory
.Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
The implementation of this method allows a collection of
PropertyInfo objects to be sorted lexicographically
by the XML name. |
boolean |
equals(java.lang.Object o) |
java.lang.Class |
getPropertyClass()
Returns the type of the property as a
Class object. |
java.lang.Object |
getPropertyValue(java.lang.Object owningObject)
Invokes the getter method using
owningObject as the
object on which the getter is called. |
java.lang.String |
getXMLName()
Returns the XML name of the property.
|
boolean |
isAttribute()
Returns
true if this property is to be saved as an
attribute rather than a separate XML element. |
boolean |
isOmittedWhenNull()
Returns
true if this property should be omitted from
the XML when the value is null. |
void |
setPropertyValue(java.lang.Object owningObject,
java.lang.Object value)
Invokes the setter method using
owningObject as the
object on which the setter is called, and value as
the value passed to the setter. |
public java.lang.String getXMLName()
public java.lang.Class getPropertyClass()
Class
object.public java.lang.Object getPropertyValue(java.lang.Object owningObject)
owningObject
as the
object on which the getter is called. This method will return
null
if any exception occurs while invoking the
getter method.public void setPropertyValue(java.lang.Object owningObject, java.lang.Object value) throws java.lang.Exception
owningObject
as the
object on which the setter is called, and value
as
the value passed to the setter. This method will return without
doing anything if any exception occurs while invoking the setter
method.java.lang.Exception
public boolean isAttribute()
true
if this property is to be saved as an
attribute rather than a separate XML element.public boolean isOmittedWhenNull()
true
if this property should be omitted from
the XML when the value is null.public int compareTo(java.lang.Object o)
PropertyInfo
objects to be sorted lexicographically
by the XML name.compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object