[JBoss JIRA] (SHRINKDESC-157) Allow removal of single element in collection elements
by Ralf Battenfeld (JIRA)
[ https://issues.jboss.org/browse/SHRINKDESC-157?page=com.atlassian.jira.pl... ]
Ralf Battenfeld commented on SHRINKDESC-157:
--------------------------------------------
Hi George, the only problem is see is to identify the record to be deleted. By instance? I am not sure that all elements implement the id field
> Allow removal of single element in collection elements
> ------------------------------------------------------
>
> Key: SHRINKDESC-157
> URL: https://issues.jboss.org/browse/SHRINKDESC-157
> Project: ShrinkWrap Descriptors
> Issue Type: Enhancement
> Components: api-javaee
> Affects Versions: 2.0.0-alpha-6
> Reporter: George Gastaldi
>
> It should be possible to remove a single element when dealing with a collection element.
> For example:
> {code}
> public interface JavaeeInterceptorsCommType<PARENT, ORIGIN extends JavaeeInterceptorsCommType<PARENT, ORIGIN>>
> extends Child<PARENT> {
> /**
> * Creates for all String objects representing <code>Class</code> elements,
> * a new <code>Class</code> element
> * @param values list of <code>Class</code> objects
> * @return the current instance of <code>ORIGIN</code>
> */
> public ORIGIN clazz(String ... values);
> /**
> * Returns all <code>Class</code> elements
> * @return list of <code>Class</code>
> */
> public List<String> getAllClazz();
> /**
> * Removes the <code>Class</code> element
> * @return the current instance of <code>ORIGIN</code>
> */
> public ORIGIN removeAllClazz();
> }
> {code}
> It's not possible to remove a single <class> element, but all of them.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)