JSCAPE MFT Server

com.jscape.util
Class TaggedProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by com.jscape.util.TaggedProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

public class TaggedProperties
extends java.util.Properties

Properties with additional attributes.

Author:
Alex Usun
See Also:
Serialized Form

Nested Class Summary
static class TaggedProperties.TagComparator
          Properties tag comparator.
 
Constructor Summary
TaggedProperties()
          Creates a new properties instance.
TaggedProperties(java.util.ResourceBundle bundle)
          Creates a new properties instance.
TaggedProperties(java.lang.String tag)
          Creates a new properties instance.
TaggedProperties(java.lang.String tag, java.lang.String displayName, java.util.Properties properties)
          Creates a new properties instance.
TaggedProperties(TaggedProperties that)
          Copy constructor.
 
Method Summary
 java.util.ResourceBundle asResourceBundle()
          Returns current properties as ResourceBundle instance.
 boolean equals(java.lang.Object o)
           
 java.lang.String getDisplayName()
          Returns display name.
 java.lang.String getTag()
          Returns tag value.
 int hashCode()
           
 java.util.Enumeration keys()
           
 void setDefaults(TaggedProperties value)
          Sets default properties.
 void setDisplayName(java.lang.String value)
          Sets a new dispaly name.
 void setTag(java.lang.String value)
          Sets tag value.
 java.lang.String toString()
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaggedProperties

public TaggedProperties()
Creates a new properties instance.


TaggedProperties

public TaggedProperties(java.lang.String tag)
Creates a new properties instance.

Parameters:
tag - a tag value

TaggedProperties

public TaggedProperties(java.lang.String tag,
                        java.lang.String displayName,
                        java.util.Properties properties)
Creates a new properties instance.

Parameters:
tag - a tag value
displayName - properties display name
properties - parent properties

TaggedProperties

public TaggedProperties(java.util.ResourceBundle bundle)
Creates a new properties instance.

Parameters:
bundle - a resource bundle

TaggedProperties

public TaggedProperties(TaggedProperties that)
Copy constructor.

Parameters:
that - instance to copy
Method Detail

getTag

public java.lang.String getTag()
Returns tag value.

Returns:
a tag value

setTag

public void setTag(java.lang.String value)
Sets tag value.

Parameters:
value - new tag value

getDisplayName

public java.lang.String getDisplayName()
Returns display name.

Returns:
a display name

setDisplayName

public void setDisplayName(java.lang.String value)
Sets a new dispaly name.

Parameters:
value - a new display name

setDefaults

public void setDefaults(TaggedProperties value)
Sets default properties.

Parameters:
value - default properties

keys

public java.util.Enumeration keys()
Overrides:
keys in class java.util.Hashtable<java.lang.Object,java.lang.Object>

asResourceBundle

public java.util.ResourceBundle asResourceBundle()
Returns current properties as ResourceBundle instance.

Returns:
a ResourceBundle instance

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
equals in class java.util.Hashtable<java.lang.Object,java.lang.Object>

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
hashCode in class java.util.Hashtable<java.lang.Object,java.lang.Object>

toString

public java.lang.String toString()
Overrides:
toString in class java.util.Hashtable<java.lang.Object,java.lang.Object>

JSCAPE MFT Server

Copyright © JSCAPE LLC. 1999-2015. All Rights Reserved