Saxon.Api

 

 

Saxon.Api

Class URIQueryParameters


public class URIQueryParameters

A set of query parameters on a URI passed to the collection() or document() function.

Field Summary

 int ON_ERROR_FAIL

Constant indicating that failure to retrieve document in the collection is to be treated as a fatal error.

 int ON_ERROR_IGNORE

Constant indicating that failure to retrieve document in the collection is to be silently ignored

 int ON_ERROR_WARNING

Constant indicating that failure to retrieve document in the collection is to be treated as a warning condition.

 

Constructor Summary

URIQueryParameters (string query, Processor proc)

Create an object representing the query part of a URI

 

Method Summary

 string ContentType()

Get the value of media-type, or null if absent.

 bool GetMeataData()

Deprecated This method has been replaced by GetMetaData.

 bool GetMetaData()

Get the value of metadata=yes|no, or null if unspecified.

 int GetOnError()

Get the value of the on-error=fail|warning|ignore parameter, or null if unspecified.

 bool GetRecurse()

Get the value of the recurse=yes|no parameter, or null if unspecified.

 bool GetStable()

Get the value of stable=yes|no, or null if unspecified.

 bool GetXInclude()

Get the value of xinclude=yes|no, or null if unspecified.

 int ValidationMode()

Get the value of the validation=strict|lax|preserve|strip parameter, or null if unspecified.

 

Field Detail

ON_ERROR_FAIL

public int ON_ERROR_FAIL

Constant indicating that failure to retrieve document in the collection is to be treated as a fatal error.

ON_ERROR_IGNORE

public int ON_ERROR_IGNORE

Constant indicating that failure to retrieve document in the collection is to be silently ignored

ON_ERROR_WARNING

public int ON_ERROR_WARNING

Constant indicating that failure to retrieve document in the collection is to be treated as a warning condition.

Constructor Detail

URIQueryParameters

public URIQueryParameters(string query,
                          Processor proc)

Create an object representing the query part of a URI

Parameters:

query - the part of the URI after the "?" symbol
proc - the Saxon Processor

Method Detail

ContentType

public string ContentType()

Get the value of media-type, or null if absent.

GetMeataData

public bool GetMeataData()

Deprecated This method has been replaced by GetMetaData.

Misspelt and obsolete synonym of GetMetaData

GetMetaData

public bool GetMetaData()

Get the value of metadata=yes|no, or null if unspecified.

GetOnError

public int GetOnError()

Get the value of the on-error=fail|warning|ignore parameter, or null if unspecified.

GetRecurse

public bool GetRecurse()

Get the value of the recurse=yes|no parameter, or null if unspecified.

GetStable

public bool GetStable()

Get the value of stable=yes|no, or null if unspecified.

GetXInclude

public bool GetXInclude()

Get the value of xinclude=yes|no, or null if unspecified.

ValidationMode

public int ValidationMode()

Get the value of the validation=strict|lax|preserve|strip parameter, or null if unspecified.