[JBoss JIRA] (SHRINKDESC-157) Allow removal of single element in collection elements
by George Gastaldi (JIRA)
George Gastaldi created SHRINKDESC-157:
------------------------------------------
Summary: 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
Security Level: Public (Everyone can see)
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.2.6#6264)