public AccessibleRelation[] toArray(){
  if (relations == null) {
    return new AccessibleRelation[0];
  }
 else {
    AccessibleRelation[] relationArray=new AccessibleRelation[relations.size()];
    for (int i=0; i < relationArray.length; i++) {
      relationArray[i]=(AccessibleRelation)relations.elementAt(i);
    }
    return relationArray;
  }
}

public AccessibleRelation [ ] toArray ( ) { if ( relations == null ) { return new AccessibleRelation [ 0 ] ; } else { AccessibleRelation [ ] relationArray = new AccessibleRelation [ relations . size ( ) ] ; for ( int i = 0 ; i < relationArray . length ; i ++ ) { relationArray [ i ] = ( AccessibleRelation ) relations . elementAt ( i ) ; } return relationArray ; } }
returns the current relation set as an array of accessiblerelation
