Package pl.edu.icm.unity.stdext.attr
Class IntegerAttributeSyntax
- java.lang.Object
-
- pl.edu.icm.unity.stdext.attr.IntegerAttributeSyntax
-
- All Implemented Interfaces:
pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Long>
public class IntegerAttributeSyntax extends Object implements pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Long>
Integer attribute value syntax. Allows for specifying upper and lower bounds.- Author:
- K. Benedyczak
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntegerAttributeSyntax.Factory
-
Constructor Summary
Constructors Constructor Description IntegerAttributeSyntax()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareEqual(Long value, Object another)LongconvertFromString(String stringRepresentation)StringconvertToString(Long value)longgetMax()longgetMin()com.fasterxml.jackson.databind.node.ObjectNodegetSerializedConfiguration()StringgetValueSyntaxId()inthashCode(Object value)booleanisEmailVerifiable()booleanisUserVerifiable()voidsetMax(long max)voidsetMin(long min)voidsetSerializedConfiguration(com.fasterxml.jackson.databind.JsonNode jsonN)voidvalidate(Long value)
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSerializedConfiguration
public com.fasterxml.jackson.databind.node.ObjectNode getSerializedConfiguration()
- Specified by:
getSerializedConfigurationin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Long>
-
setSerializedConfiguration
public void setSerializedConfiguration(com.fasterxml.jackson.databind.JsonNode jsonN)
- Specified by:
setSerializedConfigurationin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Long>
-
getValueSyntaxId
public String getValueSyntaxId()
- Specified by:
getValueSyntaxIdin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Long>
-
validate
public void validate(Long value) throws pl.edu.icm.unity.exceptions.IllegalAttributeValueException
- Specified by:
validatein interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Long>- Throws:
pl.edu.icm.unity.exceptions.IllegalAttributeValueException
-
areEqual
public boolean areEqual(Long value, Object another)
- Specified by:
areEqualin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Long>
-
hashCode
public int hashCode(Object value)
- Specified by:
hashCodein interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Long>
-
getMin
public long getMin()
-
setMin
public void setMin(long min) throws pl.edu.icm.unity.exceptions.WrongArgumentException- Throws:
pl.edu.icm.unity.exceptions.WrongArgumentException
-
getMax
public long getMax()
-
setMax
public void setMax(long max) throws pl.edu.icm.unity.exceptions.WrongArgumentException- Throws:
pl.edu.icm.unity.exceptions.WrongArgumentException
-
isEmailVerifiable
public boolean isEmailVerifiable()
- Specified by:
isEmailVerifiablein interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Long>
-
isUserVerifiable
public boolean isUserVerifiable()
- Specified by:
isUserVerifiablein interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Long>
-
convertFromString
public Long convertFromString(String stringRepresentation)
- Specified by:
convertFromStringin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Long>
-
-