be.SIRAPRISE.util
Class RelationValueSelectorFactory

java.lang.Object
  extended by be.SIRAPRISE.util.RelationValueSelectorFactory

public class RelationValueSelectorFactory
extends java.lang.Object

Author:
Erwin

Constructor Summary
RelationValueSelectorFactory()
           
 
Method Summary
static java.util.Set<java.lang.String> getNames(java.lang.String in)
          Gets A Set holding the individual names that appear in the comma-separated list
static java.util.LinkedList<java.lang.String> getNamesInEntryOrder(java.lang.String in)
          Gets A Set holding the individual names that appear in the comma-separated list
static java.util.LinkedHashSet<java.lang.String> getNamesInEntryOrderWithoutDuplicates(java.lang.String in)
          Gets A Set holding the individual names that appear in the comma-separated list
static java.lang.String getRelationAttributeValueCommalist(AbstractRelation x, java.lang.String attributeName)
           
static java.lang.String getRelationValueSelector(java.util.Set<java.lang.String> names, java.lang.String attributeName, java.lang.String typeName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationValueSelectorFactory

public RelationValueSelectorFactory()
Method Detail

getNames

public static final java.util.Set<java.lang.String> getNames(java.lang.String in)
Gets A Set holding the individual names that appear in the comma-separated list

Parameters:
in - A comma-separated list of names
Returns:
A Set holding the individual names that appear in the comma-separated list

getNamesInEntryOrder

public static final java.util.LinkedList<java.lang.String> getNamesInEntryOrder(java.lang.String in)
Gets A Set holding the individual names that appear in the comma-separated list

Parameters:
in - A comma-separated list of names
Returns:
A Set holding the individual names that appear in the comma-separated list

getNamesInEntryOrderWithoutDuplicates

public static final java.util.LinkedHashSet<java.lang.String> getNamesInEntryOrderWithoutDuplicates(java.lang.String in)
Gets A Set holding the individual names that appear in the comma-separated list

Parameters:
in - A comma-separated list of names
Returns:
A Set holding the individual names that appear in the comma-separated list

getRelationAttributeValueCommalist

public static final java.lang.String getRelationAttributeValueCommalist(AbstractRelation x,
                                                                        java.lang.String attributeName)
Parameters:
x -
attributeName -
Returns:
A commalist holding the values of the named attribute in the given relation

getRelationValueSelector

public static final java.lang.String getRelationValueSelector(java.util.Set<java.lang.String> names,
                                                              java.lang.String attributeName,
                                                              java.lang.String typeName)
Parameters:
names -
attributeName -
typeName -
Returns:
A relation value selector that selects a relation of degree one, with the given attribute and type name, and with tuples holding the values in the given set