Examples of validate()


Examples of l2p.gameserver.model.L2Territory.validate()

                          territory.add(new Location(location.getAttributes().getNamedItem("loc").getNodeValue()));
                        }
                      }
                      if(spawnType == 2) //точечный спавн не проверять
                      {
                        territory.validate();
                      }
                      TerritoryTable.getInstance().getLocations().put(locId, territory);
                      L2World.addTerritory(territory);
                      for(String mob : mobs)
                      {
View Full Code Here

Examples of lineage2.commons.geometry.Polygon.validate()

                Polygon poly = new Polygon();
                for (Location loc : coords)
                {
                  poly.add(loc.x, loc.y).setZmin(loc.z).setZmax(loc.z);
                }
                if (!poly.validate())
                {
                  error("invalid spawn territory for instance id : " + instanceId + " - " + poly + "!");
                }
                territory = new Territory().add(poly);
              }
View Full Code Here

Examples of lineage2.commons.geometry.Rectangle.validate()

            territory.add(shape);
          }
          else if ("polygon".equalsIgnoreCase(n.getName()))
          {
            Polygon shape = ZoneParser.parsePolygon(n);
            if (!shape.validate())
            {
              error("RestartPointParser: invalid territory data : " + shape + "!");
            }
            if (territory == null)
            {
View Full Code Here

Examples of lineage2.commons.geometry.Shape.validate()

            }
          }
          else if ((isShape = "polygon".equalsIgnoreCase(n.getName())) || "banned_polygon".equalsIgnoreCase(n.getName()))
          {
            Polygon shape = parsePolygon(n);
            if (!shape.validate())
            {
              error("ZoneParser: invalid territory data : " + shape + ", zone: " + zoneDat.getString("name") + "!");
            }
            if (territory == null)
            {
View Full Code Here

Examples of lineage2.gameserver.model.reward.RewardList.validate()

              list.add(g);
            }
          }
          if ((type == RewardType.RATED_GROUPED) || (type == RewardType.NOT_RATED_GROUPED))
          {
            if (!list.validate())
            {
              warn("Problems with rewardlist for npc: " + npcId + "; type: " + type);
            }
          }
          template.putRewardList(type, list);
View Full Code Here

Examples of liquibase.Liquibase.validate()

    @Override
    public void validate(Connection connection) {
        try {
            Liquibase liquibase = getLiquibase(connection);

            liquibase.validate();
        } catch (Exception e) {
            throw new RuntimeException("Failed to validate database", e);
        }
    }
View Full Code Here

Examples of liquibase.change.Change.validate()

                    serializedValue = formatParameter(paramValue);
                    state.addComment("Change Parameter: " + param.getParameterName() + "=" + serializedValue);
                    param.setValue(change, paramValue);
                }

                ValidationErrors errors = change.validate(database);
                assertFalse("Validation errors for " + changeMetaData.getName() + " on " + database.getShortName() + ": " + errors.toString(), errors.hasErrors());

                SqlStatement[] sqlStatements = change.generateStatements(database);
                for (SqlStatement statement : sqlStatements) {
                    Sql[] sql = SqlGeneratorFactory.getInstance().generateSql(statement, database);
View Full Code Here

Examples of liquibase.changelog.DatabaseChangeLog.validate()

      DatabaseChangeLog changeLog = ChangeLogParserFactory.getInstance()
          .getParser(this.changeLogFile, getFileOpener())
          .parse(this.changeLogFile, getChangeLogParameters(), getFileOpener());
      checkDatabaseChangeLogTable(true, changeLog, contexts);

      changeLog.validate(database, contexts);
      ChangeLogIterator changeLogIterator = getStandardChangelogIterator(contexts, changeLog);

      changeLogIterator.run(new UpdateVisitor(database), database);
    } finally {
      try {
View Full Code Here

Examples of liquibase.changelog.visitor.ValidatingVisitor.validate()

    public void validate(Database database, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException {

        ChangeLogIterator logIterator = new ChangeLogIterator(this, new DbmsChangeSetFilter(database), new ContextChangeSetFilter(contexts), new LabelChangeSetFilter(labelExpression));

        ValidatingVisitor validatingVisitor = new ValidatingVisitor(database.getRanChangeSetList());
        validatingVisitor.validate(database, this);
        logIterator.run(validatingVisitor, new RuntimeEnvironment(database, contexts, labelExpression));

        for (String message : validatingVisitor.getWarnings().getMessages()) {
            LogFactory.getLogger().warning(message);
        }
View Full Code Here

Examples of mf.org.apache.xerces.impl.dtd.models.ContentModelValidator.validate()

        else if (contentType == XMLElementDecl.TYPE_MIXED || 
                 contentType == XMLElementDecl.TYPE_CHILDREN) {
            // Get the content model for this element, faulting it in if needed
            ContentModelValidator cmElem = null;
            cmElem = fTempElementDecl.contentModelValidator;
            int result = cmElem.validate(children, childOffset, childCount);
            return result;
        }
        else if (contentType == -1) {
            //REVISIT
            /****
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.