Class View

java.lang.Object
eu.c6.gibraltar.api.common.CObject
eu.c6.gibraltar.api.common.View
All Implemented Interfaces:
ICObject, IView, Serializable, Cloneable

public class View extends CObject implements IView
The Class View to implement IView.
See Also:
  • Constructor Details

    • View

      public View(com.fasterxml.jackson.databind.JsonNode node)
      Instantiates a new View object.
      Parameters:
      node - the JSON node
    • View

      public View(Map<Locale,String> labels, List<String> path)
      Instantiates a new View object.
      Parameters:
      labels - the labels
      path - the path
  • Method Details

    • getPath

      public List<String> getPath()
      Description copied from interface: IView
      Gets the view path as a list of aspect metadata.
      Specified by:
      getPath in interface IView
      Returns:
      the path
    • setPath

      public IView setPath(List<String> path)
      Description copied from interface: IView
      Sets the path of the view with a list of aspect metadata.
      Specified by:
      setPath in interface IView
      Parameters:
      path - the path
      Returns:
      the i view
    • setLabels

      public IView setLabels(Map<Locale,String> labels)
      Description copied from interface: IView
      Sets the labels.
      Specified by:
      setLabels in interface IView
      Parameters:
      labels - the localized labels
      Returns:
      the current object
    • getLabel

      public String getLabel(Locale locale)
      Description copied from interface: IView
      Gets the label for a locale.
      Specified by:
      getLabel in interface IView
      Parameters:
      locale - the locale
      Returns:
      the label
    • setLabel

      public IView setLabel(Locale locale, String label)
      Description copied from interface: IView
      Sets the label for a locale.
      Specified by:
      setLabel in interface IView
      Parameters:
      locale - the locale
      label - the label
      Returns:
      c
    • getLabels

      public ILabels getLabels()
      Description copied from interface: IView
      Gets the labels.
      Specified by:
      getLabels in interface IView
      Returns:
      the labels