name.pehl.piriti.rebind.type
Class AbstractTypeProcessor

java.lang.Object
  extended by name.pehl.piriti.rebind.type.AbstractTypeProcessor
All Implemented Interfaces:
TypeProcessor
Direct Known Subclasses:
JaxbTypeProcessor, PojoTypeProcessor, RwTypeProcessor

public abstract class AbstractTypeProcessor
extends Object
implements TypeProcessor

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

Constructor Summary
AbstractTypeProcessor()
           
 
Method Summary
protected  void addProperty(TypeContext typeContext, PropertySource propertySource)
           
protected  void addReference(TypeContext typeContext, PropertySource propertySource)
           
protected abstract  void doProcess(TypeContext typeContext, Set<? extends com.google.gwt.core.ext.typeinfo.JClassType> skipTypes)
           
 TypeProcessor getNext()
           
 boolean hasNext()
           
 void process(TypeContext typeContext)
          Processes the context and adds information about properties, references or an id.
protected  void setId(TypeContext typeContext, PropertySource propertySource)
           
 void setNext(TypeProcessor processor)
          Sets the next processor
protected  boolean skipType(com.google.gwt.core.ext.typeinfo.JClassType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTypeProcessor

public AbstractTypeProcessor()
Method Detail

getNext

public TypeProcessor getNext()
Specified by:
getNext in interface TypeProcessor

setNext

public void setNext(TypeProcessor processor)
Description copied from interface: TypeProcessor
Sets the next processor

Specified by:
setNext in interface TypeProcessor

hasNext

public boolean hasNext()
Specified by:
hasNext in interface TypeProcessor
Returns:
true if there's a next processor, false otherwise.

process

public final void process(TypeContext typeContext)
                   throws com.google.gwt.core.ext.UnableToCompleteException
Description copied from interface: TypeProcessor
Processes the context and adds information about properties, references or an id.

Specified by:
process in interface TypeProcessor
Parameters:
typeContext -
Throws:
com.google.gwt.core.ext.UnableToCompleteException
See Also:
TypeProcessor.process(name.pehl.piriti.rebind.type.TypeContext)

doProcess

protected abstract void doProcess(TypeContext typeContext,
                                  Set<? extends com.google.gwt.core.ext.typeinfo.JClassType> skipTypes)
                           throws com.google.gwt.core.ext.UnableToCompleteException
Throws:
com.google.gwt.core.ext.UnableToCompleteException

skipType

protected boolean skipType(com.google.gwt.core.ext.typeinfo.JClassType type)

addProperty

protected void addProperty(TypeContext typeContext,
                           PropertySource propertySource)

setId

protected void setId(TypeContext typeContext,
                     PropertySource propertySource)

addReference

protected void addReference(TypeContext typeContext,
                            PropertySource propertySource)


Copyright © 2012 Harald Pehl. All Rights Reserved.