net.java.dev.vcc.api.profiles
Class BasicProfile

java.lang.Object
  extended by net.java.dev.vcc.api.profiles.BasicProfile
All Implemented Interfaces:
CapabilityProfile

public final class BasicProfile
extends java.lang.Object

The most basic profile.


Method Summary
 boolean equals(java.lang.Object o)
          
 java.util.Set<java.lang.Class<? extends Command>> getCommands(java.lang.Class<? extends ManagedObject> managedObjectClass)
          Returns the types of Command that are supported against a specific type of ManagedObject.
static BasicProfile getInstance()
           
 java.util.Set<java.lang.Class<? extends ManagedObject>> getObjectClasses()
          Returns the types of ManagedObject that are available.
 int hashCode()
          
 boolean supportedBy(CapabilityProfile that)
          Returns true if this CapabilityProfile is supported by the supplied CapabilityProfile.
 boolean supports(CapabilityProfile that)
          Returns true if this CapabilityProfile supports a superset of the supplied CapabilityProfile.
 java.lang.String toString()
          
protected static java.util.Map.Entry<java.lang.Class<? extends ManagedObject>,java.util.Set<java.lang.Class<? extends Command>>> with(java.lang.Class<? extends ManagedObject> object, java.lang.Class<? extends Command>... commands)
          Helper method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static BasicProfile getInstance()

with

protected static java.util.Map.Entry<java.lang.Class<? extends ManagedObject>,java.util.Set<java.lang.Class<? extends Command>>> with(java.lang.Class<? extends ManagedObject> object,
                                                                                                                                      java.lang.Class<? extends Command>... commands)
Helper method.

Parameters:
object - The type of ManagedObject
commands - The types of Commands supported on the ManagedObject.
Returns:
An Map.Entry for use in the constructor.

getCommands

public final java.util.Set<java.lang.Class<? extends Command>> getCommands(java.lang.Class<? extends ManagedObject> managedObjectClass)
Returns the types of Command that are supported against a specific type of ManagedObject.

Specified by:
getCommands in interface CapabilityProfile
Parameters:
managedObjectClass - The type of ManagedObject.
Returns:
The types of Command that are supported on the ManagedObject

getObjectClasses

public final java.util.Set<java.lang.Class<? extends ManagedObject>> getObjectClasses()
Returns the types of ManagedObject that are available.

Specified by:
getObjectClasses in interface CapabilityProfile
Returns:
the types of ManagedObject that are available.

equals

public final boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object

supportedBy

public final boolean supportedBy(CapabilityProfile that)
Returns true if this CapabilityProfile is supported by the supplied CapabilityProfile.

Parameters:
that - The CapabilityProfile which this may be a subset of.
Returns:
true if this CapabilityProfile is supported by the supplied CapabilityProfile.

supports

public final boolean supports(CapabilityProfile that)
Returns true if this CapabilityProfile supports a superset of the supplied CapabilityProfile.

Specified by:
supports in interface CapabilityProfile
Parameters:
that - The CapabilityProfile which might be a subset of this.
Returns:
true if this CapabilityProfile supports a superset of the supplied CapabilityProfile.

hashCode

public final int hashCode()

Overrides:
hashCode in class java.lang.Object

toString

public final java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2009. All Rights Reserved.