Examples of StringSplitter


Examples of com.google.eclipse.protobuf.ui.preferences.StringSplitter

  @Override protected String enableProjectSettingsPreferenceName() {
    return null;
  }

  @Override protected void setupBinding(PreferenceBinder binder, PreferenceFactory factory) {
    StringSplitter splitter = NumericTagPatternSplitter.instance();
    binder.add(bindItemsOf(lstPatterns).to(factory.newStringListPreference(NUMERIC_TAG_PATTERNS, splitter)));
  }
View Full Code Here

Examples of com.xmultra.util.StringSplitter

        fileUtils = (FileUtils)initMapHolder.getEntry(InitMapHolder.FILE_UTILS);

        xmlParseUtils = (XmlParseUtils)initMapHolder.getEntry(InitMapHolder.XML_PARSE_UTILS);

        stringSplitter = new StringSplitter(strings);

        // Get the directory where the file to process is found.
        srcLocation =
            getLocationDirectory(XmultraConfig.SRC_LOCATION_ELEMENT);
        if (srcLocation == null) return false;
View Full Code Here

Examples of org.apache.tapestry.util.StringSplitter

    if (slashx < 0)
      return null;
     
    String serviceContext = service.substring(slashx + 1);

        return new StringSplitter('/').splitToArray(serviceContext);
    }
View Full Code Here

Examples of org.apache.tapestry.util.StringSplitter

    protected void externalize(String resourcePath) throws IOException
    {
        String[] path;
        int i;
        File file;
        StringSplitter splitter;
        InputStream in;
        OutputStream out;
        int bytesRead;
        URL inputURL;
        byte[] buffer;

        if (LOG.isDebugEnabled())
            LOG.debug("Externalizing " + resourcePath);

        file = _assetDir;

        // Resources are always split by the unix seperator, even on Win32.

        splitter = new StringSplitter('/');

        path = splitter.splitToArray(resourcePath);

        // The path is expected to start with a leading slash, but the StringSplitter
        // will ignore that leading slash.

        for (i = 0; i < path.length - 1; i++)
View Full Code Here

Examples of org.apache.tapestry.util.StringSplitter

        // Split the expression into individual property names.
        // We then optimize what we can from the expression.  This will
        // shorten the expression and, in some cases, eliminate
        // it.  We also check to see if the binding can be an invariant.

        String[] split = new StringSplitter('.').splitToArray(_expression);

        int count = optimizeRootObject(split);

        // We'ver removed some or all of the initial elements of split
        // but have to account for anthing left over.
View Full Code Here

Examples of org.apache.tapestry.util.StringSplitter

            result = (Locale) _localeMap.get(s);
        }

        if (result == null)
        {
            StringSplitter splitter = new StringSplitter('_');
            String[] terms = splitter.splitToArray(s);

            switch (terms.length)
            {
                case 1 :
View Full Code Here

Examples of org.apache.tapestry.util.StringSplitter

    private void restorePageChanges()
    {
        int count = 0;
        Enumeration e = _session.getAttributeNames();
        StringSplitter splitter = null;

        while (e.hasMoreElements())
        {
            String key = (String) e.nextElement();

            if (!key.startsWith(_attributePrefix))
                continue;

            if (LOG.isDebugEnabled())
                LOG.debug("Restoring page change from session attribute " + key);

            if (_changes == null)
            {
                _changes = new HashMap();

                splitter = new StringSplitter('/');
            }

            String[] names = splitter.splitToArray(key);

            // The first name is the servlet name, which allows
            // multiple Tapestry apps to share a HttpSession, even
            // when they use the same page names. The second name
            // is the page name, which we already know.
View Full Code Here

Examples of org.apache.tapestry.util.StringSplitter

  /**
   * @param protocols comma separated list of allowed protocols
   */
  public void setAllowedProtocols(String protocols) {
    StringSplitter spliter = new StringSplitter(',');
    //String[] aProtocols = protocols.split(","); //$NON-NLS-1$
    String[] aProtocols = spliter.splitToArray(protocols); //$NON-NLS-1$
    _allowedProtocols = new Vector();
    for (int i = 0; i < aProtocols.length; i++) {
      _allowedProtocols.add(aProtocols[i]);
    }
  }
View Full Code Here

Examples of org.apache.tapestry.util.StringSplitter

    protected void reconstructAllocatedIds(String storedIdList)
    {
        if (Tapestry.isBlank(storedIdList))
            return;

        StringSplitter splitter = new StringSplitter(',');

        String[] ids = splitter.splitToArray(storedIdList);

        for (int i = 0; i < ids.length; i++)
            _allocatedIds.add(ids[i]);
    }
View Full Code Here

Examples of org.apache.tapestry.util.StringSplitter

        _locale = value;
    }

    public IComponent getNestedComponent(String path)
    {
        StringSplitter splitter;
        IComponent current;
        String[] elements;
        int i;

        if (path == null)
            return this;

        splitter = new StringSplitter('.');
        current = this;

        elements = splitter.splitToArray(path);
        for (i = 0; i < elements.length; i++)
        {
            current = current.getComponent(elements[i]);
        }
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.