</target>
<target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init">
<available file="${manifest.file}" property="manifest.available"/>
+ <available file="${application.splash}" property="splashscreen.available"/>
<condition property="main.class.available">
<and>
<isset property="main.class"/>
<isset property="do.mkdist"/>
</and>
</condition>
- <condition property="manifest.available+mkdist.available">
+ <condition property="manifest.available+main.class+mkdist.available+splashscreen.available">
<and>
- <istrue value="${manifest.available}"/>
- <isset property="do.mkdist"/>
+ <istrue value="${manifest.available+main.class+mkdist.available}"/>
+ <istrue value="${splashscreen.available}"/>
</and>
</condition>
- <condition property="manifest.available-mkdist.available">
- <or>
- <istrue value="${manifest.available}"/>
- <isset property="do.mkdist"/>
- </or>
+ <condition property="do.archive">
+ <not>
+ <istrue value="${jar.archive.disabled}"/>
+ </not>
</condition>
- <condition property="manifest.available+main.class-mkdist.available">
- <or>
+ <condition property="do.archive+manifest.available">
+ <and>
+ <isset property="manifest.available"/>
+ <istrue value="${do.archive}"/>
+ </and>
+ </condition>
+ <condition property="do.archive+manifest.available+main.class">
+ <and>
<istrue value="${manifest.available+main.class}"/>
- <isset property="do.mkdist"/>
- </or>
+ <istrue value="${do.archive}"/>
+ </and>
+ </condition>
+ <condition property="do.archive+manifest.available+main.class+mkdist.available">
+ <and>
+ <istrue value="${manifest.available+main.class+mkdist.available}"/>
+ <istrue value="${do.archive}"/>
+ </and>
+ </condition>
+ <condition property="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available">
+ <and>
+ <istrue value="${manifest.available+main.class+mkdist.available+splashscreen.available}"/>
+ <istrue value="${do.archive}"/>
+ </and>
</condition>
<condition property="have.tests">
<or>
<length length="0" string="${endorsed.classpath}" when="greater"/>
</condition>
<property name="javac.fork" value="false"/>
+ <property name="jar.index" value="false"/>
+ <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
</target>
<target name="-post-init">
<!-- Empty placeholder for easier customization. -->
</sequential>
</macrodef>
</target>
- <target name="-init-macrodef-javac">
+ <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
<macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
<attribute default="${src.dir}" name="srcdir"/>
<attribute default="${build.classes.dir}" name="destdir"/>
<attribute default="${javac.classpath}" name="classpath"/>
+ <attribute default="${javac.processorpath}" name="processorpath"/>
+ <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="${javac.debug}" name="debug"/>
<sequential>
<property location="${build.dir}/empty" name="empty.dir"/>
<mkdir dir="${empty.dir}"/>
+ <mkdir dir="@{apgeneratedsrcdir}"/>
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
<src>
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
</classpath>
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
<compilerarg line="${javac.compilerargs}"/>
+ <compilerarg value="-processorpath"/>
+ <compilerarg path="@{processorpath}:${empty.dir}"/>
+ <compilerarg line="${ap.processors.internal}"/>
+ <compilerarg line="${annotation.processing.processor.options}"/>
+ <compilerarg value="-s"/>
+ <compilerarg path="@{apgeneratedsrcdir}"/>
+ <compilerarg line="${ap.proc.none.internal}"/>
<customize/>
</javac>
</sequential>
</macrodef>
+ </target>
+ <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
+ <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
+ <attribute default="${src.dir}" name="srcdir"/>
+ <attribute default="${build.classes.dir}" name="destdir"/>
+ <attribute default="${javac.classpath}" name="classpath"/>
+ <attribute default="${javac.processorpath}" name="processorpath"/>
+ <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
+ <attribute default="${includes}" name="includes"/>
+ <attribute default="${excludes}" name="excludes"/>
+ <attribute default="${javac.debug}" name="debug"/>
+ <attribute default="${empty.dir}" name="sourcepath"/>
+ <attribute default="${empty.dir}" name="gensrcdir"/>
+ <element name="customize" optional="true"/>
+ <sequential>
+ <property location="${build.dir}/empty" name="empty.dir"/>
+ <mkdir dir="${empty.dir}"/>
+ <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
+ <src>
+ <dirset dir="@{gensrcdir}" erroronmissingdir="false">
+ <include name="*"/>
+ </dirset>
+ </src>
+ <classpath>
+ <path path="@{classpath}"/>
+ </classpath>
+ <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
+ <compilerarg line="${javac.compilerargs}"/>
+ <customize/>
+ </javac>
+ </sequential>
+ </macrodef>
+ </target>
+ <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
<macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
<attribute default="${src.dir}" name="srcdir"/>
<attribute default="${build.classes.dir}" name="destdir"/>
</sequential>
</macrodef>
</target>
+ <target name="-init-macrodef-copylibs">
+ <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
+ <element name="customize" optional="true"/>
+ <sequential>
+ <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
+ <pathconvert property="run.classpath.without.build.classes.dir">
+ <path path="${run.classpath}"/>
+ <map from="${build.classes.dir.resolved}" to=""/>
+ </pathconvert>
+ <pathconvert pathsep=" " property="jar.classpath">
+ <path path="${run.classpath.without.build.classes.dir}"/>
+ <chainedmapper>
+ <flattenmapper/>
+ <globmapper from="*" to="lib/*"/>
+ </chainedmapper>
+ </pathconvert>
+ <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
+ <copylibs compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
+ <fileset dir="${build.classes.dir}"/>
+ <manifest>
+ <attribute name="Class-Path" value="${jar.classpath}"/>
+ <customize/>
+ </manifest>
+ </copylibs>
+ </sequential>
+ </macrodef>
+ </target>
<target name="-init-presetdef-jar">
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
- <jar compress="${jar.compress}" jarfile="${dist.jar}">
+ <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
<j2seproject1:fileset dir="${build.classes.dir}"/>
</jar>
</presetdef>
</target>
- <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
+ <target name="-init-ap-cmdline-properties">
+ <property name="annotation.processing.enabled" value="true"/>
+ <property name="annotation.processing.processors.list" value=""/>
+ <property name="annotation.processing.processor.options" value=""/>
+ <property name="annotation.processing.run.all.processors" value="true"/>
+ <property name="javac.processorpath" value="${javac.classpath}"/>
+ <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
+ <condition property="ap.supported.internal" value="true">
+ <not>
+ <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
+ </not>
+ </condition>
+ </target>
+ <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
+ <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
+ <isfalse value="${annotation.processing.run.all.processors}"/>
+ </condition>
+ <condition else="" property="ap.proc.none.internal" value="-proc:none">
+ <isfalse value="${annotation.processing.enabled}"/>
+ </condition>
+ </target>
+ <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
+ <property name="ap.cmd.line.internal" value=""/>
+ </target>
+ <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
<!--
===================
COMPILATION SECTION
</pathconvert>
<j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
</target>
- <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
+ <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
<j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
<copy todir="${build.classes.dir}">
<fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
</copy>
</target>
+ <target if="has.persistence.xml" name="-copy-persistence-xml">
+ <mkdir dir="${build.classes.dir}/META-INF"/>
+ <copy todir="${build.classes.dir}/META-INF">
+ <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
+ </copy>
+ </target>
<target name="-post-compile">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
- <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
+ <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available">
<j2seproject1:jar/>
</target>
- <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
+ <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
<j2seproject1:jar manifest="${manifest.file}"/>
</target>
- <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
+ <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
<j2seproject1:jar manifest="${manifest.file}">
<j2seproject1:manifest>
<j2seproject1:attribute name="Main-Class" value="${main.class}"/>
</pathconvert>
<echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
</target>
- <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
- <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
- <pathconvert property="run.classpath.without.build.classes.dir">
- <path path="${run.classpath}"/>
- <map from="${build.classes.dir.resolved}" to=""/>
- </pathconvert>
- <pathconvert pathsep=" " property="jar.classpath">
- <path path="${run.classpath.without.build.classes.dir}"/>
- <chainedmapper>
- <flattenmapper/>
- <globmapper from="*" to="lib/*"/>
- </chainedmapper>
- </pathconvert>
- <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
- <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
- <fileset dir="${build.classes.dir}"/>
- <manifest>
+ <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available" name="-do-jar-with-libraries-and-splashscreen">
+ <basename file="${application.splash}" property="splashscreen.basename"/>
+ <mkdir dir="${build.classes.dir}/META-INF"/>
+ <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
+ <j2seproject3:copylibs>
+ <customize>
<attribute name="Main-Class" value="${main.class}"/>
- <attribute name="Class-Path" value="${jar.classpath}"/>
- </manifest>
- </copylibs>
+ <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
+ </customize>
+ </j2seproject3:copylibs>
<echo>To run this application from the command line without Ant, try:</echo>
<property location="${dist.jar}" name="dist.jar.resolved"/>
<echo>java -jar "${dist.jar.resolved}"</echo>
</target>
- <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+mkdist.available" name="-do-jar-with-libraries-without-mainclass" unless="main.class.available">
- <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
- <pathconvert property="run.classpath.without.build.classes.dir">
- <path path="${run.classpath}"/>
- <map from="${build.classes.dir.resolved}" to=""/>
- </pathconvert>
- <pathconvert pathsep=" " property="jar.classpath">
- <path path="${run.classpath.without.build.classes.dir}"/>
- <chainedmapper>
- <flattenmapper/>
- <globmapper from="*" to="lib/*"/>
- </chainedmapper>
- </pathconvert>
- <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
- <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
- <fileset dir="${build.classes.dir}"/>
- <manifest>
- <attribute name="Class-Path" value="${jar.classpath}"/>
- </manifest>
- </copylibs>
- </target>
- <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.mkdist" name="-do-jar-with-libraries-without-manifest" unless="manifest.available">
- <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
- <pathconvert property="run.classpath.without.build.classes.dir">
- <path path="${run.classpath}"/>
- <map from="${build.classes.dir.resolved}" to=""/>
- </pathconvert>
- <pathconvert pathsep=" " property="jar.classpath">
- <path path="${run.classpath.without.build.classes.dir}"/>
- <chainedmapper>
- <flattenmapper/>
- <globmapper from="*" to="lib/*"/>
- </chainedmapper>
- </pathconvert>
- <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
- <copylibs compress="${jar.compress}" jarfile="${dist.jar}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
- <fileset dir="${build.classes.dir}"/>
- <manifest>
- <attribute name="Class-Path" value="${jar.classpath}"/>
- </manifest>
- </copylibs>
+ <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries" unless="splashscreen.available">
+ <j2seproject3:copylibs>
+ <customize>
+ <attribute name="Main-Class" value="${main.class}"/>
+ </customize>
+ </j2seproject3:copylibs>
+ <echo>To run this application from the command line without Ant, try:</echo>
+ <property location="${dist.jar}" name="dist.jar.resolved"/>
+ <echo>java -jar "${dist.jar.resolved}"</echo>
</target>
<target name="-post-jar">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
- <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-do-jar-with-libraries-without-mainclass,-do-jar-with-libraries-without-manifest,-post-jar" description="Build JAR." name="jar"/>
+ <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries-and-splashscreen,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
<!--
=================
EXECUTION SECTION
JAVADOC SECTION
===============
-->
- <target depends="init" name="-javadoc-build">
+ <target depends="init" if="have.sources" name="-javadoc-build">
<mkdir dir="${dist.javadoc.dir}"/>
<javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
<classpath>
<include name="**/*.java"/>
</fileset>
</javadoc>
+ <copy todir="${dist.javadoc.dir}">
+ <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
+ <filename name="**/doc-files/**"/>
+ </fileset>
+ <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
+ <include name="**/doc-files/**"/>
+ </fileset>
+ </copy>
</target>
<target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
<nbbrowse file="${dist.javadoc.dir}/index.html"/>
<j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
- <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
+ <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
<copy todir="${build.test.classes.dir}">
<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
</copy>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
<j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
- <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
+ <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
<copy todir="${build.test.classes.dir}">
<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
</copy>
build.xml.data.CRC32=bff05ee7
build.xml.script.CRC32=ac427ee8
-build.xml.stylesheet.CRC32=958a1d3e@1.32.1.45
+build.xml.stylesheet.CRC32=28e38971@1.38.1.45
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=bff05ee7
-nbproject/build-impl.xml.script.CRC32=ea0d6b41
-nbproject/build-impl.xml.stylesheet.CRC32=576378a2@1.32.1.45
+nbproject/build-impl.xml.script.CRC32=8bf8c209
+nbproject/build-impl.xml.stylesheet.CRC32=f33e10ff@1.38.2.45
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
-javac.source=1.5
-javac.target=1.5
+javac.source=1.6
+javac.target=1.6
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}:\
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
+jaxbwiz.endorsed.dirs="${netbeans.home}/../ide12/modules/ext/jaxb/api"
main.class=twitter.gui.form.NishioTweetManager
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
public class SimpleStatus implements Status {
- private String[] contributors = null;
- private Date createdAt = null;
- private GeoLocation geoLocation = null;
- private long id = 0;
- private String inReplyToScreenName = null;
- private long inReplyToStatusId = 0;
- private int inReplyToUserId = 0;
- private Place place = null;
- private Status retweetedStatus = null;
- private String source = null;
- private String text = null;
- private User user = null;
- private boolean favorited = false;
- private boolean retweet = false;
- private boolean truncated = false;
-
- @Override
- public int compareTo(Status o) {
- // TODO 自動生成されたメソッド・スタブ
- return 0;
- }
-
- /**
- * contributorsを取得します。
- *
- * @return contributors
- */
- public String[] getContributors() {
- return contributors;
- }
-
- /**
- * createdAtを取得します。
- *
- * @return createdAt
- */
- public Date getCreatedAt() {
- return createdAt;
- }
-
- /**
- * geoLocationを取得します。
- *
- * @return geoLocation
- */
- public GeoLocation getGeoLocation() {
- return geoLocation;
- }
-
- /**
- * idを取得します。
- *
- * @return id
- */
- public long getId() {
- return id;
- }
-
- /**
- * inReplyToScreenNameを取得します。
- *
- * @return inReplyToScreenName
- */
- public String getInReplyToScreenName() {
- return inReplyToScreenName;
- }
-
- /**
- * inReplyToStatusIdを取得します。
- *
- * @return inReplyToStatusId
- */
- public long getInReplyToStatusId() {
- return inReplyToStatusId;
- }
-
- /**
- * inReplyToUserIdを取得します。
- *
- * @return inReplyToUserId
- */
- public int getInReplyToUserId() {
- return inReplyToUserId;
- }
-
- /**
- * placeを取得します。
- *
- * @return place
- */
- public Place getPlace() {
- return place;
- }
-
- @Override
- public RateLimitStatus getRateLimitStatus() {
- // TODO 自動生成されたメソッド・スタブ
- return null;
- }
-
- /**
- * retweetedStatusを取得します。
- *
- * @return retweetedStatus
- */
- public Status getRetweetedStatus() {
- return retweetedStatus;
- }
-
- /**
- * sourceを取得します。
- *
- * @return source
- */
- public String getSource() {
- return source;
- }
-
- /**
- * textを取得します。
- *
- * @return text
- */
- public String getText() {
- return text;
- }
-
- /**
- * userを取得します。
- *
- * @return user
- */
- public User getUser() {
- return user;
- }
-
- /**
- * favoritedを取得します。
- *
- * @return favorited
- */
- public boolean isFavorited() {
- return favorited;
- }
-
- /**
- * retweetを取得します。
- *
- * @return retweet
- */
- public boolean isRetweet() {
- return retweet;
- }
-
- /**
- * truncatedを取得します。
- *
- * @return truncated
- */
- public boolean isTruncated() {
- return truncated;
- }
-
- /**
- * contributorsを設定します。
- *
- * @param contributors
- * contributors
- */
- public void setContributors(String[] contributors) {
- this.contributors = contributors;
- }
-
- /**
- * createdAtを設定します。
- *
- * @param createdAt
- * createdAt
- */
- public void setCreatedAt(Date createdAt) {
- this.createdAt = createdAt;
- }
-
- /**
- * favoritedを設定します。
- *
- * @param favorited
- * favorited
- */
- public void setFavorited(boolean favorited) {
- this.favorited = favorited;
- }
-
- /**
- * geoLocationを設定します。
- *
- * @param geoLocation
- * geoLocation
- */
- public void setGeoLocation(GeoLocation geoLocation) {
- this.geoLocation = geoLocation;
- }
-
- /**
- * idを設定します。
- *
- * @param id
- * id
- */
- public void setId(long id) {
- this.id = id;
- }
-
- /**
- * inReplyToScreenNameを設定します。
- *
- * @param inReplyToScreenName
- * inReplyToScreenName
- */
- public void setInReplyToScreenName(String inReplyToScreenName) {
- this.inReplyToScreenName = inReplyToScreenName;
- }
-
- /**
- * inReplyToStatusIdを設定します。
- *
- * @param inReplyToStatusId
- * inReplyToStatusId
- */
- public void setInReplyToStatusId(long inReplyToStatusId) {
- this.inReplyToStatusId = inReplyToStatusId;
- }
-
- /**
- * inReplyToUserIdを設定します。
- *
- * @param inReplyToUserId
- * inReplyToUserId
- */
- public void setInReplyToUserId(int inReplyToUserId) {
- this.inReplyToUserId = inReplyToUserId;
- }
-
- /**
- * placeを設定します。
- *
- * @param place
- * place
- */
- public void setPlace(Place place) {
- this.place = place;
- }
-
- @Override
- public String toString() {
- return "SimpleStatus [contributors=" + Arrays.toString(contributors)
- + ", createdAt=" + createdAt + ", favorited=" + favorited
- + ", geoLocation=" + geoLocation + ", id=" + id
- + ", inReplyToScreenName=" + inReplyToScreenName
- + ", inReplyToStatusId=" + inReplyToStatusId
- + ", inReplyToUserId=" + inReplyToUserId + ", place=" + place
- + ", retweet=" + retweet + ", retweetedStatus="
- + retweetedStatus + ", source=" + source + ", text=" + text
- + ", truncated=" + truncated + ", user=" + user + "]";
- }
-
- /**
- * retweetを設定します。
- *
- * @param retweet
- * retweet
- */
- public void setRetweet(boolean retweet) {
- this.retweet = retweet;
- }
-
- /**
- * retweetedStatusを設定します。
- *
- * @param retweetedStatus
- * retweetedStatus
- */
- public void setRetweetedStatus(Status retweetedStatus) {
- this.retweetedStatus = retweetedStatus;
- }
-
- /**
- * sourceを設定します。
- *
- * @param source
- * source
- */
- public void setSource(String source) {
- this.source = source;
- }
-
- /**
- * textを設定します。
- *
- * @param text
- * text
- */
- public void setText(String text) {
- this.text = text;
- }
-
- /**
- * truncatedを設定します。
- *
- * @param truncated
- * truncated
- */
- public void setTruncated(boolean truncated) {
- this.truncated = truncated;
- }
-
- /**
- * userを設定します。
- *
- * @param user
- * user
- */
- public void setUser(User user) {
- this.user = user;
- }
-
+ private String[] contributors = null;
+ private Date createdAt = null;
+ private GeoLocation geoLocation = null;
+ private long id = 0;
+ private String inReplyToScreenName = null;
+ private long inReplyToStatusId = 0;
+ private int inReplyToUserId = 0;
+ private Place place = null;
+ private Status retweetedStatus = null;
+ private String source = null;
+ private String text = null;
+ private User user = null;
+ private boolean favorited = false;
+ private boolean retweet = false;
+ private boolean truncated = false;
+
+ /**
+ * contributorsを取得します。
+ *
+ * @return contributors
+ */
+ public String[] getContributors() {
+ return contributors;
+ }
+
+ /**
+ * createdAtを取得します。
+ *
+ * @return createdAt
+ */
+ public Date getCreatedAt() {
+ return createdAt;
+ }
+
+ /**
+ * geoLocationを取得します。
+ *
+ * @return geoLocation
+ */
+ public GeoLocation getGeoLocation() {
+ return geoLocation;
+ }
+
+ /**
+ * idを取得します。
+ *
+ * @return id
+ */
+ public long getId() {
+ return id;
+ }
+
+ /**
+ * inReplyToScreenNameを取得します。
+ *
+ * @return inReplyToScreenName
+ */
+ public String getInReplyToScreenName() {
+ return inReplyToScreenName;
+ }
+
+ /**
+ * inReplyToStatusIdを取得します。
+ *
+ * @return inReplyToStatusId
+ */
+ public long getInReplyToStatusId() {
+ return inReplyToStatusId;
+ }
+
+ /**
+ * inReplyToUserIdを取得します。
+ *
+ * @return inReplyToUserId
+ */
+ public int getInReplyToUserId() {
+ return inReplyToUserId;
+ }
+
+ /**
+ * placeを取得します。
+ *
+ * @return place
+ */
+ public Place getPlace() {
+ return place;
+ }
+
+ @Override
+ public RateLimitStatus getRateLimitStatus() {
+ // TODO 自動生成されたメソッド・スタブ
+ return null;
+ }
+
+ /**
+ * retweetedStatusを取得します。
+ *
+ * @return retweetedStatus
+ */
+ public Status getRetweetedStatus() {
+ return retweetedStatus;
+ }
+
+ /**
+ * sourceを取得します。
+ *
+ * @return source
+ */
+ public String getSource() {
+ return source;
+ }
+
+ /**
+ * textを取得します。
+ *
+ * @return text
+ */
+ public String getText() {
+ return text;
+ }
+
+ /**
+ * userを取得します。
+ *
+ * @return user
+ */
+ public User getUser() {
+ return user;
+ }
+
+ /**
+ * favoritedを取得します。
+ *
+ * @return favorited
+ */
+ public boolean isFavorited() {
+ return favorited;
+ }
+
+ /**
+ * retweetを取得します。
+ *
+ * @return retweet
+ */
+ public boolean isRetweet() {
+ return retweet;
+ }
+
+ /**
+ * truncatedを取得します。
+ *
+ * @return truncated
+ */
+ public boolean isTruncated() {
+ return truncated;
+ }
+
+ /**
+ * contributorsを設定します。
+ *
+ * @param contributors
+ * contributors
+ */
+ public void setContributors(String[] contributors) {
+ this.contributors = contributors;
+ }
+
+ /**
+ * createdAtを設定します。
+ *
+ * @param createdAt
+ * createdAt
+ */
+ public void setCreatedAt(Date createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ /**
+ * favoritedを設定します。
+ *
+ * @param favorited
+ * favorited
+ */
+ public void setFavorited(boolean favorited) {
+ this.favorited = favorited;
+ }
+
+ /**
+ * geoLocationを設定します。
+ *
+ * @param geoLocation
+ * geoLocation
+ */
+ public void setGeoLocation(GeoLocation geoLocation) {
+ this.geoLocation = geoLocation;
+ }
+
+ /**
+ * idを設定します。
+ *
+ * @param id
+ * id
+ */
+ public void setId(long id) {
+ this.id = id;
+ }
+
+ /**
+ * inReplyToScreenNameを設定します。
+ *
+ * @param inReplyToScreenName
+ * inReplyToScreenName
+ */
+ public void setInReplyToScreenName(String inReplyToScreenName) {
+ this.inReplyToScreenName = inReplyToScreenName;
+ }
+
+ /**
+ * inReplyToStatusIdを設定します。
+ *
+ * @param inReplyToStatusId
+ * inReplyToStatusId
+ */
+ public void setInReplyToStatusId(long inReplyToStatusId) {
+ this.inReplyToStatusId = inReplyToStatusId;
+ }
+
+ /**
+ * inReplyToUserIdを設定します。
+ *
+ * @param inReplyToUserId
+ * inReplyToUserId
+ */
+ public void setInReplyToUserId(int inReplyToUserId) {
+ this.inReplyToUserId = inReplyToUserId;
+ }
+
+ /**
+ * placeを設定します。
+ *
+ * @param place
+ * place
+ */
+ public void setPlace(Place place) {
+ this.place = place;
+ }
+
+ @Override
+ public String toString() {
+ return "SimpleStatus [contributors=" + Arrays.toString(contributors)
+ + ", createdAt=" + createdAt + ", favorited=" + favorited
+ + ", geoLocation=" + geoLocation + ", id=" + id
+ + ", inReplyToScreenName=" + inReplyToScreenName
+ + ", inReplyToStatusId=" + inReplyToStatusId
+ + ", inReplyToUserId=" + inReplyToUserId + ", place=" + place
+ + ", retweet=" + retweet + ", retweetedStatus="
+ + retweetedStatus + ", source=" + source + ", text=" + text
+ + ", truncated=" + truncated + ", user=" + user + "]";
+ }
+
+ /**
+ * retweetを設定します。
+ *
+ * @param retweet
+ * retweet
+ */
+ public void setRetweet(boolean retweet) {
+ this.retweet = retweet;
+ }
+
+ /**
+ * retweetedStatusを設定します。
+ *
+ * @param retweetedStatus
+ * retweetedStatus
+ */
+ public void setRetweetedStatus(Status retweetedStatus) {
+ this.retweetedStatus = retweetedStatus;
+ }
+
+ /**
+ * sourceを設定します。
+ *
+ * @param source
+ * source
+ */
+ public void setSource(String source) {
+ this.source = source;
+ }
+
+ /**
+ * textを設定します。
+ *
+ * @param text
+ * text
+ */
+ public void setText(String text) {
+ this.text = text;
+ }
+
+ /**
+ * truncatedを設定します。
+ *
+ * @param truncated
+ * truncated
+ */
+ public void setTruncated(boolean truncated) {
+ this.truncated = truncated;
+ }
+
+ /**
+ * userを設定します。
+ *
+ * @param user
+ * user
+ */
+ public void setUser(User user) {
+ this.user = user;
+ }
+
+ public int compareTo(Status t) {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
}
*/
public class SimpleUser implements User {
- private int id;
- private String name;
- private String screenName;
- private String location;
- private String description;
- private boolean isContributorsEnabled;
- private URL profileImageURL;
- private URL URL;
- private boolean isProtected;
- private int followersCount;
-
- private Status status;
-
- private String profileBackgroundColor;
- private String profileTextColor;
- private String profileLinkColor;
- private String profileSidebarFillColor;
- private String profileSidebarBorderColor;
- private int friendsCount;
- private Date statusCreatedAt;
- private int favouritesCount;
- private int utcOffset;
-
- private String timeZone;
- private String profileBackgroundImageUrl;
- private boolean profileBackgroundTiled;
- private String lang;
- private int statusesCount;
- private boolean isGeoEnabled;
- private boolean isVerified;
- private boolean isFollowing;
-
- @Override
- public int compareTo(User o) {
- return this.id - o.getId();
- }
-
- @Override
- public Date getCreatedAt() {
- return status.getCreatedAt();
- }
-
- /**
- * descriptionを取得します。
- *
- * @return description
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * favouritesCountを取得します。
- *
- * @return favouritesCount
- */
- public int getFavouritesCount() {
- return favouritesCount;
- }
-
- /**
- * followersCountを取得します。
- *
- * @return followersCount
- */
- public int getFollowersCount() {
- return followersCount;
- }
-
- /**
- * friendsCountを取得します。
- *
- * @return friendsCount
- */
- public int getFriendsCount() {
- return friendsCount;
- }
-
- /**
- * idを取得します。
- *
- * @return id
- */
- public int getId() {
- return id;
- }
-
- /**
- * langを取得します。
- *
- * @return lang
- */
- public String getLang() {
- return lang;
- }
-
- /**
- * locationを取得します。
- *
- * @return location
- */
- public String getLocation() {
- return location;
- }
-
- /**
- * nameを取得します。
- *
- * @return name
- */
- public String getName() {
- return name;
- }
-
- /**
- * profileBackgroundColorを取得します。
- *
- * @return profileBackgroundColor
- */
- public String getProfileBackgroundColor() {
- return profileBackgroundColor;
- }
-
- /**
- * profileBackgroundImageURLを取得します。
- *
- * @return profileBackgroundImageURL
- */
- public String getProfileBackgroundImageUrl() {
- return profileBackgroundImageUrl;
- }
-
- /**
- * profileImageURLを取得します。
- *
- * @return profileImageURL
- */
- public URL getProfileImageURL() {
- return profileImageURL;
- }
-
- /**
- * profileLinkColorを取得します。
- *
- * @return profileLinkColor
- */
- public String getProfileLinkColor() {
- return profileLinkColor;
- }
-
- /**
- * profileSidebarBorderColorを取得します。
- *
- * @return profileSidebarBorderColor
- */
- public String getProfileSidebarBorderColor() {
- return profileSidebarBorderColor;
- }
-
- /**
- * profileSidebarFillColorを取得します。
- *
- * @return profileSidebarFillColor
- */
- public String getProfileSidebarFillColor() {
- return profileSidebarFillColor;
- }
-
- /**
- * profileTextColorを取得します。
- *
- * @return profileTextColor
- */
- public String getProfileTextColor() {
- return profileTextColor;
- }
-
- @Override
- public RateLimitStatus getRateLimitStatus() {
- // TODO: いつか実装
- return null;
- }
-
- /**
- * screenNameを取得します。
- *
- * @return screenName
- */
- public String getScreenName() {
- return screenName;
- }
-
- /**
- * statusを取得します。
- *
- * @return status
- */
- public Status getStatus() {
- return status;
- }
-
- /**
- * statusCreatedAtを取得します。
- *
- * @return statusCreatedAt
- */
- public Date getStatusCreatedAt() {
- return statusCreatedAt;
- }
-
- /**
- * statusesCountを取得します。
- *
- * @return statusesCount
- */
- public int getStatusesCount() {
- return statusesCount;
- }
-
- @Override
- public long getStatusId() {
- return status.getId();
- }
-
- @Override
- public String getStatusInReplyToScreenName() {
- return status.getInReplyToScreenName();
- }
-
- @Override
- public long getStatusInReplyToStatusId() {
- return status.getInReplyToStatusId();
- }
-
- @Override
- public int getStatusInReplyToUserId() {
- return status.getInReplyToUserId();
- }
-
- @Override
- public String getStatusSource() {
- return status.getSource();
- }
-
- @Override
- public String getStatusText() {
- return status.getText();
- }
-
- /**
- * timeZoneを取得します。
- *
- * @return timeZone
- */
- public String getTimeZone() {
- return timeZone;
- }
-
- /**
- * URLを取得します。
- *
- * @return URL
- */
- public URL getURL() {
- return URL;
- }
-
- /**
- * utcOffsetを取得します。
- *
- * @return utcOffset
- */
- public int getUtcOffset() {
- return utcOffset;
- }
-
- /**
- * isContributorsEnabledを取得します。
- *
- * @return isContributorsEnabled
- */
- public boolean isContributorsEnabled() {
- return isContributorsEnabled;
- }
-
- /**
- * isFollowingを取得します。
- *
- * @return isFollowing
- */
- public boolean isFollowing() {
- return isFollowing;
- }
-
- /**
- * isGeoEnabledを取得します。
- *
- * @return isGeoEnabled
- */
- public boolean isGeoEnabled() {
- return isGeoEnabled;
- }
-
- /**
- * profileBackgroundTiledを取得します。
- *
- * @return profileBackgroundTiled
- */
- public boolean isProfileBackgroundTiled() {
- return profileBackgroundTiled;
- }
-
- /**
- * isProtectedを取得します。
- *
- * @return isProtected
- */
- public boolean isProtected() {
- return isProtected;
- }
-
- @Override
- public boolean isStatusFavorited() {
- return status.isFavorited();
- }
-
- @Override
- public boolean isStatusTruncated() {
- return status.isTruncated();
- }
-
- /**
- * isVerifiedを取得します。
- *
- * @return isVerified
- */
- public boolean isVerified() {
- return isVerified;
- }
-
- /**
- * isContributorsEnabledを設定します。
- *
- * @param isContributorsEnabled
- * isContributorsEnabled
- */
- public void setContributorsEnabled(boolean isContributorsEnabled) {
- this.isContributorsEnabled = isContributorsEnabled;
- }
-
- /**
- * descriptionを設定します。
- *
- * @param description
- * description
- */
- public void setDescription(String description) {
- this.description = description;
- }
-
- /**
- * favouritesCountを設定します。
- *
- * @param favouritesCount
- * favouritesCount
- */
- public void setFavouritesCount(int favouritesCount) {
- this.favouritesCount = favouritesCount;
- }
-
- /**
- * followersCountを設定します。
- *
- * @param followersCount
- * followersCount
- */
- public void setFollowersCount(int followersCount) {
- this.followersCount = followersCount;
- }
-
- /**
- * isFollowingを設定します。
- *
- * @param isFollowing
- * isFollowing
- */
- public void setFollowing(boolean isFollowing) {
- this.isFollowing = isFollowing;
- }
-
- /**
- * friendsCountを設定します。
- *
- * @param friendsCount
- * friendsCount
- */
- public void setFriendsCount(int friendsCount) {
- this.friendsCount = friendsCount;
- }
-
- /**
- * isGeoEnabledを設定します。
- *
- * @param isGeoEnabled
- * isGeoEnabled
- */
- public void setGeoEnabled(boolean isGeoEnabled) {
- this.isGeoEnabled = isGeoEnabled;
- }
-
- /**
- * idを設定します。
- *
- * @param id
- * id
- */
- public void setId(int id) {
- this.id = id;
- }
-
- /**
- * langを設定します。
- *
- * @param lang
- * lang
- */
- public void setLang(String lang) {
- this.lang = lang;
- }
-
- /**
- * locationを設定します。
- *
- * @param location
- * location
- */
- public void setLocation(String location) {
- this.location = location;
- }
-
- /**
- * nameを設定します。
- *
- * @param name
- * name
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * profileBackgroundColorを設定します。
- *
- * @param profileBackgroundColor
- * profileBackgroundColor
- */
- public void setProfileBackgroundColor(String profileBackgroundColor) {
- this.profileBackgroundColor = profileBackgroundColor;
- }
-
- /**
- * profileBackgroundImageURLを設定します。
- *
- * @param profileBackgroundImageURL
- * profileBackgroundImageURL
- */
- public void setProfileBackgroundImageUrl(String profileBackgroundImageURL) {
- this.profileBackgroundImageUrl = profileBackgroundImageURL;
- }
-
- /**
- * profileBackgroundTiledを設定します。
- *
- * @param profileBackgroundTiled
- * profileBackgroundTiled
- */
- public void setProfileBackgroundTiled(boolean profileBackgroundTiled) {
- this.profileBackgroundTiled = profileBackgroundTiled;
- }
-
- /**
- * profileImageURLを設定します。
- *
- * @param profileImageURL
- * profileImageURL
- */
- public void setProfileImageURL(URL profileImageURL) {
- this.profileImageURL = profileImageURL;
- }
-
- /**
- * profileLinkColorを設定します。
- *
- * @param profileLinkColor
- * profileLinkColor
- */
- public void setProfileLinkColor(String profileLinkColor) {
- this.profileLinkColor = profileLinkColor;
- }
-
- /**
- * profileSidebarBorderColorを設定します。
- *
- * @param profileSidebarBorderColor
- * profileSidebarBorderColor
- */
- public void setProfileSidebarBorderColor(String profileSidebarBorderColor) {
- this.profileSidebarBorderColor = profileSidebarBorderColor;
- }
-
- /**
- * profileSidebarFillColorを設定します。
- *
- * @param profileSidebarFillColor
- * profileSidebarFillColor
- */
- public void setProfileSidebarFillColor(String profileSidebarFillColor) {
- this.profileSidebarFillColor = profileSidebarFillColor;
- }
-
- /**
- * profileTextColorを設定します。
- *
- * @param profileTextColor
- * profileTextColor
- */
- public void setProfileTextColor(String profileTextColor) {
- this.profileTextColor = profileTextColor;
- }
-
- /**
- * isProtectedを設定します。
- *
- * @param isProtected
- * isProtected
- */
- public void setProtected(boolean isProtected) {
- this.isProtected = isProtected;
- }
-
- /**
- * screenNameを設定します。
- *
- * @param screenName
- * screenName
- */
- public void setScreenName(String screenName) {
- this.screenName = screenName;
- }
-
- /**
- * statusを設定します。
- *
- * @param status
- * status
- */
- public void setStatus(Status status) {
- this.status = status;
- }
-
- /**
- * statusCreatedAtを設定します。
- *
- * @param statusCreatedAt
- * statusCreatedAt
- */
- public void setStatusCreatedAt(Date statusCreatedAt) {
- this.statusCreatedAt = statusCreatedAt;
- }
-
- /**
- * statusesCountを設定します。
- *
- * @param statusesCount
- * statusesCount
- */
- public void setStatusesCount(int statusesCount) {
- this.statusesCount = statusesCount;
- }
-
- /**
- * timeZoneを設定します。
- *
- * @param timeZone
- * timeZone
- */
- public void setTimeZone(String timeZone) {
- this.timeZone = timeZone;
- }
-
- /**
- * URLを設定します。
- *
- * @param URL
- * URL
- */
- public void setURL(URL URL) {
- this.URL = URL;
- }
-
- /**
- * utcOffsetを設定します。
- *
- * @param utcOffset
- * utcOffset
- */
- public void setUtcOffset(int utcOffset) {
- this.utcOffset = utcOffset;
- }
-
- /**
- * isVerifiedを設定します。
- *
- * @param isVerified
- * isVerified
- */
- public void setVerified(boolean isVerified) {
- this.isVerified = isVerified;
- }
-
- @Override
- public String toString() {
- return "SimpleUser [URL=" + URL + ", description=" + description
- + ", favouritesCount=" + favouritesCount + ", followersCount="
- + followersCount + ", friendsCount=" + friendsCount + ", id="
- + id + ", isContributorsEnabled=" + isContributorsEnabled
- + ", isFollowing=" + isFollowing + ", isGeoEnabled="
- + isGeoEnabled + ", isProtected=" + isProtected
- + ", isVerified=" + isVerified + ", lang=" + lang
- + ", location=" + location + ", name=" + name
- + ", profileBackgroundColor=" + profileBackgroundColor
- + ", profileBackgroundImageUrl=" + profileBackgroundImageUrl
- + ", profileBackgroundTiled=" + profileBackgroundTiled
- + ", profileImageURL=" + profileImageURL
- + ", profileLinkColor=" + profileLinkColor
- + ", profileSidebarBorderColor=" + profileSidebarBorderColor
- + ", profileSidebarFillColor=" + profileSidebarFillColor
- + ", profileTextColor=" + profileTextColor + ", screenName="
- + screenName + ", status=" + status + ", statusCreatedAt="
- + statusCreatedAt + ", statusesCount=" + statusesCount
- + ", timeZone=" + timeZone + ", utcOffset=" + utcOffset + "]";
- }
-
+ private int id;
+ private String name;
+ private String screenName;
+ private String location;
+ private String description;
+ private boolean isContributorsEnabled;
+ private URL profileImageURL;
+ private URL URL;
+ private boolean isProtected;
+ private int followersCount;
+ private Status status;
+ private String profileBackgroundColor;
+ private String profileTextColor;
+ private String profileLinkColor;
+ private String profileSidebarFillColor;
+ private String profileSidebarBorderColor;
+ private int friendsCount;
+ private Date statusCreatedAt;
+ private int favouritesCount;
+ private int utcOffset;
+ private String timeZone;
+ private String profileBackgroundImageUrl;
+ private boolean profileBackgroundTiled;
+ private String lang;
+ private int statusesCount;
+ private boolean isGeoEnabled;
+ private boolean isVerified;
+ private boolean isFollowing;
+
+ @Override
+ public Date getCreatedAt() {
+ return status.getCreatedAt();
+ }
+
+ /**
+ * descriptionを取得します。
+ *
+ * @return description
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * favouritesCountを取得します。
+ *
+ * @return favouritesCount
+ */
+ public int getFavouritesCount() {
+ return favouritesCount;
+ }
+
+ /**
+ * followersCountを取得します。
+ *
+ * @return followersCount
+ */
+ public int getFollowersCount() {
+ return followersCount;
+ }
+
+ /**
+ * friendsCountを取得します。
+ *
+ * @return friendsCount
+ */
+ public int getFriendsCount() {
+ return friendsCount;
+ }
+
+ /**
+ * idを取得します。
+ *
+ * @return id
+ */
+ public int getId() {
+ return id;
+ }
+
+ /**
+ * langを取得します。
+ *
+ * @return lang
+ */
+ public String getLang() {
+ return lang;
+ }
+
+ /**
+ * locationを取得します。
+ *
+ * @return location
+ */
+ public String getLocation() {
+ return location;
+ }
+
+ /**
+ * nameを取得します。
+ *
+ * @return name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * profileBackgroundColorを取得します。
+ *
+ * @return profileBackgroundColor
+ */
+ public String getProfileBackgroundColor() {
+ return profileBackgroundColor;
+ }
+
+ /**
+ * profileBackgroundImageURLを取得します。
+ *
+ * @return profileBackgroundImageURL
+ */
+ public String getProfileBackgroundImageUrl() {
+ return profileBackgroundImageUrl;
+ }
+
+ /**
+ * profileImageURLを取得します。
+ *
+ * @return profileImageURL
+ */
+ public URL getProfileImageURL() {
+ return profileImageURL;
+ }
+
+ /**
+ * profileLinkColorを取得します。
+ *
+ * @return profileLinkColor
+ */
+ public String getProfileLinkColor() {
+ return profileLinkColor;
+ }
+
+ /**
+ * profileSidebarBorderColorを取得します。
+ *
+ * @return profileSidebarBorderColor
+ */
+ public String getProfileSidebarBorderColor() {
+ return profileSidebarBorderColor;
+ }
+
+ /**
+ * profileSidebarFillColorを取得します。
+ *
+ * @return profileSidebarFillColor
+ */
+ public String getProfileSidebarFillColor() {
+ return profileSidebarFillColor;
+ }
+
+ /**
+ * profileTextColorを取得します。
+ *
+ * @return profileTextColor
+ */
+ public String getProfileTextColor() {
+ return profileTextColor;
+ }
+
+ @Override
+ public RateLimitStatus getRateLimitStatus() {
+ // TODO: いつか実装
+ return null;
+ }
+
+ /**
+ * screenNameを取得します。
+ *
+ * @return screenName
+ */
+ public String getScreenName() {
+ return screenName;
+ }
+
+ /**
+ * statusを取得します。
+ *
+ * @return status
+ */
+ public Status getStatus() {
+ return status;
+ }
+
+ /**
+ * statusCreatedAtを取得します。
+ *
+ * @return statusCreatedAt
+ */
+ public Date getStatusCreatedAt() {
+ return statusCreatedAt;
+ }
+
+ /**
+ * statusesCountを取得します。
+ *
+ * @return statusesCount
+ */
+ public int getStatusesCount() {
+ return statusesCount;
+ }
+
+ @Override
+ public long getStatusId() {
+ return status.getId();
+ }
+
+ @Override
+ public String getStatusInReplyToScreenName() {
+ return status.getInReplyToScreenName();
+ }
+
+ @Override
+ public long getStatusInReplyToStatusId() {
+ return status.getInReplyToStatusId();
+ }
+
+ @Override
+ public int getStatusInReplyToUserId() {
+ return status.getInReplyToUserId();
+ }
+
+ @Override
+ public String getStatusSource() {
+ return status.getSource();
+ }
+
+ @Override
+ public String getStatusText() {
+ return status.getText();
+ }
+
+ /**
+ * timeZoneを取得します。
+ *
+ * @return timeZone
+ */
+ public String getTimeZone() {
+ return timeZone;
+ }
+
+ /**
+ * URLを取得します。
+ *
+ * @return URL
+ */
+ public URL getURL() {
+ return URL;
+ }
+
+ /**
+ * utcOffsetを取得します。
+ *
+ * @return utcOffset
+ */
+ public int getUtcOffset() {
+ return utcOffset;
+ }
+
+ /**
+ * isContributorsEnabledを取得します。
+ *
+ * @return isContributorsEnabled
+ */
+ public boolean isContributorsEnabled() {
+ return isContributorsEnabled;
+ }
+
+ /**
+ * isFollowingを取得します。
+ *
+ * @return isFollowing
+ */
+ public boolean isFollowing() {
+ return isFollowing;
+ }
+
+ /**
+ * isGeoEnabledを取得します。
+ *
+ * @return isGeoEnabled
+ */
+ public boolean isGeoEnabled() {
+ return isGeoEnabled;
+ }
+
+ /**
+ * profileBackgroundTiledを取得します。
+ *
+ * @return profileBackgroundTiled
+ */
+ public boolean isProfileBackgroundTiled() {
+ return profileBackgroundTiled;
+ }
+
+ /**
+ * isProtectedを取得します。
+ *
+ * @return isProtected
+ */
+ public boolean isProtected() {
+ return isProtected;
+ }
+
+ @Override
+ public boolean isStatusFavorited() {
+ return status.isFavorited();
+ }
+
+ @Override
+ public boolean isStatusTruncated() {
+ return status.isTruncated();
+ }
+
+ /**
+ * isVerifiedを取得します。
+ *
+ * @return isVerified
+ */
+ public boolean isVerified() {
+ return isVerified;
+ }
+
+ /**
+ * isContributorsEnabledを設定します。
+ *
+ * @param isContributorsEnabled
+ * isContributorsEnabled
+ */
+ public void setContributorsEnabled(boolean isContributorsEnabled) {
+ this.isContributorsEnabled = isContributorsEnabled;
+ }
+
+ /**
+ * descriptionを設定します。
+ *
+ * @param description
+ * description
+ */
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ /**
+ * favouritesCountを設定します。
+ *
+ * @param favouritesCount
+ * favouritesCount
+ */
+ public void setFavouritesCount(int favouritesCount) {
+ this.favouritesCount = favouritesCount;
+ }
+
+ /**
+ * followersCountを設定します。
+ *
+ * @param followersCount
+ * followersCount
+ */
+ public void setFollowersCount(int followersCount) {
+ this.followersCount = followersCount;
+ }
+
+ /**
+ * isFollowingを設定します。
+ *
+ * @param isFollowing
+ * isFollowing
+ */
+ public void setFollowing(boolean isFollowing) {
+ this.isFollowing = isFollowing;
+ }
+
+ /**
+ * friendsCountを設定します。
+ *
+ * @param friendsCount
+ * friendsCount
+ */
+ public void setFriendsCount(int friendsCount) {
+ this.friendsCount = friendsCount;
+ }
+
+ /**
+ * isGeoEnabledを設定します。
+ *
+ * @param isGeoEnabled
+ * isGeoEnabled
+ */
+ public void setGeoEnabled(boolean isGeoEnabled) {
+ this.isGeoEnabled = isGeoEnabled;
+ }
+
+ /**
+ * idを設定します。
+ *
+ * @param id
+ * id
+ */
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ /**
+ * langを設定します。
+ *
+ * @param lang
+ * lang
+ */
+ public void setLang(String lang) {
+ this.lang = lang;
+ }
+
+ /**
+ * locationを設定します。
+ *
+ * @param location
+ * location
+ */
+ public void setLocation(String location) {
+ this.location = location;
+ }
+
+ /**
+ * nameを設定します。
+ *
+ * @param name
+ * name
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * profileBackgroundColorを設定します。
+ *
+ * @param profileBackgroundColor
+ * profileBackgroundColor
+ */
+ public void setProfileBackgroundColor(String profileBackgroundColor) {
+ this.profileBackgroundColor = profileBackgroundColor;
+ }
+
+ /**
+ * profileBackgroundImageURLを設定します。
+ *
+ * @param profileBackgroundImageURL
+ * profileBackgroundImageURL
+ */
+ public void setProfileBackgroundImageUrl(String profileBackgroundImageURL) {
+ this.profileBackgroundImageUrl = profileBackgroundImageURL;
+ }
+
+ /**
+ * profileBackgroundTiledを設定します。
+ *
+ * @param profileBackgroundTiled
+ * profileBackgroundTiled
+ */
+ public void setProfileBackgroundTiled(boolean profileBackgroundTiled) {
+ this.profileBackgroundTiled = profileBackgroundTiled;
+ }
+
+ /**
+ * profileImageURLを設定します。
+ *
+ * @param profileImageURL
+ * profileImageURL
+ */
+ public void setProfileImageURL(URL profileImageURL) {
+ this.profileImageURL = profileImageURL;
+ }
+
+ /**
+ * profileLinkColorを設定します。
+ *
+ * @param profileLinkColor
+ * profileLinkColor
+ */
+ public void setProfileLinkColor(String profileLinkColor) {
+ this.profileLinkColor = profileLinkColor;
+ }
+
+ /**
+ * profileSidebarBorderColorを設定します。
+ *
+ * @param profileSidebarBorderColor
+ * profileSidebarBorderColor
+ */
+ public void setProfileSidebarBorderColor(String profileSidebarBorderColor) {
+ this.profileSidebarBorderColor = profileSidebarBorderColor;
+ }
+
+ /**
+ * profileSidebarFillColorを設定します。
+ *
+ * @param profileSidebarFillColor
+ * profileSidebarFillColor
+ */
+ public void setProfileSidebarFillColor(String profileSidebarFillColor) {
+ this.profileSidebarFillColor = profileSidebarFillColor;
+ }
+
+ /**
+ * profileTextColorを設定します。
+ *
+ * @param profileTextColor
+ * profileTextColor
+ */
+ public void setProfileTextColor(String profileTextColor) {
+ this.profileTextColor = profileTextColor;
+ }
+
+ /**
+ * isProtectedを設定します。
+ *
+ * @param isProtected
+ * isProtected
+ */
+ public void setProtected(boolean isProtected) {
+ this.isProtected = isProtected;
+ }
+
+ /**
+ * screenNameを設定します。
+ *
+ * @param screenName
+ * screenName
+ */
+ public void setScreenName(String screenName) {
+ this.screenName = screenName;
+ }
+
+ /**
+ * statusを設定します。
+ *
+ * @param status
+ * status
+ */
+ public void setStatus(Status status) {
+ this.status = status;
+ }
+
+ /**
+ * statusCreatedAtを設定します。
+ *
+ * @param statusCreatedAt
+ * statusCreatedAt
+ */
+ public void setStatusCreatedAt(Date statusCreatedAt) {
+ this.statusCreatedAt = statusCreatedAt;
+ }
+
+ /**
+ * statusesCountを設定します。
+ *
+ * @param statusesCount
+ * statusesCount
+ */
+ public void setStatusesCount(int statusesCount) {
+ this.statusesCount = statusesCount;
+ }
+
+ /**
+ * timeZoneを設定します。
+ *
+ * @param timeZone
+ * timeZone
+ */
+ public void setTimeZone(String timeZone) {
+ this.timeZone = timeZone;
+ }
+
+ /**
+ * URLを設定します。
+ *
+ * @param URL
+ * URL
+ */
+ public void setURL(URL URL) {
+ this.URL = URL;
+ }
+
+ /**
+ * utcOffsetを設定します。
+ *
+ * @param utcOffset
+ * utcOffset
+ */
+ public void setUtcOffset(int utcOffset) {
+ this.utcOffset = utcOffset;
+ }
+
+ /**
+ * isVerifiedを設定します。
+ *
+ * @param isVerified
+ * isVerified
+ */
+ public void setVerified(boolean isVerified) {
+ this.isVerified = isVerified;
+ }
+
+ @Override
+ public String toString() {
+ return "SimpleUser [URL=" + URL + ", description=" + description
+ + ", favouritesCount=" + favouritesCount + ", followersCount="
+ + followersCount + ", friendsCount=" + friendsCount + ", id="
+ + id + ", isContributorsEnabled=" + isContributorsEnabled
+ + ", isFollowing=" + isFollowing + ", isGeoEnabled="
+ + isGeoEnabled + ", isProtected=" + isProtected
+ + ", isVerified=" + isVerified + ", lang=" + lang
+ + ", location=" + location + ", name=" + name
+ + ", profileBackgroundColor=" + profileBackgroundColor
+ + ", profileBackgroundImageUrl=" + profileBackgroundImageUrl
+ + ", profileBackgroundTiled=" + profileBackgroundTiled
+ + ", profileImageURL=" + profileImageURL
+ + ", profileLinkColor=" + profileLinkColor
+ + ", profileSidebarBorderColor=" + profileSidebarBorderColor
+ + ", profileSidebarFillColor=" + profileSidebarFillColor
+ + ", profileTextColor=" + profileTextColor + ", screenName="
+ + screenName + ", status=" + status + ", statusCreatedAt="
+ + statusCreatedAt + ", statusesCount=" + statusesCount
+ + ", timeZone=" + timeZone + ", utcOffset=" + utcOffset + "]";
+ }
+
+ public int compareTo(User t) {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
}
}
@Override
- public int compareTo(Status o) {
- return 0;
- }
-
- @Override
public String[] getContributors() {
return null;
}
public boolean isTruncated() {
return false;
}
+
+ public int compareTo(Status t) {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
}
private Twitter twitter = null;
// クライアントのConsumer Key