org.apache.hivemind.util
Class IdUtils

java.lang.Object
  extended by org.apache.hivemind.util.IdUtils

public class IdUtils
extends java.lang.Object

A collection of utilities for handling qualified and unqualified ids.

Author:
Howard Lewis Ship

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



Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.