Examples of addProperty()


Examples of com.google.gson.JsonObject.addProperty()

      if (libraryDriveObject == null) {
         libraryDriveObject = new JsonObject();
      }

      libraryDriveObject.addProperty("favourite", input.isFavorite());

      if (input.getDescription() != null) {
         libraryDriveObject.addProperty("description", input.getDescription());
      }
      return libraryDriveObject;

Examples of com.google.javascript.jscomp.newtypes.Namespace.addProperty()

      Namespace borrowerNamespace = currentScope.getNamespace(lendsQname);
      for (Node prop : objlit.children()) {
        String pname = NodeUtil.getObjectLitKeyName(prop);
        JSType propDeclType = declaredObjLitProps.get(prop);
        if (propDeclType != null) {
          borrowerNamespace.addProperty(pname, propDeclType, false);
        } else {
          JSType t = simpleInferExprType(prop.getFirstChild());
          if (t == null) {
            t = JSType.UNKNOWN;
          }

Examples of com.google.javascript.rhino.jstype.RecordTypeBuilder.addProperty()

  }

  private JSType record(ImmutableMap<String, JSType> props) {
    RecordTypeBuilder builder = createRecordTypeBuilder();
    for (Entry<String, JSType> e : props.entrySet()) {
      builder.addProperty(e.getKey(), e.getValue(), null);
    }
    return builder.build();
  }

  private void testTTL(JSType expectedType, String ttlExp,

Examples of com.google.storage.onestore.v3.OnestoreEntity.Index.addProperty()

    }

    suggestedIndex.clearProperty();
    suggestedIndex.setAncestor(minimumRemaining.ancestorConstraint);
    for (String name : minimumRemaining.equalityProperties) {
      suggestedIndex.addProperty().setName(name).setDirection(Direction.ASCENDING);
    }
    Collections.sort(suggestedIndex.mutablePropertys(), PROPERTY_NAME_COMPARATOR);

    suggestedIndex.mutablePropertys().addAll(minimumPostfix);
    return suggestedIndex;

Examples of com.googlecode.jslint4java.JSLintResult.ResultBuilder.addProperty()

                // Extract the list of properties. Note that we don't expose the counts, as it
                // doesn't seem that useful.
                Object properties = lintFunc.get("property", lintFunc);
                if (properties != UniqueTag.NOT_FOUND) {
                    for (Object id: ScriptableObject.getPropertyIds((Scriptable) properties)) {
                        b.addProperty(id.toString());
                    }
                }

                return b.build();
            }

Examples of com.groupon.jenkins.dynamic.build.DynamicProject.addProperty()

            project.setDescription(format("<a href=\"%s\">%s</a>", githubRepository.getUrl(), githubRepository.getUrl()));
            project.setConcurrentBuild(true);
            if (StringUtils.isNotEmpty(SetupConfig.get().getLabel())) {
                project.setAssignedLabel(Jenkins.getInstance().getLabel(SetupConfig.get().getLabel()));
            }
            project.addProperty(new ParametersDefinitionProperty(new GithubBranchParameterDefinition("BRANCH", "master",githubRepository.getUrl())));
            project.addProperty(new GithubRepoProperty(githubRepository.getUrl()));
            project.addProperty(new BuildTypeProperty(SetupConfig.get().getDefaultBuildType()));

            project.save();
            folder.addItem(project);

Examples of com.hp.hpl.jena.ontology.DatatypeProperty.addProperty()

    }
   
    String resourceString = ns_ + goodName ;
    log.info("datatype Property created " + resourceString);
    DatatypeProperty p = newOntModel.createDatatypeProperty(resourceString);
    p.addProperty(RDFS.label, str);
    p.addDomain(classForTerms);
    return p;
  }

  private String getGoodName(String str, boolean allowColon) {

Examples of com.hp.hpl.jena.ontology.Individual.addProperty()

    // perform ABox addition which results in an inconsistent KB
    Property role = model.getProperty( foaf + "mbox" );
    individual = model.getIndividual( mindswappers + "Christian.Halaschek" );
    RDFNode mbox = model.getIndividual( "mailto:kolovski@cs.umd.edu" );
    individual.addProperty( role, mbox );

    // perform incremental consistency check
    s = System.currentTimeMillis();
    consistent = pelletJenaGraph.isConsistent();
    e = System.currentTimeMillis();

Examples of com.hp.hpl.jena.ontology.ObjectProperty.addProperty()

        }

        if (objectProperty == null) {
            String propertyURI = namingStrategy.getObjectPropertyName(ontologyURI, propertyDefinition);
            objectProperty = ontModel.createObjectProperty(propertyURI);
            objectProperty.addProperty(CMSAdapterVocabulary.CMSAD_RESOURCE_REF_PROP,
                propertyDefinition.getUniqueRef());
            if (propertyDefinition.getSourceObjectTypeRef() != null) {
                objectProperty.addProperty(CMSAdapterVocabulary.CMSAD_PROPERTY_SOURCE_OBJECT_PROP,
                    propertyDefinition.getSourceObjectTypeRef());
            } else {

Examples of com.hp.hpl.jena.ontology.OntClass.addProperty()

    OntClass cls = newOntModel.createClass(resourceString);
   
    log.info("KKKKKKKKKKKKKK cls.getNameSpace() = " +cls.getNameSpace());
    log.info("KKKKKKKKKKKKKK cls.getLocalName() = " +cls.getLocalName());
   
    cls.addProperty(RDFS.label, primaryClass);
    log.info("class created " + resourceString);
   
    return cls;

  }
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.