com.ibm.as400.access

Class AFPResource

  • All Implemented Interfaces:
    java.io.Serializable


    public class AFPResource
    extends PrintObject
    implements java.io.Serializable
    The AFPResource class represents a system AFP resource. An instance of this class can be used to manipulate an individual IBM i AFP resource. See AFP Resource Attributes for valid attributes.
    See Also:
    Serialized Form
    • Constructor Detail

      • AFPResource

        public AFPResource()
        Constructs an AFPResource object. The system and the integrated file system name of the AFP resource must be set later. This constructor is provided for visual application builders that support JavaBeans. It is not intended for use by application programmers.
        See Also:
        PrintObject.setSystem(com.ibm.as400.access.AS400), setPath(java.lang.String)
      • AFPResource

        public AFPResource(AS400 system,
                   java.lang.String resourceName)
        Constructs an AFPResource object. It uses the system and resource name that identify it on that system. The system referenced by system must be at V3R7 or later to support using AFP resources.
        Parameters:
        system - The system on which this AFP resource exists.
        resourceName - The integrated file system name of the AFP resource. The format of the resource string must be in the format of "/QSYS.LIB/libname.LIB/resourcename.type". Valid values for type include FNTRSC, FORMDF, OVL, PAGSEG, and PAGDFN.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the AFP resource.
        Returns:
        The name of the AFP resource.
      • getPath

        public java.lang.String getPath()
        Returns the integrated file system pathname of the AFP resource.
        Returns:
        The integrated file system pathname of the AFP resource.
      • setPath

        public void setPath(java.lang.String path)
                     throws java.beans.PropertyVetoException
        Sets the integrated file system pathname of the AFP resource.
        Parameters:
        path - The integrated file system name of the AFP resource. The format of the resource string must be in the format of "/QSYS.LIB/libname.LIB/resourcename.type". Valid values for type include FNTRSC, FORMDF, OVL, PAGSEG, and PAGDFN.
        Throws:
        java.beans.PropertyVetoException - If the change is vetoed.