Examples of containsElement()


Examples of com.redcareditor.plist.Dict.containsElement()

  private void loadSettings(Dict dict) {
    List<PlistNode<?>> dictSettings = dict.getArray("settings");
    for (PlistNode<?> node : dictSettings) {
      Dict nodeDict = (Dict) node;
      if (!nodeDict.containsElement("scope")) {
        loadGlobalSetting(nodeDict);
      } else {
        settings.add(new ThemeSetting(nodeDict));
      }
    }
View Full Code Here

Examples of com.redcareditor.plist.Dict.containsElement()

    Dict plistRepoEntry;
    for (String key : plistRepo.keys()) {
//      System.out.printf("loading repository entry: %s\n", key);
      List<Pattern> repoArray = new ArrayList<Pattern>();
      plistRepoEntry = plistRepo.getDictionary(key);
      if (plistRepoEntry.containsElement("begin") || plistRepoEntry.containsElement("match")) {
//        System.out.printf("    contains begin or match\n");
        Pattern pattern = Pattern.createPattern(this.allPatterns, plistRepoEntry);
        if (pattern != null) {
          pattern.grammar = this;
          repoArray.add(pattern);
View Full Code Here

Examples of com.redcareditor.plist.Dict.containsElement()

    Dict plistRepoEntry;
    for (String key : plistRepo.keys()) {
//      System.out.printf("loading repository entry: %s\n", key);
      List<Pattern> repoArray = new ArrayList<Pattern>();
      plistRepoEntry = plistRepo.getDictionary(key);
      if (plistRepoEntry.containsElement("begin") || plistRepoEntry.containsElement("match")) {
//        System.out.printf("    contains begin or match\n");
        Pattern pattern = Pattern.createPattern(this.allPatterns, plistRepoEntry);
        if (pattern != null) {
          pattern.grammar = this;
          repoArray.add(pattern);
View Full Code Here

Examples of com.redcareditor.plist.Dict.containsElement()

        if (pattern != null) {
          pattern.grammar = this;
          repoArray.add(pattern);
        }
      }
      else if (plistRepoEntry.containsElement("patterns")) {
//        System.out.printf("    contains patterns\n");
        for (PlistNode<?> plistPattern : plistRepoEntry.getArray("patterns")) {
          Pattern pattern = Pattern.createPattern(this.allPatterns, (Dict) plistPattern);
          if (pattern != null) {
            pattern.grammar = this;
View Full Code Here

Examples of gov.nist.microanalysis.EPQLibrary.Composition.containsElement()

        AtomicShell shell;
        double q, wf, yield, lineWeight, atomicWeight, factor;
        for (XRayTransition xrt : transitions) {
            element = xrt.getElement();

            if (comp.containsElement(element)) {
                shell = xrt.getDestination();
                corrAlg.initialize(comp, shell, props);
                q = icx.computeShell(shell, energy);
                wf = comp.weightFraction(element, false);
                yield = fy.compute(shell);
View Full Code Here

Examples of gov.nist.microanalysis.EPQLibrary.Composition.containsElement()

        double[] zs;
        double rz;
        for (XRayTransition xrt : transitions) {
            zs = zPZS.get(xrt);

            if (comp.containsElement(xrt.getElement())) {
                corrAlg.initialize(comp, xrt.getDestination(), props);

                for (int i = 0; i < zs.length; i++) {
                    rz = Math.abs(zs[i]) * density;
                    gnfPZs.get(xrt)[i] = corrAlg.computeCurve(rz);
View Full Code Here

Examples of org.apache.lenya.cms.metadata.ElementSet.containsElement()

                    String key = dcElements[i].getLocalName();

                    if (dcElementSet.containsElement(key)) {
                        List values = getValueList(DublinCore.DC_NAMESPACE, key);
                        values.add(value);
                    } else if (dcTermSet.containsElement(key)) {
                        List values = getValueList(DublinCore.DCTERMS_NAMESPACE, key);
                        values.add(value);
                    } else {
                        throw new RepositoryException("The dublin core key [" + key
                                + "] is not supported.");
View Full Code Here

Examples of org.apache.lenya.cms.metadata.ElementSet.containsElement()

                    String key = dcElements[i].getLocalName();

                    if (dcElementSet.containsElement(key)) {
                        List values = getValueList(DublinCore.DC_NAMESPACE, key);
                        values.add(value);
                    } else if (dcTermSet.containsElement(key)) {
                        List values = getValueList(DublinCore.DCTERMS_NAMESPACE, key);
                        values.add(value);
                    } else {
                        throw new RepositoryException("The dublin core key [" + key
                                + "] is not supported.");
View Full Code Here

Examples of org.apache.lenya.cms.metadata.ElementSet.containsElement()

                    String key = dcElements[i].getLocalName();

                    if (dcElementSet.containsElement(key)) {
                        List values = getValueList(DublinCore.DC_NAMESPACE, key);
                        values.add(value);
                    } else if (dcTermSet.containsElement(key)) {
                        List values = getValueList(DublinCore.DCTERMS_NAMESPACE, key);
                        values.add(value);
                    } else {
                        throw new RepositoryException("The dublin core key [" + key
                                + "] is not supported.");
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.