diff options
Diffstat (limited to 'org.eclipse.mylyn.docs.epub.ant.core/src/org/eclipse/mylyn/docs/epub/ant/SourceType.java')
-rw-r--r-- | org.eclipse.mylyn.docs.epub.ant.core/src/org/eclipse/mylyn/docs/epub/ant/SourceType.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.docs.epub.ant.core/src/org/eclipse/mylyn/docs/epub/ant/SourceType.java b/org.eclipse.mylyn.docs.epub.ant.core/src/org/eclipse/mylyn/docs/epub/ant/SourceType.java new file mode 100644 index 000000000..12df3fcff --- /dev/null +++ b/org.eclipse.mylyn.docs.epub.ant.core/src/org/eclipse/mylyn/docs/epub/ant/SourceType.java @@ -0,0 +1,48 @@ +/******************************************************************************* + * Copyright (c) 2011 Torkild U. Resheim. + * + * 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: Torkild U. Resheim - initial API and implementation + *******************************************************************************/ +package org.eclipse.mylyn.docs.epub.ant; + +import java.util.Locale; + +/** + * @author Torkild U. Resheim + * @ant.type name="source" category="epub" + */ +public class SourceType { + + String id; + + Locale lang; + + String text; + + /** + * @ant.required + */ + public void addText(String text) { + this.text = text; + } + + /** + * @ant.not-required + */ + public void setId(String id) { + this.id = id; + } + + /** + * @ant.not-required + */ + public void setLang(Locale lang) { + this.lang = lang; + } + +} |