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

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

public class ParserImpl
extends java.lang.Object
implements Parser

Implementation of parser.

Since:
0.7.0, February 04, 2008
Author:
Alin Dreghiciu

Constructor Summary
ParserImpl(java.lang.String path)
          Creates a new protocol parser.
 
Method Summary
 java.net.URL getFileURL()
          Returns the URL to the file containing the bundles to be installed.
 java.lang.Integer getStartLevel()
          Returns the start level option.
 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

getFileURL

public java.net.URL getFileURL()
Description copied from interface: Parser
Returns the URL to the file containing the bundles to be installed.

Specified by:
getFileURL in interface Parser
Returns:
an URL
See Also:
Parser.getFileURL()

getStartLevel

public java.lang.Integer getStartLevel()
Description copied from interface: Parser
Returns the start level option.

Specified by:
getStartLevel in interface Parser
Returns:
the start level option value.
See Also:
Parser.getStartLevel()

shouldStart

public java.lang.Boolean shouldStart()
Description copied from interface: Parser
Returns the start option.

Specified by:
shouldStart in interface Parser
Returns:
the start option value
See Also:
Parser.shouldStart()

shouldUpdate

public java.lang.Boolean shouldUpdate()
Description copied from interface: Parser
Returns the update option.

Specified by:
shouldUpdate in interface Parser
Returns:
the update option value
See Also:
Parser.shouldUpdate()


Copyright © 2008. All Rights Reserved.