com.sun.jini.lookup.entry
Class BasicServiceType

java.lang.Object
  |
  +--net.jini.entry.AbstractEntry
        |
        +--net.jini.lookup.entry.ServiceType
              |
              +--com.sun.jini.lookup.entry.BasicServiceType

public class BasicServiceType
extends ServiceType

An implementation of ServiceType that uses ResourceBundles. If the value of the public field type contains at least one dot ('.'), then the value of the field is used as the name of the ResourceBundle. Otherwise, the name of the ResourceBundle is obtained by prefixing "net.jini.lookup.entry.servicetype." to the value of the public field. The default locale is used.

See Also:
Serialized Form

Field Summary
 java.lang.String type
          The type of service.
 
Constructor Summary
BasicServiceType()
          Simple constructor, leaves type field set to null.
BasicServiceType(java.lang.String type)
          Simple constructor, sets type field to parameter value.
 
Method Summary
 java.lang.String getDisplayName()
          Returns the resource named "name", else the type field stripped of any package prefix (i.e., any characters up to and including the last dot ('.').
 java.awt.Image getIcon(int iconKind)
          Returns the resource named "icon.int", else null.
 java.lang.String getShortDescription()
          Returns the resource named "desc", else null.
 
Methods inherited from class net.jini.entry.AbstractEntry
equals, equals, hashCode, hashCode, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public java.lang.String type
The type of service.
Constructor Detail

BasicServiceType

public BasicServiceType()
Simple constructor, leaves type field set to null.

BasicServiceType

public BasicServiceType(java.lang.String type)
Simple constructor, sets type field to parameter value.
Parameters:
type - type of service
Method Detail

getIcon

public java.awt.Image getIcon(int iconKind)
Returns the resource named "icon.int", else null.
Overrides:
getIcon in class ServiceType

getDisplayName

public java.lang.String getDisplayName()
Returns the resource named "name", else the type field stripped of any package prefix (i.e., any characters up to and including the last dot ('.').
Overrides:
getDisplayName in class ServiceType

getShortDescription

public java.lang.String getShortDescription()
Returns the resource named "desc", else null.
Overrides:
getShortDescription in class ServiceType


Copyright © 1999 Sun Microsystems, Inc. All rights reserved