/** * INTERNAL: * Returns all the child descriptors, even descriptors for subclasses of * subclasses. * Required for bug 3019934. */ @Override public List<ClassDescriptor> getAllChildDescriptors() { // Guess the number of child descriptors... List<ClassDescriptor> allChildDescriptors = new ArrayList(this.getAllChildClassIndicators().size()); return getAllChildDescriptors(allChildDescriptors); }
/** * INTERNAL: * Returns all the child descriptors, even descriptors for subclasses of * subclasses. * Required for bug 3019934. */ @Override public List<ClassDescriptor> getAllChildDescriptors() { // Guess the number of child descriptors... List<ClassDescriptor> allChildDescriptors = new ArrayList(this.getAllChildClassIndicators().size()); return getAllChildDescriptors(allChildDescriptors); }
/** * INTERNAL: * Returns all the child descriptors, even descriptors for subclasses of * subclasses. * Required for bug 3019934. */ public Vector getAllChildDescriptors() { // Guess the number of child descriptors... Vector allChildDescriptors = new Vector(this.getAllChildClassIndicators().size()); return getAllChildDescriptors(allChildDescriptors); }
/** * INTERNAL: * Post initialize the child descriptors */ protected void addClassIndicatorTypeToParent(Object indicator) { ClassDescriptor parentDescriptor = getDescriptor().getInheritancePolicy().getParentDescriptor(); if (parentDescriptor.getInheritancePolicy().isChildDescriptor()) { if (parentDescriptor.getInheritancePolicy().shouldReadSubclasses()) { parentDescriptor.getInheritancePolicy().getAllChildClassIndicators().add(indicator); } parentDescriptor.getInheritancePolicy().addClassIndicatorTypeToParent(indicator); } }
/** * INTERNAL: * Post initialize the child descriptors */ protected void addClassIndicatorTypeToParent(Object indicator) { ClassDescriptor parentDescriptor = getDescriptor().getInheritancePolicy().getParentDescriptor(); if (parentDescriptor.getInheritancePolicy().isChildDescriptor()) { if (parentDescriptor.getInheritancePolicy().shouldReadSubclasses()) { parentDescriptor.getInheritancePolicy().getAllChildClassIndicators().addElement(indicator); } parentDescriptor.getInheritancePolicy().addClassIndicatorTypeToParent(indicator); } }
/** * INTERNAL: * Post initialize the child descriptors */ protected void addClassIndicatorTypeToParent(Object indicator) { ClassDescriptor parentDescriptor = getDescriptor().getInheritancePolicy().getParentDescriptor(); if (parentDescriptor.getInheritancePolicy().isChildDescriptor()) { if (parentDescriptor.getInheritancePolicy().shouldReadSubclasses()) { parentDescriptor.getInheritancePolicy().getAllChildClassIndicators().add(indicator); } parentDescriptor.getInheritancePolicy().addClassIndicatorTypeToParent(indicator); } }
/** * INTERNAL: * Initialize the expression to use for queries to the class and its subclasses. */ protected void initializeWithAllSubclassesExpression() throws DescriptorException { if (getWithAllSubclassesExpression() == null) { if (hasClassExtractor()) { return; } if (isChildDescriptor() && shouldReadSubclasses()) { setWithAllSubclassesExpression(new ExpressionBuilder().getField(getClassIndicatorField()).in(getAllChildClassIndicators())); } } }
/** * INTERNAL: * Initialize the expression to use for queries to the class and its subclasses. */ protected void initializeWithAllSubclassesExpression() throws DescriptorException { if (getWithAllSubclassesExpression() == null) { if (hasClassExtractor()) { return; } if (isChildDescriptor() && shouldReadSubclasses()) { setWithAllSubclassesExpression(new ExpressionBuilder().getField(getClassIndicatorField()).in(getAllChildClassIndicators())); } } }
/** * INTERNAL: * Initialize the expression to use for queries to the class and its subclasses. */ protected void initializeWithAllSubclassesExpression() throws DescriptorException { if (getWithAllSubclassesExpression() == null) { if (hasClassExtractor()) { return; } if (isChildDescriptor() && shouldReadSubclasses()) { setWithAllSubclassesExpression(new ExpressionBuilder().getField(getClassIndicatorField()).in(getAllChildClassIndicators())); } } }
getAllChildClassIndicators().addElement(getClassIndicatorValue());
getAllChildClassIndicators().add(getClassIndicatorValue());
getAllChildClassIndicators().add(getClassIndicatorValue());