org.apache.activemq.apollo.util.path
Class PathParser

java.lang.Object
  extended by org.apache.activemq.apollo.util.path.PathParser

public class PathParser
extends java.lang.Object

Holds the delimiters used to parse paths.

Author:
Hiram Chirino

Nested Class Summary
static class PathParser.PathException
           
 
Field Summary
 org.fusesource.hawtbuf.AsciiBuffer any_child_wildcard
           
 org.fusesource.hawtbuf.AsciiBuffer any_descendant_wildcard
           
static PathParser DEFAULT
           
 java.util.regex.Pattern part_pattern
           
 org.fusesource.hawtbuf.AsciiBuffer path_seperator
           
 
Constructor Summary
PathParser()
           
 
Method Summary
static boolean containsWildCards(Path path)
           
 PathFilter parseFilter(org.fusesource.hawtbuf.AsciiBuffer path)
           
 Path parsePath(org.fusesource.hawtbuf.AsciiBuffer subject)
           
 java.lang.String toString(Path path)
          Converts the path back to the string representation.
 void write(Path path, org.fusesource.hawtbuf.ByteArrayOutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final PathParser DEFAULT

any_descendant_wildcard

public org.fusesource.hawtbuf.AsciiBuffer any_descendant_wildcard

any_child_wildcard

public org.fusesource.hawtbuf.AsciiBuffer any_child_wildcard

path_seperator

public org.fusesource.hawtbuf.AsciiBuffer path_seperator

part_pattern

public java.util.regex.Pattern part_pattern
Constructor Detail

PathParser

public PathParser()
Method Detail

parsePath

public Path parsePath(org.fusesource.hawtbuf.AsciiBuffer subject)

toString

public java.lang.String toString(Path path)
Converts the path back to the string representation.

Returns:

write

public void write(Path path,
                  org.fusesource.hawtbuf.ByteArrayOutputStream os)
           throws java.io.IOException
Throws:
java.io.IOException

parseFilter

public PathFilter parseFilter(org.fusesource.hawtbuf.AsciiBuffer path)

containsWildCards

public static boolean containsWildCards(Path path)


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.