Class ETag
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializable.Base
com.fasterxml.jackson.databind.JsonNode
com.fasterxml.jackson.databind.node.BaseJsonNode
com.fasterxml.jackson.databind.node.ValueNode
com.fasterxml.jackson.databind.node.TextNode
de.captaingoldfish.scim.sdk.common.resources.base.ScimTextNode
de.captaingoldfish.scim.sdk.common.etag.ETag
- All Implemented Interfaces:
com.fasterxml.jackson.core.TreeNode,com.fasterxml.jackson.databind.JsonSerializable,ScimNode,Serializable,Iterable<com.fasterxml.jackson.databind.JsonNode>
author Pascal Knueppel
created at: 19.11.2019 - 20:03
this class is used as etag representation
created at: 19.11.2019 - 20:03
this class is used as etag representation
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classoverride lombok builder with public constructorNested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonNode
com.fasterxml.jackson.databind.JsonNode.OverwriteModeNested classes/interfaces inherited from interface com.fasterxml.jackson.databind.JsonSerializable
com.fasterxml.jackson.databind.JsonSerializable.Base -
Field Summary
FieldsFields inherited from class com.fasterxml.jackson.databind.node.TextNode
_value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ETag.ETagBuilderbuilder()booleancomparison of ETag's must be done due to the following rulesgetTag()the string character representation for etagbooleanisWeak()tells us if this representation is a weak etag or notstatic ETagnewInstance(String version) a creation method especially used with the methodScimObjectNode.getStringAttribute(String, Class)static ETagchecks the given string and parses it into an entity tagtoString()Methods inherited from class de.captaingoldfish.scim.sdk.common.resources.base.ScimTextNode
getSchemaAttributeMethods inherited from class com.fasterxml.jackson.databind.node.TextNode
appendQuoted, asBoolean, asDouble, asInt, asLong, asText, asText, asToken, binaryValue, getBinaryValue, getNodeType, hashCode, serialize, textValue, valueOfMethods inherited from class com.fasterxml.jackson.databind.node.ValueNode
_at, deepCopy, findParent, findParents, findValue, findValues, findValuesAsText, get, get, has, has, hasNonNull, hasNonNull, isEmpty, path, path, serializeWithTypeMethods inherited from class com.fasterxml.jackson.databind.node.BaseJsonNode
_bigIntFromBigDec, _jsonPointerIfValid, _reportWrongNodeOperation, _reportWrongNodeType, _withArray, _withObject, _withXxxMayReplace, _withXxxVerifyReplace, findPath, numberType, required, required, traverse, traverse, withArray, withObjectMethods inherited from class com.fasterxml.jackson.databind.JsonNode
_reportRequiredViolation, _this, asBoolean, asDouble, asInt, asLong, at, at, bigIntegerValue, booleanValue, canConvertToExactIntegral, canConvertToInt, canConvertToLong, decimalValue, doubleValue, elements, equals, fieldNames, fields, findParents, findValues, findValuesAsText, floatValue, intValue, isArray, isBigDecimal, isBigInteger, isBinary, isBoolean, isContainerNode, isDouble, isFloat, isFloatingPointNumber, isInt, isIntegralNumber, isLong, isMissingNode, isNull, isNumber, isObject, isPojo, isShort, isTextual, isValueNode, iterator, longValue, numberValue, properties, require, requiredAt, requiredAt, requireNonNull, shortValue, size, with, withArray, withArray, withArray, withObject, withObject, withObjectMethods inherited from class com.fasterxml.jackson.databind.JsonSerializable.Base
isEmptyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface de.captaingoldfish.scim.sdk.common.resources.base.ScimNode
getAttributeDescription, getAttributeName, getCanonicalValues, getMutability, getReferenceTypes, getReturned, getScimNodeName, getUniqueness, getValueType, isCaseExact, isMultiValued, isRequired
-
Field Details
-
WEAK_IDENTIFIER
- See Also:
-
-
Constructor Details
-
ETag
-
-
Method Details
-
newInstance
a creation method especially used with the methodScimObjectNode.getStringAttribute(String, Class)- Parameters:
version- an eTag that should be parsed- Returns:
- a new ETag instance
-
parseETag
checks the given string and parses it into an entity tag- Parameters:
version- the version string- Returns:
- the entity tag instance representation
-
getEntityTag
- Returns:
- the entity tag that is represented by this instance
-
toString
- Overrides:
toStringin classcom.fasterxml.jackson.databind.node.BaseJsonNode
-
toPrettyString
- Overrides:
toPrettyStringin classcom.fasterxml.jackson.databind.node.BaseJsonNode
-
equals
comparison of ETag's must be done due to the following rules+--------+--------+-------------------+-----------------+ | ETag 1 | ETag 2 | Strong Comparison | Weak Comparison | +--------+--------+-------------------+-----------------+ | W/"1" | W/"1" | no match | match | | W/"1" | W/"2" | no match | no match | | W/"1" | "1" | no match | match | | "1" | "1" | match | match | +--------+--------+-------------------+-----------------+- Overrides:
equalsin classcom.fasterxml.jackson.databind.node.TextNode
-
builder
-
isWeak
public boolean isWeak()tells us if this representation is a weak etag or not -
getTag
the string character representation for etag
-