Add convenience method to add supported OpSet

cusax-fix
Ingo Bauersachs 13 years ago
parent aaf0802be6
commit 3a7160f9f7

@ -428,6 +428,21 @@ public void setSupportedOpSets(
this.supportedOpSets = supportedOpSets;
}
/**
* Adds a supported OpSet to the list of supported OpSets.
* @param supportedOpSet the OpSet to support.
*/
public void addSupportedOpSet(Class<? extends OperationSet> supportedOpSet)
{
if (this.supportedOpSets == null)
{
this.supportedOpSets
= new ArrayList<Class<? extends OperationSet>>(2);
}
this.supportedOpSets.add(supportedOpSet);
}
/**
* Gets the category, if any, of this <tt>ContactQuery</tt>.
*

Loading…
Cancel
Save