Package org.rhq.core.domain.content

Examples of org.rhq.core.domain.content.PackageCategory


     * @throws InvalidPluginDescriptorException if the descriptor contains data that does not pass the usage
     *                                          specification
     */
    public static PackageType parseContentDescriptor(ContentDescriptor descriptor)
        throws InvalidPluginDescriptorException {
        PackageCategory category = translateCategory(descriptor.getCategory());

        PackageType type = new PackageType();
        type.setName(descriptor.getName());
        type.setDescription(descriptor.getDescription());
        type.setCategory(category);
View Full Code Here


     * @return domain model representation of the artifact category.
     *
     * @throws IllegalArgumentException if the descriptorCategory does not map to a domain model category.
     */
    private static PackageCategory translateCategory(ContentDescriptorCategory descriptorCategory) {
        PackageCategory category = null;

        switch (descriptorCategory) {
        case CONFIGURATION: {
            category = PackageCategory.CONFIGURATION;
            break;
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.content.PackageCategory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.