de.ispsoft.jaxme.generator.parselets
Interface ParseletDecorator

All Superinterfaces:
ElementDecorator
All Known Implementing Classes:
ParseletDecoratorImpl

public interface ParseletDecorator
extends ElementDecorator

A decorator reading Parselet definitions. A Parselet can serialize an XML document and, vice versa, can create the XML document by reading a character stream.

Author:
Jochen Wiedmann

Method Summary
 java.lang.String getNewParseletForParse()
          Returns code that generates a new Parselet instance for parsing.
 java.lang.String getNewParseletForSerialize()
          Returns code that generates a new Parselet instance for serialization.
 java.lang.String getParseletClassName()
          Returns the Parselets class name, without any package.
 java.lang.String getParseletPackageName()
          Returns the Parselets package name.
 void init(SchemaAnnotationOwner pParent, SchemaElement pElement, ParserData pParserData, org.w3c.dom.Element pNode)
          Initializes the ParseletDecorator with the settings being read from the various arguments.
 
Methods inherited from interface de.ispsoft.jaxme.generator.decorators.ElementDecorator
parseAppInfoNode
 

Method Detail

init

public void init(SchemaAnnotationOwner pParent,
                 SchemaElement pElement,
                 ParserData pParserData,
                 org.w3c.dom.Element pNode)
          throws SchemaException

Initializes the ParseletDecorator with the settings being read from the various arguments.

Throws:
SchemaException

getNewParseletForParse

public java.lang.String getNewParseletForParse()

Returns code that generates a new Parselet instance for parsing.

Returns:
Java source or null to omit parsing the element.

getNewParseletForSerialize

public java.lang.String getNewParseletForSerialize()

Returns code that generates a new Parselet instance for serialization.

Returns:
Java source or null to omit serializing the element.

getParseletPackageName

public java.lang.String getParseletPackageName()

Returns the Parselets package name.


getParseletClassName

public java.lang.String getParseletClassName()

Returns the Parselets class name, without any package.