FileDocCategorySizeDatePackage
ResourcePropertyImpl.javaAPI DocGlassfish v2 API3057Fri May 04 22:35:10 BST 2007com.sun.enterprise.repository

ResourcePropertyImpl

public class ResourcePropertyImpl extends Object implements ResourceProperty, Serializable

Fields Summary
private String
name_
private Object
value_
Constructors Summary
public ResourcePropertyImpl(String name)

        name_  = name;
        value_ = null;
    
public ResourcePropertyImpl(String name, Object value)

        name_  = name;
        value_ = value;
    
Methods Summary
public booleanequals(java.lang.Object other)

        boolean equal = false;
        if( other instanceof ResourceProperty ) {
            ResourceProperty otherProp = (ResourceProperty) other;
            equal = this.name_.equals(otherProp.getName());
        }
        return equal;
    
public java.lang.StringgetName()

        return name_;
    
public java.lang.ObjectgetValue()

        return value_;
    
public inthashCode()

        return name_.hashCode();
    
public voidsetValue(java.lang.Object value)

        value_ = value;
    
public java.lang.StringtoString()

        return "ResourceProperty : < " + getName() + " , " + getValue() +
            " >";