public class ObjectDomain extends AbstractValueDomain<Map<String,DataValue<?>>>
Constructor and Description |
---|
ObjectDomain()
Creates a new ObjectDomain instance.
|
ObjectDomain(Characters chars)
Creates a new ObjectDomain instance.
|
ObjectDomain(ValueDomain<Integer> additionalPropertyCount,
ValueDomain<?> additionalPropertyValues)
Creates a new ObjectDomain instance.
|
ObjectDomain(ValueDomain<Integer> additionalPropertyCount,
ValueDomain<?> additionalPropertyValues,
Characters chars)
Creates a new ObjectDomain instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Map<String,DataValue<?>> value)
Returns true if the given value belongs to this domain.
|
protected DataValue<Map<String,DataValue<?>>> |
dataValueOf(Map<String,DataValue<?>> value)
Returns a
DataValue for the given value in this domain. |
ValueDomain<Integer> |
getAdditionalPropertyCount()
Returns the value domain for the number of additional properties for this object.
|
AbstractStringDomain |
getAdditionalPropertyNames()
Returns the value domain for the names of any additional properties.
|
ValueDomain<?> |
getAdditionalPropertyValues()
Returns the value domain for any additional properties for this object.
|
Characters |
getCharacters()
Returns the set of characters allowed in property names and values for this domain.
|
Map<String,ValueDomain<?>> |
getPropertyDomains()
Returns the property value domains for objects in this domain.
|
DataValue.Type[] |
getTypes()
Return the type(s) of values that belong to this domain.
|
void |
setAdditionalPropertyCount(ValueDomain<Integer> count)
Changes the value domain for the number of additional properties for this object.
|
void |
setAdditionalPropertyNames(AbstractStringDomain domain)
Changes the value domain for the names of any additional properties.
|
void |
setAdditionalPropertyValues(ValueDomain<?> additionalPropertyValues)
Changes the value domain for any additional properties for this object.
|
void |
setPropertyDomains(Map<String,ValueDomain<?>> propertyDomains)
Changes the property value domains for objects in this domain.
|
String |
toString() |
Stream<DataValue<Map<String,DataValue<?>>>> |
values(ResolverContext context)
Returns a random sequence of values from this domain.
|
getFormat, setFormat, withFormat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
arrayOf, arrayOf, arrayOf, contains, containsObject, getType, select, selectValue
public ObjectDomain()
public ObjectDomain(Characters chars)
public ObjectDomain(ValueDomain<Integer> additionalPropertyCount, ValueDomain<?> additionalPropertyValues)
public ObjectDomain(ValueDomain<Integer> additionalPropertyCount, ValueDomain<?> additionalPropertyValues, Characters chars)
public Characters getCharacters()
public void setPropertyDomains(Map<String,ValueDomain<?>> propertyDomains)
public Map<String,ValueDomain<?>> getPropertyDomains()
public void setAdditionalPropertyCount(ValueDomain<Integer> count)
public void setAdditionalPropertyValues(ValueDomain<?> additionalPropertyValues)
public ValueDomain<?> getAdditionalPropertyValues()
public ValueDomain<Integer> getAdditionalPropertyCount()
public void setAdditionalPropertyNames(AbstractStringDomain domain)
public AbstractStringDomain getAdditionalPropertyNames()
public Stream<DataValue<Map<String,DataValue<?>>>> values(ResolverContext context)
protected DataValue<Map<String,DataValue<?>>> dataValueOf(Map<String,DataValue<?>> value)
DataValue
for the given value in this domain.dataValueOf
in class AbstractValueDomain<Map<String,DataValue<?>>>
public boolean contains(Map<String,DataValue<?>> value)
public DataValue.Type[] getTypes()
Copyright © 2023 The Cornutum Project. All rights reserved.