Tabnine Logo
URIValue
Code IndexAdd Tabnine to your IDE (free)

How to use
URIValue
in
org.apache.batik.css.engine.value

Best Java code snippets using org.apache.batik.css.engine.value.URIValue (Showing top 20 results out of 315)

origin: apache/batik

  /**
   * Implements {@link
   * ValueManager#createStringValue(short,String,CSSEngine)}.
   */
  public Value createStringValue(short type, String value, CSSEngine engine)
    throws DOMException {
    switch (type) {
    case CSSPrimitiveValue.CSS_IDENT:
      if (value.equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) {
        return ValueConstants.NONE_VALUE;
      }
      break;

    case CSSPrimitiveValue.CSS_URI:
      return new URIValue(value,
                resolveURI(engine.getCSSBaseURI(), value));
    }
    throw createInvalidStringTypeDOMException(type);
  }
}
origin: org.netbeans.modules/org-netbeans-modules-visualweb-designer-cssengine

String urlString = uv.getRawCssText();
origin: org.apache.xmlgraphics/batik-css

  /**
   * Implements {@link
   * ValueManager#createStringValue(short,String,CSSEngine)}.
   */
  public Value createStringValue(short type, String value, CSSEngine engine)
    throws DOMException {
    switch (type) {
    case CSSPrimitiveValue.CSS_IDENT:
      if (value.equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) {
        return ValueConstants.NONE_VALUE;
      }
      break;

    case CSSPrimitiveValue.CSS_URI:
      return new URIValue(value,
                resolveURI(engine.getCSSBaseURI(), value));
    }
    throw createInvalidStringTypeDOMException(type);
  }
}
origin: org.apache.xmlgraphics/batik-css

  /**
   * Implements {@link
   * ValueManager#createStringValue(short,String,CSSEngine)}.
   */
  public Value createStringValue(short type, String value, CSSEngine engine)
    throws DOMException {
    switch (type) {
    case CSSPrimitiveValue.CSS_IDENT:
      if (value.equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) {
        return ValueConstants.NONE_VALUE;
      }
      break;

    case CSSPrimitiveValue.CSS_URI:
      return new URIValue(value,
                resolveURI(engine.getCSSBaseURI(), value));
    }
    throw createInvalidStringTypeDOMException(type);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

  /**
   * Implements {@link
   * ValueManager#createStringValue(short,String,CSSEngine)}.
   */
  public Value createStringValue(short type, String value, CSSEngine engine)
    throws DOMException {
    switch (type) {
    case CSSPrimitiveValue.CSS_IDENT:
      if (value.equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) {
        return ValueConstants.NONE_VALUE;
      }
      break;

    case CSSPrimitiveValue.CSS_URI:
      return new URIValue(value,
                resolveURI(engine.getCSSBaseURI(), value));
    }
    throw createInvalidStringTypeDOMException(type);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

  /**
   * Implements {@link
   * ValueManager#createStringValue(short,String,CSSEngine)}.
   */
  public Value createStringValue(short type, String value, CSSEngine engine)
    throws DOMException {
    switch (type) {
    case CSSPrimitiveValue.CSS_IDENT:
      if (value.equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) {
        return ValueConstants.NONE_VALUE;
      }
      break;

    case CSSPrimitiveValue.CSS_URI:
      return new URIValue(value, 
                resolveURI(engine.getCSSBaseURI(), value));
    }
    throw createInvalidStringTypeDOMException(type);
  }
}
origin: apache/batik

  /**
   * Implements {@link
   * ValueManager#createStringValue(short,String,CSSEngine)}.
   */
  public Value createStringValue(short type, String value, CSSEngine engine)
    throws DOMException {
    switch (type) {
    case CSSPrimitiveValue.CSS_IDENT:
      if (value.equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) {
        return ValueConstants.NONE_VALUE;
      }
      break;

    case CSSPrimitiveValue.CSS_URI:
      return new URIValue(value, 
                resolveURI(engine.getCSSBaseURI(), value));
    }
    throw createInvalidStringTypeDOMException(type);
  }
}
origin: apache/batik

  /**
   * Implements {@link
   * ValueManager#createStringValue(short,String,CSSEngine)}.
   */
  public Value createStringValue(short type, String value, CSSEngine engine)
    throws DOMException {
    switch (type) {
    case CSSPrimitiveValue.CSS_IDENT:
      if (value.equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) {
        return ValueConstants.NONE_VALUE;
      }
      break;

    case CSSPrimitiveValue.CSS_URI:
      return new URIValue(value,
                resolveURI(engine.getCSSBaseURI(), value));
    }
    throw createInvalidStringTypeDOMException(type);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

  /**
   * Implements {@link
   * ValueManager#createStringValue(short,String,CSSEngine)}.
   */
  public Value createStringValue(short type, String value, CSSEngine engine)
    throws DOMException {
    switch (type) {
    case CSSPrimitiveValue.CSS_IDENT:
      String s = value.toLowerCase();
      if (s.equals(CSSConstants.CSS_AUTO_VALUE)) {
        return SVGValueConstants.AUTO_VALUE;
      }
      if (s.equals(CSSConstants.CSS_SRGB_VALUE)) {
        return SVGValueConstants.SRGB_VALUE;
      }
      return new StringValue(CSSPrimitiveValue.CSS_IDENT, s);

    case CSSPrimitiveValue.CSS_URI:
      return new URIValue(value,
                resolveURI(engine.getCSSBaseURI(), value));
    }
    throw createInvalidStringTypeDOMException(type);
  }
}
origin: org.apache.xmlgraphics/batik-css

  /**
   * Implements {@link
   * ValueManager#createStringValue(short,String,CSSEngine)}.
   */
  public Value createStringValue(short type, String value, CSSEngine engine)
    throws DOMException {
    switch (type) {
    case CSSPrimitiveValue.CSS_IDENT:
      if (value.equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) {
        return ValueConstants.NONE_VALUE;
      }
      break;

    case CSSPrimitiveValue.CSS_URI:
      return new URIValue(value, 
                resolveURI(engine.getCSSBaseURI(), value));
    }
    throw createInvalidStringTypeDOMException(type);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

  /**
   * Implements {@link
   * ValueManager#createStringValue(short,String,CSSEngine)}.
   */
  public Value createStringValue(short type, String value, CSSEngine engine)
    throws DOMException {
    switch (type) {
    case CSSPrimitiveValue.CSS_IDENT:
      if (value.equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) {
        return ValueConstants.NONE_VALUE;
      }
      break;

    case CSSPrimitiveValue.CSS_URI:
      return new URIValue(value,
                resolveURI(engine.getCSSBaseURI(), value));
    }
    throw createInvalidStringTypeDOMException(type);
  }
}
origin: apache/batik

  /**
   * Implements {@link
   * ValueManager#createStringValue(short,String,CSSEngine)}.
   */
  public Value createStringValue(short type, String value, CSSEngine engine)
    throws DOMException {
    switch (type) {
    case CSSPrimitiveValue.CSS_IDENT:
      String s = value.toLowerCase();
      if (s.equals(CSSConstants.CSS_AUTO_VALUE)) {
        return SVGValueConstants.AUTO_VALUE;
      }
      if (s.equals(CSSConstants.CSS_SRGB_VALUE)) {
        return SVGValueConstants.SRGB_VALUE;
      }
      return new StringValue(CSSPrimitiveValue.CSS_IDENT, s);

    case CSSPrimitiveValue.CSS_URI:
      return new URIValue(value,
                resolveURI(engine.getCSSBaseURI(), value));
    }
    throw createInvalidStringTypeDOMException(type);
  }
}
origin: org.apache.xmlgraphics/batik-css

  /**
   * Implements {@link
   * ValueManager#createStringValue(short,String,CSSEngine)}.
   */
  public Value createStringValue(short type, String value, CSSEngine engine)
    throws DOMException {
    switch (type) {
    case CSSPrimitiveValue.CSS_IDENT:
      String s = value.toLowerCase();
      if (s.equals(CSSConstants.CSS_AUTO_VALUE)) {
        return SVGValueConstants.AUTO_VALUE;
      }
      if (s.equals(CSSConstants.CSS_SRGB_VALUE)) {
        return SVGValueConstants.SRGB_VALUE;
      }
      return new StringValue(CSSPrimitiveValue.CSS_IDENT, s);

    case CSSPrimitiveValue.CSS_URI:
      return new URIValue(value,
                resolveURI(engine.getCSSBaseURI(), value));
    }
    throw createInvalidStringTypeDOMException(type);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

  /**
   * Implements {@link
   * ValueManager#createStringValue(short,String,CSSEngine)}.
   */
  public Value createStringValue(short type, String value, CSSEngine engine)
    throws DOMException {
    if (type == CSSPrimitiveValue.CSS_IDENT) {
      if (value.equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) {
        return SVGValueConstants.NONE_VALUE;
      }
      throw createInvalidIdentifierDOMException(value);
    }
    if (type == CSSPrimitiveValue.CSS_URI) {
      return new URIValue(value, 
                resolveURI(engine.getCSSBaseURI(), value));
    }
    throw createInvalidStringTypeDOMException(type);
  }
}
origin: apache/batik

  /**
   * Implements {@link
   * ValueManager#createStringValue(short,String,CSSEngine)}.
   */
  public Value createStringValue(short type, String value, CSSEngine engine)
    throws DOMException {
    if (type == CSSPrimitiveValue.CSS_IDENT) {
      if (value.equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) {
        return SVGValueConstants.NONE_VALUE;
      }
      throw createInvalidIdentifierDOMException(value);
    }
    if (type == CSSPrimitiveValue.CSS_URI) {
      return new URIValue(value, 
                resolveURI(engine.getCSSBaseURI(), value));
    }
    throw createInvalidStringTypeDOMException(type);
  }
}
origin: org.apache.xmlgraphics/batik-css

  /**
   * Implements {@link
   * ValueManager#createStringValue(short,String,CSSEngine)}.
   */
  public Value createStringValue(short type, String value, CSSEngine engine)
    throws DOMException {
    if (type == CSSPrimitiveValue.CSS_IDENT) {
      if (value.equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) {
        return SVGValueConstants.NONE_VALUE;
      }
      throw createInvalidIdentifierDOMException(value);
    }
    if (type == CSSPrimitiveValue.CSS_URI) {
      return new URIValue(value, 
                resolveURI(engine.getCSSBaseURI(), value));
    }
    throw createInvalidStringTypeDOMException(type);
  }
}
origin: org.apache.xmlgraphics/batik-css

  /**
   * Implements {@link
   * ValueManager#computeValue(CSSStylableElement,String,CSSEngine,int,StyleMap,Value)}.
   */
  public Value computeValue(CSSStylableElement elt,
               String pseudo,
               CSSEngine engine,
               int idx,
               StyleMap sm,
               Value value) {
    
    if ((value.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE) &&
      (value.getPrimitiveType() == CSSPrimitiveValue.CSS_URI)) {
      // Reveal the absolute value as the cssText now.
      return new URIValue(value.getStringValue(),
                value.getStringValue());
    }
    return value;
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

  /**
   * Implements {@link
   * ValueManager#computeValue(CSSStylableElement,String,CSSEngine,int,StyleMap,Value)}.
   */
  public Value computeValue(CSSStylableElement elt,
               String pseudo,
               CSSEngine engine,
               int idx,
               StyleMap sm,
               Value value) {
    
    if ((value.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE) &&
      (value.getPrimitiveType() == CSSPrimitiveValue.CSS_URI)) {
      // Reveal the absolute value as the cssText now.
      return new URIValue(value.getStringValue(),
                value.getStringValue());
    }
    return value;
  }
}
origin: apache/batik

  /**
   * Implements {@link
   * ValueManager#computeValue(CSSStylableElement,String,CSSEngine,int,StyleMap,Value)}.
   */
  public Value computeValue(CSSStylableElement elt,
               String pseudo,
               CSSEngine engine,
               int idx,
               StyleMap sm,
               Value value) {
    
    if ((value.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE) &&
      (value.getPrimitiveType() == CSSPrimitiveValue.CSS_URI)) {
      // Reveal the absolute value as the cssText now.
      return new URIValue(value.getStringValue(),
                value.getStringValue());
    }
    return value;
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Implements {@link ValueManager#createValue(LexicalUnit,CSSEngine)}.
 */
public Value createValue(LexicalUnit lu, CSSEngine engine)
  throws DOMException {
  switch (lu.getLexicalUnitType()) {
  case LexicalUnit.SAC_INHERIT:
    return SVGValueConstants.INHERIT_VALUE;
  case LexicalUnit.SAC_IDENT:
    String s = lu.getStringValue().toLowerCase();
    if (s.equals(CSSConstants.CSS_AUTO_VALUE)) {
      return SVGValueConstants.AUTO_VALUE;
    }
    if (s.equals(CSSConstants.CSS_SRGB_VALUE)) {
      return SVGValueConstants.SRGB_VALUE;
    }
    return new StringValue(CSSPrimitiveValue.CSS_IDENT, s);
    
  case LexicalUnit.SAC_URI:
    return new URIValue(lu.getStringValue(),
              resolveURI(engine.getCSSBaseURI(),
                    lu.getStringValue()));
  }
  throw createInvalidLexicalUnitDOMException(lu.getLexicalUnitType());
}
org.apache.batik.css.engine.valueURIValue

Javadoc

This class represents uri values.

Most used methods

  • <init>
    Creates a new StringValue.
  • getRawCssText

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Top 12 Jupyter Notebook Extensions
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