コード例 #1
0
  @Before
  public void initialize() {
    presentation = new Presentation();
    presentation.setDegreeOfFidelity("testFed");
    presentation.setPropertyId("testPropertyID");
    presentation.setLanguage("en");
    Text value = new Text();
    value.setContent("testValue");
    value.setDataType("string");
    presentation.setValue(value);
    presentation.setPropertyName("property name");

    presentation.addUsageContext("test usage context 1");
    presentation.addUsageContext("test usage context 2");
    presentation.addUsageContext("test usage context 3");

    LexEvsIdentityConverter lexEvsIdentityConverter = new DefaultLexEvsIdentityConverter();
    this.converter.setLexEvsIdentityConverter(lexEvsIdentityConverter);

    designation = baseDozerBeanMapper.map(presentation, Designation.class);

    //		// renderURI
    //		designation.setCorrespondingStatement(correspondingStatement); n/a
    //		// enum: PREFERRED, ALTERNATIVE, HIDDEN
    //		designation.setDesignationRole(designationRole);
    //		designation.setDesignationType(designationType); - property name
    //		designation.setFormat(format); value type
    //		designation.setSchema(schema); n/a
    // qualifier, source post to wiki

  }