amber.type.server
Class ComplexItem

java.lang.Object
  |
  +--amber.type.server.ComplexItem
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ComplexColumn

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

See Also:
Serialized Form

Field Summary
protected  java.lang.String data
          This is the data.
static int ImageType
          This is an URL to an image
static int StringType
          This is a Standard string type
protected  int type
          This is the type of the corresponding string
 
Constructor Summary
ComplexItem()
          Default Constructor.
ComplexItem(int type, java.lang.String data)
          Initialising Constructor.
 
Method Summary
 boolean equals(java.lang.Object other)
          This function checks to see if this object matches the input object.
 java.lang.String getData()
          Gets the data in the following variable: This is the data.
 int getType()
          Gets the data in the following variable: This is the type of the corresponding string
 void setData(java.lang.String data)
          Sets the data in the following variable: This is the data.
 void setType(int data)
          Sets the data in the following variable: This is the type of the corresponding string
 java.lang.String toString()
          This function returns the String form of the data.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

StringType

public static final int StringType
This is a Standard string type

ImageType

public static final int ImageType
This is an URL to an image

type

protected int type
This is the type of the corresponding string

data

protected java.lang.String data
This is the data. This can be an URL to an item
Constructor Detail

ComplexItem

public ComplexItem()
Default Constructor.

ComplexItem

public ComplexItem(int type,
                   java.lang.String data)
Initialising Constructor.
Parameters:
type - This is the type of the corresponding string
data - This is the data. This can be an URL to an item
Method Detail

getType

public int getType()
Gets the data in the following variable: This is the type of the corresponding string
Returns:
int containing the required information.

getData

public java.lang.String getData()
Gets the data in the following variable: This is the data. This can be an URL to an item
Returns:
String containing the required information.

setType

public void setType(int data)
Sets the data in the following variable: This is the type of the corresponding string
Parameters:
data - int containing the data to set the variable to.

setData

public void setData(java.lang.String data)
Sets the data in the following variable: This is the data. This can be an URL to an item
Parameters:
data - String containing the data to set the variable to.

equals

public boolean equals(java.lang.Object other)
This function checks to see if this object matches the input object.
Overrides:
equals in class java.lang.Object
Parameters:
other - Object to compare with.
Returns:
the state of the comparison. true if the values match.

toString

public java.lang.String toString()
This function returns the String form of the data.
Overrides:
toString in class java.lang.Object
Returns:
String containing the string version of this class.


Copyright © 2002 Clearfield Research Ltd. All Rights Reserved.