Codota Logo
XmlDom.getAttribute
Code IndexAdd Codota to your IDE (free)

How to use
getAttribute
method
in
eu.europa.ec.markt.dss.validation102853.xml.XmlDom

Best Java code snippets using eu.europa.ec.markt.dss.validation102853.xml.XmlDom.getAttribute (Showing top 11 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: arhs/sd-dss

/**
 * @return the {@code List} of signature id(s) contained in the simpleReport
 */
public List<String> getSignatureIdList() {
  final List<String> signatureIdList = new ArrayList<String>();
  final List<XmlDom> signatures = getElements("/SimpleReport/Signature");
  for (final XmlDom signature : signatures) {
    signatureIdList.add(signature.getAttribute("Id"));
  }
  return signatureIdList;
}
origin: arhs/sd-dss

/**
 * @return the list of signature id contained in the simpleReport
 * @deprecated FROM 4.3.0-RC, use getSignatureIdList()
 */
@Deprecated
public List<String> getSignatureIds() {
  final List<String> signatureIdList = new ArrayList<String>();
  final List<XmlDom> signatures = getElements("/SimpleReport/Signature");
  for (final XmlDom signature : signatures) {
    signatureIdList.add(signature.getAttribute("Id"));
  }
  return signatureIdList;
}
origin: arhs/sd-dss

/**
 * This method returns the {@code List} of {@code String} id based on the given XPath query and set of optional parameters.
 *
 * @param xPath      XPath query
 * @param parameters array of {@code String }parameters
 * @return {@code List} of id
 */
private List<String> getIdList(final String xPath, final String... parameters) {
  final List<String> idList = new ArrayList<String>();
  final List<XmlDom> elements = getElements(xPath, parameters);
  for (final XmlDom element : elements) {
    final String id = element.getAttribute("Id");
    idList.add(id);
  }
  return idList;
}
origin: arhs/sd-dss

/**
 * This method returns the list of certificates in the chain of the main signature.
 *
 * @param signatureId The identifier of the signature.
 * @return list of certificate's dss id for the given signature.
 */
public List<Integer> getSignatureCertificateChain(final String signatureId) {
  final ArrayList<Integer> certificateChain = new ArrayList<Integer>();
  final List<XmlDom> certificateId = getElements("/DiagnosticData/Signature[@Id='%s']/CertificateChain/ChainCertificate", signatureId);
  for (final XmlDom xmlDom : certificateId) {
    final String id = xmlDom.getAttribute("Id");
    certificateChain.add(Integer.valueOf(id));
  }
  return certificateChain;
}
origin: arhs/sd-dss

/**
 * This method returns the list of identifier of the timestamps related to the given signature.
 *
 * @param signatureId The identifier of the signature.
 * @return The list of identifier of the timestamps
 */
public List<String> getTimestampIdList(final String signatureId) {
  final List<String> timestampIdList = new ArrayList<String>();
  final List<XmlDom> timestamps = getElements("/DiagnosticData/Signature[@Id='%s']/Timestamps/Timestamp", signatureId);
  for (final XmlDom timestamp : timestamps) {
    final String timestampId = timestamp.getAttribute("Id");
    timestampIdList.add(timestampId);
  }
  return timestampIdList;
}
origin: arhs/sd-dss

/**
 * This method returns the list of the signature id. The result is stored in the local variable.
 *
 * @return list of signature ids, is never null, can be empty
 */
public List<String> getSignatureIdList() {
  if (signatureIdList == null) {
    signatureIdList = new ArrayList<String>();
    final List<XmlDom> signatures = getElements("/DiagnosticData/Signature");
    for (final XmlDom signature : signatures) {
      final String signatureId = signature.getAttribute("Id");
      signatureIdList.add(signatureId);
    }
  }
  return signatureIdList;
}
origin: arhs/sd-dss

/**
 * Converts the list of {@code XmlDom} to {@code Map} of {@code String}, {@code String}. The children of the node are not taken
 * into account.
 *
 * @param xmlDomList    the list of {@code XmlDom} to convert
 * @param attributeName the name of the attribute to use as value
 * @return converted {@code Map} of {@code String}, {@code String} corresponding to the element content and the attribute value.
 */
public static Map<String, String> convertToStringMap(final List<XmlDom> xmlDomList, final String attributeName) {
  final Map<String, String> stringMap = new HashMap<String, String>();
  for (final XmlDom xmlDom : xmlDomList) {
    final String key = xmlDom.getText();
    final String value = xmlDom.getAttribute(attributeName);
    stringMap.put(key, value);
  }
  return stringMap;
}
origin: arhs/sd-dss

/**
 * This method returns the list of identifier of the timestamps related to the given signature.
 *
 * @param signatureId   The identifier of the signature.
 * @param timestampType The {@code TimestampType}
 * @return The list of identifier of the timestamps
 */
public List<String> getTimestampIdList(final String signatureId, final TimestampType timestampType) {
  final List<String> timestampIdList = new ArrayList<String>();
  final List<XmlDom> timestamps = getElements("/DiagnosticData/Signature[@Id='%s']/Timestamps/Timestamp[@Type='%s']", signatureId, timestampType.name());
  for (final XmlDom timestamp : timestamps) {
    final String timestampId = timestamp.getAttribute("Id");
    timestampIdList.add(timestampId);
  }
  return timestampIdList;
}
origin: arhs/sd-dss

final String dateString = xmlDom.getAttribute(attributeName);
String format = xmlDom.getAttribute("Format");
if (DSSUtils.isBlank(format)) {
  format = "yyyy-MM-dd";
origin: arhs/sd-dss

if (SIGNED_SIGNATURE.equals(nodeName)) {
  final String signatureId = xmlDom.getAttribute(ID);
  addSignaturePoe(signatureId, date);
  continue;
final String category = xmlDom.getAttribute(CATEGORY);
final String digestValue = xmlDom.getValue("./DigestValue/text()");
if (CERTIFICATE.toUpperCase().equals(category)) {
origin: arhs/sd-dss

if (error != null) {
  final String algorithmExpirationDateString = error.getAttribute("AlgorithmExpirationDate");
  if (DSSUtils.isNotBlank(algorithmExpirationDateString)) {
eu.europa.ec.markt.dss.validation102853.xmlXmlDomgetAttribute

Javadoc

Retrieves an attribute value by name.

Popular methods of XmlDom

  • getText
  • <init>
  • exists
  • getBoolValue
  • getElement
  • getElements
    The list of elements corresponding the given XPath query and parameters.
  • getRootElement
  • getValue
  • addNamespacePrefix
  • convertToStringDateMap
    Converts the list of XmlDom to Map of String, Date. The children of the node are not taken into acco
  • convertToStringList
    Converts the list of XmlDom to List of String. The children of the node are not taken into account.
  • convertToStringMap
    Converts the list of XmlDom to Map of String, String. The children of the node are not taken into ac
  • convertToStringList,
  • convertToStringMap,
  • createXPathExpression,
  • format,
  • getAttributes,
  • getCountValue,
  • getIntValue,
  • getName,
  • getNodeList

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JTable (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now