public abstract class KeywordSpecification extends Object
Constructor and Description |
---|
KeywordSpecification(String keyword,
ValueType type)
Sets up a KeywordSpecification that defines a type for the given keyword.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getKeyword()
Returns the keyword.
|
ValueType |
getType()
Returns the specified type for that keyword.
|
int |
hashCode() |
String |
toString() |
boolean |
validate(Value value)
Returns true if the given value is in order according to this
specification, meaning that it has the correct type or is null.
|
public String getKeyword()
public ValueType getType()
public boolean validate(Value value)
value
- a value.Copyright (C) 2016-2018 Benjamin Paaßen, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/