Package org.fastnate.examples.model
Class Organisation
java.lang.Object
org.fastnate.examples.model.Organisation
A simple example of an entity that is imported from files.
See
OrganisationData and "src/manin/data" for more.- Author:
- Tobias Liefke
-
Constructor Summary
ConstructorsConstructorDescriptionOrganisation(Long id, Organisation parent, String name, String url, float profit, List<Organisation> children) Creates a newOrganisationinstance. -
Method Summary
Modifier and TypeMethodDescriptionThe child organisations.getId()The ID of the organisation from the input files.getName()The name of the organisation.The parent organisation.floatThe profit of this organisation.getUrl()The URL to the website of the organisation.voidsetChildren(List<Organisation> children) The child organisations.voidThe ID of the organisation from the input files.voidThe name of the organisation.voidsetParent(Organisation parent) The parent organisation.voidsetProfit(float profit) The profit of this organisation.voidThe URL to the website of the organisation.toString()
-
Constructor Details
-
Organisation
public Organisation() -
Organisation
public Organisation(Long id, Organisation parent, String name, String url, float profit, List<Organisation> children) Creates a newOrganisationinstance.- Parameters:
id- The ID of the organisation from the input files.parent- The parent organisation.name- The name of the organisation.url- The URL to the website of the organisation.profit- The profit of this organisation.children- The child organisations.
-
-
Method Details
-
toString
-
getId
The ID of the organisation from the input files. -
getParent
The parent organisation. -
getName
The name of the organisation. -
getUrl
The URL to the website of the organisation. -
getProfit
public float getProfit()The profit of this organisation. -
getChildren
The child organisations. -
setId
The ID of the organisation from the input files. -
setParent
The parent organisation. -
setName
The name of the organisation. -
setUrl
The URL to the website of the organisation. -
setProfit
public void setProfit(float profit) The profit of this organisation. -
setChildren
The child organisations.
-