+++ /dev/null
-/*--------------------------------------------------------------------------\r
- * Copyright 2009 Taro L. Saito\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *--------------------------------------------------------------------------*/\r
-//--------------------------------------\r
-// XerialJ\r
-//\r
-// IndexAccess.java\r
-// Since: 2009/05/14 9:24:54\r
-//\r
-// $URL$\r
-// $Author$\r
-//--------------------------------------\r
-package org.xerial.lens.relation;\r
-\r
-public interface IndexAccess<NodeType>\r
-{\r
- /**\r
- * Get the cell at the specified index\r
- * \r
- * @param index\r
- * @return\r
- */\r
- TupleElement<NodeType> get(TupleIndex index);\r
-\r
- /**\r
- * If the cell at the specified index is a node, then return the node,\r
- * otherwise return null\r
- * \r
- * @param index\r
- * @return node\r
- */\r
- NodeType getNode(TupleIndex index);\r
-\r
- /**\r
- * if this cell is node, then return node. otherwise return null\r
- * \r
- * @return\r
- */\r
- NodeType getNode();\r
-\r
- /**\r
- * If this cell is tuple, then return tuple. otherwise return null\r
- * \r
- * @return\r
- */\r
- IndexAccess<NodeType> getTuple();\r
-\r
- /**\r
- * Accept the visitor\r
- * \r
- * @param visitor\r
- */\r
- void accept(TupleVisitor<NodeType> visitor);\r
-\r
-}\r