/// <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); }
GlowMinMax GetMinMax(BerTag tag) { var contents = EnsureContents(); if (contents != null) { return(InternalTools.GetMinMax(contents, tag)); } return(null); }
GlowValue GetValue(BerTag tag) { var contents = EnsureContents(); if (contents != null) { return(InternalTools.GetValue(contents, tag)); } return(null); }
/// <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); }
void InsertMinMax(BerTag tag, GlowMinMax value) { InternalTools.InsertMinMax(EnsureContentsAndRemove(tag), tag, value); }
void InsertValue(BerTag tag, GlowValue value) { InternalTools.InsertValue(EnsureContentsAndRemove(tag), tag, value); }