Package org.grails.encoder
Interface CodecIdentifier
- All Known Implementing Classes:
CombinedCodecIdentifier,DefaultCodecIdentifier
public interface CodecIdentifier
Information about the codec that identifies it and tells it's aliases.
- Since:
- 2.3
-
Method Summary
Modifier and TypeMethodDescriptionGets the aliases for this codec.Gets the unique name of the codec.booleanisEquivalent(CodecIdentifier other) Checks if this codec is equivalent to some other codec
-
Method Details
-
getCodecName
String getCodecName()Gets the unique name of the codec.- Returns:
- the codec name
-
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
Checks if this codec is equivalent to some other codec- Parameters:
other- the CodecIdentifier of the other codec- Returns:
- true, if is equivalent
-