Checks the validity of the given family ID
@param familyID the given family ID
359340
static void checkFamilyID(final int familyID) {
    final Family family = Family.idToFamily(familyID);
    if (!family.equals(Family.QUANTILES)) {
      throw new SketchesArgumentException(
          "Possible corruption: Invalid Family: " + family.toString());
    }
  }
446724
function isValidID(id) {
  return id === '' || (
    id.charAt(0) === SEPARATOR && id.charAt(id.length - 1) !== SEPARATOR
  );
}
583741
protected void setId(String id) {
		if (!StringUtils.hasText(id)) {
			id = null;
		}
		this.id = id;
	}
1241966
public Family createFamily(final String idString) {
        if (idString == null) {
            return new Family();
        }
        final Family family = new Family(getRoot(), new ObjectId(idString));
        getRoot().insert(family);
        return family;
    }
637758
public static void checkId(CmsUUID id, boolean canBeNull) {

        if (canBeNull && (id == null)) {
            return;
        }
        if ((!canBeNull && (id == null)) || id.isNullUUID()) {
            throw new IllegalArgumentException(Messages.get().key(Messages.ERR_INVALID_UUID_1, id));
        }
    }
258653
public Husband addHusbandToFamily(final Family family,
            final Person person) {
        if (family == null || person == null) {
            return new Husband();
        }
        final FamS famS = new FamS(person, "FAMS",
                new ObjectId(family.getString()));
        final Husband husband = new Husband(family, "Husband",
                new ObjectId(person.getString()));
        family.insert(husband);
        person.insert(famS);
        return husband;
    }
1013546
protected void checkValid() throws SISessionUnavailableException {

        if (!_parentConnection.isValid()) {

            final SISessionUnavailableException exception = new SISessionUnavailableException(
                    NLS.getString("INVALID_SESSION_CWSIV0200"));
            if (TRACE.isEventEnabled()) {
                SibTr.exception(this, TRACE, exception);
            }
            throw exception;

        }

    }
732908
private function addFamilyAndDescendantsToCart(Family $family): void
    {
        $this->addRecordToCart($family);

        foreach ($family->spouses() as $spouse) {
            $this->addRecordToCart($spouse);
        }
        foreach ($family->children() as $child) {
            $this->addRecordToCart($child);
            foreach ($child->spouseFamilies() as $child_family) {
                $this->addFamilyAndDescendantsToCart($child_family);
            }
        }
    }
908716
public void setId(String id)
	{
		if (id == null || id.length() == 0)
			throw new IllegalArgumentException(
			"id required in setId");

		this.setId(Integer.valueOf(id));
	}
507218
@Override
	protected void checkPrimitiveValidity() {
		BusPrimitiveInvalidity invalidityReason = null;
		if (this.busStops.isEmpty()) {
			invalidityReason = new BusPrimitiveInvalidity(
					BusPrimitiveInvalidityType.NO_STOP_IN_HUB,
					null);
		} else {
			final Iterator<BusStop> iterator = this.busStops.iterator();
			while (iterator.hasNext() && invalidityReason == null) {
				final BusStop stop = iterator.next();
				if (!stop.isValidPrimitive()) {
					invalidityReason = new BusPrimitiveInvalidity(
							BusPrimitiveInvalidityType.INVALID_LINKED_STOP,
							stop.getName());
				} else {
					final BusNetwork bn = stop.getBusNetwork();
					if (bn == null || bn != getBusNetwork()) {
						invalidityReason = new BusPrimitiveInvalidity(
								BusPrimitiveInvalidityType.NOT_IN_SAME_NETWORK,
								null);
					}
				}
			}
		}
		setPrimitiveValidity(invalidityReason);
	}
585854
protected boolean checkChannelId(final int id, final String svcType)
	{
		if (id == channelId)
			return true;
		logger.warn("received service " + svcType + " with wrong channel ID " + id + ", expected " + channelId
				+ " - ignored");
		return false;
	}
405068
public void removeAllEntities(Family family) {
		boolean delayed = updating || familyManager.notifying();
		entityManager.removeAllEntities(getEntitiesFor(family), delayed);
	}
755045
def _is_valid_id(self, inpt):
        """"""
        from dlkit.abstract_osid.id.primitives import Id as abc_id
        if isinstance(inpt, abc_id):
            return True
        else:
            return False
506886
public static void checkId(CmsUUID id, boolean canBeNull) {

        if (canBeNull && (id == null)) {
            return;
        }
        if ((!canBeNull && (id == null)) || id.isNullUUID()) {
            throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_INVALID_UUID_1, id));
        }
    }
564944
public static boolean isValid(Artifact artifact) {
        return artifact.getGroupId() != null && !FAKE.equals(artifact.getGroupId());
    }
77043
private static boolean idsAreEqual(String id, UIComponent cmp)
    {
        if (id.equals(cmp.getId()))
        {
            return true;
        }

        return false;
    }
356476
def lookup_family(family):
    
    for ops in nl_list_for_each_entry(genl_ops(), genl_ops_list, 'o_list'):
        if ops.o_id == family:
            return ops
    return None