{
prop.getContainer().removeProperty(tmp);
TextType langValue;
langValue = createTextType(XmpConstants.LIST_NAME, value);
langValue.setAttribute(new Attribute(XMLConstants.XML_NS_URI, XmpConstants.LANG_NAME,
language));
prop.getContainer().addProperty(langValue);
}
reorganizeAltOrder(prop.getContainer());
return;
}
}
// if no definition found, we add a new one
TextType langValue;
langValue = createTextType(XmpConstants.LIST_NAME, value);
langValue.setAttribute(new Attribute(XMLConstants.XML_NS_URI, XmpConstants.LANG_NAME, language));
prop.getContainer().addProperty(langValue);
reorganizeAltOrder(prop.getContainer());
}
}
else
{
prop = createArrayProperty(name, Cardinality.Alt);
TextType langValue;
langValue = createTextType(XmpConstants.LIST_NAME, value);
langValue.setAttribute(new Attribute(XMLConstants.XML_NS_URI, XmpConstants.LANG_NAME, language));
prop.getContainer().addProperty(langValue);
addProperty(prop);
}
}