Package net.officefloor.model
Class AbstractModel
- java.lang.Object
-
- net.officefloor.model.AbstractModel
-
- All Implemented Interfaces:
Model
- Direct Known Subclasses:
ActivityExceptionModel
,ActivityExceptionToActivityOutputModel
,ActivityExceptionToActivityProcedureModel
,ActivityExceptionToActivitySectionInputModel
,ActivityInputModel
,ActivityInputToActivityOutputModel
,ActivityInputToActivityProcedureModel
,ActivityInputToActivitySectionInputModel
,ActivityModel
,ActivityOutputModel
,ActivityProcedureModel
,ActivityProcedureNextModel
,ActivityProcedureNextToActivityOutputModel
,ActivityProcedureNextToActivityProcedureModel
,ActivityProcedureNextToActivitySectionInputModel
,ActivityProcedureOutputModel
,ActivityProcedureOutputToActivityOutputModel
,ActivityProcedureOutputToActivityProcedureModel
,ActivityProcedureOutputToActivitySectionInputModel
,ActivitySectionInputModel
,ActivitySectionModel
,ActivitySectionOutputModel
,ActivitySectionOutputToActivityOutputModel
,ActivitySectionOutputToActivityProcedureModel
,ActivitySectionOutputToActivitySectionInputModel
,AdministrationEscalationModel
,AdministrationEscalationToOfficeSectionInputModel
,AdministrationFlowModel
,AdministrationFlowToOfficeSectionInputModel
,AdministrationModel
,AdministrationToExternalManagedObjectModel
,AdministrationToOfficeManagedObjectModel
,AdministrationToOfficeSectionManagedObjectModel
,AdministrationToOfficeTeamModel
,ConformModel
,DeployedOfficeInputModel
,DeployedOfficeModel
,DeployedOfficeObjectModel
,DeployedOfficeObjectToOfficeFloorInputManagedObjectModel
,DeployedOfficeObjectToOfficeFloorManagedObjectModel
,DeployedOfficeTeamModel
,DeployedOfficeTeamToOfficeFloorTeamModel
,DocumentationModel
,ExistingItemModel
,ExistingItemToTargetItemModel
,ExistingModel
,ExternalFlowModel
,ExternalManagedObjectModel
,ExternalManagedObjectModel
,ExternalManagedObjectToPreLoadAdministrationModel
,FunctionEscalationModel
,FunctionEscalationToExternalFlowModel
,FunctionEscalationToFunctionModel
,FunctionEscalationToSubSectionInputModel
,FunctionFlowModel
,FunctionFlowToExternalFlowModel
,FunctionFlowToFunctionModel
,FunctionFlowToSubSectionInputModel
,FunctionModel
,FunctionNamespaceModel
,FunctionToNextExternalFlowModel
,FunctionToNextFunctionModel
,FunctionToNextSubSectionInputModel
,GovernanceAreaModel
,GovernanceEscalationModel
,GovernanceEscalationToOfficeSectionInputModel
,GovernanceFlowModel
,GovernanceFlowToOfficeSectionInputModel
,GovernanceModel
,GovernanceToExternalManagedObjectModel
,GovernanceToOfficeManagedObjectModel
,GovernanceToOfficeSectionManagedObjectModel
,GovernanceToOfficeTeamModel
,ManagedFunctionModel
,ManagedFunctionObjectModel
,ManagedFunctionObjectToExternalManagedObjectModel
,ManagedFunctionObjectToSectionManagedObjectModel
,ManagedFunctionToFunctionModel
,OfficeEscalationModel
,OfficeEscalationToOfficeSectionInputModel
,OfficeFloorExecutionStrategyModel
,OfficeFloorExecutiveModel
,OfficeFloorInputManagedObjectModel
,OfficeFloorInputManagedObjectToBoundOfficeFloorManagedObjectSourceModel
,OfficeFloorManagedObjectDependencyModel
,OfficeFloorManagedObjectDependencyToOfficeFloorInputManagedObjectModel
,OfficeFloorManagedObjectDependencyToOfficeFloorManagedObjectModel
,OfficeFloorManagedObjectModel
,OfficeFloorManagedObjectPoolModel
,OfficeFloorManagedObjectSourceExecutionStrategyModel
,OfficeFloorManagedObjectSourceExecutionStrategyToOfficeFloorExecutionStrategyModel
,OfficeFloorManagedObjectSourceFlowModel
,OfficeFloorManagedObjectSourceFlowToDeployedOfficeInputModel
,OfficeFloorManagedObjectSourceFunctionDependencyModel
,OfficeFloorManagedObjectSourceFunctionDependencyToOfficeFloorManagedObjectModel
,OfficeFloorManagedObjectSourceInputDependencyModel
,OfficeFloorManagedObjectSourceInputDependencyToOfficeFloorManagedObjectModel
,OfficeFloorManagedObjectSourceModel
,OfficeFloorManagedObjectSourceStartAfterOfficeFloorManagedObjectSourceModel
,OfficeFloorManagedObjectSourceStartBeforeOfficeFloorManagedObjectSourceModel
,OfficeFloorManagedObjectSourceTeamModel
,OfficeFloorManagedObjectSourceTeamToOfficeFloorTeamModel
,OfficeFloorManagedObjectSourceToDeployedOfficeModel
,OfficeFloorManagedObjectSourceToOfficeFloorInputManagedObjectModel
,OfficeFloorManagedObjectSourceToOfficeFloorManagedObjectPoolModel
,OfficeFloorManagedObjectSourceToOfficeFloorSupplierModel
,OfficeFloorManagedObjectToOfficeFloorManagedObjectSourceModel
,OfficeFloorModel
,OfficeFloorSupplierModel
,OfficeFloorTeamModel
,OfficeFunctionModel
,OfficeFunctionToGovernanceModel
,OfficeFunctionToOfficeTeamModel
,OfficeFunctionToPostAdministrationModel
,OfficeFunctionToPreAdministrationModel
,OfficeInputManagedObjectDependencyModel
,OfficeInputManagedObjectDependencyToExternalManagedObjectModel
,OfficeInputManagedObjectDependencyToOfficeManagedObjectModel
,OfficeManagedObjectDependencyModel
,OfficeManagedObjectDependencyToExternalManagedObjectModel
,OfficeManagedObjectDependencyToOfficeManagedObjectModel
,OfficeManagedObjectFunctionDependencyModel
,OfficeManagedObjectFunctionDependencyToExternalManagedObjectModel
,OfficeManagedObjectFunctionDependencyToOfficeManagedObjectModel
,OfficeManagedObjectModel
,OfficeManagedObjectPoolModel
,OfficeManagedObjectSourceFlowModel
,OfficeManagedObjectSourceFlowToOfficeSectionInputModel
,OfficeManagedObjectSourceModel
,OfficeManagedObjectSourceStartAfterOfficeManagedObjectSourceModel
,OfficeManagedObjectSourceStartBeforeOfficeManagedObjectSourceModel
,OfficeManagedObjectSourceTeamModel
,OfficeManagedObjectSourceTeamToOfficeTeamModel
,OfficeManagedObjectSourceToOfficeManagedObjectPoolModel
,OfficeManagedObjectSourceToOfficeSupplierModel
,OfficeManagedObjectToOfficeManagedObjectSourceModel
,OfficeManagedObjectToPreLoadAdministrationModel
,OfficeModel
,OfficeSectionInputModel
,OfficeSectionManagedObjectModel
,OfficeSectionManagedObjectTeamModel
,OfficeSectionManagedObjectToPreLoadAdministrationModel
,OfficeSectionModel
,OfficeSectionObjectModel
,OfficeSectionObjectToExternalManagedObjectModel
,OfficeSectionObjectToOfficeManagedObjectModel
,OfficeSectionOutputModel
,OfficeSectionOutputToOfficeSectionInputModel
,OfficeStartModel
,OfficeStartToOfficeSectionInputModel
,OfficeSubSectionModel
,OfficeSubSectionToGovernanceModel
,OfficeSupplierModel
,OfficeSupplierThreadLocalModel
,OfficeSupplierThreadLocalToExternalManagedObjectModel
,OfficeSupplierThreadLocalToOfficeManagedObjectModel
,OfficeTeamModel
,ParentToAreaConnectionModel
,PropertyFileModel
,PropertyFileModel
,PropertyModel
,PropertyModel
,PropertyModel
,PropertyModel
,PropertyModel
,PropertyModel
,PropertyModel
,SectionManagedObjectDependencyModel
,SectionManagedObjectDependencyToExternalManagedObjectModel
,SectionManagedObjectDependencyToSectionManagedObjectModel
,SectionManagedObjectModel
,SectionManagedObjectPoolModel
,SectionManagedObjectSourceFlowModel
,SectionManagedObjectSourceFlowToExternalFlowModel
,SectionManagedObjectSourceFlowToFunctionModel
,SectionManagedObjectSourceFlowToSubSectionInputModel
,SectionManagedObjectSourceModel
,SectionManagedObjectSourceToSectionManagedObjectPoolModel
,SectionManagedObjectToSectionManagedObjectSourceModel
,SectionModel
,SubSectionInputModel
,SubSectionModel
,SubSectionObjectModel
,SubSectionObjectToExternalManagedObjectModel
,SubSectionObjectToSectionManagedObjectModel
,SubSectionOutputModel
,SubSectionOutputToExternalFlowModel
,SubSectionOutputToFunctionModel
,SubSectionOutputToSubSectionInputModel
,TargetItemModel
,TargetModel
,TypeQualificationModel
,TypeQualificationModel
,TypeQualificationModel
,TypeQualificationModel
,TypeQualificationModel
,WoofDependencyModel
,WoofExceptionModel
,WoofExceptionToWoofHttpContinuationModel
,WoofExceptionToWoofProcedureModel
,WoofExceptionToWoofResourceModel
,WoofExceptionToWoofSectionInputModel
,WoofExceptionToWoofSecurityModel
,WoofExceptionToWoofTemplateModel
,WoofFlowModel
,WoofGovernanceAreaModel
,WoofGovernanceModel
,WoofGovernanceToWoofGovernanceAreaModel
,WoofHttpContinuationModel
,WoofHttpContinuationToWoofHttpContinuationModel
,WoofHttpContinuationToWoofProcedureModel
,WoofHttpContinuationToWoofResourceModel
,WoofHttpContinuationToWoofSectionInputModel
,WoofHttpContinuationToWoofSecurityModel
,WoofHttpContinuationToWoofTemplateModel
,WoofHttpInputModel
,WoofHttpInputToWoofHttpContinuationModel
,WoofHttpInputToWoofProcedureModel
,WoofHttpInputToWoofResourceModel
,WoofHttpInputToWoofSectionInputModel
,WoofHttpInputToWoofSecurityModel
,WoofHttpInputToWoofTemplateModel
,WoofManagedObjectModel
,WoofModel
,WoofObjectsModel
,WoofPoolModel
,WoofProcedureModel
,WoofProcedureNextModel
,WoofProcedureNextToWoofHttpContinuationModel
,WoofProcedureNextToWoofProcedureModel
,WoofProcedureNextToWoofResourceModel
,WoofProcedureNextToWoofSectionInputModel
,WoofProcedureNextToWoofSecurityModel
,WoofProcedureNextToWoofTemplateModel
,WoofProcedureOutputModel
,WoofProcedureOutputToWoofHttpContinuationModel
,WoofProcedureOutputToWoofProcedureModel
,WoofProcedureOutputToWoofResourceModel
,WoofProcedureOutputToWoofSectionInputModel
,WoofProcedureOutputToWoofSecurityModel
,WoofProcedureOutputToWoofTemplateModel
,WoofResourceModel
,WoofResourceModel
,WoofResourceSecurityModel
,WoofResourcesModel
,WoofResourceTransformerModel
,WoofSectionInputModel
,WoofSectionModel
,WoofSectionOutputModel
,WoofSectionOutputToWoofHttpContinuationModel
,WoofSectionOutputToWoofProcedureModel
,WoofSectionOutputToWoofResourceModel
,WoofSectionOutputToWoofSectionInputModel
,WoofSectionOutputToWoofSecurityModel
,WoofSectionOutputToWoofTemplateModel
,WoofSecurityContentTypeModel
,WoofSecurityModel
,WoofSecurityOutputModel
,WoofSecurityOutputToWoofHttpContinuationModel
,WoofSecurityOutputToWoofProcedureModel
,WoofSecurityOutputToWoofResourceModel
,WoofSecurityOutputToWoofSectionInputModel
,WoofSecurityOutputToWoofSecurityModel
,WoofSecurityOutputToWoofTemplateModel
,WoofStartAfterModel
,WoofStartBeforeModel
,WoofStartModel
,WoofStartToWoofProcedureModel
,WoofStartToWoofSectionInputModel
,WoofSupplierModel
,WoofTeamModel
,WoofTeamsModel
,WoofTemplateExtensionModel
,WoofTemplateLinkModel
,WoofTemplateModel
,WoofTemplateOutputModel
,WoofTemplateOutputToWoofHttpContinuationModel
,WoofTemplateOutputToWoofProcedureModel
,WoofTemplateOutputToWoofResourceModel
,WoofTemplateOutputToWoofSectionInputModel
,WoofTemplateOutputToWoofSecurityModel
,WoofTemplateOutputToWoofTemplateModel
,WoofTemplateRenderHttpMethodModel
,WoofTemplateToSuperWoofTemplateModel
public class AbstractModel extends java.lang.Object implements Model
Provides top level functionality for all model elements.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description AbstractModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> void
addItemToList(T item, java.util.List<T> list, java.lang.Enum<?> addEvent)
Helper method to add an Item to a List.void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds aPropertyChangeListener
to this model element.protected <T> void
changeField(T oldValue, T newValue, java.lang.Enum<?> changeEvent)
Helper method to change a field.void
firePropertyChange(java.lang.String property, java.lang.Object oldValue, java.lang.Object newValue)
Fires a property change event.int
getX()
Obtains the X co-ordinate for the model.int
getY()
Obtains the Y co-ordinate for the model.protected <T> void
removeItemFromList(T item, java.util.List<T> list, java.lang.Enum<?> removeEvent)
Helper method to remove an Item from a List.void
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes aPropertyChangeListener
from this model element.void
setX(int x)
Specifies the X co-ordinate for the model.void
setY(int y)
Specifies the Y co-ordinate for the model.
-
-
-
Method Detail
-
firePropertyChange
public void firePropertyChange(java.lang.String property, java.lang.Object oldValue, java.lang.Object newValue)
Fires a property change event.- Parameters:
property
- Property related to the event.oldValue
- Old value of property.newValue
- New value of property.
-
addItemToList
protected <T> void addItemToList(T item, java.util.List<T> list, java.lang.Enum<?> addEvent)
Helper method to add an Item to a List.- Type Parameters:
T
- Item type.- Parameters:
item
- Item to add to list.list
- List to have item to add.addEvent
- Event to fire on item being added.
-
removeItemFromList
protected <T> void removeItemFromList(T item, java.util.List<T> list, java.lang.Enum<?> removeEvent)
Helper method to remove an Item from a List.- Type Parameters:
T
- Item type.- Parameters:
item
- Item to remove from list.list
- List to have item removed.removeEvent
- Event to fire on item being removed.
-
changeField
protected <T> void changeField(T oldValue, T newValue, java.lang.Enum<?> changeEvent)
Helper method to change a field.- Type Parameters:
T
- Value type.- Parameters:
oldValue
- Old value of field.newValue
- New value of field.changeEvent
- Event to fire if field is being changed.
-
getX
public int getX()
Description copied from interface:Model
Obtains the X co-ordinate for the model.
-
setX
public void setX(int x)
Description copied from interface:Model
Specifies the X co-ordinate for the model.
-
getY
public int getY()
Description copied from interface:Model
Obtains the Y co-ordinate for the model.
-
setY
public void setY(int y)
Description copied from interface:Model
Specifies the Y co-ordinate for the model.
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Description copied from interface:Model
Adds aPropertyChangeListener
to this model element.- Specified by:
addPropertyChangeListener
in interfaceModel
- Parameters:
listener
-PropertyChangeListener
to this model element.
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Description copied from interface:Model
Removes aPropertyChangeListener
from this model element.- Specified by:
removePropertyChangeListener
in interfaceModel
- Parameters:
listener
-PropertyChangeListener
.
-
-