8 package cz.vutbr.fit.knot.annotations.entity.attribute;
12 import java.util.Iterator;
13 import javax.persistence.DiscriminatorValue;
14 import javax.persistence.Entity;
28 @DiscriminatorValue(value=
"Text")
38 return this.textValue;
48 this.textValue = (String) value;
85 public String
toXMLString(
boolean proto11,
boolean tmpIdForNested,
boolean withOntology) {
86 String ontoString =
"";
89 if(!getTypeOntologyUri().isEmpty()){
90 ontoString +=
" typeOntologyUri=\""+getTypeOntologyUri()+
"\"";
93 Iterator<AnnotTypeAttr> typeAttrIt = refAnnotation.getAnnotType().getAttributes().iterator();
94 while(typeAttrIt.hasNext()){
96 if(name.equals(actualAttr.
getName())){
98 ontoString +=
" ontologyUri=\"" + actualAttr.getUriInOntology() +
"\"";
104 if (this.textValue == null) {
105 return "<a:attribute name=\"" + name +
"\"" + ontoString +
" type=\"" + simpleType +
"\">"
109 + getCommentXmlPart(proto11)
112 return "<a:attribute name=\"" + name +
"\"" + ontoString +
" type=\"" + simpleType +
"\">"
118 + getCommentXmlPart(proto11)
Class representing attribute of type String..
Class representing attribute of type of annotation.
String toXMLString(boolean proto11, boolean tmpIdForNested, boolean withOntology)
Class representing attribute of type Text.
String getCommentXmlPart(boolean proto11)
String getTypeOntologyUri()
void setValue(Object value)
static final String TEXT_URI
String getUriInOntology()
void setRawValue(String value)