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.


Constructor Summary
ContentMetadataParser()
           
 
Method Summary
static 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 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-2009 Red Hat, Inc.. All Rights Reserved.