public class Domain extends Object implements Serializable
Constructor and Description |
---|
Domain(String name,
String description,
List<DomainSpecification> specifications) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getDescription()
Returns the description of this domain.
|
String |
getName()
Returns the name of the domain.
|
List<DomainSpecification> |
getSpecifications()
Returns the
DomainSpecification s for this Domain . |
static Domain |
global()
Returns the special "global" domain.
|
int |
hashCode() |
Domain |
resolve()
Resolve the correct domain instance.
|
boolean |
test(DomainRequirement... requirements)
|
boolean |
test(List<DomainRequirement> requirements)
|
@DataBoundConstructor public Domain(String name, String description, List<DomainSpecification> specifications)
@NonNull public static Domain global()
public Domain resolve()
global()
.@CheckForNull public String getDescription()
@NonNull public List<DomainSpecification> getSpecifications()
DomainSpecification
s for this Domain
.DomainSpecification
s for this Domain
.@CheckForNull public String getName()
public boolean test(DomainRequirement... requirements)
requirements
- the DomainRequirement
s to test.true
if and only if the supplied DomainRequirement
s are a match for this Domain
.public boolean test(@NonNull List<DomainRequirement> requirements)
requirements
- the DomainRequirement
s to test.true
if and only if the supplied DomainRequirement
s are a match for this Domain
.Copyright © 2015. All rights reserved.