For Babelfish Release 1.11.1.3

AttributeValue Class

Definition

Namespace: Scopos.BabelFish.DataModel.AttributeValue
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
[SerializableAttribute]
public class AttributeValue
Inheritance
Object    AttributeValue

Properties

Attribute Returns a copy of the Attributre that defines this Attribute Value
AttributeValueAppellation If applicable, returns the AttributeValueAppellation for this AttributeValue. Only applicable if the underlying definition is a simple attribute, and the field type is CLOSED, and the AttributeField is a string
IsMultipleValue Returns a boolean indicating if the Attribute Value is allowed to have multiple values. This is defined within the Attribute's definition.
SetName View the SetName of the AttributeValue. Assignment is done at instantiation.

Methods

AddFieldKey Add Field Key for multiple = true
CreateAsync(SetName) 
CreateAsync(SetName, JsonElement) 
DeleteFieldKey Delete record for Field Key
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetAttributeField Helper function, returns the AttributeFeild with name fieldName, from the Attribute's definition
GetAttributeFieldKeys 
GetDefinitionKeyFieldName Only one AttributeField within an ATTRIBUTE may have Key set to true. https://support.orionscoringsystem.com/definition-attributefield.html
GetDefinitionRequiredFields 
GetDefintionFields 
GetFieldValue Special case for returning a field value when the Attribute is a Simple Attribute.
GetFieldValue(String) Intended for Attributes with MultipleValues set to false (not a list). Retreives the field value based on the passed in fieldName. If fieldName has not yet been set, the default value for the feild is returned. Caller is responsible for casting to the approrpirate .NET type.
GetFieldValue(String, String) Intended for Attributes with MultipleValues set to true (is a list). Retreives the field value based on the passed in fieldName and fieldKey. If fieldName has not yet been set, or the fieldKey is not yet used, the default value for the feild is returned. Caller is responsible for casting to the approrpirate .NET type.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
SetFieldValue(Object) Special case for setting the field value on a Simple Attribute. Throws an exception if the Attribute is not simple.
SetFieldValue(String, Object) Set Attribute Value for Field Name
SetFieldValue(String, Object, String) Set Attribute Value for Field Name with Field Key
ToStringReturns a string that represents the current object.
(Overrides ObjectToString)

See Also