/** * If not already created, a new <code>return-value</code> element with the given value will be created. * Otherwise, the existing <code>return-value</code> element will be returned. * @return a new or existing instance of <code>ReturnValueType<MethodType<T>></code> */ public ReturnValueType<MethodType<T>> getOrCreateReturnValue() { Node node = childNode.getOrCreate("return-value"); ReturnValueType<MethodType<T>> returnValue = new ReturnValueTypeImpl<MethodType<T>>(this, "return-value", childNode, node); return returnValue; }
/** * If not already created, a new <code>constraint</code> element will be created and returned. * Otherwise, the first existing <code>constraint</code> element will be returned. * @return the instance defined for the element <code>constraint</code> */ public ConstraintType<ReturnValueType<T>> getOrCreateConstraint() { List<Node> nodeList = childNode.get("constraint"); if (nodeList != null && nodeList.size() > 0) { return new ConstraintTypeImpl<ReturnValueType<T>>(this, "constraint", childNode, nodeList.get(0)); } return createConstraint(); }
/** * If not already created, a new <code>convert-group</code> element will be created and returned. * Otherwise, the first existing <code>convert-group</code> element will be returned. * @return the instance defined for the element <code>convert-group</code> */ public GroupConversionType<ReturnValueType<T>> getOrCreateConvertGroup() { List<Node> nodeList = childNode.get("convert-group"); if (nodeList != null && nodeList.size() > 0) { return new GroupConversionTypeImpl<ReturnValueType<T>>(this, "convert-group", childNode, nodeList.get(0)); } return createConvertGroup(); }
/** * If not already created, a new <code>constraint</code> element will be created and returned. * Otherwise, the first existing <code>constraint</code> element will be returned. * @return the instance defined for the element <code>constraint</code> */ public ConstraintType<ReturnValueType<T>> getOrCreateConstraint() { List<Node> nodeList = childNode.get("constraint"); if (nodeList != null && nodeList.size() > 0) { return new ConstraintTypeImpl<ReturnValueType<T>>(this, "constraint", childNode, nodeList.get(0)); } return createConstraint(); }
/** * If not already created, a new <code>convert-group</code> element will be created and returned. * Otherwise, the first existing <code>convert-group</code> element will be returned. * @return the instance defined for the element <code>convert-group</code> */ public GroupConversionType<ReturnValueType<T>> getOrCreateConvertGroup() { List<Node> nodeList = childNode.get("convert-group"); if (nodeList != null && nodeList.size() > 0) { return new GroupConversionTypeImpl<ReturnValueType<T>>(this, "convert-group", childNode, nodeList.get(0)); } return createConvertGroup(); }
/** * If not already created, a new <code>return-value</code> element with the given value will be created. * Otherwise, the existing <code>return-value</code> element will be returned. * @return a new or existing instance of <code>ReturnValueType<ConstructorType<T>></code> */ public ReturnValueType<ConstructorType<T>> getOrCreateReturnValue() { Node node = childNode.getOrCreate("return-value"); ReturnValueType<ConstructorType<T>> returnValue = new ReturnValueTypeImpl<ConstructorType<T>>(this, "return-value", childNode, node); return returnValue; }
/** * If not already created, a new <code>return-value</code> element with the given value will be created. * Otherwise, the existing <code>return-value</code> element will be returned. * @return a new or existing instance of <code>ReturnValueType<MethodType<T>></code> */ public ReturnValueType<MethodType<T>> getOrCreateReturnValue() { Node node = childNode.getOrCreate("return-value"); ReturnValueType<MethodType<T>> returnValue = new ReturnValueTypeImpl<MethodType<T>>(this, "return-value", childNode, node); return returnValue; }
/** * If not already created, a new <code>return-value</code> element with the given value will be created. * Otherwise, the existing <code>return-value</code> element will be returned. * @return a new or existing instance of <code>ReturnValueType<ConstructorType<T>></code> */ public ReturnValueType<ConstructorType<T>> getOrCreateReturnValue() { Node node = childNode.getOrCreate("return-value"); ReturnValueType<ConstructorType<T>> returnValue = new ReturnValueTypeImpl<ConstructorType<T>>(this, "return-value", childNode, node); return returnValue; }