com.ibm.uddi.promoter
Class UddiEntityKeys
- java.lang.Object
com.ibm.uddi.promoter.UddiEntityKeys
All implemented interfaces:
- public class UddiEntityKeys
- extends java.lang.Object
- implements PromoterConstants
Field Summary
Constructor Summary
Constructor and Description |
---|
UddiEntityKeys()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getBindings()
Returns the binding keys.
|
|
getBusinesses()
Returns the business keys.
|
|
getKeyCount()
Returns total number of keys in all collections.
|
|
getKeysAsProperties()
Creates a
Properties with the required content for a keys file.
|
|
getServices()
Returns the service keys.
|
|
getTModels()
Returns the tModel keys.
|
|
setBindings(java.util.List bindings)
Sets the binding keys.
|
|
setBusinesses(java.util.List businesses)
Sets the business keys.
|
|
setServices(java.util.List services)
Sets the service keys.
|
|
setTModels(java.util.List tModels)
Sets the tModel keys.
|
|
writeKeysAsPropertiesFile(java.io.OutputStream out,java.lang.String comments)
Writes a properties file to supplied
OutputStream in required format
for a keys file.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
UddiEntityKeys
- public UddiEntityKeys()
Method Detail
getBindings
- public java.util.List getBindings( )
Returns the binding keys.
Returns:
List (unmodifiable).
getBusinesses
- public java.util.List getBusinesses( )
Returns the business keys.
Returns:
List (unmodifiable).
getServices
- public java.util.List getServices( )
Returns the service keys.
Returns:
List (unmodifiable).
getTModels
- public java.util.List getTModels( )
Returns the tModel keys.
Returns:
List (unmodifiable).
setBindings
- public void setBindings(java.util.List bindings)
Sets the binding keys.
Parameters:
bindings
- setBusinesses
- public void setBusinesses(java.util.List businesses)
Sets the business keys.
Parameters:
businesses
- setServices
- public void setServices(java.util.List services)
Sets the service keys.
Parameters:
services
- setTModels
- public void setTModels(java.util.List tModels)
Sets the tModel keys.
Parameters:
tModels
- getKeyCount
- public int getKeyCount()
Returns total number of keys in all collections.
Returns:
int
getKeysAsProperties
- public java.util.Properties getKeysAsProperties( )
Creates a
Properties
with the required content for a keys file.
Returns:
Properties
writeKeysAsPropertiesFile
- public void writeKeysAsPropertiesFile( java.io.OutputStream out,
- java.lang.String comments)
- throws java.io.IOException
Writes a properties file to supplied
OutputStream
in required format
for a keys file.
Note that according to the JavaDocs for the store
method of Properties
,
"The key and value characters #, !, =, and : are written with a preceding slash
to ensure that they are properly loaded." As a result, the properties file generated by
this method will contain '\' before the ':' in the tModels section, because tModelKeys are prefixed
with 'UUID:'.
Parameters:
out
- comments
- - additional (optional) comments Throws:
java.io.IOException