public interface

RWAttributeLinks

com.microstrategy.web.objects.rw.RWAttributeLinks

Class Overview

Represents RW attribute links. It maintains the collections of RWAttributeLink.

Summary

Public Methods
abstract RWAttributeLink get(int i)
Returns i-th attribute link
abstract List<Set<String>> getLinksCollection()
Returns attribute links set collection.
abstract Map<String, Set<String>> getLinksMap()
Returns attribute links map.
abstract boolean hasAttributeLinks(WebObjectInfo objectInfo)
Returns whether the specified object has attribute links
abstract int size()
Returns number of attribute links in the collections.

Public Methods

public abstract RWAttributeLink get (int i)

Returns i-th attribute link

Parameters
i index
Returns
  • attribute link

public abstract List<Set<String>> getLinksCollection ()

Returns attribute links set collection.

The attributes that are linked together would be grouped to a set. These sets are returned as list items and should have no intersection.

For example:

If 3 pairs (A, B), (B, C) and (D, E) exists in the document, that means A, B and C are linked together, and D and E are linked together. They would be grouped as two set {A, B, C} and {D, E}. Then a list of these sets are returned.

Returns
  • attribute links set collection

public abstract Map<String, Set<String>> getLinksMap ()

Returns attribute links map.

This map maps a source attribute to a set, which contains all the target attributes that are linked with source attribute.

Returns
  • attribute links map

public abstract boolean hasAttributeLinks (WebObjectInfo objectInfo)

Returns whether the specified object has attribute links

Parameters
objectInfo an object
Returns
  • a boolean indicates whether the specified object has attribute links

public abstract int size ()

Returns number of attribute links in the collections.

Returns
  • number of attribute links in the collections