Class AFPChainFlipper


  • public class AFPChainFlipper
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      AFPChainFlipper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static AFPChain flipChain​(AFPChain o)
      Flip the position of name1 and name2 (as well as all underlying data) in an AFPChain.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AFPChainFlipper

        public AFPChainFlipper()
    • Method Detail

      • flipChain

        public static AFPChain flipChain​(AFPChain o)
                                  throws StructureException
        Flip the position of name1 and name2 (as well as all underlying data) in an AFPChain. This is a utility function for AFPChainXMLParser. You will have to call AFPCHainXMLParser.rebuildAFPChain in order to get twisted groups...
        Parameters:
        o - ... the original AFPCHain that should be flipped
        Returns:
        a cloned AFPCHain which the positions of name1 and name2 flipped.
        Throws:
        StructureException