/*
(non-Javadoc)
@see org.springframework.data.solr.core.mapping.SolrPersistentProperty#isChildProperty()
428657
@Override
	public boolean isChildProperty() {

		Field fieldAnnotation = getFieldAnnotation();

		if (fieldAnnotation != null && fieldAnnotation.child()) {
			return true;
		}

		return findAnnotation(ChildDocument.class) != null;
	}
1238944
public boolean hasChild(Account account) {
        for (Account child : children) {
            if (child.equals(account))
                return true;
        }
        return false;
    }
241317
public boolean hasChild(String child)
    {
        final NodeList list = root.getChildNodes();
        for (int i = 0; i < list.getLength(); i++)
        {
            final Node node = list.item(i);
            if (node.getNodeName().equals(child))
            {
                return true;
            }
        }
        return false;
    }
156055
boolean hasChild()
  {
    boolean has = false;
    if ( (leftChild() != null) || (rightChild() != null) )
      has = true;
    return has;
  }
529820
public function isChildOf($node) {
        $result = $this->owner->getAttribute($this->leftAttribute) > $node->getAttribute($this->leftAttribute) && $this->owner->getAttribute($this->rightAttribute) < $node->getAttribute($this->rightAttribute);

        if ($result && $this->treeAttribute !== false) {
            $result = $this->owner->getAttribute($this->treeAttribute) === $node->getAttribute($this->treeAttribute);
        }

        return $result;
    }
58232
public BooleanProperty isEmptyProperty() {
		if (this.isEmpty == null) {
			this.isEmpty = new SimpleBooleanProperty(this, MathFXAttributeNames.IS_EMPTY);
			this.isEmpty.bind(Bindings.createBooleanBinding(() -> {
				final PathIterator3afp<PathElement3dfx> pi = getPathIterator();
				PathElement3dfx pe;
				while (pi.hasNext()) {
					pe = pi.next();
					if (pe.isDrawable()) {
						return false;
					}
				}
				return true;
			},
					innerTypesProperty(), innerCoordinatesProperty()));
		}
		return this.isEmpty;
	}
568248
@Override
	public boolean isScoreProperty() {

		if (findAnnotation(Score.class) != null) {
			return true;
		}

		return findAnnotation(org.springframework.data.solr.repository.Score.class) != null;
	}
254221
protected PropertyData removeChildProperty(final String parentIdentifier, final String childIdentifier)
   {
      final List<PropertyData> childProperties = propertiesCache.get(parentIdentifier);
      if (childProperties != null)
      {
         synchronized (childProperties)
         { // [PN] 17.01.07
            for (Iterator<PropertyData> i = childProperties.iterator(); i.hasNext();)
            {
               PropertyData cn = i.next();
               if (cn.getIdentifier().equals(childIdentifier))
               {
                  i.remove();
                  if (childProperties.size() <= 0)
                  {
                     propertiesCache.remove(parentIdentifier);
                  }
                  return cn;
               }
            }
         }
      }
      return null;
   }
1012282
public boolean isSameAs( AstNode other ) {
        if (other == null) {
            return false;
        }
        if (!this.name.equals(other.name)) {
            return false;
        }
        if (!this.properties.equals(other.properties)) {
            return false;
        }
        if (this.getChildCount() != other.getChildCount()) {
            return false;
        }
        Iterator<AstNode> thisChildren = this.getChildren().iterator();
        Iterator<AstNode> thatChildren = other.getChildren().iterator();
        while (thisChildren.hasNext() && thatChildren.hasNext()) {
            if (!thisChildren.next().isSameAs(thatChildren.next())) {
                return false;
            }
        }
        return true;
    }
142289
int getIndexOfChild(final WComponent childComponent) {
		ComponentModel model = getComponentModel();
		List<WComponent> children = model.getChildren();

		return children == null ? -1 : children.indexOf(childComponent);
	}
905241
function isPropertyOrKey(path) {
  return path.parentPath.get('key') === path || path.parentPath.get('property') === path;
}
1060774
@Override
    public Set<Span> getChildren(String tenant, String id) {
        if (id == null) {
            throw new NullPointerException("Id should not be null!");
        }

        Set<Span> children = childrenCache.get(id);

        return children == null ? null : Collections.unmodifiableSet(children);
    }
937411
public static boolean hasProperty(ClassNode classNode, String propertyName) {
        if(classNode == null || propertyName == null || "".equals(propertyName.trim()))
            return false;

        List properties = classNode.getProperties();
        for (Iterator i = properties.iterator(); i.hasNext();) {
            PropertyNode pn = (PropertyNode) i.next();
            if(pn.getName().equals(propertyName))
                return true;
        }
        return false;
    }
531595
public boolean setMiddleChild(N newChild) {
		final N oldChild = this.middle;
		if (oldChild == newChild) {
			return false;
		}

		if (oldChild != null) {
			oldChild.setParentNodeReference(null, true);
			--this.notNullChildCount;
			firePropertyChildRemoved(1, oldChild);
		}

		if (newChild != null) {
			final N oldParent = newChild.getParentNode();
			if (oldParent != this) {
				newChild.removeFromParent();
			}
		}

		this.middle = newChild;

		if (newChild != null) {
			newChild.setParentNodeReference(toN(), true);
			++this.notNullChildCount;
			firePropertyChildAdded(1, newChild);
		}

		return true;
	}
696366
private boolean isChildAllowed(final InternalQName childName, final InternalQName childNodeType,
      final NodeDefinitionData cnd, InternalQName reqName, final InternalQName reqNodeType)
   {
      return childNodeType.equals(reqNodeType) && (cnd.isResidualSet() || reqName.equals(childName));
   }
281487
protected List<PropertyData> getCachedCleanChildPropertiesData(NodeData nodeData)
   {
      if (cache.isEnabled())
      {
         List<PropertyData> childProperties = cache.getChildProperties(nodeData);
         if (childProperties != null)
         {
            boolean skip =  false;
            for (PropertyData prop : childProperties)
            {
               if (prop != null && !(prop instanceof NullPropertyData) && forceLoad(prop))
               {
                  cache.remove(prop.getIdentifier(), prop);
                  skip = true;
               }
            }
            if (!skip)
            {
               return childProperties;
            }
         }
      }
      return null;
   }
17021
public boolean isParentOf(ConfigurationPropertyName name) {
		Assert.notNull(name, "Name must not be null");
		if (this.getNumberOfElements() != name.getNumberOfElements() - 1) {
			return false;
		}
		return isAncestorOf(name);
	}