private Element createIndexedEndPoint(String name,String attrBinding,String attrLocation,String attrResponseLocation,int index,Boolean isDefault) throws DOMException {
  if (name == null) {
    throw new IllegalArgumentException("Null name");
  }
  if (attrBinding == null) {
    throw new IllegalArgumentException("Null binding");
  }
  if (attrLocation == null) {
    throw new IllegalArgumentException("Null location");
  }
  Element indexedEndPt=doc.createElement(name);
  indexedEndPt.setAttribute(SAMLNames.BINDING,attrBinding);
  indexedEndPt.setAttribute(SAMLNames.LOCATION,attrLocation);
  if (attrResponseLocation != null) {
    indexedEndPt.setAttribute(SAMLNames.RESPLOC,attrResponseLocation);
  }
  indexedEndPt.setAttribute(SAMLNames.INDEX,String.valueOf(index));
  if (isDefault != null) {
    indexedEndPt.setAttribute(SAMLNames.ISDEFAULT,isDefault.toString());
  }
  return indexedEndPt;
}

private Element createIndexedEndPoint ( String name , String attrBinding , String attrLocation , String attrResponseLocation , int index , Boolean isDefault ) throws DOMException { if ( name == null ) { throw new IllegalArgumentException ( "Null name" ) ; } if ( attrBinding == null ) { throw new IllegalArgumentException ( "Null binding" ) ; } if ( attrLocation == null ) { throw new IllegalArgumentException ( "Null location" ) ; } Element indexedEndPt = doc . createElement ( name ) ; indexedEndPt . setAttribute ( SAMLNames . BINDING , attrBinding ) ; indexedEndPt . setAttribute ( SAMLNames . LOCATION , attrLocation ) ; if ( attrResponseLocation != null ) { indexedEndPt . setAttribute ( SAMLNames . RESPLOC , attrResponseLocation ) ; } indexedEndPt . setAttribute ( SAMLNames . INDEX , String . valueOf ( index ) ) ; if ( isDefault != null ) { indexedEndPt . setAttribute ( SAMLNames . ISDEFAULT , isDefault . toString ( ) ) ; } return indexedEndPt ; }
create element of indexedendpoint type
