Package org.grails.encoder
Class CombinedCodecIdentifier
- java.lang.Object
-
- org.grails.encoder.CombinedCodecIdentifier
-
- All Implemented Interfaces:
CodecIdentifier
public class CombinedCodecIdentifier extends java.lang.Object implements CodecIdentifier
-
-
Method Summary
All Methods Instance Methods Concrete 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
public java.lang.String getCodecName()
Description copied from interface:CodecIdentifierGets the unique name of the codec.- Specified by:
getCodecNamein interfaceCodecIdentifier- Returns:
- the codec name
-
getCodecAliases
public java.util.Set<java.lang.String> getCodecAliases()
Description copied from interface:CodecIdentifierGets the aliases for this codec. Aliases are used in registering "encodeAs*" and "decode*" metamethods in org.grails.commons.DefaultGrailsCodecClass- Specified by:
getCodecAliasesin interfaceCodecIdentifier- Returns:
- the codec aliases
-
isEquivalent
public boolean isEquivalent(CodecIdentifier other)
Description copied from interface:CodecIdentifierChecks if this codec is equivalent to some other codec- Specified by:
isEquivalentin interfaceCodecIdentifier- Parameters:
other- the CodecIdentifier of the other codec- Returns:
- true, if is equivalent
-
-