org.apache.oodt.cas.filemgr.structs.type.examples
Class MajorMinorVersionTypeHandler
java.lang.Object
org.apache.oodt.cas.filemgr.structs.type.TypeHandler
org.apache.oodt.cas.filemgr.structs.type.ValueReplaceTypeHandler
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MajorMinorVersionTypeHandler
public MajorMinorVersionTypeHandler()
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.