Package java.util

Examples of java.util.Vector


   * Notify all instance listeners that a new instance is available
   *
   * @param e an <code>InstanceEvent</code> value
   */
  protected void notifyInstanceLoaded(InstanceEvent e) {
    Vector l;
    synchronized (this) {
      l = (Vector)m_listeners.clone();
    }
   
    if (l.size() > 0) {
      for(int i = 0; i < l.size(); i++) {
  ((InstanceListener)l.elementAt(i)).acceptInstance(e);
      }
      m_dataSet = null;
    }
  }
View Full Code Here


     *
     *
     * @return ...
     */
    public Enumeration getSubnodes() {
        return (nodes == null) ? new Vector().elements() : nodes.elements();
    }
View Full Code Here

     * creates document header too and initializes
     * the cache of already converted nodes.
     */
    public boolean write(INode node) throws IOException {
        rootState = node.getState();
        convertedNodes = new Vector();

        if (explicitEncoding == null) {
            writeln("<?xml version=\"1.0\"?>");
        } else {
            writeln("<?xml version=\"1.0\" encoding=\"" + explicitEncoding + "\"?>");
View Full Code Here

      }
    }
  }

  protected void notifyTestListeners(TestSetEvent tse) {
    Vector l;
    synchronized (this) {
      l = (Vector)m_testListeners.clone();
    }
    if (l.size() > 0) {
      for(int i = 0; i < l.size(); i++) {
  System.err.println("Notifying test listeners "
         +"(ClassAssigner)");
  ((TestSetListener)l.elementAt(i)).acceptTestSet(tse);
      }
    }
  }
View Full Code Here

      }
    }
  }

  protected void notifyTrainingListeners(TrainingSetEvent tse) {
    Vector l;
    synchronized (this) {
      l = (Vector)m_trainingListeners.clone();
    }
    if (l.size() > 0) {
      for(int i = 0; i < l.size(); i++) {
  System.err.println("Notifying training listeners "
         +"(ClassAssigner)");
  ((TrainingSetListener)l.elementAt(i)).acceptTrainingSet(tse);
      }
    }
  }
View Full Code Here

      }
    }
  }

  protected void notifyDataListeners(DataSetEvent tse) {
    Vector l;
    synchronized (this) {
      l = (Vector)m_dataListeners.clone();
    }
    if (l.size() > 0) {
      for(int i = 0; i < l.size(); i++) {
  System.err.println("Notifying data listeners "
         +"(ClassAssigner)");
  ((DataSourceListener)l.elementAt(i)).acceptDataSet(tse);
      }
    }
  }
View Full Code Here

      }
    }
  }

  protected void notifyInstanceListeners(InstanceEvent tse) {
    Vector l;
    synchronized (this) {
      l = (Vector)m_instanceListeners.clone();
    }
    if (l.size() > 0) {
      for(int i = 0; i < l.size(); i++) {
  //  System.err.println("Notifying instance listeners "
  //         +"(ClassAssigner)");
 
  ((InstanceListener)l.elementAt(i)).acceptInstance(tse);
      }
    }
  }
View Full Code Here

      }
    }
  }

  protected void notifyDataFormatListeners() {
    Vector l;
    synchronized (this) {
      l = (Vector)m_dataFormatListeners.clone();
    }
    if (l.size() > 0) {
      DataSetEvent dse = new DataSetEvent(this, m_connectedFormat);
      for(int i = 0; i < l.size(); i++) {
  //  System.err.println("Notifying instance listeners "
  //         +"(ClassAssigner)");
  ((DataFormatListener)l.elementAt(i)).newDataFormat(dse);
      }
    }
  }
View Full Code Here

  private int bitBuf;
  private int bitPos;

  private void addComment(String s) {
    if (comments == null) {
      comments = new Vector();
    }
    comments.addElement(s);
  }
View Full Code Here

    }
    return dataSet;
  }

  protected void notifyDataListeners(DataSetEvent tse) {
    Vector l;
    synchronized (this) {
      l = (Vector)m_dataListeners.clone();
    }
    if (l.size() > 0) {
      for(int i = 0; i < l.size(); i++) {
  System.err.println("Notifying data listeners "
         +"(ClassValuePicker)");
  ((DataSourceListener)l.elementAt(i)).acceptDataSet(tse);
      }
    }
  }
View Full Code Here

TOP

Related Classes of java.util.Vector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.