Nuxeo Enterprise Platform 5.4

org.nuxeo.runtime.model
Class ComponentName

java.lang.Object
  extended by org.nuxeo.runtime.model.ComponentName
All Implemented Interfaces:
java.io.Serializable

public class ComponentName
extends java.lang.Object
implements java.io.Serializable

A component name.

Component names are strings of the form type:name The type part is optional - when missing the type is assumed to be "service".

Example of valid component names:

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_TYPE
           
 
Constructor Summary
ComponentName(java.lang.String rawName)
          Constructs a component name from its string representation.
ComponentName(java.lang.String type, java.lang.String name)
          Constructs a component name from its two parts: type and name.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
          Gets the name part of the component name.
 java.lang.String getRawName()
          Gets the qualified component name.
 java.lang.String getType()
          Gets the type part of the component name.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_TYPE

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

ComponentName

public ComponentName(java.lang.String rawName)
Constructs a component name from its string representation.

Parameters:
rawName - the string representation of this name

ComponentName

public ComponentName(java.lang.String type,
                     java.lang.String name)
Constructs a component name from its two parts: type and name.

Parameters:
type - the type part of the component name
name - the name part of the component name
Method Detail

getType

public final java.lang.String getType()
Gets the type part of the component name.

Returns:
the type part

getName

public final java.lang.String getName()
Gets the name part of the component name.

Returns:
the name part

getRawName

public final java.lang.String getRawName()
Gets the qualified component name.

Returns:
the qualified component name

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.