JAXB
v0.21

javax.xml.bind
Class Validator.Patcher

java.lang.Object
  |
  +--javax.xml.bind.Validator.Patcher
Enclosing class:
Validator

public abstract static class Validator.Patcher
extends Object

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

Validator.Patcher

public Validator.Patcher()
Method Detail

patch

public abstract void patch(IdentifiableElement target)
Patch method, guaranteed to be invoked some time after the reference represented by this patcher is resolved.
Parameters:
target - The target of the reference

JAXB
v0.21


Comments to: jaxb-comments@java.sun.com
More information at: http://java.sun.com/xml/jaxb

Copyright © 2001 by Sun Microsystems, Inc., 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.