com.liguorien.flex.generator.writers.as3.properties
Class E4XProperty
java.lang.Object
com.liguorien.flex.generator.writers.as3.BuilderPropertyWriter
com.liguorien.flex.generator.writers.as3.properties.E4XProperty
- All Implemented Interfaces:
- PropertyWriter<FlexModelBuilderHandler>
- Direct Known Subclasses:
- StringProperty
public class E4XProperty
- extends BuilderPropertyWriter
- Version:
- 0.2
- Author:
- Nicolas Désy
|
Constructor Summary |
E4XProperty(java.lang.String typeName,
java.lang.String prefix,
java.lang.String suffix,
int priority)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
E4XProperty
public E4XProperty(java.lang.String typeName,
java.lang.String prefix,
java.lang.String suffix,
int priority)
- Parameters:
typeName - prefix - suffix - priority -
acceptProperty
public boolean acceptProperty(java.beans.PropertyDescriptor prop,
FlexModelBuilderHandler handler)
- Description copied from interface:
PropertyWriter
- Determines if this writer accepts to write the property
- Parameters:
prop - The property to checkhandler - The current generator handler
- Returns:
- A boolean value which indicates if the writer accepts to
write the property
writeProperty
public void writeProperty(java.io.Writer w,
FlexGenerator gen,
FlexModelBuilderHandler handler,
java.lang.String varName,
java.beans.PropertyDescriptor prop)
throws java.io.IOException
- Description copied from interface:
PropertyWriter
- Writes code to access a property.
- Parameters:
w - The Writergen - The current generatorhandler - The current handlervarName - The name of variable where the property is accessedprop - The ProspectorDescriptor of the current property
- Throws:
java.io.IOException
getPriority
public int getPriority()
- Description copied from interface:
PropertyWriter
- Returns the priority for this writer. Writer with the highest value will
be the first executed.
- Specified by:
getPriority in interface PropertyWriter<FlexModelBuilderHandler>- Overrides:
getPriority in class BuilderPropertyWriter
- Returns:
- The priority for this writer
Copyright 2006 Nicolas Désy. All rights reserved.