Adding namespaces to versioned OWSCommon formats. Adding regExes to OWSCommon v1 prototype. r=bartvde (closes #2671)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10387 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -16,14 +16,17 @@ if (!OpenLayers.Format.OWSCommon) {
|
|||||||
*/
|
*/
|
||||||
OpenLayers.Format.OWSCommon.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
OpenLayers.Format.OWSCommon.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: namespaces
|
* Property: regExes
|
||||||
* {Object} Mapping of namespace aliases to namespace URIs.
|
* Compiled regular expressions for manipulating strings.
|
||||||
*/
|
*/
|
||||||
namespaces: {
|
regExes: {
|
||||||
xlink: "http://www.w3.org/1999/xlink"
|
trimSpace: (/^\s*|\s*$/g),
|
||||||
},
|
removeSpace: (/\s*/g),
|
||||||
|
splitSpace: (/\s+/),
|
||||||
|
trimComma: (/\s*,\s*/g)
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: readers
|
* Property: readers
|
||||||
* Contains public functions, grouped by namespace prefix, that will
|
* Contains public functions, grouped by namespace prefix, that will
|
||||||
|
|||||||
@@ -13,6 +13,15 @@
|
|||||||
*/
|
*/
|
||||||
OpenLayers.Format.OWSCommon.v1_0_0 = OpenLayers.Class(OpenLayers.Format.OWSCommon.v1, {
|
OpenLayers.Format.OWSCommon.v1_0_0 = OpenLayers.Class(OpenLayers.Format.OWSCommon.v1, {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Property: namespaces
|
||||||
|
* {Object} Mapping of namespace aliases to namespace URIs.
|
||||||
|
*/
|
||||||
|
namespaces: {
|
||||||
|
ows: "http://www.opengis.net/ows/1.0",
|
||||||
|
xlink: "http://www.w3.org/1999/xlink"
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: readers
|
* Property: readers
|
||||||
* Contains public functions, grouped by namespace prefix, that will
|
* Contains public functions, grouped by namespace prefix, that will
|
||||||
|
|||||||
@@ -12,6 +12,15 @@
|
|||||||
* It is not intended to be used on its own.
|
* It is not intended to be used on its own.
|
||||||
*/
|
*/
|
||||||
OpenLayers.Format.OWSCommon.v1_1_0 = OpenLayers.Class(OpenLayers.Format.OWSCommon.v1, {
|
OpenLayers.Format.OWSCommon.v1_1_0 = OpenLayers.Class(OpenLayers.Format.OWSCommon.v1, {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Property: namespaces
|
||||||
|
* {Object} Mapping of namespace aliases to namespace URIs.
|
||||||
|
*/
|
||||||
|
namespaces: {
|
||||||
|
ows: "http://www.opengis.net/ows/1.1",
|
||||||
|
xlink: "http://www.w3.org/1999/xlink"
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: readers
|
* Property: readers
|
||||||
|
|||||||
Reference in New Issue
Block a user