org.n52.security.common.attributes
Interface AttributeValue

All Known Implementing Classes:
AnyObjectAttributeValue, AttributeValueAdapter, BooleanAttributeValue, DoubleAttributeValue, EmptyAttributeValue, IntegerAttributeValue, StringAttributeValue

public interface AttributeValue

The interface AttributeValue encapsulates different value types.

Version:
$Revision: 852 $
Author:
Marko Reiprecht

Field Summary
static AttributeValue EMPTY_VALUE
          Field EMPTY_VALUE represents a null or empty attribute value.
 
Method Summary
 java.lang.String getTypeName()
          Gets the type name of the concrete value.
 java.lang.Object getUnspecifiedValue()
          Gets the concrete value as "object".
 

Field Detail

EMPTY_VALUE

static final AttributeValue EMPTY_VALUE
Field EMPTY_VALUE represents a null or empty attribute value. Instead of creating instances of class EmptyAttributeValue this field shall be used.

Method Detail

getTypeName

java.lang.String getTypeName()
Gets the type name of the concrete value. This should be a short cut to getUnspecifiedValue().getClass().getName(), but can also be used for other purposes, e.g. xacml type names etc.

Returns:
a type name.

getUnspecifiedValue

java.lang.Object getUnspecifiedValue()
Gets the concrete value as "object". But typical there is a cast to a concrete AttributeValue class.

Returns:
the wrapped concrete value.


Copyright © 2004-2009 52north.org. All Rights Reserved.