You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by jk...@apache.org on 2006/07/23 11:17:14 UTC
svn commit: r424695 -
/incubator/woden/branches/WODEN-44/src/org/apache/woden/ElementSource.java
Author: jkaputin
Date: Sun Jul 23 02:17:14 2006
New Revision: 424695
URL: http://svn.apache.org/viewvc?rev=424695&view=rev
Log:
Initial commit of ElementSource
Added:
incubator/woden/branches/WODEN-44/src/org/apache/woden/ElementSource.java
Added: incubator/woden/branches/WODEN-44/src/org/apache/woden/ElementSource.java
URL: http://svn.apache.org/viewvc/incubator/woden/branches/WODEN-44/src/org/apache/woden/ElementSource.java?rev=424695&view=auto
==============================================================================
--- incubator/woden/branches/WODEN-44/src/org/apache/woden/ElementSource.java (added)
+++ incubator/woden/branches/WODEN-44/src/org/apache/woden/ElementSource.java Sun Jul 23 02:17:14 2006
@@ -0,0 +1,46 @@
+/**
+ * Copyright 2006 Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.woden;
+
+/**
+ * This interface represents an XML element information item in a format to
+ * be interpreted by the Woden implementation.
+ * It permits different representations of an element to be used as method
+ * arguments or return values without making the Woden API dependent on
+ * any particular XML parser or XML object model.
+ *
+ * @author John Kaputin (jkaputin@apache.org)
+ */
+public interface ElementSource {
+
+ /**
+ * Accepts an Object representing an XML element. The implementation should
+ * check that it is of a type appropriate for the underlying XML parser or
+ * XML Object model being used (e.g. a DOM Element or AXION OMElement).
+ */
+ public void setSource(Object elem);
+
+ /**
+ * Returns an Object representing an XML element, which the caller must
+ * cast to the expected type (e.g. a DOM Element or an AXION OMElement)
+ *
+ * @return an Object representing the element
+ */
+ public Object getSource();
+
+ //TODO - other methods for accessing the element's contents?
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org