info.flexmojos.utilities
Class ApplicationHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by info.flexmojos.utilities.ApplicationHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class ApplicationHandler
extends org.xml.sax.helpers.DefaultHandler


Constructor Summary
ApplicationHandler()
          Internal constructor
 
Method Summary
 boolean isApplicationFile()
          Flag to tag the MXML file as an application one
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes attributes)
          Start element handler.
 
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
 

Constructor Detail

ApplicationHandler

public ApplicationHandler()
Internal constructor

Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String name,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Start element handler. Will analyze the first time it is called if the element tag is 'Application' to detect MXML files representing application files.

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
uri - the XML namespace of the element
localName - the local name of the element
name - the name of the element
attributes - the XML attributes of the element
Throws:
org.xml.sax.SAXException

isApplicationFile

public boolean isApplicationFile()
Flag to tag the MXML file as an application one

Returns:
the application flag value


Copyright © 2008-2009 Flex-Mojos. All Rights Reserved.