psdi.webclient.system.controller

Class PresentationParser

  • java.lang.Object
    • org.xml.sax.helpers.DefaultHandler
      • psdi.webclient.system.controller.PresentationParser
  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler


    public class PresentationParser
    extends org.xml.sax.helpers.DefaultHandler
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected java.util.Set idList
      Used to detect duplicate id's in the presentation definition
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getApplication() 
      java.util.Map getLabels() 
      java.lang.String getTrimmedXML() 
      void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
      Receives notification of start of element.
      • Methods inherited from class org.xml.sax.helpers.DefaultHandler

        characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • idList

        protected java.util.Set idList
        Used to detect duplicate id's in the presentation definition
    • Constructor Detail

      • PresentationParser

        public PresentationParser(java.lang.String xml)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • PresentationParser

        public PresentationParser(java.io.File file)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • getApplication

        public java.lang.String getApplication()
      • getLabels

        public java.util.Map getLabels()
      • getTrimmedXML

        public java.lang.String getTrimmedXML()
      • startElement

        public void startElement(java.lang.String uri,
                                 java.lang.String localName,
                                 java.lang.String qName,
                                 org.xml.sax.Attributes attributes)
                          throws org.xml.sax.SAXException
        Receives notification of start of element. Builds list of labels, containing the label id, property type, and label value.
        Specified by:
        startElement in interface org.xml.sax.ContentHandler
        Overrides:
        startElement in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException