src/Misc/EFTools/EntityDesignModel/Validation/EscherAttributeContentValidator.cs
/// <summary>
///     Returns true if the proposed string is valid for the given attribute's XSD schema type
/// </summary>
Returns true if the proposed string is valid for the given attribute's XSD schema type
Returns true if the proposed string is valid for the given attribute ' s XSD schema type
internal override bool IsValidAttributeValue(string proposedString, EFAttribute attribute)
        {
            if (attribute.XObject == null)
            {
                return true;
            }
            var nameStack = MakeAttributePathFromEFObject(attribute);
            if (nameStack == null)
            {
                return true;
            }
            else
            {
                return IsValidStringForSchemaType(proposedString, nameStack);
            }
        }
internal override bool IsValidAttributeValue ( string proposedString , EFAttribute attribute ) { if ( attribute . XObject == null ) { return true ; } var nameStack = MakeAttributePathFromEFObject ( attribute ) ; if ( nameStack == null ) { return true ; } else { return IsValidStringForSchemaType ( proposedString , nameStack ) ; } }
Returns true if the proposed string is valid for the given attribute's XSD schema type
Returns true if the proposed string is valid for the given attribute ' s XSD schema type
// attribute isn't hooked up into an xlinq tree, so we can't validate it.
proposedString
string
attribute
EFAttribute