public class Scheme extends Object implements NamedWithDescription, NamedWithId
SchemeEntity
's which are a part of this scheme.NAME_COMPARATOR
Constructor and Description |
---|
Scheme() |
Scheme(Long id,
String type,
String name,
Collection<SchemeEntity> entities) |
Scheme(Long id,
String type,
String name,
String description,
Collection<SchemeEntity> entities) |
Scheme(String type,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
addEntity(SchemeEntity entity)
Deprecated.
this class will be made immutable, create a new Scheme instead.
|
Scheme |
cloneScheme() |
boolean |
containsSameEntities(Scheme other) |
boolean |
equals(Object o) |
String |
getDescription() |
Collection<SchemeEntity> |
getEntities() |
List<SchemeEntity> |
getEntitiesByType(Object typeId) |
Long |
getId() |
String |
getName() |
String |
getType() |
int |
hashCode() |
void |
removeEntity(SchemeEntity entity)
Deprecated.
this class will be made immutable, create a new Scheme instead.
|
void |
setDescription(String description)
Deprecated.
this class will be made immutable, create a new Scheme instead.
|
void |
setEntities(Collection<SchemeEntity> entities)
Deprecated.
this class will be made immutable, create a new Scheme instead.
|
void |
setId(Long id)
Deprecated.
this class will be made immutable, create a new Scheme instead.
|
void |
setName(String name)
Deprecated.
this class will be made immutable, create a new Scheme instead.
|
void |
setType(String type)
Deprecated.
this class will be made immutable, create a new Scheme instead.
|
String |
toString() |
public Scheme()
public Scheme(Long id, String type, String name, Collection<SchemeEntity> entities)
public Scheme(Long id, String type, String name, String description, Collection<SchemeEntity> entities)
public String getType()
public void setType(String type)
type
- public void setName(String name)
name
- public Collection<SchemeEntity> getEntities()
public void setEntities(Collection<SchemeEntity> entities)
entities
- public void addEntity(SchemeEntity entity)
entity
- public void removeEntity(SchemeEntity entity)
entity
- public boolean containsSameEntities(Scheme other)
public Scheme cloneScheme()
public Long getId()
getId
in interface NamedWithId
public void setId(Long id)
id
- public String getDescription()
getDescription
in interface NamedWithDescription
public void setDescription(String description)
description
- public List<SchemeEntity> getEntitiesByType(Object typeId)
Copyright © 2002-2021 Atlassian. All Rights Reserved.