kit/src/main/java/com/oracle/javafx/scenebuilder/kit/metadata/util/DesignHierarchyMask.java
public boolean isAcceptingAccessory(final Accessory accessory, final FXOMObject fxomObject) {
    final Object sceneGraphObject;
    if (fxomObject instanceof FXOMIntrinsic) {
      sceneGraphObject = ((FXOMIntrinsic) fxomObject).getSourceSceneGraphObject();
    } else {
      sceneGraphObject = fxomObject.getSceneGraphObject();
    }
    final Class<?> accessoryClass = getClassForAccessory(accessory);
    return isAcceptingAccessory(accessory) && accessoryClass.isInstance(sceneGraphObject);
  }
/**
   * Returns true if this mask accepts the specified fxomObject as accessory.
   *
   * @param accessory
   * @param fxomObject
   * @return
   */
Returns true if this mask accepts the specified fxomObject as accessory.
@param accessory
@param fxomObject
@return
Returns true if this mask accepts the specified fxomObject as accessory . @param accessory @param fxomObject @return
public boolean isAcceptingAccessory(final Accessory accessory, final FXOMObject fxomObject) {
    final Object sceneGraphObject;
    if (fxomObject instanceof FXOMIntrinsic) {
      sceneGraphObject = ((FXOMIntrinsic) fxomObject).getSourceSceneGraphObject();
    } else {
      sceneGraphObject = fxomObject.getSceneGraphObject();
    }
    final Class<?> accessoryClass = getClassForAccessory(accessory);
    return isAcceptingAccessory(accessory) && accessoryClass.isInstance(sceneGraphObject);
  }
public boolean isAcceptingAccessory ( final Accessory accessory , final FXOMObject fxomObject ) { final Object sceneGraphObject ; if ( fxomObject instanceof FXOMIntrinsic ) { sceneGraphObject = ( ( FXOMIntrinsic ) fxomObject ) . getSourceSceneGraphObject ( ) ; } else { sceneGraphObject = fxomObject . getSceneGraphObject ( ) ; } final Class < ? > accessoryClass = getClassForAccessory ( accessory ) ; return isAcceptingAccessory ( accessory ) && accessoryClass . isInstance ( sceneGraphObject ) ; }
Returns true if this mask accepts the specified fxomObject as accessory.
Returns true if this mask accepts the specified fxomObject as accessory .