jasi.simple.defi
Class ComplexAttribute

java.lang.Object
  extended by jasi.simple.defi.ComplexAttribute
All Implemented Interfaces:
java.io.Serializable

public class ComplexAttribute
extends java.lang.Object
implements java.io.Serializable

Example of a record as attribute. This is not a immutable class!

See Also:
Serialized Form

Constructor Summary
ComplexAttribute()
          Default constructor.
ComplexAttribute(ComplexAttribute a)
          Copy constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getIntField()
          Get the intField attribute.
 java.lang.String getStringField()
          Get the stringField attribute.
 int hashCode()
          Returns a hash code value for the object.
 void setIntField(int intField)
          Set the intField attribute.
 void setStringField(java.lang.String stringField)
          Set the stringField attribute.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComplexAttribute

public ComplexAttribute()
Default constructor.


ComplexAttribute

public ComplexAttribute(ComplexAttribute a)
Copy constructor.

Parameters:
a - The attribute to copy.
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
Parameters:
o -
See Also:
Object.equals(java.lang.Object)

hashCode

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

Overrides:
hashCode in class java.lang.Object
Returns:
A hash code value for this object.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getIntField

public int getIntField()
Get the intField attribute.

Returns:
The intField attribute.

setIntField

public void setIntField(int intField)
Set the intField attribute.

Parameters:
intField - The intField attribute.

getStringField

public java.lang.String getStringField()
Get the stringField attribute.

Returns:
The stringField attribute.

setStringField

public void setStringField(java.lang.String stringField)
Set the stringField attribute.

Parameters:
stringField - The intField attribute.