com.jrockit.mc.flightrecorder.provider
Class Producer

java.lang.Object
  extended by com.jrockit.mc.flightrecorder.provider.Producer
All Implemented Interfaces:
IProducer

public final class Producer
extends java.lang.Object
implements IProducer

Class that represents an event producer.

Author:
Erik Gahlin

Method Summary
 EventType createEventType(int identifier)
           
 java.awt.Color getColor()
          Return the color associated with the producer
 java.lang.String getDescription()
          Returns the description of the producer
 java.util.Collection<IEventType> getEventTypes()
          Returns the event types for the producer.
 int getId()
           
 java.lang.String getName()
          Returns the name of the producer
 java.util.List<java.lang.String> getRelations()
           
 java.lang.String getURIString()
          Returns the URI string.
 void setColor(java.awt.Color color)
           
 void setDescription(java.lang.String description)
           
 void setName(java.lang.String name)
           
 void setRelations(java.util.List<java.lang.String> relations)
           
 void setURI(java.lang.String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setDescription

public void setDescription(java.lang.String description)

getDescription

public java.lang.String getDescription()
Description copied from interface: IProducer
Returns the description of the producer

Specified by:
getDescription in interface IProducer
Returns:
the description

getEventTypes

public java.util.Collection<IEventType> getEventTypes()
Description copied from interface: IProducer
Returns the event types for the producer.

Specified by:
getEventTypes in interface IProducer
Returns:
the event types for the producer

getId

public int getId()

getName

public java.lang.String getName()
Description copied from interface: IProducer
Returns the name of the producer

Specified by:
getName in interface IProducer
Returns:
the name

setName

public void setName(java.lang.String name)

getURIString

public java.lang.String getURIString()
Description copied from interface: IProducer
Returns the URI string.

Specified by:
getURIString in interface IProducer
Returns:
the URI string

setRelations

public void setRelations(java.util.List<java.lang.String> relations)

getRelations

public java.util.List<java.lang.String> getRelations()

getColor

public java.awt.Color getColor()
Description copied from interface: IProducer
Return the color associated with the producer

Specified by:
getColor in interface IProducer
Returns:
the color, or null if not available.

setColor

public void setColor(java.awt.Color color)

createEventType

public EventType createEventType(int identifier)

setURI

public void setURI(java.lang.String uri)


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.