com.novell.admin.ns
Class ValueComponent

java.lang.Object
  |
  +--com.novell.admin.ns.ValueComponent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Value, ValueList

public abstract class ValueComponent
extends java.lang.Object
implements java.io.Serializable

Storage abstraction for all values and value lists.

This is the abstract class that all Value and ValueList classes must extend. Methods defined by a subclass of this class should defer the implementation details to a strategy class.

See Also:
Value, ValueList

Constructor Summary
protected ValueComponent(Syntax syntax)
          Constructor.
 
Method Summary
 long compareTo(ValueComponent component)
          Returns the difference between this ValueComponent and another ValueComponent.
 boolean equals(java.lang.Object obj)
          Determines if another ValueComponent is identical to the current ValueComponent.
 Syntax getSyntax()
          Returns the associated syntax.
 boolean isWithinBounds(long lowerBound, long upperBound)
          Determines if an object is within specific Value bounds.
 java.lang.String toString()
          Converts this ValueComponent to a String.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueComponent

protected ValueComponent(Syntax syntax)
Constructor.
Parameters:
syntax - The associated syntax.
Method Detail

getSyntax

public final Syntax getSyntax()
Returns the associated syntax.
Returns:
The associated syntax.

equals

public final boolean equals(java.lang.Object obj)
Determines if another ValueComponent is identical to the current ValueComponent.
Parameters:
obj - Another ValueComponent object.
Returns:
True if identical, false otherwise.
Overrides:
equals in class java.lang.Object

compareTo

public final long compareTo(ValueComponent component)
Returns the difference between this ValueComponent and another ValueComponent.
Parameters:
component - Another ValueComponent.
Returns:
The differences between the ValueComponents.

toString

public final java.lang.String toString()
Converts this ValueComponent to a String.
Returns:
String representation of this object.
Overrides:
toString in class java.lang.Object

isWithinBounds

public final boolean isWithinBounds(long lowerBound,
                                    long upperBound)
Determines if an object is within specific Value bounds.
Parameters:
lowerBound - The lower bound of the Value.
upperBound - The upper bound of the Value.
Returns:
True if the object is within the bounds (inclusive), false otherwise.


API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated December 17 2003 1746.