W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2008

2006/unicorn/org/w3c/unicorn/contract WADLUnmarshallerXPath.java,1.2,1.3 WADLUnmarshaller.java,1.2,1.3

From: Hiep Duong via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 20 Feb 2008 15:20:00 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1JRqjo-0000md-5h@lionel-hutz.w3.org>

Update of /sources/public/2006/unicorn/org/w3c/unicorn/contract
In directory hutz:/tmp/cvs-serv2880/org/w3c/unicorn/contract

Modified Files:
	WADLUnmarshallerXPath.java WADLUnmarshaller.java 
Log Message:
simplified observationresponse and generalize output format (now we can map a format type what defnied in the contract to a ResponseParser)

Index: WADLUnmarshallerXPath.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/contract/WADLUnmarshallerXPath.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- WADLUnmarshallerXPath.java	19 Feb 2008 12:51:16 -0000	1.2
+++ WADLUnmarshallerXPath.java	20 Feb 2008 15:19:58 -0000	1.3
@@ -63,6 +63,7 @@
 	private LocalizedString aLocalizedStringHelpLocation = new LocalizedString();
 	private LocalizedString aLocalizedStringProvider = new LocalizedString();
 	private List<MimeType> listOfMimeType = new ArrayList<MimeType>();
+	private String responseType;
 	
 	//name of parameter lang if observer has one
 	private String nameOfLangParameter = null;
@@ -142,6 +143,8 @@
 				listOfMimeType.add(new MimeType(vText));
 			} else if ("reference".equals(vTitle)) {
 				sID=vText;
+			} else if ("responseType".equals(vTitle)) {
+				responseType=vText;
 			}
 		}
 	}
@@ -379,5 +382,8 @@
 			System.out.println("---------------------------------");
 		}
 	}
-	
+
+	public String getResponseType() {
+		return responseType;
+	}
 }

Index: WADLUnmarshaller.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/contract/WADLUnmarshaller.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- WADLUnmarshaller.java	19 Feb 2008 12:51:01 -0000	1.2
+++ WADLUnmarshaller.java	20 Feb 2008 15:19:58 -0000	1.3
@@ -34,5 +34,7 @@
 	public LocalizedString getProvider ();
 	
 	public String getNameOfLangParameter ();
+	
+	public String getResponseType();
 
 }
\ No newline at end of file
Received on Wednesday, 20 February 2008 15:20:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:00 GMT