Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.util
Class PathMap<T>

java.lang.Object
  extended by org.nuxeo.ecm.webengine.util.PathMap<T>

public class PathMap<T>
extends Object

A map to store bindings between paths and random objects. Lookup by path prefixes are supported. This map is not synchronized.

Author:
Bogdan Stefanescu

Nested Class Summary
static class PathMap.Entry<T>
           
 
Constructor Summary
PathMap()
           
 
Method Summary
 T get(Path path)
           
 T get(String path)
           
 T get(String[] segments)
           
 Collection<T> getValues()
           
static void main(String[] args)
           
 T match(Path path)
           
 T match(String path)
           
 T match(String[] segments)
           
 void put(Path path, T value)
           
 void put(String[] segments, T value)
           
 void put(String path, T value)
           
 T remove(Path path)
           
 T remove(String path)
           
 T remove(String[] segments)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathMap

public PathMap()
Method Detail

put

public void put(String path,
                T value)

put

public void put(Path path,
                T value)

put

public void put(String[] segments,
                T value)

remove

public T remove(String path)

remove

public T remove(Path path)

remove

public T remove(String[] segments)

get

public T get(String path)

get

public T get(Path path)

get

public T get(String[] segments)

match

public T match(String[] segments)

match

public T match(Path path)

match

public T match(String path)

getValues

public Collection<T> getValues()

main

public static void main(String[] args)

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.