com.finalist.jaggenerator.modules
Class Session

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended bycom.finalist.jaggenerator.modules.Session
All Implemented Interfaces:
java.lang.Cloneable, JagBean, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode

public class Session
extends javax.swing.tree.DefaultMutableTreeNode
implements JagBean

Author:
hillie
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
 javax.swing.JTextField descriptionText
           
(package private) static org.apache.commons.logging.Log log
           
 javax.swing.JTextField nameText
           
 javax.swing.JTextField refNameText
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
Session(org.w3c.dom.Element el)
           
Session(java.lang.String rootPackage)
          Creates new form BeanForm
 
Method Summary
 void addRef(java.lang.String ref)
           
 void addRelationRef(java.lang.String entity)
           
 java.util.ArrayList getBusinessMethods()
           
 TemplateString getDescription()
           
 java.util.List getEntities()
          Returns a List of all Entities in this Session, but not those that are only a 'relation reference'.
 java.util.List getEntitiesAndReferences()
           
 java.util.ArrayList getEntityRefs()
          Gets all entities 'covered' by this session bean.
 TemplateString getName()
           
 java.util.ArrayList getNonRelationEntityRefs()
          Gets all entities 'covered' by this session bean, excluding those that were only added to support a container-managed relation.
 javax.swing.JPanel getPanel()
           
 java.util.List getReferencedEntities()
           
 java.lang.String getRefName()
           
 TemplateString getRootPackage()
           
 java.lang.String getRootPath()
           
 TemplateString getUpperCaseName()
           
 void getXML(org.w3c.dom.Element el)
           
 java.lang.Boolean hasBusinessMethods()
          check if there are any business methods defines in this Session.
 void setBusinessMethods(java.util.ArrayList businessMethods)
          set Business methods.
 void setDescription(java.lang.String text)
           
 void setEntityRefs(java.util.ArrayList refs)
          Sets all entities 'covered' by this session bean.
 void setName(java.lang.String text)
           
 void setRefName(java.lang.String text)
           
 void setRootPackage(java.lang.String text)
           
 java.lang.String toString()
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

static org.apache.commons.logging.Log log

descriptionText

public javax.swing.JTextField descriptionText

nameText

public javax.swing.JTextField nameText

refNameText

public javax.swing.JTextField refNameText
Constructor Detail

Session

public Session(java.lang.String rootPackage)
Creates new form BeanForm


Session

public Session(org.w3c.dom.Element el)
Method Detail

getBusinessMethods

public java.util.ArrayList getBusinessMethods()

setBusinessMethods

public void setBusinessMethods(java.util.ArrayList businessMethods)
set Business methods.


hasBusinessMethods

public java.lang.Boolean hasBusinessMethods()
check if there are any business methods defines in this Session.

Returns:
true if this session has any business methods.

getEntityRefs

public java.util.ArrayList getEntityRefs()
Gets all entities 'covered' by this session bean.

Returns:
a list of the entity beans' reference names (String).

setEntityRefs

public void setEntityRefs(java.util.ArrayList refs)
Sets all entities 'covered' by this session bean.


getNonRelationEntityRefs

public java.util.ArrayList getNonRelationEntityRefs()
Gets all entities 'covered' by this session bean, excluding those that were only added to support a container-managed relation.

Returns:
a list of the entity beans' reference names (String).

toString

public java.lang.String toString()

getPanel

public javax.swing.JPanel getPanel()
Specified by:
getPanel in interface JagBean

getXML

public void getXML(org.w3c.dom.Element el)
            throws javax.xml.parsers.ParserConfigurationException
Specified by:
getXML in interface JagBean
Throws:
javax.xml.parsers.ParserConfigurationException

getRootPath

public java.lang.String getRootPath()

getName

public TemplateString getName()

getUpperCaseName

public TemplateString getUpperCaseName()

setName

public void setName(java.lang.String text)

getDescription

public TemplateString getDescription()

setDescription

public void setDescription(java.lang.String text)

getRootPackage

public TemplateString getRootPackage()

setRootPackage

public void setRootPackage(java.lang.String text)

getEntities

public java.util.List getEntities()
Returns a List of all Entities in this Session, but not those that are only a 'relation reference'.

Returns:

getReferencedEntities

public java.util.List getReferencedEntities()

getEntitiesAndReferences

public java.util.List getEntitiesAndReferences()

getRefName

public java.lang.String getRefName()
Specified by:
getRefName in interface JagBean
Returns:

setRefName

public void setRefName(java.lang.String text)
Parameters:
text -

addRef

public void addRef(java.lang.String ref)
Parameters:
ref -

addRelationRef

public void addRelationRef(java.lang.String entity)


Copyright © 2003-2005 SourceForge. All Rights Reserved.