Examples of elements()


Examples of org.uengine.kernel.ValidationContext.elements()

      new ChangeListener() {
        public void stateChanged(ChangeEvent e) {
          ValidationContext valCtx = ((ActivityRecord)thisForm.getInstance()).getActivity().validate(null);
          if(valCtx!=null && valCtx.size()>0){
            StringBuffer errMsg = new StringBuffer();
            for(Enumeration enumeration = valCtx.elements(); enumeration.hasMoreElements();){
              Object item = (Object)enumeration.nextElement();
              errMsg.append(item +"\n");
            }
            validationPanel.setText(errMsg.toString());
          }else
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.elements()

            // This code doesn't work when the output is a complex type.
            // Object output = this.outputMessage.getObjectPart(name);
            // return output;

            XmlElement outputElement = (XmlElement) element;
            Iterator valueElementItr = outputElement.elements(null, name).iterator();
            LinkedList<String> ret = new LinkedList<String>();
            while(valueElementItr.hasNext()){
              XmlElement valueElement = (XmlElement) valueElementItr.next();
              Iterator childIt = valueElement.children().iterator();
               int numberOfChildren = 0;
View Full Code Here

Examples of org.xmlpull.v1.builder.XmlElement.elements()

    private static ArrayList<String> findArrayValue(String name,
            WSIFMessageElement response) {
        XmlElement param = response.element(null, name);
        if (param != null) {
            Iterable it = param.elements(null, "value");
            if (it != null) {
                ArrayList<String> values = new ArrayList<String>();

                Iterator arrayValues = it.iterator();
                while (arrayValues.hasNext()) {
View Full Code Here

Examples of persistence.antlr.collections.impl.IndexedVector.elements()

        GrammarFile gf = hier.getFile(getFileName());
        gf.setExpanded(true);

        // Copy rules from supergrammar into this grammar
        IndexedVector inhRules = superG.getRules();
        for (Enumeration e = inhRules.elements(); e.hasMoreElements();) {
            Rule r = (Rule)e.nextElement();
            inherit(r, superG);
        }

        // Copy options from supergrammar into this grammar
View Full Code Here

Examples of pt.opensoft.util.NameValue.elements()

          _url = new URL(locationHeader.getValue());

          if( _url.getQuery() != null ) {
            NameValue queryString = new NameValue(_url.getQuery(), "&", "=");
            _parameters.clear();
            for(int i = 0; i < queryString.elements().length; i++) {
              String queryParamName = queryString.elements()[i];
              addParameter(queryParamName, queryString.getString(queryParamName));
            }
          }
View Full Code Here

Examples of restx.common.RestxConfig.elements()

                    @Override
                    @SuppressWarnings("unchecked")
                    public <T> Set<Name<T>> nameBuildableComponents(Class<T> componentClass) {
                        if (String.class == componentClass) {
                            return (Set) Sets.newHashSet(Iterables.transform(config.elements(),
                                    new Function<ConfigElement, Name<String>>() {
                                @Override
                                public Name<String> apply(ConfigElement input) {
                                    return Name.of(String.class, input.getKey());
                                }
View Full Code Here

Examples of tools.util.EZArrayList.elements()

    EZArrayList v = new EZArrayList(new StringTokenizer(tok,","));
    String n = null;
    String va = null;
    int i = 0;
    Enumeration en = v.elements();
    //for (int ct = 0;ct < v.size();ct++)
    while (en.hasMoreElements())
    {

      n = en.nextElement().toString();
View Full Code Here

Examples of weka.core.FastVector.elements()

    newVector.addElement(new Option(stringZeroAsMissing, "Z", 0,
        "-Z"));
    newVector.addElement(new Option(string10, "c", 1,
            "-c <the class index>"));
   
    return newVector.elements();
  }

  /**
   * Parses a given list of options. <p/>
   *
 
View Full Code Here

Examples of weka.core.Stopwords.elements()

                e.printStackTrace();
            }
        }
       
        HashSet<String> result = new HashSet<String>();
        Enumeration<String> words = (Enumeration<String>)stops.elements();
        while (words.hasMoreElements()) {
            result.add(words.nextElement());
        }
        return result;
    }
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.