Xindice API

org.apache.xindice.server
Interface Versioning

All Superinterfaces:
Named
All Known Subinterfaces:
Script, ScriptComponent, ScriptFilter
All Known Implementing Classes:
VersionProxy

public interface Versioning
extends Named

Versioning is the standard identification, versioning, and namespacing interface for Xindice resources. In order to avoid resource naming collisions between multiple applications, Xindice dynamically creates packages (namespaces) matching the value returned by a resource's getPackageName method. Resources stored within these namespaces can only be seen by modules who return the same package name when queried by the ResourceManager. Xindice acknowledges the existence of a common, shared package called the null package. Resource related methods are usually provided with two prototypes, one that accepts a Versioning reference, and one that doesn't. The method that doesn't accept a Versioning reference resolves to this null package. Resources stored in the null package can be manipulated by any module. The String value for the null package is an empty String ("").


Method Summary
 java.lang.String getPackageName()
          getPackageName returns the package name for this Versioning object.
 float getVersion()
          getVersion returns the version number for this package.
 
Methods inherited from interface org.apache.xindice.util.Named
getName
 

Method Detail

getVersion

public float getVersion()
getVersion returns the version number for this package. It is conceivable that a single instance of Xindice may be running two different versions of the same appliction. getVersion allows an added ambiguity check to be performed in these cases.
Returns:
The package version

getPackageName

public java.lang.String getPackageName()
getPackageName returns the package name for this Versioning object.
Returns:
The package name

Xindice API

Copyright (c) 1999-2001 The Apache Software Foundation