org.alfresco.repo.descriptor
Class DescriptorServiceImpl.BaseDescriptor

java.lang.Object
  extended by org.alfresco.repo.descriptor.DescriptorServiceImpl.BaseDescriptor
All Implemented Interfaces:
Descriptor
Enclosing class:
DescriptorServiceImpl

public abstract static class DescriptorServiceImpl.BaseDescriptor
extends java.lang.Object
implements Descriptor

Base class for Descriptor implementations, provides a default getVersion() implementation.


Constructor Summary
DescriptorServiceImpl.BaseDescriptor()
           
 
Method Summary
protected  int getSchema(java.lang.String schemaStr)
          Returns the int representation of the given schema string.
 java.lang.String getVersion()
          Gets the full version number
 org.alfresco.util.VersionNumber getVersionNumber()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.service.descriptor.Descriptor
getDescriptor, getDescriptorKeys, getEdition, getId, getLicenseMode, getName, getSchema, getVersionBuild, getVersionLabel, getVersionMajor, getVersionMinor, getVersionRevision
 

Constructor Detail

DescriptorServiceImpl.BaseDescriptor

public DescriptorServiceImpl.BaseDescriptor()
Method Detail

getVersionNumber

public org.alfresco.util.VersionNumber getVersionNumber()
Specified by:
getVersionNumber in interface Descriptor
Returns:
Returns the object representing the major-minor-revision numbers

getVersion

public java.lang.String getVersion()
Description copied from interface: Descriptor
Gets the full version number

Specified by:
getVersion in interface Descriptor
Returns:
full version number as major.minor.revision (label)

getSchema

protected int getSchema(java.lang.String schemaStr)
Returns the int representation of the given schema string.

Parameters:
schemaStr - The schema number as a string
Returns:
The schema number as an int


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.