|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface File.Keyword
A Keyword object that encapsulates information about a File keyword. When
a file is added, checked-in or checked-out of the repository keyword
expansion may be applied to the contents of the file. For example, an
occurrence of $Author$ in a file might be be replaced with
$Author: Fred$ upon checkout. NOTE: This interface is not
intended to be implemented by client applications.
| Method Summary | |
|---|---|
java.lang.String |
expand(java.lang.String linePrefix,
java.lang.String eol,
boolean expand)
Returns the expanded or unexpanded version of this keyword. |
boolean |
getIsMultiLine()
Returns true if this keyword spans multiple lines. |
java.lang.String |
getName()
Return the keyword name. |
boolean |
getStopExpanding()
Return true if upon encountering this keyword in a file that no further keyword expansion will occur. |
java.lang.String |
getValue()
Return the keyword value. |
java.lang.String |
getXMLString()
Returns an XML representation of the keyword. |
boolean |
matches(java.lang.String line,
int start,
int[] endPos)
Returns true of this keyword is found in the specified line. |
| Method Detail |
|---|
java.lang.String getName()
java.lang.String getValue()
boolean getStopExpanding()
$NoKeywords$.
boolean getIsMultiLine()
$Log$ and $History$
keywords.
boolean matches(java.lang.String line,
int start,
int[] endPos)
$ occurs.
line - the line to search for this keywordstart - the position in the line (zero based) to start searchingendPos - and "output" array where the end of the keyword occurs.
java.lang.String expand(java.lang.String linePrefix,
java.lang.String eol,
boolean expand)
linePrefix - the begining of the line in the souce leading up to the
keywordeol - the end-of-line convention used in the source fileexpand - true if the keyword is to be expanded and false for
unexpand
java.lang.String getXMLString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||