Package org.planit.project
Class PlanItProjectInput.ProjectZonings
- java.lang.Object
-
- org.planit.project.PlanItProjectInput.ProjectZonings
-
- Enclosing class:
- PlanItProjectInput
public class PlanItProjectInput.ProjectZonings extends Object
Internal class for registered zonings
-
-
Constructor Summary
Constructors Constructor Description ProjectZonings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Zoning
getFirstZoning()
Collect the first zonings that are registered (if any).int
getNumberOfZonings()
Get the number of zoningsZoning
getZoning(long id)
Get zoning by idboolean
hasRegisteredZonings()
Check if zonings have already been registeredList<Zoning>
toList()
Returns a List of zoning
-
-
-
Method Detail
-
getZoning
public Zoning getZoning(long id)
Get zoning by id- Parameters:
id
- the id of the zoning- Returns:
- the retrieved zoning
-
getNumberOfZonings
public int getNumberOfZonings()
Get the number of zonings- Returns:
- the number of zonings in the project
-
hasRegisteredZonings
public boolean hasRegisteredZonings()
Check if zonings have already been registered- Returns:
- true if registered zonings exist, false otherwise
-
getFirstZoning
public Zoning getFirstZoning()
Collect the first zonings that are registered (if any). Otherwise return null- Returns:
- first zonings that are registered if none return null
-
-