org.rhq.core.clientapi.agent.metadata
Class ContentMetadataParser

java.lang.Object
  extended by org.rhq.core.clientapi.agent.metadata.ContentMetadataParser

public class ContentMetadataParser
extends Object

Parser responsible for translating the content section of the rhq-plugin.xml descriptor into domain objects.

Author:
Jason Dobies, John Mazzitelli

Constructor Summary
ContentMetadataParser()
           
 
Method Summary
static org.rhq.core.domain.content.PackageType parseContentDescriptor(ContentDescriptor descriptor)
          Parses the contents of the content descriptor and populates an instance of the domain model representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentMetadataParser

public ContentMetadataParser()
Method Detail

parseContentDescriptor

public static org.rhq.core.domain.content.PackageType parseContentDescriptor(ContentDescriptor descriptor)
                                                                      throws InvalidPluginDescriptorException
Parses the contents of the content descriptor and populates an instance of the domain model representation.

Parameters:
descriptor - non-null content descriptor.
Returns:
domain model object populated with the descriptor's values.
Throws:
InvalidPluginDescriptorException - if the descriptor contains data that does not pass the usage specification


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.