/** * Creates a new <code>method</code> element * @return the new created instance of <code>MethodType<BeanType<T>></code> */ public MethodType<BeanType<T>> createMethod() { return new MethodTypeImpl<BeanType<T>>(this, "method", childNode); }
/** * If not already created, a new <code>parameter</code> element will be created and returned. * Otherwise, the first existing <code>parameter</code> element will be returned. * @return the instance defined for the element <code>parameter</code> */ public ParameterType<MethodType<T>> getOrCreateParameter() { List<Node> nodeList = childNode.get("parameter"); if (nodeList != null && nodeList.size() > 0) { return new ParameterTypeImpl<MethodType<T>>(this, "parameter", childNode, nodeList.get(0)); } return createParameter(); }
/** * If not already created, a new <code>parameter</code> element will be created and returned. * Otherwise, the first existing <code>parameter</code> element will be returned. * @return the instance defined for the element <code>parameter</code> */ public ParameterType<MethodType<T>> getOrCreateParameter() { List<Node> nodeList = childNode.get("parameter"); if (nodeList != null && nodeList.size() > 0) { return new ParameterTypeImpl<MethodType<T>>(this, "parameter", childNode, nodeList.get(0)); } return createParameter(); }
/** * Creates a new <code>method</code> element * @return the new created instance of <code>MethodType<BeanType<T>></code> */ public MethodType<BeanType<T>> createMethod() { return new MethodTypeImpl<BeanType<T>>(this, "method", childNode); }
/** * Returns all <code>method</code> elements * @return list of <code>method</code> */ public List<MethodType<BeanType<T>>> getAllMethod() { List<MethodType<BeanType<T>>> list = new ArrayList<MethodType<BeanType<T>>>(); List<Node> nodeList = childNode.get("method"); for(Node node: nodeList) { MethodType<BeanType<T>> type = new MethodTypeImpl<BeanType<T>>(this, "method", childNode, node); list.add(type); } return list; }
/** * Returns all <code>method</code> elements * @return list of <code>method</code> */ public List<MethodType<BeanType<T>>> getAllMethod() { List<MethodType<BeanType<T>>> list = new ArrayList<MethodType<BeanType<T>>>(); List<Node> nodeList = childNode.get("method"); for(Node node: nodeList) { MethodType<BeanType<T>> type = new MethodTypeImpl<BeanType<T>>(this, "method", childNode, node); list.add(type); } return list; }
/** * If not already created, a new <code>method</code> element will be created and returned. * Otherwise, the first existing <code>method</code> element will be returned. * @return the instance defined for the element <code>method</code> */ public MethodType<BeanType<T>> getOrCreateMethod() { List<Node> nodeList = childNode.get("method"); if (nodeList != null && nodeList.size() > 0) { return new MethodTypeImpl<BeanType<T>>(this, "method", childNode, nodeList.get(0)); } return createMethod(); }
/** * If not already created, a new <code>method</code> element will be created and returned. * Otherwise, the first existing <code>method</code> element will be returned. * @return the instance defined for the element <code>method</code> */ public MethodType<BeanType<T>> getOrCreateMethod() { List<Node> nodeList = childNode.get("method"); if (nodeList != null && nodeList.size() > 0) { return new MethodTypeImpl<BeanType<T>>(this, "method", childNode, nodeList.get(0)); } return createMethod(); }