public class AcsXmlNamingExpert
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
suffix |
| Constructor and Description |
|---|
AcsXmlNamingExpert() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAcsTypeName(TypeSpec tspec,
java.util.Set<AliasTypeSpec> xmlTypedefs,
java.util.Set<StructType> xmlAwareStructs,
java.util.Set<Interface> xmlAwareIFs) |
java.lang.String |
getBindingClassName(java.lang.String idlTypedefName) |
java.lang.String |
getClassNameForInterface(Interface interfce)
Currently assumes that the trailing "J" has already been appended
to the name of the provided
interfce. |
java.lang.String |
getClassNameForStruct(StructType struct) |
java.lang.String |
getClassNameForXmlTypedef(AliasTypeSpec alias)
TODO: Try to reuse this code for the interface and struct code generation.
|
java.lang.String |
getHolderClassNameForStruct(StructType struct) |
java.lang.String |
getHolderClassNameForXmlTypedef(AliasTypeSpec alias)
TODO: Try to reuse this code for the interface and struct code generation.
|
java.lang.String |
getJavaPackageForInterface(Interface interfce) |
java.lang.String |
getJavaPackageForStruct(StructType struct) |
java.lang.String |
getJavaTypeForXmlInterface(Interface interfce) |
java.lang.String |
getJavaTypeForXmlStruct(StructType struct)
Gets the fully qualified name of the java class that represents the struct
in the world of "J" classes.
|
java.lang.String |
getJavaTypeForXmlTypedef(AliasTypeSpec alias)
Gets the fully qualified name of the java class that represents the typedef
in the world of "J" classes, that is, either a binding class or a class
that represents an xml affected struct or interface.
|
void |
setIdlStruct2JavaBindingClassMappings(java.lang.String mappings)
Sets the mappings from
XmlEntityStruct typedefs to
Java binding classes. |
public static final java.lang.String suffix
public void setIdlStruct2JavaBindingClassMappings(java.lang.String mappings)
XmlEntityStruct typedefs to
Java binding classes.
For example, ObsProposal=alma.xmljbind.test.obsproposal.ObsProposal
would substitute the Java class on the right side for the IDL type ObsProposal,
which is defined as typedef xmlentity::XmlEntityStruct ObsProposal;
in the IDL file.mappings - concatenated mappings, separated by ';'public java.lang.String getBindingClassName(java.lang.String idlTypedefName)
public java.lang.String getClassNameForStruct(StructType struct)
public java.lang.String getHolderClassNameForStruct(StructType struct)
public java.lang.String getJavaPackageForStruct(StructType struct)
public java.lang.String getJavaTypeForXmlStruct(StructType struct)
public java.lang.String getClassNameForInterface(Interface interfce)
interfce.public java.lang.String getJavaPackageForInterface(Interface interfce)
public java.lang.String getJavaTypeForXmlInterface(Interface interfce)
public java.lang.String getClassNameForXmlTypedef(AliasTypeSpec alias)
public java.lang.String getHolderClassNameForXmlTypedef(AliasTypeSpec alias)
public java.lang.String getJavaTypeForXmlTypedef(AliasTypeSpec alias)
public java.lang.String getAcsTypeName(TypeSpec tspec,
java.util.Set<AliasTypeSpec> xmlTypedefs,
java.util.Set<StructType> xmlAwareStructs,
java.util.Set<Interface> xmlAwareIFs)