Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DazzleSquad - 13513010 - Zulva Fachrina #30

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<<<<<<< HEAD
/Stack Exchange Client/dist/
=======
>>>>>>> origin/master
/Stack Exchange WS/dist/
/Stack Exchange IS/dist/
2 changes: 1 addition & 1 deletion README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Diharapkan dengan tugas ini anda dapat mengerti:

### Link Laporan

*Masukkan link laporan anda di sini*
http://bit.ly/DazzleSquad2

### Arsitektur Umum Server

Expand Down
71 changes: 71 additions & 0 deletions Stack Exchange Client/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="Stack_Exchange_Client" default="default" basedir=".">
<description>Builds, tests, and runs the project Stack Exchange Client.</description>
<import file="nbproject/build-impl.xml"/>
<!--

There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:

-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-dist: called before archive building
-post-dist: called after archive building
-post-clean: called after cleaning build products
-pre-run-deploy: called before deploying
-post-run-deploy: called after deploying

Example of pluging an obfuscator after the compilation could look like

<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>

For list of available properties check the imported
nbproject/build-impl.xml file.


Other way how to customize the build is by overriding existing main targets.
The target of interest are:

init-macrodef-javac: defines macro for javac compilation
init-macrodef-junit: defines macro for junit execution
init-macrodef-debug: defines macro for class debugging
do-dist: archive building
run: execution of project
javadoc-build: javadoc generation

Example of overriding the target for project execution could look like

<target name="run" depends="<PROJNAME>-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>

Notice that overridden target depends on jar target and not only on
compile target as regular run target does. Again, for list of available
properties which you can use check the target you are overriding in
nbproject/build-impl.xml file.

-->
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@

package AnswerWS;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
* <p>Java class for answer complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="answer"&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/&gt;
* &lt;element name="question_id" type="{http://www.w3.org/2001/XMLSchema}int"/&gt;
* &lt;element name="user_id" type="{http://www.w3.org/2001/XMLSchema}int"/&gt;
* &lt;element name="content" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
* &lt;element name="vote" type="{http://www.w3.org/2001/XMLSchema}int"/&gt;
* &lt;element name="date" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
* &lt;element name="username" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
* &lt;element name="answerUsername" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "answer", propOrder = {
"id",
"questionId",
"userId",
"content",
"vote",
"date",
"username",
"answerUsername"
})
public class Answer {

protected int id;
@XmlElement(name = "question_id")
protected int questionId;
@XmlElement(name = "user_id")
protected int userId;
@XmlElement(required = true)
protected String content;
protected int vote;
@XmlElement(required = true)
protected String date;
@XmlElement(required = true)
protected String username;
protected String answerUsername;

/**
* Gets the value of the id property.
*
*/
public int getId() {
return id;
}

/**
* Sets the value of the id property.
*
*/
public void setId(int value) {
this.id = value;
}

/**
* Gets the value of the questionId property.
*
*/
public int getQuestionId() {
return questionId;
}

/**
* Sets the value of the questionId property.
*
*/
public void setQuestionId(int value) {
this.questionId = value;
}

/**
* Gets the value of the userId property.
*
*/
public int getUserId() {
return userId;
}

/**
* Sets the value of the userId property.
*
*/
public void setUserId(int value) {
this.userId = value;
}

/**
* Gets the value of the content property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getContent() {
return content;
}

/**
* Sets the value of the content property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setContent(String value) {
this.content = value;
}

/**
* Gets the value of the vote property.
*
*/
public int getVote() {
return vote;
}

/**
* Sets the value of the vote property.
*
*/
public void setVote(int value) {
this.vote = value;
}

/**
* Gets the value of the date property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDate() {
return date;
}

/**
* Sets the value of the date property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDate(String value) {
this.date = value;
}

/**
* Gets the value of the username property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUsername() {
return username;
}

/**
* Sets the value of the username property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUsername(String value) {
this.username = value;
}

/**
* Gets the value of the answerUsername property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAnswerUsername() {
return answerUsername;
}

/**
* Sets the value of the answerUsername property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAnswerUsername(String value) {
this.answerUsername = value;
}

}
Loading