Package org.grails.encoder
Interface CodecIdentifier
-
- All Known Implementing Classes:
CombinedCodecIdentifier,DefaultCodecIdentifier
public interface CodecIdentifierInformation about the codec that identifies it and tells it's aliases.- Since:
- 2.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<java.lang.String>getCodecAliases()Gets the aliases for this codec.java.lang.StringgetCodecName()Gets the unique name of the codec.booleanisEquivalent(CodecIdentifier other)Checks if this codec is equivalent to some other codec
-
-
-
Method Detail
-
getCodecName
java.lang.String getCodecName()
Gets the unique name of the codec.- Returns:
- the codec name
-
getCodecAliases
java.util.Set<java.lang.String> getCodecAliases()
Gets the aliases for this codec. Aliases are used in registering "encodeAs*" and "decode*" metamethods in org.grails.commons.DefaultGrailsCodecClass- Returns:
- the codec aliases
-
isEquivalent
boolean isEquivalent(CodecIdentifier other)
Checks if this codec is equivalent to some other codec- Parameters:
other- the CodecIdentifier of the other codec- Returns:
- true, if is equivalent
-
-