Class SMPTransportProfile

java.lang.Object
com.helger.peppol.smp.SMPTransportProfile
All Implemented Interfaces:
com.helger.base.clone.ICloneable<SMPTransportProfile>, com.helger.base.id.IHasID<String>, com.helger.base.name.IHasName, com.helger.base.type.IHasObjectType, com.helger.base.type.ITypedObject<String>, ISMPTransportProfile, Serializable

@NotThreadSafe public class SMPTransportProfile extends Object implements ISMPTransportProfile, com.helger.base.clone.ICloneable<SMPTransportProfile>
A stand-alone implementation of the ISMPTransportProfile. For a set of predefined transport profiles have a look at ESMPTransportProfile.
See Also:
  • Field Details

    • OT

      public static final com.helger.base.type.ObjectType OT
    • DEFAULT_STATE

      public static final ESMPTransportProfileState DEFAULT_STATE
  • Constructor Details

    • SMPTransportProfile

      public SMPTransportProfile(@NonNull ISMPTransportProfile aOther)
    • SMPTransportProfile

      public SMPTransportProfile(@Nonempty @NonNull @Nonempty String sID, @Nonempty @NonNull @Nonempty String sName)
    • SMPTransportProfile

      public SMPTransportProfile(@Nonempty @NonNull @Nonempty String sID, @Nonempty @NonNull @Nonempty String sName, @NonNull ESMPTransportProfileState eState)
  • Method Details

    • getObjectType

      public @NonNull com.helger.base.type.ObjectType getObjectType()
      Specified by:
      getObjectType in interface com.helger.base.type.IHasObjectType
    • getID

      @Nonempty public @NonNull @Nonempty String getID()
      Description copied from interface: ISMPTransportProfile
      Get the ID to be stored in an SMP endpoint.
      Specified by:
      getID in interface com.helger.base.id.IHasID<String>
      Specified by:
      getID in interface ISMPTransportProfile
    • getName

      @Nonempty public @NonNull @Nonempty String getName()
      Description copied from interface: ISMPTransportProfile
      The display name of this transport profile has no semantics and is just for informational purposes. May neither be null nor empty.
      Specified by:
      getName in interface com.helger.base.name.IHasName
      Specified by:
      getName in interface ISMPTransportProfile
    • setName

      public final @NonNull com.helger.base.state.EChange setName(@Nonempty @NonNull @Nonempty String sName)
    • getState

      public @NonNull ESMPTransportProfileState getState()
      Specified by:
      getState in interface ISMPTransportProfile
      Returns:
      The state of the transport profile. May not be null.
    • setState

      public final @NonNull com.helger.base.state.EChange setState(@NonNull ESMPTransportProfileState eState)
    • getClone

      public @NonNull SMPTransportProfile getClone()
      Specified by:
      getClone in interface com.helger.base.clone.ICloneable<SMPTransportProfile>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object