Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## es.upm.gib.mappingAPI2
Class View

    java.lang.Object
      es.upm.gib.mappingAPI2.View

All Implemented Interfaces:
  java.io.Serializable

    public class View

extends java.lang.Object
implements java.io.Serializable

This class represents a view of the entry of the mapping. It is represented by: - CustomData - List of paths of the view - List of bounds of the view

See Also:
  Serialized Form

Constructor Summary
`View(java.util.ArrayList<Path> paths)` Constructor: creates a new View object
`View(java.util.ArrayList<Path> paths, java.util.ArrayList<CoordinatesBound> bounds)` Constructor: creates a new View object

Method Summary
`void` | `addIdentifier(Identifier id)` This method adds the coordinates of the new identifier to the list
`boolean` | `equals(java.lang.Object obj)`
`int` | `getBoundNumber()` This method returns number of bounds
`java.util.ArrayList<CoordinatesBound>` | `getBounds()` This method returns the list of bounds of the mapping
`CustomData` | `getCustomData()` This method returns custom data
`java.util.ArrayList<Identifier>` | `getIdentifiers()` This method returns the coordinates of identifiers of the view
`CoordinatesBound` | `getInternalBound(int index)` This method returns the internal bound from the input position
`java.util.ArrayList<CoordinatesBound>` | `getInternalBounds()` This method returns the list of internal bounds of the view
`Path` | `getPath(int index)` This method returns the path from the input position of paths
`int` | `getPathNumber()` This method returns number of paths
`java.util.ArrayList<Path>` | `getPaths()` This method returns the list of paths
`boolean` | `isIdentifier(Identifier identifier)`
`boolean` | `isSubsumed(View compareView, es.upm.gib.owlbasicmodel2.OWLBasicModel2 model)` asd
`View` | `normalize()` creates a normalized View.
`static View` | `normalize(View view)` Normalization of a view.
`static View` | `normalize(View view, es.upm.gib.owlbasicmodel2.OWLBasicModel2 model)` Normalization of a view.
`void` | `setInternalBounds(java.util.ArrayList<CoordinatesBound> internalBounds)` This method set the input list of internal bounds into the view
`int` | `size()` returns the number of paths in this view
`java.lang.String` | `toString()` produces a String representation of the object View

Methods inherited from class java.lang.Object
`clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### View

    public View(java.util.ArrayList<Path> paths)

  Constructor: creates a new View object

  Parameters:
    `paths` - a vector of Path objects that defines the set of paths of this view

### View

    public View(java.util.ArrayList<Path> paths,
                java.util.ArrayList<CoordinatesBound> bounds)

  Constructor: creates a new View object

  Parameters:
    `paths` - a vector of Path objects that defines the set of paths of this view
    `bounds` - a vector of InternalBound objects that defines the internal bounds among the paths

Method Detail

### getCustomData

    public CustomData getCustomData()

  This method returns custom data

  Returns:
    custom data

### getBounds

    public java.util.ArrayList<CoordinatesBound> getBounds()

  This method returns the list of bounds of the mapping

  Returns:
    list of bounds

### getPathNumber

    public int getPathNumber()

  This method returns number of paths

  Returns:
    number of paths

### getBoundNumber

    public int getBoundNumber()

  This method returns number of bounds

  Returns:
    number of bounds

### getPath

    public Path getPath(int index)

  This method returns the path from the input position of paths

  Parameters:
    `index` - input position
  Returns:
    path from the input position of paths

### getPaths

    public java.util.ArrayList<Path> getPaths()

  This method returns the list of paths

  Returns:
    paths of the view

### getInternalBound

    public CoordinatesBound getInternalBound(int index)

  This method returns the internal bound from the input position

  Parameters:
    `index` - position
  Returns:
    internal bound

### getInternalBounds

    public java.util.ArrayList<CoordinatesBound> getInternalBounds()

  This method returns the list of internal bounds of the view

  Returns:
    list of internal bounds

### setInternalBounds

    public void setInternalBounds(java.util.ArrayList<CoordinatesBound> internalBounds)

  This method set the input list of internal bounds into the view

  Parameters:
    `internalBounds` -

### getIdentifiers

    public java.util.ArrayList<Identifier> getIdentifiers()

  This method returns the coordinates of identifiers of the view

  Returns:

### addIdentifier

    public void addIdentifier(Identifier id)

  This method adds the coordinates of the new identifier to the list

  Parameters:
    `id` -

### isIdentifier

    public boolean isIdentifier(Identifier identifier)

### normalize

    public View normalize()

  creates a normalized View.

  Given a View, the normalization process orders the paths following these criteria: 1. a shorter path precedes a longer path 2. if paths have the same length, the precedence is based on a lexografical order.

  The internal bounds are changed according to the changes made on the order of the paths

  Returns:
    a new normalized view

### toString

    public java.lang.String toString()

  produces a String representation of the object View

  Overrides:
    `toString` in class `java.lang.Object`
  Returns:
    a String representation of the object View

### equals

    public boolean equals(java.lang.Object obj)

  Overrides:
    `equals` in class `java.lang.Object`

### size

    public int size()

  returns the number of paths in this view

  Returns:
    the number of paths in this view

### isSubsumed

    public boolean isSubsumed(View compareView,
                              es.upm.gib.owlbasicmodel2.OWLBasicModel2 model)

  asd

  Parameters:
    `compareView` - asd
    `model` - asd
  Returns:
    asd

### normalize

    public static View normalize(View view)

  Normalization of a view. No associated RDF model is used in the normalization process

  Parameters:
    `view` - the view to normalize
  Returns:
    a normalized version of the given view. The returned view is semantically identical to the received one

### normalize

    public static View normalize(View view,
                                 es.upm.gib.owlbasicmodel2.OWLBasicModel2 model)

  Normalization of a view. An associated RDF model allows considering inverse properties in the normalization process

  Parameters:
    `view` - the view to normalize
    `model` - the RDF model to which the given view conforms (null indicates that no model is used)
  Returns:
    a normalized version of the given view. The returned view is semantically identical to the received one

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD