kit/src/main/java/com/oracle/javafx/scenebuilder/kit/metadata/util/DesignHierarchyMask.java
public boolean isAcceptingSubComponent(FXOMObject obj) {
    final boolean result;

    assert obj != null;

    final PropertyName propertyName = getSubComponentPropertyName();
    if (propertyName == null) {
      result = false;
    } else {
      queryPropertyMetadata();
      final ComponentPropertyMetadata subComponentMetadata = propertyMetadataMap.get(propertyName);
      assert subComponentMetadata != null;
      final Class<?> subComponentClass = subComponentMetadata.getClassMetadata().getKlass();
      final Object sceneGraphObject;
      if (obj instanceof FXOMIntrinsic) {
        sceneGraphObject = ((FXOMIntrinsic) obj).getSourceSceneGraphObject();
      } else {
        sceneGraphObject = obj.getSceneGraphObject();
      }
      result = subComponentClass.isInstance(sceneGraphObject);
    }

    return result;
  }
/**
   * Returns true if this mask accepts the specified sub component.
   *
   * @param obj
   * @return
   */
Returns true if this mask accepts the specified sub component.
@param obj
@return
Returns true if this mask accepts the specified sub component . @param obj @return
public boolean isAcceptingSubComponent(FXOMObject obj) {
    final boolean result;
    assert obj != null;
    final PropertyName propertyName = getSubComponentPropertyName();
    if (propertyName == null) {
      result = false;
    } else {
      queryPropertyMetadata();
      final ComponentPropertyMetadata subComponentMetadata = propertyMetadataMap.get(propertyName);
      assert subComponentMetadata != null;
      final Class<?> subComponentClass = subComponentMetadata.getClassMetadata().getKlass();
      final Object sceneGraphObject;
      if (obj instanceof FXOMIntrinsic) {
        sceneGraphObject = ((FXOMIntrinsic) obj).getSourceSceneGraphObject();
      } else {
        sceneGraphObject = obj.getSceneGraphObject();
      }
      result = subComponentClass.isInstance(sceneGraphObject);
    }
    return result;
  }
public boolean isAcceptingSubComponent ( FXOMObject obj ) { final boolean result ; assert obj != null ; final PropertyName propertyName = getSubComponentPropertyName ( ) ; if ( propertyName == null ) { result = false ; } else { queryPropertyMetadata ( ) ; final ComponentPropertyMetadata subComponentMetadata = propertyMetadataMap . get ( propertyName ) ; assert subComponentMetadata != null ; final Class < ? > subComponentClass = subComponentMetadata . getClassMetadata ( ) . getKlass ( ) ; final Object sceneGraphObject ; if ( obj instanceof FXOMIntrinsic ) { sceneGraphObject = ( ( FXOMIntrinsic ) obj ) . getSourceSceneGraphObject ( ) ; } else { sceneGraphObject = obj . getSceneGraphObject ( ) ; } result = subComponentClass . isInstance ( sceneGraphObject ) ; } return result ; }
Returns true if this mask accepts the specified sub component.
Returns true if this mask accepts the specified sub component .