Examples of addType()


Examples of org.geotools.filter.FilterCapabilities.addType()

   
    @Override
    protected FilterCapabilities createFilterCapabilities() {
        FilterCapabilities caps = super.createFilterCapabilities();
        caps.addType(BBOX.class);
        caps.addType(Contains.class);
        caps.addType(Crosses.class);
        caps.addType(Disjoint.class);
        caps.addType(Equals.class);
        caps.addType(Intersects.class);

Examples of org.graylog2.notifications.Notification.addType()

        return LOG;
    }

    protected Notification getNotification() throws NodeNotFoundException {
        Notification notification = notificationService.buildNow();
        notification.addType(Notification.Type.NO_INPUT_RUNNING);
        notification.addSeverity(Notification.Severity.URGENT);
        notification.addNode(nodeId.toString());

        return notification;
    }

Examples of org.graylog2.notifications.Notification.addType()

                activityWriter.write(new Activity(msg, InputRegistry.class));
                break;
            case FAILED:
                activityWriter.write(new Activity(state.getDetailedMessage(), InputRegistry.class));
                Notification notification = notificationService.buildNow();
                notification.addType(Notification.Type.INPUT_FAILED_TO_START).addSeverity(Notification.Severity.NORMAL);
                notification.addNode(serverStatus.getNodeId().toString());
                notification.addDetail("input_id", state.getMessageInput().getId());
                notification.addDetail("reason", state.getDetailedMessage());
                notificationService.publishIfFirst(notification);
                break;

Examples of org.jboss.managed.api.ManagedDeployment.addType()

                        {
                           String guessedType = deploymentName.substring(i + 1, deploymentName.length());
                           if(guessedType.endsWith("/"))
                              guessedType = guessedType.substring(0, guessedType.length() -1 );
                           md.setTypes(new HashSet<String>(1));
                           md.addType(guessedType);
                        }
                     }

                     processManagedDeployment(md, key, DeploymentState.STOPPED, 0, trace);
                  }

Examples of org.jboss.managed.plugins.ManagedDeploymentImpl.addType()

                        {
                           String guessedType = deploymentName.substring(i + 1, deploymentName.length());
                           if(guessedType.endsWith("/"))
                              guessedType = guessedType.substring(0, guessedType.length() -1 );
                           md.setTypes(new HashSet<String>(1));
                           md.addType(guessedType);
                        }
                     }

                     processManagedDeployment(md, key, DeploymentState.STOPPED, 0, trace);
                  }

Examples of org.jitterbit.integration.structure.crom.CROM.addType()

*/
public class SimpleTextStructureMappingTreeConverter {

    public MappingTreeStructure convert(SimpleTextStructure text, CallbackResult callback) {
        CROM root=new CROM(null, true, "", -1, CromType.CROM_t_Text);
        root.addType(CROM.CROM_t_Root);
        Segment seg=text.getSegment();
        CROM flat_node=new CROM(root, true, seg.getName(), -1, CromType.CROM_t_Text);
        flat_node.addType(CROM.CROM_t_Collection);
        if(text.getDelimiter()!=null || text.getStringQualifier()!=null){
          CROM_ext ext=flat_node.getExtension();

Examples of org.mindswap.pellet.Individual.addType()

       
        if( pred.equals( Compiler.TYPE ) ) {
          // add a type assertion for the individual
          Individual ind = abox.getIndividual( subj );
          ATermAppl type = obj;
          ind.addType( type, ds );
        } else if ( pred.equals( Compiler.SAME_AS ) ) {
          Individual ind1 = abox.getIndividual( subj );
          Individual ind2 = abox.getIndividual( obj );
         
          ind1.setSame( ind2, DependencySet.INDEPENDENT );

Examples of org.mindswap.pellet.KnowledgeBase.addType()

    // peform ABox addition which results in a consistent KB
    ATermAppl concept = ATermUtils.makeTermAppl( mindswap + "GraduateStudent" );
    ATermAppl individual = ATermUtils.makeTermAppl( mindswappers + "JohnDoe" );
    kb.addIndividual( individual );
    kb.addType( individual, concept );

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

Examples of org.mindswap.pellet.Literal.addType()

  @Test
  public void oneVSatisfiableDecimalRanges() throws InvalidConstrainingFacetException, InvalidLiteralException,
                  UnrecognizedDatatypeException {
    final Literal x = new Literal(term("x"), null, abox, DependencySet.INDEPENDENT);
    for (ATermAppl a : getSatisfiableDecimalRanges()) {
      x.addType(a, DependencySet.INDEPENDENT);
    }

    assertTrue(reasoner.isSatisfiable(singleton(x), Collections.<Literal, Set<Literal>> emptyMap()));
  }

Examples of org.nebulaframework.grid.service.event.ServiceEvent.addType()

   * @return ServiceEvent
   */
  private static ServiceEvent createJobEndEvent(String jobId) {
    ServiceEvent event = new ServiceEvent();
    event.setMessage(jobId);
    event.addType(ServiceMessageType.JOB_CANCEL);
    event.addType(ServiceMessageType.JOB_END);
    return event;
  }
 
  /**
 
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.