Class ActivationFile

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, InputLocationTracker

    public class ActivationFile
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
    This is the file specification used to activate the profile. The missing value is the location of a file that needs to exist, and if it doesn't, the profile will be activated. On the other hand, exists will test for the existence of the file and if it is there, the profile will be activated.
    Variable interpolation for these file specifications is limited to ${basedir}, system properties and user properties.
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ActivationFile()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ActivationFile clone()
      Method clone.
      java.lang.String getExists()
      Get the name of the file that must exist to activate the profile.
      InputLocation getLocation​(java.lang.Object key)
      Gets the location of the specified field in the input source.
      java.lang.String getMissing()
      Get the name of the file that must be missing to activate the profile.
      void setExists​(java.lang.String exists)
      Set the name of the file that must exist to activate the profile.
      void setLocation​(java.lang.Object key, InputLocation location)
      Sets the location of the specified field.
      void setMissing​(java.lang.String missing)
      Set the name of the file that must be missing to activate the profile.
      void setOtherLocation​(java.lang.Object key, InputLocation location)  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ActivationFile

        public ActivationFile()
    • Method Detail

      • clone

        public ActivationFile clone()
        Method clone.
        Overrides:
        clone in class java.lang.Object
        Returns:
        ActivationFile
      • getExists

        public java.lang.String getExists()
        Get the name of the file that must exist to activate the profile.
        Returns:
        String
      • getMissing

        public java.lang.String getMissing()
        Get the name of the file that must be missing to activate the profile.
        Returns:
        String
      • setOtherLocation

        public void setOtherLocation​(java.lang.Object key,
                                     InputLocation location)
        Parameters:
        key - a key object.
        location - a location object.
      • setExists

        public void setExists​(java.lang.String exists)
        Set the name of the file that must exist to activate the profile.
        Parameters:
        exists - a exists object.
      • setMissing

        public void setMissing​(java.lang.String missing)
        Set the name of the file that must be missing to activate the profile.
        Parameters:
        missing - a missing object.