congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CSSChildSelector
Code IndexAdd Tabnine to your IDE (free)

How to use
CSSChildSelector
in
org.apache.batik.css.engine.sac

Best Java code snippets using org.apache.batik.css.engine.sac.CSSChildSelector (Showing top 16 results out of 315)

origin: fr.avianey.apache-xmlgraphics/batik

/**
 * <b>SAC</b>: Implements {@link
 * SelectorFactory#createChildSelector(Selector,SimpleSelector)}.
 */
public DescendantSelector createChildSelector(Selector parent,
                       SimpleSelector child)
  throws CSSException {
  return new CSSChildSelector(parent, child);
}
origin: org.milyn/milyn-magger

  /**
   * Returns a representation of the selector.
   */
  public String toString() {
  SimpleSelector s = getSimpleSelector();
  if (s.getSelectorType() == SAC_PSEUDO_ELEMENT_SELECTOR) {
    return "" + getAncestorSelector() + s;
  }
  return getAncestorSelector() + " > " + s;
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

  /**
   * Returns a representation of the selector.
   */
  public String toString() {
    SimpleSelector s = getSimpleSelector();
    if (s.getSelectorType() == SAC_PSEUDO_ELEMENT_SELECTOR) {
      return String.valueOf( getAncestorSelector() ) + s;
    }
    return getAncestorSelector() + " > " + s;
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * <b>SAC</b>: Implements {@link
 * SelectorFactory#createChildSelector(Selector,SimpleSelector)}.
 */
public DescendantSelector createChildSelector(Selector parent,
                       SimpleSelector child)
  throws CSSException {
  return new CSSChildSelector(parent, child);
}
origin: org.apache.xmlgraphics/batik-css

  /**
   * Returns a representation of the selector.
   */
  public String toString() {
    SimpleSelector s = getSimpleSelector();
    if (s.getSelectorType() == SAC_PSEUDO_ELEMENT_SELECTOR) {
      return String.valueOf( getAncestorSelector() ) + s;
    }
    return getAncestorSelector() + " > " + s;
  }
}
origin: org.milyn/milyn-magger

/**
 * <b>SAC</b>: Implements {@link
 * SelectorFactory#createChildSelector(Selector,SimpleSelector)}.
 */    
public DescendantSelector createChildSelector(Selector parent,
           SimpleSelector child)
throws CSSException {
return new CSSChildSelector(parent, child);
}
origin: apache/batik

  /**
   * Returns a representation of the selector.
   */
  public String toString() {
    SimpleSelector s = getSimpleSelector();
    if (s.getSelectorType() == SAC_PSEUDO_ELEMENT_SELECTOR) {
      return String.valueOf( getAncestorSelector() ) + s;
    }
    return getAncestorSelector() + " > " + s;
  }
}
origin: apache/batik

/**
 * <b>SAC</b>: Implements {@link
 * SelectorFactory#createChildSelector(Selector,SimpleSelector)}.
 */
public DescendantSelector createChildSelector(Selector parent,
                       SimpleSelector child)
  throws CSSException {
  return new CSSChildSelector(parent, child);
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Tests whether this selector matches the given element.
 */
public boolean match(Element e, String pseudoE) {
  Node n = e.getParentNode();
  if (n != null && n.getNodeType() == Node.ELEMENT_NODE) {
    return ((ExtendedSelector)getAncestorSelector()).match((Element)n,
                                null) &&
        ((ExtendedSelector)getSimpleSelector()).match(e, pseudoE);
  }
  return false;
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Tests whether this selector matches the given element.
 */
public boolean match(Element e, String pseudoE) {
  Node n = e.getParentNode();
  if (n != null && n.getNodeType() == Node.ELEMENT_NODE) {
    return ((ExtendedSelector)getAncestorSelector()).match((Element)n,
                                null) &&
        ((ExtendedSelector)getSimpleSelector()).match(e, pseudoE);
  }
  return false;
}
origin: org.milyn/milyn-magger

/**
 * Fills the given set with the attribute names found in this selector.
 */
public void fillAttributeSet(Set attrSet) {
  ((ExtendedSelector)getAncestorSelector()).fillAttributeSet(attrSet);
  ((ExtendedSelector)getSimpleSelector()).fillAttributeSet(attrSet);
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Fills the given set with the attribute names found in this selector.
 */
public void fillAttributeSet(Set attrSet) {
  ((ExtendedSelector)getAncestorSelector()).fillAttributeSet(attrSet);
  ((ExtendedSelector)getSimpleSelector()).fillAttributeSet(attrSet);
}
origin: org.milyn/milyn-magger

/**
 * Tests whether this selector matches the given element.
 */
public boolean match(Element e, String pseudoE) {
Node n = e.getParentNode();
if (n != null && n.getNodeType() == Node.ELEMENT_NODE) {
  return ((ExtendedSelector)getAncestorSelector()).match((Element)n,
                                null) &&
    ((ExtendedSelector)getSimpleSelector()).match(e, pseudoE);
}
return false;
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Fills the given set with the attribute names found in this selector.
 */
public void fillAttributeSet(Set attrSet) {
  ((ExtendedSelector)getAncestorSelector()).fillAttributeSet(attrSet);
  ((ExtendedSelector)getSimpleSelector()).fillAttributeSet(attrSet);
}
origin: apache/batik

/**
 * Fills the given set with the attribute names found in this selector.
 */
public void fillAttributeSet(Set attrSet) {
  ((ExtendedSelector)getAncestorSelector()).fillAttributeSet(attrSet);
  ((ExtendedSelector)getSimpleSelector()).fillAttributeSet(attrSet);
}
origin: apache/batik

/**
 * Tests whether this selector matches the given element.
 */
public boolean match(Element e, String pseudoE) {
  Node n = e.getParentNode();
  if (n != null && n.getNodeType() == Node.ELEMENT_NODE) {
    return ((ExtendedSelector)getAncestorSelector()).match((Element)n,
                                null) &&
        ((ExtendedSelector)getSimpleSelector()).match(e, pseudoE);
  }
  return false;
}
org.apache.batik.css.engine.sacCSSChildSelector

Javadoc

This class provides an implementation of the org.w3c.css.sac.DescendantSelector interface.

Most used methods

  • <init>
    Creates a new CSSChildSelector object.
  • getAncestorSelector
  • getSimpleSelector

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JOptionPane (javax.swing)
  • Top Sublime Text 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