Class ViewUtil
- java.lang.Object
-
- uk.gov.gchq.gaffer.data.elementdefinition.view.ViewUtil
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static View
removeGroups(View view, String... groups)
Remove specified from the supplied view.static void
removeProperties(ViewElementDefinition elDef, Element element)
Remove properties from the supplied element, according to theViewElementDefinition
.static void
removeProperties(ViewElementDefinition elDef, Properties properties)
Remove properties from the supplied element, according to theViewElementDefinition
.static void
removeProperties(View view, Element element)
Remove properties from the supplied element, according to theViewElementDefinition
in theView
.
-
-
-
Method Detail
-
removeProperties
public static void removeProperties(View view, Element element)
Remove properties from the supplied element, according to theViewElementDefinition
in theView
.- Parameters:
view
- the view to applyelement
- the element to modify
-
removeProperties
public static void removeProperties(ViewElementDefinition elDef, Element element)
Remove properties from the supplied element, according to theViewElementDefinition
.- Parameters:
elDef
- the element definition to applyelement
- the element to modify
-
removeProperties
public static void removeProperties(ViewElementDefinition elDef, Properties properties)
Remove properties from the supplied element, according to theViewElementDefinition
.- Parameters:
elDef
- the element definition to applyproperties
- the properties to modify
-
removeGroups
public static View removeGroups(View view, String... groups)
Remove specified from the supplied view. Because TheView
is unmodifiable it will return a newView
with the group(s) removed.- Parameters:
view
- the view to applygroups
- the groups to remove- Returns:
- the new view with the groups removed
-
-