org.merkwelt.profile
Class ProfileResult

java.lang.Object
  extended byorg.merkwelt.profile.ProfileResult
All Implemented Interfaces:
java.io.Serializable

public class ProfileResult
extends java.lang.Object
implements java.io.Serializable

A profileResult is created by a ProfileMatcher when a profile matches a profileQuery. It contains static properties, the extracted dynamic properties and the defaultValues.

Version:
$Date: 2004/02/01 01:59:27 $
Author:
$Author: stanwiechers $
See Also:
Serialized Form

Constructor Summary
ProfileResult(Profile profile, java.util.Properties properties)
           
 
Method Summary
 Profile getProfile()
          Returns the profile associated with that result
 int getPropertiesSize()
          Return the size of properties
 java.lang.String getProperty(java.lang.String name)
          Return the property with the given name.
 java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
          Return the property with the given name or the given defaultValue.
 java.util.Iterator getPropertyNameIterator()
          Returns an iterator over all property names
 java.lang.String toString()
          Returns a string representation of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProfileResult

public ProfileResult(Profile profile,
                     java.util.Properties properties)
Method Detail

getProfile

public Profile getProfile()
Returns the profile associated with that result

Returns:
the profile

getProperty

public java.lang.String getProperty(java.lang.String name)
Return the property with the given name.

Parameters:
name - the name of the property
Returns:
the value of the property

getProperty

public java.lang.String getProperty(java.lang.String name,
                                    java.lang.String defaultValue)
Return the property with the given name or the given defaultValue.

Parameters:
name - the name of the property
defaultValue - the default value
Returns:
the value of the property

getPropertyNameIterator

public java.util.Iterator getPropertyNameIterator()
Returns an iterator over all property names

Returns:
an iterator over all property names

getPropertiesSize

public int getPropertiesSize()
Return the size of properties

Returns:
the size

toString

public java.lang.String toString()
Returns a string representation of the object

Returns:
a string representation