org.mockcentral.editor.nodes.fixture
Class SimpleBoundObjectModel

java.lang.Object
  extended by org.mockcentral.editor.nodes.fixture.SimpleBoundObjectModel
Direct Known Subclasses:
NoSimpleBoundObjectsModel

public class SimpleBoundObjectModel
extends java.lang.Object

A class used to model a simple (non-Mock) JNDI-bound Object to be loaded into the naming context along with a Fixture.

Author:
David Hutchinson

Field Summary
static java.lang.String JNDI_NAME_ELEMENT_NAME
          A String constant identifying the name of a JDOM Element containing data for the model.
 
Constructor Summary
SimpleBoundObjectModel()
          Creates a new instance.
SimpleBoundObjectModel(org.jdom.Element element, java.lang.String fixtureName)
          Creates a new instance from the supplied jdom ELement.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getJndiName()
          Returns the JNDI name.
 org.mockcentral.server.SignaturePartBean getSignaturePartBean()
          Returns the SignaturePartBean containing the Object data.
 int hashCode()
           
 void setJndiName(java.lang.String jndiName)
          Sets the JNDI name.
 void setSignaturePartBean(org.mockcentral.server.SignaturePartBean signaturePartBean)
          Sets the SignaturePartBean containing the Object data.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JNDI_NAME_ELEMENT_NAME

public static final java.lang.String JNDI_NAME_ELEMENT_NAME
A String constant identifying the name of a JDOM Element containing data for the model.

See Also:
Constant Field Values
Constructor Detail

SimpleBoundObjectModel

public SimpleBoundObjectModel()
Creates a new instance.


SimpleBoundObjectModel

public SimpleBoundObjectModel(org.jdom.Element element,
                              java.lang.String fixtureName)
Creates a new instance from the supplied jdom ELement.

Parameters:
element - the jdom ELement.
fixtureName - the name of the enclosing Fixture.
Method Detail

getJndiName

public java.lang.String getJndiName()
Returns the JNDI name.

Returns:
the JNDI name.

setJndiName

public void setJndiName(java.lang.String jndiName)
Sets the JNDI name.

Parameters:
jndiName - the JNDI name.

getSignaturePartBean

public org.mockcentral.server.SignaturePartBean getSignaturePartBean()
Returns the SignaturePartBean containing the Object data.

Returns:
the SignaturePartBean containing the Object data.

setSignaturePartBean

public void setSignaturePartBean(org.mockcentral.server.SignaturePartBean signaturePartBean)
Sets the SignaturePartBean containing the Object data.

Parameters:
signaturePartBean - the SignaturePartBean.

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object