You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by er...@apache.org on 2004/02/22 04:36:44 UTC
cvs commit: xml-xmlbeans/v2/src/newstore/org/apache/xmlbeans/impl/newstore/pub Public.java
ericvas 2004/02/21 19:36:44
Modified: v2/src/newstore/org/apache/xmlbeans/impl/newstore/pub
Public.java
Log:
removed newstore in favor of newstore2
Revision Changes Path
1.4 +107 -107 xml-xmlbeans/v2/src/newstore/org/apache/xmlbeans/impl/newstore/pub/Public.java
Index: Public.java
===================================================================
RCS file: /home/cvs/xml-xmlbeans/v2/src/newstore/org/apache/xmlbeans/impl/newstore/pub/Public.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Public.java 12 Feb 2004 20:06:19 -0000 1.3
+++ Public.java 22 Feb 2004 03:36:44 -0000 1.4
@@ -37,111 +37,111 @@
public class Public
{
- public static class MemoryBackend implements Backend
- {
- public Locale newLocale ( )
- {
- return new Mcur.Mlocale();
- }
- }
-
- public static Backend memoryBackend ( )
- {
- return new MemoryBackend();
- }
-
- public static Locale getLocale ( Backend be )
- {
- return be.newLocale();
- }
-
- public static DOMImplementation getImplementation ( Saaj saaj, Backend be )
- {
- Locale l = getLocale( be );
-
- if (saaj != null)
- {
- l._saaj = saaj;
- saaj.setCallback( l );
- }
-
- return (DOMImplementation) l;
- }
-
- public static DOMImplementation getImplementation ( Backend be )
- {
- return (DOMImplementation) getLocale( be );
- }
-
- public static Document parse ( String s, Backend be )
- {
- Locale l = getLocale( be );
-
- Dom d;
-
- if (l.noSync()) { l.enter(); try { d = l.load( s ); } finally { l.exit(); } }
- else synchronized ( l ) { l.enter(); try { d = l.load( s ); } finally { l.exit(); } }
-
- return (Document) d;
- }
-
- public static Document parse ( String s, Backend be, Saaj saaj )
- {
- Locale l = getLocale( be );
-
- if (saaj != null)
- {
- l._saaj = saaj;
- saaj.setCallback( l );
- }
-
- Dom d;
-
- if (l.noSync()) { l.enter(); try { d = l.load( s ); } finally { l.exit(); } }
- else synchronized ( l ) { l.enter(); try { d = l.load( s ); } finally { l.exit(); } }
-
- return (Document) d;
- }
-
- public static Document parse ( InputStream is, Backend be, Saaj saaj )
- {
- Locale l = getLocale( be );
-
- if (saaj != null)
- {
- l._saaj = saaj;
- saaj.setCallback( l );
- }
-
- Dom d;
-
- if (l.noSync()) { l.enter(); try { d = l.load( is ); } finally { l.exit(); } }
- else synchronized ( l ) { l.enter(); try { d = l.load( is ); } finally { l.exit(); } }
-
- return (Document) d;
- }
-
- public static XMLStreamReader getStream ( Node n )
- {
- assert n instanceof Dom;
-
- Dom d = (Dom) n;
-
- Locale l = d.locale();
-
- if (l.noSync()) { l.enter(); try { return DomImpl.getXmlStreamReader( d ); } finally { l.exit(); } }
- else synchronized ( l ) { l.enter(); try { return DomImpl.getXmlStreamReader( d ); } finally { l.exit(); } }
- }
-
- public static XmlCursor getCursor ( Node n )
- {
- assert n instanceof Dom;
-
- Dom d = (Dom) n;
-
- Locale l = d.locale();
-
- if (l.noSync()) { l.enter(); try { return DomImpl.getXmlCursor( d ); } finally { l.exit(); } }
- else synchronized ( l ) { l.enter(); try { return DomImpl.getXmlCursor( d ); } finally { l.exit(); } }
- }
+// public static class MemoryBackend implements Backend
+// {
+// public Locale newLocale ( )
+// {
+// return new Mcur.Mlocale();
+// }
+// }
+//
+// public static Backend memoryBackend ( )
+// {
+// return new MemoryBackend();
+// }
+//
+// public static Locale getLocale ( Backend be )
+// {
+// return be.newLocale();
+// }
+//
+// public static DOMImplementation getImplementation ( Saaj saaj, Backend be )
+// {
+// Locale l = getLocale( be );
+//
+// if (saaj != null)
+// {
+// l._saaj = saaj;
+// saaj.setCallback( l );
+// }
+//
+// return (DOMImplementation) l;
+// }
+//
+// public static DOMImplementation getImplementation ( Backend be )
+// {
+// return (DOMImplementation) getLocale( be );
+// }
+//
+// public static Document parse ( String s, Backend be )
+// {
+// Locale l = getLocale( be );
+//
+// Dom d;
+//
+// if (l.noSync()) { l.enter(); try { d = l.load( s ); } finally { l.exit(); } }
+// else synchronized ( l ) { l.enter(); try { d = l.load( s ); } finally { l.exit(); } }
+//
+// return (Document) d;
+// }
+//
+// public static Document parse ( String s, Backend be, Saaj saaj )
+// {
+// Locale l = getLocale( be );
+//
+// if (saaj != null)
+// {
+// l._saaj = saaj;
+// saaj.setCallback( l );
+// }
+//
+// Dom d;
+//
+// if (l.noSync()) { l.enter(); try { d = l.load( s ); } finally { l.exit(); } }
+// else synchronized ( l ) { l.enter(); try { d = l.load( s ); } finally { l.exit(); } }
+//
+// return (Document) d;
+// }
+//
+// public static Document parse ( InputStream is, Backend be, Saaj saaj )
+// {
+// Locale l = getLocale( be );
+//
+// if (saaj != null)
+// {
+// l._saaj = saaj;
+// saaj.setCallback( l );
+// }
+//
+// Dom d;
+//
+// if (l.noSync()) { l.enter(); try { d = l.load( is ); } finally { l.exit(); } }
+// else synchronized ( l ) { l.enter(); try { d = l.load( is ); } finally { l.exit(); } }
+//
+// return (Document) d;
+// }
+//
+// public static XMLStreamReader getStream ( Node n )
+// {
+// assert n instanceof Dom;
+//
+// Dom d = (Dom) n;
+//
+// Locale l = d.locale();
+//
+// if (l.noSync()) { l.enter(); try { return DomImpl.getXmlStreamReader( d ); } finally { l.exit(); } }
+// else synchronized ( l ) { l.enter(); try { return DomImpl.getXmlStreamReader( d ); } finally { l.exit(); } }
+// }
+//
+// public static XmlCursor getCursor ( Node n )
+// {
+// assert n instanceof Dom;
+//
+// Dom d = (Dom) n;
+//
+// Locale l = d.locale();
+//
+// if (l.noSync()) { l.enter(); try { return DomImpl.getXmlCursor( d ); } finally { l.exit(); } }
+// else synchronized ( l ) { l.enter(); try { return DomImpl.getXmlCursor( d ); } finally { l.exit(); } }
+// }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-cvs-help@xml.apache.org