PreEmptive Analytics .NET API  1.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | List of all members
PreEmptive.Analytics.Common.DictionaryAttributeLimiter Class Reference

An implementation of IAttributeLimiter using Dictionary<TAG, Dictionary<ATTRIBUTE, LIMIT>> More...

Inherits Dictionary< string, Dictionary< string, int >>, and PreEmptive.Analytics.Common.IAttributeLimiter.

Public Member Functions

 DictionaryAttributeLimiter ()
 Create a DictionaryAttributeLimiter More...
 
 DictionaryAttributeLimiter (IDictionary< string, Dictionary< string, int >> clone)
 Create a DictionaryAttributeLimiter, making a deep clone of the chosen existing dictionary More...
 
int MaxSize (string tagname, string attribute)
 The maximum size of the field specified by the specified tag and attribute name Anything over this amount of raw characters(not bytes and without XML escaping) will be truncated More...
 
void Set (string tag, string attribute, int limit)
 Set the maximum size of the field specified by the specified tag and attribute name More...
 
DictionaryAttributeLimiter Clone ()
 Make a deep clone of this dictionary More...
 

Detailed Description

An implementation of IAttributeLimiter using Dictionary<TAG, Dictionary<ATTRIBUTE, LIMIT>>

Constructor & Destructor Documentation

PreEmptive.Analytics.Common.DictionaryAttributeLimiter.DictionaryAttributeLimiter ( )
PreEmptive.Analytics.Common.DictionaryAttributeLimiter.DictionaryAttributeLimiter ( IDictionary< string, Dictionary< string, int >>  clone)

Create a DictionaryAttributeLimiter, making a deep clone of the chosen existing dictionary

Parameters
cloneThe Dictionary or DictionaryAttributeLimiter to clone

Member Function Documentation

DictionaryAttributeLimiter PreEmptive.Analytics.Common.DictionaryAttributeLimiter.Clone ( )

Make a deep clone of this dictionary

Returns
The cloned object
int PreEmptive.Analytics.Common.DictionaryAttributeLimiter.MaxSize ( string  tagname,
string  attribute 
)

The maximum size of the field specified by the specified tag and attribute name Anything over this amount of raw characters(not bytes and without XML escaping) will be truncated

Parameters
tagnameThe tag name specification for the field on the server
attributeThe attribute name specification for the field on the server
Returns
The maximum amount of characters for that field. Null should be returned if there is no limit

Implements PreEmptive.Analytics.Common.IAttributeLimiter.

void PreEmptive.Analytics.Common.DictionaryAttributeLimiter.Set ( string  tag,
string  attribute,
int  limit 
)

Set the maximum size of the field specified by the specified tag and attribute name

Parameters
tagThe tag name specification for the field on the server
attributeThe attribute name specification for the field on the server
limitThe maximum amount of raw characters(whole UTF-8 characters, not bytes, and unescaped)

The documentation for this class was generated from the following file: