Class DefaultCCPPProfile
- java.lang.Object
-
- com.sun.portal.portletcontainer.ccpp.DefaultCCPPProfile
-
- All Implemented Interfaces:
javax.ccpp.Profile
public class DefaultCCPPProfile extends Object implements javax.ccpp.Profile
The DefaultCCPPProfile provides a dummy implementation of the CCPP Profile object.
-
-
Constructor Summary
Constructors Constructor Description DefaultCCPPProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ccpp.Attribute
getAttribute(String name)
Retrieves the attribute with the specified name contained within this profile.Set
getAttributes()
Retrieves all the attributes contained within this profile as aSet
ofAttribute
instances.javax.ccpp.Component
getComponent(String localtype)
Retrieves the component with the specified localResourceLocator type (relative to the vocabulary) contained within this profile.Set
getComponents()
Retrieves all the components contained within this profile as aSet
ofComponent
instances.javax.ccpp.ProfileDescription
getDescription()
Retrieves the object describing this profile.
-
-
-
Method Detail
-
getAttribute
public javax.ccpp.Attribute getAttribute(String name)
Retrieves the attribute with the specified name contained within this profile. If an attribute is not unique within this profile, then the attribute returned is implementation specific. In this case, the attribute should instead be retrieved withgetComponent(String).getAttribute(String)
.The object returned by this method, if not
null
, is an element of theSet
returned bygetAttributes()
. The following expression will returntrue
:name.equals(getAttribute(name).getName())
.- Specified by:
getAttribute
in interfacejavax.ccpp.Profile
- Parameters:
name
- the name of the attribute to retrieve- Returns:
- the attribute with the specified name, or
null
if no such attribute exists within this profile
-
getAttributes
public Set getAttributes()
Retrieves all the attributes contained within this profile as aSet
ofAttribute
instances.- Specified by:
getAttributes
in interfacejavax.ccpp.Profile
- Returns:
- all the attributes contained within this profile
-
getComponent
public javax.ccpp.Component getComponent(String localtype)
Retrieves the component with the specified localResourceLocator type (relative to the vocabulary) contained within this profile. The object returned by this method, if notnull
, is an element of theSet
returned bygetComponents()
. The following expression will returntrue
:localtype.equals(getComponent(localtype).getDescription().getLocalType())
.- Specified by:
getComponent
in interfacejavax.ccpp.Profile
- Parameters:
localtype
- the localResourceLocator type of the component to retrieve as returned byComponent.getDescription().getLocalType()
- Returns:
- the component with the specified localResourceLocator type, or
null
if no such component exists within this profile
-
getComponents
public Set getComponents()
Retrieves all the components contained within this profile as aSet
ofComponent
instances.- Specified by:
getComponents
in interfacejavax.ccpp.Profile
- Returns:
- all the components contained within this profile
-
getDescription
public javax.ccpp.ProfileDescription getDescription()
Retrieves the object describing this profile.- Specified by:
getDescription
in interfacejavax.ccpp.Profile
- Returns:
- this profile's description object
-
-