jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • GeoAPI
  • GEO-144

Add Name.getSeparator() to simplify use of Name interface

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.2-M2
  • Fix Version/s: None
  • Component/s: feature, util
  • Labels:
    None

Description

The Name interface is targeted as a replacement for the Java QName interface that works with full namespace (rather than a prefix) in order to qualify a "local" name.

The Name interface currently does not define how the namespace and localPart are to be combined when displayed to the user; as such we are in a strange conflict where:

  • we want namespace to be as simple as possible
  • we want namepace + locaPart to look like a normal URI

We want to prevent the motivation for including a "separator" in the namespaceURI; We also want to make sure that the namespaceURI is available for implementors to use without any extra processing (the danger with including a separator in the namespace would be the code required to remove it prior to using the string for lookup).

As an example http://www.opengis.net/gml#AbstractFeatureCollectionBaseType

Namespace Local Comment
http://www.opengis.net/gml AbstractFeatureCollectionBaseType GOOD
http://www.opengis.net/gml# AbstractFeatureCollectionBaseType BAD

To prevent this we want to add a Name.getSeparator().

We need to be clear that equality and hashcode is based on the namespace and the localPart only.

Issue Links

relates to

Improvement - An improvement or enhancement to an existing feature or task. GEO-145 Make GeneralName easier to understand

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Jody Garnett added a comment - 30/Jul/08 6:09 PM

Change committed as of -r1292; will ask gabriel to close after he has reviewed the javadocs.

Show
Jody Garnett added a comment - 30/Jul/08 6:09 PM Change committed as of -r1292; will ask gabriel to close after he has reviewed the javadocs.

People

  • Assignee:
    Unassigned
    Reporter:
    Jody Garnett
Vote (0)
Watch (0)

Dates

  • Created:
    30/Jul/08 6:06 PM
    Updated:
    23/Aug/11 8:45 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.