deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.portal.standard.security.control
Class RelativePath

java.lang.Object
  extended by org.deegree.portal.standard.security.control.RelativePath

public class RelativePath
extends java.lang.Object

TODO add documentation here

Version:
$Revision: $, $Date: 08-Mar-2007 16:46:12$
Author:
Moataz Elmasry, last edited by: $Author: elmasri$

Nested Class Summary
(package private) static class RelativePath.Delimiter
           
 
Constructor Summary
RelativePath()
           
 
Method Summary
static java.lang.String getFirstMatch(java.lang.String source, java.lang.String[] delimiters)
          get the first match from the many delimiters give as input
static java.lang.String mapRelativePath(java.lang.String source, java.lang.String target, java.lang.String[] delimiters)
          Maps from a source sTring to a target String, based on the delimiters given the delimiters are basically "\\" or "/", but it also could be anything else Two absolute pathes should be given here Don't give relative or non existing pathes
static java.lang.String[] splitString(java.lang.String source, java.lang.String[] delimiters)
          Split a string based on the given delimiters and return an array of strings(tokens)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelativePath

public RelativePath()
Method Detail

getFirstMatch

public static java.lang.String getFirstMatch(java.lang.String source,
                                             java.lang.String[] delimiters)
get the first match from the many delimiters give as input

Parameters:
source -
delimiters -
Returns:
String

splitString

public static java.lang.String[] splitString(java.lang.String source,
                                             java.lang.String[] delimiters)
Split a string based on the given delimiters and return an array of strings(tokens)

Parameters:
source -
delimiters -
Returns:
tokens from a given string

mapRelativePath

public static java.lang.String mapRelativePath(java.lang.String source,
                                               java.lang.String target,
                                               java.lang.String[] delimiters)
                                        throws java.text.ParseException
Maps from a source sTring to a target String, based on the delimiters given the delimiters are basically "\\" or "/", but it also could be anything else Two absolute pathes should be given here Don't give relative or non existing pathes

Parameters:
source -
target -
delimiters -
Returns:
the mapped path
Throws:
java.text.ParseException

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org