Search in sources :

Example 31 with ExtrinsicObjectType

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

the class DirectDocument2Test method testServiceStopTime.

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

Example 32 with ExtrinsicObjectType

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

the class DirectDocument2Test method testFormatCode_localized.

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

Example 33 with ExtrinsicObjectType

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

the class DirectDocument2Test method testFormatCode.

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

Example 34 with ExtrinsicObjectType

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

the class DirectDocument2Test method testUniqueId.

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

Example 35 with ExtrinsicObjectType

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

the class DirectDocument2Test method testLanguageCode.

/**
     * Test languageCode.
     * 
     * @throws Exception
     */
public void testLanguageCode() throws Exception {
    DirectDocument2 document = new DirectDocument2();
    DirectDocument2.Metadata metadata = document.getMetadata();
    String value = "input";
    metadata.setLanguageCode(value);
    ExtrinsicObjectType eot = metadata.generateExtrinsicObjectType();
    metadata = new DirectDocument2.Metadata();
    metadata.setValues(eot);
    assertEquals("Output does not match expected", value, metadata.getLanguageCode());
}
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