congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Log.getUnableToDetermineSchemaVersionException
Code IndexAdd Tabnine to your IDE (free)

How to use
getUnableToDetermineSchemaVersionException
method
in
org.hibernate.validator.internal.util.logging.Log

Best Java code snippets using org.hibernate.validator.internal.util.logging.Log.getUnableToDetermineSchemaVersionException (Showing top 2 results out of 315)

origin: org.hibernate.validator/hibernate-validator

/**
 * Retrieves the schema version applying for the given XML input stream as
 * represented by the "version" attribute of the root element of the stream.
 * <p>
 * The given reader will be advanced to the root element of the given XML
 * structure. It can be used for unmarshalling from there.
 *
 * @param resourceName The name of the represented XML resource.
 * @param xmlEventReader An STAX event reader
 *
 * @return The value of the "version" attribute. For compatibility with BV
 *         1.0, "1.0" will be returned if the given stream doesn't have a
 *         "version" attribute.
 */
public String getSchemaVersion(String resourceName, XMLEventReader xmlEventReader) {
  Contracts.assertNotNull( xmlEventReader, MESSAGES.parameterMustNotBeNull( "xmlEventReader" ) );
  try {
    StartElement rootElement = getRootElement( xmlEventReader );
    return getVersionValue( rootElement );
  }
  catch (XMLStreamException e) {
    throw LOG.getUnableToDetermineSchemaVersionException( resourceName, e );
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

/**
 * Retrieves the schema version applying for the given XML input stream as
 * represented by the "version" attribute of the root element of the stream.
 * <p>
 * The given reader will be advanced to the root element of the given XML
 * structure. It can be used for unmarshalling from there.
 *
 * @param resourceName The name of the represented XML resource.
 * @param xmlEventReader An STAX event reader
 *
 * @return The value of the "version" attribute. For compatibility with BV
 *         1.0, "1.0" will be returned if the given stream doesn't have a
 *         "version" attribute.
 */
public String getSchemaVersion(String resourceName, XMLEventReader xmlEventReader) {
  Contracts.assertNotNull( xmlEventReader, MESSAGES.parameterMustNotBeNull( "xmlEventReader" ) );
  try {
    StartElement rootElement = getRootElement( xmlEventReader );
    return getVersionValue( rootElement );
  }
  catch (XMLStreamException e) {
    throw log.getUnableToDetermineSchemaVersionException( resourceName, e );
  }
}
org.hibernate.validator.internal.util.loggingLoggetUnableToDetermineSchemaVersionException

Popular methods of Log

  • getInvalidRegularExpressionException
  • getInvalidLengthForFractionPartException
  • getInvalidLengthForIntegerPartException
  • getLengthCannotBeNegativeException
  • getMaxCannotBeNegativeException
  • getMinCannotBeNegativeException
  • debug
  • debugf
  • errorInExpressionLanguage
  • evaluatingExpressionLanguageExpressionCausedException
  • getAnnotationDoesNotContainAParameterException
  • getAtLeastOneCustomMessageMustBeCreatedException
  • getAnnotationDoesNotContainAParameterException,
  • getAtLeastOneCustomMessageMustBeCreatedException,
  • getAtLeastOneGroupHasToBeSpecifiedException,
  • getAttemptToSpecifyAnArrayWhereSingleValueIsExpectedException,
  • getBeanClassHasAlreadyBeConfiguredViaProgrammaticApiException,
  • getBeanClassMustBePartOfRedefinedDefaultGroupSequenceException,
  • getBeanDoesNotContainConstructorException,
  • getBeanDoesNotContainMethodException,
  • getBeanDoesNotContainTheFieldException,
  • getBeanDoesNotContainThePropertyException

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Path (java.nio.file)
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • PhpStorm for WordPress
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