Tabnine Logo
Tag.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
aQute.lib.tag.Tag

Best Java code snippets using aQute.lib.tag.Tag.getName (Showing top 20 results out of 315)

origin: biz.aQute/bndlib

/**
 * Return only the tags of the first level of descendants that match the
 * name.
 */
public List<Object> getContents(String tag) {
  List<Object> out = new ArrayList<Object>();
  for (Object o : out) {
    if (o instanceof Tag && ((Tag) o).getName().equals(tag))
      out.add(o);
  }
  return out;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * Return only the tags of the first level of descendants that match the
 * name.
 */
public List<Object> getContents(String tag) {
  List<Object> out = new ArrayList<>();
  for (Object o : content) {
    if (o instanceof Tag && ((Tag) o).getName()
      .equals(tag))
      out.add(o);
  }
  return out;
}
origin: biz.aQute.bnd/bndlib

/**
 * Return only the tags of the first level of descendants that match the
 * name.
 */
public List<Object> getContents(String tag) {
  List<Object> out = new ArrayList<Object>();
  for (Object o : out) {
    if (o instanceof Tag && ((Tag) o).getName().equals(tag))
      out.add(o);
  }
  return out;
}
origin: biz.aQute/bnd

/**
 * Return only the tags of the first level of descendants that match the
 * name.
 */
public List<Object> getContents(String tag) {
  List<Object> out = new ArrayList<Object>();
  for (Object o : out) {
    if (o instanceof Tag && ((Tag) o).getName().equals(tag))
      out.add(o);
  }
  return out;
}
origin: biz.aQute.bnd/bnd

/**
 * Return only the tags of the first level of descendants that match the
 * name.
 */
public List<Object> getContents(String tag) {
  List<Object> out = new ArrayList<Object>();
  for (Object o : out) {
    if (o instanceof Tag && ((Tag) o).getName().equals(tag))
      out.add(o);
  }
  return out;
}
origin: biz.aQute.bnd/biz.aQute.bnd

/**
 * Return only the tags of the first level of descendants that match the
 * name.
 */
public List<Object> getContents(String tag) {
  List<Object> out = new ArrayList<>();
  for (Object o : content) {
    if (o instanceof Tag && ((Tag) o).getName()
      .equals(tag))
      out.add(o);
  }
  return out;
}
origin: biz.aQute.bnd/biz.aQute.repository

/**
 * Return only the tags of the first level of descendants that match the
 * name.
 */
public List<Object> getContents(String tag) {
  List<Object> out = new ArrayList<>();
  for (Object o : content) {
    if (o instanceof Tag && ((Tag) o).getName()
      .equals(tag))
      out.add(o);
  }
  return out;
}
origin: biz.aQute.bnd/biz.aQute.repository

public boolean match(String search, Tag child, Tag mapping) {
  String target = child.getName();
  String sn = null;
  String tn = null;
  if (search.equals("*"))
    return true;
  int s = search.indexOf(':');
  if (s > 0) {
    sn = search.substring(0, s);
    search = search.substring(s + 1);
  }
  int t = target.indexOf(':');
  if (t > 0) {
    tn = target.substring(0, t);
    target = target.substring(t + 1);
  }
  if (!search.equals(target)) // different tag names
    return false;
  if (mapping == null) {
    return tn == sn || (sn != null && sn.equals(tn));
  }
  String suri = sn == null ? mapping.getAttribute("xmlns") : mapping.getAttribute("xmlns:" + sn);
  String turi = tn == null ? child.findRecursiveAttribute("xmlns") : child.findRecursiveAttribute("xmlns:" + tn);
  return ((turi == null) && (suri == null)) || ((turi != null) && turi.equals(suri));
}
origin: biz.aQute.bnd/biz.aQute.repository

if (o instanceof Tag) {
  Tag child = (Tag) o;
  if (child.getName()
    .equals(elementName) || elementName.equals("*"))
    child.select(remainder, results, mapping);
origin: biz.aQute.bnd/biz.aQute.bndlib

public boolean match(String search, Tag child, Tag mapping) {
  String target = child.getName();
  String sn = null;
  String tn = null;
  if (search.equals("*"))
    return true;
  int s = search.indexOf(':');
  if (s > 0) {
    sn = search.substring(0, s);
    search = search.substring(s + 1);
  }
  int t = target.indexOf(':');
  if (t > 0) {
    tn = target.substring(0, t);
    target = target.substring(t + 1);
  }
  if (!search.equals(target)) // different tag names
    return false;
  if (mapping == null) {
    return tn == sn || (sn != null && sn.equals(tn));
  }
  String suri = sn == null ? mapping.getAttribute("xmlns") : mapping.getAttribute("xmlns:" + sn);
  String turi = tn == null ? child.findRecursiveAttribute("xmlns") : child.findRecursiveAttribute("xmlns:" + tn);
  return ((turi == null) && (suri == null)) || ((turi != null) && turi.equals(suri));
}
origin: biz.aQute/bndlib

if (o instanceof Tag) {
  Tag child = (Tag) o;
  if (child.getName().equals(elementName) || elementName.equals("*"))
    child.select(remainder, results, mapping);
origin: biz.aQute.bnd/bndlib

public boolean match(String search, Tag child, Tag mapping) {
  String target = child.getName();
  String sn = null;
  String tn = null;
  if (search.equals("*"))
    return true;
  int s = search.indexOf(':');
  if (s > 0) {
    sn = search.substring(0, s);
    search = search.substring(s + 1);
  }
  int t = target.indexOf(':');
  if (t > 0) {
    tn = target.substring(0, t);
    target = target.substring(t + 1);
  }
  if (!search.equals(target)) // different tag names
    return false;
  if (mapping == null) {
    return tn == sn || (sn != null && sn.equals(tn));
  }
  String suri = sn == null ? mapping.getAttribute("xmlns") : mapping.getAttribute("xmlns:" + sn);
  String turi = tn == null ? child.findRecursiveAttribute("xmlns") : child.findRecursiveAttribute("xmlns:" + tn);
  return ((turi == null) && (suri == null)) || ((turi != null) && turi.equals(suri));
}
origin: biz.aQute.bnd/bndlib

if (o instanceof Tag) {
  Tag child = (Tag) o;
  if (child.getName().equals(elementName) || elementName.equals("*"))
    child.select(remainder, results, mapping);
origin: biz.aQute.bnd/bnd

if (o instanceof Tag) {
  Tag child = (Tag) o;
  if (child.getName().equals(elementName) || elementName.equals("*"))
    child.select(remainder, results, mapping);
origin: biz.aQute.bnd/biz.aQute.bnd

public boolean match(String search, Tag child, Tag mapping) {
  String target = child.getName();
  String sn = null;
  String tn = null;
  if (search.equals("*"))
    return true;
  int s = search.indexOf(':');
  if (s > 0) {
    sn = search.substring(0, s);
    search = search.substring(s + 1);
  }
  int t = target.indexOf(':');
  if (t > 0) {
    tn = target.substring(0, t);
    target = target.substring(t + 1);
  }
  if (!search.equals(target)) // different tag names
    return false;
  if (mapping == null) {
    return tn == sn || (sn != null && sn.equals(tn));
  }
  String suri = sn == null ? mapping.getAttribute("xmlns") : mapping.getAttribute("xmlns:" + sn);
  String turi = tn == null ? child.findRecursiveAttribute("xmlns") : child.findRecursiveAttribute("xmlns:" + tn);
  return ((turi == null) && (suri == null)) || ((turi != null) && turi.equals(suri));
}
origin: biz.aQute.bnd/biz.aQute.bndlib

if (o instanceof Tag) {
  Tag child = (Tag) o;
  if (child.getName()
    .equals(elementName) || elementName.equals("*"))
    child.select(remainder, results, mapping);
origin: biz.aQute/bnd

public boolean match(String search, Tag child, Tag mapping) {
  String target = child.getName();
  String sn = null;
  String tn = null;
  if (search.equals("*"))
    return true;
  int s = search.indexOf(':');
  if (s > 0) {
    sn = search.substring(0, s);
    search = search.substring(s + 1);
  }
  int t = target.indexOf(':');
  if (t > 0) {
    tn = target.substring(0, t);
    target = target.substring(t + 1);
  }
  if (!search.equals(target)) // different tag names
    return false;
  if (mapping == null) {
    return tn == sn || (sn != null && sn.equals(tn));
  } else {
    String suri = sn == null ? mapping.getAttribute("xmlns") : mapping
        .getAttribute("xmlns:" + sn);
    String turi = tn == null ? child.findRecursiveAttribute("xmlns") : child
        .findRecursiveAttribute("xmlns:" + tn);
    return turi == suri || (turi != null && suri != null && turi.equals(suri));
  }
}
origin: biz.aQute/bndlib

public boolean match(String search, Tag child, Tag mapping) {
  String target = child.getName();
  String sn = null;
  String tn = null;
  if (search.equals("*"))
    return true;
  int s = search.indexOf(':');
  if (s > 0) {
    sn = search.substring(0, s);
    search = search.substring(s + 1);
  }
  int t = target.indexOf(':');
  if (t > 0) {
    tn = target.substring(0, t);
    target = target.substring(t + 1);
  }
  if (!search.equals(target)) // different tag names
    return false;
  if (mapping == null) {
    return tn == sn || (sn != null && sn.equals(tn));
  }
  String suri = sn == null ? mapping.getAttribute("xmlns") : mapping.getAttribute("xmlns:" + sn);
  String turi = tn == null ? child.findRecursiveAttribute("xmlns") : child.findRecursiveAttribute("xmlns:" + tn);
  return ((turi == null) && (suri == null)) || ((turi != null) && turi.equals(suri));
}
origin: biz.aQute/bnd

if (o instanceof Tag) {
  Tag child = (Tag) o;
  if (child.getName().equals(elementName) || elementName.equals("*"))
    child.select(remainder, results, mapping);
origin: biz.aQute.bnd/bnd

public boolean match(String search, Tag child, Tag mapping) {
  String target = child.getName();
  String sn = null;
  String tn = null;
  if (search.equals("*"))
    return true;
  int s = search.indexOf(':');
  if (s > 0) {
    sn = search.substring(0, s);
    search = search.substring(s + 1);
  }
  int t = target.indexOf(':');
  if (t > 0) {
    tn = target.substring(0, t);
    target = target.substring(t + 1);
  }
  if (!search.equals(target)) // different tag names
    return false;
  if (mapping == null) {
    return tn == sn || (sn != null && sn.equals(tn));
  }
  String suri = sn == null ? mapping.getAttribute("xmlns") : mapping.getAttribute("xmlns:" + sn);
  String turi = tn == null ? child.findRecursiveAttribute("xmlns") : child.findRecursiveAttribute("xmlns:" + tn);
  return ((turi == null) && (suri == null)) || ((turi != null) && turi.equals(suri));
}
aQute.lib.tagTaggetName

Javadoc

Return the name of the tag.

Popular methods of Tag

  • <init>
    Construct a new Tag with a name and a set of attributes. The attributes are given as ( name, value )
  • addAttribute
  • addContent
    Add a new content string.
  • print
  • escape
    Escape a string, do entity conversion.
  • findRecursiveAttribute
  • getAttribute
    Return the attribute value or a default if not defined.
  • getContentsAsString
    convenient method to get the contents in a StringBuilder.
  • getNameSpace
  • match
  • select
  • spaces
    Make spaces.
  • select,
  • spaces,
  • formatted,
  • computeArrayElementName,
  • convertDTO,
  • fromDTO,
  • getFields,
  • getPath,
  • invalid

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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