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. |
__VERSION
static final java.lang.String __VERSION
- See Also:
- Constant Field Values
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 URIlocalName
- the Namespace local nameqName
- the qualified (prefixed) nameattributes
- the SAX2 attributesparent
- 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 URIlocalName
- the Namespace local nameqName
- the qualified (prefixed) nameparent
- 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
Website: W4 S.A., contact us: support@w4global.com