Class Transformer


  • public class Transformer
    extends java.lang.Object
    This helper class helps to transform the input data (CommandType) to objects the API needs
    • Constructor Detail

      • Transformer

        public Transformer()
    • Method Detail

      • getBaseDirectoryEntryFromCommandType

        public static BaseDirectoryEntry getBaseDirectoryEntryFromCommandType​(CommandType command)
        Transforms CommandType to BaseDirectorEntry
        Parameters:
        command - CommandType
        Returns:
        baseDirectoryEntry BaseDirectoryEntry
      • getCreateDirectoryEntry

        public static CreateDirectoryEntry getCreateDirectoryEntry​(CommandType command)
        Transforms CommandType to CreateDirectoryEntry
        Parameters:
        command - CommandType
        Returns:
        baseDirectoryEntry BaseDirectoryEntry
      • getCommandTypeFromDirectoryEntry

        public static CommandType getCommandTypeFromDirectoryEntry​(DirectoryEntry entry)
                                                            throws javax.xml.datatype.DatatypeConfigurationException
        Throws:
        javax.xml.datatype.DatatypeConfigurationException