1 10 11 package org.mmbase.bridge; 12 import java.util.*; 13 import java.io.InputStream ; 14 import org.w3c.dom.Element ; 15 import org.w3c.dom.Document ; 16 import org.mmbase.util.functions.Function; 17 import org.mmbase.util.functions.Parameters; 18 19 26 public interface Node extends Comparable { 27 28 32 public Cloud getCloud(); 33 34 38 public NodeManager getNodeManager(); 39 40 51 public int getNumber(); 52 53 58 public boolean isRelation(); 59 60 66 public Relation toRelation(); 67 68 73 public boolean isNodeManager(); 74 75 81 public NodeManager toNodeManager(); 82 83 88 public boolean isRelationManager(); 89 90 96 public RelationManager toRelationManager(); 97 98 109 public void setValue(String fieldName, Object value); 110 111 120 public void setValueWithoutProcess(String fieldName, Object value); 121 122 130 public void setObjectValue(String fieldName, Object value); 131 132 141 public void setBooleanValue(String fieldName, boolean value); 142 143 152 public void setNodeValue(String fieldName, Node value); 153 154 162 public void setIntValue(String fieldName, int value); 163 164 172 public void setFloatValue(String fieldName, float value); 173 174 182 public void setDoubleValue(String fieldName, double value); 183 184 192 public void setByteValue(String fieldName, byte[] value); 193 194 198 public void setInputStreamValue(String fieldName, InputStream value, long size); 199 200 208 public void setLongValue(String fieldName, long value); 209 210 218 public void setStringValue(String fieldName, String value); 219 220 229 public void setDateValue(String fieldName, Date value); 230 231 232 242 public void setListValue(String fieldName, List value); 243 244 249 public boolean isNull(String fieldName); 250 251 252 257 public long getSize(String fieldName); 258 259 260 270 public Object getValue(String fieldName); 271 272 278 public Object getObjectValue(String fieldName); 279 280 287 public Object getValueWithoutProcess(String fieldName); 288 289 302 public boolean getBooleanValue(String fieldName); 303 304 330 public Node getNodeValue(String fieldName); 331 332 345 public int getIntValue(String fieldName); 346 347 359 public float getFloatValue(String fieldName); 360 361 373 public long getLongValue(String fieldName); 374 375 387 public double getDoubleValue(String fieldName); 388 389 398 public byte[] getByteValue(String fieldName); 399 400 401 407 public InputStream getInputStreamValue(String fieldName); 408 409 410 419 public String getStringValue(String fieldName); 420 421 426 public Date getDateValue(String fieldName); 427 428 434 public List getListValue(String fieldName); 435 436 437 445 public FieldValue getFieldValue(String fieldName) throws NotFoundException; 446 447 454 public FieldValue getFieldValue(Field field); 455 456 465 public Collection validate(); 466 467 480 public void commit(); 481 482 487 public void cancel(); 488 489 492 public void delete(); 493 494 498 public boolean isNew(); 499 500 504 public boolean isChanged(String fieldName); 505 506 510 public Set getChanged(); 511 512 516 public boolean isChanged(); 517 518 523 524 public void delete(boolean deleteRelations); 525 526 530 public String toString(); 531 532 544 public Document getXMLValue(String fieldName) throws IllegalArgumentException ; 545 546 560 561 public Element getXMLValue(String fieldName, Document tree) throws IllegalArgumentException ; 562 563 571 public void setXMLValue(String fieldName, Document value); 572 573 578 public boolean hasRelations(); 579 580 583 public void deleteRelations(); 584 585 592 public void deleteRelations(String relationManager); 593 594 599 public RelationList getRelations(); 600 601 609 public RelationList getRelations(String role); 610 611 621 public RelationList getRelations(String role, String nodeManager); 622 623 633 public RelationList getRelations(String role, NodeManager nodeManager); 634 635 636 643 public RelationList getRelations(String role, NodeManager nodeManager, String searchDir); 644 645 650 public int countRelations(); 651 652 659 public int countRelations(String relationManager); 660 661 662 670 public NodeList getRelatedNodes(); 671 672 682 public NodeList getRelatedNodes(String nodeManager); 683 684 693 public NodeList getRelatedNodes(NodeManager nodeManager); 694 695 708 public NodeList getRelatedNodes(String nodeManager, String role, String searchDir); 709 710 722 public NodeList getRelatedNodes(NodeManager nodeManager, String role, String searchDir); 723 724 725 726 734 736 747 public int countRelatedNodes(String nodeManager); 748 749 750 757 public int countRelatedNodes(NodeManager otherNodeManager, String role, String searchDir); 758 759 760 761 766 public StringList getAliases(); 767 768 775 public void createAlias(String alias); 776 777 782 public void deleteAlias(String alias); 783 784 793 public Relation createRelation(Node destinationNode, 794 RelationManager relationManager); 795 796 802 public void setContext(String context); 803 804 810 public String getContext(); 811 812 819 public StringList getPossibleContexts(); 820 821 826 827 public boolean mayWrite(); 828 829 834 835 public boolean mayDelete(); 836 837 838 843 public boolean mayChangeContext(); 844 845 851 public Collection getFunctions(); 852 853 864 public Function getFunction(String functionName); 865 866 878 public Parameters createParameters(String functionName); 879 880 890 public FieldValue getFunctionValue(String functionName, List parameters); 891 892 } 893
| Popular Tags
|