Class AbstractConstraintEffectiveStatement<A,​D extends DeclaredStatement<A>>

    • Constructor Detail

      • AbstractConstraintEffectiveStatement

        protected AbstractConstraintEffectiveStatement​(StmtContext<A,​D,​?> ctx)
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • isCustomizedStatement

        public final boolean isCustomizedStatement()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getModifier

        public final ModifierKind getModifier()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getErrorAppTag

        public final Optional<String> getErrorAppTag()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: ConstraintMetaDefinition
        Returns the value of the argument of YANG error-app-tag keyword.
        Specified by:
        getErrorAppTag in interface ConstraintMetaDefinition
        Returns:
        string with the application tag, or empty if it was not provided.
      • getErrorMessage

        public final Optional<String> getErrorMessage()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: ConstraintMetaDefinition
        Returns the value of the argument of YANG error-message keyword.
        Specified by:
        getErrorMessage in interface ConstraintMetaDefinition
        Returns:
        string with the error message, or empty if it was not provided.
      • createConstraints

        protected abstract A createConstraints​(A argument)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • maskList

        protected static final @NonNull Object maskList​(ImmutableList<?> list)
        Utility method for squashing singleton lists into single objects. This is a CPU/mem trade-off, which we are usually willing to make: for the cost of an instanceof check we can save one object and re-create it when needed. The inverse operation is #unmaskSubstatements(Object)}.
        Parameters:
        list - list to mask
        Returns:
        Masked list
        Throws:
        NullPointerException - if list is null
      • unmaskSet

        protected static final <T> @NonNull ImmutableSet<? extends T> unmaskSet​(@NonNull Object masked,
                                                                                @NonNull Class<T> type)