kit/src/main/java/com/oracle/javafx/scenebuilder/kit/metadata/util/DesignHierarchyMask.java
public boolean isAcceptingSubComponent(final Collection<FXOMObject> fxomObjects) {
    final PropertyName propertyName = getSubComponentPropertyName();
    if (propertyName != null) {
      queryPropertyMetadata();
      final ComponentPropertyMetadata subComponentMetadata = propertyMetadataMap.get(propertyName);
      assert subComponentMetadata != null;
      final Class<?> subComponentClass = subComponentMetadata.getClassMetadata().getKlass();
      for (FXOMObject obj : fxomObjects) {
        final Object sceneGraphObject;
        if (obj instanceof FXOMIntrinsic) {
          final FXOMIntrinsic intrinsicObj = (FXOMIntrinsic) obj;
          sceneGraphObject = intrinsicObj.getSourceSceneGraphObject();
        } else {
          sceneGraphObject = obj.getSceneGraphObject();
        }
        if (!subComponentClass.isInstance(sceneGraphObject)) {
          return false;
        }
      }
      return true;
    }
    return false;
  }
/**
   * Returns true if this mask accepts the specified sub components.
   *
   * @param fxomObjects
   * @return
   */
Returns true if this mask accepts the specified sub components.
@param fxomObjects
@return
Returns true if this mask accepts the specified sub components . @param fxomObjects @return
public boolean isAcceptingSubComponent(final Collection<FXOMObject> fxomObjects) {
    final PropertyName propertyName = getSubComponentPropertyName();
    if (propertyName != null) {
      queryPropertyMetadata();
      final ComponentPropertyMetadata subComponentMetadata = propertyMetadataMap.get(propertyName);
      assert subComponentMetadata != null;
      final Class<?> subComponentClass = subComponentMetadata.getClassMetadata().getKlass();
      for (FXOMObject obj : fxomObjects) {
        final Object sceneGraphObject;
        if (obj instanceof FXOMIntrinsic) {
          final FXOMIntrinsic intrinsicObj = (FXOMIntrinsic) obj;
          sceneGraphObject = intrinsicObj.getSourceSceneGraphObject();
        } else {
          sceneGraphObject = obj.getSceneGraphObject();
        }
        if (!subComponentClass.isInstance(sceneGraphObject)) {
          return false;
        }
      }
      return true;
    }
    return false;
  }
public boolean isAcceptingSubComponent ( final Collection < FXOMObject > fxomObjects ) { final PropertyName propertyName = getSubComponentPropertyName ( ) ; if ( propertyName != null ) { queryPropertyMetadata ( ) ; final ComponentPropertyMetadata subComponentMetadata = propertyMetadataMap . get ( propertyName ) ; assert subComponentMetadata != null ; final Class < ? > subComponentClass = subComponentMetadata . getClassMetadata ( ) . getKlass ( ) ; for ( FXOMObject obj : fxomObjects ) { final Object sceneGraphObject ; if ( obj instanceof FXOMIntrinsic ) { final FXOMIntrinsic intrinsicObj = ( FXOMIntrinsic ) obj ; sceneGraphObject = intrinsicObj . getSourceSceneGraphObject ( ) ; } else { sceneGraphObject = obj . getSceneGraphObject ( ) ; } if ( ! subComponentClass . isInstance ( sceneGraphObject ) ) { return false ; } } return true ; } return false ; }
Returns true if this mask accepts the specified sub components.
Returns true if this mask accepts the specified sub components .