diff options
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/internal/serialization/serializers/IntegerSerializer.java')
-rw-r--r-- | plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/internal/serialization/serializers/IntegerSerializer.java | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/internal/serialization/serializers/IntegerSerializer.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/internal/serialization/serializers/IntegerSerializer.java index f2921bb159c..0efa5cec116 100644 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/internal/serialization/serializers/IntegerSerializer.java +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/internal/serialization/serializers/IntegerSerializer.java @@ -1,32 +1,32 @@ -/*******************************************************************************
- * Copyright (c) 2011 Mia-Software.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Nicolas Bros (Mia-Software) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.papyrus.emf.facet.util.emf.core.internal.serialization.serializers;
-
-import org.eclipse.papyrus.emf.facet.util.emf.core.serialization.ISerializer;
-
-public class IntegerSerializer implements ISerializer<Integer> {
-
- public IntegerSerializer() {
- //
- }
-
- public Class<Integer> getType() {
- return Integer.class;
- }
-
- public String serialize(final Integer value) {
- return value.toString();
- }
-
- public Integer deserialize(final String serializedValue) {
- return Integer.valueOf(serializedValue);
- }
-}
+/******************************************************************************* + * Copyright (c) 2011 Mia-Software. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Nicolas Bros (Mia-Software) - initial API and implementation + *******************************************************************************/ +package org.eclipse.papyrus.emf.facet.util.emf.core.internal.serialization.serializers; + +import org.eclipse.papyrus.emf.facet.util.emf.core.serialization.ISerializer; + +public class IntegerSerializer implements ISerializer<Integer> { + + public IntegerSerializer() { + // + } + + public Class<Integer> getType() { + return Integer.class; + } + + public String serialize(final Integer value) { + return value.toString(); + } + + public Integer deserialize(final String serializedValue) { + return Integer.valueOf(serializedValue); + } +} |