org.sblim.cimclient.internal.uri
Class URI

java.lang.Object
  extended by org.sblim.cimclient.internal.uri.URI

public class URI
extends Object

    untypedNamespacePath        =       namespacePath
   
    untypedClassPath            =       namespacePath ":" className
    
    untypedInstancePath =       namespacePath ":" className "." key_value_pairs
    
    typedNamespacePath  =       namespacePath "/(namespace)"
   
    typedClassPath              =       namespacePath "/(class)" className
   
    typedInstancePath   =       namespacePath "/(instance)" className "." typed_key_value_pairs
 


Method Summary
 String getClassName()
          getClassName
 String getHost()
          getHost Userinfo is attached if exists.
 KeyValuePairs getKeyValuePairs()
          getKeyValuePairs
 String getNamespaceName()
          getNamespaceName
 String getNamespaceType()
          getNamespaceType
 String getPort()
          getPort
 String getUserInfo()
          getUserInfo
static URI parse(String pUri)
          parse
static URI parseRef(URIString pUriStr, boolean pTyped)
           referenceValue = [ namespaceName ":" ] className "." untyped_key_value_pairs typed_reference_value = "(reference)" "\"" typedReferenceValue "\"" // according to Alexander we have to support instance references only typedReferenceValue = [ namespaceName ] "/(instance)" className "." typed_key_value_pairs
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

parse

public static URI parse(String pUri)
                 throws IllegalArgumentException
parse

Parameters:
pUri -
Returns:
URI
Throws:
IllegalArgumentException - if parsing failed.

parseRef

public static URI parseRef(URIString pUriStr,
                           boolean pTyped)
                    throws IllegalArgumentException
  referenceValue                        =       [ namespaceName ":" ] className "." 
                                                                untyped_key_value_pairs
 
  typed_reference_value         =       "(reference)" "\"" typedReferenceValue "\""
  
  // according to Alexander we have to support instance references only
  typedReferenceValue   =       [ namespaceName ] "/(instance)" className "."
                                                        typed_key_value_pairs
 

Parameters:
pUriStr -
pTyped -
Returns:
URI
Throws:
IllegalArgumentException - if parsing failed

getNamespaceType

public String getNamespaceType()
getNamespaceType

Returns:
String or null if not set

getNamespaceName

public String getNamespaceName()
getNamespaceName

Returns:
String or null if not set

getUserInfo

public String getUserInfo()
getUserInfo

Returns:
String or null if not set

getHost

public String getHost()
getHost Userinfo is attached if exists.

Returns:
String or null if not set

getPort

public String getPort()
getPort

Returns:
String or null if not set

getClassName

public String getClassName()
getClassName

Returns:
String or null if not set

getKeyValuePairs

public KeyValuePairs getKeyValuePairs()
getKeyValuePairs

Returns:
KeyValuePairs or null if not set

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.