Package org.eclipse.xtext.mwe
Class NameBasedFilter
- java.lang.Object
-
- org.eclipse.xtext.mwe.NameBasedFilter
-
-
Constructor Summary
Constructors Constructor Description NameBasedFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExtension()
java.util.regex.Pattern
getRegularExpression()
boolean
matches(org.eclipse.emf.common.util.URI uri)
void
setExtension(java.lang.String extension)
Filter based on the URI-attribute 'fileExtension'.void
setRegularExpression(java.lang.String regularExpression)
Filter the URI based on a regular expression.
-
-
-
Method Detail
-
matches
public boolean matches(org.eclipse.emf.common.util.URI uri)
-
setExtension
public void setExtension(java.lang.String extension)
Filter based on the URI-attribute 'fileExtension'. The filter is applied ignore-case. Can be combined with an additional regular expression.
-
getExtension
public java.lang.String getExtension()
-
setRegularExpression
public void setRegularExpression(java.lang.String regularExpression)
Filter the URI based on a regular expression. Can be combined with an additional file-extension filter.
-
getRegularExpression
public java.util.regex.Pattern getRegularExpression()
-
-