|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nci.cagrid.data.common.CastorMappingUtil
public class CastorMappingUtil
CastorMappingUtil Utility for making edits to a castor mapping xml document
| Field Summary | |
|---|---|
static java.lang.String |
CASTOR_MARSHALLING_MAPPING_FILE
|
static java.lang.String |
CASTOR_UNMARSHALLING_MAPPING_FILE
|
static java.lang.String |
EDITED_CASTOR_MARSHALLING_MAPPING_FILE
|
static java.lang.String |
EDITED_CASTOR_UNMARSHALLING_MAPPING_FILE
|
static java.lang.String |
XERXES_LOAD_DTD_FEATURE
Setting this feature controls how xerxes handles external DTDs |
| Constructor Summary | |
|---|---|
CastorMappingUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
changeNamespaceOfPackage(java.lang.String mapping,
java.lang.String packageName,
java.lang.String namespace)
Edits a castor mapping XML file to change the namespace of all classes in a package |
static java.lang.String |
getCustomCastorMappingFileName(ServiceInformation serviceInfo)
|
static java.lang.String |
getCustomCastorMappingName(ServiceInformation serviceInfo)
|
static java.lang.String |
getEditedMarshallingCastorMappingFileName(ServiceInformation serviceInfo)
Gets the fully qualified file name of the edited marshalling castor mapping file |
static java.lang.String |
getEditedMarshallingCastorMappingName(ServiceInformation serviceInfo)
|
static java.lang.String |
getEditedUnmarshallingCastorMappingFileName(ServiceInformation serviceInfo)
Gets the fully qualified file name of the edited unmarshalling castor mapping file |
static java.lang.String |
getEditedUnmarshallingCastorMappingName(ServiceInformation serviceInfo)
|
static java.lang.String |
getMarshallingCastorMappingFileName(ServiceInformation serviceInfo)
|
static java.lang.String |
getMarshallingCastorMappingName(ServiceInformation serviceInfo)
|
static java.lang.String |
getUnmarshallingCastorMappingFileName(ServiceInformation serviceInfo)
|
static java.lang.String |
getUnmarshallingCastorMappingName(ServiceInformation serviceInfo)
|
static void |
main(java.lang.String[] args)
|
static java.lang.String |
removeAssociationMappings(java.lang.String mappingText)
Walks through a castor mapping text document and removes all bindings to associations, so that serialization only converts the top level object of an object tree to XML |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String XERXES_LOAD_DTD_FEATURE
public static final java.lang.String CASTOR_MARSHALLING_MAPPING_FILE
public static final java.lang.String EDITED_CASTOR_MARSHALLING_MAPPING_FILE
public static final java.lang.String CASTOR_UNMARSHALLING_MAPPING_FILE
public static final java.lang.String EDITED_CASTOR_UNMARSHALLING_MAPPING_FILE
| Constructor Detail |
|---|
public CastorMappingUtil()
| Method Detail |
|---|
public static java.lang.String changeNamespaceOfPackage(java.lang.String mapping,
java.lang.String packageName,
java.lang.String namespace)
throws java.lang.Exception
mapping - The text of the castor mapping filepackageName - The name of the package to change the namespace mapping ofnamespace - The namespace to remap the package's classes to
java.lang.Exception
public static java.lang.String removeAssociationMappings(java.lang.String mappingText)
throws java.lang.Exception
mappingText - The text of the original castor mapping
java.lang.Exceptionpublic static java.lang.String getCustomCastorMappingFileName(ServiceInformation serviceInfo)
public static java.lang.String getCustomCastorMappingName(ServiceInformation serviceInfo)
public static java.lang.String getMarshallingCastorMappingFileName(ServiceInformation serviceInfo)
public static java.lang.String getMarshallingCastorMappingName(ServiceInformation serviceInfo)
public static java.lang.String getUnmarshallingCastorMappingFileName(ServiceInformation serviceInfo)
public static java.lang.String getUnmarshallingCastorMappingName(ServiceInformation serviceInfo)
public static java.lang.String getEditedMarshallingCastorMappingFileName(ServiceInformation serviceInfo)
serviceInfo -
public static java.lang.String getEditedMarshallingCastorMappingName(ServiceInformation serviceInfo)
public static java.lang.String getEditedUnmarshallingCastorMappingFileName(ServiceInformation serviceInfo)
serviceInfo -
public static java.lang.String getEditedUnmarshallingCastorMappingName(ServiceInformation serviceInfo)
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||