org.ow2.weblab.repository.file
Class RepoRI

java.lang.Object
  extended by org.ow2.weblab.repository.file.RepoRI

public class RepoRI
extends java.lang.Object


Field Summary
static java.lang.String WLRI_REGEX
           
static java.lang.String WLRI_SCHEME
           
 
Constructor Summary
RepoRI(java.lang.String uriStr)
          Create a WebLabRI with tests.
 
Method Summary
 void addFragment(java.lang.String fragmentToAdd)
          Complete a WebLabRI fragment with a String
static boolean checkValidity(java.lang.String uri)
           
 java.lang.String getFragment()
           
 java.lang.String getIdReference()
           
 java.lang.String getIdResource()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WLRI_REGEX

public static final java.lang.String WLRI_REGEX
See Also:
Constant Field Values

WLRI_SCHEME

public static final java.lang.String WLRI_SCHEME
See Also:
Constant Field Values
Constructor Detail

RepoRI

public RepoRI(java.lang.String uriStr)
       throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
Create a WebLabRI with tests.

Parameters:
uriStr - a string representation of the WebLabRI
Throws:
org.ow2.weblab.core.extended.exception.WebLabCheckedException
Method Detail

addFragment

public void addFragment(java.lang.String fragmentToAdd)
Complete a WebLabRI fragment with a String

Parameters:
fragmentToAdd - Added to the WebLabRI fragment

getIdReference

public java.lang.String getIdReference()
Returns:
the idReference

getIdResource

public java.lang.String getIdResource()
Returns:
the idReference

getFragment

public java.lang.String getFragment()
Returns:
the fragment

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

checkValidity

public static boolean checkValidity(java.lang.String uri)
Parameters:
uri - Any String to be validated
Returns:
true if and only if the URI is a valid RepoRI


Copyright © 2004-2012. All Rights Reserved.