org.ops4j.pax.runner.scanner.dir.internal
Class ParserImpl

java.lang.Object
  extended by org.ops4j.pax.runner.scanner.dir.internal.ParserImpl
All Implemented Interfaces:
Parser

public class ParserImpl
extends java.lang.Object
implements Parser

Implementation of parser.

Since:
September 04, 2007
Author:
Alin Dreghiciu

Constructor Summary
ParserImpl(java.lang.String path)
          Creates a new protocol parser.
 
Method Summary
 java.util.regex.Pattern getFilter()
          Returns the filter that entries should match or null if no filter was specified.
 java.lang.Integer getStartLevel()
          Returns the start level option.
 java.lang.String getURL()
          Returns the URL to the directory containing the bundles to be installed.
 java.lang.Boolean shouldStart()
          Returns the start option.
 java.lang.Boolean shouldUpdate()
          Returns the update option.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserImpl

public ParserImpl(java.lang.String path)
           throws MalformedSpecificationException
Creates a new protocol parser.

Parameters:
path - the path part of the url (without starting scan-file:)
Throws:
MalformedSpecificationException - if provided path does not comply to expected syntax or an malformed file URL
Method Detail

getURL

public java.lang.String getURL()
Returns the URL to the directory containing the bundles to be installed.

Specified by:
getURL in interface Parser
Returns:
an URL

getStartLevel

public java.lang.Integer getStartLevel()
Returns the start level option.

Specified by:
getStartLevel in interface Parser
Returns:
the start level option value.

shouldStart

public java.lang.Boolean shouldStart()
Returns the start option.

Specified by:
shouldStart in interface Parser
Returns:
the start option value

shouldUpdate

public java.lang.Boolean shouldUpdate()
Returns the update option.

Specified by:
shouldUpdate in interface Parser
Returns:
the update option value

getFilter

public java.util.regex.Pattern getFilter()
Returns the filter that entries should match or null if no filter was specified.

Specified by:
getFilter in interface Parser
Returns:
a filer


Copyright © 2008. All Rights Reserved.