Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.flexdbserver.services.asset
Class TypeServiceMapper  view TypeServiceMapper download TypeServiceMapper.java

java.lang.Object
  extended bycom.flexstor.flexdbserver.services.asset.TypeServiceMapper

public class TypeServiceMapper
extends java.lang.Object

TypeServiceMapper provides functionality to read Services mapped to a file Type from an input file.

Version:
2.2

Nested Class Summary
 class TypeServiceMapper.TypeService
           
 
Field Summary
protected  java.lang.String DEFAULT_TYPE
          TAG used to identify the default Type.
protected  com.flexstor.common.util.PropertyMapper pm
          PropertyMapper object used to access the Type - Services mapping file.
protected  java.lang.String SERVICE_TAG
          TAG used to identify a property as a service.
 
Constructor Summary
TypeServiceMapper(java.lang.String sFileName)
           
 
Method Summary
 TypeServiceMapper.TypeService[] getServices(java.lang.String sType)
          Retrieves the Services mapped to a specified file Type.
 java.lang.String[] getTypes()
          Retrieves the Types mapped in the mapping file ( not including "Default" ).
 java.lang.String getValue(java.lang.String sSection, java.lang.String sProperty)
          Retrieves the value for a specific property within a section.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_TAG

protected final java.lang.String SERVICE_TAG
TAG used to identify a property as a service. This TAG must be part of the property name in the mapping file followed by a number which defines the execution order for the service. Ex: service3 must be executed before service5 .

See Also:
Constant Field Values

DEFAULT_TYPE

protected final java.lang.String DEFAULT_TYPE
TAG used to identify the default Type. This TAG must be included as a type in the mapping file defining the services to be executed if a specific type mapping is not defined.

See Also:
Constant Field Values

pm

protected com.flexstor.common.util.PropertyMapper pm
PropertyMapper object used to access the Type - Services mapping file.

Constructor Detail

TypeServiceMapper

public TypeServiceMapper(java.lang.String sFileName)
                  throws java.io.FileNotFoundException,
                         java.io.IOException
Method Detail

getTypes

public java.lang.String[] getTypes()
Retrieves the Types mapped in the mapping file ( not including "Default" ).


getServices

public TypeServiceMapper.TypeService[] getServices(java.lang.String sType)
Retrieves the Services mapped to a specified file Type.


getValue

public java.lang.String getValue(java.lang.String sSection,
                                 java.lang.String sProperty)
Retrieves the value for a specific property within a section.