Class AbstractNamedAFPObject

    • Field Detail

      • name

        protected java.lang.String name
        The actual name of the object
    • Constructor Detail

      • AbstractNamedAFPObject

        protected AbstractNamedAFPObject()
        Default constructor
      • AbstractNamedAFPObject

        protected AbstractNamedAFPObject​(java.lang.String name)
        Constructor for the ActiveEnvironmentGroup, this takes a name parameter which should be 8 characters long.
        Parameters:
        name - the object name
    • Method Detail

      • getNameLength

        protected int getNameLength()
        Returns the name length
        Returns:
        the name length
      • getNameBytes

        public byte[] getNameBytes()
        Returns the name as a byte array in EBCIDIC encoding
        Returns:
        the name as a byte array in EBCIDIC encoding
      • copySF

        protected void copySF​(byte[] data,
                              byte type,
                              byte category)
        Description copied from class: AbstractAFPObject
        Copies the template structured field data array to the given byte array
        Overrides:
        copySF in class AbstractAFPObject
        Parameters:
        data - the structured field data byte array
        type - the type code
        category - the category code
      • getName

        public java.lang.String getName()
        Returns the name of this object
        Returns:
        the name of this object
      • setName

        public void setName​(java.lang.String name)
        Sets the name of this object
        Parameters:
        name - the object name
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object