コード例 #1
0
  /** @see IModelClassInspector#hasChildren(Object) Returns true if this node has any children */
  public boolean hasChildRelations(Object arg) {
    PropertyParameter_c[] v_parameters =
        PropertyParameter_c.getManyC_PPsOnR4006(
            ExecutableProperty_c.getManyC_EPsOnR4500(
                RequiredExecutableProperty_c.getManySPR_REPsOnR4502((RequiredSignal_c) arg)));

    if (v_parameters.length > 0) return true;
    return false;
  }
コード例 #2
0
  /** @see IModelClassInspector#getChildRelations(Object) Returns the children of this node */
  public ObjectElement[] getChildRelations(Object arg) {
    int resultSize = 0;
    PropertyParameter_c[] v_parameters =
        PropertyParameter_c.getManyC_PPsOnR4006(
            ExecutableProperty_c.getManyC_EPsOnR4500(
                RequiredExecutableProperty_c.getManySPR_REPsOnR4502((RequiredSignal_c) arg)));

    sort(v_parameters);
    List<ObjectElement> result = new ArrayList<ObjectElement>();
    for (int i = 0; i < v_parameters.length; i++) {
      result.add(
          new ObjectElement(
              "v_parameters", ObjectElement.RELATION_ROLE_ELEMENT, v_parameters[i], arg, false));
    }
    return result.toArray(new ObjectElement[result.size()]);
  }