All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thaiopensource.relaxng.translate.util.AbsoluteUriParam Maven / Gradle / Ivy

There is a newer version: 20220510
Show newest version
package com.thaiopensource.relaxng.translate.util;

import com.thaiopensource.util.Uri;

public abstract class AbsoluteUriParam extends AbstractParam {
  public void set(String value) throws InvalidParamValueException {
    if (!Uri.isValid(value))
      throw new ParamProcessor.LocalizedInvalidValueException("invalid_uri");
    if (!Uri.isAbsolute(value))
      throw new ParamProcessor.LocalizedInvalidValueException("relative_uri");
    setAbsoluteUri(value);
  }

  protected abstract void setAbsoluteUri(String value) throws InvalidParamValueException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy