Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.hivemind.util
Class IdUtils  view IdUtils download IdUtils.java

java.lang.Object
  extended byorg.apache.hivemind.util.IdUtils

public class IdUtils
extends java.lang.Object

A collection of utilities for handling qualified and unqualified ids.


Constructor Summary
IdUtils()
           
 
Method Summary
static java.lang.String extractModule(java.lang.String id)
          Extracts the module name from a fully qualified id Returns null if id contains no module
static java.lang.String qualify(java.lang.String moduleId, java.lang.String id)
          Returns a fully qualfied id.
static java.lang.String qualifyList(java.lang.String sourceModuleId, java.lang.String list)
          Qualifies a list of interceptor service ids provided for an interceptor contribution.
static java.lang.String stripModule(java.lang.String id)
          Removes the module name from a fully qualified id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdUtils

public IdUtils()
Method Detail

qualify

public static java.lang.String qualify(java.lang.String moduleId,
                                       java.lang.String id)
Returns a fully qualfied id. If the id contains a '.', then it is returned unchanged. Otherwise, the module's id is prefixed (with a seperator '.') and returned;


qualifyList

public static java.lang.String qualifyList(java.lang.String sourceModuleId,
                                           java.lang.String list)
Qualifies a list of interceptor service ids provided for an interceptor contribution. The special value "*" is not qualified.


stripModule

public static java.lang.String stripModule(java.lang.String id)
Removes the module name from a fully qualified id


extractModule

public static java.lang.String extractModule(java.lang.String id)
Extracts the module name from a fully qualified id Returns null if id contains no module