Package net.officefloor.model.office
Class OfficeSubSectionToGovernanceModel
- java.lang.Object
-
- net.officefloor.model.AbstractModel
-
- net.officefloor.model.office.OfficeSubSectionToGovernanceModel
-
- All Implemented Interfaces:
ConnectionModel,Model
@Generated("net.officefloor.model.generate.ModelGenerator") public class OfficeSubSectionToGovernanceModel extends AbstractModel implements ConnectionModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOfficeSubSectionToGovernanceModel.OfficeSubSectionToGovernanceEvent
-
Constructor Summary
Constructors Constructor Description OfficeSubSectionToGovernanceModel()Default constructor.OfficeSubSectionToGovernanceModel(java.lang.String governanceName)Convenience constructor for new non-linked instance.OfficeSubSectionToGovernanceModel(java.lang.String governanceName, int x, int y)Convenience constructor for new non-linked instance allowing XY initialising.OfficeSubSectionToGovernanceModel(java.lang.String governanceName, OfficeSubSectionModel officeSubSection, GovernanceModel governance)Convenience constructor.OfficeSubSectionToGovernanceModel(java.lang.String governanceName, OfficeSubSectionModel officeSubSection, GovernanceModel governance, int x, int y)Convenience constructor allowing XY initialising.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect()Connects to theAbstractModelinstances.GovernanceModelgetGovernance()java.lang.StringgetGovernanceName()OfficeSubSectionModelgetOfficeSubSection()booleanisRemovable()Indicates if this connection is removable.voidremove()Removes connection to theAbstractModelinstances.voidsetGovernance(GovernanceModel governance)voidsetGovernanceName(java.lang.String governanceName)voidsetOfficeSubSection(OfficeSubSectionModel officeSubSection)-
Methods inherited from class net.officefloor.model.AbstractModel
addItemToList, addPropertyChangeListener, changeField, firePropertyChange, getX, getY, removeItemFromList, removePropertyChangeListener, setX, setY
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.model.Model
addPropertyChangeListener, getX, getY, removePropertyChangeListener, setX, setY
-
-
-
-
Constructor Detail
-
OfficeSubSectionToGovernanceModel
public OfficeSubSectionToGovernanceModel()
Default constructor.
-
OfficeSubSectionToGovernanceModel
public OfficeSubSectionToGovernanceModel(java.lang.String governanceName)
Convenience constructor for new non-linked instance.- Parameters:
governanceName- Governance name.
-
OfficeSubSectionToGovernanceModel
public OfficeSubSectionToGovernanceModel(java.lang.String governanceName, int x, int y)Convenience constructor for new non-linked instance allowing XY initialising.- Parameters:
governanceName- Governance name.x- Horizontal location.y- Vertical location.
-
OfficeSubSectionToGovernanceModel
public OfficeSubSectionToGovernanceModel(java.lang.String governanceName, OfficeSubSectionModel officeSubSection, GovernanceModel governance)Convenience constructor.- Parameters:
governanceName- Governance name.officeSubSection- Office sub section.governance- Governance.
-
OfficeSubSectionToGovernanceModel
public OfficeSubSectionToGovernanceModel(java.lang.String governanceName, OfficeSubSectionModel officeSubSection, GovernanceModel governance, int x, int y)Convenience constructor allowing XY initialising.- Parameters:
governanceName- Governance name.officeSubSection- Office sub section.governance- Governance.x- Horizontal location.y- Vertical location.
-
-
Method Detail
-
getGovernanceName
public java.lang.String getGovernanceName()
- Returns:
- Governance name.
-
setGovernanceName
public void setGovernanceName(java.lang.String governanceName)
- Parameters:
governanceName- Governance name.
-
getOfficeSubSection
public OfficeSubSectionModel getOfficeSubSection()
- Returns:
- Office sub section.
-
setOfficeSubSection
public void setOfficeSubSection(OfficeSubSectionModel officeSubSection)
- Parameters:
officeSubSection- Office sub section.
-
getGovernance
public GovernanceModel getGovernance()
- Returns:
- Governance.
-
setGovernance
public void setGovernance(GovernanceModel governance)
- Parameters:
governance- Governance.
-
isRemovable
public boolean isRemovable()
Description copied from interface:ConnectionModelIndicates if this connection is removable.- Specified by:
isRemovablein interfaceConnectionModel- Returns:
- Indicates if removable.
-
connect
public void connect()
Connects to theAbstractModelinstances.- Specified by:
connectin interfaceConnectionModel
-
remove
public void remove()
Removes connection to theAbstractModelinstances.- Specified by:
removein interfaceConnectionModel
-
-