blob: 2de8b5443e68f71dd44ea193a67b0e1395fe9723 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<cas:producttypes xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
<type id="urn:oodt:GenericFile" name="GenericFile">
<repository path="file://[HOME]/files"/>
<versioner class="org.apache.oodt.cas.filemgr.versioning.BasicVersioner"/>
<!--
You can optionally specify a 'trim' tag to identify whether
or not you want newlines trimmed from the product type description. To
turn off trimming (now done by default), include the following attribute with your
description definition: trim="false"
-->
<description>The default product type for any kind of file.</description>
<!--
The metExtractors element is optional but included in OODT Unit testing for capability.
extractor property elements are extractor specific and located in
AbstractFilemgrMetExtractor#doConfigure method.
-->
<metExtractors>
<extractor
class="org.apache.oodt.cas.filemgr.metadata.extractors.CoreMetExtractor">
<configuration>
<!-- you can optionally include the envReplace tag to turn on/off environment var replacement -->
<property name="nsAware" value="true" />
<property name="elementNs" value="CAS" />
<property name="elements"
value="ProductReceivedTime,ProductName,ProductId" />
</configuration>
</extractor>
</metExtractors>
<!--
The metadata element is optional but included in OODT Unit testing for testing capability.
TODO
-->
<metadata>
</metadata>
<typeHandlers>
<typeHandler class="org.apache.oodt.cas.filemgr.structs.type.examples.MajorMinorVersionTypeHandler" elementName="DataVersion"/>
</typeHandlers>
</type>
</cas:producttypes>