Codota Logo
SchemaValidationEvent
Code IndexAdd Codota to your IDE (free)

How to use
SchemaValidationEvent
in
org.deegree.commons.xml.schema

Best Java code snippets using org.deegree.commons.xml.schema.SchemaValidationEvent (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: deegree/deegree3

@SuppressWarnings("synthetic-access")
@Override
public void error( String domain, String key, XMLParseException e )
            throws XNIException {
  errors.add( new SchemaValidationEvent( domain, key, e ) );
}
origin: deegree/deegree3

/**
 * Validates the client request
 * 
 * @param elem
 * @return a list of error messages
 */
private List<String> validate( OMElement elem ) {
  StringWriter s = new StringWriter();
  try {
    elem.serialize( s );
  } catch ( XMLStreamException e ) {
    e.printStackTrace();
  }
  InputStream is = new ByteArrayInputStream( s.toString().getBytes() );
  List<SchemaValidationEvent> evts = SchemaValidator.validate( is,
                                 "http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd" );
  List<String> list = new ArrayList<String>();
  for ( SchemaValidationEvent evt : evts ) {
    list.add( evt.toString() );
  }
  return list;
}
origin: deegree/deegree3

List<SchemaValidationEvent> evts = SchemaValidator.validate( buffer.getInputStream() );
for ( SchemaValidationEvent evt : evts ) {
  messages.add( evt.toString() );
origin: deegree/deegree3

List<SchemaValidationEvent> evts = SchemaValidator.validate( xml, schemas );
for ( SchemaValidationEvent evt : evts ) {
  results.add( evt.toString() );
origin: deegree/deegree3

@SuppressWarnings("synthetic-access")
@Override
public void fatalError( String domain, String key, XMLParseException e )
            throws XNIException {
  errors.add( new SchemaValidationEvent( domain, key, e ) );
}
origin: deegree/deegree3

  @SuppressWarnings("synthetic-access")
  @Override
  public void warning( String domain, String key, XMLParseException e )
              throws XNIException {
    errors.add( new SchemaValidationEvent( domain, key, e ) );
  }
} );
origin: deegree/deegree3

  public void error( String domain, String key, XMLParseException e )
              throws XNIException {
    errors.add( new SchemaValidationEvent( domain, key, e ) );
  public void fatalError( String domain, String key, XMLParseException e )
              throws XNIException {
    errors.add( new SchemaValidationEvent( domain, key, e ) );
  public void warning( String domain, String key, XMLParseException e )
              throws XNIException {
    errors.add( new SchemaValidationEvent( domain, key, e ) );
errors.add( new SchemaValidationEvent( e ) );
org.deegree.commons.xml.schemaSchemaValidationEvent

Javadoc

A validation event (warning/error/fatal error) that occurred during schema validation.

Most used methods

  • toString
  • <init>

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • getExternalFilesDir (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now