public class DefaultDescriptorFilter extends java.lang.Object implements DescriptorFilter
Constructor and Description |
---|
DefaultDescriptorFilter()
Default to, show all, unless
Specification-Vendor or Implementation-Vendor matches "Oracle*".
|
DefaultDescriptorFilter(boolean visible,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> visData)
Control which items are shown based on the constructor params.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDescriptorVisible(URLDescriptor descr,
DescriptorContext context) |
java.lang.String |
toString() |
public DefaultDescriptorFilter(boolean visible, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> visData)
visible
- If true, then show all except those that match
visData. If false, then show nothing except those that match visData.
This allows for sparse manifest data and still have the intended items.visData
- The map key is the category name ex: "Specification-Vendor".
The map value is the Set of match strings ex: {"Oracle","CustomizerVAR1"}.
The only non-literal match is if the string ends with "*", ex: "Oracle*"public DefaultDescriptorFilter()
public boolean isDescriptorVisible(URLDescriptor descr, DescriptorContext context)
isDescriptorVisible
in interface DescriptorFilter
public java.lang.String toString()
toString
in class java.lang.Object