diff --git a/src/fr/devinsy/xidyn/data/TagDataManager.java b/src/fr/devinsy/xidyn/data/TagDataManager.java index 78dd9c7..d9c702d 100644 --- a/src/fr/devinsy/xidyn/data/TagDataManager.java +++ b/src/fr/devinsy/xidyn/data/TagDataManager.java @@ -28,9 +28,9 @@ public class TagDataManager /** * */ - public void appendAttribute(final String id, final String label, final int value) + public void appendAttribute(final String id, final String label, final long value) { - appendAttribute(id, label, (new Integer(value)).toString()); + appendAttribute(id, label, String.valueOf(value)); } /** @@ -46,9 +46,9 @@ public class TagDataManager /** * */ - public void appendContent(final String id, final int line, final int value) + public void appendContent(final String id, final int line, final long value) { - appendContent(id, line, (new Integer(value)).toString()); + appendContent(id, line, String.valueOf(value)); } /** @@ -64,9 +64,9 @@ public class TagDataManager /** * */ - public void appendContent(final String id, final int line, final String column, final int value) + public void appendContent(final String id, final int line, final String column, final long value) { - appendContent(id, line, column, (new Integer(value)).toString()); + appendContent(id, line, column, String.valueOf(value)); } /** @@ -185,9 +185,9 @@ public class TagDataManager /** * */ - public void setAttribute(final String id, final int line, final String label, final int value) + public void setAttribute(final String id, final int line, final String label, final long value) { - setAttribute(id, line, label, (new Integer(value)).toString()); + setAttribute(id, line, label, String.valueOf(value)); } /** @@ -203,9 +203,9 @@ public class TagDataManager /** * */ - public void setAttribute(final String id, final int line, final String column, final String label, final int value) + public void setAttribute(final String id, final int line, final String column, final String label, final long value) { - setAttribute(id, line, column, label, (new Integer(value)).toString()); + setAttribute(id, line, column, label, String.valueOf(value)); } /** @@ -221,9 +221,9 @@ public class TagDataManager /** * */ - public void setAttribute(final String id, final String label, final int value) + public void setAttribute(final String id, final String label, final long value) { - setAttribute(id, label, (new Integer(value)).toString()); + setAttribute(id, label, String.valueOf(value)); } /** @@ -239,17 +239,9 @@ public class TagDataManager /** * */ - public void setContent(final String id, final int content) + public void setContent(final String id, final int line, final long value) { - setContent(id, (new Integer(content)).toString()); - } - - /** - * - */ - public void setContent(final String id, final int line, final int content) - { - setContent(id, line, (new Integer(content)).toString()); + setContent(id, line, String.valueOf(value)); } /** @@ -262,14 +254,6 @@ public class TagDataManager tag.setContent(content); } - /** - * - */ - public void setContent(final String id, final int line, final String column, final int content) - { - setContent(id, line, column, (new Integer(content)).toString()); - } - /** * @TODO */ @@ -280,6 +264,14 @@ public class TagDataManager // tag.setContent (content); } + /** + * + */ + public void setContent(final String id, final int line, final String column, final long value) + { + setContent(id, line, column, String.valueOf(value)); + } + /** * */ @@ -290,6 +282,14 @@ public class TagDataManager tag.setContent(content); } + /** + * + */ + public void setContent(final String id, final long value) + { + setContent(id, String.valueOf(value)); + } + /** * */