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

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

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

origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * Construct a new Tag with a name and a set of attributes. The attributes
 * are given as ( name, value ) ...
 */
public Tag(String name, String[] attributes, Object... contents) {
  this(name, contents);
  for (int i = 0; i < attributes.length; i += 2)
    addAttribute(attributes[i], attributes[i + 1]);
}
origin: biz.aQute/bndlib

/**
 * Construct a new Tag with a name and a set of attributes. The attributes
 * are given as ( name, value ) ...
 */
public Tag(String name, String[] attributes, Object... contents) {
  this(name, contents);
  for (int i = 0; i < attributes.length; i += 2)
    addAttribute(attributes[i], attributes[i + 1]);
}
origin: biz.aQute.bnd/biz.aQute.repository

/**
 * Construct a new Tag with a name and a set of attributes. The attributes
 * are given as ( name, value ) ...
 */
public Tag(String name, String[] attributes, Object... contents) {
  this(name, contents);
  for (int i = 0; i < attributes.length; i += 2)
    addAttribute(attributes[i], attributes[i + 1]);
}
origin: biz.aQute.bnd/bndlib

/**
 * Construct a new Tag with a name and a set of attributes. The attributes
 * are given as ( name, value ) ...
 */
public Tag(String name, String[] attributes, Object... contents) {
  this(name, contents);
  for (int i = 0; i < attributes.length; i += 2)
    addAttribute(attributes[i], attributes[i + 1]);
}
origin: biz.aQute.bnd/bnd

/**
 * Construct a new Tag with a name and a set of attributes. The attributes
 * are given as ( name, value ) ...
 */
public Tag(String name, String[] attributes, Object... contents) {
  this(name, contents);
  for (int i = 0; i < attributes.length; i += 2)
    addAttribute(attributes[i], attributes[i + 1]);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * Note that calling {@link #name(String)} sets increment to
 * {@link System#currentTimeMillis()}. In order to retain backward
 * compatibility that is not change. Therefore, in order to specify a value
 * {@link #increment(long)} should be called after.
 *
 * @param increment
 * @return this
 */
public XMLResourceGenerator increment(long increment) {
  repository.addAttribute("increment", increment);
  return this;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

Tag getTag() {
  Tag icon = new Tag("Icon").addAttribute("resource", resource)
    .addAttribute("size", size);
  return icon;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

Tag getTag() {
  Tag option = new Tag("Option").addAttribute("label", label)
    .addAttribute("value", value);
  return option;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public XMLResourceGenerator referral(URI reference, int depth) {
  Tag referall = new Tag(repository, "referral");
  referall.addAttribute("url", reference);
  if (depth > 0)
    referall.addAttribute("depth", depth);
  return this;
}
origin: biz.aQute.bnd/biz.aQute.bnd

Tag getTag() {
  Tag option = new Tag("Option").addAttribute("label", label)
    .addAttribute("value", value);
  return option;
}
origin: biz.aQute/bnd

private void doCoverage(Tag report, Document doc, XPath xpath) throws XPathExpressionException {
  int bad = Integer.parseInt(xpath.evaluate("count(//method[count(ref)<2])", doc));
  int all = Integer.parseInt(xpath.evaluate("count(//method)", doc));
  report.addAttribute("coverage-bad", bad);
  report.addAttribute("coverage-all", all);
}
origin: biz.aQute.bnd/biz.aQute.bnd

Tag getTag() {
  Tag icon = new Tag("Icon").addAttribute("resource", resource)
    .addAttribute("size", size);
  return icon;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public void addNamespaces(Tag tag) {
  for (Map.Entry<String, String> entry : namespaces.entrySet())
    tag.addAttribute("xmlns:" + entry.getValue(), entry.getKey());
}
origin: biz.aQute.bnd/bndlib

Tag getTag() {
  Tag designate = new Tag("Designate");
  if (factory) {
    designate.addAttribute("factoryPid", pid);
  } else {
    designate.addAttribute("pid", pid);
  }
  new Tag(designate, "Object").addAttribute("ocdref", ocdRef);
  
  return designate;
  
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private void directives(Tag cr, Map<String, String> directives) {
  directives.entrySet()
    .forEach(e -> {
    Tag d = new Tag(cr, "directive");
    d.addAttribute("name", e.getKey());
    d.addAttribute("value", e.getValue());
  });
}
origin: biz.aQute.bnd/biz.aQute.bnd

private void directives(Tag cr, Map<String, String> directives) {
  directives.entrySet()
    .forEach(e -> {
    Tag d = new Tag(cr, "directive");
    d.addAttribute("name", e.getKey());
    d.addAttribute("value", e.getValue());
  });
}
origin: biz.aQute.bnd/biz.aQute.bndlib

Tag getInnerTag(Namespaces namespaces) {
  Tag designate = new Tag("Designate");
  if (factory) {
    designate.addAttribute("factoryPid", pid);
  } else {
    designate.addAttribute("pid", pid);
  }
  addAttributes(designate, namespaces);
  new Tag(designate, "Object").addAttribute("ocdref", ocdRef);
  return designate;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

Stream<Tag> propertiesTags(String element) {
  return properties.stream()
    .map(p -> new Tag(element).addAttribute("entry", p));
}
origin: biz.aQute.bnd/biz.aQute.bnd

public Tag toTag() {
  Tag top = new Tag("metadata");
  if (modelVersion != null)
    top.addAttribute("modelVersion", modelVersion);
  new Tag(top, "groupId").addContent(group);
  new Tag(top, "artifactId").addContent(artifact);
  return top;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

Tag getOuterTag() {
  Tag metadata = new Tag("metatype:MetaData").addAttribute("xmlns:metatype",
    MetatypeVersion.VERSION_1_3.getNamespace());
  Namespaces namespaces = new Namespaces();
  String xmlns = MetatypeVersion.VERSION_1_3.getNamespace();
  namespaces.registerNamespace("metatype", xmlns);
  addNamespaces(namespaces, xmlns);
  namespaces.addNamespaces(metadata);
  metadata.addContent(getInnerTag(namespaces));
  return metadata;
}
aQute.lib.tagTagaddAttribute

Javadoc

Add a new attribute.

Popular methods of Tag

  • <init>
    Construct a new Tag with a name and a set of attributes. The attributes are given as ( name, value )
  • 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.
  • getName
    Return the name of the tag.
  • getNameSpace
  • match
  • select
  • spaces
    Make spaces.
  • select,
  • spaces,
  • formatted,
  • computeArrayElementName,
  • convertDTO,
  • fromDTO,
  • getFields,
  • getPath,
  • invalid

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Vim 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