Examples of buildObject()


Examples of org.opensaml.xml.schema.impl.XSStringBuilder.buildObject()

            attribute.setNameFormat("urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified");

            XSStringBuilder attributeValueBuilder = (XSStringBuilder) builderFactory
                    .getBuilder(XSString.TYPE_NAME);

            XSString stringValue = attributeValueBuilder.buildObject(
                    AttributeValue.DEFAULT_ELEMENT_NAME, XSString.TYPE_NAME);
            stringValue.setValue("Colombo/Rahas");
            attribute.getAttributeValues().add(stringValue);
            attributes = new Attribute[1];
            attributes[0] = attribute;
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderAnnotation.buildObject()

        // given
        BuilderAnnotation builder = new BuilderAnnotation(df).withProperty(ap)
                .withValue(lit);
        OWLObject expected = df.getOWLAnnotation(ap, lit);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderAnnotationAssertion.buildObject()

                .withAnnotations(annotations).withProperty(ap).withSubject(iri)
                .withValue(lit);
        OWLObject expected = df.getOWLAnnotationAssertionAxiom(ap, iri, lit,
                annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderAnnotationProperty.buildObject()

        // given
        BuilderAnnotationProperty builder = new BuilderAnnotationProperty(df)
                .withIRI(iri);
        OWLObject expected = df.getOWLAnnotationProperty(iri);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderAnnotationPropertyDomain.buildObject()

                df).withProperty(ap).withDomain(iri)
                .withAnnotations(annotations);
        OWLObject expected = df.getOWLAnnotationPropertyDomainAxiom(ap, iri,
                annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderAnnotationPropertyRange.buildObject()

                df).withProperty(ap).withRange(iri)
                .withAnnotations(annotations);
        OWLObject expected = df.getOWLAnnotationPropertyRangeAxiom(ap, iri,
                annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderAnonymousIndividual.buildObject()

        // given
        BuilderAnonymousIndividual builder = new BuilderAnonymousIndividual(df)
                .withId("id");
        OWLObject expected = df.getOWLAnonymousIndividual("id");
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderAsymmetricObjectProperty.buildObject()

        BuilderAsymmetricObjectProperty builder = new BuilderAsymmetricObjectProperty(
                df).withProperty(op).withAnnotations(annotations);
        OWLObject expected = df.getOWLAsymmetricObjectPropertyAxiom(op,
                annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderClass.buildObject()

    public void shouldBuildClass() {
        // given
        BuilderClass builder = new BuilderClass(df).withIRI(iri);
        OWLObject expected = df.getOWLClass(iri);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderClassAssertion.buildObject()

        // given
        BuilderClassAssertion builder = new BuilderClassAssertion(df)
                .withClass(ce).withIndividual(i).withAnnotations(annotations);
        OWLObject expected = df.getOWLClassAssertionAxiom(ce, i, annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
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.