org.vizzini.util
Interface IGenericData

All Superinterfaces:
Cloneable, Comparable
All Known Subinterfaces:
IRecord
All Known Implementing Classes:
GenericData, Record

public interface IGenericData
extends Cloneable, Comparable

Defines methods required for storage of properties determined at runtime.

Since:
v0.2
Version:
v0.2
Author:
Jeffrey M. Thompson

Method Summary
 void clear()
          Clear the property values and names.
 Object clone()
          Return a clone of this instance.
 int compareTo(Object another)
          Compare to the given object.
 void copy(IGenericData another)
          Make this object a copy of the given object.
 boolean equals(Object another)
          Return true if this equals another.
 Object get(String propertyName)
          Return the value of the specified property.
 Iterator getPropertyNames()
          Return an iterator over the property names.
 Class getType(String propertyName)
          Return the type of the named property.
 int hashCode()
          Return the hash code.
 void set(String propertyName, boolean value)
          Set the value of the specified property.
 void set(String propertyName, Class type, Object value)
          Set the value of the specified property.
 void set(String propertyName, double value)
          Set the value of the specified property.
 void set(String propertyName, float value)
          Set the value of the specified property.
 void set(String propertyName, int value)
          Set the value of the specified property.
 void set(String propertyName, long value)
          Set the value of the specified property.
 void set(String propertyName, Object value)
          Set the value of the specified property.
 String toString()
          Return a string representation of this object.
 

Method Detail

getPropertyNames

Iterator getPropertyNames()
Return an iterator over the property names.

Since:
v0.2

getType

Class getType(String propertyName)
Return the type of the named property.

Since:
v0.2

clear

void clear()
Clear the property values and names.

Since:
v0.2

clone

Object clone()
Return a clone of this instance.

Since:
v0.2

compareTo

int compareTo(Object another)
Compare to the given object.

Specified by:
compareTo in interface Comparable
Returns:
-1, 0, +1 if this is less than, equal to, or greater than
Since:
v0.2

copy

void copy(IGenericData another)
Make this object a copy of the given object.

Since:
v0.2

equals

boolean equals(Object another)
Return true if this equals another.

Overrides:
equals in class Object
Since:
v0.2

get

Object get(String propertyName)
Return the value of the specified property.

Since:
v0.2

hashCode

int hashCode()
Return the hash code.

Overrides:
hashCode in class Object
Since:
v0.2

set

void set(String propertyName,
         Object value)
Set the value of the specified property.

Since:
v0.2

set

void set(String propertyName,
         Class type,
         Object value)
Set the value of the specified property.

Since:
v0.2

set

void set(String propertyName,
         int value)
Set the value of the specified property.

Since:
v0.2

set

void set(String propertyName,
         long value)
Set the value of the specified property.

Since:
v0.2

set

void set(String propertyName,
         float value)
Set the value of the specified property.

Since:
v0.2

set

void set(String propertyName,
         double value)
Set the value of the specified property.

Since:
v0.2

set

void set(String propertyName,
         boolean value)
Set the value of the specified property.

Since:
v0.2

toString

String toString()
Return a string representation of this object.

Overrides:
toString in class Object
Since:
v0.2


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02