public final class VCSContextUtils
extends java.lang.Object
Utility class for manuplating contexts and expanding their composite states.
| Modifier and Type | Method and Description |
|---|---|
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.
|
static java.net.URL[] |
getVersionEditorUrls(VCSProfile profile)
Get all versioned editor urls
|
public static final URLFilter createLocalProtocolFilter()
public static final Locatable[] getContextLocatables(Context context, URLFilter filter)
context - the locatable context.filter - a filter that accepts valid locatable URLs.
(null-capable)public static final Locatable[] getContextLocatables(Context context)
context - the locatable context.public static final Locatable[] getExpandedLocatables(Element[] elements, URLFilter filter)
elements - the elements to expandfilter - a filter that accepts valid locatable URLs.
(null-capable)public static final Locatable[] getExpandedLocatables(Context context, Element[] elements, URLFilter filter)
context - the context.elements - the elements to expandfilter - a filter that accepts valid locatable URLs.
(null-capable)public static final java.lang.String getContextViewType(Context context)
context - the context.public static java.net.URL[] getVersionEditorUrls(VCSProfile profile)