Ejemplo n.º 1
1
  public static ComponentInComponent_c[] getManyCN_CICsOnR4202(
      Component_c target, ClassQueryInterface_c test, boolean loadComponent) {
    if (target == null) return new ComponentInComponent_c[0];

    ModelRoot modelRoot = target.getModelRoot();
    Vector matches = new Vector();
    synchronized (target.backPointer_CanNestComponentInComponentCanNest_R4202) {
      for (int i = 0; i < target.backPointer_CanNestComponentInComponentCanNest_R4202.size(); ++i) {
        ComponentInComponent_c source =
            (ComponentInComponent_c)
                target.backPointer_CanNestComponentInComponentCanNest_R4202.get(i);
        if (source != null && (test == null || test.evaluate(source))) {

          matches.add(source);
        }
      }
    }

    if (matches.size() > 0) {
      ComponentInComponent_c[] ret_set = new ComponentInComponent_c[matches.size()];
      matches.copyInto(ret_set);
      return ret_set;
    } else {
      return new ComponentInComponent_c[0];
    }
  }
Ejemplo n.º 2
0
 public static ComponentInComponent_c getOneCN_CICOnR4202(
     Component_c target, ClassQueryInterface_c test) {
   if (target != null) {
     return getOneCN_CICOnR4202(target.getModelRoot(), target, test);
   }
   return null;
 }
  public static ComponentResultSet_c[] getManyPE_CRSsOnR8007(
      Component_c target, ClassQueryInterface_c test, boolean loadComponent) {
    if (target == null) return new ComponentResultSet_c[0];

    ModelRoot modelRoot = target.getModelRoot();
    Vector matches = new Vector();
    synchronized (target.backPointer_HoldsComponentResultSetHolds_R8007) {
      for (int i = 0; i < target.backPointer_HoldsComponentResultSetHolds_R8007.size(); ++i) {
        ComponentResultSet_c source =
            (ComponentResultSet_c) target.backPointer_HoldsComponentResultSetHolds_R8007.get(i);
        if (source != null && (test == null || test.evaluate(source))) {

          matches.add(source);
        }
      }
    }

    if (matches.size() > 0) {
      ComponentResultSet_c[] ret_set = new ComponentResultSet_c[matches.size()];
      matches.copyInto(ret_set);
      return ret_set;
    } else {
      return new ComponentResultSet_c[0];
    }
  }
 public static ComponentResultSet_c getOnePE_CRSOnR8007(
     Component_c target, ClassQueryInterface_c test) {
   if (target != null) {
     return getOnePE_CRSOnR8007(target.getModelRoot(), target, test);
   }
   return null;
 }
Ejemplo n.º 5
0
 public static ComponentInComponent_c getOneCN_CICOnR4202(
     Component_c target, boolean loadComponent) {
   return getOneCN_CICOnR4202(target.getModelRoot(), target, null, loadComponent);
 }
 public static ComponentResultSet_c getOnePE_CRSOnR8007(
     Component_c target, boolean loadComponent) {
   return getOnePE_CRSOnR8007(target.getModelRoot(), target, null, loadComponent);
 }