Package org.moxie.maxml

Examples of org.moxie.maxml.MaxmlMap.containsKey()


            String prop = sub.getPropertyName();
            MaxmlMap keyMap = dataMap;
            // recursively create/find the destination map
            while (prop.indexOf('.') > -1) {
              String m = prop.substring(0, prop.indexOf('.'));
              if (!keyMap.containsKey(m)) {
                keyMap.put(m, new MaxmlMap());
              }
              keyMap = keyMap.getMap(m);
              prop = prop.substring(m.length() + 1);
            }
View Full Code Here



  ToolkitConfig parse(String content, String defaultResource) throws IOException, MaxmlException {
    MaxmlMap map = Maxml.parse(content);

    if (map.containsKey(Key.requires.name())) {
      // enforce a required minimum Moxie version
      String req = map.getString(Key.requires.name(), null);
      ArtifactVersion requires = new ArtifactVersion(req);
      ArtifactVersion running = new ArtifactVersion(Toolkit.getVersion());
      if (running.compareTo(requires) == -1) {
View Full Code Here

      pom.parentArtifactId = parent.artifactId;
      pom.parentVersion = parent.version;
    }

    // scm metadata
    if (map.containsKey(Key.scm)) {
      MaxmlMap scm = map.getMap(Key.scm.name());
      pom.scm.connection = scm.getString(Key.connection.name(), null);
      pom.scm.developerConnection = scm.getString(Key.developerConnection.name(), null);
      pom.scm.url = scm.getString(Key.url.name(), null);
      pom.scm.tag = scm.getString(Key.tag.name(), null);
View Full Code Here

          MaxmlMap depMap = (MaxmlMap) entry.getValue();
          for (String def : depMap.getStrings(Key.dependencies.name(), new ArrayList<String>())) {
            processDependency(def, override);
          }

          if (depMap.containsKey(Key.scope.name())) {
            // scopes specified
            for (String value : depMap.getStrings(Key.scope.name(), new ArrayList<String>())) {
              Scope scope = Scope.fromString(value);
              if (scope == null) {
                scope = Scope.defaultScope;
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.