Class ComponentName

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

public class ComponentName extends Object implements 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:

  • repository:my.repo
  • service:my.service
  • my.component
Author:
Bogdan Stefanescu
See Also:
  • Field Details

  • Constructor Details

    • ComponentName

      public ComponentName(String rawName)
      Constructs a component name from its string representation.
      Parameters:
      rawName - the string representation of this name
    • ComponentName

      public ComponentName(String type, 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 Details

    • getType

      public final String getType()
      Gets the type part of the component name.
      Returns:
      the type part
    • getName

      public final String getName()
      Gets the name part of the component name.
      Returns:
      the name part
    • getRawName

      public final String getRawName()
      Gets the qualified component name.
      Returns:
      the qualified component name
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object