|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.openharbor.beck.set.BitBucketSetter
A setter that does nothing, ignoring the information copied from XML. This is useful for XML data that need not be copied; for example xsi:schemaLocation. But it doesn't support OHXPath resolution.
Constructor Summary | |
BitBucketSetter()
|
Method Summary | |
java.lang.Object |
getValue(Unmarshaller child,
java.lang.Object[] getterParameters)
Traverse an existing relationship from parent to child. |
java.lang.Class |
getValueClass(JavaBeanUnmarshaller parent)
Find the expected class of a child object; for example, the declared class of a field or JavaBean property. |
java.lang.Object |
removeValue(Unmarshaller child,
java.lang.Object[] getterParameters)
|
java.lang.Object |
replaceValue(Unmarshaller child,
java.lang.Object[] getterParameters)
|
void |
setValue(Unmarshaller child,
java.lang.Object[] getterParameters)
Create a relationship from parent to child. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BitBucketSetter()
Method Detail |
public java.lang.Class getValueClass(JavaBeanUnmarshaller parent)
Setter
getValueClass
in interface Setter
parent
- describes the parent object, or null
if the parent is not yet known.
public void setValue(Unmarshaller child, java.lang.Object[] getterParameters)
Setter
setValue
in interface Setter
child
- describes the child object. child.getParent() describes the parent.getterParameters
- additional parameters to the setter method, such as LocaleTag.public java.lang.Object getValue(Unmarshaller child, java.lang.Object[] getterParameters)
Setter
Traverse an existing relationship from parent to child. Call child.setObject() and child.setObjectClass() to record the child's identity and type, and return a reference to the child.
This method is used to resolve XPaths. Given an object and an XPath, we create an Unmarshaller for every level of the XPath, use the mapper to retrieve the corresponding setters, then traverse the object model using this method.
getValue
in interface Setter
child
- Child unmarshaller, which represents the property we're interested in. The parent
(or the object whose property is to be read) can be accessed by child.getParent().getterParameters
- the parameters the getter takes. Typically, getters take no parameters,
and null
can be passed in. With mutli-lingual properties however,
LocaleTag
must be passed in to identify the language of interest,
public java.lang.Object removeValue(Unmarshaller child, java.lang.Object[] getterParameters)
removeValue
in interface Setter
public java.lang.Object replaceValue(Unmarshaller child, java.lang.Object[] getterParameters)
replaceValue
in interface Setter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |