Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.jdeveloper.vcs.util
Class VCSContextUtils

java.lang.Object
  extended by oracle.jdeveloper.vcs.util.VCSContextUtils

public final class VCSContextUtils
extends java.lang.Object

Utility class for manuplating contexts and expanding their composite states.

Since:
9.0.5

Method Summary
static URLFilter createLocalProtocolFilter()
           
static Locatable[] getContextLocatables(Context context)
          Gets the valid locatables from the context node selection.
static Locatable[] getContextLocatables(Context context, URLFilter filter)
          Gets the valid locatables from the context node selection.
static java.lang.String getContextViewType(Context context)
          Gets the type identifier associated with the view of the given context.
static Locatable[] getExpandedLocatables(Context context, Element[] elements, URLFilter filter)
          Get the expanded set of locatables from the specified set of elements, only returning locatables which pass the specified filter.
static Locatable[] getExpandedLocatables(Element[] elements, URLFilter filter)
          Get the expanded set of locatables from the specified set of elements, only returning locatables which pass the specified filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createLocalProtocolFilter

public static final URLFilter createLocalProtocolFilter()

getContextLocatables

public static final Locatable[] getContextLocatables(Context context,
                                                     URLFilter filter)
Gets the valid locatables from the context node selection. Composite nodes are expanded by this method.

Parameters:
context - the locatable context.
filter - a filter that accepts valid locatable URLs. (null-capable)
Returns:
the valid locatable context.

getContextLocatables

public static final Locatable[] getContextLocatables(Context context)
Gets the valid locatables from the context node selection. Composite nodes are expanded by this method.

Parameters:
context - the locatable context.
Returns:
the valid locatable context.

getExpandedLocatables

public static final Locatable[] getExpandedLocatables(Element[] elements,
                                                      URLFilter filter)
Get the expanded set of locatables from the specified set of elements, only returning locatables which pass the specified filter. Composite nodes are expanded by this method.

Parameters:
elements - the elements to expand
filter - a filter that accepts valid locatable URLs. (null-capable)
Returns:
the valid locatable context

getExpandedLocatables

public static final Locatable[] getExpandedLocatables(Context context,
                                                      Element[] elements,
                                                      URLFilter filter)
Get the expanded set of locatables from the specified set of elements, only returning locatables which pass the specified filter. Composite nodes are expanded by this method.

Parameters:
context - the context.
elements - the elements to expand
filter - a filter that accepts valid locatable URLs. (null-capable)
Returns:
the valid locatable context

getContextViewType

public static final java.lang.String getContextViewType(Context context)
Gets the type identifier associated with the view of the given context.

Parameters:
context - the context.
Returns:
the view type.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

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