2004.04.29


com.jdc.lang
Class SourceTemplate

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.lang.SourceTemplate

public final class SourceTemplate
extends Object

SourceTemplate represents a template for creating Java class source files for the J. Damon & Co. Application Architecture (JDA2) application programming interface (API).   All Core API Java source files extend one of the following base classes using this template:

This source file template provides skeleton methods for the following Object method signatures:

Reference:
The J. Damon & Co. Application Architecture
Note:
This class serves as a source file template only and cannot be instantiated or extended.

Version:
1.0
Author:
Jay Damon
See Also:
Object, HashCode, ToString

Field Summary
 
Fields inherited from class com.jdc.lang.Object
string
 
Method Summary
 boolean equals(Object object)
          Compares this SourceTemplate object to the specified object.
 int getIntField()
          Returns the int field value.
 String getStringField()
          Returns the String field value.
 int hashCode()
          Returns a hash code value for this SourceTemplate object.
 boolean isBooleanField()
          Returns true if the boolean field value is true.
 void setBooleanField(boolean booleanField)
          Sets the boolean field value.
 void setIntField(int intField)
          Sets the int field value.
 void setStringField(String stringField)
          Sets the String field value.
 String toString()
          Returns a String representation of this SourceTemplate object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

equals

public boolean equals(Object object)
Compares this SourceTemplate object to the specified object. Returns true if the field(s) for the specified object template are equal to the field(s) for this source template object.

Overrides:
equals in class Object
Returns:
True if a specified object is equal to this source template object.
False if the specified object is not equal to this source template object.

See Also:
hashCode()

getIntField

public int getIntField()
Returns the int field value.

Returns:
The int field value.

getStringField

public String getStringField()
Returns the String field value.

Returns:
The String field value.

setBooleanField

public void setBooleanField(boolean booleanField)
Sets the boolean field value.


setIntField

public void setIntField(int intField)
Sets the int field value.


setStringField

public void setStringField(String stringField)
Sets the String field value.


hashCode

public int hashCode()
Returns a hash code value for this SourceTemplate object. This method is supported for the benefit of hashtables such as those provided by Hashtable.

Overrides:
hashCode in class Object
Returns:
A hash code value for this source template object.

See Also:
equals(java.lang.Object)

isBooleanField

public boolean isBooleanField()
Returns true if the boolean field value is true.

Returns:
True if the boolean field value is true.
False if the boolean field value is not true.

toString

public String toString()
Returns a String representation of this SourceTemplate object.

Overrides:
toString in class Object
Returns:
A String representation of this SourceTemplate object.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.