Class KnotType

  • All Implemented Interfaces:
    Serializable, Comparable<KnotType>, ControlledVocabulary

    @UML(identifier="GM_KnotType",
         specification=ISO_19107)
    public class KnotType
    extends CodeList<KnotType>
    The type of a B-spline. A B-spline is uniform if and only if all knots are of multiplicity 1 and they differ by a positive constant from the preceding knot. A B-spline is quasi-uniform if and only if the knots are of multiplicity (degree+1) at the ends, of multiplicity 1 elsewhere, and they differ by a positive constant from the preceding knot. This code list is used to describe the distribution of knots in the parameter space of various splines.
    Since:
    GeoAPI 2.0
    See Also:
    Serialized Form
    • Method Detail

      • values

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

        public KnotType[] 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<KnotType>
        Returns:
        all code values for this code list.
      • valueOf

        public static KnotType valueOf​(String code)
        Returns the KnotType 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.