You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2011/01/31 21:33:28 UTC
[jira] Resolved: (XERCESJ-1494) XML Schema API: Make it easier for
applications to persist instances of ItemPSVI
[ https://issues.apache.org/jira/browse/XERCESJ-1494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Glavassevich resolved XERCESJ-1494.
-------------------------------------------
Resolution: Fixed
Implemented in SVN rev 1065753.
> XML Schema API: Make it easier for applications to persist instances of ItemPSVI
> --------------------------------------------------------------------------------
>
> Key: XERCESJ-1494
> URL: https://issues.apache.org/jira/browse/XERCESJ-1494
> Project: Xerces2-J
> Issue Type: Improvement
> Components: XML Schema API
> Affects Versions: 2.11.0
> Reporter: Michael Glavassevich
> Assignee: Michael Glavassevich
> Priority: Minor
>
> When an application receives instances of ItemPSVI (i.e. ElementPSVI / AttributePSVI) the scope in which they can call methods on these objects is often limited (see PSVIProvider) to start and end element callbacks. If an application wishes to persist the data held by an ItemPSVI beyond this scope it needs to make a copy. To make it easier for users to copy these objects and determine when they need to make a copy I plan on adding the following methods to ItemPSVI:
> /**
> * Returns a reference to an immutable instance with the same data
> * that this instance of <code>ItemPSVI</code> currently has.
> */
> public ItemPSVI constant();
>
> /**
> * Returns <code>true</code> if this specific instance of
> * <code>ItemPSVI</code> is immutable, otherwise <code>false</code>.
> */
> public boolean isConstant();
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org