Class NameConstraint.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • permittedSubtree

        public NameConstraint.Builder permittedSubtree​(List<NameConstraintSubtreeNode> permittedSubtree)
        A list that contains permitted namespaces.

        If you have a name constraint with no excluded namespaces, you must specify at least one permitted namespace.

        Parameters:
        permittedSubtree - the value to set
        Returns:
        this builder
      • excludedSubtree

        public NameConstraint.Builder excludedSubtree​(List<NameConstraintSubtreeNode> excludedSubtree)
        A list that contains excluded (or prohibited) namespaces.

        If you have a name constraint with no permitted namespaces, you must specify at least one excluded namespace.

        Parameters:
        excludedSubtree - the value to set
        Returns:
        this builder