ubiware.util.saplbuilder
Class Container

java.lang.Object
  extended by ubiware.util.saplbuilder.StatementContainer
      extended by ubiware.util.saplbuilder.Container
All Implemented Interfaces:
java.lang.Iterable<Statement>, Object, Subject

public class Container
extends StatementContainer
implements Subject, Object

A container in the S-apl sense, a container contains zero or more statements. A container can act as both a subject or predicate of a statement.

Since:
17 Aug 2010
Author:
Michael Cochez for Ubiware project

Field Summary
 
Fields inherited from class ubiware.util.saplbuilder.StatementContainer
statements
 
Constructor Summary
Container()
          Creates a container with the default initial capacity of 5.
Container(int initialCapacity)
          Creates a container with the given initial capacity.
 
Method Summary
 void generateSapl(java.lang.StringBuilder builder)
          Generates a S-apl representation of this container.
 
Methods inherited from class ubiware.util.saplbuilder.StatementContainer
addStatement, addStatement, addStatements, iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Container

public Container()
Creates a container with the default initial capacity of 5.


Container

public Container(int initialCapacity)
Creates a container with the given initial capacity.

Parameters:
initialCapacity -
Method Detail

generateSapl

public void generateSapl(java.lang.StringBuilder builder)
Generates a S-apl representation of this container.

Specified by:
generateSapl in interface Object
Specified by:
generateSapl in interface Subject
Overrides:
generateSapl in class StatementContainer
Parameters:
builder - The StringBuilder on which the representation must be appended.