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

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

Best Java code snippets using org.apache.batik.css.engine.value.URIValue.<init> (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.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: 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 {
    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: org.netbeans.modules/org-netbeans-modules-visualweb-designer-cssengine

  public Value createValue(LexicalUnit lu, CSSEngine engine)
    throws DOMException {
    switch (lu.getLexicalUnitType()) {
      case LexicalUnit.SAC_INHERIT:
        return CssValueConstants.INHERIT_VALUE;

      case LexicalUnit.SAC_URI:
        return new URIValue(lu.getStringValue(),
            resolveURI(engine.getCSSBaseURI(), lu.getStringValue()));
      case LexicalUnit.SAC_IDENT:
        String s = lu.getStringValue().toLowerCase().intern();
        if (s == CssConstants.CSS_NONE_VALUE) {
          return CssValueConstants.NONE_VALUE;
        }
        throw createInvalidIdentifierDOMException(lu.getStringValue(), engine);
    }
    throw createInvalidLexicalUnitDOMException(lu.getLexicalUnitType(), engine);
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Implements {@link ValueManager#createValue(LexicalUnit,CSSEngine)}.
 */
public Value createValue(LexicalUnit lu, CSSEngine engine)
  throws DOMException {
  switch (lu.getLexicalUnitType()) {
  case LexicalUnit.SAC_INHERIT:
    return ValueConstants.INHERIT_VALUE;
  case LexicalUnit.SAC_URI:
    return new URIValue(lu.getStringValue(),
              resolveURI(engine.getCSSBaseURI(),
                    lu.getStringValue()));
  case LexicalUnit.SAC_IDENT:
    if (lu.getStringValue().equalsIgnoreCase
      (CSSConstants.CSS_NONE_VALUE)) {
      return ValueConstants.NONE_VALUE;
    }
  }
  throw createInvalidLexicalUnitDOMException(lu.getLexicalUnitType());
}
origin: apache/batik

/**
 * Implements {@link ValueManager#createValue(LexicalUnit,CSSEngine)}.
 */
public Value createValue(LexicalUnit lu, CSSEngine engine)
  throws DOMException {
  switch (lu.getLexicalUnitType()) {
  case LexicalUnit.SAC_INHERIT:
    return ValueConstants.INHERIT_VALUE;
  case LexicalUnit.SAC_URI:
    return new URIValue(lu.getStringValue(),
              resolveURI(engine.getCSSBaseURI(),
                    lu.getStringValue()));
  case LexicalUnit.SAC_IDENT:
    if (lu.getStringValue().equalsIgnoreCase
      (CSSConstants.CSS_NONE_VALUE)) {
      return ValueConstants.NONE_VALUE;
    }
  }
  throw createInvalidLexicalUnitDOMException(lu.getLexicalUnitType());
}
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 ValueConstants.INHERIT_VALUE;
  case LexicalUnit.SAC_URI:
    return new URIValue(lu.getStringValue(),
              resolveURI(engine.getCSSBaseURI(),
                    lu.getStringValue()));
  case LexicalUnit.SAC_IDENT:
    if (lu.getStringValue().equalsIgnoreCase
      (CSSConstants.CSS_NONE_VALUE)) {
      return ValueConstants.NONE_VALUE;
    }
  }
  throw createInvalidLexicalUnitDOMException(lu.getLexicalUnitType());
}
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 ValueConstants.INHERIT_VALUE;
  case LexicalUnit.SAC_URI:
    return new URIValue(lu.getStringValue(),
              resolveURI(engine.getCSSBaseURI(),
                    lu.getStringValue()));
  case LexicalUnit.SAC_IDENT:
    if (lu.getStringValue().equalsIgnoreCase
      (CSSConstants.CSS_NONE_VALUE)) {
      return ValueConstants.NONE_VALUE;
    }
  }
  throw createInvalidLexicalUnitDOMException(lu.getLexicalUnitType());
}
origin: apache/batik

/**
 * Implements {@link ValueManager#createValue(LexicalUnit,CSSEngine)}.
 */
public Value createValue(LexicalUnit lu, CSSEngine engine)
  throws DOMException {
  switch (lu.getLexicalUnitType()) {
  case LexicalUnit.SAC_INHERIT:
    return ValueConstants.INHERIT_VALUE;
  case LexicalUnit.SAC_URI:
    return new URIValue(lu.getStringValue(),
              resolveURI(engine.getCSSBaseURI(),
                    lu.getStringValue()));
  case LexicalUnit.SAC_IDENT:
    if (lu.getStringValue().equalsIgnoreCase
      (CSSConstants.CSS_NONE_VALUE)) {
      return ValueConstants.NONE_VALUE;
    }
  }
  throw createInvalidLexicalUnitDOMException(lu.getLexicalUnitType());
}
org.apache.batik.css.engine.valueURIValue<init>

Javadoc

Creates a new StringValue.

Popular methods of URIValue

  • getRawCssText

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top plugins for Android Studio
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