Tabnine Logo
Tag.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
aQute.lib.tag.Tag
constructor

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

origin: biz.aQute.bnd/biz.aQute.repository

private void gav(Tag parent, Revision name) {
  new Tag(parent, "groupId", name.group);
  new Tag(parent, "artifactId", name.artifact);
  new Tag(parent, "version", name.version);
}
origin: biz.aQute.bnd/biz.aQute.bnd

private void gav(Tag parent, Revision name) {
  new Tag(parent, "groupId", name.group);
  new Tag(parent, "artifactId", name.artifact);
  new Tag(parent, "version", name.version);
}
origin: biz.aQute.bnd/biz.aQute.repository

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.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

Stream<Tag> propertiesTags(String element) {
  return properties.stream()
    .map(p -> new Tag(element).addAttribute("entry", p));
}
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/bnd

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/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

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.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

Tag getTag() {
  Tag option = new Tag("Option").addAttribute("label", label)
    .addAttribute("value", value);
  return option;
}
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.bnd

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 icon = new Tag("Icon").addAttribute("resource", resource)
    .addAttribute("size", size);
  return icon;
}
origin: biz.aQute.bnd/biz.aQute.bnd

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.bnd

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

private static Tag getTagFrom(String name, Jar jar) throws Exception {
  Tag tag = new Tag(name);
  tag.addAttribute("bsn", jar.getBsn());
  tag.addAttribute("name", jar.getName());
  tag.addAttribute("version", jar.getVersion());
  tag.addAttribute("lastmodified", jar.lastModified());
  return tag;
}
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;
}
origin: biz.aQute.bnd/biz.aQute.bnd

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.tagTag<init>

Javadoc

Construct a new Tag with a name.

Popular methods of Tag

  • 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.
  • 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

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JFileChooser (javax.swing)
  • JPanel (javax.swing)
  • Github Copilot alternatives
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