Download Sources

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

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

public class TextElement
extends Dom4jWriter

Generate java code which retrieve text content of a dom4j element.

Version:
0.2
Author:
Nicolas Désy

Field Summary
 
Fields inherited from class com.liguorien.flex.generator.writers.dom4j.Dom4jWriter
WRITER
 
Constructor Summary
TextElement()
           
 
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

TextElement

public TextElement()
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.