C# Class Sage.Integration.Northwind.Application.Base.Document

Afficher le fichier Open project: Sage/SData-Contracts Class Usage Examples

Méthodes publiques

Méthode Description
AddDefaultResourceElements ( XmlElement root ) : void
ClearTransactionStatus ( ) : void
GetOperationNotImplementedTransactionResult ( ) : TransactionResult
GetSchemaElement ( ) : XmlSchemaElement
GetSuccessTransactionResult ( ) : TransactionResult
GetTransactionResult ( ) : TransactionResult
GetTransactionResult ( List &result ) : void
GetTypePropertyValue ( ) : string

get the type on an documemt. If the document has no type propery or the property is null, it returns an emty string

GetXmlNode ( XmlDocument document ) : XmlNode

Returns the document as xml node

Merge ( Document sourceDocument ) : void

merge a document into the current.

ReadFromXmlNode ( XmlNode node ) : void

Read the Document from a given xml node

SetTransactionStatus ( TransactionStatus status ) : TransactionResult
SetTransactionStatus ( TransactionStatus status, string message ) : TransactionResult

Méthodes protégées

Méthode Description
AddCollection ( DocumentCollection collection ) : bool

add a new collection to the document. If the collection already exists, it returns false

AddProperty ( string propertyName, TypeCode type ) : bool

add a new property to the document. If the property already exists, it returns false

AddProperty ( string propertyName, TypeCode type, int maxLength ) : bool

add a new property to the document. If the property already exists, it returns false

Document ( string documentName ) : System

Private Methods

Méthode Description
CreateAttribute ( XmlDocument document, XmlElement element, string name, string value ) : void
CreateElement ( XmlDocument document, XmlNode parentElement, DocumentCollection collection ) : void
CreateElement ( XmlDocument document, XmlNode parentElement, Property property ) : void
LogstateToTransactionAction ( LogState logState ) : TransactionAction
ReadElement ( XmlNode parentNode, DocumentCollection collection ) : void
ReadElement ( XmlNode parentNode, Property property ) : void

Method Details

AddCollection() protected méthode

add a new collection to the document. If the collection already exists, it returns false
protected AddCollection ( DocumentCollection collection ) : bool
collection DocumentCollection the collection to add
Résultat bool

AddDefaultResourceElements() public méthode

public AddDefaultResourceElements ( XmlElement root ) : void
root System.Xml.XmlElement
Résultat void

AddProperty() protected méthode

add a new property to the document. If the property already exists, it returns false
protected AddProperty ( string propertyName, TypeCode type ) : bool
propertyName string the Name of the Property
type TypeCode the typecode of the property value
Résultat bool

AddProperty() protected méthode

add a new property to the document. If the property already exists, it returns false
protected AddProperty ( string propertyName, TypeCode type, int maxLength ) : bool
propertyName string the Name of the Property
type TypeCode the typecode of the property value
maxLength int the max lentgh of the property value
Résultat bool

ClearTransactionStatus() public méthode

public ClearTransactionStatus ( ) : void
Résultat void

Document() protected méthode

protected Document ( string documentName ) : System
documentName string the name of the Document
Résultat System

GetOperationNotImplementedTransactionResult() public méthode

public GetOperationNotImplementedTransactionResult ( ) : TransactionResult
Résultat Sage.Integration.Northwind.Application.API.TransactionResult

GetSchemaElement() public méthode

public GetSchemaElement ( ) : XmlSchemaElement
Résultat System.Xml.Schema.XmlSchemaElement

GetSuccessTransactionResult() public méthode

public GetSuccessTransactionResult ( ) : TransactionResult
Résultat Sage.Integration.Northwind.Application.API.TransactionResult

GetTransactionResult() public méthode

public GetTransactionResult ( ) : TransactionResult
Résultat Sage.Integration.Northwind.Application.API.TransactionResult

GetTransactionResult() public méthode

public GetTransactionResult ( List &result ) : void
result List
Résultat void

GetTypePropertyValue() public méthode

get the type on an documemt. If the document has no type propery or the property is null, it returns an emty string
public GetTypePropertyValue ( ) : string
Résultat string

GetXmlNode() public méthode

Returns the document as xml node
public GetXmlNode ( XmlDocument document ) : XmlNode
document System.Xml.XmlDocument The paren xmlDocument to work on
Résultat System.Xml.XmlNode

Merge() public méthode

merge a document into the current.
public Merge ( Document sourceDocument ) : void
sourceDocument Document the source Document
Résultat void

ReadFromXmlNode() public méthode

Read the Document from a given xml node
public ReadFromXmlNode ( XmlNode node ) : void
node System.Xml.XmlNode The xml node named as the document
Résultat void

SetTransactionStatus() public méthode

public SetTransactionStatus ( TransactionStatus status ) : TransactionResult
status TransactionStatus
Résultat Sage.Integration.Northwind.Application.API.TransactionResult

SetTransactionStatus() public méthode

public SetTransactionStatus ( TransactionStatus status, string message ) : TransactionResult
status TransactionStatus
message string
Résultat Sage.Integration.Northwind.Application.API.TransactionResult