Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2009-03-19 17:22:32 +0000
committerslewis2009-03-19 17:22:32 +0000
commitf5443af1cfd6cc89513d88885ccdfb5883342330 (patch)
treeee122b4f4a152e89dce11a2becf5efa1d66afc22 /framework/bundles
parent219ef49a9c0dcba93fb72750dad7c57c33f96d45 (diff)
downloadorg.eclipse.ecf-f5443af1cfd6cc89513d88885ccdfb5883342330.tar.gz
org.eclipse.ecf-f5443af1cfd6cc89513d88885ccdfb5883342330.tar.xz
org.eclipse.ecf-f5443af1cfd6cc89513d88885ccdfb5883342330.zip
Javadocs warning fixes.
Diffstat (limited to 'framework/bundles')
-rw-r--r--framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceProperties.java71
-rw-r--r--framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/identity/IServiceIDFactory.java129
2 files changed, 136 insertions, 64 deletions
diff --git a/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceProperties.java b/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceProperties.java
index 2f2506240..f2d0012f8 100644
--- a/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceProperties.java
+++ b/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceProperties.java
@@ -12,8 +12,8 @@ import java.io.Serializable;
import java.util.*;
/**
- * Service properties implementation class for {@link IServiceProperties}. Subclasses
- * may be created as appropriate.
+ * Service properties implementation class for {@link IServiceProperties}.
+ * Subclasses may be created as appropriate.
*/
public class ServiceProperties implements IServiceProperties {
@@ -31,6 +31,7 @@ public class ServiceProperties implements IServiceProperties {
/**
* Creates a copy of the given {@link IServiceProperties}
+ *
* @param sp
* @since 2.1
*/
@@ -56,7 +57,9 @@ public class ServiceProperties implements IServiceProperties {
/*
* (non-Javadoc)
*
- * @see org.eclipse.ecf.discovery.IServiceProperties#getPropertyString(java.lang.String)
+ * @see
+ * org.eclipse.ecf.discovery.IServiceProperties#getPropertyString(java.lang
+ * .String)
*/
public String getPropertyString(String name) {
final Object val = props.get(name);
@@ -69,7 +72,9 @@ public class ServiceProperties implements IServiceProperties {
/*
* (non-Javadoc)
*
- * @see org.eclipse.ecf.discovery.IServiceProperties#getPropertyBytes(java.lang.String)
+ * @see
+ * org.eclipse.ecf.discovery.IServiceProperties#getPropertyBytes(java.lang
+ * .String)
*/
public byte[] getPropertyBytes(String name) {
final Object val = props.get(name);
@@ -83,34 +88,50 @@ public class ServiceProperties implements IServiceProperties {
/*
* (non-Javadoc)
*
- * @see org.eclipse.ecf.discovery.IServiceProperties#getProperty(java.lang.String)
+ * @see
+ * org.eclipse.ecf.discovery.IServiceProperties#getProperty(java.lang.String
+ * )
*/
public Object getProperty(String name) {
return props.get(name);
}
- /* (non-Javadoc)
- * @see org.eclipse.ecf.discovery.IServiceProperties#setProperty(java.lang.String, java.lang.Object)
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.ecf.discovery.IServiceProperties#setProperty(java.lang.String
+ * , java.lang.Object)
*/
public Object setProperty(String name, Object value) {
return props.put(name, value);
}
- /* (non-Javadoc)
- * @see org.eclipse.ecf.discovery.IServiceProperties#setPropertyBytes(java.lang.String, byte[])
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.ecf.discovery.IServiceProperties#setPropertyBytes(java.lang
+ * .String, byte[])
*/
public Object setPropertyBytes(String name, byte[] value) {
return props.put(name, new ByteArrayWrapper(value));
}
- /* (non-Javadoc)
- * @see org.eclipse.ecf.discovery.IServiceProperties#setPropertyString(java.lang.String, java.lang.String)
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.ecf.discovery.IServiceProperties#setPropertyString(java.lang
+ * .String, java.lang.String)
*/
public Object setPropertyString(String name, String value) {
return props.put(name, value);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see java.lang.Object#equals(java.lang.Object)
*/
public boolean equals(Object obj) {
@@ -121,14 +142,18 @@ public class ServiceProperties implements IServiceProperties {
return false;
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see java.lang.Object#hashCode()
*/
public int hashCode() {
return props.hashCode();
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see java.lang.Object#toString()
*/
public String toString() {
@@ -137,7 +162,9 @@ public class ServiceProperties implements IServiceProperties {
return buf.toString();
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.ecf.discovery.IServiceProperties#size()
*/
public int size() {
@@ -145,7 +172,7 @@ public class ServiceProperties implements IServiceProperties {
}
/**
- * @return
+ * @return Properties
* @since 3.0
*/
public Properties asProperties() {
@@ -154,7 +181,7 @@ public class ServiceProperties implements IServiceProperties {
for (Iterator iterator = keySet.iterator(); iterator.hasNext();) {
Object key = (Object) iterator.next();
Object value = props.get(key);
- if(value instanceof ByteArrayWrapper) {
+ if (value instanceof ByteArrayWrapper) {
ByteArrayWrapper baw = (ByteArrayWrapper) value;
result.put(key, baw.getByte());
} else {
@@ -163,7 +190,7 @@ public class ServiceProperties implements IServiceProperties {
}
return result;
}
-
+
// proper equals/hashcode for byte[]
private static class ByteArrayWrapper implements Serializable {
@@ -178,7 +205,9 @@ public class ServiceProperties implements IServiceProperties {
return value;
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see java.lang.Object#equals(java.lang.Object)
*/
public boolean equals(Object obj) {
@@ -189,7 +218,9 @@ public class ServiceProperties implements IServiceProperties {
return false;
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see java.lang.Object#hashCode()
*/
public int hashCode() {
diff --git a/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/identity/IServiceIDFactory.java b/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/identity/IServiceIDFactory.java
index e42b8023b..03478ff84 100644
--- a/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/identity/IServiceIDFactory.java
+++ b/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/identity/IServiceIDFactory.java
@@ -15,73 +15,114 @@ import org.eclipse.ecf.core.identity.IDCreateException;
import org.eclipse.ecf.core.identity.Namespace;
/**
- * ServiceID factory contract.
+ * ServiceID factory contract.
*
* @see ServiceIDFactory
*/
public interface IServiceIDFactory {
/**
- * Create an IServiceTypeID. Creates an immutable IServiceTypeID.
+ * Create an IServiceTypeID. Creates an immutable IServiceTypeID.
*
- * @param namespace the Namespace instance to create the service ID with. Must not be <code>null</code>.
- * @param service The service type. Must not be <code>null</code>.
+ * @param namespace
+ * the Namespace instance to create the service ID with. Must not
+ * be <code>null</code>.
+ * @param serviceType
+ * The service type. Must not be <code>null</code>.
* @since 3.0
- *
- * @return IServiceTypeID created. Will not be <code>null</code>.
- * @throws IDCreateException if some problem creating the new IServiceTypeID.
+ *
+ * @return IServiceTypeID created. Will not be <code>null</code>.
+ * @throws IDCreateException
+ * if some problem creating the new IServiceTypeID.
*/
- public IServiceTypeID createServiceTypeID(Namespace namespace, String serviceType);
-
+ public IServiceTypeID createServiceTypeID(Namespace namespace,
+ String serviceType);
+
/**
- * Create an IServiceTypeID. Creates an immutable IServiceTypeID.
+ * Create an IServiceTypeID. Creates an immutable IServiceTypeID.
*
- * @param namespace the Namespace instance to create the service ID with. Must not be <code>null</code>.
- * @param services Array containing the ordered naming hierarchy from 0...n. Must not be <code>null</code>.
+ * @param namespace
+ * the Namespace instance to create the service ID with. Must not
+ * be <code>null</code>.
+ * @param serviceType
+ * Array containing the ordered naming hierarchy from 0...n. Must
+ * not be <code>null</code>.
* @since 3.0
- *
- * @return IServiceTypeID created. Will not be <code>null</code>.
- * @throws IDCreateException if some problem creating the new IServiceTypeID.
+ *
+ * @return IServiceTypeID created. Will not be <code>null</code>.
+ * @throws IDCreateException
+ * if some problem creating the new IServiceTypeID.
*/
- public IServiceTypeID createServiceTypeID(Namespace namespace, String[] serviceType);
-
+ public IServiceTypeID createServiceTypeID(Namespace namespace,
+ String[] serviceType);
+
/**
- * Create an IServiceTypeID. Creates an immutable IServiceTypeID.
+ * Create an IServiceTypeID. Creates an immutable IServiceTypeID.
*
- * @param namespace the Namespace instance to create the service ID with. Must not be <code>null</code>.
- * @param services Array containing the ordered naming hierarchy from 0...n. Must not be <code>null</code>.
- * @param scopes Array containing all scopes or {@link IServiceTypeID#DEFAULT_SCOPE} for default. Must not be <code>null</code>.
- * @param protocols Array containing all protocols or {@link IServiceTypeID#DEFAULT_PROTO} for default. Must not be <code>null</code>.
- * @param namingAuthority the NamingAuthority or {@link IServiceTypeID#DEFAULT_NA} for default. Must not be <code>null</code>.
+ * @param namespace
+ * the Namespace instance to create the service ID with. Must not
+ * be <code>null</code>.
+ * @param services
+ * Array containing the ordered naming hierarchy from 0...n. Must
+ * not be <code>null</code>.
+ * @param scopes
+ * Array containing all scopes or
+ * {@link IServiceTypeID#DEFAULT_SCOPE} for default. Must not be
+ * <code>null</code>.
+ * @param protocols
+ * Array containing all protocols or
+ * {@link IServiceTypeID#DEFAULT_PROTO} for default. Must not be
+ * <code>null</code>.
+ * @param namingAuthority
+ * the NamingAuthority or {@link IServiceTypeID#DEFAULT_NA} for
+ * default. Must not be <code>null</code>.
* @since 3.0
- *
- * @return IServiceTypeID created. Will not be <code>null</code>.
- * @throws IDCreateException if some problem creating the new IServiceTypeID.
+ *
+ * @return IServiceTypeID created. Will not be <code>null</code>.
+ * @throws IDCreateException
+ * if some problem creating the new IServiceTypeID.
*/
- public IServiceTypeID createServiceTypeID(Namespace namespace, String[] services, String[] scopes, String[] protocols, String namingAuthority) throws IDCreateException;
+ public IServiceTypeID createServiceTypeID(Namespace namespace,
+ String[] services, String[] scopes, String[] protocols,
+ String namingAuthority) throws IDCreateException;
/**
- * Create an IServiceTypeID. Creates an immutable IServiceTypeID. NamingAuthority will be set to
- * {@link IServiceTypeID#DEFAULT_NA}
- * @param namespace the Namespace instance to create the service ID with. Must not be <code>null</code>.
- * @param serviceType Array containing the ordered naming hierarchy from 0...n. Must not be <code>null</code>.
- * @param protocols Array containing the protocols. Must not be <code>null</code>.
+ * Create an IServiceTypeID. Creates an immutable IServiceTypeID.
+ * NamingAuthority will be set to {@link IServiceTypeID#DEFAULT_NA}
+ *
+ * @param namespace
+ * the Namespace instance to create the service ID with. Must not
+ * be <code>null</code>.
+ * @param serviceType
+ * Array containing the ordered naming hierarchy from 0...n. Must
+ * not be <code>null</code>.
+ * @param protocols
+ * Array containing the protocols. Must not be <code>null</code>.
* @since 3.0
- *
- * @return IServiceTypeID created. Will not be <code>null</code>.
- * @throws IDCreateException if some problem creating the new IServiceTypeID.
+ *
+ * @return IServiceTypeID created. Will not be <code>null</code>.
+ * @throws IDCreateException
+ * if some problem creating the new IServiceTypeID.
*/
- public IServiceTypeID createServiceTypeID(Namespace namespace, String[] serviceType, String[] protocols) throws IDCreateException;
+ public IServiceTypeID createServiceTypeID(Namespace namespace,
+ String[] serviceType, String[] protocols) throws IDCreateException;
/**
- * Create an IServiceTypeID. Creates an immutable IServiceTypeID from a non-<code>null</code> {@link IServiceTypeID}
- * with a different {@link Namespace}.
- * @param namespace the Namespace instance to create the service type ID with. Must not be <code>null</code>.
- * @param aServiceTypeID service type id. Must not be <code>null</code>.
+ * Create an IServiceTypeID. Creates an immutable IServiceTypeID from a non-
+ * <code>null</code> {@link IServiceTypeID} with a different
+ * {@link Namespace}.
+ *
+ * @param namespace
+ * the Namespace instance to create the service type ID with.
+ * Must not be <code>null</code>.
+ * @param aServiceTypeID
+ * service type id. Must not be <code>null</code>.
* @since 3.0
- *
- * @return IServiceTypeID created. Will not be <code>null</code>.
- * @throws IDCreateException if some problem creating the new IServiceTypeID.
+ *
+ * @return IServiceTypeID created. Will not be <code>null</code>.
+ * @throws IDCreateException
+ * if some problem creating the new IServiceTypeID.
*/
- public IServiceTypeID createServiceTypeID(Namespace namespace, IServiceTypeID aServiceTypeID) throws IDCreateException;
+ public IServiceTypeID createServiceTypeID(Namespace namespace,
+ IServiceTypeID aServiceTypeID) throws IDCreateException;
}

Back to the top