basenode.java
来自「RESIN 3.2 最新源码」· Java 代码 · 共 845 行 · 第 1/2 页
JAVA
845 行
/** * Returns the an iterator of the properties of the node. */ public PropertyIterator getProperties() throws RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Returns the an iterator of the properties of the node matching * the pattern. */ public PropertyIterator getProperties(String namePattern) throws RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Returns the node's primary item. */ public Item getPrimaryItem() throws ItemNotFoundException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Returns the node's UUID */ public String getUUID() throws UnsupportedRepositoryOperationException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Returns the node's index */ public int getIndex() throws RepositoryException { return 0; } /** * Returns the an iterator of the references */ public PropertyIterator getReferences() throws RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Returns true if the path points to a node. * * @param relPath path to a property */ public boolean hasNode(String relPath) throws RepositoryException { try { return getNode(relPath) != null; } catch (PathNotFoundException e) { return false; } } /** * Returns true if the path points to a property. * * @param relPath path to a property */ public boolean hasProperty(String relPath) throws RepositoryException { try { return getProperty(relPath) != null; } catch (PathNotFoundException e) { return false; } } /** * Returns true if the node has child nodes. */ public boolean hasNodes() throws RepositoryException { return false; } /** * Returns true if the node has any properties. */ public boolean hasProperties() throws RepositoryException { return false; } /** * Returns the node's primary type. */ public NodeType getPrimaryNodeType() throws RepositoryException { return BaseNodeType.NT_BASE; } /** * Returns any mixin types for the node. */ public NodeType[] getMixinNodeTypes() throws RepositoryException { return new NodeType[0]; } /** * Returns true if the node supports the given node type. */ public boolean isNodeType(String nodeTypeName) throws RepositoryException { NodeType nodeType = getPrimaryNodeType(); if (nodeType.getName().equals(nodeTypeName)) return true; NodeType []superTypes = nodeType.getSupertypes(); for (int i = superTypes.length - 1; i >= 0; i--) { if (superTypes[i].getName().equals(nodeTypeName)) return true; } return false; } /** * Adds a mixin type to the node. */ public void addMixin(String mixinName) throws NoSuchNodeTypeException, VersionException, ConstraintViolationException, LockException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Removes a mixin type to the node. */ public void removeMixin(String mixinName) throws NoSuchNodeTypeException, VersionException, ConstraintViolationException, LockException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Returns true if the given mixin type can be added to the node. */ public boolean canAddMixin(String mixinName) throws NoSuchNodeTypeException, RepositoryException { return false; } /** * Returns a description of the node. */ public NodeDefinition getDefinition() throws RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Checks in a new version for to the node. */ public Version checkin() throws VersionException, UnsupportedRepositoryOperationException, InvalidItemStateException, LockException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Checks out a version. */ public void checkout() throws UnsupportedRepositoryOperationException, LockException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Mark the version merge as complete. */ public void doneMerge(Version version) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Cancel a version merge. */ public void cancelMerge(Version version) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Updates a workspace */ public void update(String srcWorkspaceName) throws NoSuchWorkspaceException, AccessDeniedException, LockException, InvalidItemStateException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Merges child nodes. */ public NodeIterator merge(String srcWorkspace, boolean bestEffort) throws NoSuchWorkspaceException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Returns the node path to a workspace. */ public String getCorrespondingNodePath(String workspaceName) throws ItemNotFoundException, NoSuchWorkspaceException, AccessDeniedException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Returns true for a checked out node. */ public boolean isCheckedOut() throws RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Restore the node based on an older version. */ public void restore(String versionName, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Restore the node based on an older version. */ public void restore(Version version, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Restore the node based on an older version. */ public void restore(Version version, String relPath, boolean removeExisting) throws PathNotFoundException, ItemExistsException, VersionException, ConstraintViolationException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Restore the node based on an older version. */ public void restoreByLabel(String versionLabel, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Returns the node's version history. */ public VersionHistory getVersionHistory() throws UnsupportedRepositoryOperationException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Returns the base version. */ public Version getBaseVersion() throws UnsupportedRepositoryOperationException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Lock the node. */ public Lock lock(boolean isDeep, boolean isSessionScoped) throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, InvalidItemStateException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Returns the current lock. */ public Lock getLock() throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Unlocks the node. */ public void unlock() throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, InvalidItemStateException, RepositoryException { throw new UnsupportedOperationException(getClass().getName()); } /** * Returns true if the node owns a lock. */ public boolean holdsLock() throws RepositoryException { return false; } /** * Returns true if the node is locked. */ public boolean isLocked() throws RepositoryException { return false; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?