public class ImmutableProject extends Object implements Mutation<Operation,ImmutableProject>
| Constructor and Description |
|---|
ImmutableProject()
Create new, empty
ImmutableProject. |
ImmutableProject(ImmutableProject currentState,
Operation operation)
Create project from previous state and operation.
|
ImmutableProject(XmlProject project)
Copy constructor (Loading from XML).
|
| Modifier and Type | Method and Description |
|---|---|
List<ImmutableGroup> |
getGroups()
Get the list of
ImmutableGroups. |
List<ImmutableInvoice> |
getInvoices()
Get the list of
ImmutableInvoices. |
List<ImmutablePerson> |
getPersons()
Get the list of
ImmutablePersons. |
String |
getTitle()
Get the title of the project.
|
XmlProject |
getXmlProject()
Copy to XML Structure (Save to XML).
|
ImmutableProject |
mutate(Operation operation)
Perform mutation operation and return mutated object.
|
public ImmutableProject()
ImmutableProject.public ImmutableProject(XmlProject project)
project - xml project as sourcepublic ImmutableProject(ImmutableProject currentState, Operation operation)
currentState - previus stateoperation - operation to performpublic String getTitle()
public List<ImmutablePerson> getPersons()
ImmutablePersons.public List<ImmutableGroup> getGroups()
ImmutableGroups.public List<ImmutableInvoice> getInvoices()
ImmutableInvoices.public ImmutableProject mutate(Operation operation)
Mutationmutate in interface Mutation<Operation,ImmutableProject>operation - operation to performpublic XmlProject getXmlProject()
Copyright © 2015 illucIT Software GmbH. All rights reserved.