C# Class BExIS.Xml.Helpers.XmlSchemaUtility

Show file Open project: BEXIS2/Core

Public Methods

Method 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

Method Description
GetElements ( XmlSchemaObject element, List list, bool recursive, List allElements ) : List

Method Details

GetAllAttributes() public static method

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

GetAllComplexElements() public static method

public static GetAllComplexElements ( List elements ) : List
elements List
return List

GetAllComplexTypes() public static method

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

GetAllElements() public static method

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

GetAllElements() public static method

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

GetAllGroups() public static method

public static GetAllGroups ( XmlSchema schema ) : List
schema System.Xml.Schema.XmlSchema
return List

GetAllSimpleElements() public static method

public static GetAllSimpleElements ( List elements ) : List
elements List
return List

GetAllSimpleTypes() public static method

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

GetComplextType() public static method

public static GetComplextType ( XmlSchemaElement element ) : XmlSchemaComplexType
element System.Xml.Schema.XmlSchemaElement
return System.Xml.Schema.XmlSchemaComplexType

IsAllSimpleType() public static method

public static IsAllSimpleType ( List elements ) : bool
elements List
return bool

IsChoiceType() public static method

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

IsChoiceType() public static method

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

IsEnumerationType() public static method

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

IsSimpleType() public static method

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