It's not sufficient just to add a new aliasName to the list. You'd also 
need to push the change back down to the EAnnotation, from which the list 
contents is derived:

  public List getAliasNames(EModelElement modelElement) {
    EAnnotation eAnnotation = getAnnotation(modelElement, false);
    List list = null;
    if (eAnnotation != null) {
      String aliasNames = (String)eAnnotation.getDetails().get(
"aliasNames");
      if (aliasNames != null) {
        list = new ArrayList();
        StringTokenizer st = new StringTokenizer(aliasNames, " ");
        while (st.hasMoreTokens()) {
          String t = st.nextToken();
          list.add(t);
        }
      }
    }
    return list;
  }

Frank.




"David Adcox" <[EMAIL PROTECTED]> 
03/20/2008 08:22 AM
Please respond to
[email protected]


To
[email protected]
cc

Subject
Alias Name Support in Tuscany SDO






Currently, alias name support is disabled in SDO, intentionally.  The
SDOHelperImpl.addAliasName(Type,String) and
SDOHelperImpl.addAliasName(Property,String) throw an
UnsupportedOperationException when called.  Does this function still
need to be disabled?  When I remove these guards, my test cases seem
to function properly.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to