/** * There is only message documentation if this web result is BARE. * * @return The documentation if BARE, null otherwise. */ public String getMessageDocs() { if (isBare()) { return getDocComment(); } return null; }
/** * If this web result is a part, the comments for the result. * * @return The part docs. */ public String getPartDocs() { if (isBare()) { return null; } return getDocComment(); }
public Collection<WebMessagePart> getParts() { if (!isBare() && !isHeader()) { throw new UnsupportedOperationException("Web result doesn't represent a complex method input/output."); } return new ArrayList<WebMessagePart>(Arrays.asList(this)); }
/** * The message name in the case of a document/bare service. * * @return The message name in the case of a document/bare service. */ public String getMessageName() { String messageName = null; if (isBare()) { messageName = method.getDeclaringEndpointInterface().getSimpleName() + "." + method.getSimpleName() + "Response"; } else if (isHeader()) { messageName = method.getDeclaringEndpointInterface().getSimpleName() + "." + method.getSimpleName() + "." + getName(); } return messageName; }