All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.officefloor.woof.model.objects.PropertyFileModel Maven / Gradle / Ivy

There is a newer version: 3.40.0
Show newest version
/*
 * 
 */
package net.officefloor.woof.model.objects;

import javax.annotation.Generated;

import net.officefloor.model.AbstractModel;
import net.officefloor.model.ConnectionModel;
import net.officefloor.model.ItemModel;
import net.officefloor.model.RemoveConnectionsAction;

@Generated("net.officefloor.model.generate.ModelGenerator")
public class PropertyFileModel extends AbstractModel implements ItemModel, PropertySourceModel {

    public static enum PropertyFileEvent {
     CHANGE_PATH
    }

    /**
     * Default constructor.
     */
    public PropertyFileModel() {
    }

    /**
     * Convenience constructor.
     *
     * @param path Path.
     */
    public PropertyFileModel(
      String path
    ) {
        this.path = path;
    }

    /**
     * Convenience constructor allowing XY initialising.
     *
     * @param path Path.
     * @param x Horizontal location.
     * @param y Vertical location.
     */
    public PropertyFileModel(
      String path
    , int x
    , int y
    ) {
        this.path = path;
        this.setX(x);
        this.setY(y);
    }


    /**
     * Path.
     */
    private String path;

    /**
     * @return Path.
     */
    public String getPath() {
        return this.path;
    }

    /**
     * @param path Path.
     */
    public void setPath(String path) {
        String oldValue = this.path;
        this.path = path;
        this.changeField(oldValue, this.path, PropertyFileEvent.CHANGE_PATH);
    }


    /**
     * Remove Connections.
     *
     * @return {@link RemoveConnectionsAction} to remove the {@link ConnectionModel} instances.
     */
    public RemoveConnectionsAction removeConnections() {
        RemoveConnectionsAction _action = new RemoveConnectionsAction(this);
        return _action;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy