Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ValidateText() [1/3]

void System.Xml.Schema.XmlSchemaValidator.ValidateText ( string elementStringValue,
XmlValueGetter elementValueGetter )
inlineprivate

Definition at line 792 of file XmlSchemaValidator.cs.

793 {
794 ValidatorState validatorState = ((_validationStack.Length > 1) ? ValidatorState.Text : ValidatorState.TopLevelTextOrWS);
797 {
798 return;
799 }
800 if (_context.IsNill)
801 {
803 return;
804 }
806 {
807 case XmlSchemaContentType.Empty:
809 break;
810 case XmlSchemaContentType.TextOnly:
811 if (elementValueGetter != null)
812 {
814 }
815 else
816 {
818 }
819 break;
820 case XmlSchemaContentType.ElementOnly:
821 {
822 string str = ((elementValueGetter != null) ? elementValueGetter().ToString() : elementStringValue);
823 if (!XmlCharType.IsOnlyWhitespace(str))
824 {
826 if (arrayList == null || arrayList.Count == 0)
827 {
829 break;
830 }
832 {
833 BuildElementName(_context.LocalName, _context.Namespace),
834 PrintExpectedElements(arrayList, getParticles: true)
835 });
836 }
837 break;
838 }
839 case XmlSchemaContentType.Mixed:
841 {
842 if (elementValueGetter != null)
843 {
845 }
846 else
847 {
849 }
850 }
851 break;
852 }
853 }
static string Sch_InvalidTextInElementExpecting
Definition SR.cs:894
static string Sch_ContentInNill
Definition SR.cs:784
static string Sch_InvalidTextInEmpty
Definition SR.cs:916
static string Sch_InvalidTextInElement
Definition SR.cs:884
Definition SR.cs:7
virtual ArrayList ExpectedParticles(ValidationState context, bool isRequiredOnly, XmlSchemaSet schemaSet)
void CheckStateTransition(ValidatorState toState, string methodName)
static string BuildElementName(XmlQualifiedName qname)
static string QNameString(string localName, string ns)

References System.Xml.Schema.XmlSchemaValidator._context, System.Xml.Schema.XmlSchemaValidator._schemaSet, System.Xml.Schema.XmlSchemaValidator.BuildElementName(), System.Xml.Schema.XmlSchemaValidator.CheckStateTransition(), System.Xml.Schema.ContentValidator.ContentType, System.Xml.Schema.SchemaElementDecl.ContentValidator, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Schema.SchemaDeclBase.DefaultValueTyped, System.Xml.Dictionary, System.Xml.Schema.ValidationState.ElementDecl, System.Xml.Schema.ContentValidator.ExpectedParticles(), System.Xml.Schema.ValidationState.IsNill, System.Xml.XmlCharType.IsOnlyWhitespace(), System.Xml.Schema.ValidationState.LocalName, System.Xml.Schema.ValidationState.Namespace, System.Xml.Schema.ValidationState.NeedValidateChildren, System.Xml.Schema.XmlSchemaValidator.QNameString(), System.Xml.Schema.XmlSchemaValidator.s_methodNames, System.Xml.Schema.XmlSchemaValidator.SaveTextValue(), System.SR.Sch_ContentInNill, System.SR.Sch_InvalidTextInElement, System.SR.Sch_InvalidTextInElementExpecting, System.SR.Sch_InvalidTextInEmpty, System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(), and System.str.