- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 18 Sep 2009 17:18:01 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/contract
In directory hutz:/tmp/cvs-serv18282/src/org/w3c/unicorn/contract
Modified Files:
WADLUnmarshallerXPath.java WADLUnmarshaller.java
Log Message:
added the possibility to specify the output parameter name the same way that the language parameter. This parameter will be removed to generate a direct link to the html output of an observation
Index: WADLUnmarshallerXPath.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/contract/WADLUnmarshallerXPath.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- WADLUnmarshallerXPath.java 28 Aug 2009 12:40:09 -0000 1.2
+++ WADLUnmarshallerXPath.java 18 Sep 2009 17:17:59 -0000 1.3
@@ -97,6 +97,8 @@
* name of parameter lang if observer has one
*/
private String nameOfLangParameter = null;
+
+ private String nameOfOutputParameter = null;
/**
* Map of different input method handle by the observer.
@@ -198,6 +200,8 @@
aLocalizedStringProvider.addLocalization(vLang, vText);
} else if ("paramLang".equals(vTitle)) {
nameOfLangParameter = vText;
+ } else if ("paramOutput".equals(vTitle)) {
+ nameOfOutputParameter = vText;
} else if ("mimetype".equals(vTitle)) {
listOfMimeType.add(new MimeType(vText));
} else if ("reference".equals(vTitle)) {
@@ -429,4 +433,12 @@
return aNamespaceContext;
}
+ public String getNameOfOutputParameter() {
+ return nameOfOutputParameter;
+ }
+
+ public void setNameOfOutputParameter(String nameOfOutputParameter) {
+ this.nameOfOutputParameter = nameOfOutputParameter;
+ }
+
}
Index: WADLUnmarshaller.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/contract/WADLUnmarshaller.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- WADLUnmarshaller.java 28 Aug 2009 12:40:09 -0000 1.2
+++ WADLUnmarshaller.java 18 Sep 2009 17:17:59 -0000 1.3
@@ -36,6 +36,8 @@
public LocalizedString getProvider();
public String getNameOfLangParameter();
+
+ public String getNameOfOutputParameter();
public String getResponseType();
Received on Friday, 18 September 2009 17:18:09 UTC