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.AttributegetAttribute(String name)Retrieves the attribute with the specified name contained within this profile.SetgetAttributes()Retrieves all the attributes contained within this profile as aSetofAttributeinstances.javax.ccpp.ComponentgetComponent(String localtype)Retrieves the component with the specified localResourceLocator type (relative to the vocabulary) contained within this profile.SetgetComponents()Retrieves all the components contained within this profile as aSetofComponentinstances.javax.ccpp.ProfileDescriptiongetDescription()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 theSetreturned bygetAttributes(). The following expression will returntrue:name.equals(getAttribute(name).getName()).- Specified by:
getAttributein interfacejavax.ccpp.Profile- Parameters:
name- the name of the attribute to retrieve- Returns:
- the attribute with the specified name, or
nullif no such attribute exists within this profile
-
getAttributes
public Set getAttributes()
Retrieves all the attributes contained within this profile as aSetofAttributeinstances.- Specified by:
getAttributesin 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 theSetreturned bygetComponents(). The following expression will returntrue:localtype.equals(getComponent(localtype).getDescription().getLocalType()).- Specified by:
getComponentin 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
nullif no such component exists within this profile
-
getComponents
public Set getComponents()
Retrieves all the components contained within this profile as aSetofComponentinstances.- Specified by:
getComponentsin 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:
getDescriptionin interfacejavax.ccpp.Profile- Returns:
- this profile's description object
-
-