All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class PREDATOR.Schema

java.lang.Object
   |
   +----PREDATOR.Schema

public class Schema
extends Object
This class represents a schema, or ordered sequence of attributes.

See Also:
Attribute

Constructor Index

 o Schema()

Method Index

 o getArity()
Returns the number of attributes in the schema.
 o getAttribute(int)
Gets the attribute associated with a given attribute id.
 o toString()
Creates a string representation of this schema.

Constructors

 o Schema
 public Schema()

Methods

 o getArity
 public int getArity()
Returns the number of attributes in the schema.

Returns:
The number of attributes in the schema
 o getAttribute
 public Attribute getAttribute(int AttrId) throws IndexOutOfBoundsException
Gets the attribute associated with a given attribute id.

Parameters:
AttrId - The index of the attribute in the schema
Returns:
The attribute associated with the index
Throws: IndexOutOfBoundsException
if the index is out of bounds
 o toString
 public String toString()
Creates a string representation of this schema.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index