Examples of normalize()


Examples of org.compass.core.CompassTermFreqsBuilder.normalize()

        }

        public Object doInCompass(CompassSession session) throws CompassException {
            CompassTermFreqsBuilder builder = session.termFreqsBuilder(termFreqsArgs.getProperties());
            if (termFreqsArgs.getNormalizeRange() != null) {
                builder.normalize(termFreqsArgs.getNormalizeRange().getFromInt(), termFreqsArgs.getNormalizeRange().getToInt());
            }
            if (termFreqsArgs.getSize() != null) {
                builder.setSize(termFreqsArgs.getSize().intValue());
            }
            if (termFreqsArgs.getSort() != null) {
View Full Code Here

Examples of org.dom4j.Document.normalize()

      for (Entry<PackagePartName, String> entry : overrideContentType
          .entrySet()) {
        appendSpecificTypes(typesElem, entry);
      }
    }
    xmlOutDoc.normalize();

    // Save content in the specified output stream
    return this.saveImpl(xmlOutDoc, outStream);
  }
View Full Code Here

Examples of org.dom4j.Element.normalize()

                }
            } else {
                if (node instanceof Element) {
                    Element element = (Element) node;

                    element.normalize();
                }

                previousText = null;

                i++;
View Full Code Here

Examples of org.earth3d.jearth.math.Point3D.normalize()

    stopAutoNavigation();

    /* rotate the direction vector around the upXdirection vector */
   
    Point3D upxdir = up.DotP3D(direction);
    upxdir = upxdir.normalize();

    float matrix[] = new float[16];
    Quaternion quat = new Quaternion();
    quat.createFromAxisAngle((float) upxdir.x, (float) upxdir.y, (float) upxdir.z, angle);
    quat.createMatrix(matrix);
View Full Code Here

Examples of org.eclipse.emf.ecore.resource.URIConverter.normalize()

            found = false;
            i++;
            //TODO Add file extension name to ProjectElement
            uri = generateResourceName(projectPath, projectElement, i);

            URI normalizedURI = uriConverter.normalize(uri);
            for (Resource resource2 : list) {
                if (uriConverter.normalize(resource2.getURI()).equals(normalizedURI)) {
                    found = true;
                    break;
                }
View Full Code Here

Examples of org.eclipse.emf.ecore.resource.impl.URIConverterImpl.normalize()

      // use an URI Converter to allow possible model extender to rewrite
      // URI
      // TODO replace with ExtensibleURIConverterImpl once EMF dep moves
      // up to 2.4
      URIConverter uriConverter = new URIConverterImpl();
      URI uri = uriConverter.normalize(URI.createURI(name));

      // set Authority to host and port of the service
      final java.net.URI location = anIServiceInfo.getLocation();
      final String authority = location.getAuthority();
      uri = URI.createHierarchicalURI(uri.scheme(), authority,
View Full Code Here

Examples of org.eclipse.persistence.expressions.Expression.normalize()

            return this;
        }
        this.hasBeenNormalized = true;
       
        Expression typeExpression = getTypeClause();
        typeExpression.normalize(normalizer);

        if (this.baseExpression != null) {//should never be null
            // First normalize the base.
            setBaseExpression(this.baseExpression.normalize(normalizer));
            if (getAsOfClause() == null) {
View Full Code Here

Examples of org.eclipse.persistence.internal.expressions.SQLSelectStatement.normalize()

                 DatabaseField field = itUnmappedFields.next();
                 statement.addField(field);
             }
            
             statement.setWhereClause(whereClause);
             statement.normalize(uow.getParent(), m_descriptor);
             m_unmappedFieldsQuery.setSQLStatement(statement);
             m_unmappedFieldsQuery.setSessionName(m_descriptor.getSessionName());
         }
     }
    
View Full Code Here

Examples of org.eclipse.sapphire.services.ValueNormalizationService.normalize()

        final int index = this.combo.getSelectionIndex();
       
        if( index == -1 )
        {
            final ValueNormalizationService valueNormalizationService = this.property.service( ValueNormalizationService.class );
            final String value = valueNormalizationService.normalize( this.combo.getText() );
           
            if( value.length() > 0 )
            {
                return value;
            }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.contentmodel.util.NamespaceInfo.normalize()

    String result = null;
    Hashtable prefixTable = new Hashtable();
    Hashtable uriTable = new Hashtable();
    for (Iterator iterator = namespaceInfoList.iterator(); iterator.hasNext();) {
      NamespaceInfo nsInfo = (NamespaceInfo) iterator.next();
      nsInfo.normalize();

      String urikey = nsInfo.uri != null ? nsInfo.uri : ""; //$NON-NLS-1$
      NamespaceInfo nsInfo2 = null;
      if ((nsInfo2 = (NamespaceInfo) uriTable.get(urikey)) != null) {
        if ((nsInfo.uri != null) && nsInfo.uri.equals(nsInfo2.uri)) {
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.