All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.basex.query.func.request.RequestAttributeNames Maven / Gradle / Ivy

There is a newer version: 11.6
Show newest version
package org.basex.query.func.request;

import java.util.*;

import org.basex.query.*;
import org.basex.query.func.*;
import org.basex.query.value.*;
import org.basex.query.value.seq.*;
import org.basex.util.list.*;

/**
 * Function implementation.
 *
 * @author BaseX Team, BSD License
 * @author Christian Gruen
 */
public final class RequestAttributeNames extends ApiFunc {
  @Override
  public Value value(final QueryContext qc) throws QueryException {
    final TokenList tl = new TokenList();
    for(final String name : Collections.list(request(qc).getAttributeNames())) tl.add(name);
    return StrSeq.get(tl);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy