com.cafesoft.cams.attr
Class StandardAttribute

java.lang.Object
  |
  +--com.cafesoft.cams.attr.StandardAttribute
All Implemented Interfaces:
Attribute

public class StandardAttribute
extends Object
implements Attribute

StandardAttribute is the standard implemenation of an Attribute, which represents metadata about an AccessControlRequest attribute and a possible AttributeValue if available. An Attribute is fully-qualified by the following:

Since:
4/29/2004

Constructor Summary
StandardAttribute(URI attrCategory, URI type, URI id, AttributeValue value)
          Create a new StandardAttribute instance.
 
Method Summary
 boolean equals(Object other)
          Override to determine equality with another object instance.
 URI getCategory()
          Get the attribute category.
 URI getId()
          Get the attribute identifier.
 URI getType()
          Get the attribute type.
 AttributeValue getValue()
          Get the attribute value.
 int hashCode()
          Override to provide appropriate hashcode for contents.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardAttribute

public StandardAttribute(URI attrCategory,
                         URI type,
                         URI id,
                         AttributeValue value)
Create a new StandardAttribute instance.

Parameters:
attrCategory - the attribute category.
type - the attribute type.
id - the attribute identifier.
value - the attribute value or null if no value.
Method Detail

getCategory

public URI getCategory()
Get the attribute category.

Specified by:
getCategory in interface Attribute
Returns:
the attribute's category as a URI.

getType

public URI getType()
Get the attribute type.

Specified by:
getType in interface Attribute
Returns:
the attribute's type as a URI.

getId

public URI getId()
Get the attribute identifier.

Specified by:
getId in interface Attribute
Returns:
the attribute's identifier as a URI.

getValue

public AttributeValue getValue()
Get the attribute value.

Specified by:
getValue in interface Attribute
Returns:
the AttributeValue if available or null if not available.

equals

public boolean equals(Object other)
Override to determine equality with another object instance.

Overrides:
equals in class Object

hashCode

public int hashCode()
Override to provide appropriate hashcode for contents.

Overrides:
hashCode in class Object
Returns:
an integer value used to compare objects of this type.


Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.