Examples of normalize()


Examples of mf.javax.xml.datatype.XMLGregorianCalendar.normalize()

                Q.getTimezone() != DatatypeConstants.FIELD_UNDEFINED) {

            // Both instances have different timezones.
            // Normalize to UTC time and compare.
            P = (XMLGregorianCalendarImpl) P.normalize();
            Q = (XMLGregorianCalendarImpl) Q.normalize();
            return internalCompare(P, Q);
        }
        else if (P.getTimezone() != DatatypeConstants.FIELD_UNDEFINED) {

            if (P.getTimezone() != 0) {
View Full Code Here

Examples of mf.org.w3c.dom.Attr.normalize()

                } else {
                    if ( attributes!=null ) {
                        for ( int i=0; i<attributes.getLength(); ++i ) {
                            Attr attr = (Attr)attributes.item(i);
                            //removeDefault(attr, attributes);
                            attr.normalize();
                            if (fDocument.errorChecking && ((fConfiguration.features & DOMConfigurationImpl.WELLFORMED) != 0)){
                                    isAttrValueWF(fErrorHandler, fError, fLocator, attributes, attr, attr.getValue(), fDocument.isXML11Version());
                                if (fDocument.isXMLVersionChanged()) {
                                    if (fNamespaceValidation){
                                        wellformed = CoreDocumentImpl.isValidQName(node.getPrefix(), node.getLocalName(), fDocument.isXML11Version());
View Full Code Here

Examples of mf.org.w3c.dom.Node.normalize()

        if ( attributes!=null )
        {
            for( int i=0; i<attributes.getLength(); ++i )
            {
                Node attr = attributes.item(i);
                attr.normalize();
            }
        }

      // changed() will have occurred when the removeChild() was done,
      // so does not have to be reissued.
View Full Code Here

Examples of moa.core.DoubleVector.normalize()

          for(ClassifierInstance c : ensemble){
            double memberWeight = getEnsembleMemberWeight(c);
            if (memberWeight > 0.0) {
                  DoubleVector vote = new DoubleVector(c.getClassifier().getVotesForInstance(inst));
                  if (vote.sumOfValues() > 0.0) {
                      vote.normalize();
                      vote.scaleValues(memberWeight);
                      combinedVote.addValues(vote);
                  }
              } else {
                  break;
View Full Code Here

Examples of mods.railcraft.common.util.misc.Vec2D.normalize()

//        System.out.println(cart.getClass().getSimpleName() + ": " + cart.entityId + " collided with " + other.getClass().getSimpleName() + ": " + other.entityId);
        Vec2D cartPos = new Vec2D(cart.posX, cart.posZ);
        Vec2D otherPos = new Vec2D(other.posX, other.posZ);

        Vec2D unit = Vec2D.subtract(otherPos, cartPos);
        unit.normalize();

        double distance = cart.getDistanceToEntity(other);
        double depth = distance - OPTIMAL_DISTANCE;

        double forceX = 0;
View Full Code Here

Examples of net.lenkaspace.creeper.vo.CRVector3d.normalize()

   * @return CRVector3d vector where X component represents angle towards the object and y component distance
   */
  public CRVector3d getRelativeVectorTo(CRVector3d vector_, CRVector3d pivot_) {
    CRVector3d tempVector = CRVector3d.subtractVectors(pivot_, vector_);
    CRVector3d u = this.getVectorInLocalCoordinateSystem(tempVector);
    u.normalize();
   
    //distance from radial border of self to radial border of another object
    double distance = Math.hypot(position.x- vector_.x, position.y- vector_.y);
   
    //add direction:
View Full Code Here

Examples of net.minecraft.util.Vec3.normalize()

        flag = true;
      }

      if(flag)
      {
        vec = vec.normalize().addVector(0.0D, -6.0D, 0.0D);
      }
    }
    vec = vec.normalize();
    return vec;
  }
View Full Code Here

Examples of net.nutch.net.RegexUrlNormalizer.normalize()

  private void normalizeTest(String weird, String normal) throws Exception {
    String testSrcDir = System.getProperty("test.src.dir");
    String path = testSrcDir + "/net/nutch/net/test-regex-normalize.xml";
    RegexUrlNormalizer normalizer = new RegexUrlNormalizer(path);
    assertEquals(normal, normalizer.normalize(weird));
  }
 
  public static void main(String[] args) throws Exception {
    new TestRegexUrlNormalizer("test").testNormalizer();
    new TestBasicUrlNormalizer("test").testNormalizer(); // need to make sure it passes this test too
View Full Code Here

Examples of net.sf.hajdbc.IdentifierNormalizer.normalize()

  @Override
  public ForeignKeyConstraint createForeignKeyConstraint(String name, final QualifiedName table, final QualifiedName foreignTable, final int deleteRule, final int updateRule, final int deferrability)
  {
    IdentifierNormalizer normalizer = this.factory.getIdentifierNormalizer();
    return new StandardForeignKeyConstraint(normalizer.normalize(name), table, new IdentifierList(normalizer), foreignTable, new IdentifierList(normalizer), deleteRule, updateRule, deferrability);
  }

  private static class StandardForeignKeyConstraint extends AbstractConstraint<ForeignKeyConstraint> implements ForeignKeyConstraint
  {
    private final QualifiedName foreignTable;
View Full Code Here

Examples of net.sf.saxon.codenorm.Normalizer.normalize()

            return sv;
        }


        Normalizer norm = new Normalizer(fb);
        CharSequence result = norm.normalize(sv.getStringValueCS());
        return StringValue.makeStringValue(result);
    }

}
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.