Search in sources :

Example 26 with ExtrinsicObjectType

use of oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType in project nhin-d by DirectProject.

the class DirectDocument2Test method testCreationTime.

/**
     * Test creationTime.
     * 
     * @throws Exception
     */
public void testCreationTime() throws Exception {
    DirectDocument2 document = new DirectDocument2();
    DirectDocument2.Metadata metadata = document.getMetadata();
    Date date = new Date(1, 2, 3, 4, 5, 6);
    metadata.setCreationTime(date);
    ExtrinsicObjectType eot = metadata.generateExtrinsicObjectType();
    metadata = new DirectDocument2.Metadata();
    metadata.setValues(eot);
    assertEquals("Output does not match expected", date.getYear(), metadata.getCreationTime().getYear());
    assertEquals("Output does not match expected", date.getMonth(), metadata.getCreationTime().getMonth());
    assertEquals("Output does not match expected", date.getDate(), metadata.getCreationTime().getDate());
    assertEquals("Output does not match expected", 0, metadata.getCreationTime().getHours());
    assertEquals("Output does not match expected", 0, metadata.getCreationTime().getMinutes());
    assertEquals("Output does not match expected", 0, metadata.getCreationTime().getSeconds());
}
Also used : ExtrinsicObjectType(oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType) Date(java.util.Date)

Example 27 with ExtrinsicObjectType

use of oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType in project nhin-d by DirectProject.

the class DirectDocument2Test method testLoinc.

/**
     * Test loinc.
     * 
     * @throws Exception
     */
public void testLoinc() throws Exception {
    DirectDocument2 document = new DirectDocument2();
    DirectDocument2.Metadata metadata = document.getMetadata();
    String value = "input";
    metadata.setLoinc(value);
    ExtrinsicObjectType eot = metadata.generateExtrinsicObjectType();
    metadata = new DirectDocument2.Metadata();
    metadata.setValues(eot);
    assertEquals("Output does not match expected", value, metadata.getLoinc());
    assertEquals("Output does not match expected", null, metadata.getLoinc_localized());
    metadata.setLoinc(value, true);
    eot = metadata.generateExtrinsicObjectType();
    metadata = new DirectDocument2.Metadata();
    metadata.setValues(eot);
    assertEquals("Output does not match expected", value, metadata.getLoinc());
    assertEquals("Output does not match expected", value, metadata.getLoinc_localized());
}
Also used : ExtrinsicObjectType(oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType)

Example 28 with ExtrinsicObjectType

use of oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType in project nhin-d by DirectProject.

the class DirectDocument2Test method testLoinc_localized.

/**
     * Test loinc_localized.
     * 
     * @throws Exception
     */
public void testLoinc_localized() throws Exception {
    DirectDocument2 document = new DirectDocument2();
    DirectDocument2.Metadata metadata = document.getMetadata();
    String value = "input";
    metadata.setLoinc(UUID.randomUUID().toString());
    metadata.setLoinc_localized(value);
    ExtrinsicObjectType eot = metadata.generateExtrinsicObjectType();
    metadata = new DirectDocument2.Metadata();
    metadata.setValues(eot);
    assertEquals("Output does not match expected", value, metadata.getLoinc_localized());
}
Also used : ExtrinsicObjectType(oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType)

Example 29 with ExtrinsicObjectType

use of oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType in project nhin-d by DirectProject.

the class DirectDocument2Test method testURI.

public void testURI() throws Exception {
    DirectDocument2 document = new DirectDocument2();
    DirectDocument2.Metadata metadata = document.getMetadata();
    String value = "input";
    metadata.setURI(value);
    ExtrinsicObjectType eot = metadata.generateExtrinsicObjectType();
    metadata = new DirectDocument2.Metadata();
    metadata.setValues(eot);
    assertEquals("Output does not match expected", value, metadata.getURI());
}
Also used : ExtrinsicObjectType(oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType)

Example 30 with ExtrinsicObjectType

use of oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType in project nhin-d by DirectProject.

the class DirectDocument2Test method testSize.

/**
     * Test size.
     * 
     * @throws Exception
     */
public void testSize() throws Exception {
    DirectDocument2 document = new DirectDocument2();
    DirectDocument2.Metadata metadata = document.getMetadata();
    Long value = 11L;
    metadata.setSize(value);
    ExtrinsicObjectType eot = metadata.generateExtrinsicObjectType();
    metadata = new DirectDocument2.Metadata();
    metadata.setValues(eot);
    assertEquals("Output does not match expected", value, metadata.getSize());
}
Also used : ExtrinsicObjectType(oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType)

Aggregations

ExtrinsicObjectType (oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType)46 RegistryPackageType (oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryPackageType)8 JAXBElement (javax.xml.bind.JAXBElement)7 RegistryObjectListType (oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType)7 ArrayList (java.util.ArrayList)5 AssociationType1 (oasis.names.tc.ebxml_regrep.xsd.rim._3.AssociationType1)5 IdentifiableType (oasis.names.tc.ebxml_regrep.xsd.rim._3.IdentifiableType)5 SlotType1 (oasis.names.tc.ebxml_regrep.xsd.rim._3.SlotType1)5 OrganizationType (oasis.names.tc.ebxml_regrep.xsd.rim._3.OrganizationType)4 PersonType (oasis.names.tc.ebxml_regrep.xsd.rim._3.PersonType)4 RegistryObjectType (oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectType)4 ServiceType (oasis.names.tc.ebxml_regrep.xsd.rim._3.ServiceType)4 Date (java.util.Date)3 ClassificationType (oasis.names.tc.ebxml_regrep.xsd.rim._3.ClassificationType)3 Metacard (ddf.catalog.data.Metacard)2 OffsetDateTime (java.time.OffsetDateTime)2 HashMap (java.util.HashMap)2 QName (javax.xml.namespace.QName)2 SubmitObjectsRequest (oasis.names.tc.ebxml_regrep.xsd.lcm._3.SubmitObjectsRequest)2 ExternalIdentifierType (oasis.names.tc.ebxml_regrep.xsd.rim._3.ExternalIdentifierType)2