congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
XMLElementVerifier.attributePresent
Code IndexAdd Tabnine to your IDE (free)

How to use
attributePresent
method
in
org.apache.vysper.xml.fragment.XMLElementVerifier

Best Java code snippets using org.apache.vysper.xml.fragment.XMLElementVerifier.attributePresent (Showing top 7 results out of 315)

origin: org.apache.vysper/nbxml

public boolean attributePresent(String name) {
  return attributePresent("", name);
}
origin: org.apache.vysper/nbxml

/**
 * Checks whether all given attributes are present on the element.
 *
 * @param names
 *            the attributes to check
 * @return true iff all attributes are present, false otherwise
 */
public boolean allAttributesPresent(String... names) {
  if (names == null) {
    return false;
  }
  for (String name : names) {
    if (!attributePresent(name)) {
      return false;
    }
  }
  return true;
}
origin: org.apache.vysper/nbxml

/**
 * Checks whether any of the given attributes are present on the element.
 *
 * @param names
 *            the attributes to check
 * @return true iff at least one of the given attributes is present, false
 *         otherwise
 */
public boolean anyAttributePresent(String... names) {
  if (names == null) {
    return false;
  }
  for (String name : names) {
    if (attributePresent(name)) {
      return true;
    }
  }
  return false;
}
origin: org.apache.vysper/nbxml

public boolean attributeEquals(String namespaceUri, String name, String value) {
  return attributePresent(namespaceUri, name) && element.getAttributeValue(namespaceUri, name).equals(value);
}
origin: org.apache.vysper/vysper-core

String name = verifier.attributePresent("name") ? itemElement.getAttribute("name").getValue() : null;
if (name != null && name.length() > RosterConfiguration.ROSTER_ITEM_NAME_MAX_LENGTH) {
  throw new RosterNotAcceptableException("roster name too long: " + name.length());
SubscriptionType subscription = verifier.attributePresent("subscription") ? SubscriptionType
    .valueOf(itemElement.getAttribute("subscription").getValue().toUpperCase()) : SubscriptionType.NONE;
if (!parseSubscriptionTypes && subscription != SubscriptionType.REMOVE)
  askSubscriptionType = verifier.attributePresent("ask") ? AskSubscriptionType.valueOf("ASK_"
      + itemElement.getAttribute("ask").getValue().toUpperCase()) : AskSubscriptionType.NOT_SET;
origin: org.apache.vysper/vysper-core

if (xmlElementVerifier.attributePresent("id")) {
origin: com.synaptix/SynaptixServer

if (xmlElementVerifier.attributePresent("id")) {
org.apache.vysper.xml.fragmentXMLElementVerifierattributePresent

Popular methods of XMLElementVerifier

  • namespacePresent
  • <init>
  • allAttributesPresent
    Checks whether all given attributes are present on the element.
  • attributeEquals
  • isNamespaceAttribute
  • onlySubelementEquals
  • subElementPresent
  • subElementsPresentAtLeast
  • subElementsPresentAtMost
  • subElementsPresentExact

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Reference (javax.naming)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now