www.sdmetrics.com

com.sdmetrics.metrics
Class Set

java.lang.Object
  extended by com.sdmetrics.metrics.MetricEntry
      extended by com.sdmetrics.metrics.Set

public class Set
extends MetricEntry

Represents the definition of a set in the metric definition file.


Field Summary
 
Fields inherited from class com.sdmetrics.metrics.MetricEntry
attributes, description, id, location, name, procedureName
 
Constructor Summary
Set(java.lang.String name, MetaModelElement type)
          Creates a new set definition
 
Method Summary
 MetaModelElement getType()
          Retrieves the type of elements for which the set is defined.
 boolean isMultiSet()
          Checks if this entry defines a regular set or a multiset.
 java.lang.String toString()
          Returns a string representation of the set.
 
Methods inherited from class com.sdmetrics.metrics.MetricEntry
getAttributes, getBriefDescription, getFullDescription, getLocation, getName, getProcedureName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Set

public Set(java.lang.String name,
           MetaModelElement type)
Creates a new set definition

Parameters:
name - Name of the set.
type - Metamodel element type of the elements for which this set is defined.
Method Detail

getType

public MetaModelElement getType()
Retrieves the type of elements for which the set is defined.

Returns:
Element type of this set.

isMultiSet

public boolean isMultiSet()
Checks if this entry defines a regular set or a multiset. Regular sets contain at most one occurrence of any element, multisets can contain more than one occurrence of the same element.

Returns:
true if set defines a multiset.

toString

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

Overrides:
toString in class java.lang.Object
Returns:
String with the name of the set and its type

www.sdmetrics.com