Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » custom validation?
custom validation? [message #168263] Mon, 01 May 2006 22:57 Go to next message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
What would be involved in creating my own validator, that works in
conjunction with the wtp xml validation, but catches things that cannot be
caught with schema based validation...

Any examples or articles that could lead me in the right direction?

Thanks
Brian Jakubik
Re: custom validation? [message #168271 is a reply to message #168263] Mon, 01 May 2006 23:29 Go to previous messageGo to next message
Paul Fullbright is currently offline Paul FullbrightFriend
Messages: 200
Registered: July 2009
Senior Member
Brian Jakubik wrote:

> Any examples or articles that could lead me in the right direction?

Here's an EclipseCon tutorial that I found very helpful:
http://www.eclipsecon.org/2006/Sub.do?id=180

Part I is on translators, Part II on data models, Part III on validators.

- Paul
Re: custom validation? [message #171215 is a reply to message #168263] Thu, 15 June 2006 06:44 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2341
Registered: July 2009
Senior Member
Brian Jakubik wrote:
> What would be involved in creating my own validator, that works in
> conjunction with the wtp xml validation, but catches things that cannot be
> caught with schema based validation...
>
> Any examples or articles that could lead me in the right direction?

I'd look at the documentation for the
org.eclipse.wst.validation.validator and
org.eclipse.wst.sse.ui.sourcevalidation extension points. The first
pertains to the "batch" validators that operate on resources and the
latter concerns validating the contents of editors while the user is
modifying a file. There's some commonality between the two that you
might be able to take advantage of, but I also think they're both in
an "interim" state where they're unlikely, but not guaranteed, never
to change. WTP, including its incubating projects, should provide
you with numerous real-world examples of both.

--
- Nitin


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:WTP 1.0.2 -- dream or reality ? + Recurring quality issues with WTP
Next Topic:j2ee standard tools
Goto Forum:
  


Current Time: Thu Dec 18 00:47:52 GMT 2014

Powered by FUDForum. Page generated in 0.05501 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software