org.jrdf.query.relation.mem
Interface SortedAttributeFactory

All Known Implementing Classes:
SortedAttributeFactoryImpl

public interface SortedAttributeFactory

Allows the creation of headings.

Version:
$Revision:$
Author:
Andrew Newman

Field Summary
static String DEFAULT_OBJECT_NAME
          The default name of a object heading.
static String DEFAULT_PREDICATE_NAME
          The default name of a predicate heading.
static String DEFAULT_SUBJECT_NAME
          The default name of a subject heading.
 
Method Summary
 SortedSet<Attribute> createHeading()
          Create the default heading based on a triple - subject, predicate, object.
 List<Attribute> createHeading(List<NodeType> types)
          Create a heading based on the given node types.
 

Field Detail

DEFAULT_SUBJECT_NAME

static final String DEFAULT_SUBJECT_NAME
The default name of a subject heading.

See Also:
Constant Field Values

DEFAULT_PREDICATE_NAME

static final String DEFAULT_PREDICATE_NAME
The default name of a predicate heading.

See Also:
Constant Field Values

DEFAULT_OBJECT_NAME

static final String DEFAULT_OBJECT_NAME
The default name of a object heading.

See Also:
Constant Field Values
Method Detail

createHeading

SortedSet<Attribute> createHeading()
Create the default heading based on a triple - subject, predicate, object.

Returns:
the default heading based on a triple - subject, predicate, object.

createHeading

List<Attribute> createHeading(List<NodeType> types)
                              throws IllegalArgumentException
Create a heading based on the given node types. Currently this only accepts triples - should be extended to support anything.

Parameters:
types - the node types usually they will be URI, bnode or Literal to override the defaults.
Returns:
a heading based on the given node types.
Throws:
IllegalArgumentException - currently if there are any more or less than 3.