C# Class BExIS.Xml.Helpers.XmlSchemaUtility

Afficher le fichier Open project: BEXIS2/Core

Méthodes publiques

Méthode Description
GetAllAttributes ( XmlSchema schema ) : List

Get all simple types from the schema.

GetAllComplexElements ( List elements ) : List
GetAllComplexTypes ( XmlSchema schema ) : List

Get All Complex Types from the Schema.

GetAllElements ( XmlSchema schema ) : List

Get all elements from the schema.

GetAllElements ( XmlSchemaObject obj, bool recursive, List allElements ) : List
GetAllGroups ( XmlSchema schema ) : List
GetAllSimpleElements ( List elements ) : List
GetAllSimpleTypes ( XmlSchema schema ) : List

Get all simple types from the schema.

GetComplextType ( XmlSchemaElement element ) : XmlSchemaComplexType
IsAllSimpleType ( List elements ) : bool
IsChoiceType ( XmlSchemaComplexType complexType ) : bool

return true if a Element is a Choice

IsChoiceType ( XmlSchemaElement element ) : bool

return true if a Element is a Choice

IsEnumerationType ( XmlSchemaObject restrictionType ) : bool

returns true if a simpletype is a restriction

IsSimpleType ( XmlSchemaElement element ) : bool

return true if a Element is a SimpleType

Private Methods

Méthode Description
GetElements ( XmlSchemaObject element, List list, bool recursive, List allElements ) : List

Method Details

GetAllAttributes() public static méthode

Get all simple types from the schema.
public static GetAllAttributes ( XmlSchema schema ) : List
schema System.Xml.Schema.XmlSchema
Résultat List

GetAllComplexElements() public static méthode

public static GetAllComplexElements ( List elements ) : List
elements List
Résultat List

GetAllComplexTypes() public static méthode

Get All Complex Types from the Schema.
public static GetAllComplexTypes ( XmlSchema schema ) : List
schema System.Xml.Schema.XmlSchema
Résultat List

GetAllElements() public static méthode

Get all elements from the schema.
public static GetAllElements ( XmlSchema schema ) : List
schema System.Xml.Schema.XmlSchema
Résultat List

GetAllElements() public static méthode

public static GetAllElements ( XmlSchemaObject obj, bool recursive, List allElements ) : List
obj System.Xml.Schema.XmlSchemaObject
recursive bool
allElements List
Résultat List

GetAllGroups() public static méthode

public static GetAllGroups ( XmlSchema schema ) : List
schema System.Xml.Schema.XmlSchema
Résultat List

GetAllSimpleElements() public static méthode

public static GetAllSimpleElements ( List elements ) : List
elements List
Résultat List

GetAllSimpleTypes() public static méthode

Get all simple types from the schema.
public static GetAllSimpleTypes ( XmlSchema schema ) : List
schema System.Xml.Schema.XmlSchema
Résultat List

GetComplextType() public static méthode

public static GetComplextType ( XmlSchemaElement element ) : XmlSchemaComplexType
element System.Xml.Schema.XmlSchemaElement
Résultat System.Xml.Schema.XmlSchemaComplexType

IsAllSimpleType() public static méthode

public static IsAllSimpleType ( List elements ) : bool
elements List
Résultat bool

IsChoiceType() public static méthode

return true if a Element is a Choice
public static IsChoiceType ( XmlSchemaComplexType complexType ) : bool
complexType System.Xml.Schema.XmlSchemaComplexType
Résultat bool

IsChoiceType() public static méthode

return true if a Element is a Choice
public static IsChoiceType ( XmlSchemaElement element ) : bool
element System.Xml.Schema.XmlSchemaElement
Résultat bool

IsEnumerationType() public static méthode

returns true if a simpletype is a restriction
public static IsEnumerationType ( XmlSchemaObject restrictionType ) : bool
restrictionType System.Xml.Schema.XmlSchemaObject
Résultat bool

IsSimpleType() public static méthode

return true if a Element is a SimpleType
public static IsSimpleType ( XmlSchemaElement element ) : bool
element System.Xml.Schema.XmlSchemaElement
Résultat bool