Download Sources

com.liguorien.flex.generator.writers.dom4j
Class MapKey

java.lang.Object
  extended by com.liguorien.flex.generator.writers.dom4j.Dom4jWriter
      extended by com.liguorien.flex.generator.writers.dom4j.MapKey
All Implemented Interfaces:
ClassWriter

public class MapKey
extends Dom4jWriter

Version:
0.2
Author:
Nicolas Désy

Field Summary
 
Fields inherited from class com.liguorien.flex.generator.writers.dom4j.Dom4jWriter
WRITER
 
Constructor Summary
MapKey(FlexMap map)
           
 
Method Summary
 void writeProperty(java.io.Writer w, FlexGenerator g, java.lang.String varName, java.beans.PropertyDescriptor prop, java.lang.String prefix, java.lang.String suffix, NodeType type)
          Writes code to access a property.
 
Methods inherited from class com.liguorien.flex.generator.writers.dom4j.Dom4jWriter
getClassIndentationLevel, getContextWriter, getWrapperName, setContextWriter, writeClassDeclaration, writeClassEnd, writePackageDeclaration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapKey

public MapKey(FlexMap map)
Method Detail

writeProperty

public void writeProperty(java.io.Writer w,
                          FlexGenerator g,
                          java.lang.String varName,
                          java.beans.PropertyDescriptor prop,
                          java.lang.String prefix,
                          java.lang.String suffix,
                          NodeType type)
                   throws java.io.IOException
Description copied from interface: ClassWriter
Writes code to access a property.

Specified by:
writeProperty in interface ClassWriter
Overrides:
writeProperty in class Dom4jWriter
Parameters:
w - The writer used to output the result
g - The current generator.
varName - The name of variable where the property is accessed
prop - The ProspectorDescriptor of the current property
prefix - The code to be written before generated code (can be null)
suffix - The code to be written after generated code (can be null)
type - The type of XML element for this property
Throws:
java.io.IOException - If an IO error occurs
See Also:
NodeType

FlexGenerator

Copyright 2006 Nicolas Désy. All rights reserved.