Code example for Vector

Methods: elementAt, size

0
   *         that matches the constraints. 
   */ 
  public Source getAssociatedStylesheet()
  { 
 
    int sz = m_stylesheets.size();
 
    if (sz > 0)
    { 
      Source source = (Source) m_stylesheets.elementAt(sz-1);
      return source;      
    } 
    else 
      return null; 
  } 
 
  /** 
   * Handle the xml-stylesheet processing instruction. 
   * 
   * @param target The processing instruction target. 
   * @param data The processing instruction data, or null if