com.finalist.jaggenerator.modules
Class Config

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

public class Config
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.JList templateList
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
Config()
          Creates new form Config
Config(org.w3c.dom.Element el)
           
 
Method Summary
 java.lang.String getAuthorText()
           
 java.lang.String getCompanyText()
           
 javax.swing.JPanel getPanel()
           
 java.lang.String getRefName()
           
 Template getTemplate()
          Gets the chosen application generaton template.
 java.util.Map getTemplateSettings()
          Gets the configuration settings as set by the user in the GUI.
 java.lang.String getVersionText()
           
 void getXML(org.w3c.dom.Element el)
           
 java.lang.Boolean matchAppserver(java.lang.String value)
          Helper method to determine if the selected appserver matches the passed string.
 java.lang.Boolean matchBusinessTier(java.lang.String value)
          Helper method to determine if the selected business tier matches the passed string.
 java.lang.Boolean matchServiceTier(java.lang.String value)
          Helper method to determine if the selected service tier matches the passed string.
 java.lang.Boolean matchWebTier(java.lang.String value)
          Helper method to determine if the selected web tier matches the passed string.
 void setAuthor(java.lang.String text)
           
 void setCompany(java.lang.String text)
           
 void setTemplateSettings(java.util.Map templateSettings)
          Set the template settings.
 void setVersion(java.lang.String text)
           
 java.lang.String toString()
           
 java.lang.Boolean useJava5()
          check if the useJava5 checkbox was checked to generate java5 support.
 java.lang.Boolean useMock()
          check if the useMock checkbox was checked to generate a mock implementation.
 java.lang.Boolean useRelations()
          check if the Container-managed relations checkbox was checked.
 java.lang.Boolean useWebService()
          check if the useWebService checkbox was checked to generate a webservice.
 
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

templateList

public javax.swing.JList templateList
Constructor Detail

Config

public Config()
Creates new form Config


Config

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

setAuthor

public void setAuthor(java.lang.String text)

setVersion

public void setVersion(java.lang.String text)

setCompany

public void setCompany(java.lang.String text)

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

getTemplate

public Template getTemplate()
Gets the chosen application generaton template.

Returns:

getRefName

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

useRelations

public java.lang.Boolean useRelations()
check if the Container-managed relations checkbox was checked.

Returns:

useMock

public java.lang.Boolean useMock()
check if the useMock checkbox was checked to generate a mock implementation.

Returns:

useJava5

public java.lang.Boolean useJava5()
check if the useJava5 checkbox was checked to generate java5 support.

Returns:

useWebService

public java.lang.Boolean useWebService()
check if the useWebService checkbox was checked to generate a webservice.

Returns:

getTemplateSettings

public java.util.Map getTemplateSettings()
Gets the configuration settings as set by the user in the GUI.

Returns:
a Map of (String) configuration parameter id --> (String) value.

setTemplateSettings

public void setTemplateSettings(java.util.Map templateSettings)
Set the template settings.


matchAppserver

public java.lang.Boolean matchAppserver(java.lang.String value)
Helper method to determine if the selected appserver matches the passed string. A match is made in the selected appserver equals or starts with the passed value ignoring cases. This method can be used to ignore version numbers. So if you want to know that a JBoss appserver was selected, just match with "jboss".

Parameters:
value -
Returns:
Boolean true if there is a match.

matchBusinessTier

public java.lang.Boolean matchBusinessTier(java.lang.String value)
Helper method to determine if the selected business tier matches the passed string. A match is made in the selected appserver equals or starts with the passed value ignoring cases. This method can be used to ignore version numbers.

Parameters:
value -
Returns:
Boolean true if there is a match.

matchServiceTier

public java.lang.Boolean matchServiceTier(java.lang.String value)
Helper method to determine if the selected service tier matches the passed string. A match is made if the selected service tier equals or starts with the passed value ignoring cases. This method can be used to ignore version numbers.

Parameters:
value -
Returns:
Boolean true if there is a match.

matchWebTier

public java.lang.Boolean matchWebTier(java.lang.String value)
Helper method to determine if the selected web tier matches the passed string. A match is made in the selected appserver equals or starts with the passed value ignoring cases. This method can be used to ignore version numbers.

Parameters:
value -
Returns:
Boolean true if there is a match.

getAuthorText

public java.lang.String getAuthorText()

getVersionText

public java.lang.String getVersionText()

getCompanyText

public java.lang.String getCompanyText()


Copyright © 2003-2005 SourceForge. All Rights Reserved.