/** * If not already created, a new <code>cross-parameter</code> element with the given value will be created. * Otherwise, the existing <code>cross-parameter</code> element will be returned. * @return a new or existing instance of <code>CrossParameterType<MethodType<T>></code> */ public CrossParameterType<MethodType<T>> getOrCreateCrossParameter() { Node node = childNode.getOrCreate("cross-parameter"); CrossParameterType<MethodType<T>> crossParameter = new CrossParameterTypeImpl<MethodType<T>>(this, "cross-parameter", childNode, node); return crossParameter; }
/** * 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<CrossParameterType<T>> getOrCreateConstraint() { List<Node> nodeList = childNode.get("constraint"); if (nodeList != null && nodeList.size() > 0) { return new ConstraintTypeImpl<CrossParameterType<T>>(this, "constraint", childNode, nodeList.get(0)); } return createConstraint(); }
/** * 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<CrossParameterType<T>> getOrCreateConstraint() { List<Node> nodeList = childNode.get("constraint"); if (nodeList != null && nodeList.size() > 0) { return new ConstraintTypeImpl<CrossParameterType<T>>(this, "constraint", childNode, nodeList.get(0)); } return createConstraint(); }
/** * If not already created, a new <code>cross-parameter</code> element with the given value will be created. * Otherwise, the existing <code>cross-parameter</code> element will be returned. * @return a new or existing instance of <code>CrossParameterType<ConstructorType<T>></code> */ public CrossParameterType<ConstructorType<T>> getOrCreateCrossParameter() { Node node = childNode.getOrCreate("cross-parameter"); CrossParameterType<ConstructorType<T>> crossParameter = new CrossParameterTypeImpl<ConstructorType<T>>(this, "cross-parameter", childNode, node); return crossParameter; }
/** * If not already created, a new <code>cross-parameter</code> element with the given value will be created. * Otherwise, the existing <code>cross-parameter</code> element will be returned. * @return a new or existing instance of <code>CrossParameterType<MethodType<T>></code> */ public CrossParameterType<MethodType<T>> getOrCreateCrossParameter() { Node node = childNode.getOrCreate("cross-parameter"); CrossParameterType<MethodType<T>> crossParameter = new CrossParameterTypeImpl<MethodType<T>>(this, "cross-parameter", childNode, node); return crossParameter; }
/** * If not already created, a new <code>cross-parameter</code> element with the given value will be created. * Otherwise, the existing <code>cross-parameter</code> element will be returned. * @return a new or existing instance of <code>CrossParameterType<ConstructorType<T>></code> */ public CrossParameterType<ConstructorType<T>> getOrCreateCrossParameter() { Node node = childNode.getOrCreate("cross-parameter"); CrossParameterType<ConstructorType<T>> crossParameter = new CrossParameterTypeImpl<ConstructorType<T>>(this, "cross-parameter", childNode, node); return crossParameter; }