Skip to content

Commit 8ad2fd5

Browse files
committed
[ignore] fix formatting and modifier order
1 parent 7c0f8f8 commit 8ad2fd5

File tree

1 file changed

+31
-37
lines changed

1 file changed

+31
-37
lines changed

extensions/modules/file/src/main/java/org/exist/xquery/modules/file/DirectoryList.java

Lines changed: 31 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -52,52 +52,46 @@
5252
*
5353
* @author <a href="mailto:[email protected]">Andrzej Taramina</a>
5454
* @author ljo
55-
* @serial 2009-08-09
5655
* @version 1.2
57-
*
58-
* @see
59-
* org.exist.xquery.BasicFunction#BasicFunction(org.exist.xquery.XQueryContext,
56+
* @serial 2009-08-09
57+
* @see org.exist.xquery.BasicFunction#BasicFunction(org.exist.xquery.XQueryContext,
6058
* org.exist.xquery.FunctionSignature)
6159
*/
6260
public class DirectoryList extends BasicFunction {
6361

64-
private final static Logger logger = LogManager.getLogger(DirectoryList.class);
65-
66-
final static String NAMESPACE_URI = FileModule.NAMESPACE_URI;
67-
final static String PREFIX = FileModule.PREFIX;
68-
69-
final static QName FILE_ELEMENT = new QName("file", NAMESPACE_URI, PREFIX);
70-
final static QName LIST_ELEMENT = new QName("list", NAMESPACE_URI, PREFIX);
71-
72-
final static QName DIRECTORY_ATTRIBUTE = new QName("directory", null, null);
73-
final static QName NAME_ATTRIBUTE = new QName("name", null, null);
74-
final static QName SIZE_ATTRIBUTE = new QName("size", null, null);
75-
final static QName HUMAN_SIZE_ATTRIBUTE = new QName("human-size", null, null);
76-
final static QName MODIFIED_ATTRIBUTE = new QName("modified", null, null);
77-
final static QName SUBDIR_ATTRIBUTE = new QName("subdir", null, null);
78-
79-
public final static FunctionSignature[] signatures
80-
= {
81-
new FunctionSignature(
82-
new QName("directory-list", NAMESPACE_URI, PREFIX),
83-
"List all files, including their file size and modification time, "
84-
+ "found in or below a directory, $directory. Files are located in the server's "
85-
+ "file system, using filename patterns, $pattern. File pattern matching is based "
86-
+ "on code from Apache's Ant, thus following the same conventions. For example:\n\n"
87-
+ "'*.xml' matches any file ending with .xml in the current directory,\n- '**/*.xml' matches files "
88-
+ "in any directory below the specified directory. This method is only available to the DBA role.",
89-
new SequenceType[]{
62+
static final String NAMESPACE_URI = FileModule.NAMESPACE_URI;
63+
static final String PREFIX = FileModule.PREFIX;
64+
public static final FunctionSignature[] signatures = {
65+
new FunctionSignature(
66+
new QName("directory-list", NAMESPACE_URI, PREFIX),
67+
"List all files, including their file size and modification time, "
68+
+ "found in or below a directory, $directory. Files are located in the server's "
69+
+ "file system, using filename patterns, $pattern. File pattern matching is based "
70+
+ "on code from Apache's Ant, thus following the same conventions. For example:\n\n"
71+
+ "'*.xml' matches any file ending with .xml in the current directory,\n- '**/*.xml' matches files "
72+
+ "in any directory below the specified directory. This method is only available to the DBA role.",
73+
new SequenceType[]{
9074
new FunctionParameterSequenceType("path", Type.ITEM,
9175
Cardinality.EXACTLY_ONE, "The base directory path or URI in the file system where the files are located."),
9276
new FunctionParameterSequenceType("pattern", Type.STRING,
9377
Cardinality.ZERO_OR_MORE, "The file name pattern")
94-
},
95-
new FunctionReturnSequenceType(Type.NODE,
96-
Cardinality.ZERO_OR_ONE, "a node fragment that shows all matching "
97-
+ "filenames, including their file size and modification time, and "
98-
+ "the subdirectory they were found in")
99-
)
100-
};
78+
},
79+
new FunctionReturnSequenceType(Type.NODE,
80+
Cardinality.ZERO_OR_ONE, "a node fragment that shows all matching "
81+
+ "filenames, including their file size and modification time, and "
82+
+ "the subdirectory they were found in")
83+
)
84+
};
85+
static final QName FILE_ELEMENT = new QName("file", NAMESPACE_URI, PREFIX);
86+
static final QName LIST_ELEMENT = new QName("list", NAMESPACE_URI, PREFIX);
87+
88+
static final QName DIRECTORY_ATTRIBUTE = new QName("directory", null, null);
89+
static final QName NAME_ATTRIBUTE = new QName("name", null, null);
90+
static final QName SIZE_ATTRIBUTE = new QName("size", null, null);
91+
static final QName HUMAN_SIZE_ATTRIBUTE = new QName("human-size", null, null);
92+
static final QName MODIFIED_ATTRIBUTE = new QName("modified", null, null);
93+
static final QName SUBDIR_ATTRIBUTE = new QName("subdir", null, null);
94+
private static final Logger logger = LogManager.getLogger(DirectoryList.class);
10195

10296
public DirectoryList(final XQueryContext context, final FunctionSignature signature) {
10397
super(context, signature);

0 commit comments

Comments
 (0)