Extension SDK 9.0.5

oracle.jdeveloper.vcs.util
Class VCSContextUtils

java.lang.Object
  extended byoracle.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 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 Locatable[] getExpandedLocatables(Element[] elements, URLFilter filter)
          Get the expanded set of locatables from the specified set of elements, only returning locatables which pass the speicifed filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 speicifed filter. Composite nodes are expanded by this method.

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

Extension SDK

 

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