public class ValueDef<T> extends Object
| Constructor and Description |
|---|
ValueDef(ValueDomain<T> domain)
Creates a new ValueDef instance.
|
| Modifier and Type | Method and Description |
|---|---|
ValueDomain<T> |
getDomain()
Returns the domain for this value.
|
ValueDomain<String> |
getMediaType()
Returns the media type domain for this value.
|
boolean |
isDefined()
Returns true if this input value is defined.
|
boolean |
isValid()
Returns if this is an instance of valid value.
|
void |
setMediaType(ValueDomain<String> mediaType)
Changes the media type domain for this value.
|
void |
setValid(boolean valid)
Changes if this is an instance of valid value.
|
String |
toString() |
public ValueDef(ValueDomain<T> domain)
public ValueDomain<T> getDomain()
public boolean isDefined()
public void setValid(boolean valid)
public boolean isValid()
public void setMediaType(ValueDomain<String> mediaType)
public ValueDomain<String> getMediaType()
Copyright © 2020 The Cornutum Project. All rights reserved.