/** * Removes the feature. * * @param td the td * @param fd the fd */ private void removeFeature(TypeDescription td, FeatureDescription fd) { td.setFeatures((FeatureDescription[]) Utility.removeElementFromArray(td.getFeatures(), fd, FeatureDescription.class)); }
type.setFeatures(aFeatures);
for (int j = builtInFeatures.length, k = 0; k < newFeaturesSize; j++, k++) newFds[j] = (FeatureDescription) newFeatures.get(k); td.setFeatures(newFds); } else {
for (int j = builtInFeatures.length, k = 0; k < newFeaturesSize; j++, k++) newFds[j] = (FeatureDescription) newFeatures.get(k); td.setFeatures(newFds); } else {
typeDesc.setFeatures(featDescArr);
typeDesc.setFeatures(featDescArr);