|
Project Aristotle - ArisID Attribute Services | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAttributeValue
An Interface representing common access features for values represented in the AttributeServices API.
Field Summary | |
---|---|
static int |
VALUE_TYPE_EMPTY
|
static int |
VALUE_TYPE_MULTI
|
static int |
VALUE_TYPE_SINGLE
|
static int |
VALUE_TYPE_UNDEFINED
|
Method Summary | |
---|---|
boolean |
add(java.lang.String value)
Add a String value to the list of values. |
boolean |
addBinary(byte[] value)
Adds a binary value to the list of Attribute Values. |
boolean |
compare(java.lang.String value)
|
boolean |
compareValueExact(IAttributeValue value)
|
boolean |
compareValueIgnoreCaseExact(IAttributeValue value)
|
boolean |
contains(java.lang.String value)
Tests whether the specified value is contained. |
boolean |
containsBinary(byte[] value)
Tests whether the specified binary value is contained. |
boolean |
equals(java.lang.Object value)
|
java.lang.String |
get(int i)
Returns a String representation of the value at index i where 0 is the first element in the array. |
byte[] |
getBinary(int i)
Returns a value in binary form. |
java.lang.Exception |
getError()
Returns the error associated with the value if present |
java.lang.String |
getNameIdRef()
Returns the Attribute associated with the value as declared in CARML |
IPolicy |
getPolicy()
Returns dynamic WS-Policy constraints that are to be applied to the value. |
int |
getValueType()
Returns whether the value is either undefined, empty, contains single or multiple values. |
boolean |
isError()
Returns whether the current entity has an error condition. |
boolean |
isUndefined()
Returns whether the current value is undefined. |
java.util.Iterator<java.lang.String> |
iterator()
|
java.lang.String |
remove(int i)
Returns the i-th element in the array where 0 is the first element. |
byte[] |
removeBinary(int i)
Removes the i th element and returns the binary value removed. |
void |
setPolicy(IPolicy transactionConstraints)
Allows dynamic privacy policy constraints to be applied in the form of a WS-Policy. |
int |
size()
Returns the number of elements currently available. |
Field Detail |
---|
static final int VALUE_TYPE_UNDEFINED
static final int VALUE_TYPE_EMPTY
static final int VALUE_TYPE_SINGLE
static final int VALUE_TYPE_MULTI
Method Detail |
---|
boolean equals(java.lang.Object value)
equals
in class java.lang.Object
java.lang.Exception getError()
java.lang.String getNameIdRef()
boolean isError()
boolean isUndefined()
AttributeValue
.
int getValueType()
VALUE_TYPE_UNDEFINED
, VALUE_TYPE_EMPTY
,
VALUE_TYPE_SINGLE
, or VALUE_TYPE_MULTI
.int size()
java.util.Iterator<java.lang.String> iterator()
boolean compareValueIgnoreCaseExact(IAttributeValue value)
boolean compareValueExact(IAttributeValue value)
boolean compare(java.lang.String value)
value
- to be compared
compareValueExact(IAttributeValue)
.java.lang.String get(int i)
i
- the index of the String value to be returned where 0 is the
first element to be returned.
boolean add(java.lang.String value)
value
-
java.lang.String remove(int i)
i
- - the index of the element (starting from 0) to be returned.
boolean contains(java.lang.String value)
value
-
boolean addBinary(byte[] value)
value
-
boolean containsBinary(byte[] value)
value
-
byte[] getBinary(int i)
i
- The element to return (where 0 is the first element)
byte[] removeBinary(int i)
i
- The element to remove (where 0 is the first)
IPolicy getPolicy()
DigitalSubject.getAttributeValue(String)
, it contains
transactional constraints specified by the attribute authority.
IPolicy
) container. To
parse/set transactional constraints, use the
PolicyHandler
class.void setPolicy(IPolicy transactionConstraints)
transactionConstraints
- Privacy constraints in a WS-Policy (IPolicy
) container.
To parse/set dynamic constraints, use the
PolicyHandler
class.
|
OpenLiberty.org - Licensed under Apache APL 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |