com.liguorien.flex.generator.writers.dom4j.properties
Class CollectionElement
java.lang.Object
com.liguorien.flex.generator.writers.dom4j.properties.CollectionElement
- All Implemented Interfaces:
- PropertyWriter<Dom4jBuilderHandler>
public class CollectionElement
- extends java.lang.Object
- implements PropertyWriter<Dom4jBuilderHandler>
- Version:
- 0.2
- Author:
- Nicolas Désy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionElement
public CollectionElement()
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<Dom4jBuilderHandler>
- Returns:
- The priority for this writer
acceptProperty
public boolean acceptProperty(java.beans.PropertyDescriptor prop,
Dom4jBuilderHandler handler)
Accepts properties which type is subclass of java.util.Collection.
The annotations FlexList or FlexSet must also
be declared on the getter method.
- Specified by:
acceptProperty in interface PropertyWriter<Dom4jBuilderHandler>
- Parameters:
prop - The property to checkhandler - The current generator handler
- Returns:
- A boolean value which indicates if the writer accepts to
write the property
- See Also:
FlexList,
FlexSet
writeProperty
public void writeProperty(java.io.Writer w,
FlexGenerator g,
Dom4jBuilderHandler handler,
java.lang.String varName,
java.beans.PropertyDescriptor prop)
throws java.io.IOException
- Description copied from interface:
PropertyWriter
- Writes code to access a property.
- Specified by:
writeProperty in interface PropertyWriter<Dom4jBuilderHandler>
- Parameters:
w - The Writerg - 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
Copyright 2006 Nicolas Désy. All rights reserved.