public class IncludeRule extends FileRule<CheckoutRules>
myFromFull, myFromPath| Constructor and Description |
|---|
IncludeRule(java.lang.String from,
java.lang.String to,
CheckoutRules parentRules) |
| Modifier and Type | Method and Description |
|---|---|
static IncludeRule |
createDefaultInstance() |
java.lang.String |
createFullPath(java.lang.String relativeFileName) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getMatchedHead(java.lang.String path)
returns matched head path without trailing wildcards if matched with path, null otherwise
|
java.lang.String |
getTo() |
int |
hashCode() |
boolean |
intersects(IncludeRule rule)
Computes whether this rule intersects with specified rule.
|
boolean |
isAbsolutePathTo() |
java.lang.String |
map(java.lang.String path)
Maps vcs relative file path to path described by checkout rules.
|
java.lang.String |
toDescriptiveString() |
java.lang.String |
toString() |
createPatternString, getAdditionalProperties, getFrom, getParentRules, getPattern, getProperty, isAbsolutePath, isIsInclude, isRoot, preparePathWithLowercase, propertiesMatchpublic IncludeRule(@NotNull
java.lang.String from,
@NotNull
java.lang.String to,
CheckoutRules parentRules)
public java.lang.String getTo()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object@Nullable
public java.lang.String getMatchedHead(@Nullable
java.lang.String path)
FileRulegetMatchedHead in class FileRule<CheckoutRules>path - file path to match withpublic static IncludeRule createDefaultInstance()
public java.lang.String toString()
toString in class FileRule<CheckoutRules>public java.lang.String toDescriptiveString()
@Nullable public java.lang.String map(java.lang.String path)
path - to mappublic java.lang.String createFullPath(java.lang.String relativeFileName)
public boolean intersects(IncludeRule rule)
getTo()) intersects, i.e if one is sub directory of another or both rules mapped to the same path.rule - rule to checkpublic boolean isAbsolutePathTo()