|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.info.LyInfoFactory
public abstract class LyInfoFactory
This class builds instances corresponding to XML tags read from the data description file. Almost all objects built during parsing inherit from LyInfo (except very elementary objects).
LyInfoParser
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static java.lang.String |
NULL_VALUE
|
static java.lang.String |
OLD_NULL_VALUE
|
Constructor Summary | |
---|---|
LyInfoFactory(LyInfoParser parser,
LyApplication application)
Constructor of the factory for an application. |
Method Summary | |
---|---|
java.lang.Object |
buildElement(LyInfoNode node,
java.lang.String tag)
Builds node corresponding to an element read from the XML data description file. |
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 node corresponding to an element read from the XML data description file. |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
java.lang.Object parent,
java.lang.Object current)
End of building a node. |
LyInfo |
getInfo(java.lang.String id)
Retrieves an info from its id. |
java.lang.String |
getParsingErrors()
Gets parsing errors if any. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final java.lang.String NULL_VALUE
public static final java.lang.String OLD_NULL_VALUE
Constructor Detail |
---|
public LyInfoFactory(LyInfoParser parser, LyApplication application)
parser
- Parser that builts this factory.application
- Application for which the factory is built.Method Detail |
---|
public LyInfo getInfo(java.lang.String id)
id
- Id of searched info.
public final 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
buildElement
in interface LyXMLElementFactory
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)
)
org.xml.sax.SAXException
- if the result could not have been built.public java.lang.Object buildElement(LyInfoNode node, java.lang.String tag) throws org.xml.sax.SAXException
node
- Current node.tag
- Current tag.
org.xml.sax.SAXException
- if the result could not have been built.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
endElement
in interface LyXMLElementFactory
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)
org.xml.sax.SAXException
- if the result could not have been built. LyInfoDataFactory#endParse
LyInfoDataFactory#checkResultpublic java.lang.String getParsingErrors()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |