com.bbn.swede.core.libraries
Class LibraryEntryConfiguration

java.lang.Object
  extended bycom.bbn.swede.core.libraries.AbstractConfiguration
      extended bycom.bbn.swede.core.libraries.LibraryEntryConfiguration
All Implemented Interfaces:
IConfiguration

public class LibraryEntryConfiguration
extends AbstractConfiguration

A subclass of AbstractConfiguration with convenience accessors, mutators and constants specified for LibraryEntries.

Each of the getters and setters methods uses an internal string value to specify the value. For example, a call to setName(aNameValue) is exactly identical to setSystemProperty(ENTRY_NAME_PROPERTY, aNameValue).

Author:
aperezlo

Field Summary
static String ENTRY_DATE_FORMAT_STR
          Property name for library entry download date.
(package private) static String ENTRY_NAME_PROPERTY
          Property name for library entry name.
static String ENTRY_UPDATE_SCHEDULE_AUTOMATIC_STR
          Property value constant specifying automatica library updates.
static String ENTRY_UPDATE_SCHEDULE_MANUAL_STR
          Property value constant specifying manual library updates.
(package private) static String ENTRY_UPDATE_SCHEDULE_PROPERTY
          Property name for library entry update schedule.
(package private) static String ENTRY_UPDATE_URL_PROPERTY
          Property name for library entry update URL.
(package private) static String ENTRY_URI_PROPERTY
          Property name for library entry base URI.
 
Fields inherited from interface com.bbn.swede.core.libraries.IConfiguration
SYSTEM_SUFFIX, USER_SUFFIX
 
Constructor Summary
LibraryEntryConfiguration()
           
 
Method Summary
 String getName()
          Retrieves the entry's name.
 IConfigurationValidator getPropertiesValidator()
          Returns an IConfigurationValidator object capable of validating this IConfiguration object.
 String getUpdateSchedule()
          Retrieves the entry's update schedule.
 String getURI()
          Retrieves the entry's URI.
 String getURL()
          Retrieves the entry's URL.
 void setName(String s)
          Sets the entry name.
 void setUpdateSchedule(String s)
          Sets the entry's update schedule.
 void setURI(String s)
          Sets the entry URI.
 void setURL(String s)
          Sets the entry URL.
 
Methods inherited from class com.bbn.swede.core.libraries.AbstractConfiguration
getProperties, getSystemProperties, getSystemProperty, getUserProperties, getUserProperty, load, removeSystemProperty, removeUserProperty, setProperties, setSystemProperties, setSystemProperty, setUserProperties, setUserProperty, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENTRY_NAME_PROPERTY

static final String ENTRY_NAME_PROPERTY
Property name for library entry name.

See Also:
Constant Field Values

ENTRY_URI_PROPERTY

static final String ENTRY_URI_PROPERTY
Property name for library entry base URI.

See Also:
Constant Field Values

ENTRY_UPDATE_SCHEDULE_MANUAL_STR

public static final String ENTRY_UPDATE_SCHEDULE_MANUAL_STR
Property value constant specifying manual library updates.

See Also:
Constant Field Values

ENTRY_UPDATE_SCHEDULE_AUTOMATIC_STR

public static final String ENTRY_UPDATE_SCHEDULE_AUTOMATIC_STR
Property value constant specifying automatica library updates.

See Also:
Constant Field Values

ENTRY_UPDATE_SCHEDULE_PROPERTY

static final String ENTRY_UPDATE_SCHEDULE_PROPERTY
Property name for library entry update schedule.

See Also:
Constant Field Values

ENTRY_UPDATE_URL_PROPERTY

static final String ENTRY_UPDATE_URL_PROPERTY
Property name for library entry update URL.

See Also:
Constant Field Values

ENTRY_DATE_FORMAT_STR

public static final String ENTRY_DATE_FORMAT_STR
Property name for library entry download date.

See Also:
Constant Field Values
Constructor Detail

LibraryEntryConfiguration

public LibraryEntryConfiguration()
Method Detail

getPropertiesValidator

public IConfigurationValidator getPropertiesValidator()
Description copied from interface: IConfiguration
Returns an IConfigurationValidator object capable of validating this IConfiguration object.

Specified by:
getPropertiesValidator in interface IConfiguration
Specified by:
getPropertiesValidator in class AbstractConfiguration

setURI

public void setURI(String s)
Sets the entry URI. This is the base URI of the entry, as specified within the document itself.

Parameters:
s - The new URI

getURI

public String getURI()
Retrieves the entry's URI. This is the base URI of the entry, as specified within the document itself.

Returns:
The URI

setName

public void setName(String s)
Sets the entry name.

Parameters:
s - The new name

getName

public String getName()
Retrieves the entry's name.

Returns:
the name

setURL

public void setURL(String s)
Sets the entry URL. This is the URL the entry was downloaded from.

Parameters:
s - The new URL

getURL

public String getURL()
Retrieves the entry's URL. This is the URL the entry was downloaded from.

Returns:
The URL

getUpdateSchedule

public String getUpdateSchedule()
Retrieves the entry's update schedule.

Returns:
The update schedule

setUpdateSchedule

public void setUpdateSchedule(String s)
Sets the entry's update schedule.

Parameters:
s - The new update schedule


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.