|
JAXB v0.21 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.xml.bind.Validator.Patcher
A patcher represents an unresolved identifier reference.
When unmarshalling a content tree, patchers are used to install
references to element objects that may have yet to be unmarshalled. A
patcher has a single method, patch
,
which is guaranteed to be invoked some time after the reference is
resolved but before the unmarshalling process is complete. When the
method is invoked, the target element of the reference is passed as its
single argument.
In typical use an anonymous inner subclass of this abstract class is
created and passed to the Validator.reference(String,
Validator.Patcher)
method:
vd.reference(id, new Patcher() { public void patch(IdentifiableElement target) { link = (Type)target; }});where vd is the validator being used, id is the identifier being referenced, and Type is the expected type of the referent.
This class is intended to be instantiated only by schema-derived unmarshalling code.
Constructor Summary | |
Validator.Patcher()
|
Method Summary | |
abstract void |
patch(IdentifiableElement target)
Patch method, guaranteed to be invoked some time after the reference represented by this patcher is resolved. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Validator.Patcher()
Method Detail |
public abstract void patch(IdentifiableElement target)
target
- The target of the reference
|
JAXB v0.21 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2001 by Sun Microsystems, Inc., 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.