|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.accpac.ClassMap
public class ClassMap
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 |
---|
public ClassMap()
Method Detail |
---|
public void loadMap(ApplicationContext context)
context
- ApplicationContext
a context to allow access to the
filespublic ClassMapContract getClassMapContract(java.lang.String name)
ClassMapContract
for the given contract name.
name
- the name of the contract, which must be a pure ASCII string. The
case does not matter.
ClassMapContract
public java.lang.Iterable<ClassMapResource> getResource(java.lang.String name, java.lang.String contractName)
name
- name of the resource kindcontractName
- name of the contract
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Iterable<java.lang.String> getContractNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |