/** * @return <code>true</code> if this filter is a custom filter. */ public boolean isPatternFilter() { return getPattern() != null; }
/** * @return <code>true</code> if this filter is a custom filter. */ public boolean isPatternFilter() { return getPattern() != null; }
/** * @return <code>true</code> if this filter is a custom filter. */ public boolean isPatternFilter() { return getPattern() != null; }
/** * Returns the filter's name. * <p> * If the name of a pattern filter is missing * then the pattern is used as its name. * </p> * @return the filter's name */ public String getName() { String name= fElement.getAttribute(NAME_ATTRIBUTE); if (name == null && isPatternFilter()) name= getPattern(); return name; }
/** * Returns the filter's name. * <p> * If the name of a pattern filter is missing * then the pattern is used as its name. * </p> */ public String getName() { String name= fElement.getAttribute(NAME_ATTRIBUTE); if (name == null && isPatternFilter()) name= getPattern(); return name; }
/** * Returns the filter's name. * <p> * If the name of a pattern filter is missing * then the pattern is used as its name. * </p> * @return the filter's name */ public String getName() { String name= fElement.getAttribute(NAME_ATTRIBUTE); if (name == null && isPatternFilter()) name= getPattern(); return name; }
/** * Returns the filter's id. * <p> * This attribute is mandatory for custom filters. * The ID for pattern filters is * PATTERN_FILTER_ID_PREFIX plus the pattern itself. * </p> */ public String getId() { if (isPatternFilter()) { String targetId= getTargetId(); if (targetId == null) return PATTERN_FILTER_ID_PREFIX + getPattern(); else return targetId + PATTERN_FILTER_ID_PREFIX + getPattern(); } else return fElement.getAttribute(ID_ATTRIBUTE); }
/** * Returns the filter's id. * <p> * This attribute is mandatory for custom filters. * The ID for pattern filters is * PATTERN_FILTER_ID_PREFIX plus the pattern itself. * </p> * @return the filter id */ public String getId() { if (isPatternFilter()) { String targetId= getTargetId(); if (targetId == null) return PATTERN_FILTER_ID_PREFIX + getPattern(); else return targetId + PATTERN_FILTER_ID_PREFIX + getPattern(); } else return fElement.getAttribute(ID_ATTRIBUTE); }
/** * Returns the filter's id. * <p> * This attribute is mandatory for custom filters. * The ID for pattern filters is * PATTERN_FILTER_ID_PREFIX plus the pattern itself. * </p> * @return the filter id */ public String getId() { if (isPatternFilter()) { String targetId= getTargetId(); if (targetId == null) return PATTERN_FILTER_ID_PREFIX + getPattern(); else return targetId + PATTERN_FILTER_ID_PREFIX + getPattern(); } else return fElement.getAttribute(ID_ATTRIBUTE); }
patterns.add(item.descriptor.getPattern());
patterns.add(item.descriptor.getPattern());
patterns.add(item.descriptor.getPattern());