org.n52.security.common.attributes
Interface AttributeValue

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

public interface AttributeValue

Different value types.

Version:
$Revision: 3422 $
Author:
Marko Reiprecht

Field Summary
static AttributeValue EMPTY_VALUE
          Field EMPTY_VALUE represents a null or empty attribute value.
 
Method Summary
 String getTypeName()
          Gets the type name of the concrete value.
 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

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

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–2014 52north.org. All rights reserved.