com.sage.orion.sdata.servlet.accpac
Class ClassMap

java.lang.Object
  extended by com.sage.orion.sdata.servlet.accpac.ClassMap

public class ClassMap
extends java.lang.Object

This class is bound to the JiBX ClassMap Binding file - ClassMapBinding.XML

Note: This file should not be changed without making the appropriate changes to the JiBX binding file. Otherwise the servlet may compile but not be in a runnable state.

FIXME Change so that there is no constructor and make loadMap a static factory method No Can Do, since JiBX needs to construct them. Or can we?


Constructor Summary
ClassMap()
           
 
Method Summary
 ClassMapContract getClassMapContract(java.lang.String name)
          Get the ClassMapContract for the given contract name.
 java.lang.Iterable<java.lang.String> getContractNames()
          Gets the iterable representation of the contract names.
 java.lang.Iterable<ClassMapResource> getResource(java.lang.String name, java.lang.String contractName)
          Gets the resources by name and contract
 void loadMap(ApplicationContext context)
          Loads all the classmap files into the java ClassMap Object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassMap

public ClassMap()
Method Detail

loadMap

public void loadMap(ApplicationContext context)
Loads all the classmap files into the java ClassMap Object.

Parameters:
context - ApplicationContext a context to allow access to the files

getClassMapContract

public ClassMapContract getClassMapContract(java.lang.String name)
Get the ClassMapContract for the given contract name.

Parameters:
name - the name of the contract, which must be a pure ASCII string. The case does not matter.
Returns:
ClassMapContract

getResource

public java.lang.Iterable<ClassMapResource> getResource(java.lang.String name,
                                                        java.lang.String contractName)
Gets the resources by name and contract

Parameters:
name - name of the resource kind
contractName - name of the contract
Returns:
iterable collection of resources

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getContractNames

public java.lang.Iterable<java.lang.String> getContractNames()
Gets the iterable representation of the contract names.

Returns:
an iterable representation of the contract names.


Copyright © 2011 Sage Software, Inc. All rights reserved.