Xindice API
version 1.2m1

org.apache.xindice.core.meta
Class TimeRecord

java.lang.Object
  extended byorg.apache.xindice.core.meta.TimeRecord

public class TimeRecord
extends Object

Encapsulates the modified/create times used in MetaData.

Version:
$Revision: 541508 $, $Date: 2007-05-24 21:54:12 -0400 (Thu, 24 May 2007) $

Constructor Summary
TimeRecord(long created, long modified)
           
 
Method Summary
 long getCreatedTime()
          Returns the create time stored here.
 long getModifiedTime()
          Returns the modified time stored here.
 void setCreatedTime(long created)
          Sets the create time stored here.
 void setModifiedTime(long mod)
          Sets the modified time stored here.
 String toString()
          Return a string version of the times encapsulated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeRecord

public TimeRecord(long created,
                  long modified)
Method Detail

getCreatedTime

public long getCreatedTime()
Returns the create time stored here.

Returns:
long

getModifiedTime

public long getModifiedTime()
Returns the modified time stored here.

Returns:
long

setCreatedTime

public void setCreatedTime(long created)
Sets the create time stored here.

Parameters:
created - The new create time

setModifiedTime

public void setModifiedTime(long mod)
Sets the modified time stored here.

Parameters:
mod - The new modified time

toString

public String toString()
Return a string version of the times encapsulated. It should look like [cr=CREATE mod=MOD]

Returns:
The string representing the time

Xindice API
version 1.2m1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.