Package pl.edu.icm.unity.stdext.attr
Class FloatingPointAttributeSyntax
java.lang.Object
pl.edu.icm.unity.stdext.attr.FloatingPointAttributeSyntax
- All Implemented Interfaces:
pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
public class FloatingPointAttributeSyntax
extends Object
implements pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
Floating point number attribute value syntax. Allows for specifying upper and lower bounds.
- Author:
- K. Benedyczak
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconvertFromString(String stringRepresentation) convertToString(Double value) doublegetMax()doublegetMin()com.fasterxml.jackson.databind.node.ObjectNodeintbooleanbooleanvoidsetMax(double max) voidsetMin(double min) voidsetSerializedConfiguration(com.fasterxml.jackson.databind.JsonNode jsonN) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax
areEqualStringValue, deserializeSimple, getEmailConfirmationConfiguration, getMaxSize, publicExposureSpec, serializeSimple, validateStringValue
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
FloatingPointAttributeSyntax
public FloatingPointAttributeSyntax()
-
-
Method Details
-
getSerializedConfiguration
public com.fasterxml.jackson.databind.node.ObjectNode getSerializedConfiguration()- Specified by:
getSerializedConfigurationin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
setSerializedConfiguration
public void setSerializedConfiguration(com.fasterxml.jackson.databind.JsonNode jsonN) - Specified by:
setSerializedConfigurationin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
getValueSyntaxId
- Specified by:
getValueSyntaxIdin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
validate
public void validate(Double value) throws pl.edu.icm.unity.base.attribute.IllegalAttributeValueException - Specified by:
validatein interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>- Throws:
pl.edu.icm.unity.base.attribute.IllegalAttributeValueException
-
areEqual
- Specified by:
areEqualin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
hashCode
- Specified by:
hashCodein interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
getMin
public double getMin() -
setMin
public void setMin(double min) throws pl.edu.icm.unity.base.exceptions.WrongArgumentException - Throws:
pl.edu.icm.unity.base.exceptions.WrongArgumentException
-
getMax
public double getMax() -
setMax
public void setMax(double max) throws pl.edu.icm.unity.base.exceptions.WrongArgumentException - Throws:
pl.edu.icm.unity.base.exceptions.WrongArgumentException
-
isEmailVerifiable
public boolean isEmailVerifiable()- Specified by:
isEmailVerifiablein interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
convertFromString
- Specified by:
convertFromStringin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
convertToString
- Specified by:
convertToStringin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
isUserVerifiable
public boolean isUserVerifiable()- Specified by:
isUserVerifiablein interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-