ssdbms.ssd
Class LabeledSSD

java.lang.Object
  extended byssdbms.ssd.LabeledSSD

public final class LabeledSSD
extends java.lang.Object

LabeledSSD class represents labeled semistructured data which actually are label-identifier pairs. Non primitive semistructured data contain label-identifier pairs.

Author:
Egar Arturo García Cárdenas
See Also:
Label, ID

Constructor Summary
LabeledSSD(Label label, ID id)
          Creates a label-identifier pair known as labeled semistructured datum.
 
Method Summary
 boolean equals(LabeledSSD labeledSSD)
          Indicates wheter some labeled semistructured data is 'equal to' this one.
 ID getID()
          Returs the identifier component of a labeled semistructured datum.
 Label getLabel()
          Returs the label component of a labeled semistructured datum.
 java.lang.String toString()
          Return a string representation of the labeled ssd.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LabeledSSD

public LabeledSSD(Label label,
                  ID id)
           throws SSDException
Creates a label-identifier pair known as labeled semistructured datum.

Parameters:
label - The label component of the pair.
id - The identifier component of the pair.
Throws:
SSDException - If label or id are null
Method Detail

getID

public ID getID()
Returs the identifier component of a labeled semistructured datum.

Returns:
The identifier component of the label-identifier pair.

getLabel

public Label getLabel()
Returs the label component of a labeled semistructured datum.

Returns:
The label component of the label-identifier pair.

equals

public boolean equals(LabeledSSD labeledSSD)
Indicates wheter some labeled semistructured data is 'equal to' this one.

Parameters:
labeledSSD - The label semistructured data with which to compare.
Returns:
true if both have the same label component and the same identifier component, false otherwise.

toString

public java.lang.String toString()
Return a string representation of the labeled ssd.