org.barracudamvc.contrib.sam.xmlform.dtd
Class ElementImpl

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.barracudamvc.contrib.sam.xmlform.dtd.ElementImpl
All Implemented Interfaces:
Serializable, Cloneable, Element, Unmarshallable, ContentHandler, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler

public class ElementImpl
extends DefaultHandler
implements Cloneable, Unmarshallable, LexicalHandler, Element

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.barracudamvc.contrib.sam.xmlform.dtd.Element
ZEUS_ATTRIBUTES, ZEUS_ELEMENTS, ZEUS_XML_NAME
 
Constructor Summary
ElementImpl()
           
 
Method Summary
 void characters(char[] ch, int start, int len)
           
 void comment(char[] ch, int start, int len)
           
 void endCDATA()
           
 void endDTD()
           
 void endElement(String namespaceURI, String localName, String qName)
           
 void endEntity(String name)
           
 void error(SAXParseException e)
           
 void fatalError(SAXParseException e)
           
 Checkbox getCheckbox()
           
 Unmarshallable getCurrentUNode()
           
 Hidden getHidden()
           
 String getLabel()
           
 String getName()
           
 Unmarshallable getParentUNode()
           
 Radio getRadio()
           
 String getRef()
           
 Select getSelect()
           
 Text getText()
           
 Textarea getTextarea()
           
 Upload getUpload()
           
 Validator getValidator()
           
 void marshal(File file)
           
 void marshal(OutputStream outputStream)
           
 void marshal(Writer writer)
           
static ElementImpl newInstance()
           
 void setCheckbox(Checkbox checkbox)
           
 void setCurrentUNode(Unmarshallable currentUNode)
           
 void setDocType(String name, String publicID, String systemID)
           
 void setDocumentLocator(Locator locator)
           
static void setEntityResolver(EntityResolver resolver)
           This sets a SAX EntityResolver for this unmarshalling process.
static void setErrorHandler(ErrorHandler handler)
           This sets a SAX ErrorHandler for this unmarshalling process.
 void setHidden(Hidden hidden)
           
 void setLabel(String label)
           
 void setName(String name)
           
 void setOutputEncoding(String outputEncoding)
           
 void setParentUNode(Unmarshallable parentUNode)
           
static void setPrototype(ElementImpl prototype)
           
 void setRadio(Radio radio)
           
 void setRef(String ref)
           
 void setSelect(Select select)
           
 void setText(Text text)
           
 void setTextarea(Textarea textarea)
           
 void setUpload(Upload upload)
           
 void setValidating(boolean validate)
           
 void setValidator(Validator validator)
           
 void startCDATA()
           
 void startDocument()
           
 void startDTD(String name, String publicID, String systemID)
           
 void startElement(String namespaceURI, String localName, String qName, Attributes atts)
           
 void startEntity(String name)
           
 void startPrefixMapping(String prefix, String uri)
           
static Element unmarshal(File file)
           
static Element unmarshal(File file, boolean validate)
           
static Element unmarshal(InputStream inputStream)
           
static Element unmarshal(InputStream inputStream, boolean validate)
           
static Element unmarshal(Reader reader)
           
static Element unmarshal(Reader reader, boolean validate)
           
 void warning(SAXParseException e)
           
protected  void writeXMLRepresentation(Writer writer, String indent)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.ContentHandler
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, skippedEntity
 

Constructor Detail

ElementImpl

public ElementImpl()
Method Detail

setPrototype

public static void setPrototype(ElementImpl prototype)

newInstance

public static ElementImpl newInstance()

getText

public Text getText()
Specified by:
getText in interface Element

setText

public void setText(Text text)
Specified by:
setText in interface Element

getTextarea

public Textarea getTextarea()
Specified by:
getTextarea in interface Element

setTextarea

public void setTextarea(Textarea textarea)
Specified by:
setTextarea in interface Element

getSelect

public Select getSelect()
Specified by:
getSelect in interface Element

setSelect

public void setSelect(Select select)
Specified by:
setSelect in interface Element

getRadio

public Radio getRadio()
Specified by:
getRadio in interface Element

setRadio

public void setRadio(Radio radio)
Specified by:
setRadio in interface Element

getCheckbox

public Checkbox getCheckbox()
Specified by:
getCheckbox in interface Element

setCheckbox

public void setCheckbox(Checkbox checkbox)
Specified by:
setCheckbox in interface Element

getHidden

public Hidden getHidden()
Specified by:
getHidden in interface Element

setHidden

public void setHidden(Hidden hidden)
Specified by:
setHidden in interface Element

getUpload

public Upload getUpload()
Specified by:
getUpload in interface Element

setUpload

public void setUpload(Upload upload)
Specified by:
setUpload in interface Element

getValidator

public Validator getValidator()
Specified by:
getValidator in interface Element

setValidator

public void setValidator(Validator validator)
Specified by:
setValidator in interface Element

getLabel

public String getLabel()
Specified by:
getLabel in interface Element

setLabel

public void setLabel(String label)
Specified by:
setLabel in interface Element

getName

public String getName()
Specified by:
getName in interface Element

setName

public void setName(String name)
Specified by:
setName in interface Element

getRef

public String getRef()
Specified by:
getRef in interface Element

setRef

public void setRef(String ref)
Specified by:
setRef in interface Element

setDocType

public void setDocType(String name,
                       String publicID,
                       String systemID)
Specified by:
setDocType in interface Element

setOutputEncoding

public void setOutputEncoding(String outputEncoding)
Specified by:
setOutputEncoding in interface Element

marshal

public void marshal(File file)
             throws IOException
Specified by:
marshal in interface Element
Throws:
IOException

marshal

public void marshal(OutputStream outputStream)
             throws IOException
Specified by:
marshal in interface Element
Throws:
IOException

marshal

public void marshal(Writer writer)
             throws IOException
Specified by:
marshal in interface Element
Throws:
IOException

writeXMLRepresentation

protected void writeXMLRepresentation(Writer writer,
                                      String indent)
                               throws IOException
Throws:
IOException

setEntityResolver

public static void setEntityResolver(EntityResolver resolver)

This sets a SAX EntityResolver for this unmarshalling process.

Parameters:
resolver - the entity resolver to use.

setErrorHandler

public static void setErrorHandler(ErrorHandler handler)

This sets a SAX ErrorHandler for this unmarshalling process.

Parameters:
handler - the entity resolver to use.

unmarshal

public static Element unmarshal(File file)
                         throws IOException
Throws:
IOException

unmarshal

public static Element unmarshal(File file,
                                boolean validate)
                         throws IOException
Throws:
IOException

unmarshal

public static Element unmarshal(InputStream inputStream)
                         throws IOException
Throws:
IOException

unmarshal

public static Element unmarshal(InputStream inputStream,
                                boolean validate)
                         throws IOException
Throws:
IOException

unmarshal

public static Element unmarshal(Reader reader)
                         throws IOException
Throws:
IOException

unmarshal

public static Element unmarshal(Reader reader,
                                boolean validate)
                         throws IOException
Throws:
IOException

getParentUNode

public Unmarshallable getParentUNode()
Specified by:
getParentUNode in interface Unmarshallable

setParentUNode

public void setParentUNode(Unmarshallable parentUNode)
Specified by:
setParentUNode in interface Unmarshallable

getCurrentUNode

public Unmarshallable getCurrentUNode()
Specified by:
getCurrentUNode in interface Unmarshallable

setCurrentUNode

public void setCurrentUNode(Unmarshallable currentUNode)
Specified by:
setCurrentUNode in interface Unmarshallable

setValidating

public void setValidating(boolean validate)

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class DefaultHandler
Throws:
SAXException

setDocumentLocator

public void setDocumentLocator(Locator locator)
Specified by:
setDocumentLocator in interface ContentHandler
Overrides:
setDocumentLocator in class DefaultHandler

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
                        throws SAXException
Specified by:
startPrefixMapping in interface ContentHandler
Overrides:
startPrefixMapping in class DefaultHandler
Throws:
SAXException

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

endElement

public void endElement(String namespaceURI,
                       String localName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int len)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
Throws:
SAXException

comment

public void comment(char[] ch,
                    int start,
                    int len)
             throws SAXException
Specified by:
comment in interface LexicalHandler
Throws:
SAXException

warning

public void warning(SAXParseException e)
             throws SAXException
Specified by:
warning in interface ErrorHandler
Overrides:
warning in class DefaultHandler
Throws:
SAXException

error

public void error(SAXParseException e)
           throws SAXException
Specified by:
error in interface ErrorHandler
Overrides:
error in class DefaultHandler
Throws:
SAXException

fatalError

public void fatalError(SAXParseException e)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Overrides:
fatalError in class DefaultHandler
Throws:
SAXException

startDTD

public void startDTD(String name,
                     String publicID,
                     String systemID)
              throws SAXException
Specified by:
startDTD in interface LexicalHandler
Throws:
SAXException

endDTD

public void endDTD()
            throws SAXException
Specified by:
endDTD in interface LexicalHandler
Throws:
SAXException

startEntity

public void startEntity(String name)
                 throws SAXException
Specified by:
startEntity in interface LexicalHandler
Throws:
SAXException

endEntity

public void endEntity(String name)
               throws SAXException
Specified by:
endEntity in interface LexicalHandler
Throws:
SAXException

startCDATA

public void startCDATA()
                throws SAXException
Specified by:
startCDATA in interface LexicalHandler
Throws:
SAXException

endCDATA

public void endCDATA()
              throws SAXException
Specified by:
endCDATA in interface LexicalHandler
Throws:
SAXException


Copyright © 2006 BarracudaMVC.org All Rights Reserved.