Class SimpleFilePathExpression

    • Constructor Detail

      • SimpleFilePathExpression

        public SimpleFilePathExpression()
    • Method Detail

      • match

        public boolean match​(Node node)
        Description copied from interface: IFilePathExpression
        Returns true if the given DOM node matches the file path expression and false otherwise.
        Specified by:
        match in interface IFilePathExpression
        Parameters:
        node - the DOM node.
        Returns:
        true if the given DOM node matches the file path expression and false otherwise.
      • getSeparator

        public Character getSeparator()
        Description copied from interface: IFilePathExpression
        Returns the separator character (ex: ';') used to separate multiple files declaration (ex: file1.xml;file2.xml) and null otherwise.
        Specified by:
        getSeparator in interface IFilePathExpression
        Returns:
        the separator character (ex: ';') used to separate multiple files declaration (ex: file1.xml;file2.xml) and null otherwise.
      • acceptPath

        public boolean acceptPath​(Path path)
        Description copied from interface: IFilePathExpression
        Returns true if given file path is allowed for the file path completion and false otherwise.
        Specified by:
        acceptPath in interface IFilePathExpression
        Parameters:
        path - the file path.
        Returns:
        true if given file path is allowed for the file path completion and false otherwise.
      • acceptFile

        protected boolean acceptFile​(Path path)