|
<!-- saved from url=(0007)http:// -->
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>ZipParams.PatternCollection</TITLE>
<LINK REL=STYLESHEET HREF="../CommentReport.css" TYPE="text/css">
</HEAD>
<BODY topmargin=0 rightmargin=0 leftmargin=0 style="background-image: url(../titletile.jpg); background-repeat:repeat-x; background-position: 0 0;" >
<DIV CLASS="PageHeading">ZipParams.PatternCollection Class</DIV>
<DIV CLASS="Description">
Container class for file/directory patterns to ignore in various utilities.
<br>Maintains indepenent collections of:<br>
<br>Directories to ignore
<br>File extensions to ignore
<br>File names to ignore
<br>File content hints (text vs. non-text) for diffing
<br>
Every collection is an ArrayList, and every element is a PatternItem.
Every pattern item specifies its usage (file, directory or extension),
a path or extension string and a flag to indicate if the string is a
regular expression.
<P>
</DIV>
<IMG src="../GradLeft.jpg" width=7 height=378 alt="" border="0" style="position:absolute; left:10; top:18;z-Index:2">
<IMG src="../GradTop.jpg" width=352 height=7 alt="" border="0" align="top" style="position:absolute; left:10; top:18; z-index:1">
<DIV CLASS="Remarks">
<SPAN CLASS="RemarkHdrX">Access: </SPAN>Public</DIV>
<DIV CLASS="Remarks">
<SPAN CLASS="RemarkHdrX">Base Classes: </SPAN>Object</DIV>
<TABLE CLASS="InfoTable" cellpadding=0 cellspacing=0>
<TR height=20>
<TD width=20> </TD>
<TD valign=top align=left width=9 bgcolor="#cccc66"><IMG SRC="../graycorner.jpg" align=top></TD>
<TD CLASS="TableLightLabel" WIDTH=206>Members</TD>
<TD CLASS="TableLightLabel" >Description</TD>
<TD width=20> </TD>
</TR>
<TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP4.HTM" TARGET="CNTFRAME">alIgnoreDirs</A></TD>
<TD CLASS="TableLightDesc">
Array of directory patterns to ignore
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP5.HTM" TARGET="CNTFRAME">alIgnoreExts</A></TD>
<TD CLASS="TableLightDesc">
Array of extension patterns to ignore
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP6.HTM" TARGET="CNTFRAME">alIgnoreFiles</A></TD>
<TD CLASS="TableLightDesc">
Array of file name patterns to ignore
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP7.HTM" TARGET="CNTFRAME">alExtensionTypes</A></TD>
<TD CLASS="TableLightDesc">
File content patterns by extension
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP8.HTM" TARGET="CNTFRAME">bInSync</A></TD>
<TD CLASS="TableLightDesc">
Are the REs in sync with the collections?
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP9.HTM" TARGET="CNTFRAME">PatternItem</A></TD>
<TD CLASS="TableLightDesc">
Generic class for a file naming pattern
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP50.HTM" TARGET="CNTFRAME">PatternCollection</A></TD>
<TD CLASS="TableLightDesc"> </TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP51.HTM" TARGET="CNTFRAME">Default</A></TD>
<TD CLASS="TableLightDesc">
Create a default pattern collection
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP52.HTM" TARGET="CNTFRAME">IgnoredDirectories</A></TD>
<TD CLASS="TableLightDesc">
Array of ignored directories
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP54.HTM" TARGET="CNTFRAME">IgnoredExtensions</A></TD>
<TD CLASS="TableLightDesc">
Array of ignored extensions
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP56.HTM" TARGET="CNTFRAME">IgnoredFiles</A></TD>
<TD CLASS="TableLightDesc">
Array of ignored files
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP58.HTM" TARGET="CNTFRAME">ExtensionTypes</A></TD>
<TD CLASS="TableLightDesc">
Array of content info by extension
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP60.HTM" TARGET="CNTFRAME">AddIgnoreDirectory</A></TD>
<TD CLASS="TableLightDesc"> </TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP61.HTM" TARGET="CNTFRAME">AddIgnoreFile</A></TD>
<TD CLASS="TableLightDesc"> </TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP62.HTM" TARGET="CNTFRAME">AddIgnoreExtension</A></TD>
<TD CLASS="TableLightDesc"> </TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP63.HTM" TARGET="CNTFRAME">AddExtensionType</A></TD>
<TD CLASS="TableLightDesc"> </TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP64.HTM" TARGET="CNTFRAME">ExtensionType</A></TD>
<TD CLASS="TableLightDesc">
Given an extension string (with period), return the declared content type of the file
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP65.HTM" TARGET="CNTFRAME">IgnoreExtension</A></TD>
<TD CLASS="TableLightDesc">
Given an extension string (with perioed), return true of such files are to be ignored
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP66.HTM" TARGET="CNTFRAME">IgnoreFile</A></TD>
<TD CLASS="TableLightDesc">
Given a file's path string, return true if the file should be ignored.
First the extension is tested, then the file name string.
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP67.HTM" TARGET="CNTFRAME">IgnoreDirectory</A></TD>
<TD CLASS="TableLightDesc">
Given a relative directory path (e.g., ".\mydir\subdir\subsubdir"),
determine if the directory should be ignored. If directory match criterion
is a regular expression, the entire string is used; otherwise, only the
"tail" (lowest directory name) is matched as a string. The directory
string never has a terminating backslash ('\').
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP68.HTM" TARGET="CNTFRAME">Save</A></TD>
<TD CLASS="TableLightDesc">
Save the contents of the parameter set into an XML output file
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP69.HTM" TARGET="CNTFRAME">Load</A></TD>
<TD CLASS="TableLightDesc">
Load an XML parameter file
<P>
</TD>
<TD width=20> </TD>
</TR><TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP70.HTM" TARGET="CNTFRAME">SyncPatterns</A></TD>
<TD CLASS="TableLightDesc">
Guarantee that changed patterns are recompiled.
<P>
</TD>
<TD width=20> </TD>
</TR></TABLE>
</BODY>
</HTML>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.