public void addSubstitutionGroup(XSElementDecl[] elements){
  XSElementDecl subHead, element;
  Vector subGroup;
  for (int i=elements.length - 1; i >= 0; i--) {
    element=elements[i];
    subHead=element.fSubGroup;
    subGroup=(Vector)fSubGroupsB.get(subHead);
    if (subGroup == null) {
      subGroup=new Vector();
      fSubGroupsB.put(subHead,subGroup);
    }
    subGroup.addElement(element);
  }
}

public void addSubstitutionGroup ( XSElementDecl [ ] elements ) { XSElementDecl subHead , element ; Vector subGroup ; for ( int i = elements . length - 1 ; i >= 0 ; i -- ) { element = elements [ i ] ; subHead = element . fSubGroup ; subGroup = ( Vector ) fSubGroupsB . get ( subHead ) ; if ( subGroup == null ) { subGroup = new Vector ( ) ; fSubGroupsB . put ( subHead , subGroup ) ; } subGroup . addElement ( element ) ; } }
add a list of substitution group information .
