org.objectweb.jonas_ejb.deployment.xml
Class JonasEntityImpl

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--org.objectweb.jonas_ejb.deployment.xml.JonasEntityImpl
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, JonasEntity, java.io.Serializable, Unmarshallable

public class JonasEntityImpl
extends org.xml.sax.helpers.DefaultHandler
implements Unmarshallable, JonasEntity

See Also:
Serialized Form

Fields inherited from interface org.objectweb.jonas_ejb.deployment.xml.JonasEntity
ZEUS_ATTRIBUTES, ZEUS_ELEMENTS, ZEUS_XML_NAME
 
Constructor Summary
JonasEntityImpl()
           
 
Method Summary
 void addJonasEjbRef(JonasEjbRef jonasEjbRef)
           
 void addJonasResource(JonasResource jonasResource)
           
 void addJonasResourceEnv(JonasResourceEnv jonasResourceEnv)
           
 void characters(char[] ch, int start, int len)
           
 void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
           
 Unmarshallable getCurrentUNode()
           
 EjbName getEjbName()
           
 IsModifiedMethodName getIsModifiedMethodName()
           
 JdbcMapping getJdbcMapping()
           
 JndiName getJndiName()
           
 java.util.List getJonasEjbRefList()
           
 java.util.List getJonasResourceEnvList()
           
 java.util.List getJonasResourceList()
           
 MaxCacheSize getMaxCacheSize()
           
 MinPoolSize getMinPoolSize()
           
 Unmarshallable getParentUNode()
           
 PassivationTimeout getPassivationTimeout()
           
 Shared getShared()
           
 void marshal(java.io.File file)
           
 void marshal(java.io.OutputStream outputStream)
           
 void marshal(java.io.Writer writer)
           
 void removeJonasEjbRef(JonasEjbRef jonasEjbRef)
           
 void removeJonasResource(JonasResource jonasResource)
           
 void removeJonasResourceEnv(JonasResourceEnv jonasResourceEnv)
           
 void setCurrentUNode(Unmarshallable currentUNode)
           
 void setEjbName(EjbName ejbName)
           
static void setEntityResolver(org.xml.sax.EntityResolver resolver)
           This sets a SAX EntityResolver for this unmarshalling process.
static void setErrorHandler(org.xml.sax.ErrorHandler handler)
           This sets a SAX ErrorHandler for this unmarshalling process.
 void setIsModifiedMethodName(IsModifiedMethodName isModifiedMethodName)
           
 void setJdbcMapping(JdbcMapping jdbcMapping)
           
 void setJndiName(JndiName jndiName)
           
 void setJonasEjbRefList(java.util.List jonasEjbRefList)
           
 void setJonasResourceEnvList(java.util.List jonasResourceEnvList)
           
 void setJonasResourceList(java.util.List jonasResourceList)
           
 void setMaxCacheSize(MaxCacheSize maxCacheSize)
           
 void setMinPoolSize(MinPoolSize minPoolSize)
           
 void setParentUNode(Unmarshallable parentUNode)
           
 void setPassivationTimeout(PassivationTimeout passivationTimeout)
           
 void setShared(Shared shared)
           
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
           
static JonasEntity unmarshal(java.io.File file)
           
static JonasEntity unmarshal(java.io.File file, boolean validate)
           
static JonasEntity unmarshal(java.io.InputStream inputStream)
           
static JonasEntity unmarshal(java.io.InputStream inputStream, boolean validate)
           
static JonasEntity unmarshal(java.io.Reader reader)
           
static JonasEntity unmarshal(java.io.Reader reader, boolean validate)
           
protected  void writeXMLRepresentation(java.io.Writer writer, java.lang.String indent)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, 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
 
Methods inherited from interface org.xml.sax.ContentHandler
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
 

Constructor Detail

JonasEntityImpl

public JonasEntityImpl()
Method Detail

getEjbName

public EjbName getEjbName()
Specified by:
getEjbName in interface JonasEntity

setEjbName

public void setEjbName(EjbName ejbName)
Specified by:
setEjbName in interface JonasEntity

getJndiName

public JndiName getJndiName()
Specified by:
getJndiName in interface JonasEntity

setJndiName

public void setJndiName(JndiName jndiName)
Specified by:
setJndiName in interface JonasEntity

getJonasResourceList

public java.util.List getJonasResourceList()
Specified by:
getJonasResourceList in interface JonasEntity

setJonasResourceList

public void setJonasResourceList(java.util.List jonasResourceList)
Specified by:
setJonasResourceList in interface JonasEntity

addJonasResource

public void addJonasResource(JonasResource jonasResource)
Specified by:
addJonasResource in interface JonasEntity

removeJonasResource

public void removeJonasResource(JonasResource jonasResource)
Specified by:
removeJonasResource in interface JonasEntity

getJonasResourceEnvList

public java.util.List getJonasResourceEnvList()
Specified by:
getJonasResourceEnvList in interface JonasEntity

setJonasResourceEnvList

public void setJonasResourceEnvList(java.util.List jonasResourceEnvList)
Specified by:
setJonasResourceEnvList in interface JonasEntity

addJonasResourceEnv

public void addJonasResourceEnv(JonasResourceEnv jonasResourceEnv)
Specified by:
addJonasResourceEnv in interface JonasEntity

removeJonasResourceEnv

public void removeJonasResourceEnv(JonasResourceEnv jonasResourceEnv)
Specified by:
removeJonasResourceEnv in interface JonasEntity

getJonasEjbRefList

public java.util.List getJonasEjbRefList()
Specified by:
getJonasEjbRefList in interface JonasEntity

setJonasEjbRefList

public void setJonasEjbRefList(java.util.List jonasEjbRefList)
Specified by:
setJonasEjbRefList in interface JonasEntity

addJonasEjbRef

public void addJonasEjbRef(JonasEjbRef jonasEjbRef)
Specified by:
addJonasEjbRef in interface JonasEntity

removeJonasEjbRef

public void removeJonasEjbRef(JonasEjbRef jonasEjbRef)
Specified by:
removeJonasEjbRef in interface JonasEntity

getIsModifiedMethodName

public IsModifiedMethodName getIsModifiedMethodName()
Specified by:
getIsModifiedMethodName in interface JonasEntity

setIsModifiedMethodName

public void setIsModifiedMethodName(IsModifiedMethodName isModifiedMethodName)
Specified by:
setIsModifiedMethodName in interface JonasEntity

getPassivationTimeout

public PassivationTimeout getPassivationTimeout()
Specified by:
getPassivationTimeout in interface JonasEntity

setPassivationTimeout

public void setPassivationTimeout(PassivationTimeout passivationTimeout)
Specified by:
setPassivationTimeout in interface JonasEntity

getShared

public Shared getShared()
Specified by:
getShared in interface JonasEntity

setShared

public void setShared(Shared shared)
Specified by:
setShared in interface JonasEntity

getMaxCacheSize

public MaxCacheSize getMaxCacheSize()
Specified by:
getMaxCacheSize in interface JonasEntity

setMaxCacheSize

public void setMaxCacheSize(MaxCacheSize maxCacheSize)
Specified by:
setMaxCacheSize in interface JonasEntity

getMinPoolSize

public MinPoolSize getMinPoolSize()
Specified by:
getMinPoolSize in interface JonasEntity

setMinPoolSize

public void setMinPoolSize(MinPoolSize minPoolSize)
Specified by:
setMinPoolSize in interface JonasEntity

getJdbcMapping

public JdbcMapping getJdbcMapping()
Specified by:
getJdbcMapping in interface JonasEntity

setJdbcMapping

public void setJdbcMapping(JdbcMapping jdbcMapping)
Specified by:
setJdbcMapping in interface JonasEntity

marshal

public void marshal(java.io.File file)
             throws java.io.IOException
Specified by:
marshal in interface JonasEntity

marshal

public void marshal(java.io.OutputStream outputStream)
             throws java.io.IOException
Specified by:
marshal in interface JonasEntity

marshal

public void marshal(java.io.Writer writer)
             throws java.io.IOException
Specified by:
marshal in interface JonasEntity

writeXMLRepresentation

protected void writeXMLRepresentation(java.io.Writer writer,
                                      java.lang.String indent)
                               throws java.io.IOException

setEntityResolver

public static void setEntityResolver(org.xml.sax.EntityResolver resolver)

This sets a SAX EntityResolver for this unmarshalling process.

Parameters:
resolver - the entity resolver to use.

setErrorHandler

public static void setErrorHandler(org.xml.sax.ErrorHandler handler)

This sets a SAX ErrorHandler for this unmarshalling process.

Parameters:
handler - the entity resolver to use.

unmarshal

public static JonasEntity unmarshal(java.io.File file)
                             throws java.io.IOException

unmarshal

public static JonasEntity unmarshal(java.io.File file,
                                    boolean validate)
                             throws java.io.IOException

unmarshal

public static JonasEntity unmarshal(java.io.InputStream inputStream)
                             throws java.io.IOException

unmarshal

public static JonasEntity unmarshal(java.io.InputStream inputStream,
                                    boolean validate)
                             throws java.io.IOException

unmarshal

public static JonasEntity unmarshal(java.io.Reader reader)
                             throws java.io.IOException

unmarshal

public static JonasEntity unmarshal(java.io.Reader reader,
                                    boolean validate)
                             throws java.io.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

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

characters

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