org.bibalex.daf.managers.resourcemanager
Class DefaultResourceElement

java.lang.Object
  extended by org.bibalex.daf.managers.resourcemanager.ResourceElement
      extended by org.bibalex.daf.managers.resourcemanager.DefaultResourceElement

public class DefaultResourceElement
extends ResourceElement

This class represents a default resource element. This element is returned by ResourceManager if the getElement method fails.

Author:
Shehab.Kamal

Field Summary
private  java.lang.String name
           
 
Constructor Summary
DefaultResourceElement(java.lang.String name)
          Creates a new instacne of DefaultResourceElement.
 
Method Summary
 java.lang.String getCaption()
          Gets the caption of this element.
 java.lang.String getName()
          Gets the name of this element.
 java.lang.String getValue(java.lang.String key)
          Gets the value of the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Constructor Detail

DefaultResourceElement

public DefaultResourceElement(java.lang.String name)
Creates a new instacne of DefaultResourceElement.

Parameters:
name - The name of the element that couldn't be retrieved.
Method Detail

getName

public java.lang.String getName()
Gets the name of this element.

Overrides:
getName in class ResourceElement
Returns:
The default message "Error getting 'Name' for element " + name.

getCaption

public java.lang.String getCaption()
Gets the caption of this element.

Overrides:
getCaption in class ResourceElement
Returns:
The default message "Error getting 'Caption' for element " + name.

getValue

public java.lang.String getValue(java.lang.String key)
Gets the value of the given key.

Overrides:
getValue in class ResourceElement
Parameters:
key - The key to search for its value.
Returns:
The default message "Error getting 'Key' for element " + name.