Class PixelInCell

    • Method Detail

      • names

        public String[] names()
        Returns the programmatic name and the UML identifier of this code, together with alternative UML identifier if any. In particular, CELL_CENTER is known as both "cell center" (from ISO 19111:2007) and "cell centre" (derived from ISO 19162:2015).
        Specified by:
        names in interface ControlledVocabulary
        Overrides:
        names in class CodeList<PixelInCell>
        Returns:
        Names of this code, including alternative names if any.
      • values

        public static PixelInCell[] values()
        Returns the list of PixelInCells.
        Returns:
        the list of codes declared in the current JVM.
      • family

        public PixelInCell[] family()
        Returns the list of codes of the same kind than this code list element. Invoking this method is equivalent to invoking values(), except that this method can be invoked on an instance of the parent CodeList class.
        Specified by:
        family in interface ControlledVocabulary
        Specified by:
        family in class CodeList<PixelInCell>
        Returns:
        all code values for this code list.
      • valueOf

        public static PixelInCell valueOf​(String code)
        Returns the pixel in cell that matches the given string, or returns a new one if none match it. More specifically, this methods returns the first instance for which name().equals(code) returns true. If no existing instance is found, then a new one is created for the given name.
        Parameters:
        code - the name of the code to fetch or to create.
        Returns:
        a code matching the given name.