Examples of type()


Examples of org.sonatype.nexus.testsuite.capabilities.client.CapabilityA.type()

    // read
    final CapabilityA read = capabilities().get(CapabilityA.class, created.id());

    assertThat(read.id(), is(created.id()));
    assertThat(read.notes(), is(created.notes()));
    assertThat(read.type(), is(created.type()));
    assertThat(read.properties(), is(created.properties()));
    assertThat(read.propertyA1(), is(created.propertyA1()));

    // update
    read.withNotes("Some other notes").save();
View Full Code Here

Examples of org.sonatype.nexus.testsuite.capabilities.client.CapabilityB.type()

    // read
    final CapabilityB read = capabilities().get(CapabilityB.class, created.id());

    assertThat(read.id(), is(created.id()));
    assertThat(read.notes(), is(created.notes()));
    assertThat(read.type(), is(created.type()));
    assertThat(read.properties(), is(created.properties()));
    assertThat(read.propertyB1(), is(created.propertyB1()));

    // update
    read.withNotes("Some other notes").save();
View Full Code Here

Examples of org.springframework.data.elasticsearch.annotations.Document.type()

    if (clazz.isAnnotationPresent(Document.class)) {
      Document document = clazz.getAnnotation(Document.class);
      Assert.hasText(document.indexName(),
          " Unknown indexName. Make sure the indexName is defined. e.g @Document(indexName=\"foo\")");
      this.indexName = typeInformation.getType().getAnnotation(Document.class).indexName();
      this.indexType = hasText(document.type()) ? document.type() : clazz.getSimpleName().toLowerCase(Locale.ENGLISH);
      this.shards = typeInformation.getType().getAnnotation(Document.class).shards();
      this.replicas = typeInformation.getType().getAnnotation(Document.class).replicas();
      this.refreshInterval = typeInformation.getType().getAnnotation(Document.class).refreshInterval();
      this.indexStoreType = typeInformation.getType().getAnnotation(Document.class).indexStoreType();
    }
View Full Code Here

Examples of org.springframework.data.elasticsearch.annotations.Parent.type()

      if (parent != null) {
        Assert.isNull(this.parentIdProperty, "Only one field can hold a @Parent annotation");
        Assert.isNull(this.parentType, "Only one field can hold a @Parent annotation");
        Assert.isTrue(property.getType() == String.class, "Parent ID property should be String");
        this.parentIdProperty = property;
        this.parentType = parent.type();
      }
    }

    if (property.isVersionProperty()) {
      Assert.isTrue(property.getType() == Long.class, "Version property should be Long");
View Full Code Here

Examples of org.springframework.data.jpa.repository.EntityGraph.type()

    private static final JpaEntityGraph findEntityGraph(Method method) {

      EntityGraph entityGraphAnnotation = AnnotationUtils.findAnnotation(method, EntityGraph.class);
      return entityGraphAnnotation == null ? null : new JpaEntityGraph(entityGraphAnnotation.value(),
          entityGraphAnnotation.type());
    }

    private static final LockModeType findLockModeType(Method method) {

      Lock annotation = AnnotationUtils.findAnnotation(method, Lock.class);
View Full Code Here

Examples of org.springframework.data.neo4j.annotation.RelationshipEntity.type()

    @Override
    public String getRelationshipType() {
        if (!isRelationshipEntity()) return null;
        final RelationshipEntity annotation = getAnnotation(RelationshipEntity.class);
        return annotation.type().isEmpty() ? null : annotation.type();
    }

    @Override
    public String toString() {
        return String.format("%s %smanaged @%sEntity Annotations: %s", getType(), isManaged() ? "" : "un", isNodeEntity() ? "Node" : "Relationship", annotations.keySet());
View Full Code Here

Examples of org.springframework.hateoas.alps.Descriptor.DescriptorBuilder.type()

          ResourceMetadata targetTypeMapping = mappings.getMappingFor(property.getActualType());
          String localPath = targetTypeMapping.getRel().concat("#").concat(targetTypeMapping.getItemResourceRel());
          Link link = ControllerLinkBuilder.linkTo(AlpsController.class).slash(localPath).withSelfRel();

          builder.//
              type(Type.SAFE).//
              rt(link.getHref());

        } else {
View Full Code Here

Examples of org.terasology.input.DefaultBinding.type()

    private void addBind(Name moduleName, Class<?> buttonEvent, RegisterBindButton info) {
        List<Input> defaultInputs = Lists.newArrayList();
        for (Annotation annotation : buttonEvent.getAnnotations()) {
            if (annotation instanceof DefaultBinding) {
                DefaultBinding defaultBinding = (DefaultBinding) annotation;
                Input input = defaultBinding.type().getInput(defaultBinding.id());
                if (!data.values().contains(input)) {
                    defaultInputs.add(input);
                }
            }
        }
View Full Code Here

Examples of org.uberfire.java.nio.file.FileStore.type()

    @Test
    public void simpleTests() {
        final FileStore fileStore = new SimpleUnixFileStore( null );

        assertThat( fileStore.name() ).isNotNull().isEqualTo( "/" );
        assertThat( fileStore.type() ).isNull();
        assertThat( fileStore.isReadOnly() ).isFalse();
        assertThat( fileStore.getTotalSpace() ).isEqualTo( File.listRoots()[ 0 ].getTotalSpace() );
        assertThat( fileStore.getUsableSpace() ).isEqualTo( File.listRoots()[ 0 ].getUsableSpace() );

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

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

    @Test
    public void simpleTests() {
        final FileStore fileStore = new SimpleUnixFileStore( null );

        assertThat( fileStore.name() ).isNotNull().isEqualTo( "/" );
        assertThat( fileStore.type() ).isNull();
        assertThat( fileStore.isReadOnly() ).isFalse();
        assertThat( fileStore.getTotalSpace() ).isEqualTo( File.listRoots()[ 0 ].getTotalSpace() );
        assertThat( fileStore.getUsableSpace() ).isEqualTo( File.listRoots()[ 0 ].getUsableSpace() );

        assertThat( fileStore.supportsFileAttributeView( BasicFileAttributeView.class ) ).isTrue();
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.