org.apache.oodt.cas.filemgr.structs.type.examples
Class MajorMinorVersionTypeHandler

java.lang.Object
  extended by org.apache.oodt.cas.filemgr.structs.type.TypeHandler
      extended by org.apache.oodt.cas.filemgr.structs.type.ValueReplaceTypeHandler
          extended by org.apache.oodt.cas.filemgr.structs.type.examples.MajorMinorVersionTypeHandler

public class MajorMinorVersionTypeHandler
extends ValueReplaceTypeHandler

Handler metadata element values whose original format is: \d{1,2}.\d{0,2} Return Catalog value format: \d\d.\d\d Return original value format: \d{1,2}.\d{1,2}

Version:
$Revision: 13181 $
Author:
bfoster

Field Summary
 
Fields inherited from class org.apache.oodt.cas.filemgr.structs.type.TypeHandler
elementName
 
Constructor Summary
MajorMinorVersionTypeHandler()
           
 
Method Summary
protected  String getCatalogValue(String origValue)
          Converts the metadata element, for this TypeHandler, value to the Catalog value
protected  String getOrigValue(String databaseValue)
          Converts the metadata element, for this TypeHandler, value from the Catalog value to the original value
 
Methods inherited from class org.apache.oodt.cas.filemgr.structs.type.ValueReplaceTypeHandler
handleRangeQueryCriteria, handleTermQueryCriteria, postGetMetadataHandle, preAddMetadataHandle
 
Methods inherited from class org.apache.oodt.cas.filemgr.structs.type.TypeHandler
getElementName, preQueryHandle, setElementName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MajorMinorVersionTypeHandler

public MajorMinorVersionTypeHandler()
Method Detail

getCatalogValue

protected String getCatalogValue(String origValue)
Description copied from class: ValueReplaceTypeHandler
Converts the metadata element, for this TypeHandler, value to the Catalog value

Specified by:
getCatalogValue in class ValueReplaceTypeHandler
Parameters:
origValue - The value for the element which this TypeHandler is responsible for
Returns:
The Catalog value

getOrigValue

protected String getOrigValue(String databaseValue)
Description copied from class: ValueReplaceTypeHandler
Converts the metadata element, for this TypeHandler, value from the Catalog value to the original value

Specified by:
getOrigValue in class ValueReplaceTypeHandler
Returns:
The original value


Copyright © 1999-2011 Apache OODT. All Rights Reserved.