public class ClausesProperty extends java.lang.Object implements BattleProperty<java.util.Set<BattleClause>>
Constructor and Description |
---|
ClausesProperty() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<PropertyValue<java.util.Set<BattleClause>>> |
getDefault()
Gets the default value when not supplied
If returning an empty optional this means it isn't always required
|
java.lang.String |
getId()
The id of the property
|
PropertyValue<java.util.Set<BattleClause>> |
getInstance()
Gets a new instanceof the
PropertyValue |
java.util.Optional<PropertyValue<java.util.Set<BattleClause>>> |
parse(java.lang.Object o)
Attempts to parse the object into a
PropertyValue
Will return Optional.empty() if fails to parse |
boolean |
requiredByClient()
If the property's value is required by the client for UI logic
|
public java.lang.String getId()
BattleProperty
getId
in interface BattleProperty<java.util.Set<BattleClause>>
public boolean requiredByClient()
BattleProperty
requiredByClient
in interface BattleProperty<java.util.Set<BattleClause>>
public java.util.Optional<PropertyValue<java.util.Set<BattleClause>>> parse(java.lang.Object o)
BattleProperty
PropertyValue
Will return Optional.empty()
if fails to parseparse
in interface BattleProperty<java.util.Set<BattleClause>>
o
- The object being parsedPropertyValue
public java.util.Optional<PropertyValue<java.util.Set<BattleClause>>> getDefault()
BattleProperty
getDefault
in interface BattleProperty<java.util.Set<BattleClause>>
Optional>
public PropertyValue<java.util.Set<BattleClause>> getInstance()
BattleProperty
PropertyValue
getInstance
in interface BattleProperty<java.util.Set<BattleClause>>