Download Sources

com.liguorien.flex.generator.writers.as3
Class BuilderMethodWriter

java.lang.Object
  extended by com.liguorien.flex.generator.writers.as3.BuilderMethodWriter
All Implemented Interfaces:
MethodWriter<FlexModelBuilderHandler>
Direct Known Subclasses:
ContextMethodWriter, GetBasicArray, GetBasicXML, GetBasicXMLList, GetEntityArray, GetEntityMap, GetEntityXMLList, GetInstance, GetXML

public abstract class BuilderMethodWriter
extends java.lang.Object
implements MethodWriter<FlexModelBuilderHandler>

Abstract class for each MethodWriter of FlexModelBuilderHandler. Used mainly to reduce the size of the lines of code :P

Version:
0.2
Author:
Nicolas Désy

Field Summary
 
Fields inherited from interface com.liguorien.flex.generator.writers.MethodWriter
COMPARATOR
 
Constructor Summary
BuilderMethodWriter()
           
 
Method Summary
 boolean acceptClass(java.lang.Class<?> clazz)
          Accepts any class
 int getPriority()
          Returns the priority for this writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liguorien.flex.generator.writers.MethodWriter
writeMethod
 

Constructor Detail

BuilderMethodWriter

public BuilderMethodWriter()
Method Detail

acceptClass

public boolean acceptClass(java.lang.Class<?> clazz)
Accepts any class

Specified by:
acceptClass in interface MethodWriter<FlexModelBuilderHandler>
Parameters:
clazz - The class waiting for acceptation.
Returns:
A boolean which indicates if this writer accept the class.

getPriority

public int getPriority()
Description copied from interface: MethodWriter
Returns the priority for this writer. Writer with the highest value will be the first executed.

Specified by:
getPriority in interface MethodWriter<FlexModelBuilderHandler>
Returns:
The priority for this writer

FlexGenerator

Copyright 2006 Nicolas Désy. All rights reserved.