name.pehl.piriti.rebind.type
Interface TypeProcessor

All Known Implementing Classes:
AbstractTypeProcessor, JaxbTypeProcessor, PojoTypeProcessor, RwTypeProcessor

public interface TypeProcessor

Interface for processing and populating a TypeContext. Applies the chain-of-responsibility pattern. After the last processor has finished, all properties must be resolved (references and an id are optional).

Implementations can choose which information they add to the TypeContext and hand over to the next processor to add further info.

Version:
$LastChangedRevision:$
Author:
$LastChangedBy:$

Method Summary
 TypeProcessor getNext()
           
 boolean hasNext()
           
 void process(TypeContext context)
          Processes the context and adds information about properties, references or an id.
 void setNext(TypeProcessor processor)
          Sets the next processor
 

Method Detail

process

void process(TypeContext context)
             throws com.google.gwt.core.ext.UnableToCompleteException
Processes the context and adds information about properties, references or an id.

Parameters:
context -
Throws:
com.google.gwt.core.ext.UnableToCompleteException

getNext

TypeProcessor getNext()

setNext

void setNext(TypeProcessor processor)
Sets the next processor

Parameters:
processor -

hasNext

boolean hasNext()
Returns:
true if there's a next processor, false otherwise.


Copyright © 2012 Harald Pehl. All Rights Reserved.