[Yanel-commits] rev 21542 - in public/yanel/trunk/src/core/java/org/wyona/yanel/core: . navigation

michi at wyona.com michi at wyona.com
Tue Jan 9 01:23:47 CET 2007


Author: michi
Date: 2007-01-09 01:23:46 +0100 (Tue, 09 Jan 2007)
New Revision: 21542

Added:
   public/yanel/trunk/src/core/java/org/wyona/yanel/core/navigation/
   public/yanel/trunk/src/core/java/org/wyona/yanel/core/navigation/Node.java
   public/yanel/trunk/src/core/java/org/wyona/yanel/core/navigation/Sitetree.java
   public/yanel/trunk/src/core/java/org/wyona/yanel/core/navigation/Topicmap.java
Log:
navigation started

Added: public/yanel/trunk/src/core/java/org/wyona/yanel/core/navigation/Node.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/navigation/Node.java	2007-01-08 23:41:21 UTC (rev 21541)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/navigation/Node.java	2007-01-09 00:23:46 UTC (rev 21542)
@@ -0,0 +1,77 @@
+/*
+ * Copyright 2006 Wyona
+ *
+ *  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.wyona.org/licenses/APACHE-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.wyona.yanel.core.navigation;
+
+/**
+ * Also see org.w3c.dom.Node
+ */
+public interface Node {
+
+    /**
+     * @return new child
+     */
+    public Node insertAsFirstChild(Node child);
+
+    /**
+     * @return new child
+     */
+    public Node insertBeforeChild(Node newChild, Node refChild);
+
+    /**
+     * @return new child
+     */
+    public Node insertAfterChild(Node newChild, Node refChild);
+
+    /**
+     * @return new child
+     */
+    public Node appendChild(Node child);
+
+    /**
+     */
+    public void removeChild(Node child);
+
+    /**
+     *
+     */
+    public boolean isResource();
+
+    /**
+     *
+     */
+    public boolean isCollection();
+
+    /**
+     *
+     */
+    public Node[] getChildren();
+
+    /**
+     *
+     */
+    public Node getParent();
+
+    /**
+     *
+     */
+    public Node getNextSibling();
+
+    /**
+     *
+     */
+    public Node getPreviousSibling();
+}

Added: public/yanel/trunk/src/core/java/org/wyona/yanel/core/navigation/Sitetree.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/navigation/Sitetree.java	2007-01-08 23:41:21 UTC (rev 21541)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/navigation/Sitetree.java	2007-01-09 00:23:46 UTC (rev 21542)
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2006 Wyona
+ *
+ *  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.wyona.org/licenses/APACHE-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.wyona.yanel.core.navigation;
+
+/**
+ *
+ */
+public interface Sitetree {
+
+    /**
+     *
+     */
+    public Node getSitetreeNode();
+
+    /**
+     *
+     */
+    public Node createNode(String name);
+}

Added: public/yanel/trunk/src/core/java/org/wyona/yanel/core/navigation/Topicmap.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/navigation/Topicmap.java	2007-01-08 23:41:21 UTC (rev 21541)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/navigation/Topicmap.java	2007-01-09 00:23:46 UTC (rev 21542)
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2006 Wyona
+ *
+ *  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.wyona.org/licenses/APACHE-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.wyona.yanel.core.navigation;
+
+/**
+ *
+ */
+public interface Topicmap {
+
+    /**
+     *
+     */
+    public Node createNode(String name);
+}




More information about the Yanel-commits mailing list