itemstatemanager.java

来自「jsr170接口的java实现。是个apache的开源项目。」· Java 代码 · 共 65 行

JAVA
65
字号
/* * 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.core.state;import org.apache.jackrabbit.core.ItemId;/** * The <code>ItemStateManager</code> interface provides methods for retrieving * <code>ItemState</code> and <code>NodeReferences</code> instances by id. */public interface ItemStateManager {    /**     * Return an item state, given its item id.     * @param id item id     * @return item state     * @throws NoSuchItemStateException if the item does not exist     * @throws ItemStateException if an error occurs     */    ItemState getItemState(ItemId id)            throws NoSuchItemStateException, ItemStateException;    /**     * Return a flag indicating whether an item state for a given     * item id exists.     * @param id item id     * @return <code>true</code> if an item state exists,     *         otherwise <code>false</code>     */    boolean hasItemState(ItemId id);    /**     * Return a node references object, given its target id     * @param id target id     * @return node references object     * @throws NoSuchItemStateException if the item does not exist     * @throws ItemStateException if an error occurs     */    NodeReferences getNodeReferences(NodeReferencesId id)        throws NoSuchItemStateException, ItemStateException;    /**     * Return a flag indicating whether a node references object     * for a given target id exists.     * @param id target id     * @return <code>true</code> if a node reference object exists for the given     *         id, otherwise <code>false</code>.     */    boolean hasNodeReferences(NodeReferencesId id);}

⌨️ 快捷键说明

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