jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r770177 - in /jackrabbit/trunk: jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/nodetype/NodeType.java jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeImpl.java
Date Thu, 30 Apr 2009 12:01:06 GMT
Author: reschke
Date: Thu Apr 30 12:01:05 2009
New Revision: 770177

URL: http://svn.apache.org/viewvc?rev=770177&view=rev
Log:
JCR-2090: add o.a.j.api.jsr283.NodeType, add stub impl in -core.

Added:
    jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/nodetype/NodeType.java
  (with props)
Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeImpl.java

Added: jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/nodetype/NodeType.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/nodetype/NodeType.java?rev=770177&view=auto
==============================================================================
--- jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/nodetype/NodeType.java
(added)
+++ jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/nodetype/NodeType.java
Thu Apr 30 12:01:05 2009
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.jackrabbit.api.jsr283.nodetype;
+
+import javax.jcr.nodetype.NodeTypeIterator;
+
+/**
+ * This interface holds extensions made in JCR 2.0 while work
+ * is in progress implementing JCR 2.0.
+ *
+ * @since JCR 2.0
+ */
+public interface NodeType extends javax.jcr.nodetype.NodeType {
+    
+    /**
+     * Returns all subtypes of this node type in the node type inheritance
+     * hierarchy.
+     *
+     * @return a <code>NodeTypeIterator</code>.
+     *
+     * @see #getDeclaredSubtypes
+     * @since JCR 2.0
+     */
+    public NodeTypeIterator getSubtypes();
+
+    /**
+     * Returns the <i>direct</i> subtypes of this node type in the node type
+     * inheritance hierarchy, that is, those which actually declared this node
+     * type in their list of supertypes.
+     *
+     * @return an <code>NodeTypeIterator</code>.
+     *
+     * @see #getSubtypes
+     * @since JCR 2.0
+     */
+    public NodeTypeIterator getDeclaredSubtypes();
+
+}

Propchange: jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/nodetype/NodeType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeImpl.java?rev=770177&r1=770176&r2=770177&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeImpl.java
Thu Apr 30 12:01:05 2009
@@ -35,6 +35,7 @@
 import javax.jcr.nodetype.NoSuchNodeTypeException;
 import javax.jcr.nodetype.NodeDefinition;
 import javax.jcr.nodetype.NodeType;
+import javax.jcr.nodetype.NodeTypeIterator;
 import javax.jcr.nodetype.PropertyDefinition;
 import java.util.ArrayList;
 import java.util.HashSet;
@@ -42,7 +43,7 @@
 /**
  * A <code>NodeTypeImpl</code> ...
  */
-public class NodeTypeImpl implements NodeType, NodeTypeDefinition {
+public class NodeTypeImpl implements NodeType, org.apache.jackrabbit.api.jsr283.nodetype.NodeType,
NodeTypeDefinition {
 
     private static Logger log = LoggerFactory.getLogger(NodeTypeImpl.class);
 
@@ -653,4 +654,14 @@
         }
         return false;
     }
+
+    public NodeTypeIterator getDeclaredSubtypes() {
+        // TODO 
+        throw new RuntimeException("Not implemented yet, see JCR-2090");
+    }
+
+    public NodeTypeIterator getSubtypes() {
+        // TODO 
+        throw new RuntimeException("Not implemented yet, see JCR-2090");
+    }
 }



Mime
View raw message