Package java.util

Examples of java.util.Set


  @ uses
  This function sets links on members
  */
  public void setLinks(DisplayList DL )
  {
    Set listkey = DL.keySet();
     Iterator it =  listkey.iterator();
      while( it.hasNext() )
       {
       String str = ( String )it.next();
      StringMember sm=null;
          ListElement ele  = ( ListElement )DL.get( str );
View Full Code Here


  @ uses
  This function sets links on members
  */
  public void setLinks(DisplayList DL )
  {
    Set listkey = DL.keySet();
     Iterator it =  listkey.iterator();
      while( it.hasNext() )
       {
       String str = ( String )it.next();
      StringMember sm=null;
          ListElement ele  = ( ListElement )DL.get( str );
View Full Code Here

  {
    HashMap hmap = new HashMap();

    Stack stack = getTableTrack(target, source);

    Set tableSet = new TreeSet();
   
    String pop1 = "";
    String pop2 = "";   
    pop1 = (String)stack.pop();
    tableSet.add(pop1);
    String searchClause = " ";
   
    while(!stack.empty())
    {
      pop2 = (String)stack.pop();     
      tableSet.add(pop1);
      tableSet.add(pop2);     
      Vector vec = (Vector) ((HashMap)this.get(pop2)).get(pop1);

      String clause = "";
      String othTableNames = "";

      if (vec.size() == 1)
      {
          TableRelate tr = (TableRelate)vec.get(0);
         
          clause      = tr.getCaluse();
          String othName = tr.getOthertablename();
          if(othName == null)
            othName = "";
          othTableNames =  othName;     
      }
      else
      {
        clause = clause + " AND (  ";
        for (int i = 0;i<vec.size();i++)
        {
          TableRelate tr = (TableRelate)vec.get(i);
         
          if(i > 0)
            clause      = clause + " OR ( 1 = 1 "+ tr.getCaluse() + " ) ";
          else
            clause      = clause + " ( 1 = 1 "+ tr.getCaluse() + " ) ";                   
           
          String othName = tr.getOthertablename();
          if(othName == null)
            othName = "";

          if( !((othTableNames.trim()).equals("")))
          othTableNames = othTableNames +" , "+ othName;
           
        }
        clause = clause + " ) ";
      }
      StringTokenizer parse = new StringTokenizer(othTableNames, ",");

      while (parse.hasMoreTokens ())
      {
         tableSet.add(parse.nextToken().toString());
      }
 
     
      searchClause = searchClause +" "+clause;
      pop1 = pop2;     
View Full Code Here

          track.push(lastTrack);
        }
      }
      // 2 nd Step
      HashMap currChild = (HashMap)get(currEle);
      Set set = currChild.keySet();
      current.addAll(set);
     
      //3 rd Step
      if (current.empty())
      {
View Full Code Here

      String folderID = null;
      if (pageContext.findAttribute("folderID") != null) {
        folderID = (this.request.getAttribute("folderID")).toString();
      }
      Set buttonValueKey = buttonValueList.keySet();
      Iterator iter = buttonValueKey.iterator();
      while (iter.hasNext()) {
        Number key = (Number) iter.next();
        String value = (String) buttonValueList.get(key);

        if ((value != null && !value.equals("root")) && (folderID != null && !folderID.equals(key.toString()))) {
View Full Code Here


    public PaymentList setLinksfunction( PaymentList DL )
    {
      String url = null;
      Set listkey = DL.keySet();
      Iterator it =  listkey.iterator();
      while( it.hasNext() )
      {
        try
        {
          String str = ( String )it.next();
View Full Code Here

    This function sets links on members
    @return TicketList object
  */
  public TicketList setLinksfunction( TicketList DL ) {

    Set listkey = DL.keySet();
    Iterator it =  listkey.iterator();
    while( it.hasNext() )
    {
      try
      {
        String str = ( String )it.next();
View Full Code Here


  public InventoryList setLinksfunction( InventoryList DL )
  {
    String url = null;
    Set listkey = DL.keySet();
    Iterator it =  listkey.iterator();
    while( it.hasNext() )
    {
      //System.out.println("in while");
      try
      {
View Full Code Here

    }

    public OrderList setLinksfunction( OrderList DL )
    {

      Set listkey = DL.keySet();
      Iterator it =  listkey.iterator();
      while( it.hasNext() )
      {
        try
        {
          String str = ( String )it.next();
View Full Code Here

  public Vector getViewComboData(ListPreference listPreference)
  {
    Vector viewVec = new Vector();
    try {
      HashMap listViewHM = listPreference.getViewHashMap();
      Set listViewSet = listViewHM.keySet();
      Iterator iterator = listViewSet.iterator();
      String viewName = "";
      DDNameValue ddNameValue = null;
      ListView listView = null;
      String viewIdStr = "0";
      while (iterator.hasNext()) {
View Full Code Here

TOP

Related Classes of java.util.Set

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.