Examples of Enumeration


Examples of java.util.Enumeration

  protected static ResourceXmlBean getResource(String id) {
    return (ResourceXmlBean) roots.get(id);
  }

  protected static Vector getItems() {
    Enumeration elts = roots.elements();
    Vector retour = new Vector();
    while (elts.hasMoreElements()) {
      retour.add(elts.nextElement());
    }
    return retour;
  }
View Full Code Here

Examples of java.util.Enumeration

    not.addClientMessages(cm);
  }

  public void flush() {
    if (nots.size() > 0) {
      Enumeration ids = nots.keys();
      Enumeration notifs = nots.elements();
      while (notifs.hasMoreElements()) {
        AgentId to = (AgentId) ids.nextElement();
        RequestGroupNot not = (RequestGroupNot) notifs.nextElement();
        if (to.getTo() == proxyAgent.getId().getTo()) {
          not.setPersistent(false);
          proxyAgent.sendNot(to, not);
        } else {
          proxyAgent.sendNot(to, not);
View Full Code Here

Examples of java.util.Enumeration

    }
   
    private boolean addcmdCapture()
    {
        // if a source hasn't already been set use the first
        Enumeration e = cc.getCaptureSources();
        String szSource = (String) e.nextElement();
        // make sure there's a valid capture source
        if (this.szCurrentSource == null || this.szCurrentSource == "") {
            this.szCurrentSource = szSource;
        }
View Full Code Here

Examples of java.util.Enumeration

    protected void close() {
      socket.close();
    }

    protected void shutdown() {
      Enumeration enumSrvInfo = serversInfo.elements();
      while (enumSrvInfo.hasMoreElements()) {
        ServerInfo srvInfo = (ServerInfo) enumSrvInfo.nextElement();
        if (srvInfo.messageIncomingBuilder != null) {
          srvInfo.messageIncomingBuilder.shutdown();
        }
      }
      close();
View Full Code Here

Examples of org.eclipse.uml2.uml.Enumeration

    if(oVTR == null) {
      // the referenced object is no basic type -> create a new entry
      // ... for enumerations
      List<String> colEnumLiterals = new ArrayList<String>();
      if(in_oType instanceof Enumeration) {
        Enumeration oEnumeration = (Enumeration)in_oType;
        for(EnumerationLiteral oLiteral : oEnumeration.getOwnedLiterals()) {
          colEnumLiterals.add(oLiteral.getName());
        }
       
        EnumerableValueTypeRange<EnumerationValueType> oEnumerationValueTypeRange
          = new EnumerableValueTypeRange<EnumerationValueType>(new EnumerationValueType(colEnumLiterals));
View Full Code Here

Examples of org.jibx.schema.elements.FacetElement.Enumeration

            Object[] values = (Object[])valsmeth.invoke(null, (Object[])null);
            SimpleTypeElement simple = new SimpleTypeElement();
            SimpleRestrictionElement restr = new SimpleRestrictionElement();
            restr.setBase(Types.STRING_QNAME);
            for (int i = 0; i < values.length; i++) {
                Enumeration enumel = new Enumeration();
                enumel.setValue(namemeth.invoke(values[i], (Object[])null).toString());
                restr.getFacetsList().add(enumel);
            }
            simple.setDerivation(restr);
            addDocumentation(detail.getCustom().getClassInformation(), simple);
            return simple;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.