org.objectweb.jonas_ejb.deployment.xml
Class SessionImpl

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

public class SessionImpl
extends org.xml.sax.helpers.DefaultHandler
implements Unmarshallable, Session

See Also:
Serialized Form

Fields inherited from interface org.objectweb.jonas_ejb.deployment.xml.Session
ZEUS_ATTRIBUTES, ZEUS_ELEMENTS, ZEUS_XML_NAME
 
Constructor Summary
SessionImpl()
           
 
Method Summary
 void addEjbLocalRef(EjbLocalRef ejbLocalRef)
           
 void addEjbRef(EjbRef ejbRef)
           
 void addEnvEntry(EnvEntry envEntry)
           
 void addResourceEnvRef(ResourceEnvRef resourceEnvRef)
           
 void addResourceRef(ResourceRef resourceRef)
           
 void addSecurityRoleRef(SecurityRoleRef securityRoleRef)
           
 void characters(char[] ch, int start, int len)
           
 void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
           
 Unmarshallable getCurrentUNode()
           
 Description getDescription()
           
 DisplayName getDisplayName()
           
 EjbClass getEjbClass()
           
 java.util.List getEjbLocalRefList()
           
 EjbName getEjbName()
           
 java.util.List getEjbRefList()
           
 java.util.List getEnvEntryList()
           
 Home getHome()
           
 java.lang.String getId()
           
 LargeIcon getLargeIcon()
           
 Local getLocal()
           
 LocalHome getLocalHome()
           
 Unmarshallable getParentUNode()
           
 Remote getRemote()
           
 java.util.List getResourceEnvRefList()
           
 java.util.List getResourceRefList()
           
 SecurityIdentity getSecurityIdentity()
           
 java.util.List getSecurityRoleRefList()
           
 SessionType getSessionType()
           
 SmallIcon getSmallIcon()
           
 TransactionType getTransactionType()
           
 void marshal(java.io.File file)
           
 void marshal(java.io.OutputStream outputStream)
           
 void marshal(java.io.Writer writer)
           
 void removeEjbLocalRef(EjbLocalRef ejbLocalRef)
           
 void removeEjbRef(EjbRef ejbRef)
           
 void removeEnvEntry(EnvEntry envEntry)
           
 void removeResourceEnvRef(ResourceEnvRef resourceEnvRef)
           
 void removeResourceRef(ResourceRef resourceRef)
           
 void removeSecurityRoleRef(SecurityRoleRef securityRoleRef)
           
 void setCurrentUNode(Unmarshallable currentUNode)
           
 void setDescription(Description description)
           
 void setDisplayName(DisplayName displayName)
           
 void setEjbClass(EjbClass ejbClass)
           
 void setEjbLocalRefList(java.util.List ejbLocalRefList)
           
 void setEjbName(EjbName ejbName)
           
 void setEjbRefList(java.util.List ejbRefList)
           
static void setEntityResolver(org.xml.sax.EntityResolver resolver)
           This sets a SAX EntityResolver for this unmarshalling process.
 void setEnvEntryList(java.util.List envEntryList)
           
static void setErrorHandler(org.xml.sax.ErrorHandler handler)
           This sets a SAX ErrorHandler for this unmarshalling process.
 void setHome(Home home)
           
 void setId(java.lang.String id)
           
 void setLargeIcon(LargeIcon largeIcon)
           
 void setLocal(Local local)
           
 void setLocalHome(LocalHome localHome)
           
 void setParentUNode(Unmarshallable parentUNode)
           
 void setRemote(Remote remote)
           
 void setResourceEnvRefList(java.util.List resourceEnvRefList)
           
 void setResourceRefList(java.util.List resourceRefList)
           
 void setSecurityIdentity(SecurityIdentity securityIdentity)
           
 void setSecurityRoleRefList(java.util.List securityRoleRefList)
           
 void setSessionType(SessionType sessionType)
           
 void setSmallIcon(SmallIcon smallIcon)
           
 void setTransactionType(TransactionType transactionType)
           
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
           
static Session unmarshal(java.io.File file)
           
static Session unmarshal(java.io.File file, boolean validate)
           
static Session unmarshal(java.io.InputStream inputStream)
           
static Session unmarshal(java.io.InputStream inputStream, boolean validate)
           
static Session unmarshal(java.io.Reader reader)
           
static Session 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

SessionImpl

public SessionImpl()
Method Detail

getDescription

public Description getDescription()
Specified by:
getDescription in interface Session

setDescription

public void setDescription(Description description)
Specified by:
setDescription in interface Session

getDisplayName

public DisplayName getDisplayName()
Specified by:
getDisplayName in interface Session

setDisplayName

public void setDisplayName(DisplayName displayName)
Specified by:
setDisplayName in interface Session

getSmallIcon

public SmallIcon getSmallIcon()
Specified by:
getSmallIcon in interface Session

setSmallIcon

public void setSmallIcon(SmallIcon smallIcon)
Specified by:
setSmallIcon in interface Session

getLargeIcon

public LargeIcon getLargeIcon()
Specified by:
getLargeIcon in interface Session

setLargeIcon

public void setLargeIcon(LargeIcon largeIcon)
Specified by:
setLargeIcon in interface Session

getEjbName

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

setEjbName

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

getHome

public Home getHome()
Specified by:
getHome in interface Session

setHome

public void setHome(Home home)
Specified by:
setHome in interface Session

getRemote

public Remote getRemote()
Specified by:
getRemote in interface Session

setRemote

public void setRemote(Remote remote)
Specified by:
setRemote in interface Session

getLocalHome

public LocalHome getLocalHome()
Specified by:
getLocalHome in interface Session

setLocalHome

public void setLocalHome(LocalHome localHome)
Specified by:
setLocalHome in interface Session

getLocal

public Local getLocal()
Specified by:
getLocal in interface Session

setLocal

public void setLocal(Local local)
Specified by:
setLocal in interface Session

getEjbClass

public EjbClass getEjbClass()
Specified by:
getEjbClass in interface Session

setEjbClass

public void setEjbClass(EjbClass ejbClass)
Specified by:
setEjbClass in interface Session

getSessionType

public SessionType getSessionType()
Specified by:
getSessionType in interface Session

setSessionType

public void setSessionType(SessionType sessionType)
Specified by:
setSessionType in interface Session

getTransactionType

public TransactionType getTransactionType()
Specified by:
getTransactionType in interface Session

setTransactionType

public void setTransactionType(TransactionType transactionType)
Specified by:
setTransactionType in interface Session

getEnvEntryList

public java.util.List getEnvEntryList()
Specified by:
getEnvEntryList in interface Session

setEnvEntryList

public void setEnvEntryList(java.util.List envEntryList)
Specified by:
setEnvEntryList in interface Session

addEnvEntry

public void addEnvEntry(EnvEntry envEntry)
Specified by:
addEnvEntry in interface Session

removeEnvEntry

public void removeEnvEntry(EnvEntry envEntry)
Specified by:
removeEnvEntry in interface Session

getEjbRefList

public java.util.List getEjbRefList()
Specified by:
getEjbRefList in interface Session

setEjbRefList

public void setEjbRefList(java.util.List ejbRefList)
Specified by:
setEjbRefList in interface Session

addEjbRef

public void addEjbRef(EjbRef ejbRef)
Specified by:
addEjbRef in interface Session

removeEjbRef

public void removeEjbRef(EjbRef ejbRef)
Specified by:
removeEjbRef in interface Session

getEjbLocalRefList

public java.util.List getEjbLocalRefList()
Specified by:
getEjbLocalRefList in interface Session

setEjbLocalRefList

public void setEjbLocalRefList(java.util.List ejbLocalRefList)
Specified by:
setEjbLocalRefList in interface Session

addEjbLocalRef

public void addEjbLocalRef(EjbLocalRef ejbLocalRef)
Specified by:
addEjbLocalRef in interface Session

removeEjbLocalRef

public void removeEjbLocalRef(EjbLocalRef ejbLocalRef)
Specified by:
removeEjbLocalRef in interface Session

getSecurityRoleRefList

public java.util.List getSecurityRoleRefList()
Specified by:
getSecurityRoleRefList in interface Session

setSecurityRoleRefList

public void setSecurityRoleRefList(java.util.List securityRoleRefList)
Specified by:
setSecurityRoleRefList in interface Session

addSecurityRoleRef

public void addSecurityRoleRef(SecurityRoleRef securityRoleRef)
Specified by:
addSecurityRoleRef in interface Session

removeSecurityRoleRef

public void removeSecurityRoleRef(SecurityRoleRef securityRoleRef)
Specified by:
removeSecurityRoleRef in interface Session

getSecurityIdentity

public SecurityIdentity getSecurityIdentity()
Specified by:
getSecurityIdentity in interface Session

setSecurityIdentity

public void setSecurityIdentity(SecurityIdentity securityIdentity)
Specified by:
setSecurityIdentity in interface Session

getResourceRefList

public java.util.List getResourceRefList()
Specified by:
getResourceRefList in interface Session

setResourceRefList

public void setResourceRefList(java.util.List resourceRefList)
Specified by:
setResourceRefList in interface Session

addResourceRef

public void addResourceRef(ResourceRef resourceRef)
Specified by:
addResourceRef in interface Session

removeResourceRef

public void removeResourceRef(ResourceRef resourceRef)
Specified by:
removeResourceRef in interface Session

getResourceEnvRefList

public java.util.List getResourceEnvRefList()
Specified by:
getResourceEnvRefList in interface Session

setResourceEnvRefList

public void setResourceEnvRefList(java.util.List resourceEnvRefList)
Specified by:
setResourceEnvRefList in interface Session

addResourceEnvRef

public void addResourceEnvRef(ResourceEnvRef resourceEnvRef)
Specified by:
addResourceEnvRef in interface Session

removeResourceEnvRef

public void removeResourceEnvRef(ResourceEnvRef resourceEnvRef)
Specified by:
removeResourceEnvRef in interface Session

getId

public java.lang.String getId()
Specified by:
getId in interface Session

setId

public void setId(java.lang.String id)
Specified by:
setId in interface Session

marshal

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

marshal

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

marshal

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

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 Session unmarshal(java.io.File file)
                         throws java.io.IOException

unmarshal

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

unmarshal

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

unmarshal

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

unmarshal

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

unmarshal

public static Session 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