private void collect(String mimeType, Action info) { // Create list for this MIME-type when needed ActionList collectList = get(mimeType); if (collectList == null) { collectList = new ActionList(); put(mimeType, collectList); } collectList.add(info); }
public ActionList getActionList() { ActionList actionList = new ActionList(); Node scdpNode = getSCPDNode(); if (scdpNode == null) return actionList; Node actionListNode = scdpNode.getNode(ActionList.ELEM_NAME); if (actionListNode == null) return actionList; int nNode = actionListNode.getNNodes(); for (int n = 0; n < nNode; n++) { Node node = actionListNode.getNode(n); if (Action.isActionNode(node) == false) continue; Action action = new Action(serviceNode, node); actionList.add(action); } return actionList; }