home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / Notes.jar / lotus / domino / local / ViewEntry.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-15  |  4.0 KB  |  288 lines

  1. package lotus.domino.local;
  2.  
  3. import java.util.Vector;
  4. import lotus.domino.Document;
  5. import lotus.domino.NotesException;
  6.  
  7. public class ViewEntry extends NotesBase implements lotus.domino.ViewEntry {
  8.    protected transient Object parent;
  9.    protected transient Database parentDB;
  10.    protected transient View parentView;
  11.    protected transient CollectionPos pos;
  12.  
  13.    private native String NgetPosition(String var1);
  14.  
  15.    protected ViewEntry() throws NotesException {
  16.    }
  17.  
  18.    protected ViewEntry(Object var1, int var2, CollectionPos var3) throws NotesException {
  19.       super(var2, 25);
  20.       if (var1 == null) {
  21.          throw new NotesException(4408, "Missing parent object");
  22.       } else {
  23.          this.parent = var1;
  24.          if (var1 instanceof ViewNavigator) {
  25.             this.parentView = ((ViewNavigator)var1).parentView;
  26.          } else if (var1 instanceof ViewEntryCollection) {
  27.             this.parentView = ((ViewEntryCollection)var1).parentView;
  28.          } else {
  29.             this.parentView = (View)var1;
  30.          }
  31.  
  32.          this.parentDB = this.parentView.database;
  33.          if (var3 != null) {
  34.             this.pos = new CollectionPos();
  35.             this.pos.copyPos(var3);
  36.          }
  37.  
  38.       }
  39.    }
  40.  
  41.    protected View getParentView() {
  42.       return this.parentView;
  43.    }
  44.  
  45.    protected void InternalFinalize() throws NotesException {
  46.       super.finalize();
  47.    }
  48.  
  49.    public void finalize() throws NotesException {
  50.       this.InternalFinalize();
  51.    }
  52.  
  53.    public String getNoteID() throws NotesException {
  54.       ((NotesBase)this).CheckObject();
  55.       synchronized(this){}
  56.  
  57.       String var1;
  58.       try {
  59.          var1 = ((NotesBase)this).PropGetString(1988);
  60.       } catch (Throwable var5) {
  61.          throw var5;
  62.       }
  63.  
  64.       return var1;
  65.    }
  66.  
  67.    public String getUniversalID() throws NotesException {
  68.       ((NotesBase)this).CheckObject();
  69.       synchronized(this){}
  70.  
  71.       String var1;
  72.       try {
  73.          var1 = ((NotesBase)this).PropGetString(1989);
  74.       } catch (Throwable var5) {
  75.          throw var5;
  76.       }
  77.  
  78.       return var1;
  79.    }
  80.  
  81.    public String getPosition(char var1) {
  82.       String var2 = "";
  83.       var2 = var2 + var1;
  84.       synchronized(this){}
  85.  
  86.       String var3;
  87.       try {
  88.          var3 = this.NgetPosition(var2);
  89.       } catch (Throwable var7) {
  90.          throw var7;
  91.       }
  92.  
  93.       return var3;
  94.    }
  95.  
  96.    public boolean isDocument() throws NotesException {
  97.       ((NotesBase)this).CheckObject();
  98.       synchronized(this){}
  99.  
  100.       boolean var1;
  101.       try {
  102.          var1 = ((NotesBase)this).PropGetBool(1977);
  103.       } catch (Throwable var5) {
  104.          throw var5;
  105.       }
  106.  
  107.       return var1;
  108.    }
  109.  
  110.    public boolean isCategory() throws NotesException {
  111.       ((NotesBase)this).CheckObject();
  112.       synchronized(this){}
  113.  
  114.       boolean var1;
  115.       try {
  116.          var1 = ((NotesBase)this).PropGetBool(1978);
  117.       } catch (Throwable var5) {
  118.          throw var5;
  119.       }
  120.  
  121.       return var1;
  122.    }
  123.  
  124.    public boolean isTotal() throws NotesException {
  125.       ((NotesBase)this).CheckObject();
  126.       synchronized(this){}
  127.  
  128.       boolean var1;
  129.       try {
  130.          var1 = ((NotesBase)this).PropGetBool(1979);
  131.       } catch (Throwable var5) {
  132.          throw var5;
  133.       }
  134.  
  135.       return var1;
  136.    }
  137.  
  138.    public boolean isConflict() throws NotesException {
  139.       ((NotesBase)this).CheckObject();
  140.       synchronized(this){}
  141.  
  142.       boolean var1;
  143.       try {
  144.          var1 = ((NotesBase)this).PropGetBool(1980);
  145.       } catch (Throwable var5) {
  146.          throw var5;
  147.       }
  148.  
  149.       return var1;
  150.    }
  151.  
  152.    public int getSiblingCount() throws NotesException {
  153.       ((NotesBase)this).CheckObject();
  154.       synchronized(this){}
  155.  
  156.       int var1;
  157.       try {
  158.          var1 = ((NotesBase)this).PropGetInt(1982);
  159.       } catch (Throwable var5) {
  160.          throw var5;
  161.       }
  162.  
  163.       return var1;
  164.    }
  165.  
  166.    public int getChildCount() throws NotesException {
  167.       ((NotesBase)this).CheckObject();
  168.       synchronized(this){}
  169.  
  170.       int var1;
  171.       try {
  172.          var1 = ((NotesBase)this).PropGetInt(1983);
  173.       } catch (Throwable var5) {
  174.          throw var5;
  175.       }
  176.  
  177.       return var1;
  178.    }
  179.  
  180.    public int getDescendantCount() throws NotesException {
  181.       ((NotesBase)this).CheckObject();
  182.       synchronized(this){}
  183.  
  184.       int var1;
  185.       try {
  186.          var1 = ((NotesBase)this).PropGetInt(1984);
  187.       } catch (Throwable var5) {
  188.          throw var5;
  189.       }
  190.  
  191.       return var1;
  192.    }
  193.  
  194.    public int getIndentLevel() throws NotesException {
  195.       ((NotesBase)this).CheckObject();
  196.       synchronized(this){}
  197.  
  198.       int var1;
  199.       try {
  200.          var1 = ((NotesBase)this).PropGetInt(1985);
  201.       } catch (Throwable var5) {
  202.          throw var5;
  203.       }
  204.  
  205.       return var1;
  206.    }
  207.  
  208.    public int getColumnIndentLevel() throws NotesException {
  209.       ((NotesBase)this).CheckObject();
  210.       synchronized(this){}
  211.  
  212.       int var1;
  213.       try {
  214.          var1 = ((NotesBase)this).PropGetInt(1994);
  215.       } catch (Throwable var5) {
  216.          throw var5;
  217.       }
  218.  
  219.       return var1;
  220.    }
  221.  
  222.    public int getFTSearchScore() throws NotesException {
  223.       ((NotesBase)this).CheckObject();
  224.       synchronized(this){}
  225.  
  226.       int var1;
  227.       try {
  228.          var1 = ((NotesBase)this).PropGetInt(1986);
  229.       } catch (Throwable var5) {
  230.          throw var5;
  231.       }
  232.  
  233.       return var1;
  234.    }
  235.  
  236.    public Object getParent() {
  237.       return this.parent;
  238.    }
  239.  
  240.    public Document getDocument() throws NotesException {
  241.       ((NotesBase)this).CheckObject();
  242.       synchronized(this){}
  243.  
  244.       Document var1;
  245.       try {
  246.          int var4 = ((NotesBase)this).PropGetAdt(1991);
  247.          if (var4 == 0 || this.parentDB == null) {
  248.             var1 = null;
  249.             return var1;
  250.          }
  251.  
  252.          var1 = this.parentDB.FindOrCreateDocument(var4);
  253.       } catch (Throwable var6) {
  254.          throw var6;
  255.       }
  256.  
  257.       return var1;
  258.    }
  259.  
  260.    public Vector getColumnValues() throws NotesException {
  261.       ((NotesBase)this).CheckObject();
  262.       synchronized(this){}
  263.  
  264.       Vector var1;
  265.       try {
  266.          var1 = ((NotesBase)this).PropGetVector(1990);
  267.       } catch (Throwable var5) {
  268.          throw var5;
  269.       }
  270.  
  271.       return var1;
  272.    }
  273.  
  274.    public boolean isValid() throws NotesException {
  275.       ((NotesBase)this).CheckObject();
  276.       synchronized(this){}
  277.  
  278.       boolean var1;
  279.       try {
  280.          var1 = ((NotesBase)this).PropGetBool(1993);
  281.       } catch (Throwable var5) {
  282.          throw var5;
  283.       }
  284.  
  285.       return var1;
  286.    }
  287. }
  288.