Package com.microstrategy.web.objects
Interface WebDirectedAttributes
-
public interface WebDirectedAttributesThe WebDirectedAttributes interface simply represents a collection ofWebDirectedAttributeobjects. This object can be obtained from aWebRelationshipobject.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebDirectedAttributeadd(WebAttribute attribute, int direction)Adds aWebDirectedAttributeobject containing the given attribute and direction to the collection.voidclear()Removes all items from the collection.java.util.Enumerationelements()Returns a java.util.Enumeration containing the items in the collection.WebDirectedAttributeget(int index)Returns theWebDirectedAttributeobject with the given index.booleanisEmpty()Returns whether the collection is empty.voidremove(int index)Removes the object with the given index from the collection.intsize()Returns the number of items in the collection.
-
-
-
Method Detail
-
add
WebDirectedAttribute add(WebAttribute attribute, int direction)
Adds aWebDirectedAttributeobject containing the given attribute and direction to the collection.- Parameters:
attribute- TheWebAttributewhich is the target of the directed attribute object.direction- The direction of the directed attribute, fromEnumDSSXMLAttributeDirection.- Returns:
- The newly created
WebDirectedAttributeobject.
-
get
WebDirectedAttribute get(int index) throws java.lang.IndexOutOfBoundsException
Returns theWebDirectedAttributeobject with the given index.- Parameters:
index- The index of the object to return from the collection.- Returns:
- The
WebDirectedAttributeobject with the given index. - Throws:
java.lang.IndexOutOfBoundsException- Thrown if the index does not exist in the collection.
-
remove
void remove(int index) throws java.lang.IndexOutOfBoundsExceptionRemoves the object with the given index from the collection.- Parameters:
index- The index of the object to remove.- Throws:
java.lang.IndexOutOfBoundsException- Thrown if the index does not exist in the collection.
-
size
int size()
Returns the number of items in the collection.- Returns:
- The size of the collection.
-
isEmpty
boolean isEmpty()
Returns whether the collection is empty.- Returns:
- True if the collection is empty, false if not.
-
clear
void clear()
Removes all items from the collection.
-
elements
java.util.Enumeration elements()
Returns a java.util.Enumeration containing the items in the collection.- Returns:
- An Enumeration object containing the objects in the collection.
-
-