public abstract class AbstractNamespaceBasedGenerator extends AbstractGenerator<XmlDecisionCallback>
| Modifier and Type | Field and Description |
|---|---|
static String |
METHOD_NAME_FROM |
static String |
METHOD_NAME_TO |
static String |
METHOD_SUPER |
static com.cedarsoft.version.Version |
VERSION
The version the serializer supports
|
METHOD_NAME_DESERIALIZE, METHOD_NAME_DESERIALIZE_FROM, METHOD_NAME_SERIALIZE, PARAM_NAME_FORMAT_VERSION, PARAM_NAME_SERIALIZE_TO, SERIALIZER_CLASS_NAME_SUFFIX, VAR_NAME_OBJECTcodeGenerator, codeModel| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNamespaceBasedGenerator(com.cedarsoft.codegen.CodeGenerator codeGenerator) |
| Modifier and Type | Method and Description |
|---|---|
protected com.sun.codemodel.JInvocation |
createDefaultVersionRangeInvocation(com.cedarsoft.version.Version from,
com.cedarsoft.version.Version to)
Creates the default version range invocation
|
protected String |
getNamespace(String domainObjectType)
Returns the namespace that is used for the serialized documents
|
addDelegatingSerializerToConstructor, appendDeserializeStatement, appendSerializeStatement, constructDeserializedObject, createConstructor, createDeserializeMethodStub, createDeserializeWrapper, createSerializeMethodStub, createSerializerClassName, createSerializerExtendsExpression, fillDeSerializationMethods, finishConstructor, generateSerializer, getExceptionType, getSerializeFromType, getSerializerRefFor, getSerializeToTypegetCodeGenerator, getCodeModel@Nonnull public static final com.cedarsoft.version.Version VERSION
public static final String METHOD_NAME_FROM
public static final String METHOD_NAME_TO
public static final String METHOD_SUPER
protected AbstractNamespaceBasedGenerator(@Nonnull com.cedarsoft.codegen.CodeGenerator codeGenerator)
@Nonnull protected String getNamespace(@Nonnull String domainObjectType)
domainObjectType - the domain object type@Nonnull protected com.sun.codemodel.JInvocation createDefaultVersionRangeInvocation(@Nonnull com.cedarsoft.version.Version from, @Nonnull com.cedarsoft.version.Version to)
from - the from versionto - the to versionCopyright © 2012 cedarsoft GmbH. All Rights Reserved.