ParseEnum() private méthode

private ParseEnum ( string value, string attributeName, string values ) : int
value string
attributeName string
values string
Résultat int
Exemple #1
0
 private static void BuildElement_Form(XsdBuilder builder, string value) {
     builder.element.Form = (XmlSchemaForm)builder.ParseEnum(value, "form", FormStringValues);
 }
Exemple #2
0
 private static void BuildAny_ProcessContents(XsdBuilder builder, string value) {
     builder.anyElement.ProcessContents = (XmlSchemaContentProcessing)builder.ParseEnum(value, "processContents", ProcessContentsStringValues);
 }
Exemple #3
0
 private static void BuildAttribute_Use(XsdBuilder builder, string value) {
     builder.attribute.Use = (XmlSchemaUse)builder.ParseEnum(value, "use", UseStringValues);
 }
Exemple #4
0
 private static void BuildAttribute_Form(XsdBuilder builder, string value) {
     builder.attribute.Form = (XmlSchemaForm)builder.ParseEnum(value, "form", FormStringValues);
 }
Exemple #5
0
 private static void BuildSchema_ElementFormDefault(XsdBuilder builder, string value) {
     builder.schema.ElementFormDefault = (XmlSchemaForm)builder.ParseEnum(value, "elementFormDefault", FormStringValues);
 }
Exemple #6
0
 /*
     <schema 
       attributeFormDefault = qualified | unqualified : unqualified
       blockDefault = #all or (possibly empty) subset of {substitution, extension, restriction} 
       elementFormDefault = qualified | unqualified : unqualified
       finalDefault = #all or (possibly empty) subset of {extension, restriction} 
       id = ID 
       targetNamespace = uriReference 
       version = string 
       {any attributes with non-schema namespace . . .}>
       Content: ((include | import | redefine | annotation)* , ((attribute | attributeGroup | complexType | element | group | notation | simpleType) , annotation*)*)
     </schema>
 */
 
 private static void BuildSchema_AttributeFormDefault(XsdBuilder builder, string value) {
     builder.schema.AttributeFormDefault = (XmlSchemaForm)builder.ParseEnum(value, "attributeFormDefault", FormStringValues);
 }
Exemple #7
0
 private static void BuildAnyAttribute_ProcessContents(XsdBuilder builder, string value)
 {
     builder._anyAttribute.ProcessContents = (XmlSchemaContentProcessing)builder.ParseEnum(value, "processContents", s_processContentsStringValues);
 }