LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.parser
Interface LyXMLElementFactory

All Known Implementing Classes:
LyInfoAppFactory, LyInfoBindFactory, LyInfoDataFactory, LyInfoFactory, LyInfoGuiFactory, LyInfoNodeFactory, LyViewNodeFactory

public interface LyXMLElementFactory

This class is used to build parsed XML structure (object tree) from specified tag. For each tag, the parser invokes the factory to create object instances (builElement) and to complete the created instance at the end of the tag parsing (endElement).

See Also:
LyXmlNode

Field Summary
static java.lang.String __VERSION
           
 
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 object corresponding to the given node tag.
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, java.lang.Object parent, java.lang.Object current)
          Complete the current node object instance at the end of the tag parsing.
 

Field Detail

__VERSION

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

buildElement

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 object corresponding to the given node tag. This method is invoked by SAXParser at the begening of each new tag.

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

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
Complete the current node object instance at the end of the tag parsing. The result depends on the node tag. This method is invoked by SAXParser at the begening of each new tag.

Parameters:
uri - the Namespace URI
localName - the Namespace local name
qName - the qualified (prefixed) name
parent - the parent node (created by #buildElement(String, String, String, Attributes))
current - the current node (created by #buildElement(String, String, String, Attributes))
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