Class ScopeNamespace


  • public final class ScopeNamespace
    extends Object
    Specifies that the scope of the extension is Namespace.
    • Constructor Detail

      • ScopeNamespace

        public ScopeNamespace()
    • Method Detail

      • targetNamespace

        public String targetNamespace()
        Get the targetNamespace property: Namespace where the extension will be created for an Namespace scoped extension. If this namespace does not exist, it will be created.
        Returns:
        the targetNamespace value.
      • withTargetNamespace

        public ScopeNamespace withTargetNamespace​(String targetNamespace)
        Set the targetNamespace property: Namespace where the extension will be created for an Namespace scoped extension. If this namespace does not exist, it will be created.
        Parameters:
        targetNamespace - the targetNamespace value to set.
        Returns:
        the ScopeNamespace object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.