LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyViewNodeFactory

java.lang.Object
  extended by leon.parser.LyAbstractViewNodeFactory
      extended by leon.view.LyViewNodeFactory
All Implemented Interfaces:
LyXMLElementFactory

public class LyViewNodeFactory
extends LyAbstractViewNodeFactory
implements LyXMLElementFactory

This class is used to build instances from the SAX Parser.


Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyViewNodeFactory(LyEnvironment environment)
          Constructor.
 
Method Summary
 java.lang.Object buildElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes, java.lang.Object parent)
          Builds the result corresponding to each node.
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, java.lang.Object parent, java.lang.Object current)
          End of Build of a node.
 LyEnvironment getEnvironment()
          Access to the environment.
static java.lang.String getTag(java.lang.String className)
          Utility method to tag name from class name.
 
Methods inherited from class leon.parser.LyAbstractViewNodeFactory
getClassName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyViewNodeFactory

public LyViewNodeFactory(LyEnvironment environment)
Constructor.

Method Detail

getTag

public static java.lang.String getTag(java.lang.String className)
Utility method to tag name from class name.

Parameters:
className - className
Returns:
The corresponding class name.

getEnvironment

public LyEnvironment getEnvironment()
Access to the environment.


buildElement

public java.lang.Object buildElement(java.lang.String uri,
                                     java.lang.String localName,
                                     java.lang.String qName,
                                     org.xml.sax.Attributes attributes,
                                     java.lang.Object parent)
                              throws org.xml.sax.SAXException
Builds the result corresponding to each node. The result depends on the node tag. This method is invoked by SAXParser at the begening of each new tag.

Specified by:
buildElement in interface LyXMLElementFactory
Parameters:
uri - The Namespace URI.
localName - The Namespace local name.
qName - The qualified (prefixed) name.
attributes - The SAX2 attributes.
parent - The parent node (created by #buildElement(String, String, String, Attributes))
Returns:
the built element
Throws:
org.xml.sax.SAXException - if the result could not have been built.

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName,
                       java.lang.Object parent,
                       java.lang.Object current)
                throws org.xml.sax.SAXException
End of Build of a node. The result depends on the node tag. This method is invoked by SAXParser at the begening of each new tag.

Specified by:
endElement in interface LyXMLElementFactory
Parameters:
uri - The Namespace URI.
localName - The Namespace local name.
qName - The qualified (prefixed) name.
parent - - The parent node (created by buildElement)
current - - The current node (created by buildElement)
Throws:
org.xml.sax.SAXException - if the result could not have been built.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com