Click or drag to resize

CaexValue Class

This class can be used for a type based access to the value attributes of a CAEX element. It is required, that the AttributeDataType is set according to the XSD Schema types. If the AttributeDataType is not defined, the type xs:string is assumed and the value is not encoded/decoded. CAEX Elements, which use this feature are OrdinalScaledTypeType, NominalScaledTypeType and AttributeTypeType and their derivations. The interface IAttributeValueType is implemented by these classes. The type based conversion is implemented, using XML specific decoding and encoding methods, defined in the .NET class XmlConvert. The decoded/encoded value for an attribute can be accessed via the Value property.
Inheritance Hierarchy
SystemObject
  Aml.Engine.CAEX.ExtensionsCaexValue

Namespace: Aml.Engine.CAEX.Extensions
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public sealed class CaexValue : IComparable

The CaexValue type exposes the following members.

Properties
 NameDescription
Public propertyDefaultValue Gets a default decoded value according to the defined AttributeDataType
Public propertyFriendlyValueString Gets a friendly string of the Attribute value. This string is not in any case equal to the attribute value string, which is always an encoded string, according to the AttributeDataType. The conversion format used to convert the value to its string representation is fix and cannot be changed.
Public propertyTypeAttribute Gets the Attribute, which defines the AttributeDataType.
Public propertyTypeCodeOfAttribute Gets the .NET Type code which is converted from the XSD Schema attribute defined in the TypeAttribute.
Public propertyValue Gets and sets the value attribute using the type specific XML conversion method. If no AttributeDataType is defined, the value is encoded / decoded as it is.
Public propertyValueElement Gets the Element, which contains the Attribute value.
Top
Methods
 NameDescription
Public methodCompareTo Type based comparison of attribute values.
Public methodEquals Determines whether the specified Object, is equal to this instance.
(Overrides ObjectEquals(Object))
Public methodGetHashCode Returns a hash code for this instance.
(Overrides ObjectGetHashCode)
Public methodIsBinaryValue Determines if the type code derived from the Attribute datatype is a binary type.
Public methodIsDateTimeType Determines if the type code derived from the Attribute datatype is a date time type. The following type codes are recognized as date time types:
Public methodIsNumericOrBooleanValue Determines if the type code derived from the Attribute datatype is a numeric or boolean type. For a lit of numeric types .
Public methodIsNumericValue Determines if the type code derived from the Attribute datatype is a numeric type. The following type codes are recognized as numeric types:
Public methodIsPartOfDateValue Determines if the type code derived from the Attribute datatype defined a part of a date. The datatype ushort is used for a date part. The following type codes are recognized as date parts:
Public methodIsStringValue Determines if the type code derived from the Attribute datatype is a string type. The following type codes are recognized as string types:
Public methodIsValidStringValue Checks for all string data types, if the provided string is valid according to the defined data type TypeCodeOfAttribute. The supported types are :
Public methodStatic memberTypeCode Translates an XSd schema type (such as "xs:double") to an XmlTypeCode.
Top
See Also