Class Validate


  • public class Validate
    extends Object
    • Constructor Detail

    • Method Detail

      • check

        public boolean check​(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs,
                             String... ignore)
                      throws Exception
        Look for a message in the returned FileSpec from operation.
        Parameters:
        fileSpecs - List of Perforce file specs
        ignore - Parameter list of messages to ignore (case insensitive)
        Returns:
        true if no errors.
        Throws:
        Exception - push up stack
      • checkCatch

        public boolean checkCatch​(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs,
                                  String... ignore)
        Only return boolean; false is returned for an exception.
        Parameters:
        fileSpecs - List of Perforce file specs
        ignore - Parameter list of messages to ignore (case insensitive)
        Returns:
        true if no errors or exceptions
      • check

        public boolean check​(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs,
                             boolean quiet,
                             String... ignore)
                      throws Exception
        Throws:
        Exception
      • log

        public void log​(String msg)