prop.getContainer().removeProperty(tmp);
TextType langValue;
langValue = new TextType(metadata, "rdf", "li",
value);
langValue.setAttribute(new Attribute(null, "xml",
"lang", language));
prop.getContainer().addProperty(langValue);
}
reorganizeAltOrder(prop.getContainer());
return;
}
}
// if no definition found, we add a new one
TextType langValue;
langValue = new TextType(metadata, "rdf", "li", value);
langValue.setAttribute(new Attribute(null, "xml", "lang",
language));
prop.getContainer().addProperty(langValue);
reorganizeAltOrder(prop.getContainer());
}
} else {
String[] splittedQualifiedName = qualifiedName.split(":");
prop = new ComplexProperty(metadata, splittedQualifiedName[0],
splittedQualifiedName[1], ComplexProperty.ALTERNATIVE_ARRAY);
TextType langValue;
langValue = new TextType(metadata, "rdf", "li", value);
langValue
.setAttribute(new Attribute(null, "xml", "lang", language));
prop.getContainer().addProperty(langValue);
content.addProperty(prop);
}
}