Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Validation Framework
Validation Framework [message #225548] Mon, 22 December 2008 16:35 Go to next message
Alexandros Salazar is currently offline Alexandros SalazarFriend
Messages: 15
Registered: July 2009
Junior Member
Hi,

I'm trying to evaluate the WTP validation framework to see if we can use
it to provide validation for a declarative language that we are using
internally. I am concerned, however, because all the relevant classes and
interfaces are in internal packages, and several of the most critical ones
have huge warnings about possible changes to the API. For example,
IValidator has the following warning:

____
Provisional API:</b> This class/interface is part of an interim API that
is still under development and expected to change significantly before
reaching stability. It is being made available at this early stage to
solicit feedback from pioneering adopters on the understanding that any
code that uses this API will almost certainly be broken (repeatedly) as
the API evolves.
——

So, my question is: if we want to plugin into the validation framework, is
there a stable API that can be used, or should we wait for a later release?

Thanks,

Alexandros
Re: Validation Framework - Anyone? [message #225627 is a reply to message #225548] Tue, 23 December 2008 15:00 Go to previous messageGo to next message
Alexandros Salazar is currently offline Alexandros SalazarFriend
Messages: 15
Registered: July 2009
Junior Member
No one is responding to this below... does this mean there's an answer
online that I haven't found? Or does it mean that no one knows?

Alexandros

Alexandros Salazar wrote:

> Hi,

> I'm trying to evaluate the WTP validation framework to see if we can use
> it to provide validation for a declarative language that we are using
> internally. I am concerned, however, because all the relevant classes and
> interfaces are in internal packages, and several of the most critical ones
> have huge warnings about possible changes to the API. For example,
> IValidator has the following warning:

> ____
> Provisional API:</b> This class/interface is part of an interim API that
> is still under development and expected to change significantly before
> reaching stability. It is being made available at this early stage to
> solicit feedback from pioneering adopters on the understanding that any
> code that uses this API will almost certainly be broken (repeatedly) as
> the API evolves.
> ——

> So, my question is: if we want to plugin into the validation framework, is
> there a stable API that can be used, or should we wait for a later release?

> Thanks,

> Alexandros
Re: Validation Framework - Anyone? [message #225642 is a reply to message #225627] Tue, 23 December 2008 18:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

Even thought a lot of it is internal, it's being used pretty extensively
by adopters. In fact there is no way around it currently. So you
should be safe to use it. But the warning still applies it could
change in a future version because it's internal.

Dave

Alexandros Salazar wrote:
> No one is responding to this below... does this mean there's an answer
> online that I haven't found? Or does it mean that no one knows?
>
> Alexandros
>
> Alexandros Salazar wrote:
>
>> Hi,
>
>> I'm trying to evaluate the WTP validation framework to see if we can
>> use it to provide validation for a declarative language that we are
>> using internally. I am concerned, however, because all the relevant
>> classes and interfaces are in internal packages, and several of the
>> most critical ones have huge warnings about possible changes to the
>> API. For example, IValidator has the following warning:
>
>> ____
>> Provisional API:</b> This class/interface is part of an interim API
>> that is still under development and expected to change significantly
>> before reaching stability. It is being made available at this early
>> stage to solicit feedback from pioneering adopters on the
>> understanding that any code that uses this API will almost certainly
>> be broken (repeatedly) as the API evolves.
>> ��
>
>> So, my question is: if we want to plugin into the validation
>> framework, is there a stable API that can be used, or should we wait
>> for a later release?
>
>> Thanks,
>
>> Alexandros
>
Re: Validation Framework - Anyone? [message #225653 is a reply to message #225627] Tue, 23 December 2008 18:52 Go to previous messageGo to next message
Lawrence Mandel is currently offline Lawrence MandelFriend
Messages: 486
Registered: July 2009
Senior Member
Hi Alexandros,

A good way to get internal (provisional) code promoted to API is to show a
concrete use case. I'd file a bug requesting that parts of the internal
implementation be refactored into API. At the very least this should
prompt discussion and review of the areas of the code that you'd like to
use.

Lawrence

>No one is responding to this below... does this mean there's an answer
>online that I haven't found? Or does it mean that no one knows?
>
>Alexandros
>
>Alexandros Salazar wrote:
>
>> Hi,
>
>> I'm trying to evaluate the WTP validation framework to see if we can
use
>> it to provide validation for a declarative language that we are using
>> internally. I am concerned, however, because all the relevant classes
and
>> interfaces are in internal packages, and several of the most critical
ones
>> have huge warnings about possible changes to the API. For example,
>> IValidator has the following warning:
>
>> ____
>> Provisional API:</b> This class/interface is part of an interim API
that
>> is still under development and expected to change significantly before
>> reaching stability. It is being made available at this early stage to
>> solicit feedback from pioneering adopters on the understanding that
any
>> code that uses this API will almost certainly be broken (repeatedly) as

>> the API evolves.
>> ——
>
>> So, my question is: if we want to plugin into the validation framework,
is
>> there a stable API that can be used, or should we wait for a later
release?
>
>> Thanks,
>
>> Alexandros
Re: Validation Framework - Anyone? [message #225683 is a reply to message #225653] Tue, 23 December 2008 22:15 Go to previous message
Nitin Dahyabhai is currently online Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

And in actuality, the "new" framework that starts by subclassing
org.eclipse.wst.validation.AbstractValidator is a much cleaner
starting point. Many of the validators in WTP were ported from the
"old" framework, so there are numerous lingering uses of the older
internals within them. You'll find the new framework in the
org.eclipse.wst.validation plug-in under the vf2 source folder.

http://dev.eclipse.org/mhonarc/lists/wtp-dev/msg05786.html

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Working with CSS Framework
Next Topic:WTP install missing dependency
Goto Forum:
  


Current Time: Fri Apr 19 12:20:10 GMT 2024

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

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

Back to the top