ssdbms.ssd
Interface ID


public interface ID

This interface represents the identifiers of semistructured data. A semiestructured datum is formed by an identifier and a value. The identifiers used by a particular data manager must implement this interface.

Author:
Egar Arturo García Cárdenas

Method Summary
 boolean equals(ID id)
          Indicates wheter some identifier is 'equal to' this one.
 boolean isNID()
          Indicates if a identifier is valid or not.
 java.lang.String toString()
          Returns a string representation of the identifier;
 

Method Detail

isNID

public boolean isNID()
Indicates if a identifier is valid or not. Invalid identifiers could be used in the same way that the null value to represent an inexisting datum.

Returns:
true if the identifier is valid, false if is invalid.

equals

public boolean equals(ID id)
Indicates wheter some identifier is 'equal to' this one.

Parameters:
id - The identifier with which to compare.
Returns:
true if id represents the same identifier that this one, false otherwise.

toString

public java.lang.String toString()
Returns a string representation of the identifier;