Package org.alfresco.repo.descriptor
Class DescriptorServiceImpl.BaseDescriptor
- java.lang.Object
-
- 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.- Author:
- gavinc
-
-
Constructor Summary
Constructors Constructor Description BaseDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetSchema(java.lang.String schemaStr)Returns the int representation of the given schema string.java.lang.StringgetVersion()Gets the full version numberorg.alfresco.util.VersionNumbergetVersionNumber()-
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
-
-
-
-
Method Detail
-
getVersionNumber
public org.alfresco.util.VersionNumber getVersionNumber()
- Specified by:
getVersionNumberin interfaceDescriptor- Returns:
- Returns the object representing the major-minor-revision numbers
-
getVersion
public java.lang.String getVersion()
Description copied from interface:DescriptorGets the full version number- Specified by:
getVersionin interfaceDescriptor- 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
-
-