Class 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 Detail

      • DefaultCCPPProfile

        public DefaultCCPPProfile()
    • 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 with getComponent(String).getAttribute(String).

        The object returned by this method, if not null, is an element of the Set returned by getAttributes(). The following expression will return true: name.equals(getAttribute(name).getName()).

        Specified by:
        getAttribute in interface javax.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 a Set of Attribute instances.
        Specified by:
        getAttributes in interface javax.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 not null, is an element of the Set returned by getComponents(). The following expression will return true: localtype.equals(getComponent(localtype).getDescription().getLocalType()) .
        Specified by:
        getComponent in interface javax.ccpp.Profile
        Parameters:
        localtype - the localResourceLocator type of the component to retrieve as returned by Component.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 a Set of Component instances.
        Specified by:
        getComponents in interface javax.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 interface javax.ccpp.Profile
        Returns:
        this profile's description object