Interface for containing different type of <Attribute> node for both policy and request. More...
#include <AttributeValue.h>
Public Member Functions | |
virtual bool | equal (AttributeValue *value, bool check_id=true)=0 |
virtual std::string | encode ()=0 |
virtual std::string | getType ()=0 |
virtual std::string | getId ()=0 |
Interface for containing different type of <Attribute> node for both policy and request.
<Attribute> contains different "Type" definition; Each type of <Attribute> needs different approach to compare the value. Any specific class which is for processing specific "Type" shoud inherit this class. The "Type" supported so far is: StringAttribute, DateAttribute, TimeAttribute, DurationAttribute, PeriodAttribute, AnyURIAttribute, X500NameAttribute
virtual std::string ArcSec::AttributeValue::encode | ( | ) | [pure virtual] |
encode the value in a string format
Implemented in ArcSec::AnyURIAttribute, ArcSec::BooleanAttribute, ArcSec::DateTimeAttribute, ArcSec::TimeAttribute, ArcSec::DateAttribute, ArcSec::DurationAttribute, ArcSec::PeriodAttribute, ArcSec::GenericAttribute, ArcSec::StringAttribute, and ArcSec::X500NameAttribute.
virtual bool ArcSec::AttributeValue::equal | ( | AttributeValue * | value, | |
bool | check_id = true | |||
) | [pure virtual] |
Evluate whether "this" equale to the parameter value
Implemented in ArcSec::AnyURIAttribute, ArcSec::BooleanAttribute, ArcSec::DateTimeAttribute, ArcSec::TimeAttribute, ArcSec::DateAttribute, ArcSec::DurationAttribute, ArcSec::PeriodAttribute, ArcSec::GenericAttribute, ArcSec::StringAttribute, and ArcSec::X500NameAttribute.
virtual std::string ArcSec::AttributeValue::getId | ( | ) | [pure virtual] |
Get the AttributeId of the <Attribute>
Implemented in ArcSec::AnyURIAttribute, ArcSec::BooleanAttribute, ArcSec::DateTimeAttribute, ArcSec::TimeAttribute, ArcSec::DateAttribute, ArcSec::DurationAttribute, ArcSec::PeriodAttribute, ArcSec::GenericAttribute, ArcSec::StringAttribute, and ArcSec::X500NameAttribute.
virtual std::string ArcSec::AttributeValue::getType | ( | ) | [pure virtual] |
Get the DataType of the <Attribute>
Implemented in ArcSec::AnyURIAttribute, ArcSec::BooleanAttribute, ArcSec::DateTimeAttribute, ArcSec::TimeAttribute, ArcSec::DateAttribute, ArcSec::DurationAttribute, ArcSec::PeriodAttribute, ArcSec::GenericAttribute, ArcSec::StringAttribute, and ArcSec::X500NameAttribute.