⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node.java

📁 RESIN 3.2 最新源码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/* * Copyright (c) 1998-2006 Caucho Technology -- all rights reserved * * This file is part of Resin(R) Open Source * * Each copy or derived work must preserve the copyright notice and this * notice unmodified. * * Resin Open Source is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Resin Open Source is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty * of NON-INFRINGEMENT.  See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License * along with Resin Open Source; if not, write to the * *   Free Software Foundation, Inc. *   59 Temple Place, Suite 330 *   Boston, MA 02111-1307  USA * * @author Scott Ferguson */package javax.jcr;import javax.jcr.lock.Lock;import javax.jcr.lock.LockException;import javax.jcr.nodetype.ConstraintViolationException;import javax.jcr.nodetype.NoSuchNodeTypeException;import javax.jcr.nodetype.NodeDefinition;import javax.jcr.nodetype.NodeType;import javax.jcr.version.Version;import javax.jcr.version.VersionException;import javax.jcr.version.VersionHistory;import java.io.InputStream;import java.util.Calendar;/** * Represents a directory node in the repository. */public interface Node extends Item {  /**   * Creates a new node given by the relative path.   *   * @param relPath relative path to the new node.   */  public Node addNode(String relPath)    throws ItemExistsException,	   PathNotFoundException,	   VersionException,	   ConstraintViolationException,	   LockException,	   RepositoryException;    /**   * Creates a new node given by the relative path.   *   * @param relPath relative path to the new node.   * @param primaryNodeTypeName the node type of the new node   */  public Node addNode(String relPath,		      String primaryNodeTypeName)    throws ItemExistsException,	   PathNotFoundException,	   NoSuchNodeTypeException,	   LockException,	   VersionException,	   ConstraintViolationException,	   RepositoryException;    /**   * Moves the source node before the dest   *   * @param srcChildRelPath relative path to the source item   * @param destChildRelPath relative path to the destination item   */  public void orderBefore(String srcChildRelPath,			  String destChildRelPath)    throws UnsupportedRepositoryOperationException,	   VersionException,	   ConstraintViolationException,	   ItemNotFoundException,	   LockException,	   RepositoryException;  /**   * Sets a property of the node.   *   * @param name single-level name identifying the property   * @param value the property's new value   */  public Property setProperty(String name, Value value)    throws ValueFormatException,	   VersionException,	   LockException,	   ConstraintViolationException,	   RepositoryException;    /**   * Sets a property of the node.   *   * @param name single-level name identifying the property   * @param value the property's new value   * @param type the property's value type   */  public Property setProperty(String name, Value value, int type)    throws ValueFormatException,	   VersionException,	   LockException,	   ConstraintViolationException,	   RepositoryException;    /**   * Sets a property of the node with a value array.   *   * @param name single-level name identifying the property   * @param values array of values for the property   */  public Property setProperty(String name, Value[] values)    throws ValueFormatException,	   VersionException,	   LockException,	   ConstraintViolationException,	   RepositoryException;    /**   * Sets a property of the node with a value array.   *   * @param name single-level name identifying the property   * @param values array of values for the property   * @param type the expected type of the property   */  public Property setProperty(String name,			      Value[] values,			      int type)    throws ValueFormatException,	   VersionException,	   LockException,	   ConstraintViolationException,	   RepositoryException;    /**   * Sets a property of the node with an array of string values   *   * @param name single-level name identifying the property   * @param values array of values for the property   */  public Property setProperty(String name, String[] values)    throws ValueFormatException,	   VersionException,	   LockException,	   ConstraintViolationException,	   RepositoryException;  /**   * Sets a property of the node with an array of string values   *   * @param name single-level name identifying the property   * @param values array of values for the property   * @param type the expected type of the property   */  public Property setProperty(String name, String[] values, int type)    throws ValueFormatException,	   VersionException,	   LockException,	   ConstraintViolationException,	   RepositoryException;  /**   * Sets a property of the node with a single string value   *   * @param name single-level name identifying the property   * @param values array of values for the property   * @param type the expected type of the property   */  public Property setProperty(String name, String value)    throws ValueFormatException,	   VersionException,	   LockException,	   ConstraintViolationException,	   RepositoryException;  /**   * Sets a property of the node with a single string value   *   * @param name single-level name identifying the property   * @param values array of values for the property   * @param type the expected type of the property   */  public Property setProperty(String name, String value, int type)    throws ValueFormatException,	   VersionException,	   LockException,	   ConstraintViolationException,	   RepositoryException;    /**   * Sets a property of the node from an input stream   *   * @param name single-level name identifying the property   * @param value input stream containing the data   */  public Property setProperty(String name, InputStream value)    throws ValueFormatException,	   VersionException,	   LockException,	   ConstraintViolationException,	   RepositoryException;    /**   * Sets a property of the node from a boolean   *   * @param name single-level name identifying the property   * @param value boolean data   */  public Property setProperty(String name, boolean value)    throws ValueFormatException,	   VersionException,	   LockException,	   ConstraintViolationException,	   RepositoryException;    /**   * Sets a property of the node from a double   *   * @param name single-level name identifying the property   * @param value double data   */  public Property setProperty(String name, double value)    throws ValueFormatException,	   VersionException,	   LockException,	   ConstraintViolationException,	   RepositoryException;    /**   * Sets a property of the node from a long   *   * @param name single-level name identifying the property   * @param value long data   */  public Property setProperty(String name, long value)    throws ValueFormatException,	   VersionException,	   LockException,	   ConstraintViolationException,	   RepositoryException;    /**   * Sets a property of the node from a date   *   * @param name single-level name identifying the property   * @param value calendar data   */  public Property setProperty(String name, Calendar value)    throws ValueFormatException,	   VersionException,	   LockException,	   ConstraintViolationException,	   RepositoryException;  /**   * Sets a property of the node from a based on a reference to a node   *   * @param name single-level name identifying the property   * @param value node reference   */  public Property setProperty(String name, Node value)    throws ValueFormatException,	   VersionException,	   LockException,	   ConstraintViolationException,	   RepositoryException;    /**   * Returns the node with the given relative path.   *   * @param name relPath path to the given ndoe.   */  public Node getNode(String relPath)    throws PathNotFoundException,	   RepositoryException;    /**   * Returns the direct child nodes.   */  public NodeIterator getNodes()    throws RepositoryException;    /**   * Returns the child nodes matching the name pattern.   */  public NodeIterator getNodes(String namePattern)    throws RepositoryException;  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -