org.apache.oodt.profile
Interface ObjectFactory


public interface ObjectFactory

Factory to create profile-related objects.

Version:
$Revision: 1.1.1.1 $
Author:
Kelly

Method Summary
 EnumeratedProfileElement createEnumeratedProfileElement(Profile profile, String name, String id, String desc, String type, String unit, List synonyms, boolean obligation, int maxOccurrence, String comments, List values)
          Create a profile element with enumerated values.
 Profile createProfile(Element node)
          Create a profile from a DOM node.
 ProfileAttributes createProfileAttributes(Element node)
          Create profile attributes from a DOM node.
 RangedProfileElement createRangedProfileElement(Profile profile, String name, String id, String desc, String type, String unit, List synonyms, boolean obligation, int maxOccurrence, String comments, String min, String max)
          Create a ranged profile element.
 ResourceAttributes createResourceAttributes(Profile profile, Element node)
          Create resource attributes from a DOM node.
 UnspecifiedProfileElement createUnspecifiedProfileElement(Profile profile, String name, String id, String desc, String type, String unit, List synonyms, boolean obligation, int maxOccurrence, String comments)
          Create a profile element with unspecified values.
 

Method Detail

createRangedProfileElement

RangedProfileElement createRangedProfileElement(Profile profile,
                                                String name,
                                                String id,
                                                String desc,
                                                String type,
                                                String unit,
                                                List synonyms,
                                                boolean obligation,
                                                int maxOccurrence,
                                                String comments,
                                                String min,
                                                String max)
Create a ranged profile element.

Parameters:
profile - a Profile value.
name - a String value.
id - a String value.
desc - a String value.
type - a String value.
unit - a String value.
synonyms - a List value.
obligation - a boolean value.
maxOccurrence - an int value.
comments - a String value.
min - a double value.
max - a double value.
Returns:
a RangedProfileElement value.

createUnspecifiedProfileElement

UnspecifiedProfileElement createUnspecifiedProfileElement(Profile profile,
                                                          String name,
                                                          String id,
                                                          String desc,
                                                          String type,
                                                          String unit,
                                                          List synonyms,
                                                          boolean obligation,
                                                          int maxOccurrence,
                                                          String comments)
Create a profile element with unspecified values.

Parameters:
profile - a Profile value.
name - a String value.
id - a String value.
desc - a String value.
type - a String value.
unit - a String value.
synonyms - a List value.
obligation - a boolean value.
maxOccurrence - an int value.
comments - a String value.
Returns:
an UnspecifiedProfileElement value.

createEnumeratedProfileElement

EnumeratedProfileElement createEnumeratedProfileElement(Profile profile,
                                                        String name,
                                                        String id,
                                                        String desc,
                                                        String type,
                                                        String unit,
                                                        List synonyms,
                                                        boolean obligation,
                                                        int maxOccurrence,
                                                        String comments,
                                                        List values)
Create a profile element with enumerated values.

Parameters:
profile - a Profile value.
name - a String value.
id - a String value.
desc - a String value.
type - a String value.
unit - a String value.
synonyms - a List value.
obligation - a boolean value.
maxOccurrence - an int value.
comments - a String value.
values - a List value.
Returns:
an Enumerated value.

createProfile

Profile createProfile(Element node)
Create a profile from a DOM node.

Parameters:
node - an Element value.
Returns:
a Profile value.

createProfileAttributes

ProfileAttributes createProfileAttributes(Element node)
Create profile attributes from a DOM node.

Parameters:
node - an Element value.
Returns:
a ProfileAttributes value.

createResourceAttributes

ResourceAttributes createResourceAttributes(Profile profile,
                                            Element node)
Create resource attributes from a DOM node.

Parameters:
profile - Owning profile.
node - an Element value.
Returns:
a ResourceAttributes value.


Copyright © 1999-2013
Apache OODT. All Rights Reserved.