Class SlicingRules

  • All Implemented Interfaces:
    Visitable

    @Generated("com.ibm.fhir.tools.CodeGenerator")
    public class SlicingRules
    extends Code
    • Field Detail

      • CLOSED

        public static final SlicingRules CLOSED
        Closed

        No additional content is allowed other than that described by the slices in this profile.

      • OPEN

        public static final SlicingRules OPEN
        Open

        Additional content is allowed anywhere in the list.

      • OPEN_AT_END

        public static final SlicingRules OPEN_AT_END
        Open at End

        Additional content is allowed, but only at the end of the list. Note that using this requires that the slices be ordered, which makes it hard to share uses. This should only be done where absolutely required.

    • Method Detail

      • of

        public static SlicingRules of​(String value)
        Factory method for creating SlicingRules objects from a passed string value.
        Parameters:
        value - A string that matches one of the allowed code values
        Throws:
        IllegalArgumentException - If the passed string cannot be parsed into an allowed code value
      • string

        public static String string​(String value)
        Inherited factory method for creating SlicingRules objects from a passed string value.
        Parameters:
        value - A string that matches one of the allowed code values
        Throws:
        IllegalArgumentException - If the passed string cannot be parsed into an allowed code value
      • code

        public static Code code​(String value)
        Inherited factory method for creating SlicingRules objects from a passed string value.
        Parameters:
        value - A string that matches one of the allowed code values
        Throws:
        IllegalArgumentException - If the passed string cannot be parsed into an allowed code value
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Code
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Code