1 24 package javax.jcr; 25 26 import javax.jcr.access.AccessDeniedException; 27 import javax.jcr.nodetype.ConstraintViolationException; 28 import javax.jcr.nodetype.NoSuchNodeTypeException; 29 import javax.jcr.nodetype.NodeDef; 30 import javax.jcr.nodetype.NodeType; 31 import javax.jcr.version.*; 32 import java.io.InputStream ; 33 import java.util.Calendar ; 34 35 42 public interface Node extends Item { 43 44 79 public Node addNode(String relPath) throws ItemExistsException, PathNotFoundException, ConstraintViolationException, RepositoryException; 80 81 103 public Node addNode(String relPath, String primaryNodeTypeName) throws ItemExistsException, PathNotFoundException, NoSuchNodeTypeException, ConstraintViolationException, RepositoryException; 104 105 124 public Node addExistingNode(String absPath) throws PathNotFoundException, RepositoryException; 125 126 137 public Node addExistingNode(String absPath, String newName) throws PathNotFoundException, RepositoryException; 138 139 173 public Property setProperty(String name, Value value) throws ValueFormatException, RepositoryException; 174 175 204 public Property setProperty(String name, Value value, int type) throws ValueFormatException, RepositoryException; 205 206 226 public Property setProperty(String name, Value[] values, int type) throws ValueFormatException, RepositoryException; 227 228 244 public Property setProperty(String name, String value, int type) throws ValueFormatException, RepositoryException; 245 246 266 public Property setProperty(String name, String [] values, int type) throws ValueFormatException, RepositoryException; 267 268 298 public Property setProperty(String name, String value) throws ValueFormatException, RepositoryException; 299 300 314 public Property setProperty(String name, InputStream value) throws ValueFormatException, RepositoryException; 315 316 330 public Property setProperty(String name, boolean value) throws ValueFormatException, RepositoryException; 331 332 346 public Property setProperty(String name, double value) throws ValueFormatException, RepositoryException; 347 348 362 public Property setProperty(String name, long value) throws ValueFormatException, RepositoryException; 363 364 378 public Property setProperty(String name, Calendar value) throws ValueFormatException, RepositoryException; 379 380 394 public void remove(String relPath) throws PathNotFoundException, RepositoryException; 395 396 439 public void save(boolean shallow) throws AccessDeniedException, ConstraintViolationException, ActionVetoedException, RepositoryException; 440 441 459 public Node getNode(String relPath) throws PathNotFoundException, RepositoryException; 460 461 471 public NodeIterator getNodes() throws RepositoryException; 472 473 494 public NodeIterator getNodes(String namePattern) throws RepositoryException; 495 496 507 public Property getProperty(String relPath) throws PathNotFoundException, RepositoryException; 508 509 519 public PropertyIterator getProperties() throws RepositoryException; 520 521 542 public PropertyIterator getProperties(String namePattern) throws RepositoryException; 543 544 559 public Property findProperty(Value value) throws RepositoryException; 560 561 576 public PropertyIterator findProperties(Value value) throws RepositoryException; 577 578 597 public Item getPrimaryItem() throws ItemNotFoundException, RepositoryException; 598 599 610 public String getUUID() throws UnsupportedRepositoryOperationException, RepositoryException; 611 612 622 public boolean hasNode(String relPath) throws RepositoryException; 623 624 634 public boolean hasProperty(String relPath) throws RepositoryException; 635 636 645 public boolean hasNodes() throws RepositoryException; 646 647 656 public boolean hasProperties() throws RepositoryException; 657 658 663 public NodeType getPrimaryNodeType(); 664 665 671 public NodeType[] getMixinNodeTypes(); 672 673 689 public boolean isNodeType(String nodeTypeName) throws RepositoryException; 690 691 700 public void addMixin(String mixinName); 701 702 711 public NodeDef getDefinition(); 712 713 721 public Version checkin() throws UnsupportedRepositoryOperationException, RepositoryException; 722 723 731 public void checkout() throws UnsupportedRepositoryOperationException, RepositoryException; 732 733 750 public void update(String srcWorkspaceName, boolean shallow) throws NoSuchWorkspaceException, RepositoryException; 751 752 776 public void merge(String srcWorkspace, boolean shallow) throws UnsupportedRepositoryOperationException, NoSuchWorkspaceException, MergeException, RepositoryException; 777 778 786 public boolean isCheckedOut() throws UnsupportedRepositoryOperationException, RepositoryException; 787 788 796 public void restore(String versionName) throws UnsupportedRepositoryOperationException, RepositoryException; 797 798 806 public void restore(Version version) throws UnsupportedRepositoryOperationException, RepositoryException; 807 808 816 public void restore(Calendar date) throws UnsupportedRepositoryOperationException, RepositoryException; 817 818 827 public void restoreByLabel(String versionLabel) throws UnsupportedRepositoryOperationException, RepositoryException; 828 829 839 public VersionHistory getVersionHistory() throws UnsupportedRepositoryOperationException, RepositoryException; 840 841 849 public Version getBaseVersion() throws UnsupportedRepositoryOperationException, RepositoryException; 850 } | Popular Tags |