Skip navigation links
A B E F G H K N P Q R S T V 

A

addAlcohol(double) - Method in interface se.itu.systemet.domain.Product.Exporter
 
addName(String) - Method in interface se.itu.systemet.domain.Product.Exporter
 
addNr(int) - Method in interface se.itu.systemet.domain.Product.Exporter
 
addParam(Param) - Method in interface se.itu.systemet.rest.Query
Adds a Param object to this Query.
addParam(Param) - Method in class se.itu.systemet.rest.RestQuery
Adds a Param to this Query.
addPrice(double) - Method in interface se.itu.systemet.domain.Product.Exporter
 
addProductGroup(String) - Method in interface se.itu.systemet.domain.Product.Exporter
 
addType(String) - Method in interface se.itu.systemet.domain.Product.Exporter
 
addVolume(int) - Method in interface se.itu.systemet.domain.Product.Exporter
 
alcohol() - Method in class se.itu.systemet.domain.Product
Returns the alcohol level of this Product
alcohol(double) - Method in class se.itu.systemet.domain.Product.Builder
 
ALCOHOL_ORDER - Static variable in class se.itu.systemet.domain.Product
A Comparator that orders Products based on their alcohol level.
ApiAccess - Interface in se.itu.systemet.rest
Represents an object for accessing an API.
ApiAccessFactory - Class in se.itu.systemet.rest
A Factory class for creating an ApiAccess object.
ApiAccessFactory() - Constructor for class se.itu.systemet.rest.ApiAccessFactory
 

B

build() - Method in class se.itu.systemet.domain.Product.Builder
 
Builder() - Constructor for class se.itu.systemet.domain.Product.Builder
 

E

equals(Object) - Method in class se.itu.systemet.domain.Product
Uses name, alcohol, volume, price and nr when deciding if this Product is equal to another Product.
export(Product.Exporter) - Method in class se.itu.systemet.domain.Product
This methods allows a Product to export itself to an Exporter object, which could be used to create various representations or other uses of this Product, like for instance, a CSV row, an XML element, an SQL insert statement, a PreparedStatement, a GUI component or whatever.

F

FakeApiAccess - Class in se.itu.systemet.rest
 
FakeApiAccess() - Constructor for class se.itu.systemet.rest.FakeApiAccess
 
fetch(Query) - Method in interface se.itu.systemet.rest.ApiAccess
Returns a List<Product> using a Query.
fetch(Query) - Method in class se.itu.systemet.rest.FakeApiAccess
 

G

get(String) - Method in interface se.itu.systemet.rest.Query
Returns the value (as a String) of the parameter whose key is the key provided by the key argument.
get(String) - Method in class se.itu.systemet.rest.RestQuery
Returns the value connected to the specified key, as a String.
getApiAccess() - Static method in class se.itu.systemet.rest.ApiAccessFactory
Returns an implementation of ApiAccess.
getQuery() - Static method in class se.itu.systemet.rest.QueryFactory
Creates an implementation of Query.

H

hashCode() - Method in class se.itu.systemet.domain.Product
 

K

key() - Method in class se.itu.systemet.rest.Param
Returns the key for this Param, as a String

N

name(String) - Method in class se.itu.systemet.domain.Product.Builder
Provides the Product name
name() - Method in class se.itu.systemet.domain.Product
Returns the name of this Product
NAME_CASE_INSENSITIVE_ORDER - Static variable in class se.itu.systemet.domain.Product
A Comparator that orders Products based on their name, ignoring case.
NAME_ORDER - Static variable in class se.itu.systemet.domain.Product
A Comparator that orders Products based on their name.
nr(int) - Method in class se.itu.systemet.domain.Product.Builder
 
nr() - Method in class se.itu.systemet.domain.Product
Returns the product number of this Product

P

Param - Class in se.itu.systemet.rest
Represents a Key-Value pair of a Request, typically the constraints for a request.
Param(String, String) - Constructor for class se.itu.systemet.rest.Param
Creates a new Param with the specified key and value.
price(double) - Method in class se.itu.systemet.domain.Product.Builder
 
price() - Method in class se.itu.systemet.domain.Product
Returns the price of this Product
PRICE_ORDER - Static variable in class se.itu.systemet.domain.Product
A Comparator that orders Products based on their price.
Product - Class in se.itu.systemet.domain
Represents a Product in a ProductLine.
Product(Product.Builder) - Constructor for class se.itu.systemet.domain.Product
Constructs a Product using a Product.Builder
Product(String, double, double, int) - Constructor for class se.itu.systemet.domain.Product
Constructs a new Product.
Product.Builder - Class in se.itu.systemet.domain
Defines a Builder for an Object.
Product.Exporter - Interface in se.itu.systemet.domain
Defines the interface for objects we can export a Product instance to.
productGroup(String) - Method in class se.itu.systemet.domain.Product.Builder
 
productGroup() - Method in class se.itu.systemet.domain.Product
Returns the product group of this Product

Q

Query - Interface in se.itu.systemet.rest
Defines a Query for an API access fetch operation.
QueryFactory - Class in se.itu.systemet.rest
Creates an implementation of a Query, to be used with an ApiAccess implementation.
QueryFactory() - Constructor for class se.itu.systemet.rest.QueryFactory
 

R

RestQuery - Class in se.itu.systemet.rest
An implementation of Query which represents the GET parameters for a query call to a REST API with key-value pairs separated by ampersand.

S

se.itu.systemet.domain - package se.itu.systemet.domain
Contains the domain objects for this client.
se.itu.systemet.gui - package se.itu.systemet.gui
Contains the classes concerned with the GUI for this client.
se.itu.systemet.rest - package se.itu.systemet.rest
Contains the classes and interfaces for representing API access objects, Query objects (and Query's component Param objects).

T

toQueryString() - Method in interface se.itu.systemet.rest.Query
Returns this Query as a String, in the format suitable for the target API.
toQueryString() - Method in class se.itu.systemet.rest.RestQuery
Returns a query string as a java.lang.String from this Query.
toString() - Method in class se.itu.systemet.domain.Product
Returns this Product as a String on the format:
toString() - Method in class se.itu.systemet.rest.Param
Returns this Param as a String on the format
type(String) - Method in class se.itu.systemet.domain.Product.Builder
 
type() - Method in class se.itu.systemet.domain.Product
Returns the product type of this Product

V

value() - Method in class se.itu.systemet.rest.Param
Returns the value for this Param, as a String
volume(int) - Method in class se.itu.systemet.domain.Product.Builder
 
volume() - Method in class se.itu.systemet.domain.Product
Returns the volume of this Product
VOLUME_ORDER - Static variable in class se.itu.systemet.domain.Product
A Comparator that orders Products based on their volume.
A B E F G H K N P Q R S T V 
Skip navigation links