public final class StringToDocumentIdentifierValueConverter extends Object implements ToDocumentIdentifierValueConverter<String>
Constructor and Description |
---|
StringToDocumentIdentifierValueConverter() |
Modifier and Type | Method and Description |
---|---|
String |
convert(String value,
ToDocumentIdentifierValueConvertContext context) |
String |
convertUnknown(Object value,
ToDocumentIdentifierValueConvertContext context)
Convert an input value of unknown type that may not have the required type
I . |
boolean |
isCompatibleWith(ToDocumentIdentifierValueConverter<?> other) |
public StringToDocumentIdentifierValueConverter()
public String convert(String value, ToDocumentIdentifierValueConvertContext context)
convert
in interface ToDocumentIdentifierValueConverter<String>
value
- The source value to convert.context
- A context that can be
extended
to a more useful type, giving access to such things as a Hibernate ORM SessionFactory (if using the Hibernate ORM mapper).public String convertUnknown(Object value, ToDocumentIdentifierValueConvertContext context)
ToDocumentIdentifierValueConverter
I
.
Called when passing values to the predicate DSL in particular.
convertUnknown
in interface ToDocumentIdentifierValueConverter<String>
value
- The source value to convert.context
- A context that can be
extended
to a more useful type, giving access to such things as a Hibernate ORM SessionFactory (if using the Hibernate ORM mapper).public boolean isCompatibleWith(ToDocumentIdentifierValueConverter<?> other)
isCompatibleWith
in interface ToDocumentIdentifierValueConverter<String>
other
- Another ToDocumentIdentifierValueConverter
, never null
.true
if the given object behaves exactly the same as this object, i.e. its
ToDocumentIdentifierValueConverter.convertUnknown(Object, ToDocumentIdentifierValueConvertContext)
method is guaranteed to always return the
same value as this object's when given the same input. false
otherwise, or when in doubt.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.