com.novell.admin.ns.nds
Class TimeStampFacade

java.lang.Object
  |
  +--com.novell.admin.ns.ValueListFacade
        |
        +--com.novell.admin.ns.nds.TimeStampFacade

public final class TimeStampFacade
extends ValueListFacade

Facade for NDS Time Stamp syntax.


Fields inherited from class com.novell.admin.ns.ValueListFacade
valueList
 
Constructor Summary
TimeStampFacade(ValueList comp)
          Facade constructor
 
Method Summary
static ValueList createValueList(long seconds, int replica, int event)
          Creates an NDS Time Stamp ValueList.
 int getEvent()
          Returns the event.
 int getReplica()
          Returns the replica number.
 int getSeconds()
          Returns the time in seconds.
 void setEvent(int event)
          Sets the event.
 void setReplica(int replica)
          Set the replica number.
 void setSeconds(int seconds)
          Sets the time in seconds.
 
Methods inherited from class com.novell.admin.ns.ValueListFacade
getValueList, replaceBooleanValue, replaceHexValue, replaceLongValue, replaceStringValue, replaceValueList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeStampFacade

public TimeStampFacade(ValueList comp)
                throws IncompatibleComponentException
Facade constructor
Parameters:
comp - The ValueList that represents the Time Stamp data.
Throws:
IncompatibleComponentException - Thrown if the 'valueList' syntax is not NDSSyntax.SYN_TIMESTAMP.
Method Detail

createValueList

public static ValueList createValueList(long seconds,
                                        int replica,
                                        int event)
Creates an NDS Time Stamp ValueList.
Parameters:
seconds - Refer to NDS Schema Specification.
replica - Refer to NDS Schema Specification.
event - Refer to NDS Schema Specification.
Returns:
A new Time Stamp ValueList.

getSeconds

public int getSeconds()
Returns the time in seconds.
Returns:
The seconds.

getReplica

public int getReplica()
Returns the replica number.
Returns:
The replica number.

getEvent

public int getEvent()
Returns the event.
Returns:
The event.

setSeconds

public void setSeconds(int seconds)
Sets the time in seconds.
Parameters:
seconds - The seconds.

setReplica

public void setReplica(int replica)
Set the replica number.
Parameters:
replica - The replica number.

setEvent

public void setEvent(int event)
Sets the event.
Parameters:
event - The event.


API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.