swBackend
Class SWQueryResult

java.lang.Object
  |
  +--swBackend.SWQueryResult

public class SWQueryResult
extends java.lang.Object


Field Summary
static int CONCEPT
           
static int EMPTY
           
static int INSTANCE
           
static int OBJECTS
           
static int PROPERTY
           
 
Constructor Summary
SWQueryResult()
          Creates a new SWQueryResult
 
Method Summary
 void addConcept(java.lang.Object obj)
          Adds a concept.
 void addInstance(java.lang.Object obj)
          Adds an instance.
 void addObject(java.lang.Object obj)
          Adds an Object
 void addProperty(java.lang.Object obj)
          Adds a property.
 java.util.Vector getConcepts()
           
 java.util.Vector getInstances()
           
 java.util.Vector getObjects()
           
 java.util.Vector getProperties()
           
 java.util.Vector getResult()
          Return the result Vector.
 int getType()
          Return the result type.
 boolean hasOnlyOneType()
           
 boolean isEmpty()
          Returns true if the four result Vectors contain no elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final int EMPTY
See Also:
Constant Field Values

CONCEPT

public static final int CONCEPT
See Also:
Constant Field Values

INSTANCE

public static final int INSTANCE
See Also:
Constant Field Values

PROPERTY

public static final int PROPERTY
See Also:
Constant Field Values

OBJECTS

public static final int OBJECTS
See Also:
Constant Field Values
Constructor Detail

SWQueryResult

public SWQueryResult()
Creates a new SWQueryResult

Method Detail

isEmpty

public boolean isEmpty()
Returns true if the four result Vectors contain no elements.

Returns:
true if the result set is empty, false otherwise.

hasOnlyOneType

public boolean hasOnlyOneType()
Returns:
true if all results are contained in only one of the four result Vectors, false otherwise.

getResult

public java.util.Vector getResult()
Return the result Vector. The method looks at the Vectors concepts, instances, properties and objects (in exactly this order) and returns the first non-empty one. If none of the Vectors contains elements, an empty Vector object is returned.


getType

public int getType()
Return the result type.


getConcepts

public java.util.Vector getConcepts()
Returns:
Returns the concepts.

addConcept

public void addConcept(java.lang.Object obj)
Adds a concept.


getInstances

public java.util.Vector getInstances()
Returns:
Returns the instances.

addInstance

public void addInstance(java.lang.Object obj)
Adds an instance.


getObjects

public java.util.Vector getObjects()
Returns:
Returns the objects.

addObject

public void addObject(java.lang.Object obj)
Adds an Object


getProperties

public java.util.Vector getProperties()
Returns:
Returns the properties.

addProperty

public void addProperty(java.lang.Object obj)
Adds a property.