com.ptc.windchill.structconf.properties
Class ServiceOrResourceEntry

java.lang.Object
  extended bycom.ptc.windchill.structconf.properties.ServiceOrResourceEntry
Direct Known Subclasses:
ResourceEntry, ServiceEntry

public abstract class ServiceOrResourceEntry
extends Object

Abstract base sharing common components of service and resource entries in .properties "service" files.

Concrete implementors are package protected because clients shouldn't need to use their API's.


Field Summary
private  ServiceOrResourceEntryKey key_
           
private  int orderNumber_
           
private  String requestor_
           
private  String selector_
           
 
Constructor Summary
(package private) ServiceOrResourceEntry(ServiceOrResourceEntryKey key, StringTokenizer st)
           
 
Method Summary
 void adornElement(Element element)
          Append any necessary attributes to the supplied XML DOM element.
static ServiceOrResourceEntry createServiceOrResourceEntryFrom(String key_string, String value_string)
          Factory method to create a service or resource entry.
 ServiceOrResourceEntryKey getKey()
          A key that will allow the identification of service and resource entries corresponding to the same "service."
 int getOrderNumber()
          The ordering of this service/resource implementation.
 String getRequestor()
          The string represnetation of the requestor for this service/resource implementation.
 String getSelector()
          The string represnetation of the selector for this service/resource implementation.
static boolean propertyKeyLooksLikeServiceOrResource(String key_string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key_

private ServiceOrResourceEntryKey key_

selector_

private String selector_

requestor_

private String requestor_

orderNumber_

private int orderNumber_
Constructor Detail

ServiceOrResourceEntry

ServiceOrResourceEntry(ServiceOrResourceEntryKey key,
                       StringTokenizer st)
Method Detail

adornElement

public void adornElement(Element element)
Append any necessary attributes to the supplied XML DOM element. Subclasses must call super.adornElement(Element) if they override this method.


getKey

public ServiceOrResourceEntryKey getKey()
A key that will allow the identification of service and resource entries corresponding to the same "service."


getSelector

public String getSelector()
The string represnetation of the selector for this service/resource implementation.

Returns:
possibly null

getRequestor

public String getRequestor()
The string represnetation of the requestor for this service/resource implementation.

Returns:
possibly null

getOrderNumber

public int getOrderNumber()
The ordering of this service/resource implementation. This is used by AppContext in picking the most appropriate implementation for a specific service.


propertyKeyLooksLikeServiceOrResource

public static final boolean propertyKeyLooksLikeServiceOrResource(String key_string)

createServiceOrResourceEntryFrom

public static final ServiceOrResourceEntry createServiceOrResourceEntryFrom(String key_string,
                                                                            String value_string)
Factory method to create a service or resource entry.

Parameters:
key_string -