Examples of type()


Examples of org.uberfire.java.nio.fs.file.SimpleWindowsFileStore.type()

    public void simpleTests() {
        final Path path = GeneralPathImpl.create( fileSystem, "something", false );
        final FileStore fileStore = new SimpleWindowsFileStore( roots, path );

        assertThat( fileStore.name() ).isNotNull().isEqualTo( "c:\\" );
        assertThat( fileStore.type() ).isNull();
        assertThat( fileStore.isReadOnly() ).isFalse();
        assertThat( fileStore.getTotalSpace() ).isEqualTo( 0L );
        assertThat( fileStore.getUsableSpace() ).isEqualTo( 0L );

        assertThat( fileStore.supportsFileAttributeView( BasicFileAttributeView.class ) ).isTrue();
View Full Code Here

Examples of org.usb4java.Transfer.type()

    @Test
    public void testType()
    {
        assumeUsbTestsEnabled();
        final Transfer transfer = LibUsb.allocTransfer(0);
        assertEquals(0, transfer.type());
        transfer.setType((byte) 1);
        assertEquals(1, transfer.type());
        transfer.setType((byte) 0);
        assertEquals(0, transfer.type());
        LibUsb.freeTransfer(transfer);
View Full Code Here

Examples of org.voltdb.planner.PlanColumn.type()

            PlanColumn column = PlannerContext.singleton().get(column_guid);
            String inner = " : guid=" + column_guid;
            if (column != null) {
                assert (column_guid == column.guid());
                name = column.getDisplayName();
                inner += " : type=" + column.type() + " : size=" + column.width() + " : sort=" + column.getSortOrder() + " : storage=" + column.getStorage();
            }

            ret += String.format("%s   [%02d] %s%s\n", spacer, ctr, name, inner);

            if (column != null && column.getExpression() != null) { // && (true
View Full Code Here

Examples of org.wicketstuff.pageserializer.common.analyze.ISerializedObjectTree.type()

   *          source nodes
   * @return one node
   */
  protected static ISerializedObjectTree compress(List<? extends ISerializedObjectTree> list) {
    ISerializedObjectTree first = list.get(0);
    final Class<?> type = first.type();
    final String label = allLables(list);

    int size = 0;
    for (ISerializedObjectTree t : list) {
      size = size + t.size();
View Full Code Here

Examples of org.xhtmlrenderer.css.style.Length.type()

                        nEffCols++;
                        _widths.add(new Length());
                    }
                    int eSpan = table.spanOfEffCol(cCol + i);
                    if ((w.isFixed() || w.isPercent()) && w.value() > 0) {
                        _widths.set(cCol + i, new Length(w.value() * eSpan, w.type()));
                        usedWidth += effWidth * eSpan;
                    }
                    usedSpan += eSpan;
                    i++;
                }
View Full Code Here

Examples of org.xsocket.Resource.type()

  static void injectServerField(Object handler, IServer server) {
    Field[] fields = handler.getClass().getDeclaredFields();
    for (Field field : fields) {
      if (field.isAnnotationPresent(Resource.class)) {
        Resource res = field.getAnnotation(Resource.class);
        if ((field.getType() == IServer.class) || (res.type() == IServer.class)) {
          field.setAccessible(true);
          try {
            field.set(handler, server);
          } catch (IllegalAccessException iae) {
            LOG.warning("could not set HandlerContext for attribute " + field.getName() + ". Reason " + iae.toString());
View Full Code Here

Examples of ru.aristar.jnuget.common.CollectionGenericType.type()

     * @return коллекция значений.
     * @throws Exception ошибка преобразования.
     */
    private Collection getCollectionValue(Method method, Class<?> valueType, Collection<String> values) throws Exception {
        CollectionGenericType annotation = method.getAnnotation(CollectionGenericType.class);
        Class<?> elementType = annotation == null ? String.class : annotation.type();
        @SuppressWarnings("unchecked")
        Collection<? super Object> result = (Collection) valueType.getConstructor().newInstance();
        for (String stringValue : values) {
            stringValue = OptionConverter.replaceVariables(stringValue);
            Object value = getValueFromString(elementType, stringValue);
View Full Code Here

Examples of ru.yandex.qatools.allure.annotations.Attachment.type()

                joinPoint.getArgs()
        );

        Charset charset = AllureConfig.newInstance().getAttachmentsEncoding();
        byte[] bytes = (result instanceof byte[]) ? (byte[]) result : result.toString().getBytes(charset);
        Allure.LIFECYCLE.fire(new MakeAttachmentEvent(bytes, attachTitle, attachment.type()));
    }

}
View Full Code Here

Examples of ru.yandex.qatools.allure.annotations.Description.type()

     */
    public ru.yandex.qatools.allure.model.Description getDescription() {
        Description description = getAnnotation(Description.class);
        return description == null ? null : new ru.yandex.qatools.allure.model.Description()
                .withValue(description.value())
                .withType(description.type());
    }

    /**
     * Find first {@link ru.yandex.qatools.allure.annotations.Severity} annotation
     *
 
View Full Code Here

Examples of se.rupy.http.Reply.type()

    public String path() { return "/ping"; }
    public void filter(Event event) throws Event, Exception {
      try {
        new In(event);
        Reply reply = event.reply();
        reply.type("text/xml");
        Output out = reply.output();
        out.println("<?xml version=\"1.0\"?>");
        out.println("<methodResponse>");
        out.println("  <params>");
        out.println("    <param>");
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.