Skip to content
Permalink
Browse files

Added XQMetaData2

  • Loading branch information...
cfoster committed Jun 5, 2012
1 parent c031b2e commit 7cdc739cf5261e60d95f6aa9a374412610e33f8a
Showing with 176 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +25 −1 pom.xml
  3. +150 −0 src/main/java/com/xqj2/XQMetaData2.java
@@ -1,2 +1,3 @@
# Skip maven 'target' directory
target
*.bak
26 pom.xml
@@ -7,7 +7,7 @@
<groupId>com.xqj2</groupId>
<artifactId>xqj2</artifactId>
<packaging>jar</packaging>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.2</version>
<name>xqj2</name>

<description>XQJ2 proposed extensions to the XQJ API (JSR 225)</description>
@@ -92,6 +92,13 @@
</configuration>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>2.2</version>
</extension>
</extensions>
</build>

<dependencies>
@@ -128,12 +135,21 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<repositories>
<repository>
<id>xqj.net</id>
<url>http://xqj.net/maven</url>
</repository>
<repository>
<id>github-xqj-text</id>
<name>XQJ repository</name>
@@ -146,4 +162,12 @@
</repository>
</repositories>

<distributionManagement>
<repository>
<id>xqjmvn</id>
<name>XQJ Maven Repository</name>
<url>scp://std5.imagineis.com/home/cfoster/www.xqj.net/html/maven</url>
</repository>
</distributionManagement>

</project>
@@ -0,0 +1,150 @@
/**
* XQJ2 extension for XQJ API (JSR-225).
*
* Copyright (c) 2012 - Charles Foster, charles@cfoster.net
*
* Licensed under the License specified in the file LICENSE which is
* included with the source code.
* You may not use this file except in compliance with the License.
*
* 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 com.xqj2;

import javax.xml.xquery.XQMetaData;
import javax.xml.xquery.XQException;

public interface XQMetaData2 extends XQMetaData
{
// -----------------------------------------------------------------
// XQJ2 (XQJ Squared Support)
// -----------------------------------------------------------------

/**
* Gets the major version number of XQJ2 specification supported by
* this implementation.
*
* @return an integer indicating the XQJ2 major version
* @exception XQException if the connection is no longer valid
**/
public int getXQJ2MajorVersion() throws XQException;

/**
* Gets the minor version number of XQJ2 specification supported by
* this implementation.
*
* @return an integer indicating the XQJ2 minor version
* @exception XQException if the connection is no longer valid
**/
public int getXQJ2MinorVersion() throws XQException;

/**
* Gets the full version of XQJ2 specification supported by this
* implementation.
*
* @return a string indicating the version of XQJ2 specification
* @exception XQException if the connection is no longer valid
**/
public String getXQJ2Version() throws XQException;

// -----------------------------------------------------------------

// -----------------------------------------------------------------
// XQuery 3.0 + Update Facility + Full Text support
// -----------------------------------------------------------------

/**
* Query if XQuery 1.0 Update Facility extensions are supported by this
* data source.
*
* <p>Determines if this data source is capable of executing
* XQuery 1.0 syntax which contain updating expressions.</p>
*
* <p>Refer to the
* <a href="http://www.w3.org/TR/xquery-update-10/">
* <i>XQuery Update Facility 1.0</i></a>
* specification for more information.</p>
*
* @return <code>true</code> if so; otherwise <code>false</code>
* @exception XQException if the connection is no longer valid
**/
public boolean isXQueryUpdateFacilitySupported() throws XQException;

/**
* Query if XQuery 1.0 Full Text extensions are supported by this data source.
*
* <p>Determines if this data source is capable of executing
* XQuery 1.0 syntax which contains full text expressions.</p>
*
* <p>Refer to the
* <a href="http://www.w3.org/TR/xpath-full-text-10/">
* <i>XQuery and XPath Full Text 1.0</i></a>
* specification for more information.</p>
*
* @return <code>true</code> if so; otherwise <code>false</code>
* @exception XQException if the connection is no longer valid
**/
public boolean isXQueryFullTextSupported() throws XQException;

/**
* Query if XQuery 3.0 is supported by this data source.
*
* <p>Determines if this data source is capable of executing
* regular XQuery 3.0 expressions.</p>
*
* <p>Refer to the
* <a href="http://www.w3.org/TR/xquery-30/">
* <i>XQuery 3.0: An XML Query Language</i></a>
* specification for more information.</p>
*
* @return <code>true</code> if so; otherwise <code>false</code>
* @exception XQException if the connection is no longer valid
**/
public boolean isXQuery30Supported() throws XQException;

/**
* Query if XQuery 3.0 Update Facility extensions are supported by this
* data source.
*
* <p>Determines if this data source is capable of executing
* XQuery 3.0 syntax which contain updating expressions.</p>
*
* <p>Refer to the
* <a href="http://www.w3.org/TR/xquery-update-30/">
* <i>XQuery Update Facility 3.0</i></a>
* specification for more information.</p>
*
* @return <code>true</code> if so; otherwise <code>false</code>
* @exception XQException if the connection is no longer valid
**/
// This method is probably not necessary.
// Marked for removal.
// public boolean isXQuery30UpdateFacilitySupported() throws XQException;

/**
* Query if XQuery 3.0 Full Text extensions are supported by this data source.
*
* <p>Determines if this data source is capable of executing
* XQuery 3.0 syntax which contains full text expressions.</p>
*
* <p>Refer to the
* <a href="http://www.w3.org/TR/xpath-full-text-30/">
* <i>XQuery and XPath Full Text 3.0</i></a>
* specification for more information.</p>
*
* @return <code>true</code> if so; otherwise <code>false</code>
* @exception XQException if the connection is no longer valid
**/
// This method is probably not necessary.
// Marked for removal.
// public boolean isXQuery30FullTextSupported() throws XQException;

// -----------------------------------------------------------------

}

0 comments on commit 7cdc739

Please sign in to comment.
You can’t perform that action at this time.