8 package cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes;
11 import java.util.Iterator;
12 import javax.persistence.MappedSuperclass;
61 String ontoString =
"";
67 Iterator<AnnotTypeAttr> typeAttrIt = refSuggestion.getAnnotType().getAttributes().iterator();
68 while(typeAttrIt.hasNext()){
72 ontoString +=
" ontologyUri=\"" + actualAttr.getUriInOntology() +
"\"";
77 return "<a:attribute name=\"" +
name +
"\"" + ontoString +
" type=\"" +
simpleType +
"\">";
96 return "</a:attribute>";
125 public String
toXMLString(
boolean proto11,
boolean withOntology) {
128 return super.toXMLString(proto11,
false);
145 public void setRawValue(String value)
throws IllegalArgumentException {
146 throw new UnsupportedOperationException(
"Structured attributes are not represented by single value.");
165 public abstract void setRawValues(Object values)
throws IllegalArgumentException;
192 return this.attributeType.getUriInOntology();
String getTypeOntologyUri()
String getXmlStart(boolean withOntology)
void setRawValue(String value)
Class representing attribute of type of annotation.
abstract String getXmlAttributeName()
Class representing attribute of suggestion.
abstract Object getValue()
String getUriInOntology()
abstract String getXmlBody()
abstract void setRawValues(Object values)
Abstract class representing more complex attribute of suggestion.
String getUriInOntology()
String toXMLString(boolean proto11, boolean withOntology)
String getCommentXmlPart(boolean proto11)