8 package cz.vutbr.fit.knot.annotations.entity.attribute;
 
   10 import javax.persistence.DiscriminatorValue;
 
   11 import javax.persistence.Entity;
 
   25 @DiscriminatorValue(
"AnyAnnotation")
 
   68     StringBuilder result = 
new StringBuilder();
 
   69     if(getAttributeType() != null){
 
   70       if(getTextValue().equals(
"koae:linkedAnnotation")){
 
   72         result.append(
"<trix:uri>");
 
   73         result.append(getAttributeType().getUri());
 
   74         result.append(
"</trix:uri>");
 
   76         result.append(
"</trix:triple>");
 
   79         result.append(
"<trix:triple>");
 
   80         result.append(
"<trix:uri>");
 
   81         result.append(this.refAnnotation.getSource()).append(this.refAnnotation.getFragmentXpointersV2());
 
   82         result.append(
"</trix:uri>");
 
   85         if(ontologyUri == null || ontologyUri.isEmpty()){
 
   86           result.append(
"<trix:name>");
 
   87           result.append(this.name);
 
   88           result.append(
"</trix:name>");
 
   90           result.append(
"<trix:uri>");
 
   91           result.append(ontologyUri);
 
   92           result.append(
"</trix:uri>");
 
   96         result.append(
"<trix:uri>");
 
   97         result.append(
"koae:linkedAnnotation");
 
   98         result.append(
"</trix:uri>");
 
   99         result.append(
"</trix:triple>");
 
  100       }
else if(uri.equals(
"koae:nestedAnnotation")){
 
  102         result.append(
"<trix:uri>");
 
  103         result.append(getAttributeType().getUri());
 
  104         result.append(
"</trix:uri>");
 
  106         result.append(
"</trix:triple>");
 
  109         result.append(
"<trix:triple>");
 
  110         result.append(
"<trix:uri>");
 
  111         result.append(this.refAnnotation.getSource()).append(this.refAnnotation.getFragmentXpointersV2());
 
  112         result.append(
"</trix:uri>");
 
  116         if(ontologyUri == null || ontologyUri.isEmpty()){
 
  117           result.append(
"<trix:name>");
 
  118           result.append(this.name);
 
  119           result.append(
"</trix:name>");
 
  121           result.append(
"<trix:uri>");
 
  122           result.append(ontologyUri);
 
  123           result.append(
"</trix:uri>");
 
  127         result.append(
"<trix:uri>");
 
  128         result.append(
"koae:nestedAnnotation");
 
  129         result.append(
"</trix:uri>");
 
  130         result.append(
"</trix:triple>");
 
  134       result.append(
"<trix:typedLiteral datatype=\"http://knot.fit.vutbr.cz/annotations/knotOAExtension#anyAnnotation\"/>");
 
  135       result.append(
"</trix:triple>");
 
  137     return result.toString();
 
void setValue(Object value)
void setRawValue(String value)
Class representing attribute of type AnyAnnotation. 
String toXMLStringWHV2(String ontologyUri)
Base class representing attribute of annotation.