Package com.adaptris.edi
Class StandardEdifactCharacterSet
- java.lang.Object
-
- com.adaptris.edi.StandardEdifactCharacterSet
-
- All Implemented Interfaces:
CharacterSet
public class StandardEdifactCharacterSet extends java.lang.Object implements CharacterSet
Standard EDIFACTCharacterSetimplementation.In the adapter configuration file this class is aliased as edi-standard-edifact which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description StandardEdifactCharacterSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)chargetEscapeCharacter()Method to return the Escape character for this character setchargetSeparator(int type)Method to return a separator char for a given DataModelPart type.char[]getSeparators()Method to return an array containing all the separators used by this character set.inthashCode()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.edi.CharacterSet
defaultEquals, defaultHashCode
-
-
-
-
Method Detail
-
getSeparator
public char getSeparator(int type) throws java.lang.ExceptionDescription copied from interface:CharacterSetMethod to return a separator char for a given DataModelPart type.- Specified by:
getSeparatorin interfaceCharacterSet- Parameters:
type- which referes to one of the DataModelPart static types- Returns:
- the separator char
- Throws:
java.lang.Exception- of the type isn't supported
-
getSeparators
public char[] getSeparators()
Description copied from interface:CharacterSetMethod to return an array containing all the separators used by this character set. Should not include the escape character.- Specified by:
getSeparatorsin interfaceCharacterSet- Returns:
- char array of separators
-
getEscapeCharacter
public char getEscapeCharacter()
Description copied from interface:CharacterSetMethod to return the Escape character for this character set- Specified by:
getEscapeCharacterin interfaceCharacterSet- Returns:
- the escape char
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-