Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.0.0)

E10686-01

oracle.adf.share.services
Class DefaultDescriptorFilter

java.lang.Object
  extended by oracle.adf.share.services.DefaultDescriptorFilter
All Implemented Interfaces:
DescriptorFilter

public class DefaultDescriptorFilter
extends java.lang.Object
implements DescriptorFilter

The default implementation of DescriptorFilter. It allows control over default visibility, and the set of tags to exclude on a matching entry.


Constructor Summary
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.
 
Method Summary
 boolean isDescriptorVisible(URLDescriptor descr, DescriptorContext context)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultDescriptorFilter

public 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.

Parameters:
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*"

DefaultDescriptorFilter

public DefaultDescriptorFilter()
Default to, show all, unless Specification-Vendor or Implementation-Vendor matches "Oracle*".

Method Detail

isDescriptorVisible

public boolean isDescriptorVisible(URLDescriptor descr,
                                   DescriptorContext context)
Specified by:
isDescriptorVisible in interface DescriptorFilter

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.0.0)

E10686-01

Copyright © 1997, 2008, Oracle. All rights reserved.