com.cedarsoft.serialization.generator.output.serializer
Class AbstractNamespaceBasedGenerator
java.lang.Object
com.cedarsoft.serialization.generator.output.GeneratorBase<T>
com.cedarsoft.serialization.generator.output.serializer.AbstractGenerator<XmlDecisionCallback>
com.cedarsoft.serialization.generator.output.serializer.AbstractNamespaceBasedGenerator
- Direct Known Subclasses:
- AbstractXmlGenerator
public abstract class AbstractNamespaceBasedGenerator
- extends AbstractGenerator<XmlDecisionCallback>
- Author:
- Johannes Schneider (js@cedarsoft.com)
|
Method Summary |
protected com.sun.codemodel.JInvocation |
createDefaultVersionRangeInvocation(com.cedarsoft.Version from,
com.cedarsoft.Version to)
Creates the default version range invocation |
protected String |
getNamespace(String domainObjectType)
Returns the namespace that is used for the serialized documents |
| Methods inherited from class com.cedarsoft.serialization.generator.output.serializer.AbstractGenerator |
addDelegatingSerializerToConstructor, appendDeserializeStatement, appendSerializeStatement, constructDeserializedObject, createConstructor, createDeserializeMethodStub, createDeserializeWrapper, createSerializeMethodStub, createSerializerClassName, createSerializerExtendsExpression, fillDeSerializationMethods, finishConstructor, generateSerializer, getExceptionType, getSerializeFromType, getSerializerRefFor, getSerializeToType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION
@Nonnull
public static final com.cedarsoft.Version VERSION
- The version the serializer supports
METHOD_NAME_FROM
public static final String METHOD_NAME_FROM
- See Also:
- Constant Field Values
METHOD_NAME_TO
public static final String METHOD_NAME_TO
- See Also:
- Constant Field Values
METHOD_SUPER
public static final String METHOD_SUPER
- See Also:
- Constant Field Values
AbstractNamespaceBasedGenerator
protected AbstractNamespaceBasedGenerator(@Nonnull
com.cedarsoft.codegen.CodeGenerator codeGenerator)
getNamespace
@Nonnull
protected String getNamespace(@Nonnull
String domainObjectType)
- Returns the namespace that is used for the serialized documents
- Parameters:
domainObjectType - the domain object type
- Returns:
- the namespace
createDefaultVersionRangeInvocation
@Nonnull
protected com.sun.codemodel.JInvocation createDefaultVersionRangeInvocation(@Nonnull
com.cedarsoft.Version from,
@Nonnull
com.cedarsoft.Version to)
- Creates the default version range invocation
- Parameters:
from - the from versionto - the to version
- Returns:
- the invocation creating the version range
Copyright © 2011 cedarsoft GmbH. All Rights Reserved.