jSyncManager

org.jSyncManager.API.Conduit.Tools.vTypes.vCommon
Class vResource

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byorg.jSyncManager.API.Conduit.Tools.vTypes.vCommon.vResource
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class vResource
extends java.util.HashMap

Author:
dingodave
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.HashMap
 
Nested classes inherited from class java.util.AbstractMap
 
Field Summary
 java.util.ResourceBundle addtlResources
          Additional resourceBundle file to pull into resource list for each instantiation, can be null or non-existent in subclasses.
 
Fields inherited from class java.util.HashMap
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
vResource()
          Creates a new instance of vResource
vResource(java.lang.String newResource)
          Creates a new instance of vResource
 
Method Summary
 java.lang.String get(java.lang.String vname, java.lang.String key)
          Finds the first resource value with the given key.
 java.util.ResourceBundle getAddtlResources()
          Getter for property addtlResources.
protected  void getAll()
          Retrieves all resources.
 java.util.HashMap getAll(java.lang.String partialkey)
          Finds all resources starting with the given partial key.
 void setAddtlResources(java.util.ResourceBundle addtlResources)
          Setter for property addtlResources.
 void setAddtlResources(java.lang.String addtlResources)
          Setter for property addtlResources.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

addtlResources

public java.util.ResourceBundle addtlResources
Additional resourceBundle file to pull into resource list for each instantiation, can be null or non-existent in subclasses.

Constructor Detail

vResource

public vResource()
Creates a new instance of vResource


vResource

public vResource(java.lang.String newResource)
Creates a new instance of vResource

Method Detail

getAll

protected void getAll()
Retrieves all resources. This method should be overridden in each subclass of vObject to look in class-specific resource files for additional non-generic resources.


getAll

public java.util.HashMap getAll(java.lang.String partialkey)
Finds all resources starting with the given partial key.

Parameters:
partialkey - String value of partial key to be searched for.
Returns:
Enumeration of key values found. This can be an empty Enumeration, but not equal to null.

get

public java.lang.String get(java.lang.String vname,
                            java.lang.String key)
Finds the first resource value with the given key.

Parameters:
key - String value of key to be searched for.
Returns:
String value of found key, or null if not found.

getAddtlResources

public java.util.ResourceBundle getAddtlResources()
Getter for property addtlResources.

Returns:
Value of property addtlResources.

setAddtlResources

public void setAddtlResources(java.util.ResourceBundle addtlResources)
Setter for property addtlResources.

Parameters:
addtlResources - New value of property addtlResources.
Throws:
PropertyVetoException - if some vetoable listeners reject the new value

setAddtlResources

public void setAddtlResources(java.lang.String addtlResources)
Setter for property addtlResources.

Parameters:
addtlResources - New value of property addtlResources.
Throws:
PropertyVetoException - if some vetoable listeners reject the new value

jSyncManager

Copyright (c) 1999 - 2004 Brad BARCLAY and others. All Rights Reserved.