Validation Framework [message #225548] |
Mon, 22 December 2008 16:35 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Alexandros Salazar![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=alexandros.salazar%40infor.com) 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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Alexandros Salazar![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=alexandros.salazar%40infor.com) 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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Lawrence Mandel![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=lmandel%40gmail.com) 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 Go to previous message](theme/Solstice/images/up.png) |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03791 seconds