/* (non-Javadoc)
* @see com.trendrr.strest.doc.AbstractDocTag#process(com.trendrr.strest.doc.StrestDocParser, java.lang.String)
*/
@Override
public Object process(StrestDocParser parser, String value) {
DynMap mp = new DynMap();
//look for @default
String defval = this.tagValue("default", value);
if (defval != null) {
mp.put("default", defval);
value = this.removeTag("default", value);
}
mp.put("required", this.containsTag("required", value));
value = this.removeTag("required", value);
int ind = value.indexOf(' ');
if (ind == -1) {
//only the param in this one.
mp.put(this.tagName(), value);
return mp;
}
String param = value.substring(0, ind).trim();
mp.put(this.tagName(), param);
value = value.substring(ind).trim();
mp.put("description", value);
return mp;
}