added psql, removed client-based functionality
This commit is contained in:
parent
34381ddba5
commit
787579a10d
226 changed files with 5094 additions and 3367 deletions
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
group = "ru.erius.lab5"
|
||||
version = "2.2"
|
||||
version = "3.0"
|
||||
val mainClass = "client.Lab5Client"
|
||||
|
||||
repositories {
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>All Classes (Lab5Client 2.2 API)</title>
|
||||
<title>All Classes (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>All Classes (Lab5Client 2.2 API)</title>
|
||||
<title>All Classes (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Lab5Client (Lab5Client 2.2 API)</title>
|
||||
<title>Lab5Client (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Lab5Client (Lab5Client 2.2 API)";
|
||||
parent.document.title="Lab5Client (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Adapters.NameAdapter (Lab5Core 2.2 API)</title>
|
||||
<title>CommandLineHandlerClient.ConnectionCommand (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,13 +11,13 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Adapters.NameAdapter (Lab5Core 2.2 API)";
|
||||
parent.document.title="CommandLineHandlerClient.ConnectionCommand (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":10,"i1":10};
|
||||
var methods = {"i0":10};
|
||||
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
|
@ -47,12 +47,12 @@ var activeTableTab = "activeTableTab";
|
|||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../common/parser/Adapters.LocalDateAdapter.html" title="class in common.parser"><span class="typeNameLink">Prev Class</span></a></li>
|
||||
<li><a href="../../common/parser/Adapters.PassportAdapter.html" title="class in common.parser"><span class="typeNameLink">Next Class</span></a></li>
|
||||
<li><a href="../../client/commandline/CommandLineHandlerClient.html" title="class in client.commandline"><span class="typeNameLink">Prev Class</span></a></li>
|
||||
<li>Next Class</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../index.html?common/parser/Adapters.NameAdapter.html" target="_top">Frames</a></li>
|
||||
<li><a href="Adapters.NameAdapter.html" target="_top">No Frames</a></li>
|
||||
<li><a href="../../index.html?client/commandline/CommandLineHandlerClient.ConnectionCommand.html" target="_top">Frames</a></li>
|
||||
<li><a href="CommandLineHandlerClient.ConnectionCommand.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
|
||||
|
@ -73,7 +73,7 @@ var activeTableTab = "activeTableTab";
|
|||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li>Nested | </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#fields.inherited.from.class.common.commandline.Command">Field</a> | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
|
@ -90,18 +90,18 @@ var activeTableTab = "activeTableTab";
|
|||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<div class="subTitle">common.parser</div>
|
||||
<h2 title="Class Adapters.NameAdapter" class="title">Class Adapters.NameAdapter</h2>
|
||||
<div class="subTitle">client.commandline</div>
|
||||
<h2 title="Class CommandLineHandlerClient.ConnectionCommand" class="title">Class CommandLineHandlerClient.ConnectionCommand</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.String></li>
|
||||
<li>common.commandline.Command</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>common.parser.Adapters.NameAdapter</li>
|
||||
<li>client.commandline.CommandLineHandlerClient.ConnectionCommand</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -111,19 +111,42 @@ var activeTableTab = "activeTableTab";
|
|||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<dl>
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd>java.io.Serializable</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Enclosing class:</dt>
|
||||
<dd><a href="../../common/parser/Adapters.html" title="class in common.parser">Adapters</a></dd>
|
||||
<dd><a href="../../client/commandline/CommandLineHandlerClient.html" title="class in client.commandline">CommandLineHandlerClient</a></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public static class <span class="typeNameLabel">Adapters.NameAdapter</span>
|
||||
extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.String></pre>
|
||||
<pre>public class <span class="typeNameLabel">CommandLineHandlerClient.ConnectionCommand</span>
|
||||
extends common.commandline.Command</pre>
|
||||
<dl>
|
||||
<dt><span class="seeLabel">See Also:</span></dt>
|
||||
<dd><a href="../../serialized-form.html#client.commandline.CommandLineHandlerClient.ConnectionCommand">Serialized Form</a></dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="summary">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Field Summary</h3>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="fields.inherited.from.class.common.commandline.Command">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Fields inherited from class common.commandline.Command</h3>
|
||||
<code>alias, args, clientOnly, description, executable</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor.summary">
|
||||
|
@ -136,7 +159,7 @@ extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.l
|
|||
<th class="colOne" scope="col">Constructor and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../common/parser/Adapters.NameAdapter.html#NameAdapter--">NameAdapter</a></span>()</code> </td>
|
||||
<td class="colOne"><code><span class="memberNameLink"><a href="../../client/commandline/CommandLineHandlerClient.ConnectionCommand.html#ConnectionCommand--">ConnectionCommand</a></span>()</code> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
|
@ -154,15 +177,18 @@ extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.l
|
|||
<th class="colLast" scope="col">Method and Description</th>
|
||||
</tr>
|
||||
<tr id="i0" class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../common/parser/Adapters.NameAdapter.html#marshal-java.lang.String-">marshal</a></span>(java.lang.String v)</code> </td>
|
||||
</tr>
|
||||
<tr id="i1" class="rowColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../common/parser/Adapters.NameAdapter.html#unmarshal-java.lang.String-">unmarshal</a></span>(java.lang.String v)</code> </td>
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../client/commandline/CommandLineHandlerClient.ConnectionCommand.html#validate-java.lang.String:A-">validate</a></span>(java.lang.String[] args)</code> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.common.commandline.Command">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Methods inherited from class common.commandline.Command</h3>
|
||||
<code>executeOnClient, getAlias, getArgs, getDescription, getExecutable, isClientOnly, setExecutable</code></li>
|
||||
</ul>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
@ -183,13 +209,13 @@ extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.l
|
|||
<!-- -->
|
||||
</a>
|
||||
<h3>Constructor Detail</h3>
|
||||
<a name="NameAdapter--">
|
||||
<a name="ConnectionCommand--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>NameAdapter</h4>
|
||||
<pre>public NameAdapter()</pre>
|
||||
<h4>ConnectionCommand</h4>
|
||||
<pre>public ConnectionCommand()</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
@ -200,35 +226,16 @@ extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.l
|
|||
<!-- -->
|
||||
</a>
|
||||
<h3>Method Detail</h3>
|
||||
<a name="unmarshal-java.lang.String-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>unmarshal</h4>
|
||||
<pre>public java.lang.String unmarshal(java.lang.String v)
|
||||
throws java.lang.Exception</pre>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code>unmarshal</code> in class <code>javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.String></code></dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.lang.Exception</code></dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="marshal-java.lang.String-">
|
||||
<a name="validate-java.lang.String:A-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>marshal</h4>
|
||||
<pre>public java.lang.String marshal(java.lang.String v)
|
||||
throws java.lang.Exception</pre>
|
||||
<h4>validate</h4>
|
||||
<pre>public boolean validate(java.lang.String[] args)</pre>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code>marshal</code> in class <code>javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.String></code></dd>
|
||||
<dt><span class="throwsLabel">Throws:</span></dt>
|
||||
<dd><code>java.lang.Exception</code></dd>
|
||||
<dd><code>validate</code> in class <code>common.commandline.Command</code></dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -259,12 +266,12 @@ extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.l
|
|||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="../../common/parser/Adapters.LocalDateAdapter.html" title="class in common.parser"><span class="typeNameLink">Prev Class</span></a></li>
|
||||
<li><a href="../../common/parser/Adapters.PassportAdapter.html" title="class in common.parser"><span class="typeNameLink">Next Class</span></a></li>
|
||||
<li><a href="../../client/commandline/CommandLineHandlerClient.html" title="class in client.commandline"><span class="typeNameLink">Prev Class</span></a></li>
|
||||
<li>Next Class</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../index.html?common/parser/Adapters.NameAdapter.html" target="_top">Frames</a></li>
|
||||
<li><a href="Adapters.NameAdapter.html" target="_top">No Frames</a></li>
|
||||
<li><a href="../../index.html?client/commandline/CommandLineHandlerClient.ConnectionCommand.html" target="_top">Frames</a></li>
|
||||
<li><a href="CommandLineHandlerClient.ConnectionCommand.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
|
||||
|
@ -285,7 +292,7 @@ extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.l
|
|||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li>Nested | </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#fields.inherited.from.class.common.commandline.Command">Field</a> | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
|
@ -0,0 +1,321 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>CommandLineHandlerClient (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="CommandLineHandlerClient (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":10,"i1":10,"i2":9};
|
||||
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
var tableTab = "tableTab";
|
||||
var activeTableTab = "activeTableTab";
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../overview-summary.html">Overview</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="navBarCell1Rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../index-all.html">Index</a></li>
|
||||
<li><a href="../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev Class</li>
|
||||
<li><a href="../../client/commandline/CommandLineHandlerClient.ConnectionCommand.html" title="class in client.commandline"><span class="typeNameLink">Next Class</span></a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../index.html?client/commandline/CommandLineHandlerClient.html" target="_top">Frames</a></li>
|
||||
<li><a href="CommandLineHandlerClient.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li><a href="#nested.class.summary">Nested</a> | </li>
|
||||
<li><a href="#fields.inherited.from.class.common.commandline.CommandLineHandler">Field</a> | </li>
|
||||
<li>Constr | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li>Constr | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<div class="subTitle">client.commandline</div>
|
||||
<h2 title="Class CommandLineHandlerClient" class="title">Class CommandLineHandlerClient</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>common.commandline.CommandLineHandler</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>client.commandline.CommandLineHandlerClient</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public final class <span class="typeNameLabel">CommandLineHandlerClient</span>
|
||||
extends common.commandline.CommandLineHandler</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="summary">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="nested.class.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Nested Class Summary</h3>
|
||||
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
|
||||
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||
<th class="colLast" scope="col">Class and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>class </code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../client/commandline/CommandLineHandlerClient.ConnectionCommand.html" title="class in client.commandline">CommandLineHandlerClient.ConnectionCommand</a></span></code> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="nested.classes.inherited.from.class.common.commandline.CommandLineHandler">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Nested classes/interfaces inherited from class common.commandline.CommandLineHandler</h3>
|
||||
<code>common.commandline.CommandLineHandler.CommandLineNotInitialized, common.commandline.CommandLineHandler.ExecuteScriptCommand, common.commandline.CommandLineHandler.ExitCommand, common.commandline.CommandLineHandler.HistoryCommand</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Field Summary</h3>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="fields.inherited.from.class.common.commandline.CommandLineHandler">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Fields inherited from class common.commandline.CommandLineHandler</h3>
|
||||
<code>fileNames, history, inputs, instance, isActive, reader</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Method Summary</h3>
|
||||
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
||||
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||
<th class="colLast" scope="col">Method and Description</th>
|
||||
</tr>
|
||||
<tr id="i0" class="altColor">
|
||||
<td class="colFirst"><code>protected void</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../client/commandline/CommandLineHandlerClient.html#executeCommand-java.lang.String-java.lang.String:A-">executeCommand</a></span>(java.lang.String alias,
|
||||
java.lang.String[] args)</code> </td>
|
||||
</tr>
|
||||
<tr id="i1" class="rowColor">
|
||||
<td class="colFirst"><code>common.commandline.response.CommandResult</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../client/commandline/CommandLineHandlerClient.html#executeOnServer-client.net.UDPClient-common.commandline.Command-">executeOnServer</a></span>(<a href="../../client/net/UDPClient.html" title="class in client.net">UDPClient</a> udp,
|
||||
common.commandline.Command command)</code> </td>
|
||||
</tr>
|
||||
<tr id="i2" class="altColor">
|
||||
<td class="colFirst"><code>static common.commandline.CommandLineHandler</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../../client/commandline/CommandLineHandlerClient.html#getClientCommandLine--">getClientCommandLine</a></span>()</code> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.common.commandline.CommandLineHandler">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Methods inherited from class common.commandline.CommandLineHandler</h3>
|
||||
<code>addNewInput, awaitInput, awaitInput, awaitInput, clearScreen, executeScript, exit, getInstance, history, history, input, isActive, removeInput, start, updateHistory</code></li>
|
||||
</ul>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Methods inherited from class java.lang.Object</h3>
|
||||
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="details">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Method Detail</h3>
|
||||
<a name="getClientCommandLine--">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>getClientCommandLine</h4>
|
||||
<pre>public static common.commandline.CommandLineHandler getClientCommandLine()</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="executeCommand-java.lang.String-java.lang.String:A-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>executeCommand</h4>
|
||||
<pre>protected void executeCommand(java.lang.String alias,
|
||||
java.lang.String[] args)</pre>
|
||||
<dl>
|
||||
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||
<dd><code>executeCommand</code> in class <code>common.commandline.CommandLineHandler</code></dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="executeOnServer-client.net.UDPClient-common.commandline.Command-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>executeOnServer</h4>
|
||||
<pre>public common.commandline.response.CommandResult executeOnServer(<a href="../../client/net/UDPClient.html" title="class in client.net">UDPClient</a> udp,
|
||||
common.commandline.Command command)</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../../overview-summary.html">Overview</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="navBarCell1Rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../deprecated-list.html">Deprecated</a></li>
|
||||
<li><a href="../../index-all.html">Index</a></li>
|
||||
<li><a href="../../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li>Prev Class</li>
|
||||
<li><a href="../../client/commandline/CommandLineHandlerClient.ConnectionCommand.html" title="class in client.commandline"><span class="typeNameLink">Next Class</span></a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../index.html?client/commandline/CommandLineHandlerClient.html" target="_top">Frames</a></li>
|
||||
<li><a href="CommandLineHandlerClient.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if(window==top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li><a href="#nested.class.summary">Nested</a> | </li>
|
||||
<li><a href="#fields.inherited.from.class.common.commandline.CommandLineHandler">Field</a> | </li>
|
||||
<li>Constr | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li>Constr | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>client.commandline (Lab5Client 2.2 API)</title>
|
||||
<title>client.commandline (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../script.js"></script>
|
||||
</head>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>client.commandline (Lab5Client 2.2 API)</title>
|
||||
<title>client.commandline (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="client.commandline (Lab5Client 2.2 API)";
|
||||
parent.document.title="client.commandline (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>client.commandline Class Hierarchy (Lab5Client 2.2 API)</title>
|
||||
<title>client.commandline Class Hierarchy (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="client.commandline Class Hierarchy (Lab5Client 2.2 API)";
|
||||
parent.document.title="client.commandline Class Hierarchy (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
@ -82,7 +82,6 @@
|
|||
<li type="circle">common.commandline.Command (implements java.io.Serializable)
|
||||
<ul>
|
||||
<li type="circle">client.commandline.<a href="../../client/commandline/CommandLineHandlerClient.ConnectionCommand.html" title="class in client.commandline"><span class="typeNameLink">CommandLineHandlerClient.ConnectionCommand</span></a></li>
|
||||
<li type="circle">client.commandline.<a href="../../client/commandline/CommandLineHandlerClient.ModeCommand.html" title="class in client.commandline"><span class="typeNameLink">CommandLineHandlerClient.ModeCommand</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li type="circle">common.commandline.CommandLineHandler
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>AddCommand (Lab5Client 2.2 API)</title>
|
||||
<title>AddCommand (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="AddCommand (Lab5Client 2.2 API)";
|
||||
parent.document.title="AddCommand (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>AddIfMaxCommand (Lab5Client 2.2 API)</title>
|
||||
<title>AddIfMaxCommand (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="AddIfMaxCommand (Lab5Client 2.2 API)";
|
||||
parent.document.title="AddIfMaxCommand (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>AddIfMinCommand (Lab5Client 2.2 API)</title>
|
||||
<title>AddIfMinCommand (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="AddIfMinCommand (Lab5Client 2.2 API)";
|
||||
parent.document.title="AddIfMinCommand (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>ClearCommand (Lab5Client 2.2 API)</title>
|
||||
<title>ClearCommand (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="ClearCommand (Lab5Client 2.2 API)";
|
||||
parent.document.title="ClearCommand (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>FilterContainsNameCommand (Lab5Client 2.2 API)</title>
|
||||
<title>FilterContainsNameCommand (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="FilterContainsNameCommand (Lab5Client 2.2 API)";
|
||||
parent.document.title="FilterContainsNameCommand (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>InfoCommand (Lab5Client 2.2 API)</title>
|
||||
<title>InfoCommand (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="InfoCommand (Lab5Client 2.2 API)";
|
||||
parent.document.title="InfoCommand (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>PrintFieldDescendingLocationCommand (Lab5Client 2.2 API)</title>
|
||||
<title>PrintFieldDescendingLocationCommand (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="PrintFieldDescendingLocationCommand (Lab5Client 2.2 API)";
|
||||
parent.document.title="PrintFieldDescendingLocationCommand (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>RemoveByIdCommand (Lab5Client 2.2 API)</title>
|
||||
<title>RemoveByIdCommand (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="RemoveByIdCommand (Lab5Client 2.2 API)";
|
||||
parent.document.title="RemoveByIdCommand (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>ShowCommand (Lab5Client 2.2 API)</title>
|
||||
<title>ShowCommand (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="ShowCommand (Lab5Client 2.2 API)";
|
||||
parent.document.title="ShowCommand (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>SumOfHeightCommand (Lab5Client 2.2 API)</title>
|
||||
<title>SumOfHeightCommand (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="SumOfHeightCommand (Lab5Client 2.2 API)";
|
||||
parent.document.title="SumOfHeightCommand (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>UpdateCommand (Lab5Client 2.2 API)</title>
|
||||
<title>UpdateCommand (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="UpdateCommand (Lab5Client 2.2 API)";
|
||||
parent.document.title="UpdateCommand (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>client.commandline.pdcommands (Lab5Client 2.2 API)</title>
|
||||
<title>client.commandline.pdcommands (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>client.commandline.pdcommands (Lab5Client 2.2 API)</title>
|
||||
<title>client.commandline.pdcommands (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="client.commandline.pdcommands (Lab5Client 2.2 API)";
|
||||
parent.document.title="client.commandline.pdcommands (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>client.commandline.pdcommands Class Hierarchy (Lab5Client 2.2 API)</title>
|
||||
<title>client.commandline.pdcommands Class Hierarchy (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="client.commandline.pdcommands Class Hierarchy (Lab5Client 2.2 API)";
|
||||
parent.document.title="client.commandline.pdcommands Class Hierarchy (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>UDPClient (Lab5Client 2.2 API)</title>
|
||||
<title>UDPClient (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="UDPClient (Lab5Client 2.2 API)";
|
||||
parent.document.title="UDPClient (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>client.net (Lab5Client 2.2 API)</title>
|
||||
<title>client.net (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../script.js"></script>
|
||||
</head>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>client.net (Lab5Client 2.2 API)</title>
|
||||
<title>client.net (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="client.net (Lab5Client 2.2 API)";
|
||||
parent.document.title="client.net (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>client.net Class Hierarchy (Lab5Client 2.2 API)</title>
|
||||
<title>client.net Class Hierarchy (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="client.net Class Hierarchy (Lab5Client 2.2 API)";
|
||||
parent.document.title="client.net Class Hierarchy (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>client (Lab5Client 2.2 API)</title>
|
||||
<title>client (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>client (Lab5Client 2.2 API)</title>
|
||||
<title>client (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="client (Lab5Client 2.2 API)";
|
||||
parent.document.title="client (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>client Class Hierarchy (Lab5Client 2.2 API)</title>
|
||||
<title>client Class Hierarchy (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="client Class Hierarchy (Lab5Client 2.2 API)";
|
||||
parent.document.title="client Class Hierarchy (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Constant Field Values (Lab5Client 2.2 API)</title>
|
||||
<title>Constant Field Values (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Constant Field Values (Lab5Client 2.2 API)";
|
||||
parent.document.title="Constant Field Values (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Deprecated List (Lab5Client 2.2 API)</title>
|
||||
<title>Deprecated List (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Deprecated List (Lab5Client 2.2 API)";
|
||||
parent.document.title="Deprecated List (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>API Help (Lab5Client 2.2 API)</title>
|
||||
<title>API Help (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="API Help (Lab5Client 2.2 API)";
|
||||
parent.document.title="API Help (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Index (Lab5Client 2.2 API)</title>
|
||||
<title>Index (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Index (Lab5Client 2.2 API)";
|
||||
parent.document.title="Index (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
@ -106,8 +106,6 @@
|
|||
<dd> </dd>
|
||||
<dt><a href="client/commandline/CommandLineHandlerClient.ConnectionCommand.html" title="class in client.commandline"><span class="typeNameLink">CommandLineHandlerClient.ConnectionCommand</span></a> - Class in <a href="client/commandline/package-summary.html">client.commandline</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="client/commandline/CommandLineHandlerClient.ModeCommand.html" title="class in client.commandline"><span class="typeNameLink">CommandLineHandlerClient.ModeCommand</span></a> - Class in <a href="client/commandline/package-summary.html">client.commandline</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="client/net/UDPClient.html#connect--">connect()</a></span> - Method in class client.net.<a href="client/net/UDPClient.html" title="class in client.net">UDPClient</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="client/commandline/CommandLineHandlerClient.ConnectionCommand.html#ConnectionCommand--">ConnectionCommand()</a></span> - Constructor for class client.commandline.<a href="client/commandline/CommandLineHandlerClient.ConnectionCommand.html" title="class in client.commandline">CommandLineHandlerClient.ConnectionCommand</a></dt>
|
||||
|
@ -180,8 +178,6 @@
|
|||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="client/Lab5Client.html#main-java.lang.String:A-">main(String[])</a></span> - Static method in class client.<a href="client/Lab5Client.html" title="class in client">Lab5Client</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="client/commandline/CommandLineHandlerClient.ModeCommand.html#ModeCommand--">ModeCommand()</a></span> - Constructor for class client.commandline.<a href="client/commandline/CommandLineHandlerClient.ModeCommand.html" title="class in client.commandline">CommandLineHandlerClient.ModeCommand</a></dt>
|
||||
<dd> </dd>
|
||||
</dl>
|
||||
<a name="I:P">
|
||||
<!-- -->
|
||||
|
@ -248,8 +244,6 @@
|
|||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="client/commandline/CommandLineHandlerClient.ConnectionCommand.html#validate-java.lang.String:A-">validate(String[])</a></span> - Method in class client.commandline.<a href="client/commandline/CommandLineHandlerClient.ConnectionCommand.html" title="class in client.commandline">CommandLineHandlerClient.ConnectionCommand</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="client/commandline/CommandLineHandlerClient.ModeCommand.html#validate-java.lang.String:A-">validate(String[])</a></span> - Method in class client.commandline.<a href="client/commandline/CommandLineHandlerClient.ModeCommand.html" title="class in client.commandline">CommandLineHandlerClient.ModeCommand</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="client/commandline/pdcommands/AddCommand.html#validate-java.lang.String:A-">validate(String[])</a></span> - Method in class client.commandline.pdcommands.<a href="client/commandline/pdcommands/AddCommand.html" title="class in client.commandline.pdcommands">AddCommand</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="client/commandline/pdcommands/AddIfMaxCommand.html#validate-java.lang.String:A-">validate(String[])</a></span> - Method in class client.commandline.pdcommands.<a href="client/commandline/pdcommands/AddIfMaxCommand.html" title="class in client.commandline.pdcommands">AddIfMaxCommand</a></dt>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Lab5Client 2.2 API</title>
|
||||
<title>Lab5Client 3.0 API</title>
|
||||
<script type="text/javascript">
|
||||
tmpTargetPage = "" + window.location.search;
|
||||
if (tmpTargetPage != "" && tmpTargetPage != "undefined")
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Overview List (Lab5Client 2.2 API)</title>
|
||||
<title>Overview List (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Overview (Lab5Client 2.2 API)</title>
|
||||
<title>Overview (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Overview (Lab5Client 2.2 API)";
|
||||
parent.document.title="Overview (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
@ -68,7 +68,7 @@
|
|||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 class="title">Lab5Client 2.2 API</h1>
|
||||
<h1 class="title">Lab5Client 3.0 API</h1>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Packages table, listing packages, and an explanation">
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Class Hierarchy (Lab5Client 2.2 API)</title>
|
||||
<title>Class Hierarchy (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Class Hierarchy (Lab5Client 2.2 API)";
|
||||
parent.document.title="Class Hierarchy (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
@ -85,7 +85,6 @@
|
|||
<li type="circle">common.commandline.Command (implements java.io.Serializable)
|
||||
<ul>
|
||||
<li type="circle">client.commandline.<a href="client/commandline/CommandLineHandlerClient.ConnectionCommand.html" title="class in client.commandline"><span class="typeNameLink">CommandLineHandlerClient.ConnectionCommand</span></a></li>
|
||||
<li type="circle">client.commandline.<a href="client/commandline/CommandLineHandlerClient.ModeCommand.html" title="class in client.commandline"><span class="typeNameLink">CommandLineHandlerClient.ModeCommand</span></a></li>
|
||||
<li type="circle">common.commandline.pdcommands.PeopleDatabaseCommand
|
||||
<ul>
|
||||
<li type="circle">client.commandline.pdcommands.<a href="client/commandline/pdcommands/AddCommand.html" title="class in client.commandline.pdcommands"><span class="typeNameLink">AddCommand</span></a></li>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="ru">
|
||||
<head>
|
||||
<!-- Generated by javadoc -->
|
||||
<title>Serialized Form (Lab5Client 2.2 API)</title>
|
||||
<title>Serialized Form (Lab5Client 3.0 API)</title>
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="Serialized Form (Lab5Client 2.2 API)";
|
||||
parent.document.title="Serialized Form (Lab5Client 3.0 API)";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
|
@ -80,11 +80,6 @@
|
|||
</a>
|
||||
<h3>Class <a href="client/commandline/CommandLineHandlerClient.ConnectionCommand.html" title="class in client.commandline">client.commandline.CommandLineHandlerClient.ConnectionCommand</a> extends common.commandline.Command implements Serializable</h3>
|
||||
</li>
|
||||
<li class="blockList"><a name="client.commandline.CommandLineHandlerClient.ModeCommand">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Class <a href="client/commandline/CommandLineHandlerClient.ModeCommand.html" title="class in client.commandline">client.commandline.CommandLineHandlerClient.ModeCommand</a> extends common.commandline.Command implements Serializable</h3>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
|
|
BIN
Lab5Client/build/libs/Lab5Client-2.2.jar
Normal file
BIN
Lab5Client/build/libs/Lab5Client-2.2.jar
Normal file
Binary file not shown.
BIN
Lab5Client/build/libs/Lab5Client-3.0.jar
Normal file
BIN
Lab5Client/build/libs/Lab5Client-3.0.jar
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1,10 +1,10 @@
|
|||
-classpath 'C:\\Users\\egor\\IdeaProjects\\Lab5\\Lab5Client\\build\\classes\\java\\main;C:\\Users\\egor\\IdeaProjects\\Lab5\\Lab5Client\\build\\resources\\main;C:\\Users\\egor\\.gradle\\caches\\modules-2\\files-2.1\\org.projectlombok\\lombok\\1.18.24\\13a394eed5c4f9efb2a6d956e2086f1d81e857d9\\lombok-1.18.24.jar;C:\\Users\\egor\\IdeaProjects\\Lab5\\Lab5Core\\build\\libs\\Lab5Core-2.2.jar'
|
||||
-classpath 'C:\\Users\\egor\\IdeaProjects\\Lab5\\Lab5Client\\build\\classes\\java\\main;C:\\Users\\egor\\IdeaProjects\\Lab5\\Lab5Client\\build\\resources\\main;C:\\Users\\egor\\.gradle\\caches\\modules-2\\files-2.1\\org.projectlombok\\lombok\\1.18.24\\13a394eed5c4f9efb2a6d956e2086f1d81e857d9\\lombok-1.18.24.jar;C:\\Users\\egor\\IdeaProjects\\Lab5\\Lab5Core\\build\\libs\\Lab5Core-3.0.jar'
|
||||
-d 'C:\\Users\\egor\\IdeaProjects\\Lab5\\Lab5Client\\build\\docs\\javadoc'
|
||||
-doctitle 'Lab5Client 2.2 API'
|
||||
-doctitle 'Lab5Client 3.0 API'
|
||||
-encoding 'UTF-8'
|
||||
-notimestamp
|
||||
-quiet
|
||||
-windowtitle 'Lab5Client 2.2 API'
|
||||
-windowtitle 'Lab5Client 3.0 API'
|
||||
'C:\\Users\\egor\\IdeaProjects\\Lab5\\Lab5Client\\src\\main\\java\\client\\commandline\\CommandLineHandlerClient.java'
|
||||
'C:\\Users\\egor\\IdeaProjects\\Lab5\\Lab5Client\\src\\main\\java\\client\\commandline\\pdcommands\\AddCommand.java'
|
||||
'C:\\Users\\egor\\IdeaProjects\\Lab5\\Lab5Client\\src\\main\\java\\client\\commandline\\pdcommands\\AddIfMaxCommand.java'
|
||||
|
|
|
@ -2,9 +2,6 @@ package client;
|
|||
|
||||
import client.commandline.CommandLineHandlerClient;
|
||||
import common.commandline.CommandLineHandler;
|
||||
import common.commandline.pdcommands.PeopleDatabaseCommands;
|
||||
import common.collection.Database;
|
||||
import common.collection.PeopleDatabase;
|
||||
import common.util.UtilFunctions;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
@ -15,16 +12,6 @@ public class Lab5Client {
|
|||
|
||||
public static void main(String[] args) {
|
||||
CommandLineHandler cmd = CommandLineHandlerClient.getClientCommandLine();
|
||||
|
||||
PeopleDatabase peopleDatabase = new PeopleDatabase(LOGGER);
|
||||
try {
|
||||
peopleDatabase.load();
|
||||
} catch (Database.DatabaseLoadFailedException e) {
|
||||
System.out.println(e.getMessage());
|
||||
System.exit(-1);
|
||||
}
|
||||
PeopleDatabaseCommands.peopleDatabase = peopleDatabase;
|
||||
|
||||
cmd.start();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ import common.commandline.CommandRegistry;
|
|||
import common.commandline.response.CommandResult;
|
||||
import common.commandline.response.DefaultResponse;
|
||||
import common.commandline.response.Response;
|
||||
import common.parser.ConnectionProperties;
|
||||
import common.net.ConnectionProperties;
|
||||
import common.util.UtilFunctions;
|
||||
|
||||
import java.io.*;
|
||||
|
@ -16,12 +16,11 @@ import java.util.Locale;
|
|||
|
||||
public final class CommandLineHandlerClient extends CommandLineHandler {
|
||||
|
||||
private boolean clientMode = true;
|
||||
private final UDPClient udp = new UDPClient(ConnectionProperties.getHostname(), ConnectionProperties.getPort());
|
||||
|
||||
private CommandLineHandlerClient() {
|
||||
super();
|
||||
CommandRegistry.registerCommands(new ModeCommand(), new ConnectionCommand(), new InfoCommand(), new ShowCommand(), new AddCommand(), new AddIfMaxCommand(),
|
||||
CommandRegistry.registerCommands(new ConnectionCommand(), new InfoCommand(), new ShowCommand(), new AddCommand(), new AddIfMaxCommand(),
|
||||
new AddIfMinCommand(), new ClearCommand(), new FilterContainsNameCommand(), new PrintFieldDescendingLocationCommand(),
|
||||
new RemoveByIdCommand(), new SumOfHeightCommand(), new UpdateCommand());
|
||||
}
|
||||
|
@ -39,8 +38,7 @@ public final class CommandLineHandlerClient extends CommandLineHandler {
|
|||
}
|
||||
boolean argsValid = command.validate(args);
|
||||
if (!argsValid) return;
|
||||
boolean isClient = command.isClientOnly() || clientMode;
|
||||
CommandResult result = isClient ? command.executeOnClient() : executeOnServer(udp, command);
|
||||
CommandResult result = command.isClientOnly() ? command.executeOnClient() : executeOnServer(udp, command);
|
||||
PrintStream ps = result.getResponse() == DefaultResponse.OK ? System.out : System.err;
|
||||
ps.println(result.getValue());
|
||||
updateHistory(alias);
|
||||
|
@ -50,40 +48,6 @@ public final class CommandLineHandlerClient extends CommandLineHandler {
|
|||
return udp.send(command.getExecutable(), command.getArgs());
|
||||
}
|
||||
|
||||
public class ModeCommand extends Command {
|
||||
public ModeCommand() {
|
||||
super("mode", true, "mode [sw] : выводит режим работы программы, если написать sw, меняет режим с серверного на клиентский или наоборот");
|
||||
this.executable = args -> {
|
||||
String result;
|
||||
if (args.length == 0) {
|
||||
result = "Программа работает в режиме клиент " + (clientMode ? "" : "+ сервер");
|
||||
} else {
|
||||
if (clientMode) {
|
||||
result = "Режим работы сменен на клиент + сервер";
|
||||
udp.connect();
|
||||
if (!udp.isAvailable()) {
|
||||
udp.disconnect();
|
||||
clientMode = true;
|
||||
return new CommandResult("Не удалось установить соединение с сервером", DefaultResponse.SERVER_ERROR);
|
||||
} else clientMode = false;
|
||||
} else {
|
||||
result = "Режим работы сменен на клиент";
|
||||
udp.disconnect();
|
||||
clientMode = true;
|
||||
}
|
||||
}
|
||||
return new CommandResult(result, DefaultResponse.OK);
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean validate(String[] args) {
|
||||
if (args.length > 0 && args[0].equals("sw")) this.args = args;
|
||||
else this.args = new Object[]{};
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public class ConnectionCommand extends Command {
|
||||
public ConnectionCommand() {
|
||||
super("con", true, "con [host|port] [value] : выводит информацию о сохраненных данных соединения с сервером, можно менять адрес или порт написав host или port и после них соответствующее значение");
|
||||
|
|
|
@ -7,7 +7,7 @@ import common.commandline.pdcommands.PeopleDatabaseCommands;
|
|||
public class AddCommand extends PeopleDatabaseCommand {
|
||||
public AddCommand() {
|
||||
super("add", false, "add <Person> : добавить новый элемент в коллекцию",
|
||||
Executables.ADD.getExecutable());
|
||||
Executables.ADD.executable);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -7,7 +7,7 @@ import common.commandline.pdcommands.PeopleDatabaseCommands;
|
|||
public class AddIfMaxCommand extends PeopleDatabaseCommand {
|
||||
public AddIfMaxCommand() {
|
||||
super("add_if_max", false, "add_if_max <Person> : добавить новый элемент в коллекцию, если его значение превышает значение наибольшего элемента этой коллекции",
|
||||
Executables.ADD_IF_MAX.getExecutable());
|
||||
Executables.ADD_IF_MAX.executable);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -7,7 +7,7 @@ import common.commandline.pdcommands.PeopleDatabaseCommands;
|
|||
public class AddIfMinCommand extends PeopleDatabaseCommand {
|
||||
public AddIfMinCommand() {
|
||||
super("add_if_min", false, "add_if_min <Person> : добавить новый элемент в коллекцию, если его значение меньше, чем у наименьшего элемента этой коллекции",
|
||||
Executables.ADD_IF_MIN.getExecutable());
|
||||
Executables.ADD_IF_MIN.executable);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -6,7 +6,7 @@ import common.commandline.pdcommands.PeopleDatabaseCommand;
|
|||
public class ClearCommand extends PeopleDatabaseCommand {
|
||||
public ClearCommand() {
|
||||
super("clear", false, "clear : очистить коллекцию",
|
||||
Executables.CLEAR.getExecutable());
|
||||
Executables.CLEAR.executable);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -6,7 +6,7 @@ import common.commandline.pdcommands.PeopleDatabaseCommand;
|
|||
public class FilterContainsNameCommand extends PeopleDatabaseCommand {
|
||||
public FilterContainsNameCommand() {
|
||||
super("filter_contains_name", false, "filter_contains_name {name} : вывести элементы, значение поля name которых содержит заданную подстроку",
|
||||
Executables.FILTER_CONTAINS_NAME.getExecutable());
|
||||
Executables.FILTER_CONTAINS_NAME.executable);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -6,7 +6,7 @@ import common.commandline.pdcommands.PeopleDatabaseCommand;
|
|||
public class InfoCommand extends PeopleDatabaseCommand {
|
||||
public InfoCommand() {
|
||||
super("info", false, "info : вывести в стандартный поток вывода информацию о коллекции (тип, дата инициализации, количество элементов и т.д.)",
|
||||
Executables.INFO.getExecutable());
|
||||
Executables.INFO.executable);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -6,7 +6,7 @@ import common.commandline.pdcommands.PeopleDatabaseCommand;
|
|||
public class PrintFieldDescendingLocationCommand extends PeopleDatabaseCommand {
|
||||
public PrintFieldDescendingLocationCommand() {
|
||||
super("print_field_descending_location", false, "print_field_descending_location : вывести значения поля location всех элементов в порядке убывания",
|
||||
Executables.PRINT_FIELD_DESCENDING_LOCATION.getExecutable());
|
||||
Executables.PRINT_FIELD_DESCENDING_LOCATION.executable);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -7,7 +7,7 @@ import common.util.UtilFunctions;
|
|||
public class RemoveByIdCommand extends PeopleDatabaseCommand {
|
||||
public RemoveByIdCommand() {
|
||||
super("remove_by_id", false, "remove_by_id {id} : удалить элемент из коллекции по его {id}",
|
||||
Executables.REMOVE_BY_ID.getExecutable());
|
||||
Executables.REMOVE_BY_ID.executable);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -6,7 +6,7 @@ import common.commandline.pdcommands.PeopleDatabaseCommand;
|
|||
public class ShowCommand extends PeopleDatabaseCommand {
|
||||
public ShowCommand() {
|
||||
super("show", false, "show : вывести в стандартный поток вывода все элементы коллекции в строковом представлении",
|
||||
Executables.SHOW.getExecutable());
|
||||
Executables.SHOW.executable);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -6,7 +6,7 @@ import common.commandline.pdcommands.PeopleDatabaseCommand;
|
|||
public class SumOfHeightCommand extends PeopleDatabaseCommand {
|
||||
public SumOfHeightCommand() {
|
||||
super("sum_of_height", false, "sum_of_height : вывести сумму значений поля height для всех элементов коллекции",
|
||||
Executables.SUM_OF_HEIGHT.getExecutable());
|
||||
Executables.SUM_OF_HEIGHT.executable);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -8,7 +8,7 @@ import common.util.UtilFunctions;
|
|||
public class UpdateCommand extends PeopleDatabaseCommand {
|
||||
public UpdateCommand() {
|
||||
super("update", false, "update {id} <Person> : обновить значение элемента коллекции, {id} которого равен заданному",
|
||||
Executables.UPDATE.getExecutable());
|
||||
Executables.UPDATE.executable);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -3,7 +3,7 @@ plugins {
|
|||
}
|
||||
|
||||
group = "ru.erius.lab5"
|
||||
version = "2.2"
|
||||
version = "3.0"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue