Returns true if the parameter has a namespace and value, false if not.

@param p Parameter
494922
private static boolean validParameter(final Parameter p) {
        if (p.getNamespace() == null) {
            return false;
        }
        if (p.getValue() == null) {
            return false;
        }
        return true;
    }
1119591
function has(name) {
    validateArgumentsLength(arguments.length, 1);
    var entries = getInternalParamsState(this).entries;
    var key = name + '';
    var i = 0;
    while (i < entries.length) if (entries[i++].key === key) return true;
    return false;
  }
380817
public boolean containsNamespace(String ns)
    {
        for (int i = 0; i < this.libraries.length; i++)
        {
            if (this.libraries[i].containsNamespace(ns))
            {
                return true;
            }
        }
        return false;
    }
441318
def p_scalar_namespace_name(p):
    ''''''
    if len(p) == 2:
        p[0] = ast.Constant(p[1], lineno=p.lineno(1))
    elif len(p) == 3:
        p[0] = ast.Constant(p[1] + p[2], lineno=p.lineno(1))
    else:
        p[0] = ast.Constant(p[1] + p[2] + p[3], lineno=p.lineno(1))
925811
private static boolean isMatch(DataMedia dataMedia, String namespace, String name) {
        boolean isMatch = true;
        if (StringUtils.isEmpty(namespace)) {
            isMatch &= StringUtils.isEmpty(dataMedia.getNamespace());
        } else {
            if (dataMedia.getNamespaceMode().getMode().isSingle()) {
                isMatch &= dataMedia.getNamespace().equalsIgnoreCase(namespace);
            } else if (dataMedia.getNamespaceMode().getMode().isMulti()) {
                isMatch &= (indexIgnoreCase(dataMedia.getNamespaceMode().getMultiValue(), namespace) != -1);
            } else if (dataMedia.getNamespaceMode().getMode().isWildCard()) {
                isMatch &= isWildCardMatch(dataMedia.getNamespace(), namespace);
            } else {
                throw new UnsupportedOperationException("unsupport mode:" + dataMedia.getNameMode().getMode());
            }
        }

        if (StringUtils.isEmpty(name)) {
            isMatch &= StringUtils.isEmpty(dataMedia.getName());
        } else {
            if (dataMedia.getNameMode().getMode().isSingle()) {
                isMatch &= dataMedia.getName().equalsIgnoreCase(name);
            } else if (dataMedia.getNameMode().getMode().isMulti()) {
                isMatch &= (indexIgnoreCase(dataMedia.getNameMode().getMultiValue(), name) != -1);
            } else if (dataMedia.getNameMode().getMode().isWildCard()) {
                isMatch &= isWildCardMatch(dataMedia.getName(), name);
            } else {
                throw new UnsupportedOperationException("unsupport mode:" + dataMedia.getNameMode().getMode());
            }
        }

        return isMatch;
    }
125020
public boolean isNamespacePresent(final String requestedNamespace) {
    checkArgument(requestedNamespace.length() > 0);
    checkArgument(!requestedNamespace.endsWith(DELIM));
    final String probe = requestedNamespace + DELIM;
    return Iterables.any(params.keySet(), StringUtils.startsWith(probe));
  }
1027903
def p_namespace(p):
    
    global NAMESPACE

    NAMESPACE = normalize_namespace(p[2])
    __DEBUG__('Setting namespace to ' + (NAMESPACE.rstrip(DOT) or DOT), level=1)
644823
public boolean hasNamedPolicy(String ptype, String... params) {
        return hasNamedPolicy(ptype, Arrays.asList(params));
    }
858602
public function hasParameter($paramName, $namespace = null, $scope = null)
    {
        foreach ($this->getAllResolvers() as $resolver) {
            $hasParameter = $resolver->hasParameter($paramName, $namespace, $scope);
            if ($hasParameter) {
                return true;
            }
        }

        return false;
    }
758344
public boolean hasProperty(String name) {
		if (StringUtils.isBlank(name)) {
			return false;
		}
		return getProperties().containsKey(name);
	}
1046240
public function hasParameter($paramName, $namespace = null, $scope = null)
    {
        // $paramName must have a '.' as it separates INI section and actual parameter name.
        // e.g. DebugSettings.DebugOutput
        if (!$this->isValidParameterName($paramName)) {
            return false;
        }

        $namespace = $namespace ?: $this->defaultNamespace;
        $namespace = str_replace('.ini', '', $namespace);
        list($iniGroup, $paramName) = explode('.', $paramName, 2);

        return $this->getLegacyKernel()->runCallback(
            static function () use ($iniGroup, $paramName, $namespace, $scope) {
                if (isset($scope)) {
                    $ini = eZINI::getSiteAccessIni($scope, "$namespace.ini");
                } else {
                    $ini = eZINI::instance("$namespace.ini");
                }

                return $ini->hasVariable($iniGroup, $paramName);
            },
            false,
            false
        );
    }
169154
public boolean hasDeclaredMethodParameterAnnotation(final String methodParameterAnnotationName) {
        for (final MethodInfo mi : getDeclaredMethodInfo()) {
            if (mi.hasParameterAnnotation(methodParameterAnnotationName)) {
                return true;
            }
        }
        return false;
    }
391296
private boolean isInZkWathcedNamespacePaths(String path) {
        if (StringUtil.isEmpty(path)) {
            return false;
        }
        for (String watchNamespacePath : RpcClientConf.ZK_WATCH_NAMESPACE_PATHS) {
            if (StringUtil.isEmpty(watchNamespacePath)) {
                continue;
            }
            if (path.contains(watchNamespacePath)) {
                return true;
            }
        }
        return false;
    }
218915
public boolean isDefaultNamespace(String namespaceURI) {
        int type = getNodeType();
        if (type == NodeKind.ATTR) {
            if (this instanceof AttrImpl == false) {
                // ns decl
                throw new UnsupportedOperationException();
            }
        }
        Node p = getParentNode();
        return p.isDefaultNamespace(namespaceURI);
    }
641616
@Override
    public boolean hasProtocol(final Protocol p) throws IOException {
        if (p == null) {
            return false;
        }

        try {
            final Packet packet = getPacket(p);
            return packet != null;
        } catch (final Exception e) {
            return false;
        }
    }
982924
private void checkNamespaces() {
    for (Name name : nameMap.values()) {
      if (name.isNamespaceObjectLit()
          && (name.getAliasingGets() > 0
              || name.getLocalSets() + name.getGlobalSets() > 1
              || name.getDeleteProps() > 0)) {
        boolean initialized = name.getDeclaration() != null;
        for (Ref ref : name.getRefs()) {
          if (ref == name.getDeclaration()) {
            continue;
          }

          if (ref.type == Ref.Type.DELETE_PROP) {
            if (initialized) {
              warnAboutNamespaceRedefinition(name, ref);
            }
          } else if (
              ref.type == Ref.Type.SET_FROM_GLOBAL
              || ref.type == Ref.Type.SET_FROM_LOCAL) {
            if (initialized && !isSafeNamespaceReinit(ref)) {
              warnAboutNamespaceRedefinition(name, ref);
            }

            initialized = true;
          } else if (ref.type == Ref.Type.ALIASING_GET) {
            warnAboutNamespaceAliasing(name, ref);
          }
        }
      }
    }
  }
698035
private boolean hasNoDefaultValueAndNoValuePassedOnAlternativeName(Option o, Map<String, String> data)
			throws RequiredParametersException {
		if (o.hasAlt() && data.containsKey(o.getAlt())) {
			data.put(o.getName(), data.get(o.getAlt()));
		} else {
			if (o.hasDefaultValue()) {
				data.put(o.getName(), o.getDefaultValue());
				if (o.hasAlt()) {
					data.put(o.getAlt(), o.getDefaultValue());
				}
			} else {
				return true;
			}
		}
		return false;
	}