Ejemplo n.º 1
0
        /// <summary>
        /// Tests if the matrix complies with the schema with the passed schema identifier.
        /// </summary>
        /// <param name="schemaIdentifier">The identifier of the schema to test for.</param>
        /// <returns>True if the matrix complies with the specified schema, otherwise false.</returns>
        public bool CompliesWithSchema(string schemaIdentifier)
        {
            var schemaIdentifiers = SchemaIdentifiers;

            return(schemaIdentifiers != null
                ? InternalTools.CompliesWithSchema(schemaIdentifiers, schemaIdentifier)
                : false);
        }
Ejemplo n.º 2
0
        GlowMinMax GetMinMax(BerTag tag)
        {
            var contents = EnsureContents();

            if (contents != null)
            {
                return(InternalTools.GetMinMax(contents, tag));
            }

            return(null);
        }
Ejemplo n.º 3
0
        GlowValue GetValue(BerTag tag)
        {
            var contents = EnsureContents();

            if (contents != null)
            {
                return(InternalTools.GetValue(contents, tag));
            }

            return(null);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Override this in application-defined node types to provide validation.
        /// Called when a node has been decoded.
        /// Overriden to validate Identifier.
        /// </summary>
        /// <param name="message">When returning false, set this to a string describing the kind of error.</param>
        /// <returns>False if validation failed, otherwise true.</returns>
        protected override bool ValidateAfterDecodeOverride(out string message)
        {
            var identifier = Identifier;

            if (identifier != null)
            {
                if (InternalTools.IsIdentifierValid(Identifier) == false)
                {
                    HasValidationErrors = true;
                    message             = String.Format("Invalid Identifier \"{0}\"", identifier);
                    return(false);
                }
            }

            message = null;
            return(true);
        }
Ejemplo n.º 5
0
 void InsertMinMax(BerTag tag, GlowMinMax value)
 {
     InternalTools.InsertMinMax(EnsureContentsAndRemove(tag), tag, value);
 }
Ejemplo n.º 6
0
 void InsertValue(BerTag tag, GlowValue value)
 {
     InternalTools.InsertValue(EnsureContentsAndRemove(tag), tag, value);
 }