Examples of addAlias()


Examples of com.cardence.lawshelf.model.Code.addAlias()

        code = new UscCode();
        model.setCode(code);
      }

      if (type.equals("AUTHORITIES-PUBLICATION-NAME")) {
        code.addAlias(value);
        code.addAttribute(type, value);
      } else if (type.equals("AUTHORITIES-PUBLICATION-ID")) {
        code.addAlias(value);
        code.addAttribute(type, value);
      } else if (type.equals("AUTHORITIES-PUBLICATION-YEAR")) {
View Full Code Here

Examples of com.dotcms.repackage.org.elasticsearch.action.admin.indices.alias.IndicesAliasesRequest.addAlias()

        try{
            // checking for existing alias
            if(getAliasToIndexMap(APILocator.getSiteSearchAPI().listIndices()).get(alias)==null) {
                Client client=new ESClient().getClient();
                IndicesAliasesRequest req=new IndicesAliasesRequest();
                req.addAlias(indexName, alias);
                client.admin().indices().aliases(req).actionGet(30000L);
            }
         } catch (Exception e) {
             Logger.error(ESIndexAPI.class, e.getMessage(), e);
             throw new RuntimeException(e);
View Full Code Here

Examples of com.dubture.symfony.index.model.Service.addAlias()

          HashMap<String, Service> newServices = new HashMap<String, Service>();
          while (it.hasNext()) {
            String aliasID = (String) it.next();           
            Service _s=  services.get(aliasID);
            if (_s != null) {
                _s.addAlias(aliasID);
                if (alias.equals(aliasID)) {
                    newServices.put(id, _s);
                }
            }
          }
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.store.feature.entity.EntityFeaturePojo.addAlias()

              feature = new EntityFeaturePojo();
              feature.setCommunityId(communityId);
              feature.setDimension(ent.getDimension());
              feature.setDisambiguatedName(ent.getDisambiguatedName());
              feature.setType(ent.getType());
              feature.addAlias(ent.getDisambiguatedName());             
              entityInCommunity.put(feature.getCommunityId(), feature);
            }
            if ( feature.getGeotag() == null )  {
              feature.setGeotag(ent.getGeotag());
              feature.setOntology_type(ent.getOntology_type());
View Full Code Here

Examples of com.lowagie.text.xml.XmlPeer.addAlias()

        if (HtmlTagMap.isBody(name)) {
            // maybe we could extract some info about the document: color,
            // margins,...
            // but that's for a later version...
            XmlPeer peer = new XmlPeer(ElementTags.ITEXT, name);
            peer.addAlias(ElementTags.TOP, HtmlTags.TOPMARGIN);
            peer.addAlias(ElementTags.BOTTOM, HtmlTags.BOTTOMMARGIN);
            peer.addAlias(ElementTags.RIGHT, HtmlTags.RIGHTMARGIN);
            peer.addAlias(ElementTags.LEFT, HtmlTags.LEFTMARGIN);
            bodyAttributes.putAll(peer.getAttributes(attrs));
            handleStartingTags(peer.getTag(), bodyAttributes);
View Full Code Here

Examples of com.openshift.client.IApplication.addAlias()

    // pre-condition
    IApplication application = ApplicationTestUtils.getOrCreateApplication(domain);
    String alias = createAlias();
    // operation

    application.addAlias(alias);

    // verification
    assertThat(application.getAliases()).contains(alias);
  }
View Full Code Here

Examples of edu.cmu.cs.fusion.test.TestAliasContext.addAlias()

   
    //op has type Foo.methodName(Foo) : Bar
    //instr has type Foo.m(Foo) : Bar
   
    TestAliasContext aliases = new TestAliasContext();
    aliases.addAlias(instr.getReceiverOperand(), labels[5]);
    aliases.addAlias(instr.getTarget(), labels[0]);
    aliases.addAlias(instr.getArgOperands().get(0), labels[3]);

    FusionEnvironment<?> env = new FusionEnvironment<TestAliasContext>(aliases, rels, null, types, new InferenceEnvironment(null), variant);   
    Pair<RelationshipDelta, AliasDelta> deltas = runSingleConstraint(env, cons, instr);
View Full Code Here

Examples of org.apache.avro.Schema.addAlias()

   for (String key : props.keySet())
     if ("namespace".equals(key)) {               // already handled: ignore
     } else if ("aliases".equals(key)) {          // aliases
       for (String alias : getTextProps("aliases", props, token))
         s.addAlias(alias);
     } else if (props.get(key).isTextual()) {     // ignore other non-textual
       s.addProp(key, getTextProp(key, props, token));
     }

   {if (true) return s;}
View Full Code Here

Examples of org.apache.avro.Schema.addAlias()

   for (String key : props.keySet())
     if ("namespace".equals(key)) {               // already handled: ignore
     } else if ("aliases".equals(key)) {          // aliases
       for (String alias : getTextProps("aliases", props, token))
         s.addAlias(alias);
     } else if (props.get(key).isTextual()) {     // ignore other non-textual
       s.addProp(key, getTextProp(key, props, token));
     }

   {if (true) return s;}
View Full Code Here

Examples of org.apache.avro.Schema.Field.addAlias()

        Field newF =
          new Field(f.name(), fSchema, f.doc(), f.defaultValue(), f.order());
        for (Map.Entry<String,JsonNode> p : f.getJsonProps().entrySet())
          newF.addProp(p.getKey(), p.getValue()); // copy props
        for (String a : f.aliases())
          newF.addAlias(a);                       // copy aliases
        newFields.add(newF);
      }
      result.setFields(newFields);
      break;
    case ARRAY:
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.