org.figure8.join.services.properties
Class DeliverablePropertiesExtractor

java.lang.Object
  extended by org.figure8.join.services.properties.DeliverablePropertiesExtractor
All Implemented Interfaces:
PropertiesExtractor

public class DeliverablePropertiesExtractor
extends java.lang.Object
implements PropertiesExtractor

This is an implementation of PropertiesExtractor made for Deliverables.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux
See Also:
Deliverable

Field Summary
static java.lang.String DELIVERABLE_PREFIX
          Constant for the default properties prefix applied during extraction
 
Constructor Summary
DeliverablePropertiesExtractor()
          Creates a new instance of DeliverablePropertiesExtractor
 
Method Summary
 java.util.Properties extract(Deliverable deliverable)
          Extract a set of properies from the given deliverable.
 java.util.Properties extract(Deliverable deliverable, java.lang.String prefix)
          Extract a set of properies from the given deliverable.
 java.util.Properties extract(java.lang.Object obj)
          Extract a set of properties from the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELIVERABLE_PREFIX

public static final java.lang.String DELIVERABLE_PREFIX
Constant for the default properties prefix applied during extraction

See Also:
Constant Field Values
Constructor Detail

DeliverablePropertiesExtractor

public DeliverablePropertiesExtractor()
Creates a new instance of DeliverablePropertiesExtractor

Method Detail

extract

public java.util.Properties extract(Deliverable deliverable)
Extract a set of properies from the given deliverable.

Parameters:
deliverable - The deliverable to extract properties from
Returns:
A set of properties representing the deliverable and its inner fields graph

extract

public java.util.Properties extract(Deliverable deliverable,
                                    java.lang.String prefix)
Extract a set of properies from the given deliverable. Prefix them with supllied string.

Parameters:
deliverable - The deliverable to extract properties from
prefix - The prefix to append on each property
Returns:
A set of properties representing the deliverable and its inner fields graph

extract

public java.util.Properties extract(java.lang.Object obj)
                             throws InvalidParameterException
Extract a set of properties from the given object.

Specified by:
extract in interface PropertiesExtractor
Parameters:
obj - The object to extract properties from
Returns:
A set of properties representing the object and its inner fields graph
Throws:
InvalidParameterException - if the object cannot be processed by implementation


Copyright © 2005-2008 Join. All Rights Reserved.