Class AcceptReject.AcceptRejectLeafname

    • Constructor Detail

      • AcceptRejectLeafname

        public AcceptRejectLeafname()
        Deserialization constructor.
      • AcceptRejectLeafname

        public AcceptRejectLeafname​(char separatorChar)
        Instantiates a new accept/reject for leaf matches.
        Parameters:
        separatorChar - the separator char
    • Method Detail

      • isAcceptedAndNotRejected

        public boolean isAcceptedAndNotRejected​(java.lang.String str)
        Check if the requested string is accepted and not rejected.
        Overrides:
        isAcceptedAndNotRejected in class AcceptReject.AcceptRejectWholeString
        Parameters:
        str - the string to test
        Returns:
        true if the string is accepted and not rejected
      • isAccepted

        public boolean isAccepted​(java.lang.String str)
        Check if the requested string is accepted.
        Overrides:
        isAccepted in class AcceptReject.AcceptRejectWholeString
        Parameters:
        str - the string to test
        Returns:
        true if the string is accepted
      • acceptHasPrefix

        public boolean acceptHasPrefix​(java.lang.String str)
        Prefix tests are invalid for jar leafnames -- throws IllegalArgumentException.
        Overrides:
        acceptHasPrefix in class AcceptReject.AcceptRejectWholeString
        Parameters:
        str - the string to test
        Returns:
        (does not return, throws exception)
        Throws:
        java.lang.IllegalArgumentException - always
      • isRejected

        public boolean isRejected​(java.lang.String str)
        Check if the requested string is rejected.
        Overrides:
        isRejected in class AcceptReject.AcceptRejectWholeString
        Parameters:
        str - the string to test
        Returns:
        true if the string is rejected