Class MetadataClutter
- java.lang.Object
-
- com.redhat.devtools.intellij.common.utils.MetadataClutter
-
public class MetadataClutter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<java.lang.String>propertiesProperties inObjectMetathat are considered disposable clutter.
-
Constructor Summary
Constructors Constructor Description MetadataClutter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.fabric8.kubernetes.api.model.ObjectMetaremove(io.fabric8.kubernetes.api.model.ObjectMeta metadata)Removes clutter properties from the givenObjectMetacontent.static java.lang.Stringremove(java.lang.String resource)Removes clutter properties from the given textual content.static java.lang.Stringremove(java.lang.String resource, boolean minimizeQuotes)Removes clutter properties from the given textual content.
-
-
-
Method Detail
-
remove
public static java.lang.String remove(java.lang.String resource)
Removes clutter properties from the given textual content. Does nothing if the content isnullor empty.- Parameters:
resource- where the clutter properties should be removed from- Returns:
- the content without the clutter properties
-
remove
public static java.lang.String remove(java.lang.String resource, boolean minimizeQuotes)Removes clutter properties from the given textual content. Does nothing if the content isnullor empty.- Parameters:
resource- where the clutter properties should be removed fromminimizeQuotes- if, when converting from json to yaml, quotes should be removed if not strictly needed- Returns:
- the content without the clutter properties
-
remove
public static io.fabric8.kubernetes.api.model.ObjectMeta remove(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
Removes clutter properties from the givenObjectMetacontent. Does nothing if the content isnull.- Parameters:
metadata- where the clutter properties should be removed from- Returns:
- the metadata without the clutter properties
-
-