Class EmbosserWriterEvent.OpenEvent

  • Enclosing class:
    EmbosserWriterEvent

    public static class EmbosserWriterEvent.OpenEvent
    extends EmbosserWriterEvent
    Provides an object representation for an EmbosserWriter open event
    Author:
    Joel HÃ¥kansson
    • Constructor Detail

      • OpenEvent

        public OpenEvent​(boolean duplex)
        Creates a new OpenEvent with no contract
        Parameters:
        duplex -
      • OpenEvent

        public OpenEvent​(boolean duplex,
                         Contract contract)
        Creates a new OpenEvent
        Parameters:
        duplex -
        contract -
    • Method Detail

      • getContract

        public Contract getContract()
        Gets the contract for the event
        Returns:
        returns the contract for the event, or null if no contract exist
      • hasContract

        public boolean hasContract()
        Returns true if a contract has been defined
        Returns:
        returns true if a contract has been defined, false otherwise