- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 12 Aug 2009 13:15:23 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/contract In directory hutz:/tmp/cvs-serv22119/src/org/w3c/unicorn/contract Modified Files: Tag: dev2 WADLUnmarshallerXPath.java Log Message: All initialization actions moved to Framework.java Index: WADLUnmarshallerXPath.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/contract/Attic/WADLUnmarshallerXPath.java,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -d -r1.1.2.1 -r1.1.2.2 --- WADLUnmarshallerXPath.java 11 Aug 2009 16:05:33 -0000 1.1.2.1 +++ WADLUnmarshallerXPath.java 12 Aug 2009 13:15:20 -0000 1.1.2.2 @@ -7,7 +7,6 @@ import java.io.IOException; import java.net.URL; import java.util.ArrayList; -import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; @@ -118,7 +117,7 @@ .newDocumentBuilder(); this.aXPath = new XPathFactoryImpl().newXPath(); this.aXPath - .setNamespaceContext(WADLUnmarshallerXPath.aNamespaceContext); + .setNamespaceContext(WADLUnmarshallerXPath.getNamespaceContext()); } /** @@ -371,8 +370,8 @@ /** * Gets the Namespace URI and the prefix */ - public static void init() { - WADLUnmarshallerXPath.aNamespaceContext = new NamespaceContext() { + /*public static void init() { + WADLUnmarshallerXPath.setNamespaceContext(new NamespaceContext() { public String getNamespaceURI(final String sPrefix) { if ("xs".equals(sPrefix)) { return "http://www.w3.org/2001/XMLSchema"; @@ -398,8 +397,8 @@ return null; } - }; - } + }); + }*/ public LocalizedString getDescription() { return this.aLocalizedStringDescription; @@ -457,4 +456,12 @@ } } + public static void setNamespaceContext(NamespaceContext aNamespaceContext) { + WADLUnmarshallerXPath.aNamespaceContext = aNamespaceContext; + } + + public static NamespaceContext getNamespaceContext() { + return aNamespaceContext; + } + }
Received on Wednesday, 12 August 2009 13:15:34 UTC