com.novell.admin.ns.nds
Class TimeStampFacade

java.lang.Object
  extended bycom.novell.admin.ns.ValueListFacade
      extended bycom.novell.admin.ns.nds.TimeStampFacade

public final class TimeStampFacade
extends ValueListFacade

Facade for NDS Time Stamp syntax.


Field Summary
 
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.
static ValueList createValueList(long seconds, int replica, int event, Syntax syn)
          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 - Not used.
Method Detail

createValueList

public static ValueList createValueList(long seconds,
                                        int replica,
                                        int event)
Creates an NDS Time Stamp ValueList. This form is provided for backward compatibility and assumes NDS syntax.

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.

createValueList

public static ValueList createValueList(long seconds,
                                        int replica,
                                        int event,
                                        Syntax syn)
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.
syn - The syntax for this value, either NDSSyntax.SYN_TIMESTAMP or LDAPSyntax.SYN_NDS_TIMESTAMP.
Returns:
A new Time Stamp ValueList.

getEvent

public int getEvent()
Returns the event.

Returns:
The event.

getReplica

public int getReplica()
Returns the replica number.

Returns:
The replica number.

getSeconds

public int getSeconds()
Returns the time in seconds.

Returns:
The seconds.

setEvent

public void setEvent(int event)
Sets the event.

Parameters:
event - The event.

setReplica

public void setReplica(int replica)
Set the replica number.

Parameters:
replica - The replica number.

setSeconds

public void setSeconds(int seconds)
Sets the time in seconds.

Parameters:
seconds - The seconds.


API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated September 2 2004 0111.