query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Returns an enum version of this SECSItem's Format Code. | public SECSItemFormatCode getFormatCode()
{
return formatCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SECSItemFormatCode getSECSItemFormatCode()\n {\n return getFormatCode();\n }",
"@Field(0) \r\n\tpublic ValuedEnum<DXGI_FORMAT> format() {\r\n\t\treturn this.io.getEnumField(this, 0);\r\n\t}",
"public RMFormat getFormat()\n {\n return getStyle().getFormat();\n }",
"public String getFormatCode() {\n if (format == null) return \"MP4\";\n switch(format) {\n case \"Windows Media\": return \"WMV\";\n case \"Flash Video\": return \"FLV\";\n case \"MPEG-4\": return \"MP4\";\n case \"Matroska\": return \"MKV\";\n case \"AVI\": return \"AVI\";\n default: return \"MP4\";\n }\n }",
"public int getFormat()\n {\n return format;\n }",
"public int getFormat ()\n {\n return this.format;\n }",
"public final AdFormat getFormat() {\n\t\treturn impl.getFormat();\n }",
"public String getFormatDesign() {\n return (String)getAttributeInternal(FORMATDESIGN);\n }",
"public int getAlFormat()\n {\n return alFormat;\n }",
"public String getFormat() {\n\t\treturn getAttribute(FORMAT_TAG);\n\t}",
"public String getFormat() {\n/* 206 */ return getValue(\"format\");\n/* */ }",
"Object getFormat();",
"public String value() {\n return formattedCode;\n }",
"public String convertEnum()\n {\n \tswitch (pattern.ordinal())\n \t{\n \tcase 0:\n \t\treturn \"Red Cards\";\n \tcase 1:\n \t\treturn \"Black Cards\";\n \tcase 2:\n \t\treturn \"Hearts\";\n \tcase 3:\n \t\treturn \"Diamonds\";\n \tcase 4:\n \t\treturn \"Clubs\";\n \tcase 5:\n \t\treturn \"Spades\";\n \tcase 6:\n \t\treturn \"Twos\";\n \tcase 7:\n \t\treturn \"Threes\";\n \tcase 8:\n \t\treturn \"Fours\";\n \tcase 9:\n \t\treturn \"Fives\";\n \tcase 10:\n \t\treturn \"Sixes\";\n \tcase 11:\n \t\treturn \"Sevens\";\n \tcase 12:\n \t\treturn \"Eights\";\n \tcase 13:\n \t\treturn \"Nines\";\n \tcase 14:\n \t\treturn \"Tens\";\n \tcase 15:\n \t\treturn \"Jacks\";\n \tcase 16:\n \t\treturn \"Queens\";\n \tcase 17:\n \t\treturn \"Kings\";\n \tcase 18:\n \t\treturn \"Aces\";\n \tcase 19:\n \t\treturn \"Single Digit Primes\";\n \tcase 20:\n \t\treturn \"Pairs\";\n \tcase 21:\n \t\treturn \"Sum of Pairs\";\n \tcase 22:\n \t\treturn \"Incrementing Cards\";\n \tcase 23:\n \t\treturn \"Decrementing Cards\";\n \tdefault:\n \t\treturn \"\";\n \t}\n }",
"public Class<F> getFormatType() {\n\t\treturn formatType;\n\t}",
"public String getFormat() {\n\t\treturn format;\n\t}",
"public String getFormat() {\n return format;\n }",
"public String getFormat() {\n return format;\n }",
"public String getFormat() {\n return format;\n }",
"public String getFormat()\n {\n return format;\n }",
"public String getFormat() {\r\n return _format;\r\n }",
"@Override\n public com.gensym.util.Symbol getFormatType() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.FORMAT_TYPE_);\n return (com.gensym.util.Symbol)retnValue;\n }",
"@Field(0) \n\tpublic int format() {\n\t\treturn this.io.getIntField(this, 0);\n\t}",
"public String getFormat() {\n\t\treturn formatString;\n\t}",
"public static ALFormat getEnum(int value)\n {\n switch (value)\n {\n case AL_FORMAT_MONO8:\n return MONO_8;\n case AL_FORMAT_MONO16:\n return MONO_16;\n case AL_FORMAT_STEREO8:\n return STEREO_8;\n case AL_FORMAT_STEREO16:\n return STEREO_16;\n }\n\n throw new SilenceException(\"Unknown format value: \" + value);\n }",
"public String formatTypeName()\r\n {\r\n return mFormatTypeName;\r\n }",
"public String getFormat() {\n return this.format;\n }",
"String getFormat();",
"String getFormat();",
"String getFormat();",
"public AVT getFormat()\n {\n return m_format_avt;\n }",
"public List<Format> getFormats();",
"public Format getFormat()\n {\n return (formatControl == null) ? null : formatControl.getFormat();\n }",
"Format internalGetFormat()\n {\n return doGetFormat();\n }",
"public\tint\tgetTypeFormatId()\t{ return StoredFormatIds.BITIMPL_V01_ID; }",
"com.google.protobuf.ByteString\n getFormatBytes();",
"public java.lang.Integer getIdeFormato() {\n\t\treturn ideFormato;\n\t}",
"public String getEnum() {\n if (model == null)\n return strEnum;\n return model.getEnum();\n }",
"@UML(identifier=\"fileFormat\", obligation=MANDATORY, specification=ISO_19139)\n Format getFileFormat();",
"public FormatOptions getFormatOptions() {\n return this.formatOptions;\n }",
"public com.google.protobuf.ByteString\n getFormatBytes() {\n Object ref = format_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n format_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"NumberFormat getFormat() {\n\t\t\treturn fmt_result;\n\t\t}",
"public CodeStyle getStyle(){\r\n\t\treturn m_style;\r\n\t}",
"FileFormat getFormat();",
"public String format () {\n\t\treturn format;\n\t}",
"public com.google.protobuf.ByteString\n getFormatBytes() {\n Object ref = format_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n format_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@ApiModelProperty(value = \"Gets or sets Field Index Format.\")\n public FieldIndexFormatEnum getFieldIndexFormat() {\n return fieldIndexFormat;\n }",
"public edu.umich.icpsr.ddi.FormatType getFormat()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FormatType target = null;\n target = (edu.umich.icpsr.ddi.FormatType)get_store().find_element_user(FORMAT$10, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public ArrayList<String> getFormattedCode() {\n return formattedCode;\n }",
"public int getTypeFormatId()\n {\n if ( formatId != 0 ) { return formatId; }\n else\n {\n //\n // If you serialize this class outside the formatable machinery, you\n // will lose the format id. This can happen if you pass one of these\n // objects across the network. Here we recover the format id.\n //\n if ( TypeId.BOOLEAN_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.BOOLEAN_TYPE_ID_IMPL; }\n else if ( TypeId.BIGINT_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.BIGINT_TYPE_ID_IMPL; }\n else if ( TypeId.INTEGER_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.INT_TYPE_ID_IMPL; }\n else if ( TypeId.SMALLINT_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.SMALLINT_TYPE_ID_IMPL; }\n else if ( TypeId.TINYINT_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.TINYINT_TYPE_ID_IMPL; }\n else if ( TypeId.DECIMAL_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.DECIMAL_TYPE_ID_IMPL; }\n else if ( TypeId.NUMERIC_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.DECIMAL_TYPE_ID_IMPL; }\n else if ( TypeId.DOUBLE_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.DOUBLE_TYPE_ID_IMPL; }\n else if ( TypeId.REAL_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.REAL_TYPE_ID_IMPL; }\n else if ( TypeId.REF_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.REF_TYPE_ID_IMPL; }\n else if ( TypeId.CHAR_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.CHAR_TYPE_ID_IMPL; }\n else if ( TypeId.VARCHAR_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.VARCHAR_TYPE_ID_IMPL; }\n else if ( TypeId.LONGVARCHAR_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.LONGVARCHAR_TYPE_ID_IMPL; }\n else if ( TypeId.CLOB_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.CLOB_TYPE_ID_IMPL; }\n //DERBY-5407 Network Server on wire sends CHAR () FOR BIT DATA \n // not CHAR FOR BIT DATA. Keeping the check for CHAR FOR BIT\n // DATA just in case if there is any dependency on that check\n else if ( TypeId.BIT_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.BIT_TYPE_ID_IMPL; }\n else if ( \"CHAR FOR BIT DATA\".equals( unqualifiedName ) ) {\n return StoredFormatIds.BIT_TYPE_ID_IMPL; }\n //DERBY-5407 Network Server on wire sends VARCHAR () FOR BIT DATA \n // not VARCHAR FOR BIT DATA. Keeping the check for VARCHAR FOR BIT\n // DATA just in case if there is any dependency on that check\n else if ( TypeId.VARBIT_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.VARBIT_TYPE_ID_IMPL; }\n else if ( \"VARCHAR FOR BIT DATA\".equals( unqualifiedName ) ) {\n return StoredFormatIds.VARBIT_TYPE_ID_IMPL; }\n else if ( TypeId.LONGVARBIT_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.LONGVARBIT_TYPE_ID_IMPL; }\n else if ( TypeId.BLOB_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.BLOB_TYPE_ID_IMPL; }\n else if ( TypeId.DATE_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.DATE_TYPE_ID_IMPL; }\n else if ( TypeId.TIME_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.TIME_TYPE_ID_IMPL; }\n else if ( TypeId.TIMESTAMP_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.TIMESTAMP_TYPE_ID_IMPL; }\n else if ( TypeId.XML_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.XML_TYPE_ID_IMPL; }\n else { return 0; }\n }\n }",
"public SurfaceFormat getFormat()\n\t{\n\t\treturn this._format;\n\t}",
"String getValueFormat();",
"public ServicesFormatEnum(){\n super();\n }",
"@Override\n public final Integer constTypeCode() {\n return this.manufacture.constTypeCode();\n }",
"public String getFormat() throws Exception {\n\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/@metaFormat\").getText();\n\t}",
"public String getFormat() {\n Object ref = format_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n format_ = s;\n return s;\n }\n }",
"public String getFormat() {\n Object ref = format_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n format_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public static Format getFormat(int format) throws IOException {\r\n\r\n switch (format) {\r\n case Order.FORMAT_FLAT: return new FormatFlat();\r\n case Order.FORMAT_TREE: return new FormatTree();\r\n case Order.FORMAT_NORITSU: return new FormatNoritsu();\r\n case Order.FORMAT_KONICA: return new FormatKonica();\r\n case Order.FORMAT_FUJI: return new FormatFuji();\r\n case Order.FORMAT_FUJI_NEW: return new FormatFujiNew();\r\n case Order.FORMAT_DLS: return new FormatDLSStub();\r\n case Order.FORMAT_KODAK: return new FormatKodak();\r\n case Order.FORMAT_AGFA: return new FormatAgfa();\r\n case Order.FORMAT_LUCIDIOM: return new FormatLucidiom();\r\n case Order.FORMAT_PIXEL: return new FormatPixel();\r\n case Order.FORMAT_DP2: return new FormatDP2();\r\n case Order.FORMAT_BEAUFORT: return new FormatBeaufort();\r\n case Order.FORMAT_DKS3: return new FormatDKS3();\r\n case Order.FORMAT_DIRECT_PDF: return new FormatDirectPDF();\r\n case Order.FORMAT_ZBE: return new FormatZBE();\r\n case Order.FORMAT_FUJI3: return new FormatFuji3();\r\n case Order.FORMAT_HP: return new FormatHP();\r\n case Order.FORMAT_XEROX: return new FormatXerox();\r\n case Order.FORMAT_DIRECT_JPEG: return new FormatDirectJPEG();\r\n case Order.FORMAT_BURN: return new FormatBurn();\r\n case Order.FORMAT_HOT_FOLDER: return new FormatHotFolder();\r\n case Order.FORMAT_DNP: return new FormatDNP();\r\n case Order.FORMAT_PURUS: return new FormatPurus();\r\n case Order.FORMAT_RAW_JPEG: return new FormatRawJPEG();\r\n default:\r\n throw new IOException(Text.get(Format.class,\"e1\"));\r\n }\r\n }",
"public String getSequenceFormat() {\n return sequenceFormat;\n }",
"protected Format doGetFormat()\n {\n return null;\n }",
"public java.util.List getStyleCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STYLECODE$16);\n if (target == null)\n {\n return null;\n }\n return target.getListValue();\n }\n }",
"public java.util.List getStyleCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STYLECODE$16);\n if (target == null)\n {\n return null;\n }\n return target.getListValue();\n }\n }",
"public List<ReportGenerator.Format> getFormats() {\n return formats;\n }",
"protected int getFMT() {\n\t\treturn this.itemCount;\n\t}",
"public SDMFormat getSDMFormat()\n\t{\n\t\treturn SDMFormat.valueOf( mMessage.get( B2_SDM_SEGMENT_TRANSACTION_FLAG ), \n\t\t\t\t\t\t\t\t mMessage.getInt( B2_SDM_GENERAL_FORMAT ) );\n\t}",
"public String getFormatString() {\r\n if (format == null) { return \"\"; }\r\n if (format.equals(ImportQueueItem.FORMAT_TAB)) {\r\n return FORMAT_TAB_DISPLAY;\r\n } else if (format.equals(ImportQueueItem.FORMAT_XML)) {\r\n return FORMAT_XML_DISPLAY;\r\n } else if (format.equals(ImportQueueItem.FORMAT_DISCOURSE)) {\r\n return FORMAT_DISCOURSE_DISPLAY;\r\n } else {\r\n return format + \" format\";\r\n }\r\n }",
"public RMFormat getFormat()\n{\n // Return format from first binding\n if(getBindingCount()>0)\n return (RMFormat)getBinding(0).getFormat();\n \n // Return null\n return null;\n}",
"public java.lang.Byte getNumVersionFormato() {\n\t\treturn numVersionFormato;\n\t}",
"protected List<FormatoReporteEnum> getReportFormatList(){\r\n\t\tList<FormatoReporteEnum> formatos = new ArrayList<FormatoReporteEnum>();\r\n\t\tfor (FormatoReporteEnum formatoReporteEnum : FormatoReporteEnum.values()) {\r\n\t\t\tformatos.add(formatoReporteEnum);\r\n\t\t}\r\n\t\treturn formatos;\r\n\t}",
"public String getFileFormat()\r\n\t{\r\n\t\treturn this.getSerializer().getFileFormat();\r\n\t}",
"public int getDisplayFormat() {\r\n return insertMode ? 0 : intValue(CONTACTS_DISPLAY_FORMAT);\r\n }",
"public String getVicarFormat() {\n\t\treturn vicarFormat;\n\t}",
"public BoundCodeDt<DataTypeEnum> getCodeElement() { \n\t\tif (myCode == null) {\n\t\t\tmyCode = new BoundCodeDt<DataTypeEnum>(DataTypeEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myCode;\n\t}",
"public org.openarchives.www.oai._2_0.OAIPMHerrorcodeType.Enum getCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CODE$0);\n if (target == null)\n {\n return null;\n }\n return (org.openarchives.www.oai._2_0.OAIPMHerrorcodeType.Enum)target.getEnumValue();\n }\n }",
"protected NumberFormat getFormat() {\n return this.format;\n }",
"public BizCodeEnum getCode() {\n return code;\n }",
"public final String getColorCode() {\n\t\treturn colorCode;\n\t}",
"public int getImageFormat() {\n if (this.cleanedUp) {\n throw new IllegalStateException(\"Tried fetch image format from cleaned up swapchain!\");\n }\n return this.imageFormat;\n }",
"public String getLabelFormat() {\n\t\treturn this.labelFormat;\n\t}",
"public String getSignFormat() {\r\n\t\treturn this.signFormat;\r\n\t}",
"@ApiModelProperty(required = true, value = \"The file type of the file.\")\n public String getFormat() {\n return format;\n }",
"public IS getProcessingConsiderationCode() { \r\n\t\tIS retVal = this.getTypedField(20, 0);\r\n\t\treturn retVal;\r\n }",
"public String getVicarIntFmt() {\n\t\treturn vicarIntFmt;\n\t}",
"public String asString() {\n\t\t\tString enumName;\n\t\t\tswitch(this) {\n\t\t\tcase INDEX:\n\t\t\t\tenumName = \"index\";\n\t\t\t\tbreak;\n\t\t\tcase NAME:\n\t\t\t\tenumName = \"name\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tenumName = \"unsupported\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn enumName;\n\t\t}",
"public String getSupportFormat() {\r\n\t\treturn supportFormat;\r\n\t}",
"private C0958a m1725b() throws JSONException {\n String string = this.f1890d.getString(\"ad_format\");\n MaxAdFormat c = C1281o.m3104c(string);\n if (c == MaxAdFormat.BANNER || c == MaxAdFormat.MREC || c == MaxAdFormat.LEADER) {\n return new C0959b(this.f1889c, this.f1890d, this.f2745b);\n }\n if (c == MaxAdFormat.NATIVE) {\n return new C0961d(this.f1889c, this.f1890d, this.f2745b);\n }\n if (c == MaxAdFormat.INTERSTITIAL || c == MaxAdFormat.REWARDED) {\n return new C0960c(this.f1889c, this.f1890d, this.f2745b);\n }\n StringBuilder sb = new StringBuilder();\n sb.append(\"Unsupported ad format: \");\n sb.append(string);\n throw new IllegalArgumentException(sb.toString());\n }",
"public static String enumItemDecl()\n {\n read_if_needed_();\n \n return _enum_item_decl;\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\treturn toString(Locale.getDefault(Locale.Category.FORMAT));\n\t}",
"public CSVCustomFormat getCustomFormatData() {\n return csvCustomFormat.getValue();\n }",
"public com.microsoft.schemas.sharepoint.soap.UpdateViewFormats getFormats() {\r\n return formats;\r\n }",
"@SuppressWarnings(\"unchecked\")\n public <F> ConverterFormat<F> getFormat(Class<F> formatType) {\n ConverterFormat<F> format = (ConverterFormat<F>) formats.get(formatType);\n\n if (format == null) {\n throw new UnsupportedOperationException(\"The format \" + formatType + \" is not supported.\");\n }\n\n return format;\n }",
"public String getColorStyle() {\n return colorStyle;\n }",
"public static String enumPatternItemCase()\n {\n read_if_needed_();\n \n return _enum_pattern_item_case;\n }",
"public static String enumPatternItemDecl()\n {\n read_if_needed_();\n \n return _enum_pattern_item_decl;\n }",
"public int getMailFormat() {\r\n return insertMode ? 0 : intValue(CONTACTS_MAIL_FORMAT);\r\n }",
"protected String getDataFormat() {\n return this.dataFormat;\n }",
"public List<String> getParserFormats();",
"public String getChangeFileBeginFormat() {\r\n \t\treturn properties.getProperty(KEY_CHANGE_FILE_BEGIN_FORMAT);\r\n \t}",
"@RestrictTo(Scope.LIBRARY_GROUP)\n public int getImageFormat() {\n return mImageFormat;\n }",
"public String getFormato() {\n\t\treturn formato;\n\t}"
]
| [
"0.76593715",
"0.6963998",
"0.67946345",
"0.66874653",
"0.65620726",
"0.64572036",
"0.63969684",
"0.6378356",
"0.6322086",
"0.62661684",
"0.62573564",
"0.6228741",
"0.6215039",
"0.61928254",
"0.618032",
"0.61600465",
"0.6150961",
"0.6150961",
"0.6150961",
"0.6131352",
"0.6118156",
"0.61077744",
"0.6098453",
"0.60767305",
"0.60751224",
"0.6044207",
"0.6015314",
"0.6003946",
"0.6003946",
"0.6003946",
"0.59894747",
"0.59788185",
"0.5937966",
"0.5910346",
"0.59043914",
"0.58977",
"0.58897257",
"0.5878933",
"0.5869088",
"0.58580947",
"0.5854827",
"0.5841754",
"0.583068",
"0.58143055",
"0.5812251",
"0.5811967",
"0.5794442",
"0.57822317",
"0.57707614",
"0.574306",
"0.5742577",
"0.5737313",
"0.5731096",
"0.5693567",
"0.5691946",
"0.56702995",
"0.5660426",
"0.5658861",
"0.56500435",
"0.56487274",
"0.5637698",
"0.5637698",
"0.5606299",
"0.56056535",
"0.55862576",
"0.558588",
"0.55765116",
"0.55631816",
"0.5540701",
"0.5533801",
"0.55252993",
"0.5518969",
"0.55136746",
"0.5512236",
"0.551206",
"0.550933",
"0.54742426",
"0.5474242",
"0.54218936",
"0.54129183",
"0.5411186",
"0.5410788",
"0.5389425",
"0.5386411",
"0.53733426",
"0.5372783",
"0.5365102",
"0.5345928",
"0.5341896",
"0.533685",
"0.5336676",
"0.5334959",
"0.5328152",
"0.5325953",
"0.5323391",
"0.5317244",
"0.53166217",
"0.5314538",
"0.5297222",
"0.5295332"
]
| 0.81610435 | 0 |
/ This will need to be implemented by the Classes that extend this one. | @Override
public abstract boolean equals(Object abc); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n protected void prot() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void init() {\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n public void init() {}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public void init() {\r\n\t\t// to override\r\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n super.init();\n\n }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"protected void init() {\n // to override and use this method\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n public void init() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\n public void initialize() { \n }",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n public void initialize() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void selfValidate() {\n\t\t\n\t}",
"@Override\n public void initialize() {\n \n }",
"@Override\n public void memoria() {\n \n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }"
]
| [
"0.683119",
"0.68098587",
"0.67506456",
"0.6669073",
"0.6596707",
"0.65681523",
"0.65508384",
"0.65508384",
"0.65508384",
"0.65508384",
"0.65508384",
"0.65508384",
"0.6534616",
"0.64919597",
"0.64651895",
"0.6464447",
"0.64604664",
"0.645098",
"0.6449377",
"0.6449377",
"0.6436681",
"0.64335877",
"0.6429244",
"0.6422307",
"0.6420715",
"0.6420715",
"0.63770807",
"0.63678485",
"0.6365145",
"0.6358247",
"0.6344241",
"0.6335594",
"0.6334428",
"0.6334428",
"0.6328647",
"0.6322043",
"0.6308703",
"0.6308703",
"0.6304927",
"0.6298039",
"0.6297322",
"0.62883914",
"0.62883914",
"0.62883914",
"0.62883914",
"0.62883914",
"0.6267538",
"0.626626",
"0.626626",
"0.6261121",
"0.6261121",
"0.6261121",
"0.6259375",
"0.6242707",
"0.62260437",
"0.62184125",
"0.62168777",
"0.6214116",
"0.6214116",
"0.6214116",
"0.62052387",
"0.61955625",
"0.6183566",
"0.6180124",
"0.617661",
"0.61707747",
"0.61671025",
"0.61289954",
"0.61181444",
"0.61179274",
"0.61179274",
"0.6116808",
"0.61126816",
"0.611133",
"0.61062473",
"0.60971636",
"0.6096592",
"0.6096592",
"0.6096592",
"0.6088987",
"0.6088987",
"0.608168",
"0.6076056",
"0.6072181",
"0.6043132",
"0.6043132",
"0.6043132",
"0.6036771",
"0.6030736",
"0.6023862",
"0.60219157",
"0.60193384",
"0.60193384",
"0.60193384",
"0.60193384",
"0.60193384",
"0.60193384",
"0.60193384",
"0.60193384",
"0.60193384",
"0.60193384"
]
| 0.0 | -1 |
/ This will need to be implemented by the Classes that extend this one. | @Override
public abstract int hashCode(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n protected void prot() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void init() {\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n public void init() {}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public void init() {\r\n\t\t// to override\r\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n super.init();\n\n }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"protected void init() {\n // to override and use this method\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n public void init() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\n public void initialize() { \n }",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n public void initialize() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void selfValidate() {\n\t\t\n\t}",
"@Override\n public void initialize() {\n \n }",
"@Override\n public void memoria() {\n \n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }"
]
| [
"0.683119",
"0.68098587",
"0.67506456",
"0.6669073",
"0.6596707",
"0.65681523",
"0.65508384",
"0.65508384",
"0.65508384",
"0.65508384",
"0.65508384",
"0.65508384",
"0.6534616",
"0.64919597",
"0.64651895",
"0.6464447",
"0.64604664",
"0.645098",
"0.6449377",
"0.6449377",
"0.6436681",
"0.64335877",
"0.6429244",
"0.6422307",
"0.6420715",
"0.6420715",
"0.63770807",
"0.63678485",
"0.6365145",
"0.6358247",
"0.6344241",
"0.6335594",
"0.6334428",
"0.6334428",
"0.6328647",
"0.6322043",
"0.6308703",
"0.6308703",
"0.6304927",
"0.6298039",
"0.6297322",
"0.62883914",
"0.62883914",
"0.62883914",
"0.62883914",
"0.62883914",
"0.6267538",
"0.626626",
"0.626626",
"0.6261121",
"0.6261121",
"0.6261121",
"0.6259375",
"0.6242707",
"0.62260437",
"0.62184125",
"0.62168777",
"0.6214116",
"0.6214116",
"0.6214116",
"0.62052387",
"0.61955625",
"0.6183566",
"0.6180124",
"0.617661",
"0.61707747",
"0.61671025",
"0.61289954",
"0.61181444",
"0.61179274",
"0.61179274",
"0.6116808",
"0.61126816",
"0.611133",
"0.61062473",
"0.60971636",
"0.6096592",
"0.6096592",
"0.6096592",
"0.6088987",
"0.6088987",
"0.608168",
"0.6076056",
"0.6072181",
"0.6043132",
"0.6043132",
"0.6043132",
"0.6036771",
"0.6030736",
"0.6023862",
"0.60219157",
"0.60193384",
"0.60193384",
"0.60193384",
"0.60193384",
"0.60193384",
"0.60193384",
"0.60193384",
"0.60193384",
"0.60193384",
"0.60193384"
]
| 0.0 | -1 |
Creates and returns a byte[] that represents this SECSItem in its "wire/transmission format". Each object that extends this class will need to correctly implement this method. | public abstract byte[] toRawSECSItem(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.ByteString getSerializedItem();",
"public byte[] getBytes() {\n return baos.toByteArray();\n }",
"public byte[] toBytes() {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n writeTo(os);\n } catch (IOException e) {e.printStackTrace();}\n return os.toByteArray();\n }",
"public byte[] toByteArray() {\n\t\treturn baos.toByteArray();\n\t}",
"public byte[] serialize() {\n try {\n ByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(this);\n return b.toByteArray();\n } catch (IOException ioe) {\n return null;\n }\n }",
"public byte[] getBytes() {\r\n \treturn toString().getBytes();\r\n }",
"public byte[] getCopyBytes() {\n try {\n return serialToStream();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"@Override\r\n\tpublic byte[] getBytes() throws UnsupportedEncodingException {\r\n\t\tbyte[] bytes = new byte[RECORD_SIZE];\r\n\t\tbytes = Utilities.completeBytes(bytes, this.bidInfo.getBytes(), 0);\r\n\t\tbytes = Utilities.completeBytes(bytes,\r\n\t\t\t\tUtilities.stringToBytes(Utilities.completeLength(biddingName, 30)), 32);\r\n\t\tbytes = Utilities.completeBytes(bytes, Utilities.intToBytes(typeProduct.ordinal()), 62);\r\n\t\tbytes = Utilities.completeBytes(bytes, product.getBytes(), 66);\r\n\t\tbytes = Utilities.completeBytes(bytes, publicationTime.getBytes(), 157);\r\n\t\tbytes = Utilities.completeBytes(bytes, initTime.getBytes(), 171);\r\n\t\tbytes = Utilities.completeBytes(bytes, finishTime.getBytes(), 185);\r\n\t\tbytes = Utilities.completeBytes(bytes, (byte) ((isAutomaticIncremet)?0:1), 199);\r\n\t\tbytes = Utilities.completeBytes(bytes, (byte) ((isPublic)?0:1), 200);\r\n\t\tbytes = Utilities.completeBytes(bytes,\r\n\t\t\t\tUtilities.stringToBytes(Utilities.completeLength(owner, 20)), 201);\r\n\t\treturn bytes;\r\n\t}",
"public byte[] marshall();",
"public byte[] toBytes() {\n return toProtobuf().toByteArray();\n }",
"public byte[] encode() throws IOException {\n byte[] buffer = new byte[12+193];\n LittleEndianDataOutputStream dos = new LittleEndianDataOutputStream(new ByteArrayOutputStream());\n dos.writeByte((byte)0xFD);\n dos.writeByte(payload_length & 0x00FF);\n dos.writeByte(incompat & 0x00FF);\n dos.writeByte(compat & 0x00FF);\n dos.writeByte(packet & 0x00FF);\n dos.writeByte(sysId & 0x00FF);\n dos.writeByte(componentId & 0x00FF);\n dos.writeByte(messageType & 0x00FF);\n dos.writeByte((messageType >> 8) & 0x00FF);\n dos.writeByte((messageType >> 16) & 0x00FF);\n dos.writeLong(tms);\n for (int i=0; i<40; i++) {\n dos.writeInt((int)(data[i]&0x00FFFFFFFF));\n }\n dos.writeFloat(cx);\n dos.writeFloat(cy);\n dos.writeFloat(cz);\n dos.writeFloat(resolution);\n dos.writeFloat(extension);\n dos.writeInt((int)(count&0x00FFFFFFFF));\n dos.writeByte(status&0x00FF);\n dos.flush();\n byte[] tmp = dos.toByteArray();\n for (int b=0; b<tmp.length; b++) buffer[b]=tmp[b];\n int crc = MAVLinkCRC.crc_calculate_encode(buffer, 193);\n crc = MAVLinkCRC.crc_accumulate((byte) IMAVLinkCRC.MAVLINK_MESSAGE_CRCS[messageType], crc);\n byte crcl = (byte) (crc & 0x00FF);\n byte crch = (byte) ((crc >> 8) & 0x00FF);\n buffer[203] = crcl;\n buffer[204] = crch;\n dos.close();\n return buffer;\n}",
"public byte[] getByteArray(){\r\n\r\n byte[] b = new byte[0x54];\r\n\r\n System.arraycopy(PID_pointer, 0, b, 0, 4);\r\n System.arraycopy(MPID_pointer, 0, b, 4, 4);\r\n System.arraycopy(Null_pointer, 0, b, 8, 4);\r\n System.arraycopy(Portrait_pointer, 0, b, 12, 4);\r\n System.arraycopy(Class_pointer, 0, b, 16, 4);\r\n System.arraycopy(Affiliation_pointer, 0, b, 20, 4);\r\n System.arraycopy(Weaponlevel_pointer, 0, b, 24, 4);\r\n System.arraycopy(Skill1_pointer, 0, b, 28, 4);\r\n System.arraycopy(Skill2_pointer, 0, b, 32, 4);\r\n System.arraycopy(Skill3_pointer, 0, b, 36, 4);\r\n System.arraycopy(Animation1_pointer, 0, b, 40, 4);\r\n System.arraycopy(Animation2_pointer, 0, b, 44, 4);\r\n b[48] = unknownbyte1;\r\n b[49] = unknownbyte2;\r\n b[50] = unknownbyte3;\r\n b[51] = unknownbyte4;\r\n b[52] = unknownbyte5;\r\n b[53] = unknownbyte6;\r\n b[54] = level;\r\n b[55] = build;\r\n b[56] = weight;\r\n System.arraycopy(bases, 0, b, 57, 8);\r\n System.arraycopy(growths, 0, b, 65, 8);\r\n System.arraycopy(supportgrowth, 0, b, 73, 8);\r\n b[81] = unknownbyte9;\r\n b[82] = unknownbyte10;\r\n b[83] = unknownbyte11;\r\n\r\n return b;\r\n }",
"public byte[] EncodeToBytes() throws CoseException {\n return EncodeToCBORObject().EncodeToBytes();\n }",
"public abstract byte[] getEncoded();",
"public byte[] serialize() { length 9 bits, each value == byte\n // info string\n final short scratch = (short) ((0x7f & this.type) << 9 | 0x1ff & this.length);\n final byte[] data = new byte[2 + this.length];\n final ByteBuffer bb = ByteBuffer.wrap(data);\n bb.putShort(scratch);\n if (this.value != null) {\n bb.put(this.value);\n }\n return data;\n }",
"@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}",
"public byte[] serialize();",
"public byte[] toArray()\r\n {\r\n return _stream.toByteArray();\r\n }",
"public static byte[] createBytes()\n\t{\n\t\tbyte[]\t\trc = new byte[16];\n\t\tint\t\tid;\n\n\t\tsynchronized(itsLock)\n\t\t{\n\t\t\tid = itsCounter++;\n\n\t\t\tif(itsCounter == 0)\n\t\t\t{\n\t\t\t\t// We've wrapped around: regenerate a new base array\n\t\t\t\t_getBase();\n\t\t\t}\n\t\t}\n\n\t\tSystem.arraycopy(itsBase, 0, rc, 0, 12);\n\t\trc[12] = (byte)(id & 0xff);\n\t\trc[13] = (byte)((id >> 8) & 0xff);\n\t\trc[14] = (byte)((id >> 16) & 0xff);\n\t\trc[15] = (byte)((id >> 24) & 0xff);\n\n\t\treturn rc;\n\t}",
"public byte[] getNetworkPacket() {\n /*\n The packet layout will be:\n byte(datatype)|int(length of name)|byte[](name)|int(length of value)|byte[](value)|...\n */\n byte[] data = new byte[2];\n int currentPosition = 0;\n \n if(STRINGS.size() > 0) {\n Enumeration enumer = STRINGS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x73;\n currentPosition++;\n\n SimpleMessageObjectStringItem item = (SimpleMessageObjectStringItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = item.getValue().getBytes();\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(INTS.size() > 0) {\n Enumeration enumer = INTS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x69;\n currentPosition++;\n\n SimpleMessageObjectIntItem item = (SimpleMessageObjectIntItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(LONGS.size() > 0) {\n Enumeration enumer = LONGS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x6C;\n currentPosition++;\n\n SimpleMessageObjectLongItem item = (SimpleMessageObjectLongItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(DOUBLES.size() > 0) {\n Enumeration enumer = DOUBLES.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x64;\n currentPosition++;\n\n SimpleMessageObjectDoubleItem item = (SimpleMessageObjectDoubleItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(FLOATS.size() > 0) {\n Enumeration enumer = FLOATS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x66;\n currentPosition++;\n\n SimpleMessageObjectFloatItem item = (SimpleMessageObjectFloatItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(CHARS.size() > 0) {\n Enumeration enumer = CHARS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x63;\n currentPosition++;\n\n SimpleMessageObjectCharItem item = (SimpleMessageObjectCharItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(BYTES.size() > 0) {\n Enumeration enumer = BYTES.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x62;\n currentPosition++;\n\n SimpleMessageObjectByteArrayItem item = (SimpleMessageObjectByteArrayItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = item.getValue();\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n\n return data;\n }",
"public byte[] asByteArray() {\n return data;\n }",
"public abstract byte[] getEncoded() throws CRLException;",
"@Override\n public byte[] getBytes() throws IOException {\n byte[] marshalledBytes = null;\n\n ByteArrayOutputStream baOutStream = new ByteArrayOutputStream();\n DataOutputStream dOut = new DataOutputStream(baOutStream);\n\n dOut.writeInt(type);\n\n dOut.writeInt(ID);\n\n dOut.writeInt(totalPacketsSent);\n\n dOut.writeInt(totalPacketsRelayed);\n\n dOut.writeLong(sendSummation);\n\n dOut.writeInt(totalPacketsRcvd);\n\n dOut.writeLong(rcvSummation);\n\n dOut.flush();\n marshalledBytes = baOutStream.toByteArray();\n\n baOutStream.close();\n dOut.close();\n\n return marshalledBytes;\n }",
"public abstract byte[] toByteArray();",
"public abstract byte[] toByteArray();",
"public byte[] getAsBytes() {\n\t\treturn m_RawContent;\n\t}",
"public byte[] toByteArray() throws Exception {\n int size = getSize();\n if (size == 0) {\n return null;\n }\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n CCompatibleOutputStream os = new CCompatibleOutputStream(byteStream);\n write(os);\n return byteStream.toByteArray();\n }",
"public byte[] bytes() {\n\t\treturn concat(b64UrlEncode(header.bytes()), JwtHelper.PERIOD, b64UrlEncode(content), JwtHelper.PERIOD, b64UrlEncode(crypto));\n\t}",
"com.google.protobuf.ByteString\n getSerBytes();",
"public byte[] GetBytes() {\n return data;\n }",
"com.google.protobuf.ByteString\n getToBytes();",
"@Override\n public byte[] getBytes() {\n int len = 0;\n List<byte[]> chunks = new ArrayList<>();\n for (RvtAoiMetadataKey tag : getTags()) {\n chunks.add(new byte[] {(byte) tag.getIdentifier()});\n len += 1;\n IRvtPoiAoiMetadataValue value = getField(tag);\n byte[] bytes = value.getBytes();\n byte[] lengthBytes = BerEncoder.encode(bytes.length);\n chunks.add(lengthBytes);\n len += lengthBytes.length;\n chunks.add(bytes);\n len += bytes.length;\n }\n return ArrayUtils.arrayFromChunks(chunks, len);\n }",
"private byte[] buildBytes() {\n byte[] message = new byte[4 + 2 + 2 + 1 + data.getLength()];\n System.arraycopy(id.getBytes(), 0, message, 0, 4);\n System.arraycopy(sq.getBytes(), 0, message, 4, 2);\n System.arraycopy(ack.getBytes(), 0, message, 6, 2);\n message[8] = flag.getBytes();\n System.arraycopy(data.getBytes(), 0, message, 9, data.getBytes().length);\n return message;\n }",
"byte[] getBytes();",
"byte[] getBytes();",
"public byte[] getbyteArray() {\n byte[] output = new byte[header_size+fileData.length];\n output[0] = (byte)((type & 0xff00)>> 8);\n output[1] = (byte)(type & 0xff);\n output[2] = (byte)((length & 0xff00)>> 8);\n\t output[3] = (byte)(length & 0xff);\n output[4] = (byte)((clientID & 0xff00)>> 8);\n output[5] = (byte)(clientID & 0xff);\n output[6] = action;\n byte[] temp2 = ByteBuffer.allocate(4).putInt(sectionLength).array();\n for(int i=0;i<4;i++) {\n output[7+i] = temp2[i]; \n }\n temp2 = ByteBuffer.allocate(4).putInt(filePosition).array();\n for(int j=0;j<4;j++) {\n output[11+j] = temp2[j]; \n }\n //copy file data\n System.arraycopy(fileData, 0,output, 15,fileData.length); \n return output;\n }",
"public byte[] toBytes () {\n return toTuple().toBytes();\n }",
"public byte[] toByteArray()\n {\n // stuff the array\n byte[] array = new byte[4];\n array[0] = majorVersion;\n array[1] = minorVersion;\n array[2] = featureCode;\n array[3] = 0; // reserved\n\n // done\n return array;\n }",
"public byte[] toBytes()\n {\n String rep = sessionid + \"_\" + version + \"_\" + message;\n return rep.getBytes();\n }",
"byte[] getEByteArray();",
"@Override\n\tpublic byte[] toByteArray() throws OpException {\n\t\ttry\n\t\t{\n\t\t\treturn serialize();\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tOpException eop = new OpException(e.getMessage());\n\t\t\teop.setStackTrace(e.getStackTrace());\n\t\t\tthrow eop;\n\t\t}\n\t}",
"@Override\n public String toTransmissionString() {\n return toHexString();\n }",
"public byte[] encodeAsBytes() {\n StringBuffer encoding = new StringBuffer();\n ListIterator it = this.headers.listIterator();\n \n while (it.hasNext()) {\n SIPHeader siphdr = (SIPHeader) it.next();\n if (! (siphdr instanceof ContentLength) )\n encoding.append(siphdr.encode());\n \n }\n \tencoding.append(contentLengthHeader.encode()).append(NEWLINE);\n \n byte[] retval = null;\n byte[] content = this.getRawContent();\n if (content != null) {\n // encoding.append(SIPHeaderNames.CONTENT_LENGTH +\n // COLON +\n // SP + content.length + NEWLINE);\n // encoding.append(NEWLINE);\n // Append the content\n \n byte[] msgarray = null;\n try {\n msgarray = encoding.toString().getBytes(\"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n InternalErrorHandler.handleException(ex);\n }\n \n retval = new byte[msgarray.length + content.length];\n System.arraycopy(msgarray,0,retval,0,msgarray.length);\n System.arraycopy(content,0,retval,msgarray.\n length,content.length);\n } else {\n // Message content does not exist.\n // encoding.append(SIPHeaderNames.CONTENT_LENGTH +\n // COLON + SP + '0' + NEWLINE);\n //encoding.append(NEWLINE);\n \n try {\n retval = encoding.toString().getBytes(\"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n InternalErrorHandler.handleException(ex);\n }\n }\n return retval;\n }",
"@Override\n public byte[] toByteArray() {\n return null;\n }",
"@Override\r\n\tpublic byte[] getByte() throws Exception {\n\t\tbyte[] marshalledBytes = null;\r\n\t\tByteArrayOutputStream baOutputStream = new ByteArrayOutputStream();\r\n\t\tDataOutputStream dout = new DataOutputStream(new BufferedOutputStream(\r\n\t\t\t\tbaOutputStream));\r\n\t\tdout.write(getType());\r\n\t\tInetAddress localAddress = node.serverSocketForSending.getInetAddress()\r\n\t\t\t\t.getLocalHost();\r\n\t\tint localPortNumber = node.serverSocketForSending.getLocalPort();\r\n\t\tbyte[] byteLocalIP = localAddress.getAddress();\r\n\t\tbyte addressLength = (byte) byteLocalIP.length;\r\n\t\tdout.write(addressLength);\r\n\t\tdout.write(byteLocalIP);\r\n\t\tdout.writeInt(localPortNumber);\r\n\t\tdout.writeInt(node.nodeID);\r\n\t\tdout.flush();\r\n\t\tmarshalledBytes = baOutputStream.toByteArray();\r\n\t\tbaOutputStream.close();\r\n\t\tdout.close();\r\n\r\n\t\treturn marshalledBytes;\r\n\t}",
"public byte[] getBytes() {\r\n\r\n if (bytes == null) {\r\n bytes = new byte[getLength()];\r\n }\r\n\r\n return bytes;\r\n }",
"@Override\n\tpublic byte[] getBytes() {\n\t\tbyte[] marshalledBytes = null;\n\t\tByteArrayOutputStream baOutputStream = new ByteArrayOutputStream();\n\t\tDataOutputStream dout = new DataOutputStream(new BufferedOutputStream(\n\t\t\t\tbaOutputStream));\n\n\t\ttry {\n\t\t\tdout.writeInt(type);\n\t\t\tdout.writeInt(status);\n\t\t\tdout.writeInt(msgLength);\n\n\t\t\tbyte[] messageBytes = message.getBytes();\n\t\t\tint elementLength = messageBytes.length;\n\t\t\tdout.writeInt(elementLength);\n\t\t\tdout.write(messageBytes);\n\n\t\t\tdout.flush();\n\t\t\tmarshalledBytes = baOutputStream.toByteArray();\n\t\t\tbaOutputStream.close();\n\t\t\tdout.close();\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error marshalling the bytes for RegistryReportsRegistrationStatus.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn marshalledBytes;\n\n\t}",
"public final byte[] serializeArray() {\n if(this.b.arrayOffset() == 0) return this.b.array();\n return this.serializeArray_copy();\n }",
"public byte[] getBytes() {\r\n return this.seqArray;\r\n }",
"public byte[] getAsBytes() {\n return (byte[])data;\n }",
"public /*byte[]*/String BinaryCaster(Object item){\n String Sitem = Integer.toBinaryString((int)item);\n //byte[] b = new byte[Sitem.length()];\n //for(int i=0;i<Sitem.length();i++){\n // b[i] = (byte)Sitem.charAt(i);\n //}\n //return b;\n return Sitem;\n }",
"public byte[] toByteArray() {\n ByteBuffer buf = ByteBuffer.allocate(blockSize);\n for (Record record : records) {\n buf.put(record.isEmpty() ? (byte) 1 : (byte) 0);\n buf.put(new String(record.getTconst()).getBytes(StandardCharsets.US_ASCII));\n buf.putFloat(record.getAvgRating());\n buf.putInt(record.getNumVotes());\n }\n return buf.array();\n }",
"public byte[] toByteArray() {\n return null;\n }",
"public byte[] getEncoded() \n {\n try\n {\n return super.getEncoded();\n }\n catch (IOException e)\n {\n return null;\n }\n }",
"public byte[] getBytes(){\n\t\treturn message;\n\t}",
"@Override\n\tpublic String[] toArray() {\n\t\tString strValue[] = new String[DSPPackager.PACKAGER_MBASE_88301I\n\t\t\t\t.getFieldDefinitionList().length];\n\t\tString strHostName = null;\n\t\ttry {\n\t\t\tstrHostName = InetAddress.getLocalHost().getHostAddress();\n\t\t} catch (UnknownHostException ex) {\n\t\t\tstrHostName = \"localhost\";\n\t\t}\n\t\tstrValue[0] = \"*LINX\"; // Header type\n\t\tstrValue[1] = strHostName; // Device Name\n\t\tstrValue[5] = \"213\"; // Header Length\n\t\tstrValue[7] = \"0200\"; // Version\n\t\tstrValue[8] = \"*DSP\"; // Version\n\t\tstrValue[9] = \"MBSD\"; // Data format\n\t\tstrValue[10] = \"*LINX\"; // Source ID\n\t\tstrValue[14] = \"01\"; // Source ID\n\t\tstrValue[17] = \"BBMBSLNMNTFNC\"; // Scenario Number\n\t\tstrValue[22] = \"1\";\n\t\tstrValue[23] = \"10\";\n\t\tstrValue[24] = aa.getTeller(); // User ID\n\t\tstrValue[25] = strHostName; // Terminal ID\n\t\tstrValue[26] = \"88301\"; // Supervisor ID\n\t\tstrValue[27] = \"N\";\n\t\tstrValue[31] = aa.getTeller(); // Message Header\n\t\tstrValue[32] = \"1\"; // Message Header\n\t\tstrValue[34] = \"*END\";\n\t\tstrValue[36] = \"BTS\";\n\t\tstrValue[37] = \"RBS\";\n\t\tstrValue[39] = strHostName; // Terminal ID\n\t\tstrValue[40] = \"27\"; // Journal Seq\n\t\tstrValue[41] = aa.getBranch(); // Branch Code\n\t\tstrValue[45] = \"88301\"; // Transaction Code\n\t\tstrValue[46] = \"C\"; // add\n\t\tstrValue[47] = \"R\"; // response\n\t\tstrValue[48] = \"1\"; // Work station\n\t\tstrValue[49] = \"N\";\n\t\tstrValue[50] = \"F\";\n\t\tstrValue[56] = \"\";\n\t\tstrValue[67] = aa.getApplicationNo(); // application Number\n\t\tstrValue[68] = aa.getCifNum();\n\t\tstrValue[69] = aa.getApplicationDate();\n\t\tstrValue[71] = aa.getBranch(); // lpad 5 '0'\n\t\tstrValue[72] = aa.getWorkingEx();\n\t\tstrValue[73] = aa.getSpecProvision(); // Y/N\n\t\tstrValue[74] = aa.getClasifielDate();\n\t\tstrValue[75] = aa.getCarCode();\n\t\tstrValue[76] = aa.getReviewDate();\n\t\tstrValue[77] = aa.getRetention();\n\t\tstrValue[78] = aa.getReviewReMark();\n\t\tstrValue[79] = aa.getRefinanceFrom();\n\t\tstrValue[80] = aa.getTucachPn();\n\t\tstrValue[81] = aa.getTinhHinhTc();\n\t\tstrValue[82] = aa.getKhaNangVayVon();\n\t\tstrValue[83] = aa.getDamBaoTienVay();\n\t\tstrValue[84] = aa.getLimitAmount();\n\t\tstrValue[85] = aa.getCurencyType();\n\t\tstrValue[86] = aa.getOfficeCode();\n\t\tstrValue[87] = aa.getClassification();\n\t\tstrValue[88] = aa.getMARemarck();\n\t\tstrValue[89] = aa.getMADate();\n\t\treturn strValue;\n\t}",
"public byte[] toByteArray() {\n byte[] retour;\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n try {\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(new String(hostID));\n oos.writeObject(new Integer(hostAddresses.size()));\n for (int i=0; i<hostAddresses.size(); i++) oos.writeObject(new String(hostAddresses.elementAt(i).getNormalizedAddress()));\n oos.writeObject(new Integer(cpuLoad));\n oos.writeObject(new Integer(memoryLoad));\n oos.writeObject(new Integer(batteryLevel));\n oos.writeObject(new Integer(numberOfThreads));\n oos.writeObject(new Integer(numberOfBCs));\n oos.writeObject(new Integer(numberOfConnectors));\n oos.writeObject(new Integer(numberOfConnectorsNetworkInputs));\n oos.writeObject(new Integer(numberOfConnectorsNetworkOutputs));\n oos.writeObject(new Integer(networkPFInputTraffic));\n oos.writeObject(new Integer(networkPFOutputTraffic));\n oos.writeObject(new Integer(networkApplicationInputTraffic));\n oos.writeObject(new Integer(networkApplicationOutputTraffic));\n retour = bos.toByteArray();\n }\n catch (IOException ioe) {\n System.err.println(\"Error converting a host status to byte array\");\n retour = null;\n }\n return retour;\n }",
"@Override\n public byte[] getBytes() {\n return new byte[0];\n }",
"public byte[] getBytes()\n {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }",
"public byte[] toCompressedBytes() {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tDataOutputStream dos = new DataOutputStream(baos);\n \ttry {\n \t\t// write the type string first\n \t\tdos.writeUTF(Types.GPS);\n \t\tdos.writeLong(this.getTimestamp());\n \t\t// JWS - using flongs to compress\n \t\tdos.writeLong(FixedPointLong.stringToFlong(loc.getLatitudeAsString()));\n \t\tdos.writeLong(FixedPointLong.stringToFlong(loc.getLongitudeAsString()));\n \t\tfor(int i=0;i<gpsTypes.length;i++) {\n \t\t\tString s = (String) entries.get(gpsTypes[i]);\n \t\t\tdos.writeUTF(s);\n \t\t}\n \t\n \tdos.close();\n \t} catch(IOException ioe) {\n \t\t//ioe.printStackTrace();\n \t\treturn null; \n \t} catch(FixedPointLongException fple) {\n \t return null;\n \t}\n \treturn baos.toByteArray();\n }",
"public byte[] getDataBlock() {\n return serialize;\n }",
"public byte[] getBytes()\n {\n return bytes;\n }",
"public byte[] getBytes() {\n return bytes;\n }",
"public byte[] getBytes() {\r\n\t\treturn mByteList;\r\n\t}",
"public byte[] getBinaryValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a hexBinary.\");\n }",
"private byte[] outgoingBytes() {\n\t\t// collect all options outgoing bytes.\n\t\tfor (Option o : options) {\n\t\t\toutWriter.write(o.outgoing(outStream, this));\n\t\t}\n\t\t\n\t\t// Convert to byte[] array for writing.\n\t\tbyte[] out = outStream.toByteArray();\n\t\toutStream.reset();\n\t\t\n\t\treturn out;\n\t}",
"public byte[] getBytes() {\n return bytes;\n }",
"public byte[] getBytes()\n\t{\n\t\treturn bytes;\n\t}",
"public com.google.protobuf.ByteString\n getGetBytes() {\n return instance.getGetBytes();\n }",
"public abstract byte[] toBytes() throws Exception;",
"public byte[] serialize() {\n int size = distanceVectors.size();\n ByteBuffer buffer = ByteBuffer.allocate(46 * size + headerSize);\n serializeHeader(buffer);\n if(distanceVectors!=null) {\n for (Map.Entry<String, DistanceInfo> entry : distanceVectors.entrySet()) {\n String destination = entry.getKey();\n float cost = entry.getValue().cost;\n String firsHop = entry.getValue().firstHop;\n\n String add1 = \"\";\n String add2 = \"\";\n for (int i = 0; i < 21 - destination.length(); i++) {\n add1 += \" \";\n }\n for (int i = 0; i < 21 - firsHop.length(); i++) {\n add2 += \" \";\n }\n\n destination = destination + add1;\n firsHop = firsHop + add2;\n\n buffer.put(destination.getBytes());\n buffer.putFloat(cost);\n buffer.put(firsHop.getBytes());\n }\n }\n return buffer.array();\n }",
"public static byte[] createBytes()\n\t{\n\t\tfinal byte[] uuid = getTLS().compute();\n\t\tfinal byte[] rtrn = new byte[16];\n\n\t\t// In other to ensure backward compatibility with code\n\t\t// that might expect our logic to return only 16 bytes\n\t\t// we must strip off two bytes from 'uuid' (since it\n\t\t// contains 18 bytes). We'll take the first 16 bytes\n\t\t// since we know that the bytes that changes the most\n\t\t// are put first (see computeBase).\n\n\t\tSystem.arraycopy(uuid, 0, rtrn, 0, 16);\n\n\t\treturn rtrn;\n\t}",
"public byte[] getAsBytes () {\r\n\t \r\n\t //code description\r\n\t \r\n\t Properties p = new Properties();\t\r\n\t return this.getAsBytes(p);\r\n\t \r\n }",
"public byte[] getBytes() {\n return bytes;\n }",
"public byte[] getBytes() {\n\t\treturn bytes;\n\t}",
"@Override\n\tpublic byte[] getBytes() {\n\t\tByteBuffer buf = ByteBuffer.allocate(8);\n\t\tbuf.putDouble(this.riskPremium);\n\t\treturn buf.array();\n\t}",
"public byte[] getBytes() {\r\n return bytes;\r\n }",
"@Override\n\tpublic byte[] toBytes() {\n\t\treturn null;\n\t}",
"public byte[] toBytes() {\n return PaddingUtil.pad(\n PADDING,\n ByteArrayListUtil.merge(\n contactPublicKeyBytes,\n haNonce,\n haCiphertext,\n additionalData\n )\n );\n }",
"public byte[] toByteArray()\n\t{\n\t\tfinal ByteArrayOutputStream os = new ByteArrayOutputStream();\n\t\tos.write(length);\n\t\tos.write(connType);\n\t\tos.write(opt, 0, opt.length);\n\t\treturn os.toByteArray();\n\t}",
"public byte[] toByteArray() \r\n {\r\n \tbyte newbuf[] = new byte[count];\r\n \tSystem.arraycopy(buf, 0, newbuf, 0, count);\r\n \treturn newbuf;\r\n }",
"public byte[] getBytes() {\n\treturn null;\n }",
"public byte[] toByteArray() throws IOException {\n/* */ COSInputStream cOSInputStream;\n/* 501 */ ByteArrayOutputStream output = new ByteArrayOutputStream();\n/* 502 */ InputStream is = null;\n/* */ \n/* */ try {\n/* 505 */ cOSInputStream = createInputStream();\n/* 506 */ IOUtils.copy((InputStream)cOSInputStream, output);\n/* */ }\n/* */ finally {\n/* */ \n/* 510 */ if (cOSInputStream != null)\n/* */ {\n/* 512 */ cOSInputStream.close();\n/* */ }\n/* */ } \n/* 515 */ return output.toByteArray();\n/* */ }",
"public byte[] getByteData() { return bytedata; }",
"public byte[] getEncoded() throws CRLException {\n if (encoding == null) {\n encoding = crl.getEncoded();\n }\n byte[] result = new byte[encoding.length];\n System.arraycopy(encoding, 0, result, 0, encoding.length);\n return result;\n }",
"com.google.protobuf.ByteString\n getSerialBytes();",
"public byte[] getBytes() {\n byte[] indexData = VarInt.encode(txIndex);\n byte[] bytes = new byte[32+indexData.length];\n System.arraycopy(txHash.getBytes(), 0, bytes, 0, 32);\n System.arraycopy(indexData, 0, bytes, 32, indexData.length);\n return bytes;\n }",
"public byte[] getBytes() {\n return mBytes;\n }",
"public byte[] getPayload();",
"public byte[] getBytes() {\n\n byte[] data = new byte[CAPABILITY_LENGTH];\n Marshall.writeInt2(data, 0, CAPABILITY_LENGTH);\n Marshall.writeInt2(data, 2, gID);\n Marshall.writeInt2(data, 4, supportMask);\n Marshall.writeInt2(data, 6, DEF_MAXREADAHEADK);\n return data;\n }",
"public byte[] getByteArray() throws IOException {\n ByteArrayOutputStream dados = new ByteArrayOutputStream();\n DataOutputStream saida = new DataOutputStream(dados);\n\n saida.writeInt(idProduto);\n saida.writeUTF(nomePro);\n saida.writeUTF(descricao);\n saida.writeFloat(preco);\n return dados.toByteArray();\n }",
"com.google.protobuf.ByteString\n getS2Bytes();",
"public byte[] toByteArray() {\n byte[] array = new byte[count];\n System.arraycopy(buf, 0, array, 0, count);\n return array;\n }",
"public byte[] toByteArray() throws IOException\n {\n try (InputStream is = createInputStream())\n {\n return is.readAllBytes();\n }\n }",
"com.google.protobuf.ByteString\n getEncodedBytes();",
"com.google.protobuf.ByteString\n getSBytes();",
"public static byte[] getAPDUBuffer() {\n return getAPDUBuffer(currentTI.getAPDUBuffer());\n }",
"public byte[] getEncoded() {\n return toByteArray(Integer.valueOf(this.intValue));\n }",
"public byte[] getBytes() {\r\n return mBytes;\r\n }",
"public byte[] getByteArray()\n \t{\n \t\t// In some cases the array is bigger than the actual number\n \t\t// of valid bytes.\n \t\tint realByteLength = getLengthInBytes();\n \n \t\t// Currently the case is that the return from this\n \t\t// call only includes the valid bytes.\n \t\tif (value.length != realByteLength) {\n \t\t\tbyte[] data = new byte[realByteLength];\n \t\t\tSystem.arraycopy(value, 0, data, 0, realByteLength);\n \n \t\t\tvalue = data;\n \t\t}\n \n \t\treturn value;\n \t}"
]
| [
"0.61315143",
"0.6121707",
"0.6070636",
"0.60435003",
"0.6032337",
"0.60318875",
"0.6006272",
"0.6003444",
"0.60020775",
"0.59876204",
"0.5982984",
"0.5971773",
"0.5946758",
"0.59165907",
"0.5904945",
"0.58532083",
"0.58178025",
"0.5809238",
"0.5799027",
"0.5774391",
"0.57739854",
"0.57593477",
"0.5726543",
"0.57203674",
"0.57203674",
"0.56973904",
"0.5686169",
"0.5683196",
"0.5676503",
"0.5669063",
"0.5668392",
"0.56683636",
"0.5660565",
"0.5658378",
"0.5658378",
"0.56558484",
"0.5625607",
"0.56210136",
"0.5613173",
"0.56068116",
"0.5601695",
"0.5596577",
"0.5558368",
"0.5548717",
"0.55278444",
"0.5523665",
"0.5517012",
"0.5507291",
"0.55041236",
"0.5492388",
"0.5490588",
"0.54884326",
"0.5487194",
"0.5478337",
"0.547427",
"0.5471984",
"0.5467701",
"0.54651254",
"0.54645765",
"0.54622793",
"0.5458384",
"0.5448475",
"0.54459935",
"0.54446304",
"0.54407567",
"0.5434869",
"0.5433252",
"0.5415381",
"0.54118866",
"0.54094124",
"0.54094034",
"0.5404909",
"0.5399633",
"0.53819656",
"0.53808874",
"0.5380564",
"0.5377837",
"0.5368905",
"0.53627",
"0.535983",
"0.53573895",
"0.5344202",
"0.53440887",
"0.5342714",
"0.53403366",
"0.533937",
"0.5328994",
"0.5327646",
"0.53183246",
"0.53080916",
"0.5298882",
"0.52960664",
"0.52960634",
"0.5294495",
"0.5294311",
"0.52859795",
"0.5284695",
"0.5272339",
"0.5267119",
"0.52556634"
]
| 0.689381 | 0 |
if Symbol is already == 'X' or 'O' > do not change anymore | public void Update()
{
if(Symbol != ' ')
return;
//is hovering on the current Cell
if(BoundingBox.contains(GameHandler.GetInstance().get_m_MouseManager().getMouse_x(),
GameHandler.GetInstance().get_m_MouseManager().getMouse_y()))
{
//we click X on the cell
if(GameHandler.GetInstance().get_m_MouseManager().get_isLeftMouse_Pressed())
{
Symbol = 'X';
basicSystem.Xturn = false; //after we done with X
Player.JustTickCell = this;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String replaceOpSymbol(char symbol) {\n\n if (opSymbolHashTable.containsKey(String.valueOf(symbol))) {\n\n return opSymbolHashTable.get(String.valueOf(symbol));\n } else {\n return String.valueOf(symbol);\n }\n\n\n }",
"private String replaceOpSymbol(String symbol) {\n StringBuilder temp = new StringBuilder();\n for (int i = 0; i < symbol.length(); i++) {\n temp.append(replaceOpSymbol(symbol.charAt(i)));\n }\n return (temp.toString());\n }",
"public void setSymbol(char symbol) {\n\t\tthis.symbol = symbol;\n\t}",
"public char getSymbol() {\n switch (player) {\n case 0:\n return 'O';\n case 1:\n return 'X';\n default:\n return '+';\n }\n }",
"public void setSymbol(String symbol) {\n this.symbol = symbol;\n }",
"public void changeSymbol(char symbol) {\n\t\tsetSymbol(symbol);\n\t\tsetBorder(symbol);\n\t\t//symbol has been changed\n\t}",
"char getSymbol();",
"public void setSymbol(int symbol, String newSymbolString) {\n if (symbol >= 0) {\n throw new IllegalArgumentException(\"Symbol may not be a normal character:\"+symbol);\n } else {\n slexicinv.set(-symbol - 1, newSymbolString);\n }\n }",
"protected void setSymbol(char c){\r\n\t\tthis.symbol = c;\r\n\t}",
"public void setSymbol(Symbol symbol) {\r\n\t\tthis.symbol = symbol;\r\n\t}",
"protected char getSymbol(){\r\n\t\treturn this.symbol;\r\n\t}",
"public abstract String getSymbol();",
"@Override\r\n\t\tpublic void setPromptSymbol(Character symbol) {\n\r\n\t\t}",
"boolean hasSymbol();",
"boolean hasSymbol();",
"static void checkYESorNO(){\n /*\n System.out.print(\"X:\" + cntSymbols.get(\"X\"));\n System.out.print(\",O:\" + cntSymbols.get(\"O\"));\n System.out.print(\",.:\" + cntSymbols.get(\".\") + \"\\n\");\n */\n if(cntSymbols.get(\"O\") == null && cntSymbols.get(\".\") == 1 && cntSymbols.get(\"X\") ==3){\n result = \"YES\";\n return;\n } \n }",
"public String getSymbol(){\n return this.symbol;\n }",
"String getSymbol();",
"SquareType ( char symbol ) {\n this.symbol = symbol;\n }",
"public void setPromptSymbol(Character symbol);",
"private String symbol() {\n switch (this.suit) {\n case 1:\n return \"♣\";\n case 2:\n return \"♦\";\n case 3:\n return \"♥\";\n case 4:\n return \"♠\";\n default:\n throw new IllegalArgumentException(\"Invalid Suit\");\n }\n }",
"public String correct(String symbol) {\n\t\treturn correct(\"\",symbol,\"\",\"\",getLinkBandwidth());\n\t}",
"private void setSymbol(Environment env, String symbolName, String replacementSymbol) {\n SymbolSetter setter = SYMBOL_SETTERS.get(symbolName);\n SymbolGetter getter = SYMBOL_GETTERS.get(symbolName);\n\n // Check if it is a valid symbol name\n if (setter == null || getter == null) {\n env.writeln(\"'\" + symbolName + \"' is not a valid symbol name, valid symbol names are: PROMPT, MORELINES and MULTILINE.\");\n\n return;\n }\n\n // Check if the replacementSymbol is exactly one character\n if (replacementSymbol.length() != 1) {\n env.writeln(\"'\" + replacementSymbol + \"' is not a valid symbol, it contains more than one character.\");\n\n return;\n }\n\n char oldSymbol = getter.getSymbol(env);\n\n setter.setSymbol(env, replacementSymbol.charAt(0));\n env.writeln(\"Symbol for PROMPT changed from '\" + oldSymbol + \"' to '\" + replacementSymbol + \"'\");\n }",
"public char getSymbol() {\n return symbol;\n }",
"long getSymbol();",
"@Override\n public void saveSymbol(SecuritySymbols symbol) {\n\n }",
"public static SquareType fromChar (char symbol) {\n if (symbol == 'x') return SquareType.WALL;\n else if (symbol == ' ') return SquareType.CORRIDOR;\n else if (symbol == 'o') return SquareType.WAYOUT;\n return null;\n }",
"public String getSymbol() {\n return this.symbol ;\n }",
"Piece(String symbol) {\n this.symbol = symbol;\n }",
"public void setPieceSymbol() {\n if (this.pieceColor == Piece.PieceColorOptions.WHITE)\n this.pieceSymbol = WHITE_KING_SYMBOL;\n else if (pieceColor == Piece.PieceColorOptions.BLACK)\n this.pieceSymbol = BLACK_KING_SYMBOL;\n }",
"public boolean isValidSymbol(String s){\n\t\t// check whether the specified string s is a valid tent or tree symbol of the game\n\t\t// O(1)\n\t\tif(s.equals(tentSymbol) || s.equals(treeSymbol)) { //If the symbol is the same as the tent or tree symbol the it will return true\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"CharacterTarget put(char symbol) throws PrintingException;",
"void setSymbol(Environment environment, Character newSymbol);",
"public String getSymbol() {\n }",
"public String getSymbol() {\r\n\t\treturn symbol;\r\n\t}",
"public String getSymbol() {\r\n\t\treturn symbol;\r\n\t}",
"public final void setSymbol(String symbol)\n {\n String newSymbol = \"None\";\n if (\"paragraph\".equals(symbol))\n {\n newSymbol = \"P\";\n }\n annot.setString(COSName.SY, newSymbol);\n }",
"public Boolean isTerminal(String symbol){\n boolean terminal=false;\n for(Simbolo s:ejemplo.getMapa().values()){\n if(s.getValor().equals(symbol))\n terminal=s.isTerminal();\n }\n return terminal;\n }",
"public char getSymbol() {\n\t\treturn this.symbol;\n\t}",
"public String getSymbol() {\n return symbol;\n }",
"public String getSymbol() {\n return symbol;\n }",
"@Override\n public String getSymbol() {\n return SYMBOL;\n }",
"public SymbolicFeature(String symbol) {\r\n\t\tthis.symbol = symbol;\r\n\t\tthis.isResolved = false;\r\n\t}",
"@Override\n\tpublic boolean removeSymbolSpecial(Symbol sym) {\n\t\ttry (LockHold hold = program.trace.lockWrite()) {\n\t\t\tAbstractDBTraceSymbol dbSym = symbolManager.getSymbolByID(sym.getID());\n\t\t\tif (sym != dbSym) {\n\t\t\t\tthrow new IllegalArgumentException(\"The given symbol is not part of this trace\");\n\t\t\t}\n\t\t\tif (dbSym.getSymbolType() != SymbolType.FUNCTION) {\n\t\t\t\treturn dbSym.delete();\n\t\t\t}\n\t\t\tAddress address = dbSym.getAddress();\n\t\t\tCollection<? extends TraceLabelSymbol> at =\n\t\t\t\tsymbolManager.labels().getAt(program.snap, null, address, false);\n\t\t\tString name;\n\t\t\tTraceNamespaceSymbol parent;\n\t\t\tSourceType source;\n\t\t\tif (at.isEmpty()) {\n\t\t\t\tif (dbSym.getSource() == SourceType.DEFAULT) {\n\t\t\t\t\treturn false; // Can't remove default function symbol\n\t\t\t\t}\n\t\t\t\tname = SymbolUtilities.getDefaultFunctionName(address);\n\t\t\t\tparent = global;\n\t\t\t\tsource = SourceType.DEFAULT;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Absorb another symbol\n\t\t\t\tTraceLabelSymbol primary = at.iterator().next();\n\t\t\t\tname = primary.getName();\n\t\t\t\tparent = primary.getParentNamespace();\n\t\t\t\tsource = primary.getSource();\n\t\t\t\t// TODO: Notify reference manager of symbol removal?\n\t\t\t\t// TODO: Should probably do this in delete, not here...\n\t\t\t\tprimary.delete();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tdbSym.setNameAndNamespace(name, parent, source);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tcatch (DuplicateNameException | InvalidInputException | CircularDependencyException e) {\n\t\t\t\t// TODO: Original catches Exception and returns false. Why?\n\t\t\t\tthrow new AssertionError(e);\n\t\t\t}\n\t\t}\n\t}",
"@Test\n\tpublic void unitIsEquivalentToItself() {\n\t\tDummyUnit unit = new DummyUnit(SYMBOL);\n\t\tassertTrue(unit.isEquivalentTo(unit));\n\t}",
"public boolean contains_switch(String symbol);",
"String symbol();",
"private static void chooseLetter()\n {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Choose a letter :: X or O : \");\n userLetter = scanner.next().toUpperCase().charAt(0);\n computerLetter = (userLetter == 'X') ? 'O' : 'X';\n }",
"public boolean wins (char symbol){\n if (winsByRow(symbol) || winsByCol(symbol) || winsByDiagonalTopRightToBottomLeft(symbol) || winsByDiagonalTopLeftToBottomRight(symbol)){\n return true;\n }\n else {\n return false;\n }\n\n }",
"private boolean isSymbolOperatorAhead() {\r\n\t\treturn expression[currentIndex] == '*' || expression[currentIndex] == '+' || expression[currentIndex] == '!'\r\n\t\t\t\t|| (currentIndex + 2 < expression.length && expression[currentIndex] == ':'\r\n\t\t\t\t\t\t&& expression[currentIndex + 1] == '+' && expression[currentIndex + 2] == ':');\r\n\t}",
"public String getSymbol() {\n\t\treturn symbol;\n\t}",
"public boolean wins(char symbol) {\n for(int i = 0; i < gameBoard.length; i++) {\n for(int j = 0; j < gameBoard[i].length; j++) {\n // Only check on slots that are matching the requested symbol\n if(gameBoard[i][j] != symbol)\n continue;\n if(scanWinOnSlot(symbol, i ,j))\n return true;\n }\n }\n return false;\n }",
"public void setCurrentPlayerSymbol(Symbol symbol) throws IllegalArgumentException;",
"public static String getSymbol() {\n\t\t\t\n\t\t\treturn \"The Sequence has no characters...\";\n\t\t}",
"void setSymbol(@MaxUtf8Length(20) CharSequence symbol);",
"@Override\n public boolean equals(\n Object obj) {\n\n if (this == obj) {\n return true;\n }\n\n if (obj == null) {\n return false;\n }\n\n if (getClass() != obj.getClass()) {\n return false;\n }\n\n RichSymbol richSymbol = (RichSymbol) obj;\n\n if (this.isLookahead != richSymbol.isLookahead) {\n return false;\n }\n\n return this.symbol.equals(richSymbol.symbol);\n }",
"public C_Symbol(String symbol_str) {\n if(symbol_str.compareTo(String.valueOf((char)176)) == 0) {\n this.srch_Symbol = new C_Search_Symbol(symbol_str);\n this.nt = new C_NT();\n }\n else {\n this.nt = new C_NT(symbol_str);\n this.srch_Symbol = new C_Search_Symbol();\n }\n this.t = new C_T();\n this.epsilon = new C_Epsilon();\n \n }",
"public String toString(){\n return String.valueOf(symbol);\n }",
"public static Token specialSymbol(char firstChar, Source source) {\r\n\t\tToken token = new Token(firstChar);\r\n\t\ttoken.lineNumber = source.lineNumber();\r\n\r\n\t\tswitch (firstChar) {\r\n\t\tcase '.': {\r\n\t\t\tchar nextChar = source.nextChar();\r\n\r\n\t\t\tif (nextChar == '.') { // Is it the .. symbol?\r\n\t\t\t\ttoken.text += nextChar;\r\n\t\t\t\ttoken.type = TokenType.DOT_DOT;\r\n\t\t\t} else { // No, it's just the . symbol.\r\n\t\t\t\ttoken.type = TokenType.PERIOD;\r\n\t\t\t\treturn token; // already consumed :\r\n\t\t\t}\r\n\t\t}\r\n\t\t\tbreak;\r\n\t\tcase ';':\r\n\t\t\ttoken.type = TokenType.SEMICOLON;\r\n\t\t\tbreak;\r\n\t\tcase '+':\r\n\t\t\ttoken.type = TokenType.PLUS;\r\n\t\t\tbreak;\r\n\t\tcase '-':\r\n\t\t\ttoken.type = TokenType.MINUS;\r\n\t\t\tbreak;\r\n\t\tcase '*':\r\n\t\t\ttoken.type = TokenType.STAR;\r\n\t\t\tbreak;\r\n\t\tcase '/':\r\n\t\t\ttoken.type = TokenType.SLASH;\r\n\t\t\tbreak;\r\n\t\tcase '=':\r\n\t\t\ttoken.type = TokenType.EQUALS;\r\n\t\t\tbreak;\r\n\t\tcase '<': {\r\n\t\t\tchar nextChar = source.nextChar();\r\n\r\n\t\t\tif (nextChar == '>') { // Symbol: <>\r\n\t\t\t\ttoken.text += nextChar;\r\n\t\t\t\ttoken.type = TokenType.NOT_EQUALS;\r\n\t\t\t} else if (nextChar == '=') { // Symbol: <=\r\n\t\t\t\ttoken.text += nextChar;\r\n\t\t\t\ttoken.type = TokenType.LESS_EQUALS;\r\n\t\t\t} else { // No, it's just the < symbol.\r\n\t\t\t\ttoken.type = TokenType.LESS_THAN;\r\n\t\t\t\treturn token; // already consumed <\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tcase '>': {\r\n\t\t\tchar nextChar = source.nextChar();\r\n\r\n\t\t\tif (nextChar == '=') { // Symbol: <=\r\n\t\t\t\ttoken.text += nextChar;\r\n\t\t\t\ttoken.type = TokenType.GREATER_EQUALS;\r\n\t\t\t} else { // No, it's just the < symbol.\r\n\t\t\t\ttoken.type = TokenType.GREATER_THAN;\r\n\t\t\t\treturn token; // already consumed <\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\t\r\n\t\tcase '(':\r\n\t\t\ttoken.type = TokenType.LPAREN;\r\n\t\t\tbreak;\r\n\t\tcase ')':\r\n\t\t\ttoken.type = TokenType.RPAREN;\r\n\t\t\tbreak;\r\n\t\tcase '[':\r\n\t\t\ttoken.type = TokenType.LBRACKET;\r\n\t\t\tbreak;\r\n\t\tcase ']':\r\n\t\t\ttoken.type = TokenType.RBRACKET;\r\n\t\t\tbreak;\r\n\t\tcase '^':\r\n\t\t\ttoken.type = TokenType.CARAT;\r\n\t\t\tbreak;\r\n\t\tcase ',':\r\n\t\t\ttoken.type = TokenType.COMMA;\r\n\t\t\tbreak;\r\n\t\tcase ':': {\r\n\t\t\tchar nextChar = source.nextChar();\r\n\r\n\t\t\t// Is it the := symbol?\r\n\t\t\tif (nextChar == '=') {\r\n\t\t\t\ttoken.text += nextChar;\r\n\t\t\t\ttoken.type = TokenType.COLON_EQUALS;\r\n\t\t\t} else { // No, it's just the : symbol.\r\n\t\t\t\ttoken.type = TokenType.COLON;\r\n\t\t\t\treturn token; // already consumed :\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tcase Source.EOF:\r\n\t\t\ttoken.type = TokenType.END_OF_FILE;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\ttokenError(token, \"Invalid token\");\r\n\t\t\ttoken.type = TokenType.ERROR;\r\n\t\t}\r\n\r\n\t\tsource.nextChar(); // consume the special symbol\r\n\t\treturn token;\r\n\t}",
"private boolean existsSymbol(String symbol) {\r\n\t\treturn ts.containsKey(symbol.hashCode());\r\n\t}",
"public void resetSpecialChars(){\r\n //When a Greek symbols is missing (Backspace) from the Text Field its corresponding Greek button gets Enabled\r\n if(!anglefield.getText().contains(\"α\"))alpha_btn.setDisable(false);\r\n if(!anglefield.getText().contains(\"β\"))beta_btn.setDisable(false);\r\n if(!anglefield.getText().contains(\"γ\"))gamma_btn.setDisable(false);\r\n if(!anglefield.getText().contains(\"δ\"))delta_btn.setDisable(false);\r\n if(!anglefield.getText().contains(\"θ\"))theta_btn.setDisable(false);\r\n if(!anglefield.getText().contains(\"ɸ\"))phi_btn.setDisable(false);\r\n }",
"public void removeOperation(String symbol) {\n checkForNull(symbol);\n\n map.remove(symbol);\n }",
"public static Square fromChar(char symbol){\n for(Square s : values()){\n if(symbol == s.symbol){\n return s;\n } \n }\n throw new IllegalArgumentException(\"The character provided is not an existing square\");\n }",
"private String symbol(Cardtype c) {\n if (c == Cardtype.HEARTS) {\n return \"\\u2665\";\n } else if (c == Cardtype.DIAMONDS) {\n return \"\\u2666\";\n } else if (c == Cardtype.SPADES) {\n return \"\\u2660\";\n } else if (c == Cardtype.CLUBS) {\n return \"\\u2663\";\n } else {\n return \"\";\n }\n }",
"public Symbol getSymbol() {\r\n\t\treturn symbol;\r\n\t}",
"public Builder setSymbol(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n symbol_ = value;\n onChanged();\n return this;\n }",
"public Value restrictToSymbol() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.flags &= ~PRIMITIVE;\n r.num = null;\n r.str = null;\n r.getters = r.setters = null;\n r.excluded_strings = r.included_strings = null;\n r.object_labels = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() == Kind.SYMBOL)\n r.object_labels.add(objlabel);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }",
"public String getTentSymbol(){ return tentSymbol;}",
"@Override public String symbol() {\n return symbol;\n }",
"private boolean gameBoardCompareSafe(char symbol, int row, int col) {\n return row >= 0 && row < gameBoard.length && col >= 0 && col < gameBoard[0].length && gameBoard[row][col] == symbol;\n }",
"int isSymbol(String h) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tif (h.equals(\"+\") || h.equals(\"-\") || h.equals(\"*\") || h.equals(\"/\") || h.equals(\"=\")) {\r\n\t\t\t\tisToken(h);\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t\tif (h.equals(\";\")) {\r\n\t\t\t\tisToken(h);\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\r\n\t\t\tif (h.contains(\"(){\")) {\r\n\t\t\t\tisToken(\"(\");\r\n\t\t\t\tisToken(\")\");\r\n\t\t\t\tisToken(\"{\");\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\r\n\t\t\tif (h.contains(\"*\")) {\r\n\t\t\t\tisToken(\"*\");\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t\tif (h.contains(\"/\")) {\r\n\t\t\t\tisToken(\"/\");\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t\tif (h.contains(\"-\")) {\r\n\t\t\t\tisToken(\"-\");\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t\tif (h.contains(\"+\")) {\r\n\t\t\t\tisToken(\"+\");\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\r\n\t\t\tif (h.contains(\"(\") || h.equals(\"(\") || h.contains(\")\") || h.equals(\")\")) {\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\r\n\t\t\tisToken(h);\r\n\t\t\treturn 1;\r\n\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"Program will not run because of this symbol = \" + h);\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public Symbol getCurrentPlayerSymbol();",
"public void includeSymbol(String s) {\n if (!slexic.containsKey(s)) {\n int slexic_size = slexic.size();\n slexic.put(s, -(slexic_size + 1));\n slexicinv.add(s);\n }\n }",
"private boolean isOperator(char x) {\n return (x == '^' ||\n x == '*' ||\n x == '/' ||\n x == '+' ||\n x == '-');\n }",
"public boolean hasSymbol() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"private char getSymbolCharacter(String key, String numsys) {\n return getSymbolString(key, numsys).charAt(0);\n }",
"public boolean hasSymbol() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public Builder setSymbol(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n symbol_ = value;\n onChanged();\n return this;\n }",
"public List<Character> getSymbolList () {\n if (symbolList.contains('ε')) {\n symbolList.remove(symbolList.indexOf('ε'));\n }\n return this.symbolList;\n }",
"public String getSymbol( )\n {\n return symbol;\n }",
"@Test\n public void testIsSymbolWithoutName() {\n assertFalse(astService.isSymbolWithoutName(astAutomaton));\n // remove name attribute\n List<ASTCDAttribute> attributeList = astAutomaton.deepClone().getCDAttributeList().stream()\n .filter(a -> !\"name\".equals(a.getName()))\n .collect(Collectors.toList());\n ASTCDClass astAutomatonWithoutName = astAutomaton.deepClone();\n astAutomatonWithoutName.setCDAttributeList(attributeList);\n assertTrue(astService.isSymbolWithoutName(astAutomatonWithoutName));\n }",
"Boolean symbolValication( String nameCamel , String symbolCamel ) {\t\n\t\tif ( symbolCamel.length( ) != 2 ) return false;\t\t\t\t// invalid length of the symbol, avoids exception\n\t\tint l = nameCamel.length( );\n\t\tString name = nameCamel.toLowerCase( );\t\t\t\t\t\t// all letters to lower case\n\t\tString symbol = symbolCamel.toLowerCase( );\t\t\t\t\t// all letters to lower case\n\t\tint positionOfTheFirstEqual;\n\t\t// if the first character of the symbol is equal to one of the first (length-1) characters of the element name\n\t\treturn ( positionOfTheFirstEqual = name.substring( 0 , l - 1 ).indexOf( symbol.charAt( 0 ) ) ) >= 0 &&\n\t\t// and the second character of the symbol is equal to one of remaining characters of the element name\n\t\t\t\tname.substring( positionOfTheFirstEqual + 1 , l ).contains( Character.toString( symbol.charAt( 1 ) ) );\n\t}",
"public boolean isOp(){\n return opSet.contains(symbol());\n }",
"@Override\n\tpublic void setValue(Symbol symbol) throws IllegalSymbolValueException, TypeMismatchException, ImmutableSymbolException {\n\t\tif(!isMutable())\n\t\t\tthrow new ImmutableSymbolException(name);\n\t\t\n\t\tif(this.getDataType() == symbol.getDataType())\n\t\t\tthis.value = parseValue(symbol.getValue());\n\t\telse\n\t\t\tthrow new TypeMismatchException(symbol.getType(), this.getType());\n\t}",
"public Symbol getSymbol() {\n\n return this.symbol;\n }",
"static void invAdd(char item)\r\n {\r\n for (int i=0; i<3; ++i)\r\n {\r\n for (int k=0; k<4; ++k)\r\n {\r\n if (MainApp.inv[i][k] == 'X')\r\n {\r\n \t MainApp.inv[i][k] = item;\r\n \t return;\r\n }\r\n }\r\n }\r\n }",
"@Test\n\tpublic void testModifySymbolFontFromCatalog() throws Exception {\n\n\t\t// Modify the font of selected symbol\n\t\tint oldSymbolFontIndex = mathEditSymbolsDlgFont.getSelIndex();\n\t\tint modifiedSymbolFondIndex = (oldSymbolFontIndex + 1 == mathEditSymbolsDlgFont\n\t\t\t\t.getItemCount()) ? 0 : (oldSymbolFontIndex + 1);\n\t\tmathEditSymbolsDlgFont.select(modifiedSymbolFondIndex);\n\t\t// select the next font of old font\n\t\tString modifiedSymbolFont = mathEditSymbolsDlgFont.getSelText();\n\t\tString selectedSymbol = mathEditSymbolsDlgSymbol.getText();\n\t\tmathEditSymbolsDlgModify.click();\n\t\tmathEditSymbolsDlg.ok();\n\n\t\t// Verify if the font of symbol is modified successfully\n\t\tmathSymbolsDlgEditButton.click();\n\t\tmathEditSymbolsDlgSymbol.select(selectedSymbol);\n\t\tassertEquals(\"Font of symbol is not modified successfully\",\n\t\t\t\tmodifiedSymbolFont, mathEditSymbolsDlgFont.getSelText());\n\t}",
"public void\nsetCharSymbol(DrawCharObject drawObject)\nthrows Exception\n{\n\tthis.setCharSymbol(drawObject.getDrawChar(), ((DrawCharObject)drawObject).getFont());\n\tthis.setUseSymbol(true);\n}",
"private void playGame(Board game, Symbols symbol) {\n\n Display board = new Display(); \n Position pos = new Position();\n\n board.setGrid(symbol); \n board.displayGrid();\n\n char turn = Symbols.X.getValue();\n boolean gameOver = false; \n\n while (gameOver != true) {\n game.playerTurn(turn);\n symbol = game.symbolTurn(turn, symbol);\n System.out.println(\" \" + \"(\" + symbol + \")\");\n board.promptInput(game, board, symbol, pos);\n board.executeMove(pos, symbol); \n board.displayGrid(); \n if(game.gameFinished(board, game, turn) == true) {\n gameOver = true; \n }\n\n turn = game.switchTurn(turn); \n }\n }",
"public char symbol(){\n\n if (currentTokenType == TYPE.SYMBOL){\n\n return currentToken.charAt(0);\n\n }else{\n throw new IllegalStateException(\"Current token is not a symbol!\");\n }\n }",
"public static void DSISyncDip(String symbol) {\n\t}",
"private void putSymbol(String symbol, String type, String eqn){\n System.out.println(symbol+ \" \"+ type + \" \"+ eqn);\n }",
"public String getSymbol(int symbol, boolean uppercase) {\n\n //System.err.println(\"symbol = \" + symbol);\n if (symbol == 0) {\n return \"\";\n }\n\n if (symbol < 0) {\n return slexicinv.get(-symbol - 1);\n }\n\n // re-use strings\n if (symbol < MAX_CHARCACHE) {\n return uppercase? UPCHARCACHE[symbol] : CHARCACHE[symbol];\n }\n\n\n if (!uppercase) {\n return String.valueOf((char)symbol);\n } else {\n return String.valueOf(Character.toUpperCase((char)symbol));\n }\n }",
"private void validCharachter() throws DisallowedCharachter {\n if (!test.equals(\"X\") && !test.equals(\"O\")) {\n throw (new DisallowedCharachter());\n }\n }",
"int getOrAdd(String symbol);",
"public static String SimpleSymbols(String str) {\n \n for(int i = 0; i < str.length(); i++){\n \n if(Character.isLetter(str.charAt(i))){\n \n if(i == 0){\n return \"false\";\n }\n if(str.charAt(i - 1) != '+'){\n return \"false\";\n }\n if((i+ 1) < str.length()){\n if(str.charAt(i+1) != '+'){\n return \"false\";\n }\n }\n }\n }\n \n return \"true\";\n \n }",
"private Token symbol(TOKEN_TYPE t){\t\n\t\tntk++;\n\t\treturn new Token(t, yytext(), yyline+1, yycolumn+1); // yytext() é o lexema\n\t}",
"public Character getPromptSymbol();",
"public void setSymbolPosition(CurrencySymbolPosition posn)\r\n {\r\n m_symbolPosition = posn;\r\n }",
"@Override\r\n\t\tpublic Character getPromptSymbol() {\n\t\t\treturn null;\r\n\t\t}",
"boolean doubleX(String str) {\n int i = str.indexOf(\"x\");\n if (str.length() <= i + 1) {\n return false;\n } else if (str.charAt(i + 1) == 'x') {\n return true;\n } else {\n return false;\n }\n }"
]
| [
"0.69776285",
"0.6524524",
"0.62811184",
"0.62688076",
"0.6230469",
"0.622343",
"0.6213191",
"0.6155685",
"0.614602",
"0.6128965",
"0.60912013",
"0.5937699",
"0.5896736",
"0.5896669",
"0.5896669",
"0.58677495",
"0.58222777",
"0.5794444",
"0.5780422",
"0.5720039",
"0.57069683",
"0.56830233",
"0.5682405",
"0.5670451",
"0.5665833",
"0.56351393",
"0.56237406",
"0.55975",
"0.55949414",
"0.5581362",
"0.55793995",
"0.55744165",
"0.55593413",
"0.5505171",
"0.5484353",
"0.5484353",
"0.5474298",
"0.547284",
"0.5470054",
"0.54607",
"0.54529923",
"0.5448778",
"0.5441497",
"0.5439812",
"0.54158074",
"0.54131573",
"0.5391543",
"0.5376123",
"0.5365258",
"0.53578424",
"0.53472656",
"0.53443485",
"0.53440917",
"0.5338345",
"0.53226686",
"0.53174114",
"0.53124595",
"0.53055245",
"0.53049743",
"0.52997935",
"0.5294434",
"0.5292644",
"0.52868116",
"0.5278664",
"0.5278067",
"0.5271108",
"0.52684206",
"0.5264846",
"0.5259391",
"0.52562386",
"0.52498645",
"0.5239049",
"0.5238865",
"0.52297544",
"0.52151704",
"0.5211646",
"0.52024513",
"0.5199504",
"0.5189453",
"0.51819897",
"0.5176311",
"0.51759785",
"0.51691526",
"0.5162485",
"0.51608115",
"0.51542556",
"0.515067",
"0.5150527",
"0.5147598",
"0.51361406",
"0.5135589",
"0.51340175",
"0.512849",
"0.51223755",
"0.51178515",
"0.5116428",
"0.5113753",
"0.50929815",
"0.50623566",
"0.50583744",
"0.5055481"
]
| 0.0 | -1 |
Initializes the servlet and assigns all possible paths (that the app will process) to commands | public void init(ServletConfig servletConfig) throws ServletException {
super.init(servletConfig);
servletConfig.getServletContext()
.setAttribute(LOGGED_USERS.label, new HashSet<String>());
commands.put(CLIENT_FOOD.label,
new FoodCommands(new FoodService()));
commands.put(CLIENT_FOODS.label,
new FoodCommands(new FoodService()));
commands.put(CLIENT_ADD_FOOD.label,
new FoodCommands(new FoodService()));
commands.put(CLIENT_DELETE_FOOD.label,
new FoodCommands(new FoodService()));
commands.put(CLIENT_EDIT_FOOD.label,
new FoodCommands(new FoodService()));
commands.put(USER_LOGIN_JSP.label,
new LoginUserCommand(new UserService()));
commands.put(USER_REGISTER.label,
new UserCommands(new UserService()));
commands.put(EXCEPTION.label, new ExceptionCommand());
commands.put(CLIENT_BASE.label, new ClientCommand());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void startServlets(){\n\t\ttry{\n\t\t\tserver = new Server();\n\t\t\tServerConnector c = new ServerConnector(server);\n\t\t\tc.setIdleTimeout(15000);\n\t\t\tc.setAcceptQueueSize(256);\n\t\t\tc.setPort(port);\n\t\t\tif(!bind.equals(\"*\")){\n\t\t\t\tc.setHost(bind);\n\t\t\t}\n\n\t\t\tServletContextHandler handler = new ServletContextHandler(server,\"/\", true, false);\n\t\t\tServletHolder servletHolder = new ServletHolder(StatusServlet.class);\n\t\t\thandler.addServlet(servletHolder, \"/status/*\");\n\n\t\t\tservletHolder = new ServletHolder(SampleAPIServlet.class);\n\t\t\thandler.addServlet(servletHolder, \"/sample/*\");\n\n\t\t\tservletHolder = new ServletHolder(FileServlet.class);\n\t\t\thandler.addServlet(servletHolder, \"/*\");\n\t\t\tFileServlet.sourceFolder=\"./site\";\t\t\t\n\n\t\t\tserver.addConnector(c);\n\t\t\tserver.start();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void initialize() throws IOException, ServletException, URISyntaxException {\n\n LOG.info(\"Initializing the internal Server\");\n Log.setLog(new Slf4jLog(Server.class.getName()));\n\n /*\n * Create and configure the server\n */\n this.server = new Server();\n this.serverConnector = new ServerConnector(server);\n this.serverConnector.setReuseAddress(Boolean.TRUE);\n\n LOG.info(\"Server configure ip = \" + DEFAULT_IP);\n LOG.info(\"Server configure port = \" + DEFAULT_PORT);\n\n this.serverConnector.setHost(DEFAULT_IP);\n this.serverConnector.setPort(DEFAULT_PORT);\n this.server.addConnector(serverConnector);\n\n /*\n * Setup the basic application \"context\" for this application at \"/iop-node\"\n */\n this.servletContextHandler = new ServletContextHandler(ServletContextHandler.SESSIONS);\n this.servletContextHandler.setContextPath(JettyEmbeddedAppServer.DEFAULT_CONTEXT_PATH);\n this.server.setHandler(servletContextHandler);\n\n /*\n * Initialize webapp layer\n */\n WebAppContext webAppContext = new WebAppContext();\n webAppContext.setContextPath(JettyEmbeddedAppServer.DEFAULT_CONTEXT_PATH);\n\n URL webPath = JettyEmbeddedAppServer.class.getClassLoader().getResource(\"web\");\n LOG.info(\"webPath = \" + webPath.getPath());\n\n webAppContext.setResourceBase(webPath.toString());\n webAppContext.setContextPath(JettyEmbeddedAppServer.DEFAULT_CONTEXT_PATH+\"/web\");\n webAppContext.addBean(new ServletContainerInitializersStarter(webAppContext), true);\n webAppContext.setWelcomeFiles(new String[]{\"index.html\"});\n webAppContext.addFilter(AdminRestApiSecurityFilter.class, \"/rest/api/v1/admin/*\", EnumSet.of(DispatcherType.REQUEST));\n webAppContext.setInitParameter(\"org.eclipse.jetty.servlet.Default.dirAllowed\", \"false\");\n servletContextHandler.setHandler(webAppContext);\n server.setHandler(webAppContext);\n\n /*\n * Initialize restful service layer\n */\n ServletHolder restfulServiceServletHolder = new ServletHolder(new HttpServlet30Dispatcher());\n restfulServiceServletHolder.setInitParameter(\"javax.ws.rs.Application\", JaxRsActivator.class.getName());\n restfulServiceServletHolder.setInitParameter(\"resteasy.use.builtin.providers\", \"true\");\n restfulServiceServletHolder.setAsyncSupported(Boolean.TRUE);\n webAppContext.addServlet(restfulServiceServletHolder, \"/rest/api/v1/*\");\n\n this.server.dump(System.err);\n\n }",
"public void init() throws ServletException {\n\t\tModel model = new Model(getServletConfig());\r\n\t\tAction.add(new LoginAction(model));\r\n\t\tAction.add(new ManageTweet(model));\r\n\t}",
"public void init() {\n\n\t\tString rootdir = null;\n\t\ttry {\n\t\t\trootdir = ServletActionContext.getServletContext().getRealPath(\"/\");\n\t\t} catch (Exception ex) {\n\n\t\t}\n\n\t\tif (rootdir == null) {\n\t\t\trootdir = \"/Users/huangic/Documents/jetty-6.1.22/webapps/TransWeb\";\n\t\t}\n\n\t\tlogger.debug(rootdir);\n\t\tString classesdir = rootdir + \"/WEB-INF/classes/\";\n\t\tthis.xmlBatchRule = ReadXML(classesdir\n\t\t\t\t+ \"applicationContext-BatchRule.xml\");\n\t\tthis.xmlDB = ReadXML(classesdir + \"applicationContext-DB.xml\");\n\t\tthis.xmlSystem = ReadXML(classesdir + \"applicationContext-system.xml\");\n\n\t}",
"public void init() throws ServletException {\n\t\t\r\n\t\tString file = this.getServletContext().getRealPath( this.getInitParameter( \"config1\" ) );\r\n\t\tSystem.out.println( \"actionServlet..file:\"+file );\r\n\t\r\n\t\tIParseXML parser = new ParseXML();\r\n\t\tIActionConfig config = parser.parser(file);\r\n\t\tSystem.out.println( \"config:\"+config );\r\n\t\t\r\n\t\t//获取tomcat中的数据源\r\n\t\ttry {\r\n\t\t\tClass.forName( \"com.commons.ConnTools\" );\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//实例化业务派发控制器,\r\n\t\tprocessor = new RequestProcessor( config );\r\n\t\t\r\n\t}",
"@Override\n public void afterServletStart() {\n System.setProperty(\"opennms.home\", m_onmsHome);\n ConfigurationTestUtils.setRelativeHomeDirectory(m_onmsHome);\n }",
"public void init() {\n ServletContext context = getServletContext();\r\n host = context.getInitParameter(\"host\");\r\n port = context.getInitParameter(\"port\");\r\n user = context.getInitParameter(\"user\");\r\n pass = context.getInitParameter(\"pass\");\r\n }",
"public void init() throws ServletException {\r\n\r\n\t}",
"public void init() {\n ServletContext context = getServletContext();\n host = context.getInitParameter(\"host\");\n port = context.getInitParameter(\"port\");\n user = context.getInitParameter(\"user\");\n pass = context.getInitParameter(\"pass\");\n }",
"public void init() throws ServletException {\n }",
"public void init() throws ServletException {\n\t\t\n\t}",
"public void init( ){\n\t filepath = getServletContext().getContextPath();\r\n\tappPath = getServletContext().getRealPath(SAVE_DIR);\r\n\t \r\n\t }",
"public ControllerServlet() {\n\t\tsuper();\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t\t\n\t}",
"public void init() {\n\t\tServletContext context = getServletContext();\n\t\thost = context.getInitParameter(\"host\");\n\t\tport = context.getInitParameter(\"port\");\n\t\tuser = context.getInitParameter(\"user\");\n\t\tpass = context.getInitParameter(\"pass\");\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\n\t}",
"public void startServer() {\n System.out.println(\"Inicie\");\n httpServer = new HttpServer();\n httpServer.registerProessor(\"/App\", this);\n try {\n httpServer.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"public void init() throws ServletException {\n\t\t// Put your code here\n\t}",
"@Override\n\tpublic void init() throws ServletException {\n\t\tSystem.out.println(\"Servlet initializing\");\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t}",
"public void init() throws ServletException {\n\t\tserver = getInitParameter(\"ncserver\");\n\t\t// System.out.println(\"fffpropsFileName\"+propsFileName+\"...\");\n\t\tif (server == null)\n\t\t\tserver = \"http://100.100.1.61:81/service/XChangeServlet?account=0002\";\n\t\tSystem.out.println(\"server:\" + server + \"...\");\n\t}"
]
| [
"0.69594544",
"0.6569323",
"0.6563206",
"0.63244766",
"0.6306084",
"0.61651564",
"0.6153433",
"0.60979027",
"0.60835874",
"0.60776395",
"0.603107",
"0.6025024",
"0.6016461",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.6013615",
"0.60009897",
"0.5989441",
"0.5989044",
"0.59873265",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.598039",
"0.5974833",
"0.59739727",
"0.59739727",
"0.59739727",
"0.59739727",
"0.59739727",
"0.59739727",
"0.59739727",
"0.59739727",
"0.59739727",
"0.59739727",
"0.59739727",
"0.59739727",
"0.59739727",
"0.59739727",
"0.59739727",
"0.5951834"
]
| 0.6502592 | 3 |
Checks received requests for correct path and routes them to appropriate commands | public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
response.setContentType(TYPE_TEXT_HTML.label);
response.setCharacterEncoding(UTF8.label);
request.setCharacterEncoding(UTF8.label);
String path = request.getRequestURI();
logger.debug(RECEIVED_REQUEST + path);
Command command = null;
try {
command = commands.get(path);
command.execute(request, response);
} catch (NullPointerException e) {
logger.error(REQUEST_PATH_NOT_FOUND);
request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);
command = commands.get(EXCEPTION.label);
command.execute(request, response);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void handle(Request req, Response res) throws Exception {\n\t\t\t\tfinal String op = req.params(\":op\");\n\t\t\t\tfinal String username = req.queryParams(\"user\");\n\t\t\t\tfinal String path = req.queryParams(\"path\");\n\t\t\t\t\n\t\t\t\t//--- framework access ---//\n\t\t\t\tif (!Results.hasFrameworkAccess(op, path)) halt(404);\n\t\t\t\t//--- path exists? ---//\n\t\t\t\tif (!Directories.isExist(path)) halt(404);\n\t\t\t\t//--- section and path access ---//\n\t\t\t\tif (!AccessManager.hasAccess(username, path)) halt(401);\n\n\t\t\t}",
"public String handle(String path, HttpRequest req, HttpResponse resp){\n\n if(route.containsKey(path)){\n try {\n if(path.equals(\"/prueba\")){\n return httpOk() + \"prueba pasada\";\n }else if (path.equals(\"/dogs.jpg\")){\n return doDogs();\n }else if(path.equals(\"/cats.png\")){\n return doCats();\n }else if(path.equals(\"/js\")){\n return js();\n }else if(path.equals(\"/css\")){\n return doCss();\n }else{\n return httpOk() + route.get(path).invoke(null,null).toString();\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return httpNotOk() + \"Error\";\n }",
"Route route(String path);",
"@Override\n protected Response handleRequest(Request request) throws IOException {\n String path = request.getParameter(PATH);\n Resource res = request.getResource();\n String type = res.getValueMap().get(TYPE, String.class);\n Response answer;\n if(COMPONENTS.equals(type)) {\n answer = findComponents(request);\n } else if(TEMPLATES.equals(type)) {\n answer = findTemplates(request);\n } else if(OBJECTS.equals(type)) {\n answer = findObjects(request);\n } else {\n answer = new ErrorResponse().setHttpErrorCode(SC_BAD_REQUEST).setErrorMessage(UNKNOWN_TYPE + type);\n }\n return answer;\n }",
"private void dispatchRequests(RoutingContext context) {\n int initialOffset = 5; // length of `/api/`\n // Run with circuit breaker in order to deal with failure\n circuitBreaker.execute(future -> {\n getAllEndpoints().setHandler(ar -> {\n if (ar.succeeded()) {\n List<Record> recordList = ar.result();\n // Get relative path and retrieve prefix to dispatch client\n String path = context.request().uri();\n if (path.length() <= initialOffset) {\n notFound(context);\n future.complete();\n return;\n }\n\n String prefix = (path.substring(initialOffset).split(\"/\"))[0];\n String newPath = path.substring(initialOffset + prefix.length());\n\n // Get one relevant HTTP client, may not exist\n Optional<Record> client = recordList.stream()\n .filter(record -> record.getMetadata().getString(\"api.name\") != null)\n .filter(record -> record.getMetadata().getString(\"api.name\").equals(prefix))\n .findAny(); // simple load balance\n\n if (client.isPresent()) {\n doDispatch(context, newPath, discovery.getReference(client.get()).get(), future);\n } else {\n notFound(context);\n future.complete();\n }\n } else {\n future.fail(ar.cause());\n }\n });\n }).setHandler(ar -> {\n if (ar.failed()) {\n badGateway(ar.cause(), context);\n }\n });\n }",
"@Override\n public String handleRoute(String requestBody) {\n Gson gson = new Gson();\n Wrap sessionWrap = null;\n try {\n sessionWrap = gson.fromJson(requestBody, Wrap.class);\n } catch (JsonSyntaxException e) {\n logger.log(Level.WARNING, \"Failed to unwrap Json wrapper\", e);\n }\n Expression expression = sessionWrap.getExpression();\n // Extract protocol from expression\n String protocol = expression.getProtocol();\n // Forward to correct protocol application\n String protocolServicePath = \"NotSet\";\n if (protocolMap.containsKey(protocol)) {\n protocolServicePath = protocolMap.get(protocol);\n logger.log(Level.INFO, \"Sending packet to a protocol service..\");\n return transmissionHandler.handleTransmission(sessionWrap, protocolServicePath);\n } else {// Else inform service is down\n logger.log(Level.WARNING, \"Protocolservice: \" + protocol\n + \" not found, either it is down, or the service reference is wrong.\");\n }\n return protocolServicePath; // returns string NotSet\n }",
"private void callHandler(String method, HttpServletRequest request, HttpServletResponse response) throws IOException {\n JsonElement payload = getPayload(request, response);\n RequestContext context = new RequestContext(\n request, response, urlVariables, request.getParameterMap(), payload);\n PathNode apiStructure = getApiStructure(method);\n\n if (request.getPathInfo() == null) {\n logger.warn(\"Received \" + method + \" request with empty path.\");\n return;\n }\n\n PathNode.PathNodeResult result = apiStructure.getBindingForSubPath(request.getPathInfo());\n if (result != null) {\n urlVariables.putAll(result.getArgValues());\n result.getApiSpec().apiInterface.call(context);\n }\n }",
"private void setupRoutes() {\n\t\tpost(\"/messages\", (req, res) -> {\n\n\t\t\ttry {\n\t\t\t\tMessage newMessage = mapper.readValue(req.body(), Message.class);\n\t\t\t\t// Message newMessage = gson.fromJson(req.body(),\n\t\t\t\t// Message.class);\n\t\t\t\tif (!newMessage.isValid()) {\n\t\t\t\t\tres.status(HTTP_BAD_REQUEST);\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\t\t\t\tservice.messagePost(newMessage);\n\t\t\t\tres.status(HTTP_OK_REQUEST);\n\t\t\t\treturn res;\n\t\t\t} catch (Exception e) {\n\t\t\t\tres.status(HTTP_BAD_REQUEST);\n\t\t\t\treturn res;\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * \n\t\t */\n\t\tget(\"/messages/syntesis\", (request, response) -> {\n\t\t\treturn new Synthesis(1, 12l, 12l, 12L);\n\t\t} , new JsonTransformer());\n\n\t}",
"@Routes( { @Route( method = Method.ANY, path = \":?path=(.*)\", binding = BindingType.raw ) } )\n public void handle( final HttpServerRequest request )\n {\n ResponseUtils.setStatus( ApplicationStatus.OK, request );\n\n request.pause();\n String path = request.params()\n .get( PathParam.path.key() );\n\n if ( path != null && ( path.length() < 1 || path.equals( \"/\" ) ) )\n {\n path = null;\n }\n\n VertXWebdavRequest req = null;\n final VertXWebdavResponse response = new VertXWebdavResponse( request.response() );\n\n try\n {\n String contextPath = masterRouter.getPrefix();\n if ( contextPath == null )\n {\n contextPath = \"\";\n }\n\n req = new VertXWebdavRequest( request, contextPath, \"/mavdav\", path, null );\n\n service.service( req, response );\n\n }\n catch ( WebdavException | IOException e )\n {\n logger.error( String.format( \"Failed to service mavdav request: %s\", e.getMessage() ), e );\n formatResponse( e, request );\n }\n finally\n {\n IOUtils.closeQuietly( req );\n IOUtils.closeQuietly( response );\n\n try\n {\n request.response()\n .end();\n }\n catch ( final IllegalStateException e )\n {\n }\n }\n }",
"private void checkRequest(Request req) throws MethodNotAllowed, NotFound {\n if (!req.getHeader(\"Method\").equals(\"GET\") ||\n !req.getHeader(\"Version\").equals(\"HTTP/1.1\")) {\n throw new MethodNotAllowed();\n }\n if (req.getHeader(\"Path\").endsWith(\"/\")) {\n throw new NotFound();\n }\n }",
"@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString uri = req.getRequestURI();\r\n\t\tString action = uri.substring(uri.lastIndexOf('/') + 1);\r\n\t\tsession = req.getSession();\r\n\t\tpath = req.getContextPath();\r\n\t\tpw = resp.getWriter();\r\n\t\tSystem.out.println(uri);\r\n\t\tswitch (action) {\r\n\t\tcase \"check\":\r\n\t\t\ttry {\r\n\t\t\t\tthis.checkAction(req,resp);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase \"index\":\r\n\t\t\tthis.checkSessionAction(req,resp);\r\n\t\t\tbreak;\r\n\t\tcase \"logout\":\r\n\t\t\tthis.logoutAction(req,resp);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\r\n\t\t}\r\n\t\treturn;\r\n\t}",
"public void compute() {\r\n this.host = \".*\";\r\n this.hostPattern = new Pattern(host);\r\n // staticDir\r\n if (action.startsWith(\"staticDir:\")) {\r\n if (!method.equalsIgnoreCase(\"*\") && !method.equalsIgnoreCase(\"GET\")) {\r\n Logger.warn(\"Static route only support GET method\");\r\n return;\r\n }\r\n if (!this.path.endsWith(\"/\") && !this.path.equals(\"/\")) {\r\n Logger.warn(\"The path for a staticDir route must end with / (%s)\", this);\r\n this.path += \"/\";\r\n }\r\n this.pattern = new Pattern(\"^\" + path + \"({resource}.*)$\");\r\n this.staticDir = action.substring(\"staticDir:\".length());\r\n } else {\r\n // URL pattern\r\n // Is there is a host argument, append it.\r\n if (!path.startsWith(\"/\")) {\r\n String p = this.path;\r\n this.path = p.substring(p.indexOf(\"/\"));\r\n this.host = p.substring(0, p.indexOf(\"/\"));\r\n\r\n Matcher m = new Pattern(\".*\\\\{({name}.*)\\\\}.*\").matcher(host);\r\n\r\n if (m.matches()) {\r\n String name = m.group(\"name\");\r\n hostArg = new Arg();\r\n hostArg.name = name;\r\n }\r\n this.host = this.host.replaceFirst(\"\\\\{.*\\\\}\", \"\");\r\n this.hostPattern = new Pattern(host);\r\n }\r\n String patternString = path;\r\n patternString = customRegexPattern.replacer(\"\\\\{<[^/]+>$1\\\\}\").replace(patternString);\r\n Matcher matcher = argsPattern.matcher(patternString);\r\n while (matcher.find()) {\r\n Route.Arg arg = new Arg();\r\n arg.name = matcher.group(2);\r\n arg.constraint = new Pattern(matcher.group(1));\r\n args.add(arg);\r\n }\r\n\r\n patternString = argsPattern.replacer(\"({$2}$1)\").replace(patternString);\r\n this.pattern = new Pattern(patternString);\r\n // Action pattern\r\n patternString = action;\r\n patternString = patternString.replace(\".\", \"[.]\");\r\n for (Route.Arg arg : args) {\r\n if (patternString.contains(\"{\" + arg.name + \"}\")) {\r\n patternString = patternString.replace(\"{\" + arg.name + \"}\", \"({\" + arg.name + \"}\" + arg.constraint.toString() + \")\");\r\n actionArgs.add(arg.name);\r\n }\r\n }\r\n actionPattern = new Pattern(patternString, REFlags.IGNORE_CASE);\r\n }\r\n }",
"@Override\r\n\tprotected byte[] handleSpecificRequest(String request) {\r\n\t\tif (!Utils.isEmpty(request)) {\r\n\t\t\tlogger.info(\"$$$$$$$$$$$$Message received at Tracking Server:\" + request);\r\n\t\t\tif (request.startsWith(NODE_REQUEST_TO_SERVER.FILE_LIST.name())) {\r\n\t\t\t\thandleFileUpdateMessage(request);\r\n\t\t\t\treturn Utils.stringToByte(SharedConstants.COMMAND_SUCCESS);\r\n\t\t\t} else if (request.startsWith(NODE_REQUEST_TO_SERVER.FIND.name())) {\r\n\t\t\t\tString peers = handleFindFileRequest(request);\r\n\t\t\t\treturn Utils.stringToByte((Utils.isEmpty(peers) ? SharedConstants.COMMAND_FAILED\r\n\t\t\t\t\t\t: SharedConstants.COMMAND_SUCCESS) + SharedConstants.COMMAND_PARAM_SEPARATOR + peers);\r\n\r\n\t\t\t} else if (request.startsWith(NODE_REQUEST_TO_SERVER.FAILED_PEERS.name())) {\r\n\t\t\t\thandleFailedPeerRequest(request);\r\n\t\t\t\treturn Utils.stringToByte(SharedConstants.COMMAND_SUCCESS);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn Utils.stringToByte(SharedConstants.INVALID_COMMAND);\r\n\r\n\t}",
"void dispatchRequest(String urlPath) throws Exception;",
"@SneakyThrows\n private void invokeRequestRouting(Class<?> clazz, Injector injector) {\n log.info(MODULE_NAME + clazz.getName());\n Route route = clazz.getAnnotation(Route.class);\n String prefix = route.value();\n Object instance = injector.getInstance(clazz);\n clazz.getMethod(ROUTE_METHOD_NAME, String.class).invoke(instance, prefix);\n Method[] methods = clazz.getMethods();\n for (Method method : Arrays.asList(methods)) {\n if (method.isAnnotationPresent(RequestRouting.class)) {\n RequestRouting requestRouting = method.getAnnotation(RequestRouting.class);\n String path = requestRouting.path();\n int order = requestRouting.order();\n path = (StringUtils.isNotEmpty(prefix)) ? prefix + path : path;\n router.route(requestRouting.method(), path).order(order).handler(rc -> {\n try {\n method.invoke(instance, rc);\n } catch (Exception e) {\n log.error(MODULE_NAME + e.getMessage());\n }\n });\n }\n }\n }",
"public void handle(HttpServletRequest request, HttpServletResponse response) throws IOException\n {\n try\n {\n String pathInfo = request.getPathInfo();\n String servletPath = request.getServletPath();\n String contextPath = request.getContextPath();\n \n if (nullPathInfoWorkaround && pathInfo == null)\n {\n pathInfo = request.getServletPath();\n servletPath = PathConstants.PATH_ROOT;\n log.debug(\"Default servlet suspected. pathInfo=\" + pathInfo + \"; contextPath=\" + contextPath + \"; servletPath=\" + servletPath); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n }\n \n if (pathInfo == null ||\n pathInfo.length() == 0 ||\n pathInfo.equals(PathConstants.PATH_ROOT))\n {\n response.sendRedirect(contextPath + servletPath + PathConstants.FILE_INDEX);\n }\n else if (pathInfo.startsWith(PathConstants.FILE_INDEX))\n {\n String page = debugPageGenerator.generateIndexPage(contextPath + servletPath);\n \n response.setContentType(MimeConstants.MIME_HTML);\n PrintWriter out = response.getWriter();\n out.print(page);\n response.flushBuffer();\n }\n else if (pathInfo.startsWith(PathConstants.PATH_TEST))\n {\n String scriptName = pathInfo;\n scriptName = LocalUtil.replace(scriptName, PathConstants.PATH_TEST, \"\"); //$NON-NLS-1$\n scriptName = LocalUtil.replace(scriptName, PathConstants.PATH_ROOT, \"\"); //$NON-NLS-1$\n \n String page = debugPageGenerator.generateTestPage(contextPath + servletPath, scriptName);\n \n response.setContentType(MimeConstants.MIME_HTML);\n PrintWriter out = response.getWriter();\n out.print(page);\n response.flushBuffer();\n }\n else if (pathInfo.startsWith(PathConstants.PATH_INTERFACE))\n {\n String scriptName = pathInfo;\n scriptName = LocalUtil.replace(scriptName, PathConstants.PATH_INTERFACE, \"\"); //$NON-NLS-1$\n scriptName = LocalUtil.replace(scriptName, PathConstants.EXTENSION_JS, \"\"); //$NON-NLS-1$\n String path = contextPath + servletPath;\n \n String script = remoter.generateInterfaceScript(scriptName, path);\n \n // Officially we should use MimeConstants.MIME_JS, but if we cheat and\n // use MimeConstants.MIME_PLAIN then it will be easier to read in a\n // browser window, and will still work just fine.\n response.setContentType(MimeConstants.MIME_PLAIN);\n PrintWriter out = response.getWriter();\n out.print(script);\n response.flushBuffer();\n }\n else if (pathInfo.startsWith(PathConstants.PATH_PLAINJS))\n {\n Calls calls = plainJsMarshaller.marshallInbound(request, response);\n Replies replies = remoter.execute(calls);\n plainJsMarshaller.marshallOutbound(replies, request, response);\n }\n else if (pathInfo.startsWith(PathConstants.PATH_HTMLJS))\n {\n Calls calls = htmlJsMarshaller.marshallInbound(request, response);\n Replies replies = remoter.execute(calls);\n htmlJsMarshaller.marshallOutbound(replies, request, response);\n }\n else if (pathInfo.equalsIgnoreCase(PathConstants.FILE_ENGINE))\n {\n doFile(request, response, PathConstants.FILE_ENGINE, MimeConstants.MIME_JS, true);\n }\n else if (pathInfo.equalsIgnoreCase(PathConstants.FILE_UTIL))\n {\n doFile(request, response, PathConstants.FILE_UTIL, MimeConstants.MIME_JS, false);\n }\n else if (pathInfo.startsWith(PathConstants.PATH_STATUS))\n {\n Container container = WebContextFactory.get().getContainer();\n ScriptSessionManager manager = (ScriptSessionManager) container.getBean(ScriptSessionManager.class.getName());\n if (manager instanceof DefaultScriptSessionManager)\n {\n DefaultScriptSessionManager dssm = (DefaultScriptSessionManager) manager;\n dssm.debug();\n }\n }\n else\n {\n log.warn(\"Page not found (\" + pathInfo + \"). In debug/test mode try viewing /[WEB-APP]/dwr/\"); //$NON-NLS-1$ //$NON-NLS-2$\n response.sendError(HttpServletResponse.SC_NOT_FOUND);\n }\n }\n catch (Exception ex)\n {\n log.warn(\"Error: \" + ex); //$NON-NLS-1$\n if (ex instanceof SecurityException && log.isDebugEnabled())\n {\n log.debug(\"- User Agent: \" + request.getHeader(HttpConstants.HEADER_USER_AGENT)); //$NON-NLS-1$\n log.debug(\"- Remote IP: \" + request.getRemoteAddr()); //$NON-NLS-1$\n log.debug(\"- Request URL:\" + request.getRequestURL()); //$NON-NLS-1$\n log.debug(\"- Query: \" + request.getQueryString()); //$NON-NLS-1$\n log.debug(\"- Method: \" + request.getMethod()); //$NON-NLS-1$\n \n ex.printStackTrace();\n }\n \n response.setContentType(MimeConstants.MIME_HTML);\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n PrintWriter out = response.getWriter();\n out.println(\"<html><head><title>Error</title</head><body>\"); //$NON-NLS-1$\n out.println(\"<p><b>Error</b>: \" + ex.getMessage() + \"</p>\"); //$NON-NLS-1$ //$NON-NLS-2$\n out.println(\"<p>For further information about DWR see:</p><ul>\"); //$NON-NLS-1$\n out.println(\"<li><a href='http://getahead.ltd.uk/dwr/documentation'>DWR Documentation</a></li>\"); //$NON-NLS-1$\n out.println(\"<li><a href='http://getahead.ltd.uk/dwr/support'>DWR Mailing List</a></li>\"); //$NON-NLS-1$\n out.println(\"</ul>\"); //$NON-NLS-1$\n out.println(\"<script type='text/javascript'>\"); //$NON-NLS-1$\n out.println(\"alert('\" + ex.getMessage() + \"');\"); //$NON-NLS-1$ //$NON-NLS-2$\n out.println(\"</script>\"); //$NON-NLS-1$\n out.println(\"</body></html>\"); //$NON-NLS-1$\n out.flush();\n }\n }",
"@Override\n public void handle(HttpExchange exchange) {\n \n try {\n String resource = exchange.getRequestURI().getPath();\n if (exchange.getRequestMethod().equals(\"HEAD\")){\n exchange.sendResponseHeaders(200, 0);\n return;\n }else if (resource.startsWith(\"/api/\")){\n api(resource, exchange);\n }else{\n if (redirect.containsKey(exchange.getRequestURI().getPath())) resource = redirect.get(exchange.getRequestURI().getPath());\n else resource = resource.substring(1);\n sendResource(resource, exchange);\n }\n System.out.println(exchange.getRequestMethod() + \":\" + exchange.getRequestURI().toString() + \", \" + resource);\n }catch(Exception e){\n System.out.println(exchange.getRequestMethod() + \":\" + exchange.getRequestURI().toString() + \", \" + e);\n e.printStackTrace();\n byte[] data = e.getMessage().getBytes(StandardCharsets.UTF_8);\n try {\n exchange.sendResponseHeaders(500, data.length);\n exchange.getResponseBody().write(data);\n exchange.getResponseBody().flush();\n }catch(Exception ignored){}\n }finally{\n exchange.close();\n }\n }",
"@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)\n\t\t\tthrows Exception {\n\n\t\tList<String> driver_urls = new ArrayList<String>();\n\t\tList<String> officer_urls = new ArrayList<String>();\n\n\t\t// TODO add url for driver can access\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*$\");\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*/validate\");\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*/manual_validate\");\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*/manual_extend\");\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*/not_extend\");\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*/archive\");\n\t\tdriver_urls.add(\"/api/payment/uuid/[^\\\\/]*$\");\n\t\tdriver_urls.add(\"/api/payment/\\\\d+/paid$\");\n\n\t\tofficer_urls = driver_urls;\n\t\t// TODO add url for officer can access\n\t\tofficer_urls.add(\"/api/notice/initiate\");\n\t\tofficer_urls.add(\"/api/license/\\\\d+\");\n\t\tofficer_urls.add(\"/api/payment\");\n\t\tofficer_urls.add(\"/api/payment/[^\\\\/]*$\");\n\t\tofficer_urls.add(\"/api/notice\");\n\t\tofficer_urls.add(\"/api/notice/[^\\\\/]*$\");\n\t\tofficer_urls.add(\"/api/notice/status/manual_validate\");\n\t\tofficer_urls.add(\"/api/notice/status/manual_extend\");\n\t\tofficer_urls.add(\"/api/notice/uuid/[^\\\\/]*/officer/\\\\d+$\");\n\t\tofficer_urls.add(\"/api/notice/officer/\\\\d+/claimed\");\n\t\tofficer_urls.add(\"/api/notice/uuid/[^\\\\/]*/officer/\\\\d+/approve/amount/\\\\d+$\");\n\t\tofficer_urls.add(\"/api/notice/uuid/[^\\\\/]*/officer/\\\\d+/reject$\");\n\n\t\tofficer_urls.add(\"/api/license/Renewable\");\n\n\t\tString authorization_token = null;\n\t\tauthorization_token = request.getHeader(\"Authorization\");\n\t\tSystem.out.println(\"authorization_token: \" + authorization_token);\n\t\tString requestPath = request.getRequestURI();\n\t\tSystem.out.println(\"requestPath: \" + requestPath);\n\n\t\tSystem.out.println(request.getRequestURL());\n\n\t\tif (authorization_token == null) {\n\t\t\tresponse.setStatus(401);\n\t\t\tresponse.getWriter().append(\"authorization required\");\n\t\t\treturn false;\n\n\t\t} else if (authorization_token.equals(Constant.DRIVER_AUTHORIZATION_TOKEN)) {\n\n\t\t\tfor (String driver_url : driver_urls) {\n\t\t\t\tif (requestPath.matches(driver_url)) {\n\t\t\t\t\tSystem.out.println(driver_url);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresponse.setStatus(401);\n\t\t\tresponse.getWriter().append(\"failure of authorization of driver\");\n\t\t\treturn false;\n\n\t\t} else if (authorization_token.equals(Constant.OFFICER_AUTHORIZATION_TOKEN)) {\n\n\t\t\tfor (String officer_url : officer_urls) {\n\t\t\t\tif (requestPath.matches(officer_url)) {\n\t\t\t\t\tSystem.out.println(officer_url);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresponse.setStatus(401);\n\t\t\tresponse.getWriter().append(\"failure of authorization of officer\");\n\t\t\treturn false;\n\n\t\t} else {\n\t\t\tresponse.setStatus(401);\n\t\t\tresponse.getWriter().append(\"authorization required\");\n\t\t\treturn false;\n\t\t}\n\n\t}",
"@Override\n public void handle(HttpExchange exchange) throws IOException {\n boolean wasSuccessful = false;\n try {\n // Only allow POST requests for this operation.\n // This operation requires a POST request, because the\n // client is \"posting\" information to the server for processing.\n if (exchange.getRequestMethod().toLowerCase().equals(\"get\")) {\n\n //String containing the url desired\n String URLrequested = exchange.getRequestURI().toString();\n\n //Checks to see if it is just the open URL as ex: localhost:8080, this is mapped to index.html, this is the case for nothing added.\n if (URLrequested.length() == 1){\n\n\n String location = \"web/index.html\";\n Path path = FileSystems.getDefault().getPath(location);\n\n exchange.sendResponseHeaders(HttpURLConnection.HTTP_OK, 0);\n\n Files.copy(path, exchange.getResponseBody());\n\n exchange.getResponseBody().close();\n\n } else if (URLrequested.equals(\"/\")) {\n\n //\n String location = \"web\" + URLrequested;\n\n //Obtain the file path, this is the same method used for the name and locations data draw\n Path filePath = FileSystems.getDefault().getPath(location);\n\n exchange.sendResponseHeaders(HttpURLConnection.HTTP_OK, 0);\n\n //Copies Files into the exchange's responsive body header\n Files.copy(filePath, exchange.getResponseBody());\n\n exchange.getResponseBody().close();\n\n }\n else if(URLrequested.equals(\"/css/main.css\")){\n String location = \"web/css/main.css\";\n //Obtain the file path, this is the same method used for the name and locations data draw\n Path filePath = FileSystems.getDefault().getPath(location);\n\n exchange.sendResponseHeaders(HttpURLConnection.HTTP_OK, 0);\n\n //Copies Files into the response body\n Files.copy(filePath, exchange.getResponseBody());\n\n exchange.getResponseBody().close();\n\n }\n else{\n String location = \"web/HTML/404.html\";\n\n //Obtain the file path, this is the same method used for the name and locations data draw\n Path filePath = FileSystems.getDefault().getPath(location);\n\n //Response header needs to come first.\n exchange.sendResponseHeaders(HttpURLConnection.HTTP_NOT_FOUND, 0);\n\n //Copies Files into the response body\n Files.copy(filePath, exchange.getResponseBody());\n\n\n //Completes the exchange\n exchange.getResponseBody().close();\n }\n wasSuccessful = true;\n\n\n }\n\n if (!wasSuccessful) {\n //Bad Server Response\n exchange.sendResponseHeaders(HttpURLConnection.HTTP_BAD_REQUEST, 0);\n\n //Completes the exchange\n exchange.getResponseBody().close();\n }\n }\n catch (IOException e) {\n //Bad Server Response\n exchange.sendResponseHeaders(HttpURLConnection.HTTP_SERVER_ERROR, 0);\n //Completes the exchange\n exchange.getResponseBody().close();\n e.printStackTrace();\n }\n }",
"protected String processPath(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException\n { //20030305AH - Store result of processPath() in request attribute so can use it later for\n //looking up stuff - such as in navigationRenderer...\n String path = super.processPath(request, response);\n request.setAttribute(PROCESSED_PATH, path);\n return path;\n }",
"@Test\n public void invokePathHandlerOnExistingResource2() {\n ctx.param(ParamNames.PATH, \"foo/bar.txt\");\n pathHandler.handle(ctx);\n ByteArrayOutputStream baos = (ByteArrayOutputStream)resp.outputStream();\n String s = new String(baos.toByteArray());\n ceq(\"foo/bar.txt\", s);\n }",
"private RawHttpResponse<?> executeRequest(String method, String path) throws IOException {\r\n\t\tSocket socket = new Socket(\"localhost\", 8080);\r\n\t\treturn executeRequest(method, path, \"\", socket);\r\n\t}",
"@Override\n\tpublic Object handleHttp(String path, HttpServletRequest req, HttpServletResponse res, HttpSession session, JsonObject requestParts) {\n\t\tif (path.equals(\"callback\")) {\n\t\t\treturn handleCallback(requestParts);\n\t\t} else {\n\t\t\tthrow new TestFailureException(getId(), \"Got unexpected HTTP call to \" + path);\n\t\t}\n\n\t}",
"public abstract String getRequestPathInfo();",
"public Route routes() {\n return concat(\n pathPrefix(\"hello\", () ->\n concat(\n getHello(),\n path(PathMatchers.segment(), message -> concat(\n getAck(message)\n )\n )\n )\n ),\n pathPrefix(\"mission\", this::handleMission)\n );\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\ttry {\n\n\t\t\t// read the \"command\" parameter\n\t\t\tString theCommand = request.getParameter(\"command\");\n\n\t\t\t// if the command is missing, then default to listing Caterings\n\t\t\tif (theCommand == null) {\n\t\t\t\ttheCommand = \"LIST\";\n\t\t\t}\n\n\t\t\t// route to the appropriate method\n\t\t\tswitch (theCommand) {\n\n\t\t\tcase \"LIST\":\n\t\t\t\tlistCatering(request, response);\n\t\t\t\tbreak;\n\n\t\t\tcase \"ADD\":\n\t\t\t\tSystem.out.println(\"No Error\");\n\t\t\t\taddCaterings(request, response);\n\t\t\t\tbreak;\n\n\t\t\tcase \"LOAD\":\n\t\t\t\tloadCaterings(request, response);\n\t\t\t\tbreak;\n\n\t\t\tcase \"UPDATE\":\n\t\t\t\tupdateCaterings(request, response);\n\t\t\t\tbreak;\n\n\t\t\tcase \"DELETE\":\n\t\t\t\tdeleteCaterings(request, response);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tlistCatering(request, response);\n\n\t\t\t}\n\n\t\t} catch (Exception exc) {\n\t\t\tSystem.out.println(\"Error\");\n\t\t\tthrow new ServletException(exc);\n\t\t}\n\n\t}",
"public Handler getHandler(RouteRequest request) {\n List<Route> routes = methodRoutes.get(request.getMethod());\n if (routes != null) {\n for (Route r : routes) {\n RouteTemplate template = r.getRouteTemplate();\n Optional<HashMap<String, Parameter>> match = template.match(request.getPath());\n if (match.isPresent()) {\n request.setPathParameters(match.get());\n return r.getHandler();\n }\n }\n }\n\n return r -> new HandlerResponse(new ExceptionView(new RouteNotFoundException(r.getPath())))\n .setStatusCode(StatusCode.NOT_FOUND);\n }",
"@Test\n void incorrectGetPathTest() {\n URI uri = URI.create(endBody + \"/dummy\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.get(uri);\n\n // it should receive 404\n assertNotEquals(200, response.statusCode());\n assertEquals(404, response.statusCode());\n }",
"public boolean handle(ExchangeHelper exchangeHelper) throws IOException {\n if (method == null || method == exchangeHelper.getMethod()) {\n System.out.println(String.format(\"%s request received on path '%s', using handler: %s\", exchangeHelper.getMethod(), exchangeHelper.getUriPath(), handler.getClass().getSimpleName()));\n\n //Run pre filters\n for (RouteFilter filter : preFilters) {\n if (!filter.doFilter(exchangeHelper)) {\n //We don't continue, but the request was handled\n return true;\n }\n }\n\n //OK, we are a route for that method\n handler.handle(exchangeHelper);\n\n //Run post filters\n for (RouteFilter filter : postFilters) {\n if (!filter.doFilter(exchangeHelper)) {\n //We don't continue, but the request was handled\n return true;\n }\n }\n\n //We handled that request\n return true;\n }\n\n //We did NOT handle that request\n return false;\n }",
"@Override\n protected final void parseRequest(final HttpServletRequest request, HttpServletResponse response) {\n\n parsePath(request);\n\n LOGGER.warning(\"[REST]: \" + request.getMethod() + \"|\" + apiName + \"/\" + resourceName + \"|\" + request.getHeader(\"Current-Page\"));\n\n // Fixes BS-400. This is ugly.\n I18n.getInstance();\n\n api = APIs.get(apiName, resourceName);\n api.setCaller(this);\n\n super.parseRequest(request, response);\n\n }",
"public void handleCommand(\n String command, HttpServletRequest request, HttpServletResponse response) {\n JSONObject retValue = null;\n response.setContentType(\"application/json\");\n boolean isPost = \"POST\".equals(request.getMethod());\n try {\n if (command.equals(UPLOAD_TOKEN_PATH)) {\n \t \n \t // Generate an upload path\n \t BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();\n \t retValue = new JSONObject();\n \t // TODO: URL should be based on current env (e.g., mapreduce path may not be consistent)\n \t retValue.put(\"url\", blobstoreService.createUploadUrl(\"/mapreduce/command/upload\"));\n \t \n } else if (command.equals(LIST_CONFIGS_PATH) && !isPost) {\n \n MapReduceXml xml;\n try {\n xml = MapReduceXml.getMapReduceXmlFromFile();\n retValue = handleListConfigs(xml);\n } catch (FileNotFoundException e) {\n retValue = new JSONObject();\n retValue.put(\"status\", \"Couldn't find mapreduce.xml file\");\n }\n } else if (command.equals(LIST_JOBS_PATH) && !isPost) {\n String cursor = request.getParameter(\"cursor\");\n String countString = request.getParameter(\"count\");\n int count = DEFAULT_JOBS_PER_PAGE_COUNT;\n if (countString != null) {\n count = Integer.parseInt(countString);\n }\n \n retValue = handleListJobs(cursor, count);\n } else if (command.equals(CLEANUP_JOB_PATH) && isPost) {\n retValue = handleCleanupJob(request.getParameter(\"mapreduce_id\"));\n } else if (command.equals(ABORT_JOB_PATH) && isPost) {\n retValue = handleAbortJob(request.getParameter(\"mapreduce_id\"));\n } else if (command.equals(GET_JOB_DETAIL_PATH) && !isPost) {\n retValue = handleGetJobDetail(request.getParameter(\"mapreduce_id\"));\n } else if (command.equals(START_JOB_PATH) && isPost) {\n Map<String, String> templateParams = new TreeMap<String, String>();\n Map httpParams = request.getParameterMap();\n for (Object paramObject : httpParams.keySet()) {\n String param = (String) paramObject;\n if (param.startsWith(\"mapper_params.\")) {\n templateParams.put(param.substring(\"mapper_params.\".length()),\n ((String[]) httpParams.get(param))[0]);\n }\n }\n retValue = handleStartJob(templateParams, ((String []) httpParams.get(\"name\"))[0], request);\n } else {\n response.sendError(404);\n return;\n }\n } catch (Throwable t) {\n log.log(Level.SEVERE, \"Got exception while running command\", t); \n try {\n retValue = new JSONObject(); \n retValue.put(\"error_class\", t.getClass().getName());\n retValue.put(\"error_message\",\n \"Full stack trace is available in the server logs. Message: \"\n + t.getMessage());\n } catch (JSONException e) {\n throw new RuntimeException(\"Couldn't create error JSON object\", e);\n }\n }\n try {\n retValue.write(response.getWriter());\n response.getWriter().flush();\n } catch (JSONException e) {\n throw new RuntimeException(\"Couldn't write command response\", e);\n } catch (IOException e) {\n throw new RuntimeException(\"Couldn't write command response\", e);\n }\n }",
"public RouteResponse findRoute(RouteRequest routeRequest);",
"private void cmdHandler(JSONArray parameter, String cmd) {\n switch (cmd) {\n case \"login\":\n signIn(parameter);\n break;\n case \"time\":\n Date d = new GregorianCalendar().getTime();\n clientResponse(d.toString());\n break;\n case \"ls\":\n listFiles(parameter);\n break;\n case \"who\":\n clientResponse(MailboxServer.getUsersAsString());\n break;\n case \"msg\":\n sendMessage(parameter);\n break;\n case \"exit\":\n signOut();\n break;\n }\n }",
"@Override\n public void addDefaultRoutes() {\n super.addDefaultRoutes();\n addRoute( \"/user\", UserResponder.class );\n addRoute( \"/user/:id\", UserResponder.class );\n addRoute( \"/user/help\", GeneralResponder.class );\n addRoute( \"/general/:param1/:param2\", GeneralResponder.class );\n addRoute( \"/photos/:customer_id/:photo_id\", null );\n addRoute( \"/test\", String.class );\n addRoute( \"/interface\", Responder.class ); // this will cause an error\n addRoute( \"/toBeDeleted\", String.class );\n removeRoute( \"/toBeDeleted\" );\n addRoute( \"/stream\", StreamUrl.class );\n addRoute( \"/browse/(.)+\", StaticPageTestResponder.class, new File( \"src/test/resources\" ).getAbsoluteFile() );\n }",
"@Override\n\tpublic void run(){\n\t\tSystem.out.println(\"run\");\n\t\ttry {\n\t\t\tString firstLine = inFromClient.readLine();\n\t\t\tSystem.out.println(\"Received: \" + firstLine);\n\n\t\t\tboolean badRequest = false;\n\t\t\tString[] array = firstLine.split(\" \");\n\t\t\tString HTTPcommand = array[0];\n\t\t\tString URI = array[1];\n\t\t\tString HTTPversion = array[2];\n\t\t\tString path = \"\";\n\t\t\t\n\t\t\tint indexSlash = URI.lastIndexOf(\"/\");\n\t\t\tSystem.out.println(indexSlash);\n\t\t\tpath = URI.substring(indexSlash+1, URI.length());\n\n\t\t\t\n\t\t\tString secondLine = inFromClient.readLine();\n\t\t\tif (!HTTPversion.equals(\"HTTP/1.1\")) {\n\t\t\t\tbadRequest = true;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif (badRequest) {\n\t\t\t\tout.println(\"HTTP/1.1 400 Bad Request\");\n\t\t\t\tout.println('\\r' + '\\n' + '\\r' + '\\n');\n\t\t\t\tout.flush();\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\tswitch(HTTPcommand){\n\t\t\t\tcase \"HEAD\": Head.head(clientSocket, inFromClient, out, path);\n\t\t\t\tbreak;\n\n\t\t\t\tcase \"GET\": Get.get(clientSocket, inFromClient, out, path);\n\t\t\t\tbreak;\n\n\t\t\t\tcase \"PUT\": {\n\t\t\t\t\tout.println(\"HTTP/1.1 200 OK\");\n\t\t\t\t\tout.println('\\r' + '\\n' + '\\r' + '\\n');\n\t\t\t\t\tout.flush();\n\t\t\t\t\tString Line3 = inFromClient.readLine();\n\t\t\t\t\tString Line4 = inFromClient.readLine();\n\t\t\t\t\tString Line5 = inFromClient.readLine();\n\t\t\t\t\tPut.put(inFromClient, path);\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t\tcase \"POST\": {\n\t\t\t\t\tout.println(\"HTTP/1.1 200 OK\");\n\t\t\t\t\tout.println('\\r' + '\\n' + '\\r' + '\\n');\n\t\t\t\t\tout.flush();\n\t\t\t\t\tString Line3 = inFromClient.readLine();\n\t\t\t\t\tString Line4 = inFromClient.readLine();\n\t\t\t\t\tString Line5 = inFromClient.readLine();\n\t\t\t\t\tPost.post(inFromClient, path);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tdefault: {\n\t\t\t\t\tout.println(\"HTTP/1.1 501 Not Implemented\");\n\t\t\t\t\tout.println('\\r' + '\\n' + '\\r' + '\\n');\n\t\t\t\t\tout.flush();\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\t\t//run();\n\n\t\t//inFromClient.close();\n\t\t//serverSocket.close();\n\t}",
"protected boolean isApplicable(SPRequest req) {\n\n Log.debug(\"isApplicable ? \" + req.getPath() + \" vs \" + getRoute());\n\n if (!req.getMethod().equals(getHttpMethod()))\n return false;\n\n String[] uri = req.getSplitUri();\n String[] tok = splitPath;\n if (uri.length != tok.length && splatIndex == -1)\n return false;\n\n if (uri.length <= splatIndex)\n return false;\n\n for (int i = 0; i < tok.length; i++) {\n if (tok[i].charAt(0) != ':' && tok[i].charAt(0) != '*' && !tok[i].equals(uri[i]))\n return false;\n }\n\n return true;\n }",
"private void readHttpPath(String line) {\n\t\tString[] parts = line.split(\" \");\n\t\tif (parts.length != 3) {\n\t\t\tchannel.close();\n\t\t} else {\n\t\t\trequest = new Request(parts[1].trim());\n\t\t}\n\t}",
"public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}",
"public void configureRoutes() {\n Service http = Service.ignite();\n\n http.port( 6001 );\n\n http.after( ( (request, response) -> response.type(\"application/json\" ) ) );\n\n http.post( \"/accounts/authenticate\", this.authRoutes.authenticate );\n http.post( \"/restaurants/authenticate\", this.authRoutes.authenticateRestaurant );\n\n http.post( \"*\", (req, res) -> {\n res.status( HttpStatus.NOT_FOUND_404 );\n\n return \"{}\";\n } );\n }",
"private void processSingleCmd(final String[] cmdArgs) {\n\n switch (cmdArgs[0].toUpperCase()) {\n\n case \"PLACE\":\n logger.info(\"PLACE - Request received\");\n GridLocation location = new GridLocation( Integer.parseInt(cmdArgs[1]),\n Integer.parseInt(cmdArgs[2]),\n GridLocation.FACING.valueOf(cmdArgs[3]));\n placeHolder = Optional.of( new Robot(location) );\n break;\n\n case \"MOVE\":\n logger.info(\"MOVE - Request received\");\n if (placeHolder.isPresent()) {\n placeHolder.get().move();\n }\n break;\n\n case \"LEFT\":\n logger.info(\"LEFT - Request received\");\n if (placeHolder.isPresent()) {\n placeHolder.get().left();\n }\n break;\n\n case \"RIGHT\":\n logger.info(\"RIGHT - Request received\");\n if (placeHolder.isPresent()) {\n placeHolder.get().right();\n }\n break;\n\n case \"REPORT\":\n logger.info(\"REPORT - Request received\");\n if (placeHolder.isPresent()) {\n placeHolder.get().report();\n }\n break;\n\n default:\n logger.info(\"NO Intelligible - Request received\");\n // Unable to match any command - ignore\n break;\n }\n }",
"public void processRequest() throws ServerException {\r\n\t\tint statusCode = 0;\r\n\r\n\t\tSecureDirectory secureDirectory = getSecureDirectory( request.getURI() );\r\n\t\tswitch ( checkAuthentication( secureDirectory ) ) {\r\n\t\tcase NOT_SECURE_DIR:\r\n\t\t\tstatusCode = processNormalRequest( true );\r\n\t\t\tbreak;\r\n\t\tcase NEED_AUTHENTICATE:\r\n\t\t\tstatusCode = sendAuthenticateMessage( secureDirectory );\r\n\t\t\tbreak;\r\n\t\tcase AUTHENTICATED:\r\n\t\t\tstatusCode = processNormalRequest( false );\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tthrow new ServerException( ResponseTable.INTERNAL_SERVER_ERROR );\r\n\t\t}\r\n\r\n\t\tnew AccessLog().log( request, statusCode );\r\n\t}",
"protected boolean processCommand(HttpServletRequest request, HttpServletResponse response) \r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\tString uri = getRequestURI(request);\r\n\t\t\r\n\t\tif (uri.endsWith(\"/redirect-filter\")) {\r\n\t\t\tString cmd = request.getParameter(\"c\");\r\n\t\t\tif (cmd != null && cmd.equals(\"reload\") && reloadConfig == true) {\r\n\t\t\t\tloadConfiguration();\r\n\t\t\t\tresponse.setContentType(\"text/plain\");\r\n\t\t\t\tresponse.getWriter().println(filterName + \": Loaded \" + \r\n\t\t\t\t\t\tredirectRules.size() + \" rule(s).\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"protected void doProcess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\trequest.setCharacterEncoding(\"utf-8\");\r\n\t\tString requestURI = request.getRequestURI();\r\n\t\tString contextPath = request.getContextPath();\r\n\t\tString command = requestURI.substring(contextPath.length());\r\n\t\tAction action = null;\r\n\t\tActionForward forward = null;\r\n\t\t\r\n\t\tif (command.equals(\"/managerLogin.ma\")) {\r\n\t\t\taction = new ManagerLogInAction();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tforward = action.execute(request, response);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (command.equals(\"/managerLogOut.ma\")) {\r\n\t\t\taction = new ManagerLogOutAction();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tforward = action.execute(request, response);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (command.equals(\"/memberList.ma\")) {\r\n\t\t\taction = new MemberListAction();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tforward = action.execute(request, response);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (command.equals(\"/managerDelete.ma\")) {\r\n\t\t\taction = new ManagerDeleteFromMemberAction();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tforward = action.execute(request, response);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\tif (forward != null) {\r\n\t\t\tif (forward.isRedirect()) {\r\n\t\t\t\tresponse.sendRedirect(forward.getPath());\r\n\t\t\t} else {\r\n\t\t\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(forward.getPath());\r\n\t\t\t\tdispatcher.forward(request, response);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@RequestMapping(value = \"/command\", method = RequestMethod.POST)\n public @ResponseBody void command(@RequestBody String cmd, HttpServletRequest request) {\n commandHandler.handle(cmd);\n }",
"@GetMapping(\"\")\r\n @ResponseStatus(code = HttpStatus.OK)\r\n public void main() {\r\n LOGGER.info(\"GET /\");\r\n }",
"private void initRoutes() {\n if (MODUM_TOKENAPP_ENABLE_CORS) {\n options(\"/*\", (request, response) -> {\n String accessControlRequestHeaders = request.headers(\"Access-Control-Request-Headers\");\n if (accessControlRequestHeaders != null) {\n response.header(\"Access-Control-Allow-Headers\", accessControlRequestHeaders);\n }\n\n String accessControlRequestMethod = request.headers(\"Access-Control-Request-Method\");\n if (accessControlRequestMethod != null) {\n response.header(\"Access-Control-Allow-Methods\", accessControlRequestMethod);\n }\n\n return \"OK\";\n });\n }\n\n get(\"/\", (req, res) -> {\n if (MODUM_TOKENAPP_ENABLE_CORS) {\n res.header(\"Access-Control-Allow-Origin\", \"*\");\n res.header(\"Access-Control-Request-Method\", \"*\");\n res.header(\"Access-Control-Allow-Headers\", \"*\");\n }\n return getTotalRaisedUSD().toString();\n });\n }",
"public interface BeaconQuestService {\n\n @GET(\"/beaconQuest/index/takeChallenge/{accountId}/{beaconId}\")\n Call<ResponseBody> takeChallenge (@Path(\"accountId\") String accountId,\n @Path(\"beaconId\") String beaconId\n );\n\n @GET(\"beaconQuest/index/challengeAnswer/{accountId}/{beaconId}/{answer}\")\n Call<ResponseBody> challengeAnswer(@Path(\"accountId\") String userid,\n @Path(\"beaconId\") String beaconid,\n @Path(\"answer\") String answer\n );\n\n @GET(\"beaconQuest/index//challengeCancel/{accountId}/{beaconId}\")\n Call<ResponseBody> challengeAnswer(@Path(\"accountId\") String userid,\n @Path(\"beaconId\") String beaconid\n );\n\n @GET(\"beaconQuest/index//register/{username}/{password}\")\n Call<ResponseBody> registerAccount(@Path(\"username\") String username,\n @Path(\"password\") String password\n );\n\n @GET(\"beaconQuest/index//login/{username}/{password}/\")\n Call<ResponseBody> login(@Path(\"username\") String username,\n @Path(\"password\") String password\n );\n}",
"private void doDispatch(RoutingContext context, String path, HttpClient client, Future<Object> cbFuture) {\n HttpClientRequest toReq = client\n .request(context.request().method(), path, response -> {\n response.bodyHandler(body -> {\n if (response.statusCode() >= 500) { // api endpoint server error, circuit breaker should fail\n cbFuture.fail(response.statusCode() + \": \" + body.toString());\n } else {\n HttpServerResponse toRsp = context.response()\n .setStatusCode(response.statusCode());\n response.headers().forEach(header -> {\n toRsp.putHeader(header.getKey(), header.getValue());\n });\n // send response\n toRsp.end(body);\n cbFuture.complete();\n }\n ServiceDiscovery.releaseServiceObject(discovery, client);\n });\n });\n // set headers\n context.request().headers().forEach(header -> {\n toReq.putHeader(header.getKey(), header.getValue());\n });\n if (context.user() != null) {\n toReq.putHeader(\"user-principal\", context.user().principal().encode());\n }\n // send request\n if (context.getBody() == null) {\n toReq.end();\n } else {\n toReq.end(context.getBody());\n }\n }",
"@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}",
"public GetRequest(String pathInfo) throws ServletException {\r\n\r\n\t\tMatcher matcher;\r\n\r\n\t\tif (pathInfo != null) {\r\n\r\n\t\t\tmatcher = regExQueuePattern.matcher(pathInfo);\r\n\t\t\tif (matcher.find()) {\r\n\t\t\t\trequestID = Integer.parseInt(matcher.group(1));\r\n\t\t\t\tisQueuePolling = true;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tmatcher = regExResponsePattern.matcher(pathInfo);\r\n\t\t\tif (matcher.find()) {\r\n\t\t\t\trequestID = Integer.parseInt(matcher.group(1));\r\n\t\t\t\tisQueuePolling = false;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(PROXY + \"Invalid URI.\");\r\n\t\tthrow new ServletException(PROXY + \"Invalid URI.\");\r\n\t}",
"@Override\n\t\t\tpublic Object handle(Request req, Response res) {\n\t\t\t\tfinal String op = req.params(\":op\");\n\t\t\t\tfinal String path = req.queryParams(\"path\");\n\t\t\t\t//--- list will list down all available results for a course ---//\n\t\t\t\tif (op.equals(\"list\")) return Results.list(path);\n\t\t\t\t//--- get will display one single result ---//\n\t\t\t\telse if (op.equals(\"get\")) return Results.get(path);\n\t\t\t\telse return null;\n\t\t\t}",
"@Override\n\t\t\tpublic Object handle(Request req, Response res) {\n\t\t\t\tfinal String op = req.params(\":op\");\n\t\t\t\tfinal String path = req.queryParams(\"path\");\n\t\t\t\t//--- list will list down all available results for a course ---//\n\t\t\t\tif (op.equals(\"list\")) return Results.list(path);\n\t\t\t\t//--- get will display one single result ---//\n\t\t\t\telse if (op.equals(\"get\")) return Results.get(path);\n\t\t\t\telse return null;\n\t\t\t}",
"private void handleHttpRequest(ChannelHandlerContext ctx, FullHttpRequest req) throws Exception {\n if (!req.decoderResult().isSuccess()) {\n sendHttpResponse(ctx, req, new DefaultFullHttpResponse(HTTP_1_1, BAD_REQUEST));\n return;\n }\n\n // Allow only GET methods.\n if (req.method() != GET) {\n sendHttpResponse(ctx, req, new DefaultFullHttpResponse(HTTP_1_1, FORBIDDEN));\n return;\n }\n\n // route handler\n if (\"/ws\".equals(req.uri())) {\n WebSocketServerHandshakerFactory wsFactory = new WebSocketServerHandshakerFactory(\n \"ws://\" + req.headers().get(HOST) + \"/ws\", null, false);\n handshaker = wsFactory.newHandshaker(req);\n if (handshaker == null) {\n WebSocketServerHandshakerFactory.sendUnsupportedVersionResponse(ctx.channel());\n } else {\n handshaker.handshake(ctx.channel(), req);\n addCtx(ctx, req.headers());\n }\n } else {\n handleFileRequest(ctx, req);\n }\n }",
"@Override\n\tpublic void handleCommand(HttpServletRequest req, HttpServletResponse resp,\n\t\t\tIUser user) throws IOException {\n\t\tString apkPath = req.getParameter(\"apkPath\");\n\t\tSystem.out.println(apkPath);\n\t\tFile apkFile = new File(apkPath);\n\t\tFileInputStream is = new FileInputStream(apkFile);\n\t\tint bytesIn = 0;\n\t\tbyte[] readBytes = new byte[2156];\n\t\tresp.reset();\n\t\tresp.setContentType(\"application/x-download\");\n\t\tresp.setHeader(\"Content-Disposition\",\n\t\t\t\t\"attachment; filename=\" + apkFile.getName());\n\t\tOutputStream os = resp.getOutputStream();\n\t\ttry {\n\t\t\twhile ((bytesIn = is.read(readBytes)) != -1) {\n\t\t\t\tos.write(readBytes, 0, bytesIn);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tis.close();\n\t\t\t\tos.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n RequestHandler rh = (RequestHandler) controladores.get(request.getServletPath());\n \n \n // Comprobamos si se obtuvo correctamente el manejador\n if (rh == null) {\n // Mostramos el error en caso de no cargarse correctamente\n response.sendError(HttpServletResponse.SC_NOT_FOUND);\n } else {\n \n // Obtenemos la URL resultante de ejecutar el manejador\n String viewUrl = rh.handleRequest(request, response);\n if (viewUrl == null) {\n // Nada\n } else {\n // El RequestHandler correspondiente nos dira que vista utilizar\n request.getRequestDispatcher(viewUrl).forward(request, response);\n }\n }\n }",
"@Test\r\n public void testGetRoute() {\r\n // Test 1 (Short Path)\r\n Path route = backend.getRoute(\"Observatory & Babcock\", \"Liden & Babcock\");\r\n // Verify distance is correct\r\n if(route.getDistance() != 460)\r\n fail(\"Failed to get shortest path\");\r\n // Verify path starts at 'Observatory & Babcock' and ends at 'Liden & Babcock'\r\n if(!route.getPath().get(0).getName().equalsIgnoreCase(\"Observatory & Babcock\") ||\r\n !route.getPath().get(1).getName().equalsIgnoreCase(\"Liden & Babcock\"))\r\n fail(\"Failed to get shortest path\");\r\n\r\n //Test 2 (Short Path w/ POIs)\r\n route = backend.getRoute(\"Mills & Johnson\", \"Brooks & Johnson\");\r\n // Verify distance is correct\r\n if(route.getDistance() != 441)\r\n fail(\"Failed to get shortest path\");\r\n // Verify point of interest\r\n if(!route.getPOI().get(0).equalsIgnoreCase(\"Grand Central\"))\r\n fail(\"Failed to find point of interest\");\r\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String action = request.getServletPath();\n\n switch (action) {\n case \"/new\":\n addForm(request, response);\n break;\n case \"/edit\":\n updateForm(request, response);\n break;\n case \"/insert\":\n insert(request, response);\n break;\n case \"/delete\":\n delete(request, response);\n break;\n case \"/update\":\n update(request, response);\n break;\n case \"/upload\":\n upload(request, response);\n break;\n default:\n listAll(request, response);\n break;\n }\n\n }",
"private RequestNodePath() {\n }",
"public interface Route {\n boolean match(AreaPath path);\n\n Map<String, Object> getParameterValues();\n\n /**\n * target action path\n */\n ActionPath getActionPath();\n\n /**\n * target action processor\n */\n String getProcessor();\n\n /**\n * target action task\n */\n String getTask();\n}",
"@Override\n public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException {\n if (response.getStatus() == HttpServletResponse.SC_NOT_FOUND) {\n forward(redirectRoute, baseRequest, response);\n } else {\n super.handle(target, baseRequest, request, response);\n }\n }",
"@Override\r\n protected void doGet(HttpServletRequest request,\r\n HttpServletResponse response) throws ServletException, IOException {\r\n\r\n String path = request.getPathInfo();\r\n Map<String, Object> data = getDefaultData();\r\n Writer writer = response.getWriter();\r\n\r\n if (path == null) {\r\n throw new IOException(\"The associated path information is null\");\r\n }\r\n\r\n if (path.equals(\"/\")) {\r\n processTemplate(MAIN_SITE, data, writer);\r\n } else if (path.equals(\"/login\")) {\r\n processTemplate(LOGIN_SITE, data, writer);\r\n } else if (path.startsWith(\"/login/error\")) {\r\n data.put(\"hasLoginFailed\", true);\r\n AppServlet.processTemplate(LOGIN_SITE, data, response.getWriter());\r\n } else if (path.equals(\"/logout\")) {\r\n request.getSession().invalidate();\r\n response.sendRedirect(\"/login\");\r\n } else if (path.equals(\"/signup\")) {\r\n processTemplate(SIGNUP_SITE, data, response.getWriter());\r\n } else {\r\n processTemplate(NOT_FOUND_SITE, data, writer);\r\n }\r\n }",
"public void handleRequest(String request) throws IOException {\n\n String method = getMethod(request);\n\n this.uri = ToolBox.getUri(request);\n this.url = ToolBox.getUrl(uri);\n this.extension = ToolBox.getExtension(url);\n\n System.out.println(\"method :\" + method);\n switch (method) {\n case \"GET\":\n doGet();\n break;\n case \"POST\":\n doPost();\n break;\n case \"HEAD\":\n doHead();\n break;\n case \"PUT\":\n doPut();\n break;\n case \"DELETE\":\n doDelete();\n break;\n default:\n statusCode = BAD_REQUEST;\n this.sendHeader(statusCode, \"text/html\", null);\n break;\n }\n this.out.flush();\n this.out.close();\n }",
"@RequestMapping(\"/slash-command\")\r\n public ResponseEntity slashCommand(@RequestBody MultiValueMap<String, String> paramMap) {\r\n\r\n String channelId = paramMap.getFirst(\"channel_id\");\r\n String channelName = paramMap.getFirst(\"channel_name\");\r\n String text = paramMap.getFirst(\"text\");\r\n String userId = paramMap.getFirst(\"user_id\");\r\n String userName = paramMap.getFirst(\"user_name\");\r\n\r\n // check for game end command\r\n if(text.equalsIgnoreCase(\"end\")) {\r\n if(!gameService.gameExists(channelId)) {\r\n return ResponseEntity.ok(\"No game in progress. Feel free to start one!\");\r\n }\r\n else {\r\n gameService.endGame(channelId);\r\n\r\n // get user display name\r\n User user = getUserInfo(userId);\r\n String player = userName;\r\n if(user != null) {\r\n player = user.profile.display_name_normalized;\r\n if (player.length() == 0) {\r\n player = user.profile.real_name_normalized;\r\n }\r\n }\r\n\r\n return ResponseEntity.ok(String.format(\"Game forcefully ended by *%s*.\", player));\r\n }\r\n }\r\n // check for leaderboard request\r\n else if(text.equalsIgnoreCase(\"scores\")) {\r\n String msgText = generateLeaderboardText(channelId, channelName);\r\n\r\n // build headers\r\n HttpHeaders headers = new HttpHeaders();\r\n headers.setContentType(MediaType.APPLICATION_JSON);\r\n headers.set(\"Authorization\", \"Bearer \" + accessToken);\r\n\r\n // build message\r\n Message msg = new Message.MessageBuilder()\r\n .text(msgText)\r\n .channel(channelId)\r\n .build();\r\n\r\n // send response\r\n HttpEntity<Message> request = new HttpEntity<>(msg, headers);\r\n RestTemplate rt = new RestTemplate();\r\n rt.postForObject(\"https://slack.com/api/chat.postMessage\", request, String.class);\r\n\r\n return ResponseEntity.ok().build();\r\n }\r\n // check if game does not exist\r\n else if(!gameService.gameExists(channelId)) {\r\n try {\r\n int width = 5;\r\n int height = 5;\r\n int mines = 7;\r\n\r\n if(text.length() > 0) {\r\n // get field parameters\r\n String parameters[] = text.split(\",\");\r\n\r\n if(parameters.length != 3) {\r\n return ResponseEntity.ok(\"Invalid parameters. Should be: `width,height,#mines`\");\r\n }\r\n\r\n width = Integer.parseInt(parameters[0].trim());\r\n height = Integer.parseInt(parameters[1].trim());\r\n mines = Integer.parseInt(parameters[2].trim());\r\n }\r\n\r\n // limit parameters to comply with slack api and minimum game requirements\r\n width = Math.min(width, 5);\r\n width = Math.max(width, 3);\r\n height = Math.min(height, 10);\r\n height = Math.max(height, 3);\r\n mines = Math.min(mines, 49);\r\n mines = Math.max(mines, 5);\r\n\r\n // start game\r\n Game game = gameService.startGame(channelId, width, height, mines);\r\n if (game == null) {\r\n return ResponseEntity.ok(\"Unknown error while trying to start a game! :(\");\r\n }\r\n\r\n // game started! generate board for user\r\n List<Attachment> atcList = game.getBoardAttachments();\r\n\r\n // build headers\r\n HttpHeaders headers = new HttpHeaders();\r\n headers.setContentType(MediaType.APPLICATION_JSON);\r\n headers.set(\"Authorization\", \"Bearer \" + accessToken);\r\n\r\n // build message\r\n Message msg = new Message.MessageBuilder()\r\n .text(\"Started new game! Click a tile to reveal. When only bombs are left, you win!\")\r\n .channel(channelId)\r\n .attachments(atcList)\r\n .build();\r\n\r\n // send response\r\n HttpEntity<Message> request = new HttpEntity<>(msg, headers);\r\n RestTemplate rt = new RestTemplate();\r\n rt.postForObject(\"https://slack.com/api/chat.postMessage\", request, String.class);\r\n\r\n return ResponseEntity.ok().build();\r\n }\r\n catch(Exception e) {\r\n return ResponseEntity.ok(\"Unknown error while trying to start a game! :(\");\r\n }\r\n }\r\n else {\r\n return ResponseEntity.ok(\"Game already in progress!\");\r\n }\r\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n response.setContentType(\"text/plain\");\r\n PrintWriter pw = response.getWriter();\r\n pw.println(\"Welcome to the Airline Server\");\r\n pw.flush();\r\n\r\n String name = getParameter(\"name\", request);\r\n String src = getParameter(\"src\", request);\r\n String dest = getParameter(\"dest\", request);\r\n\r\n if (name == null && src == null && dest == null) {\r\n writeAllMappings(response);\r\n } else if (name != null && src != null && dest != null) {\r\n writeAllMatchedMappings(response, name, src, dest);\r\n } else if (name != null && src == null && dest == null) {\r\n writeAllMatchedAirlineMappings(response, name);\r\n } else {\r\n pw.println(\"Error, this isn't valid URL\");\r\n pw.flush();\r\n }\r\n\r\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }",
"public abstract String getRequestServletPath();",
"@Override\r\n public boolean preHandle(HttpServletRequest request,\r\n HttpServletResponse response, Object handler) throws Exception {\n \r\n String servletContext = \"http://\"+request.getServerName()+\":\"+request.getLocalPort()+request.getContextPath();\r\n \r\n \r\n// logger.info(servletContext);\r\n// if(!MRNSystemConstant.SYSTEM_URI_LOGIN.equals(request.getServletPath()) && !MRNSystemConstant.SYSTEM_URI_WELCOME.equals(request.getServletPath())\r\n// \t\t&& !\"/json/raiseInvalidSessionError.do\".equals(request.getServletPath()) && !\"/view/raiseInvalidSessionError.do\".equals(request.getServletPath())\r\n// \t\t&& !\"/logout.do\".equals(request.getServletPath()) && !\"/requestedURLNotSupported.do\".equals(request.getServletPath()) && !\"/json/raiseSystemInternalError.do\".equals(request.getServletPath())\r\n// \t\t&& !request.getRequestURL().toString().contains(MRNSystemConstant.SYSTEM_URI_ALLOTMENT_REQUEST) && !\"/json/raiseNoAuthorityError.do\".equals(request.getServletPath()))\r\n// {\r\n// \t\r\n// \tUserObject userObj = (UserObject) request.getSession().getAttribute(\"USER\");\r\n// \t\r\n// \tif(request.getSession().isNew() || userObj == null)\r\n// \t{\r\n// \t\t\r\n// \t\tif(request.getServletPath().indexOf(MRNSystemConstant.SYSTEM_URI_CONTENT_JSON) != -1)\r\n// \t\t{\r\n// \t\t\tresponse.sendRedirect(request.getContextPath()+\"/json/raiseInvalidSessionError.do\");\r\n// \t\t}\r\n// \t\telse if(request.getServletPath().indexOf(MRNSystemConstant.SYSTEM_URI_CONTENT_VIEW) != -1)\r\n// \t\t{\r\n// \t\t\tresponse.sendRedirect(request.getContextPath()+\"/view/raiseInvalidSessionError.do\");\r\n// \t\t}\r\n// \telse\r\n// \t{\r\n// \t\tif(!\"/main.do\".equals(request.getServletPath()))\r\n// \t\t{\r\n// \t\t\t//response.sendRedirect(request.getContextPath()+\"/json/raiseInvalidSessionError.do\");\r\n// \t\tresponse.sendRedirect(request.getContextPath()+\"/requestedURLNotSupported.do\");\r\n// \t\tlogger.error(\"Invalid url\");\r\n// \t\t//request.getSession().invalidate();\r\n// \t\t}\r\n// \t\telse\r\n// \t\t{\r\n// \t\t\t//if main is called then check if session is expired in main and then display error message with login link \r\n// \t\t\t//else dont show the link to login.\r\n// \t\t\tresponse.sendRedirect(request.getContextPath()+\"/view/raiseInvalidSessionError.do\");\r\n// \t\t}\r\n// \t\t\r\n// \t}\r\n// \t\t\r\n// \t\treturn false;\r\n// \t}\r\n \t\r\n \t//System.out.println(\"MRNContext : \"+mrnContext);\r\n \t//mrnContext.setScreenCd(\"MBPPPP\");\r\n// \tString screenCd = request.getParameter(MRNSystemConstant.SYSTEM_FORM_FIELD_SCREEN_CD);\r\n// \t\r\n// \tif(StringUtil.isEmpty(screenCd))\r\n// \t{ \t\t\r\n// \t\tresponse.sendRedirect(request.getContextPath()+\"/view/requestedScreenCdMissing.do\");\r\n// \t\t\r\n// \t} \r\n \t\r\n \tmrnContext.setScreenCd(\"Test\");\r\n \t\r\n \t\r\n// }\r\n \r\n// String screenCd = request.getParameter(MRNSystemConstant.SYSTEM_FORM_FIELD_SCREEN_CD);\r\n// mrnContext.setScreenCd(screenCd);\r\n //request.setAttribute(\"startTime\", startTime);\r\n //if returned false, we need to make sure 'response' is sent\r\n return true;\r\n }",
"private void handleCommand(Message msg, String commands) {\n String[] tokens = commands.split(\" \");\n String command = tokens[0];\n\n switch(command) {\n case \"query\":\n queryProblems(msg, tokens);\n break;\n case \"help\":\n printHelpMessage(msg, tokens);\n break;\n default:\n // Implement more commands later\n break;\n }\n }",
"public void handleRequest(Request req) {\n\n }",
"@Loggable\n protected ModelAndView handle(final HttpServletRequest request, final HttpServletResponse response,\n final Object commandObj, final BindException errors)\n throws InvalidTestbedIdException, TestbedNotFoundException {\n final long start = System.currentTimeMillis();\n\n long start1 = System.currentTimeMillis();\n\n // set command object\n final TestbedCommand command = (TestbedCommand) commandObj;\n\n // a specific testbed is requested by testbed Id\n int testbedId;\n try {\n testbedId = Integer.parseInt(command.getTestbedId());\n } catch (NumberFormatException nfe) {\n throw new InvalidTestbedIdException(\"Testbed IDs have number format.\", nfe);\n }\n\n LOGGER.info(\"--------- Get Testbed id: \" + (System.currentTimeMillis() - start1));\n start1 = System.currentTimeMillis();\n\n // look up testbed\n final Testbed testbed = testbedManager.getByID(testbedId);\n if (testbed == null) {\n // if no testbed is found throw exception\n throw new TestbedNotFoundException(\"Cannot find testbed [\" + testbedId + \"].\");\n }\n LOGGER.info(\"got testbed \" + testbed);\n\n LOGGER.info(\"--------- Get Testbed: \" + (System.currentTimeMillis() - start1));\n\n\n if (nodeCapabilityManager == null) {\n LOGGER.error(\"nodeCapabilityManager==null\");\n }\n\n start1 = System.currentTimeMillis();\n // get a list of node last readings from testbed\n final List<NodeCapability> nodeCapabilities = nodeCapabilityManager.list(testbed.getSetup());\n LOGGER.info(\"--------- list nodeCapabilities: \" + (System.currentTimeMillis() - start1));\n\n start1 = System.currentTimeMillis();\n String nodeCaps;\n try {\n nodeCaps = HtmlFormatter.getInstance().formatLastNodeReadings(nodeCapabilities);\n } catch (NotImplementedException e) {\n nodeCaps = \"\";\n }\n LOGGER.info(\"--------- format last node readings: \" + (System.currentTimeMillis() - start1));\n\n start1 = System.currentTimeMillis();\n // get a list of link statistics from testbed\n final List<LinkCapability> linkCapabilities = linkCapabilityManager.list(testbed.getSetup());\n LOGGER.info(\"--------- List link capabilities: \" + (System.currentTimeMillis() - start1));\n\n\n // Prepare data to pass to jsp\n final Map<String, Object> refData = new HashMap<String, Object>();\n refData.put(\"testbed\", testbed);\n refData.put(\"lastNodeReadings\", nodeCaps);\n\n\n try {\n start1 = System.currentTimeMillis();\n refData.put(\"lastLinkReadings\", HtmlFormatter.getInstance().formatLastLinkReadings(linkCapabilities));\n LOGGER.info(\"--------- format link Capabilites: \" + (System.currentTimeMillis() - start1));\n } catch (NotImplementedException e) {\n LOGGER.error(e);\n }\n\n LOGGER.info(\"--------- Total time: \" + (System.currentTimeMillis() - start));\n refData.put(\"time\", String.valueOf((System.currentTimeMillis() - start)));\n LOGGER.info(\"prepared map\");\n\n return new ModelAndView(\"testbed/status.html\", refData);\n\n }",
"private Route append(Map<QualifiedName, PathParamDescriptor> pathParamDescriptors, String path) throws MalformedRouteException\n {\n if (path.length() == 0 || path.charAt(0) != '/')\n {\n throw new MalformedRouteException();\n }\n\n //\n int pos = path.length();\n int level = 0;\n List<Integer> start = new ArrayList<Integer>();\n List<Integer> end = new ArrayList<Integer>();\n for (int i = 1;i < path.length();i++)\n {\n char c = path.charAt(i);\n if (c == '{')\n {\n if (level++ == 0)\n {\n start.add(i);\n }\n }\n else if (c == '}')\n {\n if (--level == 0)\n {\n end.add(i);\n }\n }\n else if (c == '/')\n {\n if (level == 0)\n {\n pos = i;\n break;\n }\n }\n }\n\n //\n Route next;\n if (start.isEmpty())\n {\n String segment = path.substring(1, pos);\n SegmentRoute route = new SegmentRoute(router, segment);\n add(route);\n next = route;\n }\n else\n {\n if (start.size() == end.size())\n {\n PatternBuilder builder = new PatternBuilder();\n builder.expr(\"^\").expr('/');\n List<String> chunks = new ArrayList<String>();\n List<PathParam> parameterPatterns = new ArrayList<PathParam>();\n\n //\n int previous = 1;\n for (int i = 0;i < start.size();i++)\n {\n builder.litteral(path, previous, start.get(i));\n chunks.add(path.substring(previous, start.get(i)));\n String parameterName = path.substring(start.get(i) + 1, end.get(i));\n\n //\n QualifiedName parameterQName = QualifiedName.parse(parameterName);\n\n // Now get path param metadata\n PathParamDescriptor parameterDescriptor = pathParamDescriptors.get(parameterQName);\n\n //\n PathParam param;\n if (parameterDescriptor != null)\n {\n param = PathParam.create(parameterDescriptor, router);\n }\n else\n {\n param = PathParam.create(parameterQName, router);\n }\n\n // Append routing regex to the route regex surrounded by a non capturing regex\n // to isolate routingRegex like a|b or a(.)b\n builder.expr(\"(?:\").expr(param.routingRegex).expr(\")\");\n\n // Add the path param with the rendering regex\n parameterPatterns.add(param);\n previous = end.get(i) + 1;\n }\n\n //\n builder.litteral(path, previous, pos);\n\n // We want to satisfy one of the following conditions\n // - the next char after the matched expression is '/'\n // - the expression matched until the end\n // - the match expression is the '/' expression\n builder.expr(\"(?:(?<=^/)|(?=/)|$)\");\n\n //\n chunks.add(path.substring(previous, pos));\n PatternRoute route = new PatternRoute(router, router.compile(builder.build()), parameterPatterns, chunks);\n\n // Wire\n add(route);\n\n //\n next = route;\n }\n else\n {\n throw new UnsupportedOperationException(\"Report error\");\n }\n }\n\n //\n if (pos < path.length())\n {\n return next.append(pathParamDescriptors, path.substring(pos));\n }\n else\n {\n return next;\n }\n }",
"public void handleIncoming() {\n\t\t// parse the packet payload\n\t\tPair<Packet,Integer> pp = fwdr.receivePkt();\n\t\tPacket p = pp.left; int lnk = pp.right;\n\n\t\tString[] lines = p.payload.split(\"\\n\");\n\t\tif (!lines[0].equals(\"RPv0\")) return;\n\n\t\tString[] chunks = lines[1].split(\":\");\n\t\tif (!chunks[0].equals(\"type\")) return;\n\t\tString type = chunks[1].trim();\n\t\t\n\t\t// if it's an route advert, call handleAdvert\n\t\tif (type.equals(\"advert\")){\n\t\t\thandleAdvert(lines, lnk);\n\t\t}\n\t\t// if it's an link failure advert, call handleFailureAdvert\n\t\tif (type.equals(\"fadvert\")){\n\t\t\thandleFailureAdvert(lines, lnk);\n\t\t}\n\t\t// if it's a hello, echo it back\n\t\tif (type.equals(\"hello\")){\n\t\t\tchunks = lines[2].split(\":\");\n\t\t\tif (!chunks[0].equals(\"timestamp\")) return;\n\t\t\tString timestamp = chunks[1].trim();\n\t\t\tp.payload = String.format(\"RPv0\\ntype: echo\\n\"\n\t\t\t\t\t+ \"timestamp: %s \\n\", timestamp);\n\t\t\tfwdr.sendPkt(p, lnk);\n\t\t}\n\t\t// else it's a reply to a hello packet\n\t\t// use timestamp to determine round-trip delay\n\t\t// use this to update the link cost using exponential\n\t\t// weighted moving average method\n\t\t// also, update link cost statistics\n\t\t// also, set gotReply to true\n\t\telse {\n\t\t\tchunks = lines[2].split(\":\");\n\t\t\tif (!chunks[0].equals(\"timestamp\")) return;\n\t\t\tString timeString = chunks[1].trim();\n\t\t\tdouble timestamp = Double.parseDouble(timeString);\n\t\t\tdouble rtDelay = now - timestamp;\n\n\t\t\tLinkInfo link = lnkVec.get(lnk);\n\t\t\tlink.helloState = 3;\n\t\t\tlink.cost = rtDelay/2;\n\t\t\tRoute rt = new Route();\n\t\t\trt.outLink = lnk;\n\t\t\tboolean match = false;\n\t\t\tfor (Route rte : rteTbl){\n\t\t\t\tif (rte.outLink == lnk){\n\t\t\t\t\trt = rte;\n\t\t\t\t\tmatch = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t\tRoute newRt = rt;\n\t\t\tlink.count = 0;\n\t\t\tlink.totalCost = 0;\n\t\t\tfor (LinkInfo l : lnkVec){\n\t\t\t\tif(l.helloState != 0){\n\t\t\t\t\tlink.count++;\n\t\t\t\t\tlink.totalCost += l.cost;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnewRt.cost = link.cost;\n\t\t\tif (updateRoute(rt,newRt)){\n\t\t\t\tlink.cost = rt.cost;\n\t\t\t}\n\t\t\tif (link.cost > link.maxCost){\n\t\t\t\tlink.maxCost = link.cost;\n\t\t\t}\n\t\t\tif (link.cost < link.minCost){\n\t\t\t\tlink.minCost = link.cost;\n\t\t\t}\n\t\t\tlink.gotReply = true;\n\t\t\tlnkVec.set(lnk, link);\n\t\t}\n\n\t}",
"protected void service(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tString actionType=req.getParameter(\"actionType\");\n\t\tif(actionType.equals(\"query\"))\n\t\t{\n\t\t\tquery(req,resp);\n\t\t}\n\t\tif(actionType.equals(\"kanweizhang\"))\n\t\t{\n\t\t\tkanweizhang(req,resp);\n\t\t}\n\t\tif(actionType.equals(\"tuiweizhang\"))\n\t\t{\n\t\t\ttuiweizhang(req,resp);\n\t\t}\n\t\t\n\t\tif(actionType.equals(\"querywenlei\"))\n\t\t{\n\t\t\tquerywenlei(req,resp);\n\t\t}\n\t}",
"@Override\n\t/*\n\t * (non-Javadoc)\n\t * @see AbCommand#dispatch(java.lang.String)\n\t */\n\t// @param request\n\tpublic void dispatch(String request) throws Exception {\n\t\t{\n\t\t\t \n\t\t\t if(request.equalsIgnoreCase(\"Admin\"))\n\t\t\t {\n\t\t\t\t admin.showView();\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t System.out.println(\"Enter only specified options\");\n\t\t\t }\n\t\t }\n\t}",
"public boolean preHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject arg2) throws Exception {\n\t\tString basePath = (String) request.getSession().getAttribute(\"basePath\");\n\t\tif (basePath==null||\"null\".equals(basePath)||\"\".equals(basePath)) {\n\t\t\tString path = request.getContextPath();\n\t\t\tbasePath = request.getScheme() + \"://\"\n\t\t\t\t\t+ request.getServerName() + \":\" + request.getServerPort()\n\t\t\t\t\t+ path + \"/\";\n\t\t\trequest.getSession().setAttribute(\"path\", basePath);\n\t\t\trequest.getSession().setAttribute(\"ver\", new Date().getTime());\n\t\t}\n\t\treturn true;\n\t}",
"private List<Route> getRoutesFromContext() {\n Set<RequestMappingInfo> requestMappingInfos = requestMappingHandlerMapping.getHandlerMethods().keySet();\n List<Route> routes = new LinkedList<>();\n for (RequestMappingInfo handlerMethod : requestMappingInfos) {\n Set<String> patterns = handlerMethod.getPatternsCondition().getPatterns();\n for (String pattern : patterns) {\n Method method = requestMappingHandlerMapping.getHandlerMethods().get(handlerMethod).getMethod();\n routes.add(new Route(pattern, method));\n }\n }\n return routes;\n }",
"private void startProcess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{\n \tSystem.out.println(\"Board startProcess 시작\");\r\n \tString RequestURI=request.getRequestURI();\r\n \tString ContextPath=request.getContextPath();\r\n \tString command=RequestURI.substring(ContextPath.length());\r\n \tActionForward forward=null;\r\n \tAction action=null;\r\n \tSystem.out.println(RequestURI +\" : command : \"+command);\r\n \t\r\n \t//공지 게시판 초기화면\r\n \tif(command.equals(\"/MainBoardAction.bo\")){\r\n \t\taction=new MainBoardAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 글 검색 리스트\r\n \telse if(command.equals(\"/MainBoardSearch.bo\")){\r\n \t\taction=new MainBoardSearchAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 글 작성 뷰\r\n \telse if(command.equals(\"/MainBoardWrite.bo\")){\r\n \t\tforward=new ActionForward();\r\n \t\tforward.setRedirect(false);\r\n \t\tforward.setPath(\"./mainboard/boardwriteview.jsp\");\r\n \t}\r\n \t//공지 게시판 글 작성 실행시\r\n \telse if(command.equals(\"/MainBoardWriteAction.bo\")){\r\n \t\taction=new MainBoardWriteAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 뷰\r\n \telse if(command.equals(\"/MainBoardDetailAction.bo\")){\r\n \t\taction= new MainBoardDetailAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 글 수정용 내용 보기\r\n \telse if(command.equals(\"/MainBoardModifyView.bo\")){\r\n \t\taction=new MainBoardModifyView();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 글 내용 수정\r\n \telse if(command.equals(\"/MainBoardModifyAction.bo\")){\r\n \t\taction=new MainBoardModifyAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 글 삭제\r\n \telse if(command.equals(\"/MainBoardDeleteAction.bo\")){\r\n \t\taction=new MainBoardDeleteAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t//댓글 가져오기\r\n \telse if(command.equals(\"/ReplyView.bo\")){\r\n \t\taction=new ReplyView();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//댓글 작성\r\n \telse if(command.equals(\"/ReplyWriteAction.bo\")){\r\n \t\taction=new ReplyWriteAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//댓글 삭제\r\n \telse if(command.equals(\"/ReplyDeleteAction.bo\")){\r\n \t\taction=new ReplyDeleteAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//댓글 수정\r\n \telse if(command.equals(\"/ReplyChangeAction.bo\")){\r\n \t\taction=new MainBoardDeleteAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t//---------처리--------\r\n \tif(forward!=null){\r\n \t\tSystem.out.println(\"forward값 : \"+forward);\r\n \t\tif(forward.isRedirect()){\r\n \t\t\t//내용을 넘겨줄때\r\n \t\t\tresponse.sendRedirect(forward.getPath());\r\n \t\t}else{\r\n \t\t\t//내용을 넘겨주지 않고 초기화 시킬때\r\n \t\t\tRequestDispatcher dispatcher=request.getRequestDispatcher(forward.getPath());\r\n \t\t\tdispatcher.forward(request, response);\r\n \t\t}\r\n \t}\r\n \t\r\n\t}",
"@Override\n public void handle(final ClassicHttpRequest request,\n final ClassicHttpResponse response,\n final HttpContext context)\n throws HttpException, IOException {\n\n final String method = request.getMethod();\n if (!\"GET\".equalsIgnoreCase(method) &&\n !\"HEAD\".equalsIgnoreCase(method) &&\n !\"POST\".equalsIgnoreCase(method) &&\n !\"PUT\".equalsIgnoreCase(method)) {\n throw new MethodNotSupportedException(method + \" not supported by \" + getClass().getName());\n }\n final URI uri;\n try {\n uri = request.getUri();\n } catch (final URISyntaxException ex) {\n throw new ProtocolException(ex.getMessage(), ex);\n }\n final String path = uri.getPath();\n final int slash = path.lastIndexOf('/');\n if (slash != -1) {\n final String payload = path.substring(slash + 1);\n final long n;\n if (!payload.isEmpty()) {\n try {\n n = Long.parseLong(payload);\n } catch (final NumberFormatException ex) {\n throw new ProtocolException(\"Invalid request path: \" + path);\n }\n } else {\n // random length, but make sure at least something is sent\n n = 1 + (int)(Math.random() * 79.0);\n }\n response.setCode(HttpStatus.SC_OK);\n response.setEntity(new RandomEntity(n));\n } else {\n throw new ProtocolException(\"Invalid request path: \" + path);\n }\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tfinal String URI = request.getRequestURI().replace(\"/HelloFrontController/\", \"\"); // this is the name of the root project folder\n\t\t\n\t\tswitch(URI) {\n\t\tcase \"login\":\n\t\t\t// call a method from a request helper......\t\n\t\t\tRequestHelper.processLogin(request, response);\n\t\t\tbreak;\n\t\tcase \"employees\":\n\t\t\t// call method show all employees -- this means we'll be querying our DB...\n\t\t\tRequestHelper.processEmployees(request, response);\n\t\t\tbreak;\n\t\tcase \"error\":\n\t\t\tRequestHelper.processError(request, response);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tRequestHelper.processError(request, response);\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic void handle(String target, HttpServletRequest request,\n\t\t\tHttpServletResponse response, boolean[] isHandled) {\n\t\trequest.setAttribute(\"CONTEXT_PATH\", request.getContextPath()); //添加项目根路径配置\n\n\t\tnextHandler.handle(target, request, response, isHandled);\n\t}",
"@Override\n public Route route(AsyncRequest request) {\n R route = matchByUri(request);\n if (route == null) {\n route = matchAll(request);\n }\n if (route == null) {\n return null;\n }\n return route.route;\n }",
"@Override\n\tprotected ModelAndView handle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object command, BindException errrors)\n\t\t\tthrows Exception {\n\t\treturn new ModelAndView(\"ABSCommandController\",\"User1\",user);\n\t}",
"public void run()\r\n {\n try\r\n {\r\n omConn = ServerSocketFactory.getDefault().createServerSocket(port).accept();\r\n //noinspection InfiniteLoopStatement\r\n while (true)\r\n {\r\n // .available returns the estimated number of bytes to be read.\r\n if (0 < omConn.getInputStream().available())\r\n {\r\n is = new ObjectInputStream(omConn.getInputStream());\r\n\r\n // Router. is just a placeholder for what method should be called.\r\n Router.api methodName = (Router.api) is.readObject();\r\n System.out.println(\"Order Router recieved method call for:\" + methodName);\r\n switch (methodName)\r\n {\r\n case routeOrder:\r\n // Instead of readingInts as the arguments to routeOrder(), read them and store them so we can see what they are.\r\n int[] readIntArray = new int[]{is.readInt(), is.readInt(), is.readInt()};\r\n System.out.println(\"RouteOrder called, read ints: Route Order INTS: \"+readIntArray[0]+readIntArray[1]+readIntArray[2]);\r\n routeOrder(readIntArray[0], readIntArray[1], readIntArray[2], (Instrument) is.readObject());\r\n break;\r\n case priceAtSize:\r\n priceAtSize(is.readInt(), is.readInt(), (Instrument) is.readObject(), is.readInt());\r\n break;\r\n case sendCancel:\r\n //TODO rewrite this to check the input and if the order exists\r\n\r\n Order tempOrder = (Order) is.readObject();\r\n int clientId = is.readInt();\r\n\r\n if (tempOrder.getSlices().size()==0)\r\n sendCancel(tempOrder.getOrderId(), -1, tempOrder.getSize(), tempOrder.getInstrument(), clientId);\r\n else{\r\n for (Order order : tempOrder.getSlices())\r\n {\r\n sendCancel(tempOrder.getOrderId(), order.getOrderId(), tempOrder.getSize(), tempOrder.getInstrument(), clientId);\r\n }\r\n }\r\n break;\r\n default:\r\n System.err.println(\"Method: \"+methodName.toString()+\" is not a valid method.\");\r\n }\r\n }\r\n else\r\n {\r\n Thread.sleep(100);\r\n }\r\n }\r\n }\r\n catch (IOException | ClassNotFoundException | InterruptedException e)\r\n {\r\n if(e.getClass() == IOException.class)\r\n System.out.println(\"IOException occurred, message: \"+e.getMessage());\r\n if(e.getClass() == ClassNotFoundException.class)\r\n System.out.println(\"ClassNotFoundException occurred, message: \"+e.getMessage());\r\n if(e.getClass() == InterruptedException.class)\r\n System.out.println(\"InterruptedException occurred, message: \"+e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }",
"void requestMapChange(String path);",
"Mono<ServerResponse> indexManagement(ServerRequest request);",
"public interface RequestServes {\n @GET(\"PlayVideo/{firstVideoId}\")\n Call<JsonElement> getPlayVideo(@Path(\"firstVideoId\") String firstVideoId);\n @GET\n Call<JsonElement> getData(@Url String url);\n @GET(\"{test}\")\n Call<ResponseBody> getString(@Path(\"test\") String test);\n\n @GET(\"users/{user}/repos\")\n Call<ResponseBody> listRepos(@Path(\"user\") String user);\n\n}",
"@Override\r\n\tpublic void handle(String target, HttpServletRequest request, HttpServletResponse response, boolean[] isHandled) {\n\t\t\r\n\t}",
"private void handleHttpRequest(ChannelHandlerContext ctx, HttpRequest req) throws Exception {\n\t\tif (req.getMethod() != HttpMethod.GET) {\n\t\t\tresponseSender.sendResponse(ctx.getChannel(), HttpResponseStatus.FORBIDDEN);\n\t\t\treturn;\n\t\t}\n\n\t\t// Send the demo page and favicon.ico\n\t\tif (req.getUri().equals(\"/\")) {\n\t\t\tresponseSender.sendResponse(ctx.getChannel(), HttpResponseStatus.OK, WebSocketServerIndexPage.getContent(getWebSocketLocation(req)), \"UTF-8\",\n\t\t\t\t\t\"text/html; charset=UTF-8\");\n\t\t\treturn;\n\t\t} else if (req.getUri().equals(\"/favicon.ico\")) {\n\t\t\tresponseSender.sendResponse(ctx.getChannel(), HttpResponseStatus.NOT_FOUND);\n\t\t\treturn;\n\t\t}\n\n\t\t// Handshake\n\t\tWebSocketServerHandshakerFactory wsFactory = new WebSocketServerHandshakerFactory(getWebSocketLocation(req), null, false);\n\t\thandshaker = wsFactory.newHandshaker(req);\n\t\tif (handshaker == null) {\n\t\t\twsFactory.sendUnsupportedWebSocketVersionResponse(ctx.getChannel());\n\t\t} else {\n\t\t\thandshaker.handshake(ctx.getChannel(), req).addListener(WebSocketServerHandshaker.HANDSHAKE_LISTENER);\n\t\t}\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException {\n //parsing request parameters in order to match operation to implement\n\n this.serverManager.execute(request, response);\n }",
"private void setupEndpoints() {\n post(API_CONTEXT, \"application/json\", (request, response) -> {\n try {\n response.status(201);\n return gameService.startGame(request.body());\n } catch (Exception e) {\n logger.error(\"Failed to create a new game\");\n response.status(400);\n }\n return Collections.EMPTY_MAP;\n }, new JsonTransformer());\n\n // Join a game\n put(API_CONTEXT + \"/:id\", \"application/json\", (request, response) -> {\n try {\n response.status(200);\n return gameService.joinGame(request.params(\":id\"));\n } catch (GameService.GameServiceIdException ex) {\n response.status(404);\n return new ErrorMessage(ex.getMessage());\n } catch (GameService.GameServiceJoinException ex) {\n response.status(410);\n return new ErrorMessage(ex.getMessage());\n }\n }, new JsonTransformer());\n\n // Play a game\n post(API_CONTEXT + \"/:id/turns\",\"application/json\", (request, response) -> {\n try {\n response.status(200);\n gameService.play(request.params(\":id\"), request.body());\n } catch (GameService.GameServiceIdException ex){\n response.status(404);\n return new ErrorMessage(ex.getMessage());\n } catch (GameService.GameServiceMoveException ex) {\n response.status(422);\n return new ErrorMessage(ex.getMessage());\n }\n return Collections.EMPTY_MAP;\n }, new JsonTransformer());\n\n // Describe the game board\n get(API_CONTEXT + \"/:id/board\", \"application/json\", (request, response) -> {\n try {\n response.status(200);\n return gameService.describeBoard(request.params(\":id\"));\n } catch (GameService.GameServiceIdException ex) {\n response.status(404);\n return new ErrorMessage(ex.getMessage());\n }\n //return Collections.EMPTY_MAP;\n }, new JsonTransformer());\n\n // fetch state\n get(API_CONTEXT + \"/:id/state\",\"application/json\", (request, response) -> {\n try {\n response.status(200);\n return gameService.describeState(request.params(\":id\"));\n } catch (GameService.GameServiceIdException ex) {\n response.status(404);\n return new ErrorMessage(ex.getMessage());\n }\n //return Collections.EMPTY_MAP;\n }, new JsonTransformer());\n\n// get(API_CONTEXT + \"/todos/:id\", \"application/json\", (request, response) -> {\n// try {\n// return todoService.find(request.params(\":id\"));\n// } catch (TodoService.TodoServiceException ex) {\n// logger.error(String.format(\"Failed to find object with id: %s\", request.params(\":id\")));\n// response.status(500);\n// return Collections.EMPTY_MAP;\n// }\n// }, new JsonTransformer());\n//\n// get(API_CONTEXT + \"/todos\", \"application/json\", (request, response)-> {\n// try {\n// return todoService.findAll() ;\n// } catch (TodoService.TodoServiceException ex) {\n// logger.error(\"Failed to fetch the list of todos\");\n// response.status(500);\n// return Collections.EMPTY_MAP;\n// }\n// }, new JsonTransformer());\n//\n// put(API_CONTEXT + \"/todos/:id\", \"application/json\", (request, response) -> {\n// try {\n// return todoService.update(request.params(\":id\"), request.body());\n// } catch (TodoService.TodoServiceException ex) {\n// logger.error(String.format(\"Failed to update todo with id: %s\", request.params(\":id\")));\n// response.status(500);\n// return Collections.EMPTY_MAP;\n// }\n// }, new JsonTransformer());\n//\n// delete(API_CONTEXT + \"/todos/:id\", \"application/json\", (request, response) -> {\n// try {\n// todoService.delete(request.params(\":id\"));\n// response.status(200);\n// } catch (TodoService.TodoServiceException ex) {\n// logger.error(String.format(\"Failed to delete todo with id: %s\", request.params(\":id\")));\n// response.status(500);\n// }\n// return Collections.EMPTY_MAP;\n// }, new JsonTransformer());\n\n }",
"public void doCheckRhapsodyClPath(StaplerRequest req, StaplerResponse rsp, @QueryParameter final String value) throws IOException, ServletException {\n new FormFieldValidator(req,rsp,null) {\n /**\n * The real check goes here. In the end, depending on which\n * method you call, the browser shows text differently.\n */\n protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify the path to the RhapsodyCL.exe file\");\n else if(!value.contains(\"RhapsodyCL.exe\")) {\n \terror(\"didn't find RhapsodyCL.exe in the path !\");\n }else{\n \tok(); \t\n }\n }\n }.process();\n }",
"private HashMap<String, String> parsePathType(String path) {\n LOG.debug(\"Path: \" + path);\n Pattern systemPattern = Pattern.compile(\"v[0-9]+/systems/?(\\\\?.*)?$\");\n Matcher systemMatcher = systemPattern.matcher(path);\n\n Pattern systemStatusPattern = Pattern.compile(\"v[0-9]+/systems/status/?(\\\\?.*)?$\");\n Matcher systemStatusMatcher = systemStatusPattern.matcher(path);\n\n Pattern systemReportsPattern = Pattern.compile(\"v[0-9]+/systems/(.*)/reports/?(\\\\?.*)?$\");\n Matcher systemReportsMatcher = systemReportsPattern.matcher(path);\n\n Pattern reportsPattern = Pattern.compile(\"v[0-9]+/reports/?(\\\\?.*)?$\");\n Matcher reportsMatcher = reportsPattern.matcher(path);\n\n Pattern acksPattern = Pattern.compile(\"v[0-9]+/acks/?(\\\\?.*)$\");\n Matcher acksMatcher = acksPattern.matcher(path);\n\n Pattern rulesPattern = Pattern.compile(\"v[0-9]+/rules/?(\\\\?.*)$\");\n Matcher rulesMatcher = rulesPattern.matcher(path);\n\n Pattern uploadsPattern = Pattern.compile(\"uploads(/.*)?(/\\\\?.*)?$\");\n Matcher uploadsMatcher = uploadsPattern.matcher(path);\n\n HashMap<String, String> response = new HashMap<String, String>();\n if (systemMatcher.matches()) {\n response.put(\"type\", Constants.SYSTEMS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"systems\")));\n } else if (systemReportsMatcher.matches()) {\n response.put(\"type\", Constants.SYSTEM_REPORTS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"reports\")));\n String id = (String) systemReportsMatcher.group(1);\n if (id != null) {\n response.put(\"id\", id);\n }\n } else if (reportsMatcher.matches()) {\n response.put(\"type\", Constants.REPORTS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"reports\")));\n } else if (acksMatcher.matches()) {\n response.put(\"type\", Constants.ACKS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"acks\")));\n } else if (rulesMatcher.matches()) {\n response.put(\"type\", Constants.RULES_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"rules\")));\n } else if (uploadsMatcher.matches()) {\n response.put(\"type\", Constants.UPLOADS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"uploads\")));\n } else if (systemStatusMatcher.matches()) {\n response.put(\"type\", Constants.SYSTEMS_STATUS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"systems\")));\n } else {\n response.put(\"type\", \"-1\");\n response.put(\"index\", \"-1\");\n }\n return response;\n }",
"protected void mainTask() {\n\t logger.log(1, CLASS, \"-\", \"impl\",\n\t\t \"About to read command\");\n\t try { \n\t\tcommand = (COMMAND)connection.receive();\n\t\tlogger.log(1,CLASS, \"-\", \"impl\",\n\t\t\t \"Received command: \"+(command == null ? \"no-command\" : command.getClass().getName()));\n\t } catch (IOException e) {\n\t\tinitError(\"I/O error while reading command:[\"+e+\"]\",command);\n\t\treturn;\n\t } catch (ClassCastException ce) {\n\t\tinitError(\"Garbled command:[\"+ce+\"]\", command);\n\t\treturn;\n\t } \n\t \n\t // 2. Create a handler.\n\t if (command == null) {\n\t\tinitError(\"No command set\", null);\n\t\treturn;\n\t }\n\n\t if (handlerFactory != null) {\n\t\thandler = handlerFactory.createHandler(connection, command);\n\t\tif (handler == null) {\n\t\t initError(\"Unable to process command [\"+command.getClass().getName()+\"]: No known handler\", command);\n\t\t return;\n\t\t}\n\t \n\t\t// 3. Handle the request - handler may send multiple updates to client over long period\n\t\thandler.handleRequest();\n\t }\t \n\t}",
"private boolean checkPermissions(HttpServletRequest request, RouteAction route) {\n\t\treturn true;\n\t}",
"@Override\n\tpublic void run() {\n\t\twhile (receivingCommands) {\n\t\t\ttry {\n\t\t\t\tCommandHandler commandHandler = new CommandHandler(readNextLine());\n\t\t\t\tswitch (commandHandler.getCommand()) {\n\t\t\t\tcase REGISTER:\n\t\t\t\t\tString username = commandHandler.getParam(1);\n\t\t\t\t\tString password = commandHandler.getParam(2);\n\t\t\t\t\tfileCatalog.register(username, password);\n\t\t\t\t\tbreak;\n\t\t\t\tcase LOGIN:\n\t\t\t\t\tString username1 = commandHandler.getParam(1);\n\t\t\t\t\tString password1 = commandHandler.getParam(2);\n\t\t\t\t\tjwtToken = fileCatalog.login(username1, password1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase LIST:\n\t\t\t\t\tList<? extends FileDTO> files = fileCatalog.list(jwtToken);\n\t\t\t\t\tfor (FileDTO file : files) {\n\t\t\t\t\t\tprintDetails(file);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DETAILS:\n\t\t\t\t\tString fileName = commandHandler.getParam(1);\n\t\t\t\t\tFileDTO file = fileCatalog.details(jwtToken, fileName);\n\t\t\t\t\tprintDetails(file);\n\t\t\t\t\tbreak;\n\t\t\t\tcase UPR:\n\t\t\t\t\tString pathFileToUploadReadOnly = commandHandler.getParam(1);\n\t\t\t\t\tString newFileNameOnServerReadOnly = commandHandler.getParam(2);\n\t\t\t\t\tfileCatalog.upload(jwtToken, newFileNameOnServerReadOnly, false);\n\t\t\t\t\t// TODO\n\t\t\t\t\tbreak;\n\t\t\t\tcase UPW:\n\t\t\t\t\tString pathFileToUpload = commandHandler.getParam(1);\n\t\t\t\t\tString newFileNameOnServer = commandHandler.getParam(2);\n\t\t\t\t\tfileCatalog.upload(jwtToken, newFileNameOnServer, true);\n\t\t\t\t\t// TODO\n\t\t\t\t\tbreak;\n\t\t\t\tcase DOWN:\n\t\t\t\t\tString fileNameToDL = commandHandler.getParam(1);\n\t\t\t\t\tString targetDirectory = commandHandler.getParam(2);\n\t\t\t\t\tString newNameDL = commandHandler.getParam(3);\n\t\t\t\t\tfileCatalog.download(jwtToken, fileNameToDL, targetDirectory, newNameDL);\n\t\t\t\t\t// TODO\n\t\t\t\t\tbreak;\n\t\t\t\tcase DELETE:\n\t\t\t\t\tString fileNameToDelete = commandHandler.getParam(1);\n\t\t\t\t\tfileCatalog.delete(jwtToken, fileNameToDelete);\n\t\t\t\t\t// TODO\n\t\t\t\t\tbreak;\n\t\t\t\tcase LOGOUT:\n\t\t\t\t\tjwtToken = null;\n\t\t\t\t\tsafePrintln(\"You have been logged out.\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase QUIT:\n\t\t\t\t\treceivingCommands = false;\n\t\t\t\t\tsafePrintln(\"Good bye!\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase HELP:\n\t\t\t\t\tfor (Command command : Command.values()) {\n\t\t\t\t\t\tif (command == Command.UNKNOWN) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsafePrintln(command.toString().toLowerCase());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tsafePrintln(\"Unrecognized command.\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tniceErrorPrint(e);\n\t\t\t}\n\t\t}\n\t}",
"public abstract void handle(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ApiException, IOException;",
"private void getMessages(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int tick = Integer.parseInt(request.getParameter(\"tick\"));\n\n if (tick != SimApi.getCurrTick()) {\n String allPaths = \"\";\n\n for (Message me : SimApi.getMessages()) {\n allPaths += me.getRoute() + \",\" + (me.getRouteList().size() - 1) + \",\" + me.getType().toString() + \",,\";\n }\n\n if (!allPaths.equals(\"\")) {\n allPaths = allPaths.substring(0, allPaths.length() - 2);\n }\n\n response.getWriter().write(SimApi.getCurrTick() + \"!\" + allPaths);\n } else {\n response.sendError(0);\n }\n }",
"public interface Router {\n\n interface Message {\n /**\n * The reply-to header\n *\n * @return the reply-to header\n */\n default String replyTo() {\n return (String) metadata().get(\"reply-to\");\n }\n\n /**\n * The host header\n *\n * @return the host header\n */\n default String host() {\n return (String) metadata().get(\"x-host\");\n }\n\n /**\n * Get the name of the reply queue to send the message to\n *\n * @return the reply queue\n */\n default String replyQueue() {\n return (String) metadata().get(\"x-reply-queue\");\n }\n\n\n /**\n * The uri header\n *\n * @return the uri header\n */\n default String uri() {\n\n return (String) metadata().get(\"x-uri\");\n }\n\n /**\n * The scheme header\n *\n * @return the scheme header\n */\n default String scheme() {\n return (String) metadata().get(\"x-scheme\");\n }\n\n /**\n * The method header\n *\n * @return the method header\n */\n default String method() {\n String m = (String) metadata().get(\"x-method\");\n if (null == m) {\n m = \"get\";\n }\n return m.toLowerCase();\n }\n\n /**\n * Get the port... may be String, Number, or null\n *\n * @return get the port\n */\n default Object port() {\n return metadata().get(\"server-port\");\n }\n\n /**\n * get the protocol for the request\n *\n * @return\n */\n default String protocol() {\n return (String) metadata().get(\"x-server-protocol\");\n }\n\n /**\n * Get the uri args for the request\n *\n * @return the uri args for the request\n */\n default String args() {\n return (String) metadata().get(\"x-uri-args\");\n }\n\n /**\n * The content-type header\n *\n * @return the content-type header\n */\n default String contentType() {\n return (String) metadata().get(\"content-type\");\n }\n\n /**\n * The remote address of the client\n *\n * @return remote address\n */\n default String remoteAddr() {\n return (String) metadata().get(\"x-remote-addr\");\n }\n\n /**\n * The\n *\n * @return\n */\n Map<String, Object> metadata();\n\n Object body();\n\n byte[] rawBody();\n\n MessageBroker.ReceivedMessage underlyingMessage();\n }\n\n /**\n * Convert the message from the more generic one from the MessageBroker into\n * something that can be routed\n *\n * @param message\n * @return\n */\n default Message brokerMessageToRouterMessage(MessageBroker.ReceivedMessage message) {\n return new Message() {\n\n @Override\n public Map<String, Object> metadata() {\n return message.metadata();\n }\n\n @Override\n public Object body() {\n return message.body();\n }\n\n @Override\n public byte[] rawBody() {\n return message.rawBody();\n }\n\n @Override\n public MessageBroker.ReceivedMessage underlyingMessage() {\n return message;\n }\n };\n }\n\n /**\n * Route the message. This may cause the message to be queued to the next handler (Runner)\n * or route it to the handler Func.\n *\n * @param message the Message to route\n * @return the result of the Message application or void if this Router forwards the message\n */\n Object routeMessage(Message message) throws IOException;\n\n\n /**\n * Release any resources that the Router has... for example, any database pool connections\n */\n void endLife();\n\n /**\n * Get the host that this Router is listening for\n *\n * @return the name of the host. May be null\n */\n String host();\n\n /**\n * Get the base path for this Router\n *\n * @return the base path for the router\n */\n String basePath();\n\n /**\n * Return the name of the queue that is associated with the host/path combination\n *\n * @return the name of the queue associated with the host/path combination\n */\n String nameOfListenQueue();\n\n /**\n * Get the swagger for this Router\n *\n * @return the Swagger information for the router\n */\n Map<String, Object> swagger();\n\n}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n logger.log(Level.INFO, \"[GUI QUERY] {0}\", request.getRequestURI()+\"?\"+request.getQueryString());\n\n // check to find version and forward\n Map<String, String[]> params = request.getParameterMap(); // get map of parameters and their values\n String[] versions = params.get(\"version\");\n\n if (versions == null) {\n request.getRequestDispatcher(\"/v104GRs\").forward(request, response); \n } else if (versions[0].equals(\"103\")) {\n request.getRequestDispatcher(\"/v103GRs\").forward(request, response); \n } else {\n // otherwise forward to default\n request.getRequestDispatcher(\"/v104GRs\").forward(request, response);\n }\n }"
]
| [
"0.62628204",
"0.612912",
"0.6041029",
"0.5968572",
"0.5941676",
"0.5824483",
"0.5729229",
"0.57260764",
"0.56688774",
"0.56315225",
"0.5578881",
"0.5577982",
"0.5568227",
"0.55629903",
"0.55576974",
"0.551018",
"0.53916174",
"0.53569233",
"0.5326476",
"0.5291296",
"0.52856594",
"0.5265597",
"0.52229196",
"0.52163655",
"0.5210279",
"0.5207074",
"0.51986647",
"0.5169053",
"0.5130229",
"0.5123619",
"0.5097419",
"0.5096475",
"0.5084486",
"0.50822955",
"0.5072773",
"0.50672257",
"0.5063667",
"0.5057858",
"0.50508803",
"0.5050459",
"0.5049934",
"0.5048152",
"0.50433975",
"0.5033994",
"0.50201005",
"0.4992165",
"0.49770087",
"0.4974599",
"0.4971195",
"0.49679124",
"0.49380577",
"0.4934948",
"0.4934948",
"0.4933638",
"0.4928841",
"0.49269336",
"0.49258512",
"0.49249014",
"0.4923627",
"0.49182484",
"0.49115175",
"0.49040028",
"0.489901",
"0.4894404",
"0.48874217",
"0.4886758",
"0.48865682",
"0.48861393",
"0.48799592",
"0.48715466",
"0.48559654",
"0.4851301",
"0.4850029",
"0.4842691",
"0.4837688",
"0.48371276",
"0.48351327",
"0.4818235",
"0.47988063",
"0.47897708",
"0.47862136",
"0.4783807",
"0.47727886",
"0.47722805",
"0.47625077",
"0.47516122",
"0.4750558",
"0.4734114",
"0.47337016",
"0.4731411",
"0.47250882",
"0.47250533",
"0.47225237",
"0.47212884",
"0.47198504",
"0.47188568",
"0.47183093",
"0.47145185",
"0.47084704",
"0.47084227"
]
| 0.520499 | 26 |
que es reflection? no entiendo el concepto | public <T extends Vehicle> T getVehicle(Class<T> tClass){
try {
return tClass.getConstructor().newInstance();
} catch (Exception e){
throw new RuntimeException("Cannot create a vehicle of type: " + tClass, e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException, NoSuchFieldException {\n Class clazz = Test.class;\n Class clazz3 = Class.forName(\"Reflection.Test\");\n\n Test test = (Test) clazz.newInstance();\n\n // вызвать метод по имени у заданного объекта\n Method method = clazz.getMethod(\"foo\");\n System.out.println(method.toString());\n method.invoke(test);\n\n // установить поле по имени у заданного объекта\n Field field = clazz.getDeclaredField(\"num\");\n field.setAccessible(true);\n field.set(test, 100);\n System.out.println(test);\n\n // выводим название пакета\n Package pack = clazz.getPackage();\n System.out.println(\"package \" + pack.getName() + \";\");\n\n // начинаем декларацию класса с модификаторов\n int modifiers = clazz.getModifiers();\n System.out.print(getModifiers(modifiers));\n // выводим название класса\n System.out.print(\"class \" + clazz.getSimpleName() + \" \");\n\n // выводим название родительского класса\n System.out.print(\"extends \" + clazz.getSuperclass().getSimpleName() + \" \");\n\n // выводим интерфейсы, которые реализует класс\n Class[] interfaces = clazz.getInterfaces();\n for (int i = 0, size = interfaces.length; i < size; i++) {\n System.out.print(i == 0 ? \"implements \" : \", \");\n System.out.print(interfaces[i].getSimpleName());\n }\n System.out.println(\" {\");\n\n // выводим поля класса\n Field[] fields = clazz.getDeclaredFields();\n for (Field f : fields) {\n System.out.println(\"\\t\" + getModifiers(f.getModifiers()) +\n getType(f.getType()) + \" \" + f.getName() + \";\");\n }\n\n // выводим методы класса\n Method[] methods = clazz.getDeclaredMethods();\n for (Method m : methods) {\n // получаем аннотации\n Annotation[] annotations = m.getAnnotations();\n System.out.print(\"\\t\");\n for (Annotation a : annotations) {\n System.out.print(\"@\" + a.annotationType().getSimpleName() + \" \");\n }\n System.out.println();\n\n System.out.print(\"\\t\" + getModifiers(m.getModifiers()) +\n getType(m.getReturnType()) + \" \" + m.getName() + \"(\");\n System.out.print(getParameters(m.getParameterTypes()));\n System.out.println(\") { }\");\n }\n\n System.out.println(\"}\");\n }",
"@Test\n public void test01()\n {\n MetaClass.forClass(Class, reflectorFactory)\n }",
"private static void reflection() throws Exception {\n Class cl = Class.forName(\"com.videobet.sandbox.Person\");\r\n Person p = (Person)cl.getConstructor(new Class[] {String.class, String.class})\r\n .newInstance(\"Smith\", \"John\");\r\n System.out.print(cl.getMethod(\"getFullName\").invoke(p));\r\n }",
"abstract String applicable(Method[] getters) throws InvalidObjectException;",
"boolean isReflectable();",
"public interface Reflection {\n\t/**\n\t * Creates the template which specifies which constructor to \n\t * call upon. The specifies the classes of the arguments which\n\t * need to be given to the constructor.\n\t */\n\t@SuppressWarnings(\"unchecked\")\n\tpublic Class[] getTemplate();\n\t\n\t/**\n\t * Create the object array which serves as the parameters \n\t * to construct another object of this type.\n\t */\n\tpublic Object[] getConstructorArgs ();\n}",
"Objet getObjetAlloue();",
"Object getClass_();",
"Object getClass_();",
"private void findFields() {\n for(Class<?> clazz=getObject().getClass();clazz != null; clazz=clazz.getSuperclass()) {\r\n\r\n Field[] fields=clazz.getDeclaredFields();\r\n for(Field field:fields) {\r\n ManagedAttribute attr=field.getAnnotation(ManagedAttribute.class);\r\n Property prop=field.getAnnotation(Property.class);\r\n boolean expose_prop=prop != null && prop.exposeAsManagedAttribute();\r\n boolean expose=attr != null || expose_prop;\r\n\r\n if(expose) {\r\n String fieldName = Util.attributeNameToMethodName(field.getName());\r\n String descr=attr != null? attr.description() : prop.description();\r\n boolean writable=attr != null? attr.writable() : prop.writable();\r\n\r\n MBeanAttributeInfo info=new MBeanAttributeInfo(fieldName,\r\n field.getType().getCanonicalName(),\r\n descr,\r\n true,\r\n !Modifier.isFinal(field.getModifiers()) && writable,\r\n false);\r\n\r\n atts.put(fieldName, new FieldAttributeEntry(info, field));\r\n }\r\n }\r\n }\r\n }",
"private static void Demo5() {\n\t\tClass<?> class1 = null;\r\n\t\ttry {\r\n\t\t\tclass1 = Class.forName(\"CH16.Person\");\r\n\t\t\ttry {\r\n\t\t\t\tObject obj = class1.newInstance();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tField f = class1.getDeclaredField(\"name\");\r\n\t\t\t\t\tf.setAccessible(true);\r\n\t\t\t\t\tf.set(obj, \"HONGHENG\");\r\n\t\t\t\t\tSystem.out.println(f.get(obj));\r\n\t\t\t\t} catch (NoSuchFieldException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (SecurityException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t} catch (InstantiationException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}",
"boolean hasReflectionRequest();",
"public abstract Object mo1771a();",
"public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n\r\n Class<?> c = Class.forName(\"Reflect.Student\");\r\n// System.out.println(c);\r\n //返回一个 Constructor对象,该对象反映 Constructor对象表示的类的指定的公共构造器\r\n Constructor<?>[] constructors = c.getConstructors();\r\n //返回一个 Constructor对象,该对象反映 Constructor对象表示的类的所有构造器\r\n Constructor<?>[] declaredConstructors = c.getDeclaredConstructors();\r\n for (Constructor con : declaredConstructors)\r\n System.out.println(con);\r\n\r\n System.out.println(\"-----------------\");\r\n\r\n Constructor<?> dc = c.getDeclaredConstructor(String.class, int.class, String.class);\r\n //dc.setAccessible(true); //暴力反射\r\n System.out.println(dc.newInstance(\"tcp\", 22, \"shangluo\"));\r\n\r\n Constructor<?> constructor = c.getConstructor();\r\n\r\n Object obj = constructor.newInstance();\r\n System.out.println(obj);\r\n\r\n Method function = c.getDeclaredMethod(\"method2\", String.class);\r\n function.setAccessible(true);\r\n function.invoke(obj,\"tangcaiping\");\r\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private void findMethods() {\n List<Method> methods = new ArrayList<Method>(Arrays.asList(getObject().getClass().getMethods()));\r\n List<Method> objectMethods = new ArrayList<Method>(Arrays.asList(Object.class.getMethods()));\r\n methods.removeAll(objectMethods);\r\n \r\n for(Method method:methods) {\r\n //does method have @ManagedAttribute annotation?\r\n if(method.isAnnotationPresent(ManagedAttribute.class) || method.isAnnotationPresent(Property.class)) {\r\n exposeManagedAttribute(method);\r\n }\r\n //or @ManagedOperation\r\n else if (method.isAnnotationPresent(ManagedOperation.class) || isMBeanAnnotationPresentWithExposeAll()){\r\n exposeManagedOperation(method); \r\n } \r\n }\r\n }",
"private boolean readHasCorrespondingIsProperty(Method paramMethod, Class paramClass) {\n/* 294 */ return false;\n/* */ }",
"ConjuntoTDA claves();",
"Input getObjetivo();",
"@Override\n\tpublic void visitarObjeto(Objeto o) {\n\t\t\n\t}",
"@Override\n public void invoke(Stack stack) {\n try {\n StackEffect se = (StackEffect) stack.pop().object;\n Symbol fieldName = (Symbol) stack.pop().object;\n Object instance = stack.pop().object;\n Object value = stack.pop().object;\n CheckedType className = se.getOutputTypes().get(0);\n\n Field field = Class.forName(className.toSymbol().symbol).getField(fieldName.symbol);\n field.set(instance,value);\n stack.push( new JavaType(instance.getClass()), instance );\n } catch (NoSuchFieldException e) {\n throw new RuntimeException(\"Unable to set instance field.\",e);\n } catch (ClassNotFoundException e) {\n throw new RuntimeException(\"Unable to set instance field.\",e);\n } catch (IllegalAccessException e) {\n throw new RuntimeException(\"Unable to set instance field.\",e);\n }\n }",
"boolean hasReflectionResponse();",
"public abstract Member mo23408O();",
"private static void getClassInformation(Class clazz) {\n System.out.println(\"Class - \" + clazz.getName());\n\n Class[] interfaces = clazz.getInterfaces();\n if (interfaces.length != 0) {\n System.out.println(\"Class impliments interfaces: \");\n printArray(interfaces);\n } else {\n System.out.println(\"No impliments interfaces.\");\n }\n\n Field[] declaredFields = clazz.getDeclaredFields();\n if (declaredFields.length != 0) {\n System.out.println(\"Class fields: \");\n for (Field declaredField : declaredFields) {\n if (declaredField.getType().isAssignableFrom(String.class)) {\n try {\n declaredField.setAccessible(true);\n if (declaredField.getName().equals(declaredField.get(clazz))) {\n System.out.println(\" \" + declaredField + \" - name matches the argument!\");\n } else {\n System.out.println(\" \" + declaredField + \", \");\n }\n\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n } else {\n System.out.println(\" \" + declaredField + \", \");\n }\n }\n } else {\n System.out.println(\"No fields.\");\n }\n\n Constructor[] constructors = clazz.getConstructors();\n if (constructors.length != 0) {\n System.out.println(\"Class constructors: \");\n printArray(constructors);\n } else {\n System.out.println(\"No costructors.\");\n }\n\n Method[] declaredMethods = clazz.getDeclaredMethods();\n if (declaredMethods.length != 0) {\n System.out.println(\"Class methods: \");\n for (Method declaredMethod : declaredMethods) {\n if (isGetter(declaredMethod)) System.out.println(\" getter: \" + declaredMethod);\n else if (isSetter(declaredMethod)) System.out.println(\" setter: \" + declaredMethod);\n else {\n System.out.println(\" \" + declaredMethod + \", \");\n }\n }\n } else {\n System.out.println(\"No methods.\");\n }\n }",
"@Test\n public void t() throws Exception {\n TestAutow ta = new TestAutow();\n Class<? extends TestAutow> clazz = ta.getClass();\n Field[] fields = clazz.getDeclaredFields();\n Arrays.asList(fields).stream().forEach(System.out::println);\n System.out.println(ta.getI()+\":\"+ta.getStr());\n\n Field field_i=clazz.getDeclaredField(\"i\");\n //获得许可\n field_i.setAccessible(true);\n field_i.set(ta,7);\n System.out.println(ta.getI()+\":\"+ta.getStr());\n\n\n }",
"public final java.util.List<p298d.p299a.p300a.p301a.p303y0.p314d.p315a.p322j0.C6439z> mo23417P(java.lang.reflect.Type[] r13, java.lang.annotation.Annotation[][] r14, boolean r15) {\n /*\n r12 = this;\n java.lang.String r0 = \"parameterTypes\"\n p298d.p344x.p346c.C6888i.m12438e(r13, r0)\n java.lang.String r0 = \"parameterAnnotations\"\n p298d.p344x.p346c.C6888i.m12438e(r14, r0)\n java.util.ArrayList r0 = new java.util.ArrayList\n int r1 = r13.length\n r0.<init>(r1)\n java.lang.reflect.Member r1 = r12.mo23408O()\n java.lang.String r2 = \"member\"\n p298d.p344x.p346c.C6888i.m12438e(r1, r2)\n d.a.a.a.y0.b.j1.b.a$a r3 = p298d.p299a.p300a.p301a.p303y0.p304b.p309j1.p311b.C6170a.f12188a\n r4 = 0\n r5 = 0\n if (r3 != 0) goto L_0x004f\n p298d.p344x.p346c.C6888i.m12438e(r1, r2)\n java.lang.Class r2 = r1.getClass()\n java.lang.String r3 = \"getParameters\"\n java.lang.Class[] r6 = new java.lang.Class[r5] // Catch:{ NoSuchMethodException -> 0x0047 }\n java.lang.reflect.Method r3 = r2.getMethod(r3, r6) // Catch:{ NoSuchMethodException -> 0x0047 }\n java.lang.ClassLoader r2 = p298d.p299a.p300a.p301a.p303y0.p304b.p309j1.p311b.C6173b.m11076e(r2)\n java.lang.String r6 = \"java.lang.reflect.Parameter\"\n java.lang.Class r2 = r2.loadClass(r6)\n d.a.a.a.y0.b.j1.b.a$a r6 = new d.a.a.a.y0.b.j1.b.a$a\n java.lang.Class[] r7 = new java.lang.Class[r5]\n java.lang.String r8 = \"getName\"\n java.lang.reflect.Method r2 = r2.getMethod(r8, r7)\n r6.<init>(r3, r2)\n r3 = r6\n goto L_0x004d\n L_0x0047:\n d.a.a.a.y0.b.j1.b.a$a r2 = new d.a.a.a.y0.b.j1.b.a$a\n r2.<init>(r4, r4)\n r3 = r2\n L_0x004d:\n p298d.p299a.p300a.p301a.p303y0.p304b.p309j1.p311b.C6170a.f12188a = r3\n L_0x004f:\n java.lang.reflect.Method r2 = r3.f12189a\n if (r2 != 0) goto L_0x0054\n goto L_0x0058\n L_0x0054:\n java.lang.reflect.Method r3 = r3.f12190b\n if (r3 != 0) goto L_0x005a\n L_0x0058:\n r2 = r4\n goto L_0x0086\n L_0x005a:\n java.lang.Object[] r6 = new java.lang.Object[r5]\n java.lang.Object r1 = r2.invoke(r1, r6)\n java.lang.String r2 = \"null cannot be cast to non-null type kotlin.Array<*>\"\n java.util.Objects.requireNonNull(r1, r2)\n java.lang.Object[] r1 = (java.lang.Object[]) r1\n java.util.ArrayList r2 = new java.util.ArrayList\n int r6 = r1.length\n r2.<init>(r6)\n int r6 = r1.length\n r7 = r5\n L_0x006f:\n if (r7 >= r6) goto L_0x0086\n r8 = r1[r7]\n java.lang.Object[] r9 = new java.lang.Object[r5]\n java.lang.Object r8 = r3.invoke(r8, r9)\n java.lang.String r9 = \"null cannot be cast to non-null type kotlin.String\"\n java.util.Objects.requireNonNull(r8, r9)\n java.lang.String r8 = (java.lang.String) r8\n r2.add(r8)\n int r7 = r7 + 1\n goto L_0x006f\n L_0x0086:\n if (r2 != 0) goto L_0x008a\n r1 = r4\n goto L_0x0092\n L_0x008a:\n int r1 = r2.size()\n java.lang.Integer r1 = java.lang.Integer.valueOf(r1)\n L_0x0092:\n if (r1 != 0) goto L_0x0096\n r1 = r5\n goto L_0x009c\n L_0x0096:\n int r1 = r1.intValue()\n int r3 = r13.length\n int r1 = r1 - r3\n L_0x009c:\n int r3 = r13.length\n int r3 = r3 + -1\n if (r3 < 0) goto L_0x0152\n r6 = r5\n L_0x00a2:\n int r7 = r6 + 1\n r8 = r13[r6]\n java.lang.String r9 = \"type\"\n p298d.p344x.p346c.C6888i.m12438e(r8, r9)\n boolean r9 = r8 instanceof java.lang.Class\n if (r9 == 0) goto L_0x00be\n r10 = r8\n java.lang.Class r10 = (java.lang.Class) r10\n boolean r11 = r10.isPrimitive()\n if (r11 == 0) goto L_0x00be\n d.a.a.a.y0.b.j1.b.c0 r8 = new d.a.a.a.y0.b.j1.b.c0\n r8.<init>(r10)\n goto L_0x00e6\n L_0x00be:\n boolean r10 = r8 instanceof java.lang.reflect.GenericArrayType\n if (r10 != 0) goto L_0x00e0\n if (r9 == 0) goto L_0x00ce\n r9 = r8\n java.lang.Class r9 = (java.lang.Class) r9\n boolean r9 = r9.isArray()\n if (r9 == 0) goto L_0x00ce\n goto L_0x00e0\n L_0x00ce:\n boolean r9 = r8 instanceof java.lang.reflect.WildcardType\n if (r9 == 0) goto L_0x00da\n d.a.a.a.y0.b.j1.b.g0 r9 = new d.a.a.a.y0.b.j1.b.g0\n java.lang.reflect.WildcardType r8 = (java.lang.reflect.WildcardType) r8\n r9.<init>(r8)\n goto L_0x00e5\n L_0x00da:\n d.a.a.a.y0.b.j1.b.s r9 = new d.a.a.a.y0.b.j1.b.s\n r9.<init>(r8)\n goto L_0x00e5\n L_0x00e0:\n d.a.a.a.y0.b.j1.b.h r9 = new d.a.a.a.y0.b.j1.b.h\n r9.<init>(r8)\n L_0x00e5:\n r8 = r9\n L_0x00e6:\n if (r2 != 0) goto L_0x00ea\n r9 = r4\n goto L_0x00f4\n L_0x00ea:\n int r9 = r6 + r1\n java.lang.Object r9 = p298d.p334t.C6790h.m12365s(r2, r9)\n java.lang.String r9 = (java.lang.String) r9\n if (r9 == 0) goto L_0x010e\n L_0x00f4:\n if (r15 == 0) goto L_0x00fe\n int r10 = p005b.p291q.p292a.C5266a.m9790D1(r13)\n if (r6 != r10) goto L_0x00fe\n r10 = 1\n goto L_0x00ff\n L_0x00fe:\n r10 = r5\n L_0x00ff:\n d.a.a.a.y0.b.j1.b.f0 r11 = new d.a.a.a.y0.b.j1.b.f0\n r6 = r14[r6]\n r11.<init>(r8, r6, r9, r10)\n r0.add(r11)\n if (r7 <= r3) goto L_0x010c\n goto L_0x0152\n L_0x010c:\n r6 = r7\n goto L_0x00a2\n L_0x010e:\n java.lang.StringBuilder r13 = new java.lang.StringBuilder\n r13.<init>()\n java.lang.String r14 = \"No parameter with index \"\n r13.append(r14)\n r13.append(r6)\n r14 = 43\n r13.append(r14)\n r13.append(r1)\n java.lang.String r14 = \" (name=\"\n r13.append(r14)\n d.a.a.a.y0.f.d r14 = r12.getName()\n r13.append(r14)\n java.lang.String r14 = \" type=\"\n r13.append(r14)\n r13.append(r8)\n java.lang.String r14 = \") in \"\n r13.append(r14)\n r13.append(r2)\n java.lang.String r14 = \"@ReflectJavaMember\"\n r13.append(r14)\n java.lang.String r13 = r13.toString()\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r13 = r13.toString()\n r14.<init>(r13)\n throw r14\n L_0x0152:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p298d.p299a.p300a.p301a.p303y0.p304b.p309j1.p311b.C6204y.mo23417P(java.lang.reflect.Type[], java.lang.annotation.Annotation[][], boolean):java.util.List\");\n }",
"public interface RTTIClass {\n\n /**\n * Get the value of baseClass\n *\n * @return the value of baseClass\n */\n public Class getBaseClass();\n\n /**\n * Set the value of baseClass\n *\n * @param baseClass new value of baseClass\n */\n //public void setBaseClass(Class baseClass);\n\n\n /**\n * Return true if class implements interface\n */\n public boolean isInstanceOf(Class c);\n\n\n public RTTIClass getRTTIClassRoot();\n\n\n public Annotation getAnnotation(Class baseClass) throws Throwable;\n public Collection<Annotation> getAnnotations() throws Throwable;\n\n public Field getField(String name) throws Throwable;\n public Collection<Field> getFields() throws Throwable;\n\n public Method getMethod(String name, Class[] types) throws Throwable;\n public Collection<Method> getMethods() throws Throwable;\n\n\n /*\n * Info\n */\n public Collection<String> getBeanFields() throws Throwable;\n //public Collection<Method> getBeanFieldMethods() throws Throwable;\n\n\n /*\n * Select\n */\n public RTTIClass select(ClassFilter filter);\n\n \n}",
"@ReflectiveMethod(name = \"t_\", types = {})\n public void t_(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"private static void collectReadableProperties(Map<String, PojoProperty> map,\n Class<?> cls) {\n for (final Method m : cls.getDeclaredMethods()) {\n //if (isStaticOrPrivate(m)) continue;\n if (isStatic(m.getModifiers())) continue;\n if (1 != m.getParameterTypes().length)// get=0,set=1\n continue;\n Class<?> returnType = m.getReturnType();\n if (returnType == Object.class || returnType.getName().equals(\"groovy.lang.MetaClass\")) {\n continue;\n }\n Class<?> propType = m.getParameterTypes()[0];\n if (returnType == Void.TYPE && propType.getName().equals(\"groovy.lang.MetaClass\")) {\n continue;\n }\n\n String name = m.getName();\n String propName = null;\n String originalPropName = null;\n boolean isBool = false;\n if (name.startsWith(\"set\") && name.length() > 3) {\n originalPropName = name.substring(3);\n propName = decapitalize(originalPropName, true);\n if (propType == Boolean.TYPE) {\n isBool = true;\n }\n }\n if (propName == null) continue;\n\n String getMethodName = (isBool ? \"is\" : \"get\") + originalPropName;\n try {\n Field field;\n try {\n field = cls.getDeclaredField(propName);\n } catch (NoSuchFieldException e) {\n propName = decapitalize(originalPropName, false);\n field = cls.getDeclaredField(propName);\n }\n if (map.containsKey(propName))\n continue;\n\n m.setAccessible(true);\n Method getMethod;\n getMethod = cls.getDeclaredMethod(getMethodName);\n getMethod.setAccessible(true);\n\n PojoProperty rp = new PojoProperty(propName, propType);\n rp.setGetMethod(getMethod);\n rp.setSetMethod(m);\n rp.setField(field);\n map.put(propName, rp);\n } catch (NoSuchMethodException | NoSuchFieldException e) {\n //e.printStackTrace();\n logger.warn(String.format(\"实体方法:%s 或 字段:%s 不存在\", getMethodName, propName));\n }\n }\n\n for (final Field m : cls.getDeclaredFields()) {\n //if (isStaticOrPrivate(m)) continue;\n if(isStatic(m.getModifiers())) continue;\n String propName = m.getName();\n if (map.containsKey(propName)) continue;\n Class<?> returnType = m.getType();\n m.setAccessible(true);\n PojoProperty rp = new PojoProperty(propName, returnType);\n rp.setField(m);\n map.put(propName, rp);\n }\n }",
"public interface Text {\n \n /**\n * Method find name of class which object are instance\n * @return \n */\n String getStringClass();\n\n @Override\n public String toString();\n \n \n \n}",
"private ReflectionUtil()\n {\n }",
"@Override\n protected void prot() {\n }",
"@Test\n public void testSimpleReflectionObjectCycle() {\n final SimpleReflectionTestFixture simple = new SimpleReflectionTestFixture();\n simple.o = simple;\n assertEquals(this.toBaseString(simple) + \"[o=\" + this.toBaseString(simple) + \"]\", simple.toString());\n }",
"final void deriveDisAssemblerFunction() {\n\n if ( tryAsPart() ) {\n return;\n }\n\n tryFieldAndMethodReflection();\n }",
"void mo6504by(Object obj);",
"public interface ospector\n{\n\n public abstract void addAbstractTypeResolver(AbstractTypeResolver abstracttyperesolver);\n\n public abstract void addBeanDeserializerModifier(BeanDeserializerModifier beandeserializermodifier);\n\n public abstract void addBeanSerializerModifier(BeanSerializerModifier beanserializermodifier);\n\n public abstract void addDeserializationProblemHandler(DeserializationProblemHandler deserializationproblemhandler);\n\n public abstract void addDeserializers(Deserializers deserializers);\n\n public abstract void addKeyDeserializers(KeyDeserializers keydeserializers);\n\n public abstract void addKeySerializers(Serializers serializers);\n\n public abstract void addSerializers(Serializers serializers);\n\n public abstract void addTypeModifier(TypeModifier typemodifier);\n\n public abstract void addValueInstantiators(ValueInstantiators valueinstantiators);\n\n public abstract void appendAnnotationIntrospector(AnnotationIntrospector annotationintrospector);\n\n public abstract w getMapperVersion();\n\n public abstract s getOwner();\n\n public abstract TypeFactory getTypeFactory();\n\n public abstract void insertAnnotationIntrospector(AnnotationIntrospector annotationintrospector);\n\n public abstract boolean isEnabled(f f);\n\n public abstract boolean isEnabled(i i);\n\n public abstract boolean isEnabled(n n);\n\n public abstract boolean isEnabled(DeserializationFeature deserializationfeature);\n\n public abstract boolean isEnabled(MapperFeature mapperfeature);\n\n public abstract boolean isEnabled(SerializationFeature serializationfeature);\n\n public transient abstract void registerSubtypes(NamedType anamedtype[]);\n\n public transient abstract void registerSubtypes(Class aclass[]);\n\n public abstract void setClassIntrospector(ClassIntrospector classintrospector);\n\n public abstract void setMixInAnnotations(Class class1, Class class2);\n}",
"@Test\n public void testGetValue() throws Exception {\n\n Map<String, IMetaData<SampleMark>> name2MetaData;\n name2MetaData = factory.class2MetaDataByFullPath(Person.class);\n\n assertEquals(3, name2MetaData.size());\n\n for (Person p : persons) {\n\n Person.assertPerson(p,\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Person|lastname\").getValue(p),\n (Float) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Person|weight\").getValue(p),\n (Integer) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Person|age\").getValue(p));\n }\n\n name2MetaData = factory.class2MetaDataByFullPath(Driver.class);\n\n assertEquals(4, name2MetaData.size());\n\n for (Driver d : drivers) {\n\n Driver.assertDriver(d,\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Driver|lastname\").getValue(d),\n (Float) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Driver|weight\").getValue(d),\n (Integer) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Driver|age\").getValue(d),\n (Boolean) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Driver|hasDrivingLicense\").getValue(d));\n\n }\n\n name2MetaData = factory.class2MetaDataByFullPath(Car.class);\n\n assertEquals(10, name2MetaData.size());\n\n for (Car c : cars) {\n Driver.assertDriver(c.getDriver(),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|lastname\").getValue(c),\n (Float) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|weight\").getValue(c),\n (Integer) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|age\").getValue(c),\n (Boolean) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|hasDrivingLicense\").getValue(c));\n Driver.assertDriver((Driver) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver\").getValue(c),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|lastname\").getValue(c),\n (Float) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|weight\").getValue(c),\n (Integer) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|age\").getValue(c),\n (Boolean) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|hasDrivingLicense\").getValue(c));\n Engine.assertEngine(c.getEngine(),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|productName\").getValue(c));\n Engine.assertEngine((Engine) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine\").getValue(c),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|productName\").getValue(c));\n\n Oil.assertOil(c.getEngine().oil,\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|oil|vendorName\").getValue(c),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|oil|producentName\").getValue(c));\n Oil.assertOil((Oil) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|oil\").getValue(c),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|oil|vendorName\").getValue(c),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|oil|producentName\").getValue(c));\n }\n\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"private static void Demo6() {\n\t\tClass<?> class1 = null;\r\n\t\ttry {\r\n\t\t\tclass1 = Class.forName(\"CH16.SuperMan\");\r\n\t\t\tClass<?> superClass = class1.getSuperclass();\r\n\t\t\tSystem.out.println(\"===============================================\");\r\n\t\t\tField[] fields = class1.getDeclaredFields();\r\n\t\t\tfor (int i = 0; i < fields.length; i++) {\r\n\t\t\t\tSystem.out.println(\"类中的成员: \" + fields[i]);\r\n\t\t\t}\r\n\r\n\t\t\tMethod[] methods = class1.getDeclaredMethods();\r\n\t\t\tSystem.err.println(\"methods的长度:\" + methods.length);\r\n\t\t\tfor (int i = 0; i < methods.length; i++) {\r\n\t\t\t\tSystem.out.println(\"类中的方法: \" + methods[i]);\r\n\t\t\t\tSystem.out.println(\"函数名:\" + methods[i].getName());\r\n\t\t\t\tSystem.out.println(\"函数返回类型:\" + methods[i].getReturnType());\r\n\t\t\t\tSystem.out.println(\"函数访问修饰符:\" + Modifier.toString(methods[i].getModifiers()));\r\n\t\t\t\tSystem.out.println(\"函数代码写法: \" + methods[i]);\r\n\t\t\t}\r\n\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"@Override\n protected String getName() {return _parms.name;}",
"public abstract Object mo26777y();",
"public abstract String getObjectType();",
"public interface AccessibleClassParser\n{\n /**\n * Parses a Java-loaded class object to an AccessibleClass\n * \n * @param clazz\n * the class to parse\n * @return the parsed AccessibleClass\n */\n AccessibleClass parseAccessibleClass(Class<?> clazz);\n\n /**\n * Check whever the provided class name is said to be primitive\n * (Primitive_Single) or not (Object_Single)\n * \n * @param className\n * the class name\n * @return true if the type is primitive, false otherwise\n * @deprecated @see {@link PrimitiveTypeUtil}\n */\n @Deprecated\n boolean isPrimitiveType(String className);\n\n /**\n * Give the setter method name according to the field name\n * \n * @param name\n * the filed name\n * @return the setter name\n */\n String attributeToSetter(String name);\n\n /**\n * Give the getter method name according to the field name\n * \n * @param name\n * the field name\n * @return the getter name\n */\n String attributeToGetter(String name);\n\n /**\n * Give the getter method name according to the field name for boolean\n * values (is*())\n * \n * @param name\n * the boolean field name\n * @return the getter name\n */\n String booleanAttributeToGetter(String arg0);\n}",
"public String Mostrar() {\r\n Generic c = this.generic;\r\n String Ret = \"\";\r\n System.out.println(c.getClass().getName());\r\n Ret += c.getClass().getName() + \"\\n\";\r\n System.out.println(c.getClass().getSimpleName());\r\n Ret += c.getClass().getSimpleName() + \"\\n\";\r\n System.out.println(\"Numero de Metodos: \" + c.getClass().getMethods().length);\r\n Ret += \"Numero de Metodos: \" + c.getClass().getMethods().length;\r\n System.out.println(\"Is extended by: \" + c.getClass().getSuperclass().getSimpleName());\r\n Ret += \"Is extended by: \" + c.getClass().getSuperclass().getSimpleName() + \"\\n\";\r\n System.out.println(\"Numero de atributos: \" + c.getClass().getDeclaredFields().length);\r\n Ret += \"Numero de atributos: \" + c.getClass().getDeclaredFields().length + \"\\n\";\r\n System.out.println(\"Numero de atributos (Superclase) : \" + c.getClass().getSuperclass().getDeclaredFields().length);\r\n Ret += \"Numero de atributos (Superclase) : \" + c.getClass().getSuperclass().getDeclaredFields().length + \"\\n\";\r\n Field[] declaredFields = c.getClass().getDeclaredFields();\r\n Field[] SuperDeclaredFields = this.SuperDeclaredFields;\r\n for (int i = 0; i < SuperDeclaredFields.length; i++) {\r\n System.out.println(SuperDeclaredFields[i].getType().getSimpleName() + \" \" + SuperDeclaredFields[i].getName() + \";\");\r\n Ret += SuperDeclaredFields[i].getType().getSimpleName() + \" \" + SuperDeclaredFields[i].getName() + \";\";\r\n }\r\n for (int i = 0; i < declaredFields.length; i++) {\r\n System.out.println(declaredFields[i].getType().getSimpleName() + \" \" + declaredFields[i].getName() + \";\");\r\n Ret += declaredFields[i].getType().getSimpleName() + \" \" + declaredFields[i].getName() + \";\";\r\n }\r\n return Ret;\r\n }",
"public abstract void mo1184a(Object obj);",
"private static void Demo7() {\n\t\tClass<?> class1 = null;\r\n\t\ttry {\r\n\t\t\tclass1 = Class.forName(\"CH16.SuperMan\");\r\n\t\t\tSystem.out.println(\"Demo7: ========================================\");\r\n\t\t\ttry {\r\n\t\t\t\tMethod method = class1.getMethod(\"fly\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tmethod.invoke(class1.newInstance());\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (IllegalArgumentException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (InstantiationException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(\"调用有参方法walk(int m)\");\r\n\t\t\t\tmethod = class1.getMethod(\"walk\", int.class);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tmethod.invoke(class1.newInstance(), 100);\r\n\t\t\t\t} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException\r\n\t\t\t\t\t\t| InstantiationException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t} catch (NoSuchMethodException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (SecurityException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"private void referenceFrameExtractor(Object obj) throws IllegalAccessException, InvocationTargetException\n {\n Class clazz = obj.getClass();\n Method[] declaredMethods = clazz.getMethods();\n for (Method method : declaredMethods)\n {\n if (ReferenceFrame.class.isAssignableFrom(method.getReturnType()))\n {\n if (method.getParameterCount() == 0)\n {\n ReferenceFrame referenceFrame = (ReferenceFrame) method.invoke(obj);\n if(referenceFrame != null)\n {\n checkAndAddReferenceFrame(referenceFrame);\n }\n }\n else if (method.getParameterCount() == 1 && method.getParameterTypes()[0] == RobotSide.class)\n {\n for (RobotSide robotSide : RobotSide.values)\n {\n ReferenceFrame referenceFrame = (ReferenceFrame) method.invoke(obj, robotSide);\n if(referenceFrame != null)\n {\n checkAndAddReferenceFrame(referenceFrame);\n }\n }\n }\n else if (method.getParameterCount() == 1 && method.getParameterTypes()[0] == RobotQuadrant.class)\n {\n for (RobotQuadrant robotQuadrant : RobotQuadrant.values)\n {\n ReferenceFrame referenceFrame = (ReferenceFrame) method.invoke(obj, robotQuadrant);\n if(referenceFrame != null)\n {\n checkAndAddReferenceFrame(referenceFrame);\n }\n }\n }\n else if (method.getParameterCount() == 1 && method.getParameterTypes()[0] == RobotSextant.class)\n {\n for (RobotSextant robotSextant : RobotSextant.values)\n {\n ReferenceFrame referenceFrame = (ReferenceFrame) method.invoke(obj, robotSextant);\n if(referenceFrame != null)\n {\n checkAndAddReferenceFrame(referenceFrame);\n }\n }\n }\n }\n }\n }",
"public boolean match(ReflectClass classReflector);",
"@Test\n public void testReflectionArrayAndObjectCycle() {\n final Object[] objects = new Object[1];\n final SimpleReflectionTestFixture simple = new SimpleReflectionTestFixture(objects);\n objects[0] = simple;\n assertEquals(\n this.toBaseString(objects)\n + \"[{\"\n + this.toBaseString(simple)\n + \"[o=\"\n + this.toBaseString(objects)\n + \"]\"\n + \"}]\",\n ToStringBuilder.reflectionToString(objects));\n assertEquals(\n this.toBaseString(simple)\n + \"[o={\"\n + this.toBaseString(simple)\n + \"}]\",\n ToStringBuilder.reflectionToString(simple));\n }",
"@Test\npublic void testCalTransactionUTF() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = ResultService.getClass().getMethod(\"calTransactionUTF\", int.class, int.class, int.class, EstimationTransactionData.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/ \n}",
"static <T extends _type> T to(Class clazz, T _t) {\n //we need to do this b/c field declarations can be\n // @_final int x, y, z;\n // and this SINGLE FieldDeclaration represents (3) _field models\n // so, we only process the annotation once (the first one)\n Set<FieldDeclaration> fds = new HashSet<>();\n _t.toFields(_f -> {\n _field _fl = (_field)_f;\n if( _fl.node() != null\n && _fl.node().getParentNode().isPresent()\n && !fds.contains( _fl.getFieldDeclaration() ) ) {\n to(clazz, _fl );\n fds.add( _fl.getFieldDeclaration() );\n /*\n try {\n Field f = clazz.getDeclaredField(((_field) _f).getName());\n applyAllAnnotationMacros(_fl, f);\n fds.add( _fl.getFieldDeclaration() );\n } catch( NoSuchFieldException nsfe ){\n throw new _jDraftException(\"Unable to in reflective Field \"+ _fl+\" \");\n }\n */\n }\n });\n //We process CONSTRUCTORS \n if (_t instanceof _constructor._withConstructors) {\n ((_constructor._withConstructors) _t).toConstructors(_c -> to(clazz, (_constructor)_c));\n }\n //Process methods\n if (_t instanceof _method._withMethods) {\n ((_method._withMethods) _t).toMethods(_m -> {\n _method _mm = ((_method) _m);\n\n to( clazz, _mm);\n /*\n Method mm = null;\n List<Method> ms = Arrays.stream(clazz.getDeclaredMethods())\n .filter(m -> m.getName().equals(_mm.getName())).collect(Collectors.toList());\n for (int i = 0; i < ms.size(); i++) {\n if (_mm.hasParametersOfType(ms.get(i).getParameterTypes())) {\n mm = ms.get(i);\n break;\n }\n }\n if( mm == null){\n throw new _jDraftException(\"Could not find method \"+ _mm + System.lineSeparator()+\" for class \"+ clazz.getName() );\n }\n\n Parameter[] ps = mm.getParameters();\n for(int i=0;i<ps.length; i++){\n applyAllAnnotationMacros(_mm.getParameter(i), ps[i] );\n }\n //apply ANNOTATIONS to the method AFTER PARAMETERS\n applyAllAnnotationMacros(_mm, mm );\n */\n });\n }\n\n Class[] declaredClazzes = clazz.getDeclaredClasses();\n List<Class> nestedClasses = Arrays.stream(declaredClazzes).collect(Collectors.toList());\n\n //process nested classes\n _t.toInnerTypes(_nt -> {\n //System.out.println( \"IN NESTED CLASS \");\n Optional<Class> foundClass = nestedClasses.stream().filter(c -> c.getSimpleName().equals(((_type) _nt).getName())).findFirst();\n if (!foundClass.isPresent()) {\n throw new _jdraftException(\"Could not find class for nested _type\" + _nt);\n }\n to( foundClass.get(), (_type)_nt);\n });\n\n //the last thing to do is to run on the top level _type\n return applyAllAnnotationMacros(_t, clazz);\n }",
"private void load() {\n\t\ttry {\r\n\t\t\tA a = new A();\r\n\t\t\ta.action();\r\n\t\t\tSystem.out.println(\"********下面为静态*********\");\r\n\t\t\tString name = a.getClass().getName();\r\n//\t\t\tClass aClass = Class.forName(\"com.guonl.dynamic.A\");\r\n\t\t\tClass<?> aClass = Class.forName(name);\r\n\t\t\tIC ic = (IC)aClass.newInstance();\r\n\t\t\tic.action();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}",
"abstract Object build();",
"private Object getValue (JField jf, Object obj) throws Exception {\n Class thisClass = obj.getClass();\n Object value = null;\n Class c = thisClass;\n boolean done = false;\n while (!done) {\n try {\n value = c.getDeclaredMethod (\"get\" + jf.getGetSet(), null).invoke(obj, null);\n done = true;\n } catch (NoSuchMethodException e) {\n c = c.getSuperclass();\n if (c == null) {\n\t\t\t\t\tSystem.out.println (\"Unable to find: \" + \"get\" + jf.getGetSet() + \" in class: \" + thisClass.getName());\n throw e;\n\t\t\t\t}\n }\n }\n\n return value;\n }",
"private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}",
"@Override\n public List<KParameter> getParameters() {\n return getReflected().getParameters();\n }",
"Reproducible newInstance();",
"private static <T> void LessonReflectionAndGenerics(Class<T> genericClass) {\n\n System.out.println(\"Full Name: \" + genericClass.getName());\n System.out.println(\"Simple Name: \" + genericClass.getSimpleName());\n\n //Get all the fields from class\n for(Field field: genericClass.getDeclaredFields()) {\n System.out.println(\"Field: \" + field.getName() + \" - Type: \" + field.getType());\n }\n //Get all the methods from class\n for(Method method: genericClass.getDeclaredMethods()) {\n System.out.println(\"Method: \" + method.getName());\n }\n }",
"default <T> T setAllFields(T object) {\n Field[] fields = object.getClass().getDeclaredFields();\n\n for (Field field : fields) {\n field.setAccessible(true);\n\n if (Modifier.isStatic(field.getModifiers()) || Modifier.isTransient(field.getModifiers())) continue;\n\n try {\n set(field.getName(), field.get(object));\n } catch (IllegalAccessException e) {\n //hopefully we will be fine\n e.printStackTrace();\n }\n }\n\n return object;\n }",
"private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}",
"@Override\n protected void getExras() {\n }",
"public abstract Object mo1185b();",
"@Override\n\tpublic void reflectWith(AttributeReflector reflector) {\n\n\t}",
"public interface Serial\r\n{\r\n// use string constants to enforce consistency\r\n// between readers and writers\r\npublic static final String OBJECT = \"object\";\r\npublic static final String FIELD = \"field\";\r\npublic static final String NAME = \"name\";\r\npublic static final String TYPE = \"type\";\r\npublic static final String VALUE = \"value\";\r\npublic static final String ARRAY = \"array\";\r\npublic static final String LENGTH = \"length\";\r\npublic static final String ID = \"id\";\r\npublic static final String IDREF = \"idref\";\r\n\r\n// next is used to disambiguate shadowed fields\r\npublic static final String DECLARED = \"declaredClass\";\r\n\r\n\r\npublic static final Class[] primitiveArrays =\r\n new Class[]{\r\n int[].class,\r\n boolean[].class,\r\n byte[].class,\r\n short[].class,\r\n long[].class,\r\n char[].class,\r\n float[].class,\r\n double[].class\r\n };\r\n\r\n// now declare the wrapper classes for each primitive object type\r\n// note that this order must correspond to the order in primitiveArrays\r\n\r\n// there may be a better way of doing this that does not involve\r\n// wrapper objects (e.g. Integer is the wrapper of int), but I've\r\n// yet to find it\r\n// note that the creation of wrapper objects is a significant\r\n// overhead\r\n// example: reading an array of 1 million int (all zeros) takes\r\n// about 900ms using reflection, versus 350ms hard-coded\r\npublic static final Class[] primitiveWrappers =\r\n new Class[]{\r\n Integer.class,\r\n Boolean.class,\r\n Byte.class,\r\n Short.class,\r\n Long.class,\r\n Character.class,\r\n Float.class,\r\n Double.class\r\n };\r\n\r\npublic static final Class[] primitives =\r\n new Class[]{\r\n int.class,\r\n boolean.class,\r\n byte.class,\r\n short.class,\r\n long.class,\r\n char.class,\r\n float.class,\r\n double.class\r\n };\r\n}",
"private static void Demo4() {\n\t\tClass<?> class1 = null;\r\n\t\tPerson person1 = null;\r\n\t\tPerson person2 = null;\r\n\t\ttry {\r\n\t\t\tclass1 = Class.forName(\"CH16.Person\");\r\n\t\t\tConstructor<?>[] con = class1.getConstructors();\r\n\t\t\ttry {\r\n\t\t\t\tperson1 = (Person) con[0].newInstance(20, \"Hongten\");\r\n\t\t\t\tSystem.out.println(person1.getAge() + \";\" + person1.getName());\r\n\t\t\t\tperson2 = (Person) con[1].newInstance();\r\n\t\t\t\tperson2.setAge(100);\r\n\t\t\t\tperson2.setName(\"haha\");\r\n\t\t\t\tSystem.out.println(person2.getAge() + \";\" + person2.getName());\r\n\r\n\t\t\t} catch (InstantiationException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IllegalArgumentException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"private Object m16123a(Class cls, String str, Class[] clsArr, Object[] objArr) {\n Method a;\n if (cls == null || m16125a((Object) str) || (a = m16124a(cls, str, clsArr)) == null) {\n return null;\n }\n a.setAccessible(true);\n try {\n return a.invoke((Object) null, objArr);\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n return null;\n } catch (InvocationTargetException e2) {\n e2.printStackTrace();\n return null;\n }\n }",
"Object yangAugmentedInfo(Class classObject);",
"Object yangAugmentedInfo(Class classObject);",
"void mo3207a(Object obj);",
"@Test\n public void testSelfInstanceTwoVarsReflectionObjectCycle() {\n final SelfInstanceTwoVarsReflectionTestFixture test = new SelfInstanceTwoVarsReflectionTestFixture();\n assertEquals(this.toBaseString(test) + \"[otherType=\" + test.getOtherType().toString() + \",typeIsSelf=\" + this.toBaseString(test) + \"]\", test.toString());\n }",
"private void setBeanReflect(DeployBeanDescriptor<?> desc) {\n // Set the BeanReflectGetter and BeanReflectSetter that typically\n // use generated code. NB: Due to Bug 166 so now doing this for\n // abstract classes as well.\n BeanPropertiesReader reflectProps = new BeanPropertiesReader(desc.getBeanType());\n desc.setProperties(reflectProps.getProperties());\n for (DeployBeanProperty prop : desc.propertiesAll()) {\n String propName = prop.getName();\n Integer pos = reflectProps.getPropertyIndex(propName);\n if (pos == null) {\n if (isPersistentField(prop)) {\n throw new IllegalStateException(\n \"If you are running in an IDE with enhancement plugin try a Build -> Rebuild Project to recompile and enhance all entity beans. \" +\n \"Error - property \" + propName + \" not found in \" + reflectProps + \" for type \" + desc.getBeanType());\n }\n } else {\n final int propertyIndex = pos;\n prop.setPropertyIndex(propertyIndex);\n prop.setGetter(beanPropertyAccess.getGetter(propertyIndex));\n prop.setSetter(beanPropertyAccess.getSetter(propertyIndex));\n if (prop.isAggregation()) {\n prop.setAggregationPrefix(DetermineAggPath.manyPath(prop.getRawAggregation(), desc));\n }\n }\n }\n }",
"public abstract Class getEntidadPrincipal();",
"Class<Data> mo18919a();",
"@Test\r\n public void testGetterMethodSucess() throws Exception {\r\n Method m = GetterMethod.getGetter(Tumor.class, \"tumorId\");\r\n assertNotNull(m);\r\n assertEquals(\"getTumorId\", m.getName());\r\n }",
"private void parseClass(Class<?> clazz,\n DBSerializationInfo serializationInfo)\n throws DBSerializationException {\n\n System.out.println(\"\\n\\nCurrent Class: \" + clazz);\n\n if (clazz.getName().equals(\n \"org.jutility.serialization.database.BaseProperty\")) {\n throw new NullPointerException();\n }\n\n // Class is an element type:\n // Retrieving database schema and table for this class.\n if (serializationInfo.isElementType()) {\n DBElementType typeAnnotation = clazz\n .getAnnotation(DBElementType.class);\n\n\n // System.out.println(\" Database Table: \" +\n // typeAnnotation.table());\n serializationInfo.setTable(typeAnnotation.table());\n\n\n for (String parameter : typeAnnotation.constructorParameters()) {\n\n serializationInfo.getConstructorParameters().add(parameter);\n\n }\n // System.out.println(\"ConstructorParameters: \"\n // + serializationInfo.getConstructorParameters());\n }\n // Class is a value type:\n // Retrieving database schema and table for this class.\n else if (serializationInfo.isValueType()) {\n\n // System.out.println(\" VALUE TYPE \");\n\n DBValueType typeAnnotation = clazz.getAnnotation(DBValueType.class);\n\n for (String parameter : typeAnnotation.constructorParameters()) {\n\n serializationInfo.getConstructorParameters().add(parameter);\n }\n\n }\n\n\n // Retrieving all fields defined in this class.\n // This does not include any inherited fields.\n // Fields are ideally only used as fall-back.\n List<Field> fields = Arrays.asList(clazz.getDeclaredFields());\n\n if (fields.size() == 0) {\n // System.out.println(\" Class \" + clazz.getName()\n // + \" doesn't have fields\");\n }\n else {\n // System.out.println(\" Fields:\");\n // Parsing fields.\n this.parseFields(fields, serializationInfo);\n }\n\n\n // Retrieving all methods defined in this class.\n // This does not include any inherited methods.\n // Methods (getters/setters) are preferred to field access.\n List<Method> methods = Arrays.asList(clazz.getDeclaredMethods());\n\n if (methods.size() == 0) {\n // System.out.println(\" Class \" + clazz.getName()\n // + \" doesn't have methods\");\n }\n else {\n // System.out.println(\" Methods:\");\n // Parsing methods.\n this.parseMethods2(methods, serializationInfo);\n }\n }",
"@Override\n public void perish() {\n \n }",
"Object getTipo();",
"Class<Data> mo12943a();",
"public org.python.Object __getattribute__(java.lang.String name);",
"@Override\n String applicable(Method[] getters) throws InvalidObjectException {\n Class targetClass = getTargetClass();\n try {\n Method fromMethod = targetClass.getMethod(\"from\", CompositeData.class);\n\n if (!Modifier.isStatic(fromMethod.getModifiers())) {\n final String msg = \"Method from(CompositeData) is not static\";\n throw new InvalidObjectException(msg);\n }\n\n if (fromMethod.getReturnType() != getTargetClass()) {\n final String msg = \"Method from(CompositeData) returns \"\n + typeName(fromMethod.getReturnType()) + \" not \" + typeName(targetClass);\n throw new InvalidObjectException(msg);\n }\n\n this.fromMethod = fromMethod;\n return null;\n } catch (InvalidObjectException e) {\n throw e;\n } catch (Exception e) {\n return \"no method from(CompositeData)\";\n }\n }",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"public static void main(String[] args){\n\n FieldPro pro=new FieldPro(1,1,\"李斯特\",\"李斯特\");\n FieldPro proTwo=new FieldPro(1,1,\"李斯特\",\"李斯特\");\n BaseGetName<FieldPro> getName=new BaseGetName();\n String s= null;\n try {\n s = getName.getFunctionName(FieldPro::getAddrs);\n System.out.println(\"---\"+s);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public interface Representation // C# has public abstract class\n{\n /// <summary>\n /// Creates a new type object of this representation, and\n /// associates it with the given HOW. Also sets up a new\n /// representation instance if needed.\n /// </summary>\n /// <param name=\"HOW\"></param>\n /// <returns></returns>\n RakudoObject type_object_for(ThreadContext tc, RakudoObject how);\n\n /// <summary>\n /// Creates a new instance based on the type object.\n /// </summary>\n /// <param name=\"WHAT\"></param>\n /// <returns></returns>\n RakudoObject instance_of(ThreadContext tc, RakudoObject what);\n\n /// <summary>\n /// Checks if a given object is defined.\n /// </summary>\n /// <param name=\"Obj\"></param>\n /// <returns></returns>\n boolean defined(ThreadContext tc, RakudoObject obj);\n\n /// <summary>\n /// Gets the current value for an attribute.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <returns></returns>\n RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);\n\n /// <summary>\n /// Gets the current value for an attribute, obtained using the\n /// given hint.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <param name=\"Hint\"></param>\n /// <returns></returns>\n RakudoObject get_attribute_with_hint(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, int hint);\n\n /// <summary>\n /// Binds the given value to the specified attribute.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <param name=\"Value\"></param>\n void bind_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, RakudoObject value);\n\n /// <summary>\n /// Binds the given value to the specified attribute, using the\n /// given hint.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <param name=\"Hint\"></param>\n /// <param name=\"Value\"></param>\n void bind_attribute_with_hint(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, int hint, RakudoObject Value);\n\n /// <summary>\n /// Gets the hint for the given attribute ID.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <returns></returns>\n int hint_for(ThreadContext tc, RakudoObject classHandle, String name);\n\n /// <summary>\n /// Used with boxing. Sets an integer value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n void set_int(ThreadContext tc, RakudoObject classHandle, int Value);\n\n /// <summary>\n /// Used with boxing. Gets an integer value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n int get_int(ThreadContext tc, RakudoObject classHandle);\n\n /// <summary>\n /// Used with boxing. Sets a floating point value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n void set_num(ThreadContext tc, RakudoObject classHandle, double Value);\n\n /// <summary>\n /// Used with boxing. Gets a floating point value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n double get_num(ThreadContext tc, RakudoObject classHandle);\n\n /// <summary>\n /// Used with boxing. Sets a string value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n void set_str(ThreadContext tc, RakudoObject classHandle, String Value);\n\n /// <summary>\n /// Used with boxing. Gets a string value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n String get_str(ThreadContext tc, RakudoObject classHandle);\n}",
"@Test\n public void testSelfInstanceVarReflectionObjectCycle() {\n final SelfInstanceVarReflectionTestFixture test = new SelfInstanceVarReflectionTestFixture();\n assertEquals(this.toBaseString(test) + \"[typeIsSelf=\" + this.toBaseString(test) + \"]\", test.toString());\n }",
"abstract public T getInfo();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@ReflectiveMethod(name = \"d\", types = {})\n public void d(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"public void mo1774a(Object obj) {\n }",
"@ReflectiveMethod(name = \"E\", types = {})\n public void E(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"private static boolean getInternalPublicMethods(Class<?> paramClass, Map<Signature, Method> paramMap) {\n/* 143 */ Method[] arrayOfMethod = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 150 */ if (!Modifier.isPublic(paramClass.getModifiers())) {\n/* 151 */ return false;\n/* */ }\n/* 153 */ if (!ReflectUtil.isPackageAccessible(paramClass)) {\n/* 154 */ return false;\n/* */ }\n/* */ \n/* 157 */ arrayOfMethod = paramClass.getMethods();\n/* 158 */ } catch (SecurityException securityException) {\n/* 159 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 168 */ boolean bool = true; byte b;\n/* 169 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 170 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 171 */ if (!Modifier.isPublic(clazz.getModifiers())) {\n/* 172 */ bool = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 177 */ if (bool) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 182 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 183 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 190 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 191 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 192 */ if (paramClass.equals(clazz)) {\n/* 193 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ }\n/* */ } \n/* */ } \n/* 197 */ return bool;\n/* */ }",
"public static void main(String[] args) throws Exception {\n\n Class<?> rcc = Class.forName(\"com.flyex.testNoUse.ReflectTest\");\n\n Object rccc = rcc.newInstance();\n Object rcccc = rcc.newInstance();\n\n\n }",
"String getInstanceOfClass();",
"public static void main(String[] args) {\n\t\t\r\n\t\tClass<?> class1 = null;\r\n Class<?> class2 = null;\r\n Class<?> class3 = null;\r\n // 一般采用这种形式\r\n try {\r\n\t\t\tclass1 = Class.forName(\"net.xsoftlab.baike.TestReflect\");\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n// class2 = new TestReflect().getClass();\r\n// class3 = TestReflect.class;\r\n System.out.println(\"类名称 \" + class1.getName());\r\n System.out.println(\"类名称 \" + class2.getName());\r\n System.out.println(\"类名称 \" + class3.getName());\r\n\r\n}",
"private ReflectionResponse(Builder builder) {\n super(builder);\n }",
"protected void writeObjectByMethods(UBJOutputStream out, String name,\n\t\t\tClass<?> type, Object obj) throws IOException {\n\t\tif (name != null && sstack.peek() != ScopeType.ARRAY && !name.isEmpty())\n\t\t\tout.writeString(name);\n\n\t\t// Check cache for existing filtered method list.\n\t\tList<MethodCacheElement> methodList = methodCache.get(type);\n\n\t\t// Filter and cache field list if we didn't already.\n\t\tif (methodList == null) {\n\t\t\t// Get all public, inherited methods.\n\t\t\tMethod[] methods = type.getMethods();\n\t\t\tmethodList = new ArrayList<MethodCacheElement>(methods.length);\n\n\t\t\t// Filter the methods down to just the ones we want to map.\n\t\t\tfor (int i = 0; i < methods.length; i++) {\n\t\t\t\tMethod m = methods[i];\n\t\t\t\tint mods = m.getModifiers();\n\n\t\t\t\t// Skip static, transient, synthetic or methods that take args.\n\t\t\t\tif (Modifier.isStatic(mods) || Modifier.isTransient(mods)\n\t\t\t\t\t\t|| m.isSynthetic() || m.getParameterTypes().length != 0)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tint j = 0;\n\t\t\t\tString mName = m.getName();\n\n\t\t\t\t/*\n\t\t\t\t * We need to normalize the method name into a proper property\n\t\t\t\t * name. First we need to find where the prefix is to chop\n\t\t\t\t * off...\n\t\t\t\t */\n\t\t\t\tif (mName.startsWith(\"is\"))\n\t\t\t\t\tj = 2;\n\t\t\t\telse if (mName.startsWith(\"get\") || mName.startsWith(\"has\")\n\t\t\t\t\t\t|| mName.startsWith(\"can\"))\n\t\t\t\t\tj = 3;\n\n\t\t\t\t/*\n\t\t\t\t * Skip mapping this property totally if the method name isn't\n\t\t\t\t * long enough to be used as a property name (e.g. the method\n\t\t\t\t * name is just \"get\" or \"is\" and not something like \"getAge\" or\n\t\t\t\t * \"isRegistered\".\n\t\t\t\t */\n\t\t\t\tif (j >= mName.length())\n\t\t\t\t\tcontinue;\n\n\t\t\t\t/*\n\t\t\t\t * Now we set the property name to the method's name with the\n\t\t\t\t * prefix chopped and the first char lowercased.\n\t\t\t\t */\n\t\t\t\tmName = Character.toLowerCase(mName.charAt(j))\n\t\t\t\t\t\t+ mName.substring(j + 1);\n\n\t\t\t\tmethodList.add(new MethodCacheElement(m, mName));\n\t\t\t}\n\t\t}\n\n\t\tout.writeObjectHeader(methodList.size());\n\n\t\t// Enter object scope\n\t\tsstack.push(ScopeType.OBJECT);\n\n\t\t// Write out the values for each method we are mapping.\n\t\tfor (int i = 0, s = methodList.size(); i < s; i++) {\n\t\t\tMethodCacheElement cacheElement = methodList.get(i);\n\t\t\tObject mValue = null;\n\n\t\t\ttry {\n\t\t\t\t// Safely reflect the method value.\n\t\t\t\tmValue = cacheElement.method.invoke(obj);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tdispatchWrite(out, cacheElement.name, mValue);\n\t\t}\n\n\t\t// Exit object scope\n\t\tsstack.pop();\n\t}",
"public abstract String mo83558a(Object obj);",
"@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}",
"@Test\n\tpublic void testClassHasReverseEachMethod() {\n\t\t// EDIT THESE TO MATCH YOUR METHOD\n\t\tmethodName = \"reverse\";\n\t\targTypes = \"\";\n\t\treturnType = \"int[]\";\n\t\t// END EDIT\n\t\t// class exists\n\t\ttry {\n\t\t\tPackage pkg = getClass().getPackage();\n\t\t\tString path = pkg == null ? \"\" : pkg.getName() + \".\";\n\t\t\tcls = Class.forName(path + className);\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tfail(\"File \\\"\" + className + \".class\\\" doesn't have a \\\"\" + className\n\t\t\t\t\t+ \"\\\" class. (is the class name spelled right?)\");\n\t\t}\n\n\t\t// class has method\n\t\ttry {\n\t\t\t// EDIT HERE TO GIVE PARAMETER TYPES\n\t\t\tmethod = cls.getMethod(methodName, int[].class);\n\t\t\t// END EDIT\n\t\t} catch (NoSuchMethodException | SecurityException e) {\n\t\t\tfail(\"Class \\\"\" + className + \"\\\" doesn't have a \\\"\" + methodName + \"(\" + argTypes\n\t\t\t\t\t+ \")\\\" method. (is the method name spelled right? are its parameters correct?)\");\n\t\t}\n\t\tinvokation = className + \".\" + methodName + \"(\" + argTypes + \")\";\n\t}",
"public abstract Class getDescriptedClass();",
"protected Method getASetMethod (Class c, String methodName, Class paramClass) throws Exception {\n Method m = null;\n\t\t\tClass origClass = c;\n while (m == null) {\n try {\n\t\t\t\t\t// Class paramClass = getAClass (paramClassName);\n\n m = c.getDeclaredMethod(methodName, new Class[] {paramClass});\n } catch (Exception e) {\n c = c.getSuperclass();\n if (c == null) {\n\t\t\t\t\t\tSystem.out.println (\"Unable to find: \" + methodName + \" (\"\n\t\t\t\t\t\t\t\t\t\t\t+paramClass.getName () +\")in class: \" \n\t\t\t\t\t\t\t\t\t\t\t+ origClass.getName());\n\t\t\t\t\t\tthrow e;\n\t\t\t\t\t}\n }\n }\n return m;\n }"
]
| [
"0.6393212",
"0.63405454",
"0.62463224",
"0.61574745",
"0.6100095",
"0.6079614",
"0.60552514",
"0.59400344",
"0.59400344",
"0.58531976",
"0.5784382",
"0.577261",
"0.5757619",
"0.5741429",
"0.5696891",
"0.5671249",
"0.56331044",
"0.5535513",
"0.55266213",
"0.55251855",
"0.5514118",
"0.55129147",
"0.55060744",
"0.5502101",
"0.54874897",
"0.54845107",
"0.5480966",
"0.54803485",
"0.54790634",
"0.5410923",
"0.540823",
"0.54007953",
"0.53982776",
"0.5370985",
"0.5368343",
"0.53670657",
"0.5358859",
"0.53512436",
"0.5344414",
"0.534176",
"0.5340318",
"0.5340242",
"0.53335595",
"0.53310335",
"0.53256416",
"0.53190935",
"0.53115314",
"0.5309163",
"0.5307471",
"0.5305904",
"0.5301817",
"0.5295805",
"0.5290394",
"0.5286071",
"0.52815294",
"0.52796364",
"0.52778",
"0.5275819",
"0.5272379",
"0.52540535",
"0.52505124",
"0.52479154",
"0.52402407",
"0.52390563",
"0.5238781",
"0.5236634",
"0.52290887",
"0.52232605",
"0.52232605",
"0.521216",
"0.5208103",
"0.520286",
"0.51961327",
"0.5191115",
"0.51901925",
"0.51846445",
"0.51803017",
"0.5176338",
"0.51724046",
"0.5171227",
"0.51677436",
"0.5156974",
"0.5155373",
"0.5152478",
"0.5151002",
"0.51477975",
"0.5141076",
"0.51392025",
"0.5138167",
"0.5138163",
"0.51363564",
"0.513629",
"0.5133653",
"0.5123678",
"0.5117849",
"0.5113535",
"0.5112108",
"0.5098741",
"0.5097143",
"0.5095496",
"0.50936043"
]
| 0.0 | -1 |
Notify on system volume status changed | public static void notifySysVolChanged(int flag) {
for (BaseFragActivity act : mActs.values()) {
if (act != null) {
act.onSysVolChanged(flag);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void volumeChanged(MPDStatus mpdStatus, int oldVolume) {\n\t\t\n\t}",
"@Override\n \tpublic void onUpdateVolume(double arg0) {\n \t}",
"public void addVolumeChangeListener(VolumeChangeListener listener);",
"public void requestUpdateVolume(int delta) {\n }",
"@Override\n \tpublic void onSetVolume(double arg0) {\n \t}",
"public String getVolumeStatus() {\n return this.volumeStatus;\n }",
"public void setVolumeStatus(String volumeStatus) {\n this.volumeStatus = volumeStatus;\n }",
"@Override\n public void onSetVolume(int result) {\n Log.d(\"DLNA\", \"onSetVolume result:\" + result);\n }",
"void onVolumeChanged(Consumer<Boolean> listener) {\n volumeChangedListeners.add(listener);\n }",
"private void notifyFlingListener(String applicationStatus, double volume,\n\t\t\tboolean isMute) {\n\t\tboolean hasChange = false;\n\t\tif (!(DoubleAndLongConverter.compare(applicationStatus,\n\t\t\t\tmApplicationStatus))) {\n\t\t\tmApplicationStatus = applicationStatus;\n\t\t\thasChange = true;\n\t\t}\n\t\tif ((mFlingListener != null) && (hasChange || mFirstStatusUpdate)) {\n\t\t\tmFlingListener.onApplicationStatusChanged();\n\t\t}\n\t\thasChange = false;\n\t\tif (volume != mVolume) {\n\t\t\tmVolume = volume;\n\t\t\thasChange = true;\n\t\t}\n\t\tif (isMute != mIsMute) {\n\t\t\tmIsMute = isMute;\n\t\t\thasChange = true;\n\t\t}\n\t\tmLogUtil.logd(\"hasChange=%b, mFirstStatusUpdate=%b\", new Object[] {\n\t\t\t\tBoolean.valueOf(hasChange), Boolean.valueOf(mFirstStatusUpdate) });\n\t\tif ((mFlingListener != null) && (hasChange || mFirstStatusUpdate)) {\n\t\t\tmFlingListener.onVolumeChanged();\n\t\t}\n\t\tmFirstStatusUpdate = false;\n\t}",
"private void volumeChangeCallback(int volume, int ctype) {\n Message msg = mHandler.obtainMessage(MESSAGE_VOLUME_CHANGED, volume, ctype);\n mHandler.sendMessage(msg);\n }",
"@JsAccessible\n public void onVolumeChanged(double volume, boolean muted) {\n volumeChangedListeners.forEach(listener -> listener.accept(muted));\n }",
"@Override\r\n\tpublic void volumeUp() {\n\t\tSystem.out.println(\"ig tv volume on\");\r\n\r\n\t}",
"@Override\r\n\tpublic void changeVolume(int volume) {\n\t\tSystem.out.println(\"볼륨을 조절하다\");\r\n\t}",
"private void registerVolumeChangeBroadcast() {\n\t\tmVolumeReceiver = new MyVolumeReceiver();\n\t\tIntentFilter filter = new IntentFilter();\n\t\tfilter.addAction(\"android.media.VOLUME_CHANGED_ACTION\");\n\t\tregisterReceiver(mVolumeReceiver, filter);\n\t}",
"public void updateVolume() {\n\t\tMixer.Info[] mixerInfos = AudioSystem.getMixerInfo();\n\n\t\tfor (Mixer.Info mixerInfo : mixerInfos) {\n\t\t\tMixer mixer = AudioSystem.getMixer(mixerInfo);\n\t\t\tLine.Info[] lineInfos = mixer.getTargetLineInfo();\n\n\t\t\tfor (Line.Info lineInfo : lineInfos) {\n\t\t\t\ttry {\n\t\t\t\t\tLine line = mixer.getLine(lineInfo);\n\t\t\t\t\tline.open();\n\t\t\t\t\tif (line.isControlSupported(FloatControl.Type.VOLUME)) {\n\t\t\t\t\t\tFloatControl volumeControl = (FloatControl) line.getControl(FloatControl.Type.VOLUME);\n\t\t\t\t\t\tvolumeControl.setValue((float) volume);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void notifyApplicationStatusOrVolumeChanged(\n\t\t\t\t\tfinal String applicationStatus, final double volume,\n\t\t\t\t\tfinal boolean isMute) {\n\t\t\t\tmHandler.post(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tnotifyFlingListener(applicationStatus, volume, isMute);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}",
"boolean hasVolume();",
"@Override\r\n public void onDeviceStatusChange(GenericDevice dev, PDeviceHolder devh,\r\n PHolderSetter status) {\n\r\n }",
"@Override\r\n\tpublic void volume() {\n\t\tSystem.out.println(\"Turn up\");\r\n\t\t\r\n\t}",
"public void volumeUp(){\n Intent intent = new Intent(getApplicationContext(), TouchController.class);\n intent.setAction(Constant.ACTION_VOLUME_UP);\n startService(intent);\n }",
"void onStorageVolumeMounted(@NonNull String volumeUuid, boolean fingerprintChanged);",
"void setRemainingVolume(int newRemainingVolume) throws Exception;",
"public void increaseVolume()\r\n {\r\n volume++;\r\n }",
"public void setVolume(int volume);",
"public void increaseVolume() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.INCREASE_VOLUME));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.INCREASE_VOLUME) {\n isIncreasingVolume = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n };\n }",
"@Override\n\tpublic void volumeUp() {\n\t\tSystem.out.println(\"samsongTV volumeUp\");\n\n\t}",
"public long getPropertyVolume();",
"private void sendDeviceStatus() {\n if (hasRecover && zWaveSubDevice != null) {\n ZWaveDeviceEvent zde = new ZWaveDeviceEvent();\n try {\n PropertyUtils.copyProperties(zde, zWaveSubDevice.getZwavedevice());\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n zde.setReport(zrb.getReport());\n zde.setEventtime(new Date());\n\n JMSUtil.sendmessage(IRemoteConstantDefine.WARNING_TYPE_DEVICE_STATUS, zde);\n }\n }",
"@Test\n public void changeVolume() throws TimeoutException {\n final int volume = 16;\n expandPanel();\n\n onView(withId(R.id.vli_seek_bar)).perform(ViewActions.slideSeekBar(volume));\n\n onView(withId(R.id.vli_seek_bar)).check(matches(withProgress(volume)));\n onView(withId(R.id.vli_volume_text)).check(matches(withText(String.valueOf(volume))));\n\n getConnectionHandlerManager().waitForMethodHandled(Application.SetVolume.METHOD_NAME, 10000);\n assertTrue(\"applicationHandler volume: \"+ getApplicationHandler().getVolume()\n + \" != \" + volume, getApplicationHandler().getVolume() == volume);\n }",
"public int getVolume();",
"int getVolume();",
"int getVolume();",
"@Override\n\t\tpublic void onReceive(Context arg0, Intent arg1) {\n\t\t\tString action = arg1.getAction();\n\t\t\tLog.v(TAG, \"action: \" + arg1.getAction());\n\t\t\tif(action.equals(\"android.media.VOLUME_CHANGED_ACTION\")){\n\t\t\t\tsystem_sound = audio.getStreamVolume(AudioManager.STREAM_RING) ;// 当前的媒体音量\n\t\t\t\tFyLog.d(TAG, \"the system_sound is: \" + system_sound);\n\t\t\t\tif(system_sound != sound.getProgress())\n\t\t\t\t\tsound.setProgress(system_sound);\n\t\t\t}\n\t\t}",
"public void setVolume(int v) {\n volume = v;\n }",
"void setCancelledVolume(int newCancelledVolume) throws Exception;",
"public void increaseVolume() {\r\n\t\tvolume++;\r\n\t}",
"public void setVolume(int level);",
"@Test\n public void setVolume() {\n final int volume = 16;\n\n getApplicationHandler().setVolume(volume, true);\n\n assertTrue(getApplicationHandler().getVolume() == volume);\n expandPanel();\n onView(withId(R.id.vli_seek_bar)).check(matches(withProgress(volume)));\n onView(withId(R.id.vli_volume_text)).check(matches(withText(String.valueOf(volume))));\n }",
"@Override\n\tpublic void calcularVolume() {\n\t\t\n\t}",
"public void statusRegisterUpdated()\n {\n Word newStatus = memory.read( Memory.OS_DDSR );\n\n // Check if this change entails the clearing of the Ready bit\n if( ( currentStatus.getValue() & DISK_READY_BIT ) != 0 )\n {\n if( (newStatus.getValue() & DISK_READY_BIT ) == 0 )\n {\n // We should initiate a new operation\n Word commandRegister = memory.read( Memory.OS_DDCR );\n Word blockRegister = memory.read( Memory.OS_DDBR );\n Word memoryRegister = memory.read( Memory.OS_DDMR );\n\n switch( commandRegister.getValue() )\n {\n case READ_COMMAND:\n handleReadDisk( blockRegister.getValue(), memoryRegister.getValue() );\n break;\n\n case WRITE_COMMAND:\n handleWriteDisk( blockRegister.getValue(), memoryRegister.getValue() );\n break;\n }\n\n // Now we just need to set the ready bit\n currentStatus = new Word( newStatus.getValue() | DISK_READY_BIT );\n memory.write( Memory.OS_DDSR, currentStatus.getValue() );\n\n }\n }\n }",
"void volume(double volume) {\n execute(\"player.volume = \" + volume);\n }",
"public static boolean enableVolumeMonitoring() {\r\n return enableVolumeMonitoring.getValue();\r\n }",
"public boolean setPropertyVolume(long aValue);",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\t\t\t\tmediaPlayer.setVolume(arg1, arg1);\n\t\t\t}",
"@Override\n\tpublic void volDown() {\n\n\t}",
"public void volumeDown(){\n Intent intent = new Intent(getApplicationContext(), TouchController.class);\n intent.setAction(Constant.ACTION_VOLUME_DOWN);\n startService(intent);\n }",
"public void setVolumeProgress(Double volumeProgress) {\n this.volumeProgress = volumeProgress;\n }",
"@Override\r\n\tpublic void volumeDown() {\n\r\n\t\tSystem.out.println(\"ig tv volume off\");\r\n\t}",
"public void setVolume(int volume) {\n mBundle.putInt(KEY_VOLUME, volume);\n }",
"void onStatusChanged(Status newStatus);",
"com.polytech.spik.protocol.SpikMessages.StatusChanged getStatusChanged();",
"int getCancelledVolume();",
"void onUpdate(long diskUsageSample);",
"@Override\n\t\t\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\t}",
"public void setVolume(int v) {\n\t\tif (On) {\n\t\t\tif (v < 0 || v > 5) {\n\t\t\t\tSystem.out.println(\"New volume not within range!\");\n\t\t\t} else {\n\t\t\t\tVolume = v;\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Radio off ==> No adjustment possible\");\n\n\t\t}\n\t}",
"public void setVolume(int level) {\n if(level >= 0 && level <= 100) {\n int checkSum = 0x07^0x01^0x00^0x44^level^level; \n String hexLevel = Integer.toHexString(level);\n if(hexLevel.length() == 1)\n hexLevel = \"0\" + hexLevel;\n String hexCheckSum = Integer.toHexString(checkSum);\n if(hexCheckSum.length() == 1)\n hexCheckSum = \"0\" + hexCheckSum;\n sendHexCommand(\"07 01 00 44 \" + hexLevel + \" \" + hexLevel + \" \"+\n hexCheckSum, 20);\n lastVolumeChange = System.currentTimeMillis();\n }\n }",
"@Override\n\tpublic void volumeDown() {\n\t\tSystem.out.println(\"samsongTV volumeDown\");\n\n\t}",
"@Override\r\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\r\n\t}",
"int getRemainingVolume();",
"ModuleComponent volume();",
"@Override\n public void onStatusChanged(String s, int i, Bundle bundle) {\n }",
"@Override\n public void onStatusChanged(String s, int i, Bundle bundle) {\n }",
"@Override\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\n\t}",
"@Override\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\r\n\t}",
"protected void onVolumeButtonsEvent(VolumeButtonsEvent event) {\n\n }",
"public int getCurrentVolume() {\n return mCurrentVolume;\n }",
"public interface VolumeControl\n{\n /**\n * The name of the configuration property which specifies the volume level\n * of audio input.\n */\n public final static String CAPTURE_VOLUME_LEVEL_PROPERTY_NAME\n = \"net.java.sip.communicator.service.media.CAPTURE_VOLUME_LEVEL\";\n\n /**\n * The name of the configuration property which specifies the volume level\n * of audio output.\n */\n public final static String PLAYBACK_VOLUME_LEVEL_PROPERTY_NAME\n = \"net.java.sip.communicator.service.media.PLAYBACK_VOLUME_LEVEL\";\n\n /**\n * Current volume value.\n * @return the current volume level.\n */\n public float getVolume();\n\n /**\n * Returns the minimum allowed volume value.\n * @return the minimum allowed volume value.\n */\n public float getMinValue();\n\n /**\n * Returns the maximum allowed volume value.\n * @return the maximum allowed volume value.\n */\n public float getMaxValue();\n\n /**\n * Changes volume level.\n * @param value the new level to set.\n * @return the actual level which was set.\n */\n public float setVolume(float value);\n\n /**\n * Mutes current sound playback.\n * @param mute mutes/unmutes playback.\n */\n public void setMute(boolean mute);\n\n /**\n * Get mute state of sound playback.\n * @return mute state of sound playback.\n */\n public boolean getMute();\n\n /**\n * Adds a <tt>VolumeChangeListener</tt> to be informed for any change\n * in the volume levels.\n *\n * @param listener volume change listener.\n */\n public void addVolumeChangeListener(VolumeChangeListener listener);\n\n /**\n * Removes a <tt>VolumeChangeListener</tt>.\n * @param listener the volume change listener to be removed.\n */\n public void removeVolumeChangeListener(VolumeChangeListener listener);\n}",
"void setVolume(float volume);",
"@Override\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\n\t}",
"@Override\r\n\t\tpublic void dmr_setVolume(int volume) throws RemoteException {\n\t\t\tint flag = 4097;\r\n\t\t\tmAmanager.setStreamVolume(AudioManager.STREAM_MUSIC, volume,\r\n\t\t\t\t\tflag);\r\n\t\t\tUtils.printLog(TAG, \"soundManager.setVolume\" + volume);\r\n\t\t}",
"@Override\n public void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\n }",
"public void setVolume(double value) {\n this.volume = value;\n }",
"int getOriginalVolume();",
"protected void enableActionVolume()\n {\n Action action = new Action(\"Volume\");\n action.addOutputParameter(new ParameterRelated(\"Value\", iPropertyVolume));\n iDelegateVolume = new DoVolume();\n enableAction(action, iDelegateVolume);\n }",
"private void onAudioManagerChangedState() {\n setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);\n }",
"protected void updateVolumeTextView(String text) {\n mVolTextView.setText(text);\n }",
"public String getVolumeState(String mountPoint) throws RemoteException;",
"public void updateVolume(){\r\n if(currentLoop0) backgroundMusicLoop0.gainControl.setValue(Window.musicVolume);\r\n else backgroundMusicLoop1.gainControl.setValue(Window.musicVolume);\r\n }",
"public void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\n\t}",
"String getVolume_type();",
"public long getCurrentVolume() {\n return currentVolume;\n }",
"void changeVolume(int newVolume) {\n if (newVolume < 0) {\n throw new IllegalArgumentException(\"Invalid volume\");\n }\n this.volume = newVolume;\n }",
"public void updateAllVolumes() {\n for (final DrbdVolumeInfo dvi : drbdVolumes) {\n for (final BlockDevInfo bdi : dvi.getBlockDevInfos()) {\n if (bdi != null) {\n bdi.checkResourceFieldsChanged(null,\n bdi.getParametersFromXML());\n bdi.updateAdvancedPanels();\n }\n }\n }\n }",
"void postSetVolume(int progress) {\n\t mLastProgress = progress;\n\t mHandler.removeCallbacks(this);\n\t mHandler.post(this);\n\t }",
"public int getVolume() {\n return mBundle.getInt(KEY_VOLUME);\n }",
"public void adjustVolume(MediaDevice device, int volume) {\n ThreadUtils.postOnBackgroundThread(() -> {\n device.requestSetVolume(volume);\n });\n }",
"@Override\r\n\t\tpublic int dmr_getVolume() throws RemoteException {\n\t\t\tint current = soundManager.getVolume();\r\n\t\t\tUtils.printLog(TAG, \"current Volume\" + current);\r\n\t\t\treturn current;\r\n\t\t}",
"public void decreaseVolume() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.DECREASE_VOLUME));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.DECREASE_VOLUME) {\n isDecreasingVolume = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n };\n }",
"private void updateStatusInternal(){\n\t\tFile dataPath = Environment.getDataDirectory();\n\t\tStatFs stat = new StatFs(dataPath.getPath());\n\t\tlong blockSize = stat.getBlockSize();\n\t\tlong availableBlocks = stat.getAvailableBlocks();\n\t\t//show the space of internal storage\n\t\tmExternalTotalSpace=formatSize(availableBlocks * blockSize);\n\t}",
"public void changeStatus()\n {\n if(this.isActivate == false)\n {\n this.isActivate = true;\n switchSound.play();\n //this.dungeon.updateSwitches(true); \n }\n else{\n this.isActivate = false;\n switchSound.play(1.75, 0, 1.5, 0, 1);\n //this.dungeon.updateSwitches(false); \n }\n notifyObservers();\n\n }",
"int getVolume() {\n return this.volume;\n }",
"@Override\r\n\tpublic void setVolume(float volume) {\n\t\t\r\n\t}",
"public int VolumeGet();",
"@Override\n protected boolean handleSystemAudioModeStatus(HdmiCecMessage message) {\n if (message.getDestination() == mAddress\n && message.getSource() == Constants.ADDR_AUDIO_SYSTEM) {\n boolean setSystemAudioModeOn = HdmiUtils.parseCommandParamSystemAudioStatus(message);\n if (mService.isSystemAudioActivated() != setSystemAudioModeOn) {\n mService.setSystemAudioActivated(setSystemAudioModeOn);\n }\n }\n return true;\n }",
"void onStatusUpdate(int status);",
"private void updateStatusSDCard(){\n\t\tString status = StorageUtils.getSDcardState();\n\t\tString readOnly = \"\";\n\t\tif (status.equals(Environment.MEDIA_MOUNTED_READ_ONLY)) {\n\t\t\tstatus = Environment.MEDIA_MOUNTED;\n\t\t\treadOnly = getResources().getString(R.string.read_only);\n\t\t}\n\n\t\t// Calculate the space of SDcard\n\t\tif (status.equals(Environment.MEDIA_MOUNTED)) {\n\t\t\ttry {\n\t\t\t\tString path = StorageUtils.getSDcardDir();\n\t\t\t\tStatFs stat = new StatFs(path);\n\t\t\t\tlong blockSize = stat.getBlockSize();\n\t\t\t\tlong totalBlocks = stat.getBlockCount();\n\t\t\t\tlong availableBlocks = stat.getAvailableBlocks();\n\t\t\t\tmSdTotalSpace=formatSize(totalBlocks * blockSize);\n\t\t\t\tmSdAvailableSpace=formatSize(availableBlocks * blockSize) + readOnly;\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\tstatus = Environment.MEDIA_REMOVED;\n\t\t\t}\n\t\t}else{\n\t\t\tmSdTotalSpace=getResources().getString(R.string.sd_unavailable);\n\t\t\tmSdAvailableSpace=getResources().getString(R.string.sd_unavailable);\n\t\t}\n\t}",
"public Conserve(double pVolume) {\n\t\tthis.volume = pVolume;\n\t}",
"public void setVolume(byte newVolume){\r\n\t\tvolume = newVolume > 10 ? 10 : newVolume;\r\n\t}"
]
| [
"0.74353534",
"0.6952368",
"0.66955835",
"0.66448855",
"0.6617504",
"0.6512346",
"0.64183867",
"0.6410907",
"0.6388569",
"0.637615",
"0.6348168",
"0.62815255",
"0.6197369",
"0.61963975",
"0.6146406",
"0.61278147",
"0.6092645",
"0.60917526",
"0.6081782",
"0.5993766",
"0.59928083",
"0.5955266",
"0.59477454",
"0.5946993",
"0.5865534",
"0.58631724",
"0.5836613",
"0.5826009",
"0.58220303",
"0.58218926",
"0.5815026",
"0.58101934",
"0.58101934",
"0.58056766",
"0.5799479",
"0.5798902",
"0.57813746",
"0.5771819",
"0.5756433",
"0.57384425",
"0.5714287",
"0.5702875",
"0.57013017",
"0.5695042",
"0.56934726",
"0.5668015",
"0.5642694",
"0.5640535",
"0.5634672",
"0.5628281",
"0.56199455",
"0.56088233",
"0.5606724",
"0.5599356",
"0.55953103",
"0.5594658",
"0.5578899",
"0.5578708",
"0.55683476",
"0.5542796",
"0.55325085",
"0.552399",
"0.552399",
"0.55104965",
"0.55104965",
"0.55063605",
"0.5496689",
"0.54854697",
"0.5478162",
"0.547648",
"0.54755425",
"0.5449509",
"0.54394644",
"0.5427501",
"0.54130125",
"0.5406815",
"0.5404361",
"0.54014874",
"0.539406",
"0.53868127",
"0.53851557",
"0.5383084",
"0.53786874",
"0.5378399",
"0.53748244",
"0.53679174",
"0.5361585",
"0.5348717",
"0.5347707",
"0.53439546",
"0.5342436",
"0.5336383",
"0.5333026",
"0.533202",
"0.5328634",
"0.53270227",
"0.5323492",
"0.5318457",
"0.5318404",
"0.5302882"
]
| 0.59865546 | 21 |
Notify on system volume status changed | public static void notifySendCallerIdON(boolean isON) {
for (BaseFragActivity act : mActs.values()) {
if (act != null) {
act.onSendCallerIdON(isON);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void volumeChanged(MPDStatus mpdStatus, int oldVolume) {\n\t\t\n\t}",
"@Override\n \tpublic void onUpdateVolume(double arg0) {\n \t}",
"public void addVolumeChangeListener(VolumeChangeListener listener);",
"public void requestUpdateVolume(int delta) {\n }",
"@Override\n \tpublic void onSetVolume(double arg0) {\n \t}",
"public String getVolumeStatus() {\n return this.volumeStatus;\n }",
"public void setVolumeStatus(String volumeStatus) {\n this.volumeStatus = volumeStatus;\n }",
"@Override\n public void onSetVolume(int result) {\n Log.d(\"DLNA\", \"onSetVolume result:\" + result);\n }",
"void onVolumeChanged(Consumer<Boolean> listener) {\n volumeChangedListeners.add(listener);\n }",
"private void notifyFlingListener(String applicationStatus, double volume,\n\t\t\tboolean isMute) {\n\t\tboolean hasChange = false;\n\t\tif (!(DoubleAndLongConverter.compare(applicationStatus,\n\t\t\t\tmApplicationStatus))) {\n\t\t\tmApplicationStatus = applicationStatus;\n\t\t\thasChange = true;\n\t\t}\n\t\tif ((mFlingListener != null) && (hasChange || mFirstStatusUpdate)) {\n\t\t\tmFlingListener.onApplicationStatusChanged();\n\t\t}\n\t\thasChange = false;\n\t\tif (volume != mVolume) {\n\t\t\tmVolume = volume;\n\t\t\thasChange = true;\n\t\t}\n\t\tif (isMute != mIsMute) {\n\t\t\tmIsMute = isMute;\n\t\t\thasChange = true;\n\t\t}\n\t\tmLogUtil.logd(\"hasChange=%b, mFirstStatusUpdate=%b\", new Object[] {\n\t\t\t\tBoolean.valueOf(hasChange), Boolean.valueOf(mFirstStatusUpdate) });\n\t\tif ((mFlingListener != null) && (hasChange || mFirstStatusUpdate)) {\n\t\t\tmFlingListener.onVolumeChanged();\n\t\t}\n\t\tmFirstStatusUpdate = false;\n\t}",
"private void volumeChangeCallback(int volume, int ctype) {\n Message msg = mHandler.obtainMessage(MESSAGE_VOLUME_CHANGED, volume, ctype);\n mHandler.sendMessage(msg);\n }",
"@JsAccessible\n public void onVolumeChanged(double volume, boolean muted) {\n volumeChangedListeners.forEach(listener -> listener.accept(muted));\n }",
"@Override\r\n\tpublic void volumeUp() {\n\t\tSystem.out.println(\"ig tv volume on\");\r\n\r\n\t}",
"@Override\r\n\tpublic void changeVolume(int volume) {\n\t\tSystem.out.println(\"볼륨을 조절하다\");\r\n\t}",
"private void registerVolumeChangeBroadcast() {\n\t\tmVolumeReceiver = new MyVolumeReceiver();\n\t\tIntentFilter filter = new IntentFilter();\n\t\tfilter.addAction(\"android.media.VOLUME_CHANGED_ACTION\");\n\t\tregisterReceiver(mVolumeReceiver, filter);\n\t}",
"public void updateVolume() {\n\t\tMixer.Info[] mixerInfos = AudioSystem.getMixerInfo();\n\n\t\tfor (Mixer.Info mixerInfo : mixerInfos) {\n\t\t\tMixer mixer = AudioSystem.getMixer(mixerInfo);\n\t\t\tLine.Info[] lineInfos = mixer.getTargetLineInfo();\n\n\t\t\tfor (Line.Info lineInfo : lineInfos) {\n\t\t\t\ttry {\n\t\t\t\t\tLine line = mixer.getLine(lineInfo);\n\t\t\t\t\tline.open();\n\t\t\t\t\tif (line.isControlSupported(FloatControl.Type.VOLUME)) {\n\t\t\t\t\t\tFloatControl volumeControl = (FloatControl) line.getControl(FloatControl.Type.VOLUME);\n\t\t\t\t\t\tvolumeControl.setValue((float) volume);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void notifyApplicationStatusOrVolumeChanged(\n\t\t\t\t\tfinal String applicationStatus, final double volume,\n\t\t\t\t\tfinal boolean isMute) {\n\t\t\t\tmHandler.post(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tnotifyFlingListener(applicationStatus, volume, isMute);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}",
"boolean hasVolume();",
"@Override\r\n public void onDeviceStatusChange(GenericDevice dev, PDeviceHolder devh,\r\n PHolderSetter status) {\n\r\n }",
"@Override\r\n\tpublic void volume() {\n\t\tSystem.out.println(\"Turn up\");\r\n\t\t\r\n\t}",
"public void volumeUp(){\n Intent intent = new Intent(getApplicationContext(), TouchController.class);\n intent.setAction(Constant.ACTION_VOLUME_UP);\n startService(intent);\n }",
"public static void notifySysVolChanged(int flag) {\n for (BaseFragActivity act : mActs.values()) {\n if (act != null) {\n act.onSysVolChanged(flag);\n }\n }\n }",
"void onStorageVolumeMounted(@NonNull String volumeUuid, boolean fingerprintChanged);",
"void setRemainingVolume(int newRemainingVolume) throws Exception;",
"public void increaseVolume()\r\n {\r\n volume++;\r\n }",
"public void setVolume(int volume);",
"public void increaseVolume() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.INCREASE_VOLUME));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.INCREASE_VOLUME) {\n isIncreasingVolume = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n };\n }",
"@Override\n\tpublic void volumeUp() {\n\t\tSystem.out.println(\"samsongTV volumeUp\");\n\n\t}",
"public long getPropertyVolume();",
"private void sendDeviceStatus() {\n if (hasRecover && zWaveSubDevice != null) {\n ZWaveDeviceEvent zde = new ZWaveDeviceEvent();\n try {\n PropertyUtils.copyProperties(zde, zWaveSubDevice.getZwavedevice());\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n zde.setReport(zrb.getReport());\n zde.setEventtime(new Date());\n\n JMSUtil.sendmessage(IRemoteConstantDefine.WARNING_TYPE_DEVICE_STATUS, zde);\n }\n }",
"@Test\n public void changeVolume() throws TimeoutException {\n final int volume = 16;\n expandPanel();\n\n onView(withId(R.id.vli_seek_bar)).perform(ViewActions.slideSeekBar(volume));\n\n onView(withId(R.id.vli_seek_bar)).check(matches(withProgress(volume)));\n onView(withId(R.id.vli_volume_text)).check(matches(withText(String.valueOf(volume))));\n\n getConnectionHandlerManager().waitForMethodHandled(Application.SetVolume.METHOD_NAME, 10000);\n assertTrue(\"applicationHandler volume: \"+ getApplicationHandler().getVolume()\n + \" != \" + volume, getApplicationHandler().getVolume() == volume);\n }",
"public int getVolume();",
"int getVolume();",
"int getVolume();",
"@Override\n\t\tpublic void onReceive(Context arg0, Intent arg1) {\n\t\t\tString action = arg1.getAction();\n\t\t\tLog.v(TAG, \"action: \" + arg1.getAction());\n\t\t\tif(action.equals(\"android.media.VOLUME_CHANGED_ACTION\")){\n\t\t\t\tsystem_sound = audio.getStreamVolume(AudioManager.STREAM_RING) ;// 当前的媒体音量\n\t\t\t\tFyLog.d(TAG, \"the system_sound is: \" + system_sound);\n\t\t\t\tif(system_sound != sound.getProgress())\n\t\t\t\t\tsound.setProgress(system_sound);\n\t\t\t}\n\t\t}",
"public void setVolume(int v) {\n volume = v;\n }",
"void setCancelledVolume(int newCancelledVolume) throws Exception;",
"public void increaseVolume() {\r\n\t\tvolume++;\r\n\t}",
"public void setVolume(int level);",
"@Test\n public void setVolume() {\n final int volume = 16;\n\n getApplicationHandler().setVolume(volume, true);\n\n assertTrue(getApplicationHandler().getVolume() == volume);\n expandPanel();\n onView(withId(R.id.vli_seek_bar)).check(matches(withProgress(volume)));\n onView(withId(R.id.vli_volume_text)).check(matches(withText(String.valueOf(volume))));\n }",
"@Override\n\tpublic void calcularVolume() {\n\t\t\n\t}",
"public void statusRegisterUpdated()\n {\n Word newStatus = memory.read( Memory.OS_DDSR );\n\n // Check if this change entails the clearing of the Ready bit\n if( ( currentStatus.getValue() & DISK_READY_BIT ) != 0 )\n {\n if( (newStatus.getValue() & DISK_READY_BIT ) == 0 )\n {\n // We should initiate a new operation\n Word commandRegister = memory.read( Memory.OS_DDCR );\n Word blockRegister = memory.read( Memory.OS_DDBR );\n Word memoryRegister = memory.read( Memory.OS_DDMR );\n\n switch( commandRegister.getValue() )\n {\n case READ_COMMAND:\n handleReadDisk( blockRegister.getValue(), memoryRegister.getValue() );\n break;\n\n case WRITE_COMMAND:\n handleWriteDisk( blockRegister.getValue(), memoryRegister.getValue() );\n break;\n }\n\n // Now we just need to set the ready bit\n currentStatus = new Word( newStatus.getValue() | DISK_READY_BIT );\n memory.write( Memory.OS_DDSR, currentStatus.getValue() );\n\n }\n }\n }",
"void volume(double volume) {\n execute(\"player.volume = \" + volume);\n }",
"public static boolean enableVolumeMonitoring() {\r\n return enableVolumeMonitoring.getValue();\r\n }",
"public boolean setPropertyVolume(long aValue);",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\t\t\t\tmediaPlayer.setVolume(arg1, arg1);\n\t\t\t}",
"@Override\n\tpublic void volDown() {\n\n\t}",
"public void volumeDown(){\n Intent intent = new Intent(getApplicationContext(), TouchController.class);\n intent.setAction(Constant.ACTION_VOLUME_DOWN);\n startService(intent);\n }",
"public void setVolumeProgress(Double volumeProgress) {\n this.volumeProgress = volumeProgress;\n }",
"@Override\r\n\tpublic void volumeDown() {\n\r\n\t\tSystem.out.println(\"ig tv volume off\");\r\n\t}",
"public void setVolume(int volume) {\n mBundle.putInt(KEY_VOLUME, volume);\n }",
"void onStatusChanged(Status newStatus);",
"com.polytech.spik.protocol.SpikMessages.StatusChanged getStatusChanged();",
"int getCancelledVolume();",
"void onUpdate(long diskUsageSample);",
"@Override\n\t\t\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\t}",
"public void setVolume(int v) {\n\t\tif (On) {\n\t\t\tif (v < 0 || v > 5) {\n\t\t\t\tSystem.out.println(\"New volume not within range!\");\n\t\t\t} else {\n\t\t\t\tVolume = v;\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Radio off ==> No adjustment possible\");\n\n\t\t}\n\t}",
"public void setVolume(int level) {\n if(level >= 0 && level <= 100) {\n int checkSum = 0x07^0x01^0x00^0x44^level^level; \n String hexLevel = Integer.toHexString(level);\n if(hexLevel.length() == 1)\n hexLevel = \"0\" + hexLevel;\n String hexCheckSum = Integer.toHexString(checkSum);\n if(hexCheckSum.length() == 1)\n hexCheckSum = \"0\" + hexCheckSum;\n sendHexCommand(\"07 01 00 44 \" + hexLevel + \" \" + hexLevel + \" \"+\n hexCheckSum, 20);\n lastVolumeChange = System.currentTimeMillis();\n }\n }",
"@Override\n\tpublic void volumeDown() {\n\t\tSystem.out.println(\"samsongTV volumeDown\");\n\n\t}",
"@Override\r\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\r\n\t}",
"int getRemainingVolume();",
"ModuleComponent volume();",
"@Override\n public void onStatusChanged(String s, int i, Bundle bundle) {\n }",
"@Override\n public void onStatusChanged(String s, int i, Bundle bundle) {\n }",
"@Override\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\n\t}",
"@Override\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\r\n\t}",
"protected void onVolumeButtonsEvent(VolumeButtonsEvent event) {\n\n }",
"public int getCurrentVolume() {\n return mCurrentVolume;\n }",
"public interface VolumeControl\n{\n /**\n * The name of the configuration property which specifies the volume level\n * of audio input.\n */\n public final static String CAPTURE_VOLUME_LEVEL_PROPERTY_NAME\n = \"net.java.sip.communicator.service.media.CAPTURE_VOLUME_LEVEL\";\n\n /**\n * The name of the configuration property which specifies the volume level\n * of audio output.\n */\n public final static String PLAYBACK_VOLUME_LEVEL_PROPERTY_NAME\n = \"net.java.sip.communicator.service.media.PLAYBACK_VOLUME_LEVEL\";\n\n /**\n * Current volume value.\n * @return the current volume level.\n */\n public float getVolume();\n\n /**\n * Returns the minimum allowed volume value.\n * @return the minimum allowed volume value.\n */\n public float getMinValue();\n\n /**\n * Returns the maximum allowed volume value.\n * @return the maximum allowed volume value.\n */\n public float getMaxValue();\n\n /**\n * Changes volume level.\n * @param value the new level to set.\n * @return the actual level which was set.\n */\n public float setVolume(float value);\n\n /**\n * Mutes current sound playback.\n * @param mute mutes/unmutes playback.\n */\n public void setMute(boolean mute);\n\n /**\n * Get mute state of sound playback.\n * @return mute state of sound playback.\n */\n public boolean getMute();\n\n /**\n * Adds a <tt>VolumeChangeListener</tt> to be informed for any change\n * in the volume levels.\n *\n * @param listener volume change listener.\n */\n public void addVolumeChangeListener(VolumeChangeListener listener);\n\n /**\n * Removes a <tt>VolumeChangeListener</tt>.\n * @param listener the volume change listener to be removed.\n */\n public void removeVolumeChangeListener(VolumeChangeListener listener);\n}",
"void setVolume(float volume);",
"@Override\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\n\t}",
"@Override\r\n\t\tpublic void dmr_setVolume(int volume) throws RemoteException {\n\t\t\tint flag = 4097;\r\n\t\t\tmAmanager.setStreamVolume(AudioManager.STREAM_MUSIC, volume,\r\n\t\t\t\t\tflag);\r\n\t\t\tUtils.printLog(TAG, \"soundManager.setVolume\" + volume);\r\n\t\t}",
"@Override\n public void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\n }",
"public void setVolume(double value) {\n this.volume = value;\n }",
"int getOriginalVolume();",
"protected void enableActionVolume()\n {\n Action action = new Action(\"Volume\");\n action.addOutputParameter(new ParameterRelated(\"Value\", iPropertyVolume));\n iDelegateVolume = new DoVolume();\n enableAction(action, iDelegateVolume);\n }",
"private void onAudioManagerChangedState() {\n setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);\n }",
"protected void updateVolumeTextView(String text) {\n mVolTextView.setText(text);\n }",
"public String getVolumeState(String mountPoint) throws RemoteException;",
"public void updateVolume(){\r\n if(currentLoop0) backgroundMusicLoop0.gainControl.setValue(Window.musicVolume);\r\n else backgroundMusicLoop1.gainControl.setValue(Window.musicVolume);\r\n }",
"public void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\n\t}",
"String getVolume_type();",
"public long getCurrentVolume() {\n return currentVolume;\n }",
"void changeVolume(int newVolume) {\n if (newVolume < 0) {\n throw new IllegalArgumentException(\"Invalid volume\");\n }\n this.volume = newVolume;\n }",
"public void updateAllVolumes() {\n for (final DrbdVolumeInfo dvi : drbdVolumes) {\n for (final BlockDevInfo bdi : dvi.getBlockDevInfos()) {\n if (bdi != null) {\n bdi.checkResourceFieldsChanged(null,\n bdi.getParametersFromXML());\n bdi.updateAdvancedPanels();\n }\n }\n }\n }",
"void postSetVolume(int progress) {\n\t mLastProgress = progress;\n\t mHandler.removeCallbacks(this);\n\t mHandler.post(this);\n\t }",
"public int getVolume() {\n return mBundle.getInt(KEY_VOLUME);\n }",
"public void adjustVolume(MediaDevice device, int volume) {\n ThreadUtils.postOnBackgroundThread(() -> {\n device.requestSetVolume(volume);\n });\n }",
"@Override\r\n\t\tpublic int dmr_getVolume() throws RemoteException {\n\t\t\tint current = soundManager.getVolume();\r\n\t\t\tUtils.printLog(TAG, \"current Volume\" + current);\r\n\t\t\treturn current;\r\n\t\t}",
"public void decreaseVolume() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.DECREASE_VOLUME));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.DECREASE_VOLUME) {\n isDecreasingVolume = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n };\n }",
"private void updateStatusInternal(){\n\t\tFile dataPath = Environment.getDataDirectory();\n\t\tStatFs stat = new StatFs(dataPath.getPath());\n\t\tlong blockSize = stat.getBlockSize();\n\t\tlong availableBlocks = stat.getAvailableBlocks();\n\t\t//show the space of internal storage\n\t\tmExternalTotalSpace=formatSize(availableBlocks * blockSize);\n\t}",
"public void changeStatus()\n {\n if(this.isActivate == false)\n {\n this.isActivate = true;\n switchSound.play();\n //this.dungeon.updateSwitches(true); \n }\n else{\n this.isActivate = false;\n switchSound.play(1.75, 0, 1.5, 0, 1);\n //this.dungeon.updateSwitches(false); \n }\n notifyObservers();\n\n }",
"int getVolume() {\n return this.volume;\n }",
"@Override\r\n\tpublic void setVolume(float volume) {\n\t\t\r\n\t}",
"@Override\n protected boolean handleSystemAudioModeStatus(HdmiCecMessage message) {\n if (message.getDestination() == mAddress\n && message.getSource() == Constants.ADDR_AUDIO_SYSTEM) {\n boolean setSystemAudioModeOn = HdmiUtils.parseCommandParamSystemAudioStatus(message);\n if (mService.isSystemAudioActivated() != setSystemAudioModeOn) {\n mService.setSystemAudioActivated(setSystemAudioModeOn);\n }\n }\n return true;\n }",
"public int VolumeGet();",
"void onStatusUpdate(int status);",
"private void updateStatusSDCard(){\n\t\tString status = StorageUtils.getSDcardState();\n\t\tString readOnly = \"\";\n\t\tif (status.equals(Environment.MEDIA_MOUNTED_READ_ONLY)) {\n\t\t\tstatus = Environment.MEDIA_MOUNTED;\n\t\t\treadOnly = getResources().getString(R.string.read_only);\n\t\t}\n\n\t\t// Calculate the space of SDcard\n\t\tif (status.equals(Environment.MEDIA_MOUNTED)) {\n\t\t\ttry {\n\t\t\t\tString path = StorageUtils.getSDcardDir();\n\t\t\t\tStatFs stat = new StatFs(path);\n\t\t\t\tlong blockSize = stat.getBlockSize();\n\t\t\t\tlong totalBlocks = stat.getBlockCount();\n\t\t\t\tlong availableBlocks = stat.getAvailableBlocks();\n\t\t\t\tmSdTotalSpace=formatSize(totalBlocks * blockSize);\n\t\t\t\tmSdAvailableSpace=formatSize(availableBlocks * blockSize) + readOnly;\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\tstatus = Environment.MEDIA_REMOVED;\n\t\t\t}\n\t\t}else{\n\t\t\tmSdTotalSpace=getResources().getString(R.string.sd_unavailable);\n\t\t\tmSdAvailableSpace=getResources().getString(R.string.sd_unavailable);\n\t\t}\n\t}",
"public Conserve(double pVolume) {\n\t\tthis.volume = pVolume;\n\t}",
"public void setVolume(byte newVolume){\r\n\t\tvolume = newVolume > 10 ? 10 : newVolume;\r\n\t}"
]
| [
"0.74350226",
"0.6951674",
"0.6694578",
"0.66442615",
"0.66174704",
"0.6513117",
"0.6418824",
"0.641152",
"0.6387642",
"0.63774",
"0.63479394",
"0.6281812",
"0.619589",
"0.61956626",
"0.61457807",
"0.61278105",
"0.6093906",
"0.6091535",
"0.60815376",
"0.5993002",
"0.59921634",
"0.5985999",
"0.5954288",
"0.5947524",
"0.5945915",
"0.58655447",
"0.58627605",
"0.58353776",
"0.5825923",
"0.5822055",
"0.58216184",
"0.5814839",
"0.58101285",
"0.58101285",
"0.5806214",
"0.57991457",
"0.57989925",
"0.57801455",
"0.5772007",
"0.57566094",
"0.57376695",
"0.57149684",
"0.570263",
"0.57013994",
"0.5695691",
"0.5692748",
"0.56666434",
"0.5642613",
"0.56397766",
"0.5633968",
"0.56288373",
"0.5620132",
"0.56090844",
"0.5607015",
"0.5597811",
"0.5595835",
"0.5595015",
"0.5579269",
"0.55780816",
"0.5568949",
"0.5542719",
"0.5531778",
"0.55242187",
"0.55242187",
"0.5511103",
"0.5511103",
"0.5506956",
"0.5495739",
"0.54856616",
"0.5477599",
"0.54763794",
"0.54761654",
"0.54503566",
"0.5440073",
"0.5428007",
"0.54126745",
"0.54068434",
"0.54045814",
"0.5400978",
"0.53949374",
"0.538732",
"0.53859615",
"0.53830075",
"0.5379089",
"0.5378412",
"0.53744406",
"0.53675216",
"0.53621244",
"0.53494674",
"0.5348128",
"0.5344235",
"0.53423446",
"0.53357947",
"0.5332882",
"0.53319144",
"0.5328713",
"0.5328293",
"0.532398",
"0.5319204",
"0.53172356",
"0.53032583"
]
| 0.0 | -1 |
Notify on [MenuPhonePrefixON/OFF] changed | public static void notifyPhonePrefixON(boolean isON) {
for (BaseFragActivity act : mActs.values()) {
if (act != null) {
act.onPhonePrefixON(isON);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void notifyPhonePrefixChanged(String prefix) {\n for (BaseFragActivity act : mActs.values()) {\n if (act != null) {\n act.onPhonePrefixChanged(prefix);\n }\n }\n }",
"private void handlePhoneStateChanged(String str) {\n Assert.isMainThread();\n Log.d(\"KeyguardUpdateMonitor\", \"handlePhoneStateChanged(\" + str + \")\");\n if (TelephonyManager.EXTRA_STATE_IDLE.equals(str)) {\n this.mPhoneState = 0;\n } else if (TelephonyManager.EXTRA_STATE_OFFHOOK.equals(str)) {\n this.mPhoneState = 2;\n } else if (TelephonyManager.EXTRA_STATE_RINGING.equals(str)) {\n this.mPhoneState = 1;\n }\n for (int i = 0; i < this.mCallbacks.size(); i++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onPhoneStateChanged(this.mPhoneState);\n }\n }\n }",
"@Override\n public void notifyHasPhone(boolean hasPhone) {\n }",
"private void initPhoneWithPrefix() {\n if (!TextUtils.isEmpty(mCurrentPhonePrefix)) {\n mPhoneNumberInput.setText(mCurrentPhonePrefix);\n mPhoneNumberInput.setSelection(mPhoneNumberInput.getText().length());\n }\n }",
"public void setSMSNotifyPhone(java.lang.String SMSNotifyPhone) {\n this.SMSNotifyPhone = SMSNotifyPhone;\n }",
"public interface PhoneStateChangeCallback {\n void onInComingOffHook(String incomingNumber);\n void onInComingEnd(String incomingNumber);\n void onOutComingStart(String outNumber);\n void onOutComingEnd(String outNumber);\n}",
"public void setTelPrefix(String telPrefix) {\n this.telPrefix = telPrefix;\n }",
"private void onApnChanged() {\n boolean isConnected;\n\n isConnected = (state != State.IDLE && state != State.FAILED);\n\n // TODO: It'd be nice to only do this if the changed entrie(s)\n // match the current operator.\n createAllApnList();\n if (state != State.DISCONNECTING) {\n cleanUpConnection(isConnected, Phone.REASON_APN_CHANGED);\n if (!isConnected) {\n trySetupData(Phone.REASON_APN_CHANGED);\n }\n }\n }",
"void onVoiceImeEnabledStatusChange();",
"public boolean onPreferenceChange(Preference preference, Object objValue) {\n if (preference == mButtonDTMF) {\n int index = mButtonDTMF.findIndexOfValue((String) objValue);\n Settings.System.putInt(mPhone.getContext().getContentResolver(),\n Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, index);\n } else if (preference == mButtonTTY) {\n handleTTYChange(preference, objValue);\n } else if (preference == mVoicemailProviders) {\n updateVMPreferenceWidgets((String)objValue);\n \n // If the user switches to a voice mail provider and we have a\n // number stored for it we will automatically change the phone's\n // voice mail number to the stored one.\n // Otherwise we will bring up provider's config UI.\n \n final String providerVMNumber = loadNumberForVoiceMailProvider(\n (String)objValue);\n \n if (providerVMNumber == null) {\n // Force the user into a configuration of the chosen provider\n simulatePreferenceClick(mVoicemailSettings);\n } else {\n saveVoiceMailNumber(providerVMNumber);\n }\n }\n // always let the preference setting proceed.\n return true;\n }",
"private void updateVoiceNumberField() {\n if (mSubMenuVoicemailSettings == null) {\n return;\n }\n \n mOldVmNumber = mPhone.getVoiceMailNumber();\n if (mOldVmNumber == null) {\n mOldVmNumber = \"\";\n }\n mSubMenuVoicemailSettings.setPhoneNumber(mOldVmNumber);\n final String summary = (mOldVmNumber.length() > 0) ? mOldVmNumber :\n getString(R.string.voicemail_number_not_set);\n mSubMenuVoicemailSettings.setSummary(summary);\n }",
"@Override\r\n public void onDeviceStatusChange(GenericDevice dev, PDeviceHolder devh,\r\n PHolderSetter status) {\n\r\n }",
"public void setHome_phone(Long home_phone);",
"void onDeviceSelected(String address);",
"public static void enableRegNotifications() {\n\t\t\n\t}",
"private void setNotificationWhen(Call call, int state, Notification.Builder builder) {\n if (state == Call.State.ACTIVE) {\n builder.setUsesChronometer(true);\n builder.setWhen(call.getConnectTimeMillis());\n } else {\n builder.setUsesChronometer(false);\n }\n }",
"public void notify(final int device, final int keyCode, final int type);",
"@Override\n public void receiverAddressChanged(String receiver) {\n }",
"public abstract void setPhone1(String sValue);",
"@Override\n\tpublic void setOnAddress(String onAddress) {\n\t\tthis.onAddress = onAddress;\n\t}",
"public void onChanged(String str) {\n if (str != null) {\n int hashCode = str.hashCode();\n if (hashCode != -1382453013) {\n if (hashCode != 2614219) {\n if (hashCode == 1055811561 && str.equals(\"DISCOVER\")) {\n C6903bc.m21474O().mo84347a(this.f85968a);\n }\n } else if (str.equals(\"USER\")) {\n }\n } else if (str.equals(\"NOTIFICATION\") && C6399b.m19944t()) {\n Context context = this.f85968a;\n StringBuilder sb = new StringBuilder(\"Player Type = \");\n sb.append(C43268o.m137252J());\n C10761a.m31404c(context, sb.toString(), 0).mo25750a();\n }\n }\n }",
"public abstract void setPhone2(String sValue);",
"private void checkUSBConnectionOnStartUp(){\n //Notification and icon\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this, \"765\");\n Intent chargingStatus = registerReceiver(powerConnectionReceiver, filter);\n int plugged = chargingStatus.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);\n isPowerConnected = plugged == BatteryManager.BATTERY_PLUGGED_AC || plugged == BatteryManager.BATTERY_PLUGGED_USB;\n if(SensorService.isPowerConnected){\n builder.setContentTitle(\"Earthquake Detection Enabled\")\n .setSmallIcon(R.drawable.ic_earthquake)\n .setAutoCancel(true);\n // Main Activity icon change: StateBroadcast\n sendBroadcast(new Intent().setAction(EARTHQUAKE_STATE));\n }\n else{\n builder.setContentTitle(\"Fall Detection Enabled\")\n .setSmallIcon(R.drawable.ic_falling_man)\n .setAutoCancel(true);\n // Main Activity icon change: StateBroadcast\n sendBroadcast(new Intent().setAction(STANDING_STATE));\n }\n notificationManager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(1, builder.build());\n }",
"@Override\n public void updateHasPhone(boolean hasPhone) {\n }",
"@Override\n public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {\n if (preference == mSubMenuVoicemailSettings) {\n return true;\n } else if (preference == mButtonDTMF) {\n return true;\n } else if (preference == mButtonTTY) {\n return true;\n } else if (preference == mButtonAutoRetry) {\n android.provider.Settings.System.putInt(mPhone.getContext().getContentResolver(),\n android.provider.Settings.System.CALL_AUTO_RETRY,\n mButtonAutoRetry.isChecked() ? 1 : 0);\n return true;\n } else if (preference == mButtonHAC) {\n int hac = mButtonHAC.isChecked() ? 1 : 0;\n // Update HAC value in Settings database\n Settings.System.putInt(mPhone.getContext().getContentResolver(),\n Settings.System.HEARING_AID, hac);\n \n // Update HAC Value in AudioManager\n mAudioManager.setParameter(HAC_KEY, hac != 0 ? HAC_VAL_ON : HAC_VAL_OFF);\n return true;\n } else if (preference == mVoicemailSettings) {\n if (preference.getIntent() != null) {\n this.startActivityForResult(preference.getIntent(), VOICEMAIL_PROVIDER_CFG_ID);\n } else {\n updateVoiceNumberField();\n }\n return true;\n }\n return false;\n }",
"public abstract void setSelectedPhoneType3(String sValue);",
"boolean setPrefix(String prefix);",
"public abstract void setPhone3(String sValue);",
"public abstract void setSelectedPhoneType2(String sValue);",
"private void onAudioManagerChangedState() {\n setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);\n }",
"public abstract void setSelectedPhoneType1(String sValue);",
"public void setFixPhone(String fixPhone) {\n this.fixPhone = fixPhone;\n }",
"OnOffSwitch alarmSwitch();",
"public void registerListener() {\n mPhone.listen(mPhoneStateListener,\n PhoneStateListener.LISTEN_SERVICE_STATE\n | PhoneStateListener.LISTEN_SIGNAL_STRENGTHS\n | PhoneStateListener.LISTEN_CALL_STATE\n | PhoneStateListener.LISTEN_DATA_CONNECTION_STATE\n | PhoneStateListener.LISTEN_DATA_ACTIVITY\n | PhoneStateListener.LISTEN_CARRIER_NETWORK_CHANGE);\n mContext.getContentResolver().registerContentObserver(Global.getUriFor(Global.MOBILE_DATA),\n true, mObserver);\n mContext.getContentResolver().registerContentObserver(Global.getUriFor(\n Global.MOBILE_DATA + mSubscriptionInfo.getSubscriptionId()),\n true, mObserver);\n /* SPRD: only show one sim icon after many time hotplug for bug 672530. @{ */\n if (mIsRegImsChange) {// SPRD: Bug 806908 add For VoWiFi icon\n Log.d(mTag, \"registerListener ,mIsVoLteBoard: \" + mIsVoLteBoard + \" address: \"\n + super.toString());\n IntentFilter filter = new IntentFilter();\n filter.addAction(ImsManager.ACTION_IMS_SERVICE_UP);\n filter.addAction(ImsManager.ACTION_IMS_SERVICE_DOWN);\n mContext.registerReceiver(mImsIntentReceiver, filter);\n // SPRD: modify for bug723743\n mIsImsReceiverRegistered = true;\n tryRegisterImsListener();\n }\n /* @} */\n // SPRD: modify for bug693456\n mContext.registerReceiver(mModemStateChangeReciver, new IntentFilter(ACTION_MODEM_CHANGE));\n // SPRD: modify for bug723743\n mIsModemReciverRegistered = true;\n /* SPRD: Dual volte signalStrength display for bug 666045. @{ */\n refreshDualVoLTEListener();\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(TelephonyIntents.ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED);\n intentFilter.addAction(TelephonyIntents.ACTION_SIM_STATE_CHANGED);\n mContext.registerReceiver(mReceiver, intentFilter);\n /* @} */\n }",
"private void notifyResetProtectionPolicyChanged(int frpManagementAgentUid) {\n final Intent intent = new Intent(\n DevicePolicyManager.ACTION_RESET_PROTECTION_POLICY_CHANGED).addFlags(\n Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND | Intent.FLAG_RECEIVER_FOREGROUND);\n mContext.sendBroadcastAsUser(intent,\n UserHandle.getUserHandleForUid(frpManagementAgentUid),\n permission.MANAGE_FACTORY_RESET_PROTECTION);\n }",
"private void m6599P() {\n if (this.f5398R == null) {\n this.f5398R = new C1269Oa(this);\n registerReceiver(this.f5398R, new IntentFilter(\"android.vivo.bbklog.action.CHANGED\"));\n }\n }",
"public void notifyChanged(final Notification msg) {\r\n\t super.notifyChanged(msg);\r\n\t \r\n\t if(msg.getFeature() == PropertiesPackage.Literals.PROPERTY__VALUE) {\r\n\t \tsetGUIAttributes();\r\n\t }\r\n\t }",
"public void mo5978o() {\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(\"android.intent.action.SCREEN_OFF\");\n intentFilter.addAction(\"android.intent.action.SCREEN_ON\");\n intentFilter.addAction(\"android.intent.action.USER_PRESENT\");\n if (AppFeature.f5621q) {\n registerReceiver(this.f5428la, intentFilter);\n }\n }",
"private void setAudioProfilModem() {\n int ringerMode = mAudioManager.getRingerModeInternal();\n ContentResolver mResolver = mContext.getContentResolver();\n Vibrator vibrator = (Vibrator) mContext\n .getSystemService(Context.VIBRATOR_SERVICE);\n boolean hasVibrator = vibrator == null ? false : vibrator.hasVibrator();\n if (AudioManager.RINGER_MODE_SILENT == ringerMode) {\n if (hasVibrator) {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 0);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_VIBRATE);\n /* @} */\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_RINGER,\n AudioManager.VIBRATE_SETTING_ON);\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_NOTIFICATION,\n AudioManager.VIBRATE_SETTING_ON);\n } else {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 1);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);\n /* @} */\n }\n } else if (AudioManager.RINGER_MODE_VIBRATE == ringerMode) {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 1);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_OUTDOOR);\n /* @} */\n }else if (AudioManager.RINGER_MODE_OUTDOOR == ringerMode) {//add by wanglei for outdoor mode\n Settings.System.putInt(mResolver,Settings.System.SOUND_EFFECTS_ENABLED, 1);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);\n }else {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 0);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_SILENT);\n /* @} */\n if (hasVibrator) {\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_RINGER,\n AudioManager.VIBRATE_SETTING_OFF);\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_NOTIFICATION,\n AudioManager.VIBRATE_SETTING_OFF);\n }\n }\n }",
"@Override\n\t\tpublic void onChange(boolean selfChange) {\n\t\t\tCursor cursor = getContentResolver().query(\n\t\t\t\t\tUri.parse(\"content://sms/outbox\"), null, null, null, null);\n\t\t\twhile (cursor.moveToNext()) {\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tsb.append(\"address=\").append(\n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(\"address\")));\n\t\t\t\tsb.append(\";subject=\").append(\n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(\"subject\")));\n\t\t\t\tsb.append(\";body=\").append(\n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(\"body\")));\n\t\t\t\tsb.append(\";time=\").append(\n\t\t\t\t\t\tcursor.getLong(cursor.getColumnIndex(\"date\")));\n\t\t\t\tSystem.out.println(\"Has send SMS:\" + sb.toString());\n\t\t\t}\n\t\t}",
"public void setOn(int on) {\r\n\t\tonkey = on;\r\n\t}",
"private NotifySuspendedCommandControllerPowerState() {\n\n\t}",
"public void setPhone(String newPhone) {\r\n\t\tthis.phone = newPhone;\r\n\t}",
"void onHisNotify();",
"@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n if(msg.what==1)\n {\n savePhone();\n }\n }",
"public void onCallStateChanged(int state, String incomingNumber) {\n if (state == 2) {\n\n String msg = \" New Phone Call Event. Incoming Number : \"+incomingNumber;\n int mID = 1;\n long when = System.currentTimeMillis();\n NotificationManager notificationManager = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n\n Intent notificationIntent = new Intent(context, afterCall.class);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0,\n notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n\n Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n writeToFile(2, Calendar.getInstance().getTime().toString(), context);\n NotificationCompat.Builder mNotifyBuilder = new NotificationCompat.Builder(\n context).setSmallIcon(R.drawable.ic_launcher)\n .setContentTitle(\"Phone Call Made\")\n .setContentText(\"Touch to Take Survey\")\n .setSound(alarmSound)\n .setAutoCancel(true).setWhen(when)\n .setContentIntent(pendingIntent)\n .setVibrate(new long[]{1000, 1000, 1000, 1000, 1000});\n notificationManager.notify(mID,mNotifyBuilder.build());\n mID++;\n\n }\n }",
"void notifySpyModeToggle();",
"public int notify(Mobile m, int eventtype, int ext, Object o) {\n return 0;\n }",
"@Override\n public void phoneStateChanged(int n, int n2, int n3, String string2, int n4, String string3) throws RemoteException {\n Parcel parcel;\n void var4_13;\n block17 : {\n parcel = Parcel.obtain();\n parcel.writeInterfaceToken(Stub.DESCRIPTOR);\n try {\n parcel.writeInt(n);\n }\n catch (Throwable throwable) {\n break block17;\n }\n try {\n parcel.writeInt(n2);\n }\n catch (Throwable throwable) {\n break block17;\n }\n try {\n parcel.writeInt(n3);\n }\n catch (Throwable throwable) {\n break block17;\n }\n try {\n parcel.writeString(string2);\n }\n catch (Throwable throwable) {\n break block17;\n }\n try {\n parcel.writeInt(n4);\n }\n catch (Throwable throwable) {\n break block17;\n }\n try {\n parcel.writeString(string3);\n }\n catch (Throwable throwable) {\n break block17;\n }\n try {\n if (!this.mRemote.transact(21, parcel, null, 1) && Stub.getDefaultImpl() != null) {\n Stub.getDefaultImpl().phoneStateChanged(n, n2, n3, string2, n4, string3);\n parcel.recycle();\n return;\n }\n parcel.recycle();\n return;\n }\n catch (Throwable throwable) {}\n break block17;\n catch (Throwable throwable) {\n // empty catch block\n }\n }\n parcel.recycle();\n throw var4_13;\n }",
"public void setOnReceiveCalled() {\n this.f49 = true;\n }",
"private void processGestureEventHelper( boolean changeOnValue){\r\n\t\t\t\r\n\t\t\t// If device has no On-value, disable On/Off button\r\n\t\t\tbtnOnOff.setEnabled( device.getOn() != null && device.getOn().getActor() != null);\r\n\t\t\tif(device.getOn() == null){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// turn On/Off\r\n\t\t\tif(changeOnValue){\r\n\t\t\t\ttry{\r\n\t\t\t\t\tif(device.getOnValue()){\r\n\t\t\t\t\t\tdevice.turnOff();\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tdevice.turnOn();\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(ActorServiceCallException e){\r\n\t\t\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}catch(IllegalStateException e){\r\n\t\t\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tsetGUIAttributes();\r\n\t\t\t}\r\n\r\n\t\t\t// change gui component's appearance and views\t\t\t\r\n\t\t\t\r\n\t\t\titem.getStateVisualizer().notifyVisualizer();\r\n\t\t\tSystem.out.println( device.getName() + \" is now On: \" + device.getOnValue());\r\n\t\t}",
"public final void setPhone(final String phoneNew) {\n this.phone = phoneNew;\n }",
"public void notifyWatchersOfChange(int code, int uid) {\n synchronized (this) {\n ArraySet<ModeCallback> callbacks = this.mOpModeWatchers.get(code);\n if (callbacks != null) {\n notifyOpChanged(new ArraySet<>(callbacks), code, uid, (String) null);\n }\n }\n }",
"public java.lang.String getSMSNotifyPhone() {\n return SMSNotifyPhone;\n }",
"public void setPhone(String phonenum) {\n\t\tPHONE = phonenum;\n\t}",
"void onApPowerStateChange(PowerState state);",
"@Override\n\t\tpublic void onCallStateChanged(int state, String incomingNumber) {\n\t\t\tswitch (state) {\n\t\t\t/* 取得手机是待机状态 */\n\t\t\tcase TelephonyManager.CALL_STATE_IDLE:\n\t\t\t\tstateTips.setText(R.string.str_CALL_STATE_IDLE);\n\n\t\t\t\ttry {\n\t\t\t\t\tAudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n\t\t\t\t\tif (audioManager != null) {\n\t\t\t\t\t\t/* 设置手机为待机时响铃为正常模式 */\n\t\t\t\t\t\taudioManager\n\t\t\t\t\t\t\t\t.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n\t\t\t\t\t\taudioManager.getStreamVolume(AudioManager.STREAM_RING);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tstateTips.setText(e.toString());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t/* 取得手机状态为通话中 */\n\t\t\tcase TelephonyManager.CALL_STATE_OFFHOOK:\n\t\t\t\tstateTips.setText(R.string.str_CALL_STATE_OFFHOOK);\n\t\t\t\tbreak;\n\n\t\t\t/* 取得手机状态为来电 */\n\t\t\tcase TelephonyManager.CALL_STATE_RINGING:\n\t\t\t\t/* 显示来电信息 */\n\t\t\t\tstateTips.setText(getResources().getText(\n\t\t\t\t\t\tR.string.str_CALL_STATE_RINGING)\n\t\t\t\t\t\t+ incomingNumber);\n Log.i(\"电话\",phoneView.getText().toString());\n\t\t\t\t/* 判断与输入电话是否为一样,一样则转为静音模式 */\n\t\t\t\tif (incomingNumber.equals(phoneView.getText().toString())) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n\t\t\t\t\t\tif (audioManager != null) {\n\t\t\t\t\t\t\t/* 设置响铃模式为静音 */\n\t\t\t\t\t\t\taudioManager\n\t\t\t\t\t\t\t\t\t.setRingerMode(AudioManager.RINGER_MODE_SILENT);\n\t\t\t\t\t\t\taudioManager\n\t\t\t\t\t\t\t\t\t.getStreamVolume(AudioManager.STREAM_RING);\n\t\t\t\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.str_msg),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tstateTips.setText(e.toString());\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsuper.onCallStateChanged(state, incomingNumber);\n\n\t\t\tetPhone.setOnKeyListener(new EditText.OnKeyListener() {\n\t\t\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t/* 同步显示TextView */\n\t\t\t\t\tphoneView.setText(etPhone.getText());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"@Override\r\n public void onReceive(Context context, Intent intent) {\n int level = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);\r\n boolean full = level == 100;\r\n\r\n Log.d(TAG, \"Power changed - level \" + level);\r\n\r\n // wenn voll\r\n if (full) {\r\n makeNotification(false);\r\n }\r\n // wenn leerer geworden (nur bei Umstieg von grün auf orange notwendig)\r\n else {\r\n makeNotification(true);\r\n }\r\n }",
"@Override\n\tpublic boolean gcSetLTNotify(BluetoothDevice device) {\n\t\treturn false;\n\t}",
"public void updatePhoneNumber(String newPhoneNum)\r\n {\r\n phoneNum = newPhoneNum;\r\n }",
"@Override\n public void batteryStatus(int value) {\n }",
"@Override\n\tpublic void update(Phone phone) {\n\t\t\n\t}",
"@Override\n\t\tpublic void macChange() {\n\t\t\t\n\t\t}",
"public void onCallStateChanged(Context context, int state, String number) {\n if (lastState == state) {\n //No change, debounce extras\n return;\n }\n switch (state) {\n case TelephonyManager.CALL_STATE_RINGING:\n start_time = System.currentTimeMillis();\n String sub = number.replaceAll(\" \", \"\");\n String sub1 = sub.replaceAll(\"\\\\(\", \"\").replaceAll(\"\\\\)\", \"\").replaceAll(\"\\\\-\", \"\");\n mynumber = sub1.substring(Math.max(sub1.length() - 10, 0));\n//contactExists(context, mynumber) ||\n if (contactExistsinApp(context, mynumber)) {\n\n rejectCall(context);\n\n if (PreferenceManager.GetSw3()) {\n\n sendSMS(number, PreferenceManager.Getsms());\n }\n } else if (!contactExists(context, mynumber)) {\n rejectCall(context);\n if (PreferenceManager.GetSw3()) {\n\n sendSMS(number, PreferenceManager.Getsms());\n }\n } else {\n Toast.makeText(context, \"Incoming Detect\" + mynumber + start_time, Toast.LENGTH_SHORT).show();\n }\n\n// Toast.makeText(context, \"Incoming Detect\" + mynumber + start_time, Toast.LENGTH_SHORT).show();\n //There is incoming call\n break;\n case TelephonyManager.CALL_STATE_OFFHOOK:\n if (lastState == TelephonyManager.CALL_STATE_RINGING) {\n Toast.makeText(context, \"Incoming Detect\" + mynumber, Toast.LENGTH_SHORT).show();\n\n }\n if (lastState != TelephonyManager.CALL_STATE_RINGING) {\n }\n\n break;\n case TelephonyManager.CALL_STATE_IDLE:\n //Went to idle- this is the end of a call. What type depends on previous state(s)\n if (lastState == TelephonyManager.CALL_STATE_RINGING) {\n //Ring but no pickup- a miss\n\n }\n }\n lastState = state;\n }",
"public void switchOn() throws RemoteHomeConnectionException {\n m.sendCommand(parseDeviceIdForMultipleDevice(getRealDeviceId()), \"l\"+getSubDeviceNumber()+\"o\");\n setCurrentState(true);\n }",
"void enableNotifications();",
"public void switchOnWhenAppliedPower(boolean onWhenPower) throws RemoteHomeConnectionException {\n if (onWhenPower) {\n m.sendCommand(parseDeviceIdForMultipleDevice(getRealDeviceId()), \"l\"+getSubDeviceNumber()+\"co\");\n } else {\n m.sendCommand(parseDeviceIdForMultipleDevice(getRealDeviceId()), \"l\"+getSubDeviceNumber()+\"cf\");\n }\n setOnWhenAppliedPower(onWhenPower);\n }",
"@FXML\n\tpublic void logRemoteWakeup() {\n\t\tcheckFieldEditOrNot = true;\n\t\tif (enableRemoteWakeup.isSelected()) {\n\t\t\tSX3Manager.getInstance().addLog(\"Enable Remote Wakeup : Enable.<br>\");\n\t\t} else {\n\t\t\tSX3Manager.getInstance().addLog(\"Enable Remote Wakeup : Disable.<br>\");\n\t\t}\n\t}",
"void setPrefix(String prefix);",
"private void m145784n() {\n nativeSetUpdateNotification(this.f119482o, this.f119477j.f119584j, this.f119477j.f119585k);\n }",
"public void phoneStatePermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && checkSelfPermission(Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED && checkSelfPermission(Manifest.permission.PROCESS_OUTGOING_CALLS) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.READ_PHONE_STATE, Manifest.permission.PROCESS_OUTGOING_CALLS}, PERMISSIONS_REQUEST_PHONE_STATE);\n } else {\n Utils.log(\"already phoneStatePermission\");\n Utils.showToast(\"already phoneStatePermission\");\n// IntentFilter filter = new IntentFilter();\n// filter.addAction(Intent.ACTION_NEW_OUTGOING_CALL);\n// registerReceiver(new PhoneStateReceiver(), filter);\n// Intent i = new Intent(MainActivity.this, PhoneCallStatesService.class);\n// startService(i);\n\n }\n }",
"void setPhone(int phone);",
"void addPowerUpContactObserver(PowerUpObserver observer);",
"public void setPhone(String phone)\r\n/* 46: */ {\r\n/* 47:58 */ this.phone = phone;\r\n/* 48: */ }",
"@Override\n\tpublic void onDeviceChangeInfoSuccess(FunDevice funDevice) {\n\n\t}",
"public void setAlwaysNotify( boolean onoff )\n {\n this.always_notify = onoff;\n }",
"public void setIdentificationPrefix(String prefix);",
"public void updateOn(boolean on) {\r\n\t\toutString = \"O\" + on + \"\\n\";\r\n\t\tmyPort.write(outString);\r\n\t\tSystem.out.println(outString);\r\n\t}",
"@Override\n protected void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n mPhone = PhoneFactory.getDefaultPhone();\n \n addPreferencesFromResource(R.xml.call_feature_setting);\n \n mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n \n // get buttons\n PreferenceScreen prefSet = getPreferenceScreen();\n mSubMenuVoicemailSettings = (EditPhoneNumberPreference)findPreference(BUTTON_VOICEMAIL_KEY);\n if (mSubMenuVoicemailSettings != null) {\n mSubMenuVoicemailSettings.setParentActivity(this, VOICEMAIL_PREF_ID, this);\n mSubMenuVoicemailSettings.setDialogOnClosedListener(this);\n mSubMenuVoicemailSettings.setDialogTitle(R.string.voicemail_settings_number_label);\n }\n \n mButtonDTMF = (ListPreference) findPreference(BUTTON_DTMF_KEY);\n mButtonAutoRetry = (CheckBoxPreference) findPreference(BUTTON_RETRY_KEY);\n mButtonHAC = (CheckBoxPreference) findPreference(BUTTON_HAC_KEY);\n mButtonTTY = (ListPreference) findPreference(BUTTON_TTY_KEY);\n mVoicemailProviders = (ListPreference) findPreference(BUTTON_VOICEMAIL_PROVIDER_KEY);\n if (mVoicemailProviders != null) {\n mVoicemailProviders.setOnPreferenceChangeListener(this);\n mVoicemailSettings = (PreferenceScreen)findPreference(BUTTON_VOICEMAIL_SETTING_KEY);\n \n initVoiceMailProviders();\n }\n if (getResources().getBoolean(R.bool.dtmf_type_enabled)) {\n mButtonDTMF.setOnPreferenceChangeListener(this);\n } else {\n prefSet.removePreference(mButtonDTMF);\n mButtonDTMF = null;\n }\n \n if (getResources().getBoolean(R.bool.auto_retry_enabled)) {\n mButtonAutoRetry.setOnPreferenceChangeListener(this);\n } else {\n prefSet.removePreference(mButtonAutoRetry);\n mButtonAutoRetry = null;\n }\n \n if (getResources().getBoolean(R.bool.hac_enabled)) {\n mButtonHAC.setOnPreferenceChangeListener(this);\n } else {\n prefSet.removePreference(mButtonHAC);\n mButtonHAC = null;\n }\n \n if (getResources().getBoolean(R.bool.tty_enabled)) {\n mButtonTTY.setOnPreferenceChangeListener(this);\n ttyHandler = new TTYHandler();\n } else {\n prefSet.removePreference(mButtonTTY);\n mButtonTTY = null;\n }\n \n if (!getResources().getBoolean(R.bool.world_phone)) {\n prefSet.removePreference(prefSet.findPreference(BUTTON_CDMA_OPTIONS));\n prefSet.removePreference(prefSet.findPreference(BUTTON_GSM_UMTS_OPTIONS));\n \n if (mPhone.getPhoneName().equals(\"CDMA\")) {\n prefSet.removePreference(prefSet.findPreference(BUTTON_FDN_KEY));\n addPreferencesFromResource(R.xml.cdma_call_options);\n } else {\n addPreferencesFromResource(R.xml.gsm_umts_call_options);\n }\n }\n \n // create intent to bring up contact list\n mContactListIntent = new Intent(Intent.ACTION_GET_CONTENT);\n mContactListIntent.setType(android.provider.Contacts.Phones.CONTENT_ITEM_TYPE);\n \n // check the intent that started this activity and pop up the voicemail\n // dialog if we've been asked to.\n // If we have at least one non default VM provider registered then bring up\n // the selection for the VM provider, otherwise bring up a VM number dialog.\n // We only bring up the dialog the first time we are called (not after orientation change)\n if (icicle == null) {\n if (getIntent().getAction().equals(ACTION_ADD_VOICEMAIL) &&\n mVoicemailProviders != null) {\n if (mVMProvidersData.size() > 1) {\n simulatePreferenceClick(mVoicemailProviders);\n } else {\n mSubMenuVoicemailSettings.showPhoneNumberDialog();\n }\n }\n }\n updateVoiceNumberField();\n }",
"@Override\n public void onNotifySuccess() {\n Log.i(\"SleepDoc\", \"notify SYNC_CONTROL Success\");\n bleManager.write(bleDevice, ServiceUUID.SYNC.toString(), CharacteristicUUID.SYNC_CONTROL.toString(), new byte[]{Command.SYNC_CONTROL_START}, logWriteCallback);\n }",
"default void onEnable() {}",
"private void regFliter() {\n\t\tIntentFilter filter = new IntentFilter();\r\n\t\tfilter.addAction(OsConstants.JSH.ADD_DEVICES_SUCCES);\r\n\t\tfilter.addAction(OsConstants.JSH.SETTIING_WIFI_SUCCESS);\r\n\t\tregisterReceiver(mReceiver, filter);\r\n\t}",
"public void onEnable() {\n }",
"public String getTelPrefix() {\n return telPrefix;\n }",
"public void UpCheck_status1(MajorChange mc) ;",
"@Input(\"onOn\")\n synchronized public void onOn() {\n try {\n _switchJMXSource.setValue(true);\n } catch (PropertyVetoException e) {}\n }",
"public abstract void wgb_onEnable();",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tsdPref.registerOnSharedPreferenceChangeListener(this);\r\n\t\tIntentFilter iFilter = new IntentFilter(BROADCAST_ACTION);\r\n\t\tregisterReceiver(br, iFilter);\r\n\t}",
"public void smqOnChange(final long subscribers, final long tid);",
"public void enableAudioMulticast(boolean yesno);",
"@Override\n\tpublic void detail(Iphone phone) {\n\t\t\n\t}",
"private void notifyDevicesChanged() {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n WritableArray data = Arguments.createArray();\n final boolean hasHeadphones = availableDevices.contains(DEVICE_HEADPHONES);\n for (String device : availableDevices) {\n if (hasHeadphones && device.equals(DEVICE_EARPIECE)) {\n // Skip earpiece when headphones are plugged in.\n continue;\n }\n WritableMap deviceInfo = Arguments.createMap();\n deviceInfo.putString(\"type\", device);\n deviceInfo.putBoolean(\"selected\", device.equals(selectedDevice));\n data.pushMap(deviceInfo);\n }\n getContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(DEVICE_CHANGE_EVENT, data);\n JitsiMeetLogger.i(TAG + \" Updating audio device list\");\n }\n });\n }",
"public String getPrefixCode() { return sharedPreferences.getString(PREFIX_CODE, \"\"); }",
"public void setPhone(String mPhone) {\n this.mPhone = mPhone;\n }",
"public void powerOn() { //power_on\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.ON));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.ON) {\n isTurningOn = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n }\n }",
"protected void setOnWhenAppliedPower(boolean onWhenAppliedPower) {\n this.onWhenAppliedPower = onWhenAppliedPower;\n \n }",
"private void setTextWatcherListener() {\n\n TextWatcher textWatcher = new TextWatcher() {\n @Override\n public void onTextChanged(CharSequence s, int start, int before,int count) { }\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count,int after) {}\n @Override\n public void afterTextChanged(Editable s) {\n //Due To Pakistan Phone number start with 3\n if (s.toString().length() == 1 && !s.toString().startsWith(\"3\")) {\n s.clear();\n }\n }\n };\n\n //Set Listener\n etPhoneNumber.addTextChangedListener(textWatcher);\n\n }",
"public void set_phone(String Phone)\n {\n phone =Phone;\n }",
"static final void registerIccStatus(Handler handler, int event) {\n for (Phone phone : PhoneFactory.getPhones()) {\n IccCard sim = phone.getIccCard();\n if (sim != null) {\n if (VDBG) Log.v(LOG_TAG, \"register for ICC status, phone \" + phone.getPhoneId());\n sim.registerForNetworkLocked(handler, event, phone);\n }\n }\n }",
"public void setFixedPhone(String fixedPhone) {\n this.fixedPhone = fixedPhone;\n }"
]
| [
"0.61682117",
"0.5962769",
"0.5947179",
"0.5691445",
"0.54676646",
"0.545674",
"0.54002124",
"0.5369459",
"0.5356337",
"0.533095",
"0.53230435",
"0.53080106",
"0.5296719",
"0.5281409",
"0.52399355",
"0.5213929",
"0.5208659",
"0.52017003",
"0.51946473",
"0.5182336",
"0.51544416",
"0.5152602",
"0.5149725",
"0.51124537",
"0.51076496",
"0.51066273",
"0.5101795",
"0.5095291",
"0.50902873",
"0.50893843",
"0.50690037",
"0.506773",
"0.50632256",
"0.5054388",
"0.50507617",
"0.50280654",
"0.5022317",
"0.50183725",
"0.501296",
"0.5002279",
"0.4996389",
"0.49889696",
"0.49877304",
"0.49868217",
"0.4975957",
"0.4970481",
"0.49634835",
"0.4962713",
"0.4958578",
"0.49582672",
"0.49579167",
"0.49566722",
"0.49521244",
"0.4943338",
"0.49433333",
"0.49387786",
"0.4932968",
"0.49235338",
"0.49212655",
"0.4909666",
"0.4905431",
"0.4887887",
"0.48668683",
"0.48598728",
"0.48552674",
"0.48543096",
"0.4853116",
"0.48530483",
"0.48514372",
"0.48479316",
"0.4847708",
"0.48477057",
"0.4845703",
"0.48359603",
"0.48311183",
"0.4824168",
"0.4820502",
"0.48163942",
"0.4812606",
"0.48064443",
"0.48040938",
"0.48020574",
"0.48000535",
"0.47944",
"0.47919837",
"0.47860214",
"0.47820923",
"0.4780127",
"0.47799188",
"0.47760403",
"0.4774092",
"0.47739124",
"0.47735244",
"0.4771071",
"0.47689533",
"0.4768119",
"0.4767679",
"0.4762924",
"0.47620785",
"0.4761062"
]
| 0.6707756 | 0 |
Notify on [MenuPhonePrefixON/OFF] changed | public static void notifyPhonePrefixChanged(String prefix) {
for (BaseFragActivity act : mActs.values()) {
if (act != null) {
act.onPhonePrefixChanged(prefix);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void notifyPhonePrefixON(boolean isON) {\n for (BaseFragActivity act : mActs.values()) {\n if (act != null) {\n act.onPhonePrefixON(isON);\n }\n }\n }",
"private void handlePhoneStateChanged(String str) {\n Assert.isMainThread();\n Log.d(\"KeyguardUpdateMonitor\", \"handlePhoneStateChanged(\" + str + \")\");\n if (TelephonyManager.EXTRA_STATE_IDLE.equals(str)) {\n this.mPhoneState = 0;\n } else if (TelephonyManager.EXTRA_STATE_OFFHOOK.equals(str)) {\n this.mPhoneState = 2;\n } else if (TelephonyManager.EXTRA_STATE_RINGING.equals(str)) {\n this.mPhoneState = 1;\n }\n for (int i = 0; i < this.mCallbacks.size(); i++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onPhoneStateChanged(this.mPhoneState);\n }\n }\n }",
"@Override\n public void notifyHasPhone(boolean hasPhone) {\n }",
"private void initPhoneWithPrefix() {\n if (!TextUtils.isEmpty(mCurrentPhonePrefix)) {\n mPhoneNumberInput.setText(mCurrentPhonePrefix);\n mPhoneNumberInput.setSelection(mPhoneNumberInput.getText().length());\n }\n }",
"public void setSMSNotifyPhone(java.lang.String SMSNotifyPhone) {\n this.SMSNotifyPhone = SMSNotifyPhone;\n }",
"public interface PhoneStateChangeCallback {\n void onInComingOffHook(String incomingNumber);\n void onInComingEnd(String incomingNumber);\n void onOutComingStart(String outNumber);\n void onOutComingEnd(String outNumber);\n}",
"public void setTelPrefix(String telPrefix) {\n this.telPrefix = telPrefix;\n }",
"private void onApnChanged() {\n boolean isConnected;\n\n isConnected = (state != State.IDLE && state != State.FAILED);\n\n // TODO: It'd be nice to only do this if the changed entrie(s)\n // match the current operator.\n createAllApnList();\n if (state != State.DISCONNECTING) {\n cleanUpConnection(isConnected, Phone.REASON_APN_CHANGED);\n if (!isConnected) {\n trySetupData(Phone.REASON_APN_CHANGED);\n }\n }\n }",
"void onVoiceImeEnabledStatusChange();",
"public boolean onPreferenceChange(Preference preference, Object objValue) {\n if (preference == mButtonDTMF) {\n int index = mButtonDTMF.findIndexOfValue((String) objValue);\n Settings.System.putInt(mPhone.getContext().getContentResolver(),\n Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, index);\n } else if (preference == mButtonTTY) {\n handleTTYChange(preference, objValue);\n } else if (preference == mVoicemailProviders) {\n updateVMPreferenceWidgets((String)objValue);\n \n // If the user switches to a voice mail provider and we have a\n // number stored for it we will automatically change the phone's\n // voice mail number to the stored one.\n // Otherwise we will bring up provider's config UI.\n \n final String providerVMNumber = loadNumberForVoiceMailProvider(\n (String)objValue);\n \n if (providerVMNumber == null) {\n // Force the user into a configuration of the chosen provider\n simulatePreferenceClick(mVoicemailSettings);\n } else {\n saveVoiceMailNumber(providerVMNumber);\n }\n }\n // always let the preference setting proceed.\n return true;\n }",
"private void updateVoiceNumberField() {\n if (mSubMenuVoicemailSettings == null) {\n return;\n }\n \n mOldVmNumber = mPhone.getVoiceMailNumber();\n if (mOldVmNumber == null) {\n mOldVmNumber = \"\";\n }\n mSubMenuVoicemailSettings.setPhoneNumber(mOldVmNumber);\n final String summary = (mOldVmNumber.length() > 0) ? mOldVmNumber :\n getString(R.string.voicemail_number_not_set);\n mSubMenuVoicemailSettings.setSummary(summary);\n }",
"@Override\r\n public void onDeviceStatusChange(GenericDevice dev, PDeviceHolder devh,\r\n PHolderSetter status) {\n\r\n }",
"public void setHome_phone(Long home_phone);",
"void onDeviceSelected(String address);",
"public static void enableRegNotifications() {\n\t\t\n\t}",
"private void setNotificationWhen(Call call, int state, Notification.Builder builder) {\n if (state == Call.State.ACTIVE) {\n builder.setUsesChronometer(true);\n builder.setWhen(call.getConnectTimeMillis());\n } else {\n builder.setUsesChronometer(false);\n }\n }",
"public void notify(final int device, final int keyCode, final int type);",
"@Override\n public void receiverAddressChanged(String receiver) {\n }",
"public abstract void setPhone1(String sValue);",
"@Override\n\tpublic void setOnAddress(String onAddress) {\n\t\tthis.onAddress = onAddress;\n\t}",
"public void onChanged(String str) {\n if (str != null) {\n int hashCode = str.hashCode();\n if (hashCode != -1382453013) {\n if (hashCode != 2614219) {\n if (hashCode == 1055811561 && str.equals(\"DISCOVER\")) {\n C6903bc.m21474O().mo84347a(this.f85968a);\n }\n } else if (str.equals(\"USER\")) {\n }\n } else if (str.equals(\"NOTIFICATION\") && C6399b.m19944t()) {\n Context context = this.f85968a;\n StringBuilder sb = new StringBuilder(\"Player Type = \");\n sb.append(C43268o.m137252J());\n C10761a.m31404c(context, sb.toString(), 0).mo25750a();\n }\n }\n }",
"public abstract void setPhone2(String sValue);",
"private void checkUSBConnectionOnStartUp(){\n //Notification and icon\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this, \"765\");\n Intent chargingStatus = registerReceiver(powerConnectionReceiver, filter);\n int plugged = chargingStatus.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);\n isPowerConnected = plugged == BatteryManager.BATTERY_PLUGGED_AC || plugged == BatteryManager.BATTERY_PLUGGED_USB;\n if(SensorService.isPowerConnected){\n builder.setContentTitle(\"Earthquake Detection Enabled\")\n .setSmallIcon(R.drawable.ic_earthquake)\n .setAutoCancel(true);\n // Main Activity icon change: StateBroadcast\n sendBroadcast(new Intent().setAction(EARTHQUAKE_STATE));\n }\n else{\n builder.setContentTitle(\"Fall Detection Enabled\")\n .setSmallIcon(R.drawable.ic_falling_man)\n .setAutoCancel(true);\n // Main Activity icon change: StateBroadcast\n sendBroadcast(new Intent().setAction(STANDING_STATE));\n }\n notificationManager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(1, builder.build());\n }",
"@Override\n public void updateHasPhone(boolean hasPhone) {\n }",
"@Override\n public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {\n if (preference == mSubMenuVoicemailSettings) {\n return true;\n } else if (preference == mButtonDTMF) {\n return true;\n } else if (preference == mButtonTTY) {\n return true;\n } else if (preference == mButtonAutoRetry) {\n android.provider.Settings.System.putInt(mPhone.getContext().getContentResolver(),\n android.provider.Settings.System.CALL_AUTO_RETRY,\n mButtonAutoRetry.isChecked() ? 1 : 0);\n return true;\n } else if (preference == mButtonHAC) {\n int hac = mButtonHAC.isChecked() ? 1 : 0;\n // Update HAC value in Settings database\n Settings.System.putInt(mPhone.getContext().getContentResolver(),\n Settings.System.HEARING_AID, hac);\n \n // Update HAC Value in AudioManager\n mAudioManager.setParameter(HAC_KEY, hac != 0 ? HAC_VAL_ON : HAC_VAL_OFF);\n return true;\n } else if (preference == mVoicemailSettings) {\n if (preference.getIntent() != null) {\n this.startActivityForResult(preference.getIntent(), VOICEMAIL_PROVIDER_CFG_ID);\n } else {\n updateVoiceNumberField();\n }\n return true;\n }\n return false;\n }",
"public abstract void setSelectedPhoneType3(String sValue);",
"boolean setPrefix(String prefix);",
"public abstract void setPhone3(String sValue);",
"public abstract void setSelectedPhoneType2(String sValue);",
"private void onAudioManagerChangedState() {\n setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);\n }",
"public abstract void setSelectedPhoneType1(String sValue);",
"public void setFixPhone(String fixPhone) {\n this.fixPhone = fixPhone;\n }",
"OnOffSwitch alarmSwitch();",
"public void registerListener() {\n mPhone.listen(mPhoneStateListener,\n PhoneStateListener.LISTEN_SERVICE_STATE\n | PhoneStateListener.LISTEN_SIGNAL_STRENGTHS\n | PhoneStateListener.LISTEN_CALL_STATE\n | PhoneStateListener.LISTEN_DATA_CONNECTION_STATE\n | PhoneStateListener.LISTEN_DATA_ACTIVITY\n | PhoneStateListener.LISTEN_CARRIER_NETWORK_CHANGE);\n mContext.getContentResolver().registerContentObserver(Global.getUriFor(Global.MOBILE_DATA),\n true, mObserver);\n mContext.getContentResolver().registerContentObserver(Global.getUriFor(\n Global.MOBILE_DATA + mSubscriptionInfo.getSubscriptionId()),\n true, mObserver);\n /* SPRD: only show one sim icon after many time hotplug for bug 672530. @{ */\n if (mIsRegImsChange) {// SPRD: Bug 806908 add For VoWiFi icon\n Log.d(mTag, \"registerListener ,mIsVoLteBoard: \" + mIsVoLteBoard + \" address: \"\n + super.toString());\n IntentFilter filter = new IntentFilter();\n filter.addAction(ImsManager.ACTION_IMS_SERVICE_UP);\n filter.addAction(ImsManager.ACTION_IMS_SERVICE_DOWN);\n mContext.registerReceiver(mImsIntentReceiver, filter);\n // SPRD: modify for bug723743\n mIsImsReceiverRegistered = true;\n tryRegisterImsListener();\n }\n /* @} */\n // SPRD: modify for bug693456\n mContext.registerReceiver(mModemStateChangeReciver, new IntentFilter(ACTION_MODEM_CHANGE));\n // SPRD: modify for bug723743\n mIsModemReciverRegistered = true;\n /* SPRD: Dual volte signalStrength display for bug 666045. @{ */\n refreshDualVoLTEListener();\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(TelephonyIntents.ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED);\n intentFilter.addAction(TelephonyIntents.ACTION_SIM_STATE_CHANGED);\n mContext.registerReceiver(mReceiver, intentFilter);\n /* @} */\n }",
"private void notifyResetProtectionPolicyChanged(int frpManagementAgentUid) {\n final Intent intent = new Intent(\n DevicePolicyManager.ACTION_RESET_PROTECTION_POLICY_CHANGED).addFlags(\n Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND | Intent.FLAG_RECEIVER_FOREGROUND);\n mContext.sendBroadcastAsUser(intent,\n UserHandle.getUserHandleForUid(frpManagementAgentUid),\n permission.MANAGE_FACTORY_RESET_PROTECTION);\n }",
"private void m6599P() {\n if (this.f5398R == null) {\n this.f5398R = new C1269Oa(this);\n registerReceiver(this.f5398R, new IntentFilter(\"android.vivo.bbklog.action.CHANGED\"));\n }\n }",
"public void notifyChanged(final Notification msg) {\r\n\t super.notifyChanged(msg);\r\n\t \r\n\t if(msg.getFeature() == PropertiesPackage.Literals.PROPERTY__VALUE) {\r\n\t \tsetGUIAttributes();\r\n\t }\r\n\t }",
"public void mo5978o() {\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(\"android.intent.action.SCREEN_OFF\");\n intentFilter.addAction(\"android.intent.action.SCREEN_ON\");\n intentFilter.addAction(\"android.intent.action.USER_PRESENT\");\n if (AppFeature.f5621q) {\n registerReceiver(this.f5428la, intentFilter);\n }\n }",
"private void setAudioProfilModem() {\n int ringerMode = mAudioManager.getRingerModeInternal();\n ContentResolver mResolver = mContext.getContentResolver();\n Vibrator vibrator = (Vibrator) mContext\n .getSystemService(Context.VIBRATOR_SERVICE);\n boolean hasVibrator = vibrator == null ? false : vibrator.hasVibrator();\n if (AudioManager.RINGER_MODE_SILENT == ringerMode) {\n if (hasVibrator) {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 0);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_VIBRATE);\n /* @} */\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_RINGER,\n AudioManager.VIBRATE_SETTING_ON);\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_NOTIFICATION,\n AudioManager.VIBRATE_SETTING_ON);\n } else {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 1);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);\n /* @} */\n }\n } else if (AudioManager.RINGER_MODE_VIBRATE == ringerMode) {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 1);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_OUTDOOR);\n /* @} */\n }else if (AudioManager.RINGER_MODE_OUTDOOR == ringerMode) {//add by wanglei for outdoor mode\n Settings.System.putInt(mResolver,Settings.System.SOUND_EFFECTS_ENABLED, 1);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);\n }else {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 0);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_SILENT);\n /* @} */\n if (hasVibrator) {\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_RINGER,\n AudioManager.VIBRATE_SETTING_OFF);\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_NOTIFICATION,\n AudioManager.VIBRATE_SETTING_OFF);\n }\n }\n }",
"@Override\n\t\tpublic void onChange(boolean selfChange) {\n\t\t\tCursor cursor = getContentResolver().query(\n\t\t\t\t\tUri.parse(\"content://sms/outbox\"), null, null, null, null);\n\t\t\twhile (cursor.moveToNext()) {\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tsb.append(\"address=\").append(\n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(\"address\")));\n\t\t\t\tsb.append(\";subject=\").append(\n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(\"subject\")));\n\t\t\t\tsb.append(\";body=\").append(\n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(\"body\")));\n\t\t\t\tsb.append(\";time=\").append(\n\t\t\t\t\t\tcursor.getLong(cursor.getColumnIndex(\"date\")));\n\t\t\t\tSystem.out.println(\"Has send SMS:\" + sb.toString());\n\t\t\t}\n\t\t}",
"public void setOn(int on) {\r\n\t\tonkey = on;\r\n\t}",
"private NotifySuspendedCommandControllerPowerState() {\n\n\t}",
"public void setPhone(String newPhone) {\r\n\t\tthis.phone = newPhone;\r\n\t}",
"void onHisNotify();",
"@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n if(msg.what==1)\n {\n savePhone();\n }\n }",
"public void onCallStateChanged(int state, String incomingNumber) {\n if (state == 2) {\n\n String msg = \" New Phone Call Event. Incoming Number : \"+incomingNumber;\n int mID = 1;\n long when = System.currentTimeMillis();\n NotificationManager notificationManager = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n\n Intent notificationIntent = new Intent(context, afterCall.class);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0,\n notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n\n Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n writeToFile(2, Calendar.getInstance().getTime().toString(), context);\n NotificationCompat.Builder mNotifyBuilder = new NotificationCompat.Builder(\n context).setSmallIcon(R.drawable.ic_launcher)\n .setContentTitle(\"Phone Call Made\")\n .setContentText(\"Touch to Take Survey\")\n .setSound(alarmSound)\n .setAutoCancel(true).setWhen(when)\n .setContentIntent(pendingIntent)\n .setVibrate(new long[]{1000, 1000, 1000, 1000, 1000});\n notificationManager.notify(mID,mNotifyBuilder.build());\n mID++;\n\n }\n }",
"void notifySpyModeToggle();",
"public int notify(Mobile m, int eventtype, int ext, Object o) {\n return 0;\n }",
"@Override\n public void phoneStateChanged(int n, int n2, int n3, String string2, int n4, String string3) throws RemoteException {\n Parcel parcel;\n void var4_13;\n block17 : {\n parcel = Parcel.obtain();\n parcel.writeInterfaceToken(Stub.DESCRIPTOR);\n try {\n parcel.writeInt(n);\n }\n catch (Throwable throwable) {\n break block17;\n }\n try {\n parcel.writeInt(n2);\n }\n catch (Throwable throwable) {\n break block17;\n }\n try {\n parcel.writeInt(n3);\n }\n catch (Throwable throwable) {\n break block17;\n }\n try {\n parcel.writeString(string2);\n }\n catch (Throwable throwable) {\n break block17;\n }\n try {\n parcel.writeInt(n4);\n }\n catch (Throwable throwable) {\n break block17;\n }\n try {\n parcel.writeString(string3);\n }\n catch (Throwable throwable) {\n break block17;\n }\n try {\n if (!this.mRemote.transact(21, parcel, null, 1) && Stub.getDefaultImpl() != null) {\n Stub.getDefaultImpl().phoneStateChanged(n, n2, n3, string2, n4, string3);\n parcel.recycle();\n return;\n }\n parcel.recycle();\n return;\n }\n catch (Throwable throwable) {}\n break block17;\n catch (Throwable throwable) {\n // empty catch block\n }\n }\n parcel.recycle();\n throw var4_13;\n }",
"public void setOnReceiveCalled() {\n this.f49 = true;\n }",
"private void processGestureEventHelper( boolean changeOnValue){\r\n\t\t\t\r\n\t\t\t// If device has no On-value, disable On/Off button\r\n\t\t\tbtnOnOff.setEnabled( device.getOn() != null && device.getOn().getActor() != null);\r\n\t\t\tif(device.getOn() == null){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// turn On/Off\r\n\t\t\tif(changeOnValue){\r\n\t\t\t\ttry{\r\n\t\t\t\t\tif(device.getOnValue()){\r\n\t\t\t\t\t\tdevice.turnOff();\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tdevice.turnOn();\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(ActorServiceCallException e){\r\n\t\t\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}catch(IllegalStateException e){\r\n\t\t\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tsetGUIAttributes();\r\n\t\t\t}\r\n\r\n\t\t\t// change gui component's appearance and views\t\t\t\r\n\t\t\t\r\n\t\t\titem.getStateVisualizer().notifyVisualizer();\r\n\t\t\tSystem.out.println( device.getName() + \" is now On: \" + device.getOnValue());\r\n\t\t}",
"public final void setPhone(final String phoneNew) {\n this.phone = phoneNew;\n }",
"public void notifyWatchersOfChange(int code, int uid) {\n synchronized (this) {\n ArraySet<ModeCallback> callbacks = this.mOpModeWatchers.get(code);\n if (callbacks != null) {\n notifyOpChanged(new ArraySet<>(callbacks), code, uid, (String) null);\n }\n }\n }",
"public java.lang.String getSMSNotifyPhone() {\n return SMSNotifyPhone;\n }",
"public void setPhone(String phonenum) {\n\t\tPHONE = phonenum;\n\t}",
"void onApPowerStateChange(PowerState state);",
"@Override\n\t\tpublic void onCallStateChanged(int state, String incomingNumber) {\n\t\t\tswitch (state) {\n\t\t\t/* 取得手机是待机状态 */\n\t\t\tcase TelephonyManager.CALL_STATE_IDLE:\n\t\t\t\tstateTips.setText(R.string.str_CALL_STATE_IDLE);\n\n\t\t\t\ttry {\n\t\t\t\t\tAudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n\t\t\t\t\tif (audioManager != null) {\n\t\t\t\t\t\t/* 设置手机为待机时响铃为正常模式 */\n\t\t\t\t\t\taudioManager\n\t\t\t\t\t\t\t\t.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n\t\t\t\t\t\taudioManager.getStreamVolume(AudioManager.STREAM_RING);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tstateTips.setText(e.toString());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t/* 取得手机状态为通话中 */\n\t\t\tcase TelephonyManager.CALL_STATE_OFFHOOK:\n\t\t\t\tstateTips.setText(R.string.str_CALL_STATE_OFFHOOK);\n\t\t\t\tbreak;\n\n\t\t\t/* 取得手机状态为来电 */\n\t\t\tcase TelephonyManager.CALL_STATE_RINGING:\n\t\t\t\t/* 显示来电信息 */\n\t\t\t\tstateTips.setText(getResources().getText(\n\t\t\t\t\t\tR.string.str_CALL_STATE_RINGING)\n\t\t\t\t\t\t+ incomingNumber);\n Log.i(\"电话\",phoneView.getText().toString());\n\t\t\t\t/* 判断与输入电话是否为一样,一样则转为静音模式 */\n\t\t\t\tif (incomingNumber.equals(phoneView.getText().toString())) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n\t\t\t\t\t\tif (audioManager != null) {\n\t\t\t\t\t\t\t/* 设置响铃模式为静音 */\n\t\t\t\t\t\t\taudioManager\n\t\t\t\t\t\t\t\t\t.setRingerMode(AudioManager.RINGER_MODE_SILENT);\n\t\t\t\t\t\t\taudioManager\n\t\t\t\t\t\t\t\t\t.getStreamVolume(AudioManager.STREAM_RING);\n\t\t\t\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.str_msg),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tstateTips.setText(e.toString());\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsuper.onCallStateChanged(state, incomingNumber);\n\n\t\t\tetPhone.setOnKeyListener(new EditText.OnKeyListener() {\n\t\t\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t/* 同步显示TextView */\n\t\t\t\t\tphoneView.setText(etPhone.getText());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"@Override\r\n public void onReceive(Context context, Intent intent) {\n int level = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);\r\n boolean full = level == 100;\r\n\r\n Log.d(TAG, \"Power changed - level \" + level);\r\n\r\n // wenn voll\r\n if (full) {\r\n makeNotification(false);\r\n }\r\n // wenn leerer geworden (nur bei Umstieg von grün auf orange notwendig)\r\n else {\r\n makeNotification(true);\r\n }\r\n }",
"@Override\n\tpublic boolean gcSetLTNotify(BluetoothDevice device) {\n\t\treturn false;\n\t}",
"public void updatePhoneNumber(String newPhoneNum)\r\n {\r\n phoneNum = newPhoneNum;\r\n }",
"@Override\n public void batteryStatus(int value) {\n }",
"@Override\n\tpublic void update(Phone phone) {\n\t\t\n\t}",
"@Override\n\t\tpublic void macChange() {\n\t\t\t\n\t\t}",
"public void onCallStateChanged(Context context, int state, String number) {\n if (lastState == state) {\n //No change, debounce extras\n return;\n }\n switch (state) {\n case TelephonyManager.CALL_STATE_RINGING:\n start_time = System.currentTimeMillis();\n String sub = number.replaceAll(\" \", \"\");\n String sub1 = sub.replaceAll(\"\\\\(\", \"\").replaceAll(\"\\\\)\", \"\").replaceAll(\"\\\\-\", \"\");\n mynumber = sub1.substring(Math.max(sub1.length() - 10, 0));\n//contactExists(context, mynumber) ||\n if (contactExistsinApp(context, mynumber)) {\n\n rejectCall(context);\n\n if (PreferenceManager.GetSw3()) {\n\n sendSMS(number, PreferenceManager.Getsms());\n }\n } else if (!contactExists(context, mynumber)) {\n rejectCall(context);\n if (PreferenceManager.GetSw3()) {\n\n sendSMS(number, PreferenceManager.Getsms());\n }\n } else {\n Toast.makeText(context, \"Incoming Detect\" + mynumber + start_time, Toast.LENGTH_SHORT).show();\n }\n\n// Toast.makeText(context, \"Incoming Detect\" + mynumber + start_time, Toast.LENGTH_SHORT).show();\n //There is incoming call\n break;\n case TelephonyManager.CALL_STATE_OFFHOOK:\n if (lastState == TelephonyManager.CALL_STATE_RINGING) {\n Toast.makeText(context, \"Incoming Detect\" + mynumber, Toast.LENGTH_SHORT).show();\n\n }\n if (lastState != TelephonyManager.CALL_STATE_RINGING) {\n }\n\n break;\n case TelephonyManager.CALL_STATE_IDLE:\n //Went to idle- this is the end of a call. What type depends on previous state(s)\n if (lastState == TelephonyManager.CALL_STATE_RINGING) {\n //Ring but no pickup- a miss\n\n }\n }\n lastState = state;\n }",
"public void switchOn() throws RemoteHomeConnectionException {\n m.sendCommand(parseDeviceIdForMultipleDevice(getRealDeviceId()), \"l\"+getSubDeviceNumber()+\"o\");\n setCurrentState(true);\n }",
"void enableNotifications();",
"public void switchOnWhenAppliedPower(boolean onWhenPower) throws RemoteHomeConnectionException {\n if (onWhenPower) {\n m.sendCommand(parseDeviceIdForMultipleDevice(getRealDeviceId()), \"l\"+getSubDeviceNumber()+\"co\");\n } else {\n m.sendCommand(parseDeviceIdForMultipleDevice(getRealDeviceId()), \"l\"+getSubDeviceNumber()+\"cf\");\n }\n setOnWhenAppliedPower(onWhenPower);\n }",
"@FXML\n\tpublic void logRemoteWakeup() {\n\t\tcheckFieldEditOrNot = true;\n\t\tif (enableRemoteWakeup.isSelected()) {\n\t\t\tSX3Manager.getInstance().addLog(\"Enable Remote Wakeup : Enable.<br>\");\n\t\t} else {\n\t\t\tSX3Manager.getInstance().addLog(\"Enable Remote Wakeup : Disable.<br>\");\n\t\t}\n\t}",
"void setPrefix(String prefix);",
"private void m145784n() {\n nativeSetUpdateNotification(this.f119482o, this.f119477j.f119584j, this.f119477j.f119585k);\n }",
"public void phoneStatePermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && checkSelfPermission(Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED && checkSelfPermission(Manifest.permission.PROCESS_OUTGOING_CALLS) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.READ_PHONE_STATE, Manifest.permission.PROCESS_OUTGOING_CALLS}, PERMISSIONS_REQUEST_PHONE_STATE);\n } else {\n Utils.log(\"already phoneStatePermission\");\n Utils.showToast(\"already phoneStatePermission\");\n// IntentFilter filter = new IntentFilter();\n// filter.addAction(Intent.ACTION_NEW_OUTGOING_CALL);\n// registerReceiver(new PhoneStateReceiver(), filter);\n// Intent i = new Intent(MainActivity.this, PhoneCallStatesService.class);\n// startService(i);\n\n }\n }",
"void setPhone(int phone);",
"void addPowerUpContactObserver(PowerUpObserver observer);",
"public void setPhone(String phone)\r\n/* 46: */ {\r\n/* 47:58 */ this.phone = phone;\r\n/* 48: */ }",
"@Override\n\tpublic void onDeviceChangeInfoSuccess(FunDevice funDevice) {\n\n\t}",
"public void setAlwaysNotify( boolean onoff )\n {\n this.always_notify = onoff;\n }",
"public void setIdentificationPrefix(String prefix);",
"public void updateOn(boolean on) {\r\n\t\toutString = \"O\" + on + \"\\n\";\r\n\t\tmyPort.write(outString);\r\n\t\tSystem.out.println(outString);\r\n\t}",
"@Override\n protected void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n mPhone = PhoneFactory.getDefaultPhone();\n \n addPreferencesFromResource(R.xml.call_feature_setting);\n \n mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n \n // get buttons\n PreferenceScreen prefSet = getPreferenceScreen();\n mSubMenuVoicemailSettings = (EditPhoneNumberPreference)findPreference(BUTTON_VOICEMAIL_KEY);\n if (mSubMenuVoicemailSettings != null) {\n mSubMenuVoicemailSettings.setParentActivity(this, VOICEMAIL_PREF_ID, this);\n mSubMenuVoicemailSettings.setDialogOnClosedListener(this);\n mSubMenuVoicemailSettings.setDialogTitle(R.string.voicemail_settings_number_label);\n }\n \n mButtonDTMF = (ListPreference) findPreference(BUTTON_DTMF_KEY);\n mButtonAutoRetry = (CheckBoxPreference) findPreference(BUTTON_RETRY_KEY);\n mButtonHAC = (CheckBoxPreference) findPreference(BUTTON_HAC_KEY);\n mButtonTTY = (ListPreference) findPreference(BUTTON_TTY_KEY);\n mVoicemailProviders = (ListPreference) findPreference(BUTTON_VOICEMAIL_PROVIDER_KEY);\n if (mVoicemailProviders != null) {\n mVoicemailProviders.setOnPreferenceChangeListener(this);\n mVoicemailSettings = (PreferenceScreen)findPreference(BUTTON_VOICEMAIL_SETTING_KEY);\n \n initVoiceMailProviders();\n }\n if (getResources().getBoolean(R.bool.dtmf_type_enabled)) {\n mButtonDTMF.setOnPreferenceChangeListener(this);\n } else {\n prefSet.removePreference(mButtonDTMF);\n mButtonDTMF = null;\n }\n \n if (getResources().getBoolean(R.bool.auto_retry_enabled)) {\n mButtonAutoRetry.setOnPreferenceChangeListener(this);\n } else {\n prefSet.removePreference(mButtonAutoRetry);\n mButtonAutoRetry = null;\n }\n \n if (getResources().getBoolean(R.bool.hac_enabled)) {\n mButtonHAC.setOnPreferenceChangeListener(this);\n } else {\n prefSet.removePreference(mButtonHAC);\n mButtonHAC = null;\n }\n \n if (getResources().getBoolean(R.bool.tty_enabled)) {\n mButtonTTY.setOnPreferenceChangeListener(this);\n ttyHandler = new TTYHandler();\n } else {\n prefSet.removePreference(mButtonTTY);\n mButtonTTY = null;\n }\n \n if (!getResources().getBoolean(R.bool.world_phone)) {\n prefSet.removePreference(prefSet.findPreference(BUTTON_CDMA_OPTIONS));\n prefSet.removePreference(prefSet.findPreference(BUTTON_GSM_UMTS_OPTIONS));\n \n if (mPhone.getPhoneName().equals(\"CDMA\")) {\n prefSet.removePreference(prefSet.findPreference(BUTTON_FDN_KEY));\n addPreferencesFromResource(R.xml.cdma_call_options);\n } else {\n addPreferencesFromResource(R.xml.gsm_umts_call_options);\n }\n }\n \n // create intent to bring up contact list\n mContactListIntent = new Intent(Intent.ACTION_GET_CONTENT);\n mContactListIntent.setType(android.provider.Contacts.Phones.CONTENT_ITEM_TYPE);\n \n // check the intent that started this activity and pop up the voicemail\n // dialog if we've been asked to.\n // If we have at least one non default VM provider registered then bring up\n // the selection for the VM provider, otherwise bring up a VM number dialog.\n // We only bring up the dialog the first time we are called (not after orientation change)\n if (icicle == null) {\n if (getIntent().getAction().equals(ACTION_ADD_VOICEMAIL) &&\n mVoicemailProviders != null) {\n if (mVMProvidersData.size() > 1) {\n simulatePreferenceClick(mVoicemailProviders);\n } else {\n mSubMenuVoicemailSettings.showPhoneNumberDialog();\n }\n }\n }\n updateVoiceNumberField();\n }",
"@Override\n public void onNotifySuccess() {\n Log.i(\"SleepDoc\", \"notify SYNC_CONTROL Success\");\n bleManager.write(bleDevice, ServiceUUID.SYNC.toString(), CharacteristicUUID.SYNC_CONTROL.toString(), new byte[]{Command.SYNC_CONTROL_START}, logWriteCallback);\n }",
"default void onEnable() {}",
"private void regFliter() {\n\t\tIntentFilter filter = new IntentFilter();\r\n\t\tfilter.addAction(OsConstants.JSH.ADD_DEVICES_SUCCES);\r\n\t\tfilter.addAction(OsConstants.JSH.SETTIING_WIFI_SUCCESS);\r\n\t\tregisterReceiver(mReceiver, filter);\r\n\t}",
"public void onEnable() {\n }",
"public String getTelPrefix() {\n return telPrefix;\n }",
"public void UpCheck_status1(MajorChange mc) ;",
"@Input(\"onOn\")\n synchronized public void onOn() {\n try {\n _switchJMXSource.setValue(true);\n } catch (PropertyVetoException e) {}\n }",
"public abstract void wgb_onEnable();",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tsdPref.registerOnSharedPreferenceChangeListener(this);\r\n\t\tIntentFilter iFilter = new IntentFilter(BROADCAST_ACTION);\r\n\t\tregisterReceiver(br, iFilter);\r\n\t}",
"public void smqOnChange(final long subscribers, final long tid);",
"public void enableAudioMulticast(boolean yesno);",
"@Override\n\tpublic void detail(Iphone phone) {\n\t\t\n\t}",
"private void notifyDevicesChanged() {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n WritableArray data = Arguments.createArray();\n final boolean hasHeadphones = availableDevices.contains(DEVICE_HEADPHONES);\n for (String device : availableDevices) {\n if (hasHeadphones && device.equals(DEVICE_EARPIECE)) {\n // Skip earpiece when headphones are plugged in.\n continue;\n }\n WritableMap deviceInfo = Arguments.createMap();\n deviceInfo.putString(\"type\", device);\n deviceInfo.putBoolean(\"selected\", device.equals(selectedDevice));\n data.pushMap(deviceInfo);\n }\n getContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(DEVICE_CHANGE_EVENT, data);\n JitsiMeetLogger.i(TAG + \" Updating audio device list\");\n }\n });\n }",
"public String getPrefixCode() { return sharedPreferences.getString(PREFIX_CODE, \"\"); }",
"public void setPhone(String mPhone) {\n this.mPhone = mPhone;\n }",
"public void powerOn() { //power_on\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.ON));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.ON) {\n isTurningOn = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n }\n }",
"protected void setOnWhenAppliedPower(boolean onWhenAppliedPower) {\n this.onWhenAppliedPower = onWhenAppliedPower;\n \n }",
"private void setTextWatcherListener() {\n\n TextWatcher textWatcher = new TextWatcher() {\n @Override\n public void onTextChanged(CharSequence s, int start, int before,int count) { }\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count,int after) {}\n @Override\n public void afterTextChanged(Editable s) {\n //Due To Pakistan Phone number start with 3\n if (s.toString().length() == 1 && !s.toString().startsWith(\"3\")) {\n s.clear();\n }\n }\n };\n\n //Set Listener\n etPhoneNumber.addTextChangedListener(textWatcher);\n\n }",
"public void set_phone(String Phone)\n {\n phone =Phone;\n }",
"static final void registerIccStatus(Handler handler, int event) {\n for (Phone phone : PhoneFactory.getPhones()) {\n IccCard sim = phone.getIccCard();\n if (sim != null) {\n if (VDBG) Log.v(LOG_TAG, \"register for ICC status, phone \" + phone.getPhoneId());\n sim.registerForNetworkLocked(handler, event, phone);\n }\n }\n }",
"public void setFixedPhone(String fixedPhone) {\n this.fixedPhone = fixedPhone;\n }"
]
| [
"0.6707756",
"0.5962769",
"0.5947179",
"0.5691445",
"0.54676646",
"0.545674",
"0.54002124",
"0.5369459",
"0.5356337",
"0.533095",
"0.53230435",
"0.53080106",
"0.5296719",
"0.5281409",
"0.52399355",
"0.5213929",
"0.5208659",
"0.52017003",
"0.51946473",
"0.5182336",
"0.51544416",
"0.5152602",
"0.5149725",
"0.51124537",
"0.51076496",
"0.51066273",
"0.5101795",
"0.5095291",
"0.50902873",
"0.50893843",
"0.50690037",
"0.506773",
"0.50632256",
"0.5054388",
"0.50507617",
"0.50280654",
"0.5022317",
"0.50183725",
"0.501296",
"0.5002279",
"0.4996389",
"0.49889696",
"0.49877304",
"0.49868217",
"0.4975957",
"0.4970481",
"0.49634835",
"0.4962713",
"0.4958578",
"0.49582672",
"0.49579167",
"0.49566722",
"0.49521244",
"0.4943338",
"0.49433333",
"0.49387786",
"0.4932968",
"0.49235338",
"0.49212655",
"0.4909666",
"0.4905431",
"0.4887887",
"0.48668683",
"0.48598728",
"0.48552674",
"0.48543096",
"0.4853116",
"0.48530483",
"0.48514372",
"0.48479316",
"0.4847708",
"0.48477057",
"0.4845703",
"0.48359603",
"0.48311183",
"0.4824168",
"0.4820502",
"0.48163942",
"0.4812606",
"0.48064443",
"0.48040938",
"0.48020574",
"0.48000535",
"0.47944",
"0.47919837",
"0.47860214",
"0.47820923",
"0.4780127",
"0.47799188",
"0.47760403",
"0.4774092",
"0.47739124",
"0.47735244",
"0.4771071",
"0.47689533",
"0.4768119",
"0.4767679",
"0.4762924",
"0.47620785",
"0.4761062"
]
| 0.61682117 | 1 |
disable CSRF for websockets for now... | @Override
protected boolean sameOriginDisabled() {
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tprotected void configure(HttpSecurity http) throws Exception {\n\t\thttp.csrf().disable();\r\n\t}",
"String getCSRFToken();",
"void verifyCSRFToken(HttpServletRequest request) throws IntrusionException;",
"public Boolean disableWwwAuthenticate() {\n return this.disableWwwAuthenticate;\n }",
"@Override\n\tpublic boolean isSecure() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isSecure() {\n\t\treturn false;\n\t}",
"public jpuppeteer.util.XFuture<?> disable() {\n return connection.send(\"Security.disable\", null);\n }",
"@Override\n\tprotected Object handleTokenEndpointRequest(String requestId) {\n\t\tenv.removeObject(\"client_authentication\");\n\t\treturn super.handleTokenEndpointRequest(requestId);\n\t}",
"@Override\n protected void configure(HttpSecurity http) throws Exception {\n\n http.csrf().disable().cors().and().authorizeRequests().anyRequest().authenticated().and().httpBasic(); //csrf().disable()\n\n }",
"public abstract void disableStreamFlow();",
"@Override\n\tpublic boolean needSecurityCheck() {\n\t\treturn false;\n\t}",
"@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setPassivateTrgINT(true);\r\n }",
"private Boolean ignoreTokenExpiration(String token) {\n return false;\r\n }",
"@Override\n protected void configure(HttpSecurity http) throws Exception {\n http\n .csrf().disable();\n// .loginPage(\"/login\").and().logout().permitAll();\n// .authorizeRequests().anyRequest().authenticated()\n// .and().httpBasic()\n// .httpBasic()\n// .and().sessionManagement().disable();\n }",
"private void disableFilter(WebSocketConnector aConnector, Token aToken) {\n\t\tif (mService == null) {\n\t\t\tmService = new AdminPlugInService(NS_ADMIN, mNumberOfDays, getServer());\n\t\t}\n\n\t\tif (mLog.isDebugEnabled()) {\n\t\t\tmLog.debug(\"Processing 'disableFilter'...\");\n\t\t}\n\n\t\tgetServer().sendToken(aConnector, mService.disableFilter(aConnector, aToken));\n\t}",
"@Override\n\tpublic boolean isRequestedSessionIdFromUrl() {\n\t\treturn false;\n\t}",
"@Override\n\t\tpublic boolean isSecure() {\n\t\t\treturn false;\n\t\t}",
"@Bean\n @Order(4)\n public WebFilter webSocketWebFilter() {\n return new WebSocketParamFilter();\n }",
"private static void hackRequestForSwitchingInsecureScheme() {\n// Logger.debug(\"SCOPE -> hackRequestForSwitchingInsecureScheme\");\n Http.Request.current().secure = false;\n hackRequestPort();\n }",
"@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setEmitTrgPRE(false);\r\n }",
"public boolean isSecure() {\n return false;\n }",
"public boolean isSecure() {\n return false;\n }",
"@Bean\n @Profile(PROFILE_NON_PROD)\n public SecurityWebFilterChain localFilterChain(ServerHttpSecurity http) {\n return commonSecurity(http)\n // Disable HTTP Security Response Headers. See details at:\n // https://docs.spring.io/spring-security/site/docs/current/reference/html5/#webflux-headers\n .headers()\n .disable()\n // Disable CSRF Protection. See details at\n // https://docs.spring.io/spring-security/site/docs/current/reference/html5/#webflux-csrf\n .csrf()\n .disable()\n .build();\n }",
"protected boolean shouldValidateSession ()\n {\n return false;\n }",
"@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setPassivateOrgINT(true);\r\n }",
"@Override\n\t\tpublic boolean isRequestedSessionIdFromUrl() {\n\t\t\treturn false;\n\t\t}",
"@Override\r\n public boolean isRequest() {\n return false;\r\n }",
"private static void hackRequestForSwitchingSecureScheme() {\n// Logger.debug(\"SCOPE -> hackRequestForSwitchingSecureScheme\");\n Http.Request.current().secure = true;\n hackRequestPort();\n }",
"@Override\n protected void configure(HttpSecurity http) throws Exception {\n http.cors().and().csrf().disable().authorizeRequests()\n .antMatchers(HttpMethod.POST, SIGN_UP_URL).permitAll()\n .anyRequest().authenticated()\n .and()\n .addFilter(new JWTAuthenticationFilter(authenticationManager()))\n .addFilter(new JWTAuthorizationFilter(authenticationManager()))\n // this disables session creation on Spring Security\n .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);\n }",
"@Override\n\tpublic void configure(WebSocketServletFactory arg0) {\n\t\tthrow new UnsupportedOperationException(\"not yet implemented\");\n\t}",
"protected Tag makeCsrfTokenInputTag(Http.Request request) {\n return input().isHidden().withValue(getCsrfToken(request)).withName(\"csrfToken\");\n }",
"@Override\n public void onResponse(JSONObject response) {\n Toast.makeText(getContext(),\"CSRF success: \" + response.toString(), Toast.LENGTH_SHORT).show();\n HashMap<String, String> params = new HashMap<String, String>();\n try{\n params.put(\"X-Csrf-Token\",response.getString(\"token\"));\n }catch (Exception ex){\n\n }\n\n }",
"private boolean checkForAjax(HttpServletRequest request, HttpServletResponse response) {\n if (!\"XMLHttpRequest\".equals(request.getHeader(\"X-Requested-With\"))) {\n log.log(\n Level.SEVERE, \"Received unexpected non-XMLHttpRequest command. Possible CSRF attack.\");\n try {\n response.sendError(HttpServletResponse.SC_FORBIDDEN,\n \"Received unexpected non-XMLHttpRequest command.\");\n } catch (IOException ioe) {\n throw new RuntimeException(\"Encountered error writing error\", ioe);\n }\n return false;\n }\n return true;\n }",
"@Override\n\t\tpublic boolean isRequestedSessionIdFromURL() {\n\t\t\treturn false;\n\t\t}",
"@Override\n protected void configure(HttpSecurity http) throws Exception {\n \thttp.addFilterBefore(new CORSFilter(), ChannelProcessingFilter.class)\n \t\t.httpBasic()\n \t\t\t.disable()\n .csrf()\n .disable()\n .sessionManagement()\n .sessionCreationPolicy(SessionCreationPolicy.STATELESS)\n .and()\n .authorizeRequests()\n .antMatchers(\"/api/auth/**\").permitAll()\n .antMatchers(\"/api/**\").authenticated()\n .and()\n .addFilterBefore(tokenFilter(), LogoutFilter.class)\n .addFilterAfter(loginFilter(), TokenFilter.class);\n }",
"private boolean getCSRF()\n throws IOException {\n CookieManager cookieManager = new CookieManager();\n CookieHandler.setDefault(cookieManager);\n HttpURLConnection conn = null;\n\n conn = (HttpURLConnection) url.openConnection();\n\n conn.setUseCaches(false); // Don't use a Cached Copy\n conn.setRequestMethod(\"GET\");\n conn.setRequestProperty(\"Connection\", \"Keep-Alive\");\n conn.getContent();\n conn.disconnect();\n\n /// parse the returned object for the CSRF token\n CookieStore cookieJar = cookieManager.getCookieStore();\n List<HttpCookie> cookies = cookieJar.getCookies();\n String csrf = null;\n for (HttpCookie cookie : cookies) {\n Log.d(\"cookie\", \"\" + cookie);\n if (cookie.getName().equals(\"csrftoken\")) {\n csrf = cookie.getValue();\n break;\n }\n }\n if (csrf == null) {\n Log.d(MainActivity.TAG, \"Unable to get CSRF\");\n return false;\n }\n Log.d(MainActivity.TAG, \"Received cookie: \" + csrf);\n\n addFormField(\"csrfmiddlewaretoken\", csrf);\n return true;\n }",
"@Override\n public void registerStompEndpoints(StompEndpointRegistry registry) {\n registry.addEndpoint(\"/ws\")\n .setAllowedOrigins(\"*\");\n }",
"private void clearGetTokenReq() {\n if (reqCase_ == 4) {\n reqCase_ = 0;\n req_ = null;\n }\n }",
"@Override\n public SessionCookieConfig getSessionCookieConfig() {\n return null;\n }",
"@Override\n\tpublic boolean isSecured() {\n\t\treturn false;\n\t}",
"public interface WebSocketSessionAware {\n void setWebSocketSession(WebSocketSession webSocketSession);\n}",
"@java.lang.Override\n public boolean getDisableOmniSending() {\n return disableOmniSending_;\n }",
"@Override\npublic boolean isCredentialsNonExpired() {\n\treturn false;\n}",
"@Override\n\t public void configure(WebSecurity web) {\n\t web.httpFirewall(allowUrlEncodedSlashHttpFirewall());\n\t }",
"@Override\n\t\tpublic boolean isRequestedSessionIdValid() {\n\t\t\treturn false;\n\t\t}",
"@Override\n\tprotected AuthenticationToken createToken(ServletRequest request, ServletResponse response) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n public boolean isClientAuthEnabled() {\n return true;\n }",
"public void testCheckTokenEndPointIsDisabled() throws Exception {\n // perform POST to /oauth/check_token endpoint with authentication\n this.mockMvc\n .perform(MockMvcRequestBuilders.post(\"/oauth/check_token\").param(\"token\", \"some random value\")\n .principal(new UsernamePasswordAuthenticationToken(testClientId, \"\",\n Arrays.asList(new SimpleGrantedAuthority(\"ROLE_USER\")))))\n // we expect a 403 not authorized\n .andExpect(MockMvcResultMatchers.status().is(403));\n }",
"@Override\n public void handleTokenExpiration(){\n JWTToken.removeTokenSharedPref(this);\n }",
"public void turnOffListenInitialValuesRequest()\n\t{\n\t\tlistenInitialValuesRequest = false;\n\t}",
"@Override\r\n \t\t\tpublic void cleanInvalidSessions() {\n \t\t\t\t\r\n \t\t\t}",
"@Override\r\npublic void sessionWillPassivate(HttpSessionEvent arg0) {\n\t\r\n}",
"public void removePushToken() {\n }",
"@Override\n protected void configure(HttpSecurity http) throws Exception {\n http.cors().and().csrf().disable()\n .exceptionHandling().authenticationEntryPoint(jwtAuthenticationEntryPoint)\n .and()\n .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)\n .and()\n .authorizeRequests().antMatchers(\"/users\", \"/session\").permitAll()\n .anyRequest().authenticated()\n .and()\n .addFilter(jwtAuthenticationFilter());\n }",
"@Override\n\tpublic boolean isRequestedSessionIdFromCookie() {\n\t\treturn false;\n\t}",
"public NonAuthenticatedJwtToken(final String token) {\n super(null);\n this.token = token;\n super.setAuthenticated(false);\n }",
"@java.lang.Override\n public boolean getDisableOmniSending() {\n return disableOmniSending_;\n }",
"private void disableHashingPasswordInterceptor()\n {\n // Getting the hashing password interceptor\n InterceptorBean hashingPasswordInterceptor = getHashingPasswordInterceptor();\n\n if ( hashingPasswordInterceptor != null )\n {\n // Disabling the interceptor\n hashingPasswordInterceptor.setEnabled( false );\n }\n }",
"@Override\n public String getRequestString() {\n return null;\n }",
"@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }",
"@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }",
"@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }",
"@Override\r\n\tprotected void configure(HttpSecurity http) throws Exception {\n\t\thttp.cors().and().csrf().disable()\r\n\t\t\r\n\t\t// make sure we use stateless session;\r\n\t\t// session won't be used to store user's state.\r\n\r\n\t\t.exceptionHandling().authenticationEntryPoint(unauthorizedHandler)\r\n\t\t.and().sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()\r\n\t\t\t\t\r\n\t\t\t\t// dont authenticate this particular request\r\n\t\t\t\t.authorizeRequests().antMatchers(\"/api/auth/**\").permitAll()\r\n\t\t\t\t.antMatchers(\"/api/test/**\").permitAll()\r\n\t\t\t\t\r\n\t\t\t\t// all other requests need to be authenticated\r\n\t\t\t\t.anyRequest()\r\n\t\t\t\t.authenticated();\r\n\r\n\t\t// Add a filter to validate the tokens with every request\r\n\t\thttp.addFilterBefore(authenticationJwtTokenFilter(), UsernamePasswordAuthenticationFilter.class);\r\n\t}",
"@Override\npublic boolean isCredentialsNonExpired() {\n\treturn true;\n}",
"public void testHttpSessionNotCreatedUnlessContextHolderChanges()\n throws Exception {\n MockHttpServletRequest request = new MockHttpServletRequest(null, null);\n MockHttpServletResponse response = new MockHttpServletResponse();\n FilterChain chain = new MockFilterChain(null, null, null);\n \n // Prepare filter\n HttpSessionContextIntegrationFilter filter = new HttpSessionContextIntegrationFilter();\n filter.setContext(SecurityContextImpl.class);\n filter.afterPropertiesSet();\n \n // Execute filter\n executeFilterInContainerSimulator(new MockFilterConfig(), filter, request, response, chain);\n \n // Check the session is null\n assertNull(request.getSession(false));\n }",
"@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setEmitTrgEND(false);\r\n }",
"public boolean isRequest(){\n return false;\n }",
"@Override\n protected void configure(HttpSecurity http) throws Exception {\n http\n // comunication between client and server is stateless\n .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()\n\n // for unauthorized request send 401 error\n .exceptionHandling().authenticationEntryPoint(restAuthenticationEntryPoint).and()\n\n // don't authenticate this particular request\n .authorizeRequests()\n .antMatchers(HttpMethod.GET, \"/hello\").permitAll()\n\n\n // all other requests need to be authenticated\n .anyRequest().authenticated().and();\n\n // intercept every request and add filter\n http.addFilterBefore(jwtRequestFilter, UsernamePasswordAuthenticationFilter.class);\n\n //http.csrf().disable();\n http.cors().and().csrf().disable();\n\n\t\t/* http.headers().addHeaderWriter(\n new StaticHeadersWriter(\"Access-Control-Allow-Origin\", \"*\"));*/\n\n }",
"@Override\r\n public void configure(WebSecurity web) throws Exception {\r\n web.ignoring().antMatchers(HttpMethod.OPTIONS, \"/**\");\r\n }",
"public void beforeSendingeGainChatRequest();",
"@Override\n protected void configure(HttpSecurity httpSecurity) throws Exception {\n httpSecurity\n .csrf().disable()\n .exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and()\n // non abbiamo bisogno di una sessione\n .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()\n .cors().and()\n .authorizeRequests()\n .antMatchers(\n //HttpMethod.GET,\n \"/\",\n \"/*.html\",\n \"/favicon.ico\",\n \"/**/*.html\",\n \"/**/*.css\",\n \"/**/*.js\"\n ).permitAll()\n .antMatchers(\"/chat-websocket/**\", \"/public/**\", \"/swagger-ui/**\", \"/api-docs\", \"/api-docs/**\").permitAll()\n //.antMatchers(\"/api/v1/targets/**\").hasRole(\"ADMIN\")\n .antMatchers(HttpMethod.OPTIONS).permitAll()\n .anyRequest().authenticated();\n\n // Filtro Custom JWT\n httpSecurity.addFilterBefore(authenticationTokenFilterBean(), UsernamePasswordAuthenticationFilter.class);\n httpSecurity.headers().cacheControl();\n }",
"public void disableChat(Reason denyReason);",
"@Bean\r\n FilterRegistrationBean disableAutoRegistration(final TokenAuthenticationFilter filter) {\r\n final FilterRegistrationBean registration = new FilterRegistrationBean(filter);\r\n registration.setEnabled(false);\r\n return registration;\r\n }",
"public Boolean disableLocalAuth() {\n return this.disableLocalAuth;\n }",
"public void disableAutomaticReconnection() {\n synchronized (globalLock) {\n if (isRunning) {\n throw new IllegalStateException(\n \"Cannot disable automatic reconnection while WebSocketClient is running\");\n }\n this.automaticReconnection = false;\n }\n }",
"@Override\n public boolean isCredentialsNonExpired() {\n return true;\n }",
"public void securityOff()\n {\n m_bSecurity = false;\n }",
"@Override\n\tprotected void onDestroy(HttpSession session) {\n\t}",
"public void enableStrictMode(){\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n }",
"@Override\n protected void configure(HttpSecurity http) throws Exception {\n\n\n http\n .httpBasic().disable()\n .csrf().disable()\n .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)\n .and()\n .authorizeRequests()\n .antMatchers(\"/admin/*\").hasRole(\"ADMIN\")\n .antMatchers(\"/user/*\").hasRole(\"USER\")\n .antMatchers(\"/api/*\", \"/auth\").permitAll()\n .antMatchers(\"/register\", \"/auth\").permitAll()\n .and()\n .addFilterBefore(jwtFilter, UsernamePasswordAuthenticationFilter.class);\n }",
"@Bean\n public HiddenHttpMethodFilter hiddenHttpMethodFilter() {\n return new HiddenHttpMethodFilter() {\n @Override\n public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) {\n return chain.filter(exchange);\n }\n };\n }",
"@Override\r\n public boolean isCredentialsNonExpired() {\r\n return true;\r\n }",
"@Bean\n @Override\n protected NullAuthenticatedSessionStrategy sessionAuthenticationStrategy() {\n return new NullAuthenticatedSessionStrategy();\n }",
"public void enableEchoCancellation(boolean val);",
"@Override\n protected void configure(HttpSecurity http) throws Exception {\n http\n .csrf().disable()\n .authorizeRequests()\n .mvcMatchers(HttpMethod.POST,\"*/users\").permitAll()\n .mvcMatchers(HttpMethod.GET,\"*/users\").hasRole(\"ADMIN\")\n .mvcMatchers(\"/spaces\").hasRole(\"USER,ADMIN\")\n .anyRequest().authenticated()\n .and().httpBasic()\n .and().sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)\n .and().sessionManagement().disable();\n }",
"@Override\r\npublic void sessionDestroyed(HttpSessionEvent arg0) {\n\t\r\n}",
"private void setWSClientToKeepSeparateContextPerThread() {\n ((BindingProvider) movilizerCloud).getRequestContext()\n .put(THREAD_LOCAL_CONTEXT_KEY, \"true\");\n }",
"@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n request.getSession().setAttribute(\"message\", null);\n this.getServletContext().getRequestDispatcher(Utils.LOGIN).forward(request, response);\n }",
"@Override\n protected Filter[] getServletFilters() {\n return new Filter[]{ new DelegatingFilterProxy(\"springSecurityFilterChain\") };\n }",
"String addCSRFToken(String href);",
"@Override\r\npublic void requestDestroyed(ServletRequestEvent arg0) {\n\t\r\n}",
"@Override\r\n public void requestDestroyed(ServletRequestEvent event) {\n }",
"@Override\n protected void doFilterInternal(HttpServletRequest request,\n HttpServletResponse response,\n FilterChain filterChain) throws ServletException, IOException {\n if (TcServletUtils.isXmlHttpRequest(request)) {\n Optional<Cookie> cookieOptional = Arrays.stream(request.getCookies())\n .filter(cookie -> Objects.equals(cookie.getName(), XSRF_TOKEN_COOKIE_NAME))\n .findAny();\n // no cookie, yes header -> impossible\n // yes cookie, no header -> not a correct req\n // no cookie, no header -> pass\n // yes cookie, yes header -> go to verify\n if (cookieOptional.isPresent()) {\n Cookie cookie = cookieOptional.get();\n String header = request.getHeader(XSRF_TOKEN_HEADER_NAME);\n if (Objects.isNull(header)) {\n log.warn(\"req [{}] has xsrf cookie but do not pass a xsrf token in xml http req, not a valid req\",\n request.getRequestURI());\n response.sendError(HttpStatus.FORBIDDEN.value(), \"拒绝服务\");\n return;\n }\n if (!Objects.equals(cookie.getValue(), header)) {\n log.warn(\"req [{}] has xsrf cookie and xsrf token but they are not match\", request.getRequestURI());\n response.sendError(HttpStatus.FORBIDDEN.value(), \"拒绝服务\");\n return;\n }\n }\n }\n filterChain.doFilter(request, response);\n }",
"@Override\n\t\tprotected void doFilterInternal(HttpServletRequest request, \n\t\t\t\tHttpServletResponse response, \n\t\t\t\tFilterChain filterChain) throws ServletException, IOException\n\t\t{\n\t\t\tCsrfToken token = (CsrfToken) request.getAttribute(\"_csrf\");\n\t\t\tlog.debug(\"CsrfToken header: \" + token.getHeaderName() +\n\t\t\t\t\t\" CsrfToken parameterName:\" + token.getParameterName() + \n\t\t\t\t\t\" CsrfToken token:\" + token.getToken() +\n\t\t\t\t\t\", filterChain: \" + filterChain.toString());\n\t\t\tlog.debug(\"Request servlet path: \" + request.getServletPath());\t\t\t\n\t\t\tif (\n\t\t\t\t// only care if it's a POST\t \n\t\t\t\t\"POST\".equals(request.getMethod()) &&\t \n\t\t\t\t// make sure we have a token\n\t\t\t\ttoken != null\n\t\t\t\t) {\n\t\t\t\t// CsrfFilter already made sure the token matched. Here, we'll make sure it's not expired\n\t\t\t\ttry {\n\t\t\t\t\tJwts.parser()\n\t\t\t\t\t\t.setSigningKeyResolver(secretService.getSigningKeyResolver())\n\t\t\t\t\t\t.parseClaimsJws(token.getToken());\t\t\t\t\t\n\n\t\t\t\t} catch (JwtException e) {\n\t\t\t\t\t// most likely an ExpiredJwtException, but this will handle any\n\t\t\t\t\tlog.debug(\"Expired token\");\n\t\t\t\t\trequest.setAttribute(\"exception\", e);\n\t\t\t\t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t\t\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"error\");\n\t\t\t\t\tdispatcher.forward(request, response);\n\t\t\t\t}\n\t\t\t} \n\t\t\tfilterChain.doFilter(request, response);\n\t\t}",
"@Override\n protected void configure(HttpSecurity http) throws Exception {\n http\n .csrf().disable()\n .cors().disable()\n .authorizeRequests()\n .antMatchers(\"/**\").permitAll()\n .anyRequest().authenticated()\n .and()\n .anonymous()\n .and()\n .servletApi()\n .and()\n .exceptionHandling()\n .authenticationEntryPoint(new Http403ForbiddenEntryPoint())\n .and()\n .headers()\n .cacheControl()\n\n ;\n\n http.addFilterBefore(statelessAuthenticationFilter, UsernamePasswordAuthenticationFilter.class);\n }",
"@Override\n public boolean isSecure() {\n return secure;\n }",
"public static boolean isSecurityOnlyLocalRequests() {\r\n return (isSecurityOnlyLocalRequests);\r\n }",
"void unsetSessionID();",
"public void clearSupportsPreauthOverage() {\n genClient.clear(CacheKey.supportsPreauthOverage);\n }",
"@Override\n\t\tpublic boolean isRequestedSessionIdFromCookie() {\n\t\t\treturn false;\n\t\t}"
]
| [
"0.59713864",
"0.55841136",
"0.54641604",
"0.5415252",
"0.54096764",
"0.54096764",
"0.5388439",
"0.53520095",
"0.5350556",
"0.53466445",
"0.53382474",
"0.5326267",
"0.52799016",
"0.5251708",
"0.52486575",
"0.5247662",
"0.52434707",
"0.52342695",
"0.5208365",
"0.5092605",
"0.5088314",
"0.5088314",
"0.5079742",
"0.5073575",
"0.50583273",
"0.5049311",
"0.50417554",
"0.5041722",
"0.5036898",
"0.5024623",
"0.49756226",
"0.49704695",
"0.4970253",
"0.4955808",
"0.49300978",
"0.49240667",
"0.49172518",
"0.49171406",
"0.489662",
"0.4888189",
"0.4875245",
"0.485924",
"0.4854556",
"0.4838555",
"0.48316032",
"0.48296916",
"0.48245257",
"0.4794247",
"0.47597188",
"0.47353634",
"0.47328502",
"0.47313905",
"0.47263408",
"0.4724892",
"0.47192284",
"0.4716029",
"0.47159934",
"0.47067404",
"0.4700934",
"0.469743",
"0.469743",
"0.469743",
"0.46944332",
"0.46930912",
"0.46830076",
"0.46775195",
"0.4669229",
"0.46688208",
"0.4668745",
"0.4664087",
"0.4662241",
"0.4646483",
"0.46362543",
"0.4630125",
"0.4609441",
"0.4600954",
"0.4600285",
"0.45999166",
"0.45973632",
"0.4594304",
"0.45883855",
"0.45849046",
"0.45830053",
"0.45828488",
"0.4581111",
"0.45726806",
"0.45666516",
"0.45633864",
"0.4556127",
"0.45315278",
"0.45308593",
"0.45289457",
"0.45258793",
"0.45191926",
"0.45133322",
"0.45126057",
"0.4512068",
"0.4509898",
"0.45089415",
"0.45077378"
]
| 0.5550324 | 2 |
The getCustomerById is used to get the customer information using customerId. | @Override
public Customer getCustomerById(Long id) {
log.debug("Inside getCustomerById method");
return customerRepository.findById(id).orElseThrow(
() -> new ResourceNotFoundException("No customer present with the id : " + id));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Customer getCustomerById(final Long id);",
"@Override\n\tpublic Customer getCustomer(Integer id) {\n\t\treturn customerDao.findById(id);\n\t}",
"@Override\r\n\tpublic Customer getCustomerById(int id) {\n\t\treturn customerdao.getCustomerById(id);\r\n\t}",
"@Override\n\tpublic Customer getCustomer(int id) {\n\t\treturn sessionFactory.getCurrentSession().get(Customer.class, id);\n\t}",
"@Override\n\tpublic Customer retrieveCustomer(Integer id) {\n\n\t\tCustomer customer = new Customer();\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setUsername(cust.getUsername());\n\t\t\t\tcustomer.setFirstName(cust.getFirstName());\n\t\t\t\tcustomer.setLastName(cust.getLastName());\n\t\t\t\tcustomer.setEmail(cust.getEmail());\n\t\t\t\tcustomer.setUserType(cust.getUserType());\n\t\t\t\tcustomer.setPassword(cust.getPassword());\n\t\t\t\tcustomer.setAddress(cust.getAddress());\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"A GET call retrieved a customer: retrieveCustomer()\");\n\t\treturn customer;\n\t}",
"public Customer findById(Integer id) {\n\t\treturn customerDao.findById(id);\r\n\t}",
"@GET\n\t@Path(\"get\")\n\tpublic Customer getCustomer(@QueryParam(\"id\") int id) {\n\t\treturn ManagerHelper.getCustomerManager().get(id);\n\n\t}",
"public Customer getCustomer(int id) {\r\n\t\treturn manager.getCustomer(id);\r\n\t}",
"public Customer getCustomerById(Integer id) {\n\t\treturn (Customer) sessionFactory.getCurrentSession().createCriteria(Customer.class).add(Restrictions.eq(\"id\",id)).uniqueResult();\r\n\t}",
"@Override\n\tpublic CustomerData getCustomer(Long custId) {\n\t \n\t\tOptional<CustomerData> optionalCust = customerRepository.findById(custId);\n\t\t//Optional object use for check if a customer id is existing or not\n if(optionalCust.isPresent()) {\n return optionalCust.get(); //if customer id is exist then return a value\n }\n\t\treturn null;\n\t\t\n\t}",
"public Customer getCustomerById(Integer id) throws DataNotFoundException {\n Optional<Customer> optionalCustomer = customerRepository.findById(id);\n if(optionalCustomer.isPresent())\n return optionalCustomer.get();\n else\n throw new DataNotFoundException(\"Customer with id: \" + id + \" not found\");\n }",
"@Override\n\t@Transactional\n\tpublic Customer getCustomer(int theId) {\n\t\t;\n\t\treturn customerDAO.getCustomer(theId);\n\t}",
"@RequestMapping(method = RequestMethod.GET, value = \"/{id}\")\n\t public ResponseEntity<Customer> getCustomerWithId(@PathVariable Long id) {\n\t return service.getCustomerWithId(id);\n\t }",
"@Override\n @Transactional\n public Customer getCustomer(int customerId) {\n Optional<Customer> queryResult = customerRepository.findById(customerId);\n // if null return new Customer(), otherwise return the Customer\n return queryResult.orElseGet(Customer::new);\n }",
"@GetMapping(\"/customers/{customer_id}\")\n\tpublic Customer getcustomer(@PathVariable(\"customer_id\") int customerid) {\n\t\tCustomer thecustomer=thecustomerService.getCustomer(customerid);\n\t\tif(thecustomer==null) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id : \"+customerid+\" not found\");\n\t\t}\n\t\t\n\t\treturn thecustomer;\n\t}",
"@Override\n\t@Transactional\n\tpublic Customer getCustomerbyId(int theid) {\n\n\t\tCustomer thecustomer = hibernateTemplate.get(Customer.class, theid);\n\n\t\treturn thecustomer;\n\t}",
"@GetMapping(\"/customers/{id}\")\n\tpublic ResponseEntity<Customer> getCustomerById(@PathVariable(value = \"id\") Long customerId)\n\t\tthrows ResourceNotFoundException {\n\t\tCustomer customer = customerRepository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Custumer not found for this id :: \" + customerId));\n\t\t\t\treturn ResponseEntity.ok().body(customer);\n\t}",
"@RequestMapping(value = \"/ws/customers/{id}\", method = RequestMethod.GET)\n public @ResponseBody\n CustomerDto getCustomer(@PathVariable(\"id\") Long customerId) {\n logger.info(\"Tries to find customer by id={}\", customerId);\n\n return customerAssembler.assembly(getCustomerById(customerId));\n }",
"@Override\n\tpublic Customer findById(Long customerId) {\n\t\tOptional<Customer> optional = custRepository.findById(customerId);\n\t\tif(!optional.isPresent()) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id \"+customerId+\" not found\");\n\t\t}\n\t\treturn optional.get();\n\t\t\n\t}",
"@GetMapping(\"/customer/{id}\")\r\n\tpublic Customer viewCustomerbyId(@PathVariable(\"id\") int customerId){\r\n\t\tif(custService.viewCustomerbyId(customerId)==null) {\r\n\t\t\tthrow new CustomerNotFoundException(\"Customer not found with this id\" +customerId);\r\n\t\t}\r\n\t\treturn custService.viewCustomerbyId(customerId);\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic Customer getCustomer(String custId) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer = null;\r\n\t\toptionalCustomer = customerRepository.findById(custId);\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer = optionalCustomer.get();\r\n\t\t\treturn customer;\r\n\t\t} else {\r\n\t\t\tthrow new EntityNotFoundException(\"Customer With Id \" + custId + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}",
"@Override\n\tpublic Customer getCustomer(int customerId) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\ttry {\n\t\t\t\n\t\t\tCustomer customer =session.get(Customer.class, customerId);\n\t\t return customer;\t\t\t\n\t\t}\n\t\tcatch(HibernateException exception){\n\t\t\texception.printStackTrace();\n\t\t}\n\t\treturn null;\n\t\t\n\t}",
"@RequestMapping( value = CONTEXT_URL + \"/id/{id}\",\n method = RequestMethod.GET,\n produces = {MediaType.APPLICATION_JSON_VALUE} )\n public CustomerDTO getCustomer( @PathVariable String id )\n throws CustomerNotFoundException\n {\n final String methodName = \"getCustomer\";\n logMethodBegin( methodName, id );\n CustomerDTO customerDTO = this.customerEntityService\n .getCustomerDTO( UUIDUtil.uuid( id ));\n logMethodEnd( methodName, customerDTO );\n return customerDTO;\n }",
"public static Customer getCustomer(int id_cust) {\n Connection c = connection();\n PreparedStatement stmt;\n int id = 0;\n String name = null;\n String email = null;\n String password = null;\n Customer customer = null;\n try {\n String sql = \"SELECT * FROM customer WHERE id=?;\";\n stmt = c.prepareStatement(sql);\n stmt.setInt(1, id_cust);\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n id = rs.getInt(\"id\");\n name = rs.getString(\"name\");\n email = rs.getString(\"email\");\n password = rs.getString(\"password\");\n }\n stmt.close();\n c.close();\n customer = new Customer(id, name, email, password);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return customer;\n }",
"@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// now retrieve/read from database using the primary key\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\n\t\treturn theCustomer;\n\t}",
"@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t//now retrieve/read from database using the primary key or id..\n\t\tCustomer theCustomer = currentSession.get(Customer.class,theId);\n\n\t\treturn theCustomer;\n\t}",
"@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// now retrieve/read from database using the primary key\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\treturn theCustomer;\n\t}",
"public Customer findById(Integer id) {\n\t\t//get current session\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t//get account details by id and return the result\n\t\tCustomer customer = currentSession.get(Customer.class, id);\n\t\t//return the result\n\t\treturn customer;\n\t}",
"@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Customer> getCustomerById(@PathVariable Long id) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\t\treturn ResponseEntity.ok(customer);\n\t}",
"@Override\n\tpublic Customer getCustomer(long id) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\tCustomer customer = new Customer();\n\t\ttry {\n\t\t\tString getCustomer = String.format(\"select * from customer where id in('%d')\", id);\n\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(getCustomer);\n\n\t\t\tif (rs.next()) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setCustName(rs.getString(\"Cust_Name\"));\n\t\t\t\tcustomer.setPassword(rs.getString(\"Password\"));\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"Customer \" + customer.getCustName() + \" ID: \" + customer.getId() + \" was retrived.\");\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"Customer with ID: \" + id + \" was not found in the DB.\");\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not close connection\");\n\t\t\t}\n\t\t}\n\t\treturn customer;\n\t}",
"Customer getCustomerById(int customerId);",
"public Customer getCustomers(int customerId) {\n for(Customer customer:customers){\n if(customer.getId() == customerId){\n return customer;\n }\n }\n return null;\n }",
"@ApiOperation(value = \"Get a customer by id\", notes = \"\")\n @GetMapping(value = {\"/{customerId}\"}, produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public CustomerDTO getCustomerById(@PathVariable Long customerId) {\n\n return customerService.getCustomerById(customerId);\n }",
"@Override\n\tpublic Customer getCustomerById(long customerId) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Customer show(int id) {\n\t\t\n\t\tOptional<Customer> customerOpt = this.customerRepo.findById(id);\n\t\tif(customerOpt.isPresent()) {\n\t\t\tCustomer customer = customerOpt.get();\n\t\t\treturn customer;\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n\tpublic Customer findById(Long cust_id) throws Exception {\n\t\tList<Customer> lists = (List<Customer>) this.getHibernateTemplate().find(\"from Customer where cust_id = ?\",\n\t\t\t\tcust_id);\n\t\tgetHibernateTemplate().get(Customer.class, cust_id);\n\t\tif (lists.size() > 0) {\n\n\t\t\treturn lists.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"@GetMapping(\"/api/customer/{id}\")\n\tpublic ResponseEntity<CustomerDetails> getCustomerDetailsByID(@PathVariable(\"id\") long id) {\n\t\tCustomerDetails customerDetails = customerService.getCustomerDetailsByID(id);\n\t\treturn ResponseEntity.ok().body(customerDetails);\n\n\t}",
"public void retrieveACustomerWithID(long id) {\r\n\t\tSystem.out.println(\"\\nCustomer with id \" + id);\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tCustomer2 customer = em.find(Customer2.class, id);\r\n\t\tif(customer == null){\r\n\t\t\tSystem.out.println(\"\\nNo such customer with id: \" + id);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(customer);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"public Customer getCustomer(String id) {\n\t\tString firstName = \"\";\n//\t\tString lastName = \"\";\n//\t\tString address = \"\";\n//\t\tString creditCard = \"\";\n//\t\tString phone = \"\";\n//\t\tArrayList<Order> orders = new ArrayList<>();\n\t\tConnection connection = DBConnect.getDatabaseConnection();\n\t\t\n\t\ttry {\n\t\t\tStatement selectStatement = connection.createStatement();\n\t\t\t\n\t\t\tString selectQuery = \"SELECT * from Customer where CustomerID='\" + id +\"'\";\n\t\t\tResultSet resultSet = selectStatement.executeQuery(selectQuery);\n\t\t\tresultSet.next();\n\t\t\t\n\t\t\tfirstName = resultSet.getString(\"FName\");\n//\t\t\tlastName = resultSet.getString(\"lastName\");\n//\t\t\taddress = resultSet.getString(\"lastName\"); //TODO update this code: Address has it's own table . access AddressDAO object (use attribute line 21) \n//\t\t\tcreditCard = resultSet.getString(\"creditCard\"); //TODO same as Address. (attribute line 22) \n\n//\t\t\torders = orderDAO.getAllOrders(); //TODO fix me (make sure function returns something).\n\t\t\t\n\t\t}catch(SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t}finally {\n\t\t\tif(connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (SQLException e) {}\n\t\t\t}\n\t\t}\n\t\t\n\t\tCustomer customer = new Customer();\n\t\tcustomer.setFirstName(firstName);\n//\t\tcustomer.setLastName(lastName);\n//\t\t//TODO customer.setAddress(address); update\n//\t\t//TODO customer.setCard(creditCard); update\n//\t\tcustomer.setOrders(orders);\n\t\t\n\t\treturn customer;\n\t}",
"@GetMapping(\"/customer/{id}\")\r\n public Customer getCustomerById(@PathVariable Long id) {\r\n // orElseThrow means it will attempt to unwrap the optional\r\n // if there's nothing there, it will throw an exception\r\n return customerRepository.findById(id).orElseThrow();\r\n }",
"Customer findById(Long id);",
"@Override\n\t@Transactional(readOnly=true)\n\tpublic Customer findOne(Long id) {\n\t\treturn customerDAO.findById(id).orElse(null);\n\t}",
"@Override\n\tpublic Customer read(int id) {\n\n\t\tString selectQuery = String.format(\"SELECT * FROM TB_Customer WHERE \" + COLUMN_NAME_ID + \" = %d\", id);\n\t\tCustomer customer = null;\n\n\t\ttry (Statement s = dbCon.createStatement()) {\n\t\t\tResultSet rS = s.executeQuery(selectQuery);\n\n\t\t\trS.next();\n\t\t\tcustomer = new Customer(rS.getInt(COLUMN_NAME_ID),\n\t\t\t\t\trS.getString(COLUMN_NAME_FIRST_NAME),\n\t\t\t\t\trS.getString(COLUMN_NAME_LAST_NAME),\n\t\t\t\t\trS.getString(COLUMN_NAME_EMAIL),\n\t\t\t\t\trS.getString(COLUMN_NAME_KNICKNAME),\n\t\t\t\t\trS.getDate(COLUMN_NAME_BIRTHDATE).toLocalDate(),\n\t\t\t\t\trS.getDouble(COLUMN_NAME_CREDITS));\n\n\t\t\trS.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"An SQL error occured during reading of customer \" + id + \" : \" + e.getMessage());\n\t\t}\n\n\t\treturn customer;\n\t}",
"@Test\n\tpublic void readCustomerById() {\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tlong id = customer.getId();\n\t\tname = \"Mark\";\n\t\taddress = \"Auckland\";\n\t\ttelephoneNumber = \"0211616447\";\n\t\tcustomerController.create(name, address, telephoneNumber);\n\n\t\t// When\n\t\tICustomer cus = customerController.read(id);\n\n\t\t// Then\n\t\tAssert.assertEquals(customer, cus);\n\t}",
"@SuppressWarnings(\"finally\")\n\tpublic Customer getCustomer(int cust_id) throws SQLException //final&complete IMPL\n\t{\n\t\tCustomer res=null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnection connection = openConnection();\n\t\t\tPreparedStatement queryStatement;\n\t\t\tResultSet queryResult;\n\t\t\t\n\t\t\tqueryStatement =connection.prepareStatement(\"select * from CUSTOMERS where customer_id=?;\");\n\t\t\tqueryStatement.setString(1, Integer.toString(cust_id));\n\t\t\tqueryResult = queryStatement.executeQuery();\n\t\t\t\n\t\t\tif(queryResult.next())\n\t\t\t{\n\t\t\t\tString cust_username=null, cust_password=null, user_email=null, user_PicURL=null;\n\t\t\t\tString cust_fname=null, cust_lname=null;\n\t\t\t\tboolean isCustomer = true;\n\t\t\t\t\n\t\t\t\tcust_fname = queryResult.getString(2);\n\t\t\t\tcust_lname = queryResult.getString(3);\n\t\t\t\tcust_username = queryResult.getString(4);\n\t\t\t\tcust_password = queryResult.getString(5);\n\t\t\t\tuser_email = queryResult.getString(6);\n\t\t\t\t\n\t\t\t\tres = new Customer((short)cust_id, cust_username, cust_password, cust_fname + cust_lname, user_email, user_PicURL, isCustomer, null, null);\n\t\t\t}\n\t\t}\t\n\t\tfinally\n\t\t{\n\t\t\tcloseConnection();\n\t\t\tif(res==null)\n\t\t\t\tthrow new SQLException(\"No customer user found for provided credantials!\");\n\t\t\telse\n\t\t\t\treturn res;\n\t\t}\n\t}",
"public Customer getCustomerBy_id(ObjectId _id) {\n\t\treturn custRepo.findBy_id(_id);\n\t}",
"@Override\n\tpublic Customer findCustomer(int customerId) {\n\t\treturn null;\n\t}",
"public String getCustomer(String custId);",
"public Customer loadCustomerFromId(int customerId) {\n ResultSet rs = database.getCustomer(customerId);\n Customer newCustomer = null;\n try {\n if (rs.next()) {\n newCustomer = new Customer(rs.getString(\"name\"), rs.getString(\"address\"), rs.getString(\"email\"), \"toBeLoaded\", rs.getDate(\"birthday\"), rs.getInt(\"phonenumber\"));\n newCustomer.setPassword(Customer.fromBase64(rs.getString(\"password\")));\n newCustomer.setSalt(Customer.fromBase64(rs.getString(\"passwordsalt\")));\n // newCustomer.setCurrentOrder(loadOrderFromId(rs.getInt(\"currentorderid\")));\n newCustomer.setCustomerID(customerId);\n } else {\n throw new NoSuchCustomerException(customerId);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n if (newCustomer == null) {\n throw new NoSuchCustomerException(customerId);\n }\n return newCustomer;\n }",
"@Override\n\tpublic List<Customer> getCustomerById(int customerid) {\n\t\treturn null;\n\t}",
"public Customer getSpecificCustomerById(String customerId){\n Customer specificCustomer = null;\n\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT CustomerId, FirstName, LastName, Country, PostalCode, Phone, Email FROM Customer WHERE CustomerId=?\");\n preparedStatement.setString(1, customerId);\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n specificCustomer = new Customer(\n set.getString(\"CustomerId\"),\n set.getString(\"FirstName\"),\n set.getString(\"LastName\"),\n set.getString(\"Country\"),\n set.getString(\"PostalCode\"),\n set.getString(\"Phone\"),\n set.getString(\"Email\")\n );\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return specificCustomer;\n }",
"@Override\r\n\tpublic CustomerRec getCustomerRecById(String id) {\n\t\tCustomerRec rec = customerRecDao.selectByPrimaryKey(id);\r\n\t\treturn rec;\r\n\t}",
"public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }",
"@Override\n\tpublic Customer getCustomers(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// retrieve object from database using the ID\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\t// return the results\n\t\treturn theCustomer;\n\t}",
"@Override\n public CustomerEntity getCustomerData(Long id) {\n return customerPersistencePort.getUser(id);\n }",
"@Override\n public Customer getCustomer(Long userId) {\n Optional<Customer> customer = customerDao.getCustomer(userId);\n if (!customer.isPresent()) {\n logger.error(\"Customer with this id {} doesn't exist\", userId);\n }\n return customer.orElseThrow(ResourceNotFoundException::new);\n }",
"public Customer findCustomerById(long id) throws DatabaseOperationException;",
"@Override\n\tpublic Customer viewCustomer(int customerId) {\n\t\t// TODO Auto-generated method stub\n\t\tCustomer cust = repository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new EntityNotFoundException(\"Currently No Customer is available with this id\"));\n\t\treturn cust;\n\t}",
"@Override\r\n\tpublic Customer getCustomer(int customerID) {\n\t\treturn null;\r\n\t}",
"@PreAuthorize(\"#oauth2.hasAnyScope('read','write','read-write')\")\n\t@RequestMapping(method = GET, value = \"/{id}\")\n\tpublic Mono<ResponseEntity<Customer>> oneCustomer(@PathVariable @NotNull ObjectId id) {\n\n\t\treturn repo.findById(id)\n\t\t\t.map(customer -> ok().contentType(APPLICATION_JSON_UTF8).body(customer))\n\t\t\t.defaultIfEmpty(notFound().build());\n\t}",
"@RequestMapping(\"/cars/{carId}/Customer/{id}\")//لما حطيت id لازم احط تحت باث فاريبل\r\n\t public CustomerDto FindCustomer(@PathVariable String id) {\r\n\t\treturn serviceUsers.getCustomer(id);\r\n\t }",
"@Override\n public Personn findById(Integer idCustomer) {\n return manager.find(Personn.class,idCustomer );\n //return findByCriteria(criteria);\n }",
"@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.GET)\n @ResponseStatus(HttpStatus.OK)\n public CustomerViewModel findCustomerById(@PathVariable(\"id\") int id){\n //create a customer View Model using the find method from the service layer\n CustomerViewModel customerViewModel = service.findCustomer(id);\n\n //if it does not exist, through an illegal argument exception\n if(customerViewModel == null){\n //throw new\n }\n\n //return the requested customer View Model\n return customerViewModel;\n }",
"@Transactional(readOnly = true)\n public Optional<Customer> findById(@NotNull Integer id) {\n Optional<Customer> customer = Optional.ofNullable(entityManager.find(Customer.class, id));\n if (customer.isPresent()) {\n customer.get().setLastReadTimestamp(ZonedDateTime.now());\n }\n return customer;\n }",
"public void retrieveAReadOnlyCustomerWithID(long id) {\r\n\t\tSystem.out.println(\"\\nRead Only Customer with id \" + id);\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tCustomer2 customer1 = em.find(Customer2.class, id);\r\n\t\tif(customer1 == null){\r\n\t\t\tSystem.out.println(\"\\nNo such customer with id: \" + id);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(customer1);\r\n\t\tcustomer1.setLastName(\"XXX\");\r\n\t\tSystem.out.println(customer1);\r\n\t\tSystem.out.println(\"Does persistent context have customer1? \" + em.contains(customer1));\r\n\t\t\r\n\t\t// Asagidaki satirlari actiginizda soyisim XXX olarak degistirilecektir.\r\n//\t\tEntityTransaction tx = em.getTransaction();\r\n//\t\ttx.begin();\r\n//\t\ttx.commit();\r\n\t\tem.close();\r\n\t\t\r\n\t\tEntityManager em2 = emf.createEntityManager();\r\n\t\tCustomer2 customer2 = em2.find(Customer2.class, id);\r\n\t\tSystem.out.println(customer2);\r\n\t\tem2.close();\t\t\r\n\t}",
"@Override\r\n\tpublic Customer findByKey(int id) throws SQLException {\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \" WHERE (id = ?)\";\r\n\t\tCustomer customer = null;\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tpreparedStatement.setInt(1, id);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t}\r\n\t\t\tconnection.commit();\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn customer;\r\n\t}",
"@Override\n\tpublic Customer fetchCustomerByIdWithBills(Long id) {\n\t\treturn customerDAO.fetchByIdWithBills(id);\n\t}",
"public String queryCustomerInfo(int id, int customerID)\n throws RemoteException, DeadlockException;",
"@GetMapping(\"/{id}\")\n public Customer getCustomer(@PathVariable long id){\n return customerRepository.findById(id);\n }",
"java.lang.String getCustomerId();",
"java.lang.String getCustomerId();",
"public Customer findById(long id) throws CustomerNotExistException{\n\t\tif (repository.findById(id) == null) {\n\t\t\tthrow new CustomerNotExistException(\"Customer does not exist!\");\n\t\t}\n\t\treturn repository.findById(id);\n\t}",
"@RequestMapping(value = \"/customer-addres/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<CustomerAddres> getCustomerAddres(@PathVariable Long id) {\n log.debug(\"REST request to get CustomerAddres : {}\", id);\n CustomerAddres customerAddres = customerAddresRepository.findOne(id);\n return Optional.ofNullable(customerAddres)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"public static Customer getCustomer(int ID) throws SQLException {\n Customer customer = new Customer();\n \n query = \"SELECT * FROM customer WHERE customerId = ?\";\n model.DBQueryPrepared.setPreparedStatement(CONN, query);\n ps = DBQueryPrepared.getPreparedStatement();\n ps.setString(1, String.valueOf(ID));\n ps.execute();\n rs = ps.getResultSet();\n \n if (rs.next()) {\n customer.setCustomerId(rs.getInt(\"customerId\"));\n customer.setCustomer(rs.getString(\"customerName\"));\n customer.setAddressId(rs.getInt(\"addressId\"));\n }\n \n return customer;\n }",
"public List<Customer> getCustomerByID() {\n Query query = em.createNamedQuery(\"Customer.findByCustomerId\")\r\n .setParameter(\"customerId\", custID);\r\n // return query result\r\n return query.getResultList();\r\n }",
"CustomerDto findById(Long id);",
"@RequestMapping(value = \"/customerOrders/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<CustomerOrder> getCustomerOrder(@PathVariable Long id) {\n log.debug(\"REST request to get CustomerOrder : {}\", id);\n CustomerOrder customerOrder = customerOrderRepository.findOne(id);\n return Optional.ofNullable(customerOrder)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"public Customer getCustom(short customerId) {\n\t\treturn custom.selectByPrimaryKey(customerId);\n\t\t\n\t}",
"@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Object> getCustomerDetailed(@PathVariable(\"id\") Integer id, HttpServletRequest request){\n\t\tif(service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession())) == null) {\n\t\t\tSessionManager.getInstance().delete(request.getSession());\n\t\t\treturn new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\t}else {\n\t\t\tCustomer cus = cService.findById(id);\n\t\t\tif(cus == null) return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\tMappingJacksonValue mappedCustomer = new MappingJacksonValue(cus);\n\t\t\tmappedCustomer.setFilters(new SimpleFilterProvider().addFilter(Customer.FILTER, SimpleBeanPropertyFilter.serializeAll()));\n\t\t\treturn new ResponseEntity<>(mappedCustomer, HttpStatus.OK);\n\t\t}\n\t}",
"public static DTO_JPOS_Customer getCustomer(int customerId,Connection con) {\r\n\t\tLMSDAOFactory factory = LMSDAOFactory.getInstances();\r\n\t\tIJPOS_Customer myCustomer = factory.getJPOS_Customer();\r\n\t\treturn myCustomer.getCustomer(customerId,con);\r\n\t}",
"public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}",
"@Override\n public Customer findById(long id) throws EntityNotFoundException\n {\n return custrepos.findById(id)\n .orElseThrow(() -> new EntityNotFoundException(Long.toString(id)));\n }",
"@Override\n public JSONObject viewCustomerById(long id) {\n\n return in_salescustdao.viewSLCustomerByID(id);\n }",
"public String getCustomerId() {\n return customerId;\n }",
"public String getCustomerId() {\n return customerId;\n }",
"@Override\r\n\tpublic Wx_BindCustomer getWx_BindCustomerByid(String wx_BindCustomer_id) {\n\t\treturn shopuserDao.getWx_BindCustomerByid(wx_BindCustomer_id);\r\n\t}",
"public static CustomerBean getCutomer(int customerID) {\r\n\t\tCustomerBean bean = null;\r\n\t\tint customerId;\r\n\t\tdouble monthlyIncome, familyIncome;\r\n\t\tString customerName, cnicNo, phoneNo, address, district, customer_pic, accountCreatedDate;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT customer_id, customer_name, customer_cnic, customer_address, city_name, customer_phone,customer_monthly_income, customer_family_income, customr_image,created_on FROM customer join city on customer_city=city_id Where customer_id = ?;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, customerID);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\taddress = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\r\n\t\t\t\tphoneNo = rs.getString(7);\r\n\t\t\t\tmonthlyIncome = rs.getDouble(8);\r\n\t\t\t\tfamilyIncome = rs.getDouble(9);\r\n\r\n\t\t\t\tcustomer_pic = rs.getString(11);\r\n\t\t\t\taccountCreatedDate = rs.getString(12);\r\n\t\t\t\tbean = new CustomerBean();\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setAddress(address);\r\n\t\t\t\tbean.setDistrict(district);\r\n\r\n\t\t\t\tbean.setFamilyIncome(familyIncome);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\r\n\t\t\t\tbean.setAccountCreatedDate(accountCreatedDate);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\tbean.setCustomer_pic(customer_pic);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn bean;\r\n\t}",
"@GET\n\t@Path(\"/edit/{id}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response getCustomerbyID(@PathParam(value = \"id\") int id)\n\t\t\tthrows RemoteException, MalformedURLException, NotBoundException, ClassNotFoundException, SQLException {\n\t\tDatabaseOption db = (DatabaseOption) Naming.lookup(\"rmi://\" + address + service);\n\n\t\t// Connect to database\n\t\tdb.Connect();\n\n\t\t// Get specific car by its unique id\n\t\tList<Object> rs = db.ReadCustomers(\"SELECT * FROM CUSTOMERS WHERE id=\" + id);\n\n\t\t// Connect to database\n\t\tdb.Close();\n\n\t\t// GSON import used to serialize and deserialize Java objects to JSON\n\t\tGson gson = new Gson();\n\n\t\t// Set to string\n\t\tString jsonResp = gson.toJson(rs);\n\n\t\t// Return webpage with json data from RMI\n\t\treturn Response.ok(jsonResp, MediaType.APPLICATION_JSON).build();\n\t}",
"public String getCustomerId() {\n\t\treturn customerId;\n\t}",
"String getCustomerNameById(int customerId);",
"public Integer getCustomerId()\n {\n return customerId;\n }",
"public Long getCustomerId() {\n return customerId;\n }",
"public String getCustomerid() {\n return customerid;\n }",
"@Override\n\tpublic CustomerType get(int id) {\n\t\treturn null;\n\t}",
"private Customer findCustomerById(String id) throws IllegalStateException\r\n\t{\r\n\t\treturn findCustomerById(id, false);\r\n\t}",
"public Customer getCustomer(String customerID, DataPool allData){\r\n\t\t\r\n\t\tif (allData == null || customerID== null) \r\n\t\t\treturn null;\r\n\t\treturn treeData.get(customerID);\r\n\t\t\r\n\t}",
"public Customer getCustomer(String cID, ArrayList<Customer> customers) throws NotFoundException\r\n\t{\t\r\n\t\tCustomer cust = null;\r\n\t\tfor(int i=0; i<customers.size(); i++)\r\n\t\t{\r\n\t\t\tif(customers.get(i).getcID().equals(cID))\r\n\t\t\t\tcust = customers.get(i);\r\n\t\t}\r\n\t\t\r\n\t\tif(cust == null)\r\n\t\t\tthrow new NotFoundException(cID);\r\n\t\t\r\n\t\treturn cust;\t\t\r\n\t}",
"public static Customer getCustomer(int _customerID) throws SQLException{\n ResultSet rs = ConnectionManager.selectAllColumns(\"Tbl_Customer_GroupNo\", \"CustomerID= \"+_customerID);\n if(rs.next()){\n Customer cus = new Customer(rs.getInt(\"CustomerId\"), rs.getString(\"FirstName\"), rs.getString(\"LastName\"), rs.getString(\"Address\"), rs.getString(\"Email\"), rs.getString(\"Phone\"));\n return cus;\n }else{\n return null;\n }\n }",
"public final String getCustomerId() {\n\t\treturn customerId;\n\t}",
"@Override\n\tpublic Uni<Customer> findCustomerById(Long cid) {\n\t\treturn repo.findById(cid);\n\t}"
]
| [
"0.84901667",
"0.8399856",
"0.8356471",
"0.82289505",
"0.8184275",
"0.80942047",
"0.8012201",
"0.7996116",
"0.795358",
"0.79462874",
"0.79269505",
"0.7906403",
"0.7904736",
"0.7875894",
"0.7866372",
"0.78432965",
"0.78117186",
"0.77935815",
"0.77671516",
"0.7757019",
"0.7754609",
"0.7739715",
"0.77331775",
"0.76817596",
"0.76729256",
"0.7672807",
"0.7671582",
"0.7654927",
"0.7651972",
"0.7589086",
"0.75839686",
"0.7549834",
"0.7547294",
"0.753418",
"0.7531857",
"0.7513832",
"0.75123036",
"0.75118816",
"0.75101554",
"0.7504701",
"0.7447154",
"0.7434254",
"0.7408411",
"0.7389292",
"0.73830813",
"0.73541325",
"0.733368",
"0.73234504",
"0.7281826",
"0.7280025",
"0.7273183",
"0.7246136",
"0.72230494",
"0.7205118",
"0.7177816",
"0.7167661",
"0.7155395",
"0.7123276",
"0.71211493",
"0.70977616",
"0.70665425",
"0.7039458",
"0.70100135",
"0.6995045",
"0.6985117",
"0.6977984",
"0.6944872",
"0.6932571",
"0.69259334",
"0.69184166",
"0.69184166",
"0.68896645",
"0.6868089",
"0.68458855",
"0.68367636",
"0.68365484",
"0.6830661",
"0.6815134",
"0.6811737",
"0.67719877",
"0.6759336",
"0.6741097",
"0.6734741",
"0.67267585",
"0.67267585",
"0.6699537",
"0.66901284",
"0.66759056",
"0.66703284",
"0.66678643",
"0.66618747",
"0.66428643",
"0.6636976",
"0.6627505",
"0.6611915",
"0.66053116",
"0.6582632",
"0.6566437",
"0.65544975",
"0.6551015"
]
| 0.80110955 | 7 |
The addCustomer is used to add a customer information. | @Override
public void addCustomer(Customer customer) {
log.info("Inside addCustomer method");
customerRepository.save(customer);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addCustomer() {\r\n\t\tdo {\r\n\t\t\tString name = getToken(\"Enter the customer's name: \");\r\n\t\t\tString phoneNumber = getToken(\"Enter the phone number: \");\r\n\t\t\tCustomer customer = store.addCustomer(name, phoneNumber);\r\n\t\t\tif (customer == null) {\r\n\t\t\t\tSystem.out.println(\"Could not add customer.\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(customer);\r\n\t\t} while (yesOrNo(\"Would you like to add another Customer?\"));\r\n\t}",
"@Override\n\tpublic void addCustomer(Customer customer) {\n\t\tcustomerDao.addCustomer(customer);\n\t}",
"public void addCustomer(CustomerWithGoods customer) {\n\t\tthis.allCustomers.add(customer);\n\t}",
"private void addCustomer(Customer customer) {\n List<String> args = Arrays.asList(\n customer.getCustomerName(),\n customer.getAddress(),\n customer.getPostalCode(),\n customer.getPhone(),\n customer.getCreateDate().toString(),\n customer.getCreatedBy(),\n customer.getLastUpdate().toString(),\n customer.getLastUpdatedBy(),\n String.valueOf(customer.getDivisionID())\n );\n DatabaseConnection.performUpdate(\n session.getConn(),\n Path.of(Constants.UPDATE_SCRIPT_PATH_BASE + \"InsertCustomer.sql\"),\n args\n );\n }",
"@Override\n\tpublic void addCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().save(customer);\n\t}",
"@Path(\"customer\")\n @Service({\"customer\"})\n public ResponseMessage addCustomer(Customer customer) {\n return csi.addCustomer(customer);\n }",
"@Override\n\t@Transactional\n\tpublic void addCustomer(Customer customer) {\n\n\t\tSystem.out.println(\"here is our customer\" + customer);\n\n\t\thibernateTemplate.saveOrUpdate(customer);\n\n\t}",
"public void addCustomer(){\n Customer customer = new Customer();\n customer.setId(data.numberOfCustomer());\n customer.setFirstName(GetChoiceFromUser.getStringFromUser(\"Enter First Name: \"));\n customer.setLastName(GetChoiceFromUser.getStringFromUser(\"Enter Last Name: \"));\n data.addCustomer(customer,data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has added Successfully!\");\n }",
"public int addCustomer(Customer customer) {\n return model.addCustomer(customer);\n }",
"public void addCustomer(Customer customer) {\r\n if (hasID(customer.getID())) {\r\n return;\r\n }\r\n\r\n for (int i = 0; i < customers.length; i++) {\r\n if (customers[i] == null) {\r\n customers[i] = customer;\r\n return;\r\n }\r\n }\r\n\r\n System.err.println(\"No more room in database!\");\r\n }",
"public void add(Customer customer) {\n\t\tSessionFactory sessionFactory = HibernateUtil.getSessionFactory();\n\t\t//Step 2. Create/Obtain Session object\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//Step 3. Start/Participate in a Transaction\n\t\tTransaction tx = session.beginTransaction();\n\t\t\n\t\t//Now we can insert/update/delete/select whatever we want\n\t\tsession.save(customer); //save method generates insert query\n\t\t\n\t\ttx.commit();\n\t}",
"private void addCustomer() {\n try {\n FixCustomerController fixCustomerController = ServerConnector.getServerConnector().getFixCustomerController();\n\n FixCustomer fixCustomer = new FixCustomer(txtCustomerName.getText(), txtCustomerNIC.getText(), String.valueOf(comJobrole.getSelectedItem()), String.valueOf(comSection.getSelectedItem()), txtCustomerTele.getText());\n\n boolean addFixCustomer = fixCustomerController.addFixCustomer(fixCustomer);\n\n if (addFixCustomer) {\n JOptionPane.showMessageDialog(null, \"Customer Added Success !!\");\n } else {\n JOptionPane.showMessageDialog(null, \"Customer Added Fail !!\");\n }\n\n } catch (NotBoundException | MalformedURLException | RemoteException ex) {\n new ServerNull().setVisible(true);\n } catch (ClassNotFoundException | IOException ex) {\n Logger.getLogger(InputCustomers.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void addCustomer(Customer customer) throws UserExistsException {\r\n if (customerExists(customer)){\r\n throw new UserExistsException(\"Customer \"+ customer.getF_Name()+\" already exists\");\r\n }\r\n customers.add(customer);\r\n }",
"@Override\n\tpublic void addCustomer(Customer customer, Branch branch) {\n\t\t\n\t}",
"@Override\n\tpublic boolean addCustomer(Customer customer) {\n\t\tint result=0;\n\t\tConnection connection;\n\t\ttry {\n\t\t\tconnection = DBConnection.makeConnection();\n\t\t\tPreparedStatement Statement = connection.prepareStatement(INSERT_CUSTOMER_QUERY);\n\t\t\tStatement.setInt(1, customer.getCustomerId());\n\t\t\tStatement.setString(2, customer.getCustomerName());\n\t\t\tStatement.setString(3, customer.getCustomerAddress());\n\t\t\t\tStatement.setInt(4, customer.getBillAmount());\n\t\t\t\tresult=Statement.executeUpdate();\n\n\t\t} \n\t\tcatch(SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\n\t\tif(result==0)\n\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public boolean addCustomer(CustomerBean customer);",
"public Customer addCustomer(Customer customer) {\n customer.setMemberSince(LocalDate.now());\n customer.setStatus(MembershipStatus.ACTIVE);\n return customerRepository.save(customer);\n }",
"public Customermodel addCustomer(Customermodel customermodel) {\n\t\t return customerdb.save(customermodel);\n\t }",
"static void addCustomer(customer customer) {\n\n }",
"@PostMapping( value = CustomerRestURIConstants.POST_CUSTOMER )\n\tpublic ResponseEntity<?> addCustomer(@RequestBody Customer customer) {\n\t\tlong id = customerService.save(customer);\n\t return ResponseEntity.ok().body(\"New Customer has been saved with ID:\" + id);\n\t}",
"public static void createAccount(Customer customer) {\n\t\tcustomerList.add(customer);\n\t}",
"public void add(Customer c) {\n customers.add(c);\n\n fireTableDataChanged();\n }",
"public void addCustomer(CustomerAccount acc){\n accountHM.put(acc.getVehicle().getPlate(),acc);\n }",
"@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"Mobile Customer Add()\");\n\t}",
"public void add(Customer customer) throws CustomerAlreadyExistsException{\n\t\tList<Customer> checkLastName = repository.findByLastName(customer.getLastName());\n\t\tList<Customer> checkFirstName = repository.findByFirstName(customer.getFirstName());\n\t\t\n\t\tif ( (!checkLastName.isEmpty() ) && (!checkFirstName.isEmpty() ) ) {\n\t\t\tthrow new CustomerAlreadyExistsException(\"Customer already exists!\");\n\t\t}\n\t\trepository.save(customer);\n\t}",
"public void addCustomer() {\n\t\tSystem.out.println(\"Enter your first name.\");\n\t\tString fn = scan.nextLine();\n\t\tSystem.out.println(\"Enter your last name.\");\n\t\tString ln = scan.nextLine();\n\t\tSystem.out.println(\"Enter your username.\");\n\t\tString user = scan.nextLine();\n\t\tSystem.out.println(\"Enter your password.\");\n\t\tString pw = scan.nextLine();\n\t\tSystem.out.println(\"Password once more (to be safe.)\");\n\t\tString pw2 = scan.nextLine();\n\t\t/*if (pw.toString() != pw2.toString()) {\n\t\t\tSystem.out.println(\"Whoops! Let's try that again.\");\n\t\t\taddCustomer();\n\t\t}\n\t\t*/\n\t\t//else {\n String sql = \"INSERT INTO bank.login (first_name, last_name, user_name, password) VALUES (\"+\"\\\"\"+fn+\"\\\"\"+\", \"+\"\\\"\"+ln+\"\\\"\"+\", \"\n\t\t+\"\\\"\"+user+\"\\\"\"+\", \"+\"\\\"\"+pw+\"\\\"\"+\")\";\n\n try{\n \t\n \tconnect.databaseUtil();\n Statement statement = Database.connection.createStatement();\n // ResultSet resultSet =\n \t\tstatement.executeUpdate(sql);\n try {\n \t\t\tconnect.databaseClose();\n \t\t} catch (SQLException e) {\n \t\t\t\n \t\t\te.printStackTrace();\n \t\t}\n\n bank.start();\n }\n \n\n catch(SQLException e){\n \t\te.printStackTrace();\n Menus.custMenu();\n\n }\n\n \n\t\t\n\t}",
"public static boolean addCustomer(Customer customer) throws SQLException {\n \n if (customerInDatabase(customer.getCustomer())) {\n System.out.println(\"Customer \" + customer.getCustomer() + \" already in DB (addCustomer)\");\n return false;\n }\n else if (customer.getCustomer().isEmpty()) {\n System.out.println(\"Customer given is empty (addCustomer\");\n return false;\n }\n String insertStatement = \"INSERT INTO customer(customerName, addressId, active, createDate, createdBy, lastUpdateBy) \" +\n \"VALUES (?,?,?,?,?,?)\";\n \n DBQueryPrepared.setPreparedStatement(CONN, insertStatement);\n ps = DBQueryPrepared.getPreparedStatement();\n ps.setString(1, customer.getCustomer());\n ps.setString(2, String.valueOf(customer.getAddressId()));\n ps.setString(3, \"1\");\n ps.setString(4, model.timeConversion.getTime().toString());\n ps.setString(5, \"currentUser\");\n ps.setString(6, \"currentUser\");\n ps.execute();\n return true; \n }",
"@Override\n\tpublic boolean createCustomer(Customer customer) {\n\n\t\tif (customer != null) {\n\t\t\tcustomers.add(customer);\n\t\t\tlogger.info(\"Customer added to the list\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\tlogger.info(\"Failed to add customer to the list: createCustomer()\");\n\t\t\treturn false;\n\t\t}\n\t}",
"public static DAO AddCustomer(Customer customer) throws CustomerIDExistsException, IllegalStateException\r\n\t{\r\n\t\treturn instance.addCustomer(customer);\r\n\t}",
"public boolean addCustomer(Customer customer) throws DatabaseOperationException;",
"@Override\r\n\tpublic Customer addCustomer(Customer customer) {\r\n\r\n\t\tif (!inputValidator.nameValidator(customer.getName()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a Valid Customer Name.\");\r\n\t\tif (!inputValidator.userIdValidator(customer.getUserId()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a Valid UserId.\");\r\n\t\tif (!inputValidator.contactValidator(customer.getContactNo()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a valid Contact Number.\");\r\n\t\tif (!inputValidator.emailValidator(customer.getEmail()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a valid Email.\");\r\n\t\tCustomer customer2 = customerRepository.save(customer);\r\n\t\treturn customer2;\r\n\r\n\t}",
"public void addUser(Customer user) {}",
"public DAO addCustomer(Customer customer) throws CustomerIDExistsException, IllegalStateException\r\n\t{\r\n\t\tsynchronized (lock)\r\n\t\t{\r\n\t\t\tif (!isInitialized)\r\n\t\t\t{\r\n\t\t\t\tthrow new IllegalStateException(\"The DAO isn't initialized\", initializationError);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (findCustomerById(customer.getId()) != null)\r\n\t\t\t{\r\n\t\t\t\tthrow new CustomerIDExistsException();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcustomers.add(customer);\r\n\t\t\t\r\n\t\t\treturn this;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void createCustomer(Customer customer) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\ttry {\n\t\t\t\n\t\t\tStatement st = con.createStatement();\n\t\t\tString create = String.format(\"insert into customer values('%s', '%s')\", customer.getCustName(),\n\t\t\t\t\tcustomer.getPassword());\n\t\t\tst.executeUpdate(create);\n\t\t\tSystem.out.println(\"Customer added successfully\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \"Unable to add A customer, Try Again! \");\n\t\t} finally {\n\t\t\tpool.returnConnection(con);\n\t\t}\n\t}",
"public void addCustomer(String c){\n\t\tif(!containsCustomer(c)){\n\t\t\tCustomer e = new Customer(c);\n\t\t\tlist.add(e);\n\t\t}\n\t}",
"@RequestMapping(value = \"/customers\", method = RequestMethod.POST)\n public ResponseEntity<?> addCustomer(@RequestBody Customer customer) {\n Customer aNewCustomer = customerService.newCustomer(customer);\n return new ResponseEntity<>(aNewCustomer, HttpStatus.CREATED);\n }",
"private Customer addCustomer(String title, String firstName, String lastName, String phone, String email, String addressLine1, String addressLine2, String city, String state, String postCode, String country) {\r\n out.print(title);\r\n out.print(firstName);\r\n out.print(lastName);\r\n out.print(phone);\r\n out.print(email);\r\n out.print(addressLine1);\r\n out.print(addressLine2);\r\n out.print(city);\r\n out.print(state);\r\n out.print(postCode);\r\n out.print(country);\r\n\r\n Customer customer = new Customer();\r\n customer.setCustomerTitle(title);\r\n customer.setCustomerFirstName(firstName);\r\n customer.setCustomerLastName(lastName);\r\n customer.setCustomerPhone(phone);\r\n customer.setCustomerEmail(email);\r\n customer.setCustomerAddressLine1(addressLine1);\r\n customer.setCustomerAddressLine2(addressLine2);\r\n customer.setCustomerCity(city);\r\n customer.setCustomerState(state);\r\n customer.setCustomerPostCode(postCode);\r\n customer.setCustomerCountry(country);\r\n\r\n em.persist(customer);\r\n return customer;\r\n }",
"public static void addBankAccount(Customer customer) {\r\n\t\tcustomerBankAccountList.add(customer);\t\r\n\t\tcustomer.makeBankAccount();\r\n\t}",
"@PostMapping(\"/customers\")\r\n\tpublic Customer addCustomer(@RequestBody Customer customer) {\n\t\tcustomer.setId(0);\r\n\t\t\r\n\t\tcustomerService.saveCustomer(customer);\r\n\t\treturn customer;\r\n\t}",
"@Override\n\tpublic boolean addCustomer(Customer customer) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t try {\n\t\tShippingAddress shippingAddress=customer.getShippingAddress();\n\t session.save(customer);\n\t session.save(shippingAddress);\n\t\n\t\treturn true;\n\t }\n\t catch(HibernateException e)\n\t {\n\t \t\n\t \te.printStackTrace();\n\t \treturn false;\n\t }\n\t}",
"public void addCustomer(ArrayList<String> customers) {\n System.out.println(\"what is your name?\");\n String userName = System.console().readLine();\n // System.out.println(\"your name is = \" + userName);\n customers.add(userName);\n System.out.println(\"you have \" + (customers.size() - 1) + \" ahead of you\");\n\n }",
"public boolean addCustomer(String branchName, String customerName, double amount) {\n\t\tBranch branch = findBranch(branchName);\n\t\tif (branch != null) {\n\t\t\treturn branch.addNewCustomToBranch(customerName, amount);\n\t\t}\n\t\treturn false;\n\t}",
"public au.gov.asic.types.AccountIdentifierType addNewCustomer()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().add_element_user(CUSTOMER$0);\n return target;\n }\n }",
"public void setCustomer(Customer customer) {\r\n\t\tthis.customer = customer;\r\n\t\tpassengers.add(customer);\r\n\t}",
"public boolean addCustomer(String newCustomerName, double firstTransaction) {\n Customer foundCustomer = findCustomer(newCustomerName);\n\n if (foundCustomer != null) {\n System.out.println(newCustomerName + \" was found on file\");\n return false;\n }\n\n this.customers.add(new Customer(newCustomerName, firstTransaction));\n return true;\n }",
"public void addCustomer() {\n\t \n\t try{\n\t\t con = openDBConnection();\n\t\t callStmt = con.prepareCall(\" {call team5.CUSTOMER_ADD_PROC(?,?,?,?,?,?,?)}\");\n\t\t callStmt.setString(1,this.emailad);\n\t\t callStmt.setString(2,this.fname);\n\t\t callStmt.setString(3,this.lname);\n\t\t callStmt.setString(4,this.username);\n\t\t callStmt.setString(5,this.password);\n\t\t callStmt.setString(6,this.adminUsername);\n\t\t callStmt.setInt(7, this.id);\n\t\t callStmt.execute();\n\t\t callStmt.close();\n\t } catch (Exception E) {\n\t E.printStackTrace();\n\t }\n}",
"@Override\n\tpublic int addCustomerReprieve(CustomerReprieve customerReprieve) {\n\t\treturn customerDao.addCustomerReprieve(customerReprieve);\n\t}",
"@PostMapping(\"/addcustomer\")\n\tpublic String save(@ModelAttribute(\"customer\") Customer theCustomer) {\n\t\tcustomerServices.save(theCustomer);\n\t\treturn \"redirect:/dairymilk/customers\";\n\t}",
"public void addTransaction(CustomerTransaction cust) {\n history.add(cust);\n }",
"public void addCustomer(Customer customer, double time){\n if(numCustomers == cMaxCustomerQueue) {\n System.out.println(\"Queue is full\");\n System.exit(1);\n }\n customerArray[inIndex] = customer;\n length = inIndex - outIndex;\n timeSpent += time - prevTime;\n average += ((time - prevTime) * length)/time;\n prevTime = time;\n inIndex++;\n length = inIndex - outIndex;\n totalLength += length;\n\n if(longestQueue < length){\n longestQueue = length;\n }\n if(inIndex == cMaxCustomerQueue) inIndex = 0;\n numCustomers++;\n totCustomersInQueue++;\n }",
"public void register(Customer customer) {\n\t\tcustomerDao.register(customer);\r\n\t}",
"public void addRequest(CustomerRequest request) {\n\n\t}",
"public void register(Customer c) {\n\t\tUser.customers.add(c);\n\t}",
"public void addCustomerTest() {\n\t\tassertNotNull(\"Test if there is valid Customer arraylist to add to\", CustomerList);\r\n\t\t\r\n\t\t//Given an empty list, after adding 1 item, the size of the list is 1 - normal\r\n\t\t//The item just added is as same as the first item of the list\r\n\t\tCustomerMain.addCustomer(CustomerList, cust1);\t\t\r\n\t\tassertEquals(\"Test that Customer arraylist size is 1\", 1, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is added\", cust1, CustomerList.get(0));\r\n\t\t\r\n\t\t//Add another item. test The size of the list is 2? - normal\r\n\t\t//The item just added is as same as the second item of the list\r\n\t\tCustomerMain.addCustomer(CustomerList, cust2);\r\n\t\tassertEquals(\"Test that Customer arraylist size is 2\", 2, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is added\", cust2, CustomerList.get(1));\r\n\t\t\r\n\t\t//Add another item. test The size of the list is 3? - normal\r\n\t\t//The item just added is as same as the second item of the list\r\n\t\tCustomerMain.addCustomer(CustomerList, cust3);\r\n\t\tassertEquals(\"Test that Customer arraylist size is 2\", 3, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is added\", cust3, CustomerList.get(2));\r\n\t}",
"private Customer addCustomerDetails(CustomerRegRequestDto requestDto) {\n\t\tString customerId = null;\n\n\t\tOptional<Utility> details = utilityRepo.findByUtilityId(requestDto.getCustomerUtilityId());\n\t\tif (!details.isPresent())\n\t\t\tthrow new NoDataFoundException(CustomerConstants.UTILITY_NOT_FOUND);\n\n\t\tOptional<Customer> getCustomer = customerRepo.findFirstByOrderByModifiedDateDesc();\n\t\tif (getCustomer.isPresent()) {\n\t\t\tif (getCustomer.get().getCustomerId().charAt(0) == CustomerConstants.CUSTOMER_STARTING)\n\t\t\t\tcustomerId = Helper.generateNextCustomerId(getCustomer.get().getCustomerId(),\n\t\t\t\t\t\tdetails.get().getUtilityName());\n\t\t\telse\n\t\t\t\tcustomerId = Helper.generateUniqueCustomerId(details.get().getUtilityName());\n\n\t\t} else {\n\t\t\tcustomerId = Helper.generateUniqueCustomerId(details.get().getUtilityName());\n\n\t\t}\n\t\tmodelMapper.getConfiguration().setAmbiguityIgnored(true);\n\t\tCustomer addNewCustomer = modelMapper.map(requestDto, Customer.class);\n\t\taddNewCustomer.setCustomerId(customerId);\n\t\taddNewCustomer.setActive(true);\n\t\taddNewCustomer.setCreatedBy(requestDto.getUserId());\n\t\taddNewCustomer.setCreatedDate(new Date());\n\t\taddNewCustomer.setModifiedBy(requestDto.getUserId());\n\t\taddNewCustomer.setModifiedDate(new Date());\n\t\treturn customerRepo.save(addNewCustomer);\n\t}",
"@Override\r\n\tpublic void createAccount(Customer customer) {\n\t\tcustMap.put(customer.getMobileNo(),customer);\r\n\t\t\r\n\t}",
"public static void createCustomer() throws IOException\r\n\t{\r\n\t\tclearScreen();\r\n\t\t\r\n\t\tSystem.out.println(\"[CUSTOMER CREATOR]\\n\");\r\n\t\tSystem.out.println(\"Enter the name of the customer you would like to create:\");\r\n\t\t\r\n\t\t// create a new customer with a user-defined name\r\n\t\tCustomer c = new Customer(inputString(false));\r\n\t\t// add the customer to the ArrayList\r\n\t\tcustomers.add(c);\r\n\t\t// display the edit screen for the customer\r\n\t\teditCustomer(c);\r\n\t}",
"@Test(alwaysRun=true, priority=15,enabled=true)\n\tpublic void addNewCustomer() throws InterruptedException, IOException {\t\n\t\tadminPage.addNewCustomer(driver);\n\t}",
"public void addCustomer(CustomerSignup p)\n {\n Session session = this.sessionFactory.getCurrentSession();\n \n session.persist(p);\n \n CustomerLogin cl=new CustomerLogin();\n cl.setUsername(p.getUsername());\n cl.setPassword(p.getPassword());\n cl.setId(p.getId());\n session.persist(cl);\n \n Authorities a = new Authorities();\n a.setUsername(p.getUsername());\n a.setAuthority(\"ROLE_USER\");\n a.setId(p.getId());\n session.saveOrUpdate(a);\n\n session.flush();\n \n logger.info(\"Customer saved successfully, Customer Details=\"+p);\n }",
"public boolean addCustomerDetails(Account account) {\n\t\treturn dao.addCustomerDetails(account);\r\n\t}",
"public boolean add(String firstName, String lastName, String email, String phoneNumber) {\n Customer c = new Customer(firstName, lastName, email, phoneNumber);\n return customerCrudInterface.add(c);\n\n }",
"BonusResponse add(Long customerId, Long authorizedBy, BonusRequest bonus);",
"public boolean addCustomerTransaction(String customerName, double transaction){\n Customer existingCustomer = findCustomer(customerName);\n if(existingCustomer != null){\n existingCustomer.addTransaction(transaction);\n return true;\n }\n return false;\n }",
"public boolean addCustomer(int phone, int discount, String name, String address, String group)\n\t{\n\t\tCustomer customer = new Customer(phone,discount,name,address,group);\n\t\treturn CustomerContainer.getInstance().addCustomer(customer);\n\t}",
"public void add(ActionEvent e) {\r\n Customer newCustomer = new Customer();\r\n newCustomer.setContactfirstname(tempcontactfirstname);\r\n newCustomer.setContactlastname(tempcontactlastname);\r\n save(newCustomer);\r\n addRecord = !addRecord;\r\n }",
"public boolean insertCustomer(Customer customer){\n\n ContentValues cv = new ContentValues();\n\n cv.put(\"customer_name\", customer.getName());\n cv.put(\"customer_description\", customer.getDescription());\n\n long insert = _db.insert(\"Customer\", null, cv);\n\n // Checks if rows have been updated.\n if(insert == -1){\n return false;\n }\n\n return true;\n }",
"@PreAuthorize(\"#oauth2.hasAnyScope('write','read-write')\")\n\t@RequestMapping(method = POST, consumes = { APPLICATION_JSON_UTF8_VALUE })\n\tpublic Mono<ResponseEntity<?>> addCustomer(@RequestBody @Valid Customer newCustomer) {\n\n\t\treturn Mono.justOrEmpty(newCustomer.getId())\n\t\t\t.flatMap(id -> repo.existsById(id))\n\t\t\t.defaultIfEmpty(Boolean.FALSE)\n\t\t\t.flatMap(exists -> {\n\n\t\t\t\tif (exists) {\n\t\t\t\t\tthrow new CustomerServiceException(HttpStatus.BAD_REQUEST,\n\t\t\t\t\t\t\"Customer already exists, to update an existing customer use PUT instead.\");\n\t\t\t\t}\n\n\t\t\t\treturn repo.save(newCustomer).map(saved -> {\n\t\t\t\t\treturn created(URI.create(format(\"/customers/%s\", saved.getId()))).build();\n\t\t\t\t});\n\t\t\t});\n\t}",
"AccountModel addByCustomer(AccountModel account,String customerId) throws AccountException, CustomerException;",
"public boolean addCustomer(String firstName, String lastName, String phone, String address) {\r\n\t\tCustomer customer = createCustomer();\r\n\t\tcustomer.setFirstName(firstName);\r\n\t\tcustomer.setLastName(lastName);\r\n\t\tcustomer.setPhone(phone);\r\n\t\tcustomer.setAddress(address);\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tcustomer.setCreationDate(Date.valueOf(cal.get(Calendar.YEAR) + \"-\" + cal.get(Calendar.MONTH) + \"-\" + cal.get(Calendar.DAY_OF_MONTH)));\r\n\t\ttry {\r\n\t\t\tcustomer.commit();\r\n\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public static void addNewCustomer(final ArrayList<Car> carList, ArrayList<Customer> customerList, HashSet<Integer> idHashSet)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Input Customer ID and Customer Name\");\n\t\tint custIdInput = sc.nextInt();\n\t\t\n\t\t//Check if the Entered ID is unique and is not used by any other customer\n\t\tif(ValidationCheck.isIdUnique(custIdInput, idHashSet) != true)\n\t\t{\n\t\t\tSystem.out.println(\"Please Enter a Unique Customer Id\");\n\t\t\treturn;\n\t\t}\n\t\tidHashSet.add(custIdInput);\n\t\tString custNameInput = sc.next();\n\t\t\n\t\t//check if Name consists of valid characters\n\t\tif(ValidationCheck.isValidName(custNameInput) != true)\n\t\t{\n\t\t\tSystem.out.println(\"Please enter a valid Customer Name\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t Customer customerObj = new Customer(custIdInput, custNameInput, carList);\n\t customerList.add(customerObj);\n\t}",
"@FXML\n private void addCustomerButton(ActionEvent event)\n {\n bankLogic.addCustomer(textFieldName.getText(),Long.parseLong(textFieldPnr.getText()));\n for (int i = 0; i < bankLogic.getCustomers().size(); i++)\n {\n System.out.println(bankLogic.getCustomers().get(i).toString());\n }\n \n }",
"public Customer putCustomer(final Customer customer) {\n return dbClient.put(customer);\n }",
"public int addCustomer(String custName,long custMobile,String modelName) \r\n\t{\r\n\t\tint a=(int)((Math.random())*10);\r\n\r\n\t\tprice1=searchModel(modelName);\r\n\r\n\r\n\t\tFile f= new File(\"customerInfo.txt\");\r\n\r\n\t\tif(!f.exists())\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\ttry {\r\n\r\n\t\t\tPrintWriter pw = new PrintWriter(new FileOutputStream(f, true));\r\n\t\t\tpw.println(custName);\r\n\t\t\tpw.println(custMobile);\r\n\t\t\tpw.println(modelName);\r\n\t\t\tpw.println(String.valueOf(price1));\r\n\r\n\r\n\r\n\r\n\t\t\tpw.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\r\n\r\n\t\treturn a;\r\n\r\n\t}",
"@Override\r\n\tpublic int insertCustomer(Customer customer) throws BillingServicesDownException {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic int insertNewCustomer(Customer cust) throws CustException {\n\t\tmanager.persist(cust);\r\n\t\treturn 1;\r\n\t}",
"public void setCustomer(String customer) {\n this.customer = customer;\n }",
"@Override\r\n\tpublic void insert(Customer customer) throws SQLException {\r\n\r\n\t\tString insertSql = \"INSERT INTO \" + tableName\r\n\t\t\t\t+ \"(name, surname, birth_date, birth_place, address, city, province, cap, phone_number, newsletter, email)\"\r\n\t\t\t\t+ \" VALUES (?,?,?,?,?,?,?,?,?,?,?)\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(insertSql);\r\n\t\t\tpreparedStatement.setString(1, customer.getName());\r\n\t\t\tpreparedStatement.setString(2, customer.getSurname());\r\n\t\t\tpreparedStatement.setDate(3, (Date) customer.getBirthdate());\r\n\t\t\tpreparedStatement.setString(4, customer.getBirthplace());\r\n\t\t\tpreparedStatement.setString(5, customer.getAddress());\r\n\t\t\tpreparedStatement.setString(6, customer.getCity());\r\n\t\t\tpreparedStatement.setString(7, customer.getProvince());\r\n\t\t\tpreparedStatement.setInt(8, customer.getCap());\r\n\t\t\tpreparedStatement.setString(9, customer.getPhoneNumber());\r\n\t\t\tpreparedStatement.setInt(10, customer.getNewsletter());\r\n\t\t\tpreparedStatement.setString(11, customer.getEmail());\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\tconnection.commit();\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t}",
"public static void enterCustomer(Employee employee) {\n\t\tCustomer.setCustomerQuantity();\n\t\tString name;\n\t\tdo {\n\t\t\tname= JOptionPane.showInputDialog(\"Please enter a name of the customer.\");\n\t\t\tif (!employee.getVehicle().getCustomer().setName(name)) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Error, Invalid\");\n\t\t\t}\n\t\t} while (!employee.getVehicle().getCustomer().setName(name));\n\t\t\n\t\tString phone;\n\t\tdo {\n\t\t\tphone = JOptionPane.showInputDialog(\"Please enter a phone number \"\n\t\t\t\t\t+ \"\\nFormat: 0001112222\");\n\t\t\tif (!employee.getVehicle().getCustomer().setPhone(phone)) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Error, Invalid\");\n\t\t\t}\n\t\t} while (!employee.getVehicle().getCustomer().setPhone(phone));\n\t\tString paymentInfo;\n\t\tdo {\n\t\t\tpaymentInfo = JOptionPane.showInputDialog(\"Please enter a payment information (Credit, Debit, or Cash)\");\n\t\t\tif (!employee.getVehicle().getCustomer().setPaymentInfo(paymentInfo)) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Error, Invalid\");\n\t\t\t}\n\t\t} while (!employee.getVehicle().getCustomer().setPaymentInfo(paymentInfo));\n\t\tString address;\n\t\tdo {\n\t\t\taddress = JOptionPane.showInputDialog(\"Please enter a full address.\");\n\t\t\tif (!employee.getVehicle().getCustomer().setAddress(address)) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Error, Invalid\");\n\t\t\t}\n\t\t}while (!employee.getVehicle().getCustomer().setAddress(address));\n\t\tString insuranceNumber;\n\t\tdo {\n\t\t\tinsuranceNumber = JOptionPane.showInputDialog(\"Please enter an insurance number.\");\n\t\t\tif (!employee.getVehicle().getCustomer().setInsuranceNumber(insuranceNumber)) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Error, Invalid\");\n\t\t\t}\n\t\t} while (!employee.getVehicle().getCustomer().setInsuranceNumber(insuranceNumber));\n\t\tJOptionPane.showMessageDialog(null, employee.getVehicle().getCustomer().toString());\n\t}",
"public void addCustomerMoney(Coin c){\n customerMoney.add(c);\n }",
"@PostMapping(\"/customers\")\n public Customer addCustomer(@RequestBody Customer theCustomer)\n {\n //also just in case they pass an id in JSON .. set id to o\n //this is to force a save of new item ... instead od update\n theCustomer.setId(0);\n customerService.save(theCustomer);\n return theCustomer;\n }",
"public void newCustomer () {\r\n\t\t//input category id.\r\n\t\t//TODO\r\n boolean ok = false;\r\n do { \r\n my.printCategoies();\r\n try {\r\n System.out.println(\"Category:\");\r\n Scanner scan = new Scanner(System.in);\r\n String cat = scan.next();\r\n \r\n Category c = my.getCategory(cat);\r\n //\r\n if (c!=null ) {\r\n // add the new customer to a category\r\n //input new customer.\r\n Customer theNewCustomer = readCustomer(cat);\r\n if ( theNewCustomer != null ) {\r\n my.add(c, theNewCustomer);\r\n ok = true;\r\n }\r\n \r\n }else{\r\n System.out.println(\"Category not exist\");\r\n }\r\n \r\n } catch (Exception e) {\r\n System.out.println(\"Sorry, try again\");\r\n }\r\n } while (ok == false);\r\n \r\n\t\t\r\n\t}",
"public Customer addCustomer(String name, String occupation) {\n\t\tint max = customers.size();\n\t\tCustomer customer = new Customer(max, name, occupation);\n\t\tcustomers.add(customer);\n\t\t\n\t\ttry {\n\t\t\tsaveCustomerToFile();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn customer;\n\t}",
"public void addFriend(Customer c) {\n if (c == null) {\n throw new IllegalArgumentException(\"Customer can not be null\");\n }\n if (!friends.contains(c)) {\n friends.add(c);\n }\n }",
"@RequestMapping(value = \"/createCustomer\", method = RequestMethod.POST)\n\tpublic String createCustomer(@RequestBody Customer customer) throws Exception {\n\n\t\tlog.log(Level.INFO, \"Customer zawiera\", customer.toString());\n\t\tcustomerRepository.save(customer); // Zapis do bazy\n\t\tSystem.out.println(\"##################### Utworzono klienta: \" + customer);\n\t\treturn \"Klient zostal stworzony\" + customer;\n\t}",
"@RequestMapping(value = \"/addCustomer\", method = RequestMethod.POST)\n\tpublic String submitCustomer(@Valid @ModelAttribute(\"Customer\") Customer customer, BindingResult result) {\n\t\t// Return to current page if errors occur\n\t\tif (result.hasErrors()) {\n\t\t\treturn \"addCustomer\";\n\t\t}\n\t\t\n\t\t// Add to Customer service\n\t\tcustomerService.addCustomer(customer);\n\t\t\n\t\t// Redirect to showCustomers.jsp\n\t\treturn \"redirect:showCustomers\";\n\t}",
"public void addCustomerTest(String firstName, String lastName, String email){\n db = DatabaseHelper.getInstance(InstrumentationRegistry.getInstrumentation()\n .getTargetContext());\n DatabaseHelper.CustomerTable.Status stat = db.insertCustomerData(firstName, lastName, email);\n\n Customer customer = db.getCustomerByEmail(email);\n if (stat.getCode() == DatabaseHelper.CustomerTable.Status.SUCCESS.getCode() && customer != null) {\n // - add to the libs\n\n Utils.addCustomerToServiceUtils(customer);\n\n\n }\n }",
"static void addCustomerOrder() {\n\n Customer newCustomer = new Customer(); // create new customer\n\n Product orderedProduct; // initialise ordered product variable\n\n int quantity; // set quantity to zero\n\n String name = Validate.readString(ASK_CST_NAME); // Asks for name of the customer\n\n newCustomer.setName(name); // stores name of the customer\n\n String address = Validate.readString(ASK_CST_ADDRESS); // Asks for address of the customer\n\n newCustomer.setAddress(address); // stores address of the customer\n\n customerList.add(newCustomer); // add new customer to the customerList\n\n int orderProductID = -2; // initialize orderProductID\n\n while (orderProductID != -1) { // keep looping until user enters -1\n\n orderProductID = Validate.readInt(ASK_ORDER_PRODUCTID); // ask for product ID of product to be ordered\n\n if(orderProductID != -1) { // keep looping until user enters -1\n\n quantity = Validate.readInt(ASK_ORDER_QUANTITY); // ask for the quantity of the order\n\n orderedProduct = ProductDB.returnProduct(orderProductID); // Search product DB for product by product ID number, return and store as orderedProduct\n\n Order newOrder = new Order(); // create new order for customer\n\n newOrder.addOrder(orderedProduct, quantity); // add the new order details and quantity to the new order\n\n newCustomer.addOrder(newOrder); // add new order to customer\n\n System.out.println(\"You ordered \" + orderedProduct.getName() + \", and the quantity ordered is \" + quantity); // print order\n }\n }\n }",
"private PersonCtr createCustomer()\n {\n\n // String name, String addres, int phone, int customerID\n PersonCtr c = new PersonCtr();\n String name = jTextField3.getText();\n String address = jTextPane1.getText();\n int phone = Integer.parseInt(jTextField2.getText());\n int customerID = phone;\n Customer cu = new Customer();\n cu = c.addCustomer(name, address, phone, customerID);\n JOptionPane.showMessageDialog(null, cu.getName() + \", \" + cu.getAddress()\n + \", tlf.nr.: \" + cu.getPhone() + \" er oprettet med ID nummer: \" + cu.getCustomerID()\n , \"Kunde opretttet\", JOptionPane.INFORMATION_MESSAGE);\n return c;\n\n\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public void registerCustomer(Customer customer) {\nSession session=sessionFactory.getCurrentSession();\n\t\t\n\t\tAuthorities authorities=new Authorities();\n\t\tauthorities.setRole(\"ROLE_USER\");\n\t\tauthorities.setUser(customer.getUser());//FK column in authorities table\n\t\t\n\t\tcustomer.getUser().setAuthorities(authorities);\n\t\tcustomer.getUser().setEnabled(true);\n\t\t\n\t\tCart cart=new Cart();\n\t\tcustomer.setCart(cart);\n\t\tcart.setCustomer(customer);\n\t\t\n\t\tsession.save(customer);\n\t\n\t\t\n\t}",
"public int insertCustomer() {\n\t\treturn 0;\r\n\t}",
"public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier addNewCustomerIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().add_element_user(CUSTOMERIDENTIFIER$2);\n return target;\n }\n }",
"public AddCustomer() {\n initComponents();\n loadAllToTable();\n\n tblCustomers.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n\n @Override\n public void valueChanged(ListSelectionEvent e) {\n if (tblCustomers.getSelectedRow() == -1) {\n return;\n }\n\n String cusId = tblCustomers.getValueAt(tblCustomers.getSelectedRow(), 0).toString();\n\n String cusName = tblCustomers.getValueAt(tblCustomers.getSelectedRow(), 1).toString();\n String contact = tblCustomers.getValueAt(tblCustomers.getSelectedRow(), 2).toString();\n String creditLimi = tblCustomers.getValueAt(tblCustomers.getSelectedRow(), 3).toString();\n String credidays = tblCustomers.getValueAt(tblCustomers.getSelectedRow(), 4).toString();\n\n txtCustId.setText(cusId);\n txtCustomerN.setText(cusName);\n\n txtContact.setText(contact);\n txtCreditLimit.setText(creditLimi);\n txtCreditDays.setText(credidays);\n\n }\n });\n }",
"public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}",
"private void showCustomerInfoDialog(Customer customer) {\n\t\ttry {\n\t\t\t// set up the root for the customer information dialog\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(C195Application.class.getResource(\"view/AddCustomer.fxml\"));\n\t\t\tloader.setResources(lang);\n\t\t\tAnchorPane customerInfoRoot = (AnchorPane) loader.load();\n\n\t\t\t// set up the stage for the customer information dialog\n\t\t\tStage customerInfoStage = new Stage();\n\t\t\tcustomerInfoStage.setTitle(\"\");\n\t\t\tcustomerInfoStage.initModality(Modality.WINDOW_MODAL);\n\t\t\tcustomerInfoStage.initOwner(stage);\n\n\t\t\t// add a new scene with the root to the stage\n\t\t\tScene scene = new Scene(customerInfoRoot);\n\t\t\tcustomerInfoStage.setScene(scene);\n\n\t\t\t// get the controller for the dialog and pass a reference \n\t\t\t// the customer info dialog stage, and a customer, if one was selected\n\t\t\tAddCustomerController controller = loader.getController();\n\t\t\tcontroller.setupDialog(customerInfoStage, customer);\n\n\t\t\t// show the customer information dialog\n\t\t\tcustomerInfoStage.showAndWait();\n\n\t\t\t// refresh the customer list after an update\n\t\t\tCustomer newCustomer = controller.getNewCustomer();\n\t\t\tif (newCustomer == null) return;\n\n\t\t\tif(customer == null) {\n\t\t\t\tcustomers.add(newCustomer);\n\t\t\t} else {\n\t\t\t\tcustomers.set(customers.indexOf(customer), newCustomer);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic Customer register(Customer customer) {\n\t\tcustomer=customerRepo.addCustomer(customer);\n\t\treturn customer;\n\t}",
"public void create(Customer customer) {\r\n this.entityManager.persist(customer);\r\n }",
"private void createCustomer(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n String customerName = request.getParameter(\"CustomerName\");\n System.out.println(\"them mới id\"+ customerName);\n String customerBir = request.getParameter(\"CustomerBir\");\n String gender = request.getParameter(\"Gender\");\n int cusIdNum =Integer.parseInt(request.getParameter(\"CusIdNum\"));\n int cusTelNum = Integer.parseInt(request.getParameter(\"CusTelNum\"));\n String cusEmail = request.getParameter(\"CusEmail\");\n String address = request.getParameter(\"Address\");\n String customerTypeId = request.getParameter(\"CustomerTypeId\");\n System.out.println(\"them mới id\"+ customerName);\n Customer customer = new Customer(customerName,customerBir,gender,cusIdNum,cusTelNum,cusEmail,address, new CustomerType(customerTypeId));\n customerService.save(customer);\n showCustomerList(request,response);\n System.out.println(\"them mới\"+ customer);\n }",
"public static void addCarToCustomer(final int customerId, final Car car, ArrayList<Customer> customerList)\n\t{\n\t\tint i, customerFlag = 0;\n\t\t//Search the List of Customers to whom new car to be added\n\t\tfor(i=0;i<customerList.size();i++)\n\t\t{\n\t\t\tif(customerId == customerList.get(i).getCustomerId())\n\t\t\t{\n\t\t\t\t//If customer with entered ID found set the customerFlag\n\t\t\t\tcustomerFlag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//If No Customer with entered ID exists in the list\n\t\tif(customerFlag == 0)\n\t\t{\n\t\t\tSystem.out.println(\"No Customer with Inputed Id Found\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tcustomerList.get(i).addCarToCustomer(car);\n\t}"
]
| [
"0.7964744",
"0.7735888",
"0.7611893",
"0.7529824",
"0.7424417",
"0.7394401",
"0.7337469",
"0.7330148",
"0.7322079",
"0.7299315",
"0.72944367",
"0.72778404",
"0.726061",
"0.7246463",
"0.7049395",
"0.703786",
"0.70028937",
"0.6858481",
"0.6837499",
"0.6794159",
"0.6772398",
"0.67574465",
"0.67001575",
"0.66822743",
"0.6671895",
"0.6670854",
"0.6644477",
"0.66033626",
"0.65803164",
"0.6575754",
"0.65748584",
"0.6558224",
"0.65508395",
"0.6548178",
"0.6541451",
"0.65143484",
"0.64710486",
"0.64311135",
"0.64054245",
"0.6364225",
"0.634373",
"0.6310556",
"0.63094044",
"0.62963146",
"0.62334216",
"0.6224997",
"0.62206316",
"0.6193253",
"0.617829",
"0.61681783",
"0.6103131",
"0.60947514",
"0.608792",
"0.6069455",
"0.6046355",
"0.6045284",
"0.6007979",
"0.5982832",
"0.5982076",
"0.5963782",
"0.59578097",
"0.59537184",
"0.59488684",
"0.5940214",
"0.59243125",
"0.5914586",
"0.59099704",
"0.58956367",
"0.58720744",
"0.58583623",
"0.5838697",
"0.5826855",
"0.5820748",
"0.5808941",
"0.5807828",
"0.5791923",
"0.578478",
"0.5781213",
"0.57788116",
"0.57761884",
"0.575605",
"0.57480377",
"0.5739217",
"0.57298523",
"0.57155263",
"0.5688881",
"0.5669839",
"0.5667916",
"0.56654936",
"0.56654936",
"0.5663421",
"0.5634323",
"0.5626792",
"0.56215703",
"0.560428",
"0.5603519",
"0.5600033",
"0.5596494",
"0.55944306",
"0.55925333"
]
| 0.73179996 | 9 |
the file is there, parse it and set its settings | public void processFile(final java.io.File file) throws OptionsException {
final Properties prop = new Properties();
try {
final java.io.FileInputStream in = new java.io.FileInputStream(file);
try {
prop.load(in);
} finally {
in.close();
}
String key;
OptionContainer option = null;
for (java.util.Enumeration<?> e = prop.propertyNames(); e.hasMoreElements(); ) {
key = (String) e.nextElement();
option = opts.get(key);
if (option != null) {
option.resetArguments();
option.addArgument(prop.getProperty(key));
} else
// ignore unknown options (it used to throw an OptionsException)
System.out.println("Info: Ignoring unknown/unsupported option (in " + file.getAbsolutePath() + "): " + key);
}
} catch (java.io.IOException e) {
throw new OptionsException("File IO Exception: " + e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void parse(){\n\t\tFile file = new File(fileLocation);\n\n\t\tlong seed = ConfigurationData.DEFAULT_SEED;\n\t\tString outputDest = ConfigurationData.DEFAULT_OUTPUT_DESTINATION;\n\t\tLong tickLength = ConfigurationData.DEFAULT_TICK_LENGTH;\n\t\tint port = ConfigurationData.DEFAULT_PORT;\n\n\t\ttry {\n\n\t\t\tScanner sc = new Scanner(file);\n\n\t\t\twhile(sc.hasNext()){\n\t\t\t\tString[] tok = sc.next().split(\"=\");\n\t\t\t\tswitch(tok[0]){\n\t\t\t\tcase \"seed\":\n\t\t\t\t\tseed = Long.parseLong(tok[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"outputDestination\":\n\t\t\t\t\toutputDest = tok[1];\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"tickLength\":\n\t\t\t\t\ttickLength = Long.parseLong(tok[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"port\":\n\t\t\t\t\tport = Integer.parseInt(tok[1]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsc.close();\n\n\t\t\tconfigurationData = new ConfigurationData(seed, outputDest, tickLength, port);\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\tPrintWriter writer;\n\t\t\ttry {\n\t\t\t\twriter = new PrintWriter(fileLocation, \"UTF-8\");\n\t\t\t\twriter.println(\"seed=\"+seed);\n\t\t\t\twriter.println(\"outputDestination=\"+outputDest);\n\t\t\t\twriter.println(\"tickLength=\"+tickLength);\n\t\t\t\twriter.println(\"port=\"+port);\n\t\t\t\twriter.close();\n\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t} catch (UnsupportedEncodingException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tconfigurationData = ConfigurationData.makeDefault();\n\t\t\tSystem.out.println(\"Default file created\");\n\t\t}\n\t}",
"@Override\n public void parse() throws ParseException {\n\n /* parse file */\n try {\n\n Scanner scanner = new Scanner(file, CHARSET_UTF_8);\n\n MowerConfig mowerConfig = null;\n\n int lineNumber = 1;\n\n do {\n\n boolean even = lineNumber % 2 == 0;\n String line = scanner.nextLine();\n\n /* if nothing in the file */\n if ((line == null || line.isEmpty()) && lineNumber == 1) {\n\n throw new ParseException(\"Nothing found in the file: \" + file);\n\n /* first line: lawn top right position */\n } else if(lineNumber == 1) {\n\n Position lawnTopRight = Position.parsePosition(line);\n config.setLawnTopRightCorner(lawnTopRight);\n\n /* even line: mower init */\n } else if (even) {\n\n int lastWhitespace = line.lastIndexOf(' ');\n Position p = Position.parsePosition(line.substring(0, lastWhitespace));\n Orientation o = Orientation.parseOrientation(line.substring(lastWhitespace).trim());\n\n mowerConfig = new MowerConfig();\n mowerConfig.setInitialPosition(p);\n mowerConfig.setInitialOrientation(o);\n\n /* odd line: mower commands */\n } else {\n\n mowerConfig.setCommands(MowerCommand.parseCommands(line));\n config.addMowerConfig(mowerConfig);\n }\n\n lineNumber++;\n\n } while(scanner.hasNextLine());\n\n\n } catch (Exception e) {\n throw new ParseException(\"Exception: \" + e.getMessage());\n }\n\n }",
"private static void loadSettings() {\n try {\n File settings = new File(\"settings.txt\");\n //Options\n BufferedReader reader = new BufferedReader(new FileReader(settings));\n defaultSliderPosition = Double.parseDouble(reader.readLine());\n isVerticalSplitterPane = Boolean.parseBoolean(reader.readLine());\n verboseCompiling = Boolean.parseBoolean(reader.readLine());\n warningsEnabled = Boolean.parseBoolean(reader.readLine());\n clearOnMethod = Boolean.parseBoolean(reader.readLine());\n compileOptions = reader.readLine();\n runOptions = reader.readLine();\n //Colors\n for(int i = 0; i < colorScheme.length; i++) \n colorScheme[i] = new Color(Integer.parseInt(reader.readLine()));\n\n for(int i = 0; i < attributeScheme.length; i++) {\n attributeScheme[i] = new SimpleAttributeSet();\n attributeScheme[i].addAttribute(StyleConstants.Foreground, colorScheme[i]);\n }\n\n theme = reader.readLine();\n\n reader.close(); \n } catch (FileNotFoundException f) {\n println(\"Couldn't find the settings. How the hell.\", progErr);\n } catch (IOException i) {\n println(\"General IO exception when loading settings.\", progErr);\n } catch (Exception e) {\n println(\"Catastrophic failure when loading settings.\", progErr);\n println(\"Don't mess with the settings file, man!\", progErr);\n }\n }",
"private void loadSettings() {\r\n \tString fname = baseDir + \"/\" + configFile;\r\n\t\tString line = null;\r\n\r\n\t\t// Load the settings hash with defaults\r\n\t\tsettings.put(\"db_url\", \"\");\r\n\t\tsettings.put(\"db_user\", \"\");\r\n\t\tsettings.put(\"db_pass\", \"\");\r\n\t\tsettings.put(\"db_min\", \"2\");\r\n\t\tsettings.put(\"db_max\", \"10\");\r\n\t\tsettings.put(\"db_query\", \"UPDATE members SET is_activated=1 WHERE memberName=? AND is_activated=3\");\r\n\t\t// Read the current file (if it exists)\r\n\t\ttry {\r\n \t\tBufferedReader input = new BufferedReader(new FileReader(fname));\r\n \t\twhile (( line = input.readLine()) != null) {\r\n \t\t\tline = line.trim();\r\n \t\t\tif (!line.startsWith(\"#\") && line.contains(\"=\")) {\r\n \t\t\t\tString[] pair = line.split(\"=\", 2);\r\n \t\t\t\tsettings.put(pair[0], pair[1]);\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \tcatch (FileNotFoundException e) {\r\n\t\t\tlogger.warning( \"[SMF] Error reading \" + e.getLocalizedMessage() + \", using defaults\" );\r\n \t}\r\n \tcatch (Exception e) {\r\n \t\te.printStackTrace();\r\n \t}\r\n }",
"public void updateSettings(FileObject file) {\n DataObject dobj = null;\n DataFolder folder = null;\n try {\n dobj = DataObject.find(file);\n folder = dobj.getFolder();\n } catch (DataObjectNotFoundException ex) {\n Exceptions.printStackTrace(ex);\n }\n if (dobj == null || folder == null) {\n return;\n }\n for (CreateFromTemplateAttributesProvider provider\n : Lookup.getDefault().lookupAll(CreateFromTemplateAttributesProvider.class)) {\n Map<String, ?> attrs = provider.attributesFor(dobj, folder, \"XXX\"); // NOI18N\n if (attrs == null) {\n continue;\n }\n Object aName = attrs.get(\"user\"); // NOI18N\n if (aName != null) {\n author = aName.toString();\n break;\n }\n }\n }",
"void setPropertiesFile(File file);",
"public LocalSettings() {\n // Check if a previous settings file exists\n if (settingsFile.exists()) {\n \n // Read the data from the file\n StringBuilder contentBuilder = new StringBuilder();\n try (BufferedReader br = new BufferedReader(new FileReader(settingsFile))){\n \n // Go through all lines\n String line;\n while ((line = br.readLine()) != null){\n addSetting(line);\n }\n } catch (IOException e){\n e.printStackTrace();\n }\n }\n }",
"private void setPrefs( File build_file ) {\n if ( _settings != null )\n _settings.load( build_file );\n else\n _settings = new OptionSettings( build_file );\n _prefs = _settings.getPrefs();\n }",
"protected void parseValues(File file){\r\n\t\ttry {\r\n\t\t\tScanner scanner = new Scanner(file);\r\n\t\t\tString line;\r\n\t\t\tif(scanner.hasNext()) \r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\t\taddToSupplyValues(line);\r\n\t\t\t}\r\n\t\t\tscanner.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void parse(String filename);",
"public void load()\n\t{\n\t\ttry {\n\t\t\tIFile file = project.getFile(PLAM_FILENAME);\n\t\t if (file.exists()) {\n\t\t\t\tInputStream stream= null;\n\t\t\t\ttry {\n\t\t\t\t\tstream = new BufferedInputStream(file.getContents(true));\n\t\t\t\t SAXReader reader = new SAXReader();\n\t\t\t\t Document document = reader.read(stream);\n\t\t\t\t \n\t\t\t\t Element root = document.getRootElement();\n\n\t\t\t\t String url = root.elementTextTrim(\"server-url\");\n\t\t\t\t setServerURL((url != null) ? new URL(url) : null);\n\t\t\t\t \n\t\t\t\t setUserName(root.elementTextTrim(\"username\"));\n\t\t\t\t setPassword(root.elementTextTrim(\"password\"));\n\t\t\t\t setProductlineId(root.elementTextTrim(\"pl-id\"));\n \n\t\t\t\t} catch (CoreException e) {\n\t\t\t\t\t\n\t\t\t\t} finally {\n\t\t\t\t if (stream != null)\n\t\t\t\t stream.close();\n\t\t\t\t}\n\t\t }\n\t\t} catch (DocumentException e) {\n\t\t\tlogger.info(\"Error while parsing PLAM config.\", e);\n\t\t} catch (IOException e) {\n\t\t}\n\t}",
"public void parse(String fileName) throws Exception;",
"public void load() throws IOException {\r\n File file = new File(this.filename);\r\n //if file exist.\r\n if (file.exists() && !file.isDirectory()) {\r\n ObjectInputStream is = null;\r\n try {\r\n //opening and reaind the source file\r\n is = new ObjectInputStream(new FileInputStream(this.filename));\r\n SettingsFile temp = (SettingsFile) is.readObject();\r\n //import the loaded file data to the current core.SettingsFile\r\n this.boardSize = temp.getBoardSize();\r\n this.firstPlayer = temp.getFirstPlayer();\r\n this.secondPlayer = temp.getSecondPlayer();\r\n this.player1Color = temp.getPlayer1Color();\r\n this.player2Color = temp.getPlayer2Color();\r\n } catch (IOException e) {\r\n System.out.println(\"Error while loading\");\r\n } catch (ClassNotFoundException e) {\r\n System.out.println(\"Problem with class\");\r\n } finally {\r\n if (is != null) {\r\n is.close();\r\n }\r\n }\r\n }\r\n //if no file, set default settings.\r\n else {\r\n save(SIZE, FIRST_PLAYER, SECOND_PLAYER, PLAYER1COLOR, PLAYER2COLOR);\r\n }\r\n }",
"private void parse() {\n if (workingDirectory != null) {\n Parser.initConstants(this, workingDirectory, remainderFile);\n Parser.parseIt();\n workingDirectory = null;\n remainderFile = null;\n jbParse.setEnabled(false);\n }\n }",
"public void setConfigfile (File file)\n {\n _configfile = file;\n }",
"private void importSettings() {\n\t\tfinal JFileChooser chooser = new JFileChooser(currentPath);\n\t chooser.setFileFilter(new FileNameExtensionFilter(\"Text Files\", \"txt\"));\n\t int returnVal = chooser.showOpenDialog(null);\n\t \n\t if(returnVal == JFileChooser.APPROVE_OPTION) {\n\t \tcurrentPath = chooser.getCurrentDirectory().getAbsolutePath();\n\t\t\ttry (FileReader fr = new FileReader(chooser.getSelectedFile());\n\t BufferedReader br = new BufferedReader(fr)) {\n\t\t\t\tpcs.firePropertyChange(\"Import Settings\", null, br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Error: file could not be read.\");\n\t\t\t}\n\t }\n\t}",
"private void setFile() {\n\t}",
"public void initParser(String file) {\n if (checkFileExists(file)) {\n parseXml(file);\n }\n }",
"public void readFromFile() {\n\n\t}",
"protected abstract void parseFile(File f) throws IOException;",
"private void parseFile(Project p, File f, ImportSettings settings, int pass)\n throws ImportException {\n\n\n try {\n BufferedInputStream bs = new BufferedInputStream(new FileInputStream(f));\n Lexer l = new Lexer(bs, f.getAbsolutePath());\n TokenCollection toks = l.lex();\n Parser px = new Parser();\n CompilationUnitNode cu = px.parse(toks, l.StringLiterals);\n parsedElements.add(cu);\n } catch (FeatureNotSupportedException e) {\n //throw new ImportException(\"Error parsing file: \" + f.getAbsolutePath() + \" due to: \"+e.getMessage());\n System.out.println(\"Error parsing file: \" + f.getAbsolutePath() + \" due to: \"+e.getMessage());\n } catch (Exception e) {\n// e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n// throw new ImportException(\"Error parsing file: \" + f.getAbsolutePath());\n System.out.println(\"Error parsing file: \" + f.getAbsolutePath());\n }\n\n }",
"private static void manageGameConfigFile(File configFile) {\n Gson gson = new Gson();\n try {\n GameConfig.setInstance(gson.fromJson(new FileReader(configFile), GameConfig.class));\n } catch (FileNotFoundException e) {\n LogUtils.error(\"FileNotFoundException => \", e);\n }\n }",
"public void parseServerFile() throws IOException {\r\n /* Creates new Scanner object of the filePath */\r\n Scanner scan = new Scanner(filePath).useDelimiter(\"version=\");\r\n /* Creates new Scanner object for the server version */\r\n Scanner scanVersion = new Scanner(scan.next()).useDelimiter(\"name=\");\r\n /* Sets the server version number */\r\n this.setVersion(scanVersion.next());\r\n /* Creates new Scanner object for the server name */\r\n Scanner scanName = \r\n new Scanner(scanVersion.next()).useDelimiter(\"host=\");\r\n /* Sets the server name */\r\n this.setName(scanName.next());\r\n /* Creates new Scanner object for the server ip address */\r\n Scanner scanAddress = new Scanner(scanName.next());\r\n /* Sets the server ip address */\r\n this.setIPAddress(scanAddress.next()); \r\n }",
"public void Parse()\n {\n String prepend = \"urn:cerner:mid:core.personnel:c232:\";\n try{\n\n BufferedReader br = new BufferedReader(new FileReader(new File(path)));\n\n String line;\n\n while ((line = br.readLine()) != null)\n {\n line = line.trim();\n String[] lines = line.split(\",\");\n for (String entry : lines)\n {\n entry = entry.trim();\n entry = entry.replace(prepend, replace);\n System.out.println(entry+\",\");\n }\n\n }\n \n br.close();\n }catch(IOException IO)\n {\n System.out.println(IO.getStackTrace());\n } \n \n }",
"public static void setFile(File file) {\r\n CONFIG_FILE = file;\r\n }",
"protected void postParse(T fileParsed) {\n\t}",
"public void init()\r\n {\n readFile(inputFile);\r\n writeInfoFile();\r\n }",
"@Override\n protected void loadConfig(String fileName){\n fileName = PSO_PATH + fileName;\n File file = new File(fileName);\n try {\n Scanner sc = new Scanner(file); \n String line = sc.nextLine();\n List<List<String>> list = Arrays.asList(line.split(\",\"))\n .stream()\n .map(s -> Arrays.asList(s.split(\":\"))\n .stream()\n .map(n -> n.replaceAll(\"[^a-zA-Z0-9_.]\", \"\"))\n .collect(Collectors.toList())\n )\n .collect(Collectors.toList());\n\n this.initialTemperature = Double.parseDouble(list.get(0).get(1));\n this.coolingRate = Double.parseDouble(list.get(2).get(1));\n sc.close();\n } \n catch(IOException e) {\n e.printStackTrace();\n System.exit(1);\n }\n }",
"public void parseFile(String filePath) {\r\n\r\n\t\t// get the file content\r\n\t\tString fileContent = getFileContent(filePath);\r\n\r\n\t\tJSONObject flightEnvObj = new JSONObject(fileContent);\r\n\r\n\t\tairports = flightEnvObj.getJSONObject(\"airports\");\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tJSONObject bufferGeometry = flightEnvObj.getJSONObject(\"bufferGeometry\");\r\n\t\twaypoints = flightEnvObj.getJSONObject(\"pathPoints\");\r\n\t\troutes = flightEnvObj.getJSONObject(\"paths\");\r\n\r\n\t\t_airportsFeatures = airports.getJSONArray(\"features\");\r\n\t\t_waypointsFeatures = waypoints.getJSONArray(\"features\");\r\n\t\t_routesFeatures = routes.getJSONArray(\"features\");\r\n\r\n\t\t// call private method\r\n\t\tgenerateLayerAirports();\r\n\t\tgenerateLayerWaypoints();\r\n\t\tgenerateLayerRoutes();\r\n\r\n\t}",
"public Document setUpDocumentToParse() throws ParserConfigurationException, SAXException, IOException{\n\t\tFile file = new File (dataFilePath);\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\tDocument document = documentBuilder.parse(file);\n\n\t\treturn document;\n\t}",
"public void set(String filePath) throws FormatException {\n evaluate(filePath);\n }",
"public PragyanXmlParser(InputStream file) {\r\n\t\tfileToParse = file;\r\n\t\tcharWriter = new CharArrayWriter();\r\n\t\tdateWriter = new CharArrayWriter();\r\n\t\tformat = new SimpleDateFormat(\"dd-MM-yyyy HH:mm\"); \r\n\t\t\r\n\t}",
"private static void readConfigFile() {\n\n BufferedReader input = null;\n try {\n input = new BufferedReader(new FileReader(getConfigFile()));\n String sLine = null;\n while ((sLine = input.readLine()) != null) {\n final String[] sTokens = sLine.split(\"=\");\n if (sTokens.length == 2) {\n m_Settings.put(sTokens[0], sTokens[1]);\n }\n }\n }\n catch (final FileNotFoundException e) {\n }\n catch (final IOException e) {\n }\n finally {\n try {\n if (input != null) {\n input.close();\n }\n }\n catch (final IOException e) {\n Sextante.addErrorToLog(e);\n }\n }\n\n }",
"@Override\n public void run() {\n try (BufferedReader reader = new BufferedReader(new FileReader(file.getAbsoluteFile()))) {\n String lineFromFile = reader.readLine();\n String[] splitLine;\n String userName;\n String url;\n long time;\n while ((lineFromFile = reader.readLine()) != null) {\n splitLine = lineFromFile.split(\";\");\n userName = splitLine[3];\n url = splitLine[1];\n time = Long.parseLong(splitLine[2]);\n if (userNamesAndCorrespondingContent.containsKey(userName)) {\n Content content = userNamesAndCorrespondingContent.get(userName);\n if (content.getUrlAndCorrespondingTime().containsKey(url)) {\n content.updateTimeForCorrespondingUrl(url, time);\n } else {\n content.updateUrlAndTimeInfoForCorrespondingUsername(url, time);\n }\n } else {\n Map<String, Long> newUrlAndTime = new ConcurrentSkipListMap<>();\n newUrlAndTime.put(url, time);\n userNamesAndCorrespondingContent.put(userName, new Content(newUrlAndTime));\n }\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void extractProperties(File file) {\n\t\tFile input = file;\n\t\tBufferedReader stream;\n\t\ttry {\n\t\t\tString line;\n\t\t\tMatcher m_title, m_subtitle, m_spacing;\n\t\t\tStringBuffer extractable = new StringBuffer();\n\t\t\tstream = new BufferedReader(new FileReader(input));\n\t\t\t\n\t\t\t/* Read all comment lines from the input file and concatenate them */\n\t\t\twhile ((line = stream.readLine()) != null) {\n\t\t\t\tline = line.replaceAll(\"\\\\s+$\", \"\");\n\t\t\t\tTabString temp = new TabString(line);\n\t\t\t\tif (!line.isEmpty()) {\n\t\t\t\t\tif (temp.checkError() == TabString.ERROR_COMMENT)\n\t\t\t\t\t\textractable.append(\"%\" + line + \"%\");\n\t\t\t\t\telse\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t/* Return if nothing was found */\n\t\t\tif (extractable.length() == 0) {\n\t\t\t\tstream.close();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tm_title = TITLE_PATTERN.matcher(extractable.toString());\n\t\t\tm_subtitle = SUBTITLE_PATTERN.matcher(extractable.toString());\n\t\t\tm_spacing = SPACING_PATTERN.matcher(extractable.toString());\n\t\t\t\n\t\t\t/* Set the title to the extracted title */\n\t\t\tif (m_title.find())\n\t\t\t\tthis.setTitle(m_title.group(VALUE_POSITION));\n\t\t\t\n\t\t\t/* Set the subtitle to the extracted subtitle */\n\t\t\tif (m_subtitle.find())\n\t\t\t\tthis.setSubtitle(m_subtitle.group(VALUE_POSITION));\n\t\t\t\n\t\t\t/* Set the spacing to the extracted spacing */\n\t\t\tif (m_spacing.find())\n\t\t\t\tthis.setSpacing(Float.parseFloat(m_spacing.group(VALUE_POSITION)));\n\t\t\t\t\n\t\t\tstream.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tparseFile(\"english_file.txt\");\r\n\t\t\t\t}",
"private void loadSettings() {\n//\t\tSharedPreferences prefs = this.getSharedPreferences(Defs.PREFS_NAME, 0);\n//\t\t\n//\t\tString fileData = prefs.getString(Defs.PREFS_KEY_PREV_RATES_FILE, \"\");\n//\t\tLog.d(TAG, \"Loaded last \" + fileData);\n//\t\tif ( fileData.length() > 0 ) {\n//\t\t\tByteArrayInputStream bias = new ByteArrayInputStream(fileData.getBytes());\n//\t\t\t_oldRates = new ExchangeRate();\n//\t\t\tparseRates(bias, _oldRates);\n//\t\t}\n\t}",
"@Override\n public void parse() {\n if (file == null)\n throw new IllegalStateException(\n \"File cannot be null. Call setFile() before calling parse()\");\n\n if (parseComplete)\n throw new IllegalStateException(\"File has alredy been parsed.\");\n\n FSDataInputStream fis = null;\n BufferedReader br = null;\n\n try {\n fis = fs.open(file);\n br = new BufferedReader(new InputStreamReader(fis));\n\n // Go to our offset. DFS should take care of opening a block local file\n fis.seek(readOffset);\n records = new LinkedList<T>();\n\n LineReader ln = new LineReader(fis);\n Text line = new Text();\n long read = readOffset;\n\n if (readOffset != 0)\n read += ln.readLine(line);\n\n while (read < readLength) {\n int r = ln.readLine(line);\n if (r == 0)\n break;\n\n try {\n T record = clazz.newInstance();\n record.fromString(line.toString());\n records.add(record);\n } catch (Exception ex) {\n LOG.warn(\"Unable to instantiate the updateable record type\", ex);\n }\n read += r;\n }\n\n } catch (IOException ex) {\n LOG.error(\"Encountered an error while reading from file \" + file, ex);\n } finally {\n try {\n if (br != null)\n br.close();\n\n if (fis != null)\n fis.close();\n } catch (IOException ex) {\n LOG.error(\"Can't close file\", ex);\n }\n }\n\n LOG.debug(\"Read \" + records.size() + \" records\");\n }",
"public void refresh() {\n try (InputStream stream = new FileInputStream(file)) {\n Map<String, String> properties = new HashMap<>();\n Properties props = new Properties();\n props.load(stream);\n for (String key : props.stringPropertyNames()) {\n properties.put(key, props.getProperty(key));\n }\n LOG.log(Level.FINEST, \"Loaded properties from \" + file);\n this.properties = properties;\n } catch (IOException e) {\n LOG.log(Level.FINEST, \"Cannot load properties from \" + file, e);\n }\n }",
"private void parseFile(IFile file) throws CoreException, IOException {\r\n \t\tBufferedReader reader = new BufferedReader(new InputStreamReader(file.getContents()));\r\n \t\tString nxt = \"\";\r\n \t\tStringBuilder builder = new StringBuilder();\r\n \t\tbuilder.append(reader.readLine());\r\n \t\twhile (nxt!=null) {\r\n \t\t\tnxt = reader.readLine();\r\n \t\t\tif (nxt!=null) {\r\n \t\t\t\tbuilder.append(\"\\n\");\r\n \t\t\t\tbuilder.append(nxt);\r\n \t\t\t}\r\n \t\t}\r\n \t\t// QUESTION: does this trigger the reconcilers?\r\n \t\tset(builder.toString());\r\n \t}",
"public void processFile() throws Exception {\n InputStream cwlFile = new FileInputStream( CWL_FILE );\n Yaml yaml = new Yaml();\n Map contents = (Map) yaml.load(cwlFile);\n for( Object key : contents.keySet() ) {\n \tprocessContents( (String) key, contents.get(key) );\n }\n\t}",
"public void setFile(File file);",
"public void load() throws IOException\n {\n try\n {\n settings.load(new FileInputStream(FILE));\n }\n catch (FileNotFoundException e)\n {\n save();\n }\n }",
"public static void load()\n throws IOException, ClassNotFoundException {\n FileInputStream f_in = new\n FileInputStream (settingsFile);\n ObjectInputStream o_in = new\n ObjectInputStream(f_in);\n SettingsSaver loaded = (SettingsSaver) o_in.readObject();\n advModeUnlocked = loaded.set[0];\n LIM_NOTESPERLINE = loaded.set[1];\n LIM_96_MEASURES = loaded.set[2];\n LIM_VOLUME_LINE = loaded.set[3];\n LIM_LOWA = loaded.set[4];\n LIM_HIGHD = loaded.set[5];\n LOW_A_ON = loaded.set[6];\n NEG_TEMPO_FUN = loaded.set[7];\n LIM_TEMPO_GAPS = loaded.set[8];\n RESIZE_WIN = loaded.set[9];\n ADV_MODE = loaded.set[10];\n o_in.close();\n f_in.close();\n }",
"public void doIt(File f) throws Exception\n {\n LuaParser parser=new LuaParser();\n Map<String,Object> data=parser.read(f);\n useData(data);\n }",
"private static void loadJsonFile() throws FileNotFoundException {\n Log.println(Log.INFO, \"FileAccessing\", \"Loading settings file.\");\n StringBuilder stringBuilder = new StringBuilder();\n InputStreamReader inputStreamReader = new InputStreamReader(context.openFileInput(\"settingDetails.json\"), StandardCharsets.UTF_8);\n try (BufferedReader reader = new BufferedReader(inputStreamReader)) {\n String line = reader.readLine();\n while (line != null) {\n stringBuilder.append(line).append('\\n');\n line = reader.readLine();\n }\n } catch (IOException e) {\n Log.println(Log.ERROR, \"FileAccessing\", \"Settings file reading error.\");\n throw new FileNotFoundException();\n }\n if (stringBuilder.toString().equals(\"\")) {\n Log.println(Log.INFO, \"FileAccessing\", \"Settings file does not exist.\");\n throw new FileNotFoundException();\n }\n\n Gson gson = new Gson();\n JsonObject jsonObject = gson.fromJson(stringBuilder.toString(), JsonObject.class);\n if (jsonObject == null) {\n throw new FileNotFoundException();\n }\n JsonArray mappingControls = (JsonArray) jsonObject.get(\"mappingControls\");\n\n TaskDetail.actionToTask.clear();\n for (JsonElement o : mappingControls) {\n JsonObject individualMapping = (JsonObject) o;\n byte combinedAction = individualMapping.get(\"combinedAction\").getAsByte();\n int outerControl = individualMapping.get(\"task\").getAsInt();\n TaskDetail.actionToTask.put(combinedAction, TaskDetail.taskDetails.get(outerControl));\n }\n\n int setting = 0;\n JsonArray generalSettings = (JsonArray) jsonObject.get(\"generalSettings\");\n for (JsonElement o : generalSettings) {\n JsonObject individualSetting = (JsonObject) o;\n int status = individualSetting.get(\"status\").getAsInt();\n SettingDetail.settingDetails.get(setting++).changeSetting(status);\n }\n\n DeviceDetail.deviceDetails.clear();\n JsonArray deviceList = (JsonArray) jsonObject.get(\"devices\");\n for (JsonElement o : deviceList) {\n JsonObject individualDevice = (JsonObject) o;\n String deviceName = individualDevice.get(\"name\").getAsString();\n String deviceMac = individualDevice.get(\"mac\").getAsString();\n DeviceDetail.deviceDetails.add(new DeviceDetail(deviceMac, deviceName));\n }\n\n SensitivitySetting.sensitivitySettings.clear();\n JsonArray sensitivityList = (JsonArray) jsonObject.get(\"sensitivities\");\n for (JsonElement o : sensitivityList) {\n JsonObject individualSensitivity = (JsonObject) o;\n int multiplicativeFactor = individualSensitivity.get(\"factor\").getAsInt();\n int sensitivity = individualSensitivity.get(\"sensitivity\").getAsInt();\n SensitivitySetting.sensitivitySettings.add(new SensitivitySetting(multiplicativeFactor, sensitivity));\n }\n\n int currentDevice = jsonObject.get(\"currentlySelected\").getAsInt();\n DeviceDetail.setIndexSelected(currentDevice);\n\n updateAllSetting(false);\n }",
"private static void initSettings(TransferITModel model) {\n if (settingsfile.exists()) {\n try {\n ObjectInputStream objectInputStream = new ObjectInputStream(new FileInputStream(settingsfile));\n Object[] readObjects = new Object[6];\n for (int x = 0; x < readObjects.length; x++) {\n readObjects[x] = objectInputStream.readUnshared();\n if (readObjects[x] == null) {\n return;\n }\n }\n model.putAll((Properties) readObjects[0]);\n\n model.setHostHistory((HashSet<String>) readObjects[1]);\n\n model.setUsernameHistory((HashMap<String, String>) readObjects[2]);\n\n model.setPasswordHistory((HashMap<String, String>) readObjects[3]);\n\n model.setUsers((HashMap<String, String>) readObjects[4]);\n\n model.setUserRights((HashMap<String, Boolean>) readObjects[5]);\n\n\n\n } catch (IOException ex) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n model.addUser(\"anon\", \"anon\", false);\n }\n }",
"private void parseFile(String fileName) {\n Set<String> inputs = new HashSet<String>();\n Set<String> outputs = new HashSet<String>();\n double[] qos = new double[4];\n\n Properties p = new Properties(inputs, outputs, qos);\n\n try {\n Scanner scan = new Scanner(new File(fileName));\n while(scan.hasNext()) {\n\t\t\t\tString name = scan.next();\n\t\t\t\tString inputBlock = scan.next();\n\t\t\t\tString outputBlock = scan.next();\n\n\t\t\t\tqos[TIME] = scan.nextDouble();\n\t\t\t\tqos[COST] = scan.nextDouble();\n\t\t\t\tqos[AVAILABILITY] = scan.nextDouble()/100;\n\t\t\t\tqos[RELIABILITY] = scan.nextDouble()/100;\n\t\t\t\t// Throw the other two away;\n\t\t\t\tscan.nextDouble();\n\t\t\t\tscan.nextDouble();\n\n\t\t\t\tfor (String s :inputBlock.split(\",\"))\n\t\t\t\t\tinputs.add(s);\n\t\t\t\tfor (String s :outputBlock.split(\",\"))\n\t\t\t\toutputs.add(s);\n\n p = new Properties(inputs, outputs, qos);\n\n ServiceNode ws = new ServiceNode(name, p);\n serviceMap.put(name, ws);\n inputs = new HashSet<String>();\n outputs = new HashSet<String>();\n qos = new double[4];\n }\n scan.close();\n }\n catch(IOException ioe) {\n System.out.println(\"File parsing failed...\");\n }\n\t\tnumServices = serviceMap.size();\n }",
"public void parseFile(){\n try{\n BufferedReader br = new BufferedReader(new FileReader(\"ElevatorConfig.txt\"));\n \n String fileRead;\n \n totalSimulatedTime = 1000;\n Integer.parseInt(br.readLine());\n simulatedSecondRate = 30;\n Integer.parseInt(br.readLine());\n \n for (int onFloor = 0; onFloor< 5; onFloor++){\n \n fileRead = br.readLine(); \n String[] tokenize = fileRead.split(\";\");\n for (int i = 0; i < tokenize.length; i++){\n String[] floorArrayContent = tokenize[i].split(\" \");\n \n int destinationFloor = Integer.parseInt(floorArrayContent[1]);\n int numPassengers = Integer.parseInt(floorArrayContent[0]);\n int timePeriod = Integer.parseInt(floorArrayContent[2]);\n passengerArrivals.get(onFloor).add(new PassengerArrival(numPassengers, destinationFloor, timePeriod));\n }\n }\n \n br.close();\n \n } catch(FileNotFoundException e){ \n System.out.println(e);\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n\n }",
"public void loadConfigurationFromDisk() {\r\n try {\r\n FileReader fr = new FileReader(CONFIG_FILE);\r\n BufferedReader rd = new BufferedReader(fr);\r\n\r\n String line;\r\n while ((line = rd.readLine()) != null) {\r\n if (line.startsWith(\"#\")) continue;\r\n if (line.equalsIgnoreCase(\"\")) continue;\r\n\r\n StringTokenizer str = new StringTokenizer(line, \"=\");\r\n if (str.countTokens() > 1) {\r\n String aux;\r\n switch (str.nextToken().trim()) {\r\n case \"system.voidchain.protocol_version\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.protocolVersion = aux;\r\n continue;\r\n case \"system.voidchain.transaction.max_size\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.transactionMaxSize = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.block.num_transaction\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.numTransactionsInBlock = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.storage.data_file_extension\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.dataFileExtension = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.walletFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.data_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.dataDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.blockFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.walletFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.memory.block_megabytes\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.memoryUsedForBlocks = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.sync.block_sync_port\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockSyncPort = Integer.parseInt(aux);\r\n }\r\n continue;\r\n case \"system.voidchain.crypto.ec_param\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.ecParam = aux;\r\n continue;\r\n case \"system.voidchain.core.block_proposal_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockProposalTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n case \"system.voidchain.blockchain.chain_valid_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockchainValidTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n }\r\n }\r\n }\r\n\r\n fr.close();\r\n rd.close();\r\n\r\n if (this.firstRun)\r\n this.firstRun = false;\r\n } catch (IOException e) {\r\n logger.error(\"Could not load configuration\", e);\r\n }\r\n }",
"public String parse(File file);",
"public void loadConfig(){\r\n File config = new File(\"config.ini\");\r\n if(config.exists()){\r\n try {\r\n Scanner confRead = new Scanner(config);\r\n \r\n while(confRead.hasNextLine()){\r\n String line = confRead.nextLine();\r\n if(line.indexOf('=')>0){\r\n String setting,value;\r\n setting = line.substring(0,line.indexOf('='));\r\n value = line.substring(line.indexOf('=')+1,line.length());\r\n \r\n //Perform the actual parameter check here\r\n if(setting.equals(\"romfile\")){\r\n boolean result;\r\n result = hc11_Helpers.loadBinary(new File(value.substring(value.indexOf(',')+1,value.length())),board,\r\n Integer.parseInt(value.substring(0,value.indexOf(',')),16));\r\n if(result)\r\n System.out.println(\"Loaded a rom file.\");\r\n else\r\n System.out.println(\"Error loading rom file.\");\r\n }\r\n }\r\n }\r\n confRead.close();\r\n } catch (FileNotFoundException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }",
"private void processConfigurationFile() throws RuntimeException {\n try {\n // Read all the lines and join them in a single string\n List<String> lines = Files.readAllLines(Paths.get(this.confFile));\n String content = lines.stream().reduce(\"\", (a, b) -> a + b);\n\n // Use the bson document parser to extract the info\n Document doc = Document.parse(content);\n this.mongoDBHostname = doc.getString(\"CLARUS_keystore_db_hostname\");\n this.mongoDBPort = doc.getInteger(\"CLARUS_keystore_db_port\");\n this.clarusDBName = doc.getString(\"CLARUS_keystore_db_name\");\n } catch (IOException e) {\n throw new RuntimeException(\"CLARUS configuration file could not be processed\", e);\n }\n }",
"public void parse(File file, HandlerBase handler) throws SAXException,\n IOException {\n if (file == null) {\n throw new IllegalArgumentException(\"file must not be null\");\n }\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"file must not be a directory\");\n }\n InputSource source = new InputSource(\"file:\" + file.getAbsolutePath());\n parse(source, handler);\n }",
"public void reloadFile() {\n if (configuration == null) {\n file = new File(plugin.getDataFolder(), fileName);\n }\n configuration = YamlConfiguration.loadConfiguration(file);\n\n // Look for defaults in the jar\n Reader defConfigStream = null;\n try {\n defConfigStream = new InputStreamReader(plugin.getResource(fileName), \"UTF8\");\n } catch (UnsupportedEncodingException ex) {}\n\n if (defConfigStream != null) {\n YamlConfiguration defConfig = YamlConfiguration.loadConfiguration(defConfigStream);\n configuration.setDefaults(defConfig);\n }\n }",
"public Parser(File file) {\n \t\t\ttry {\n \t\t\t\tload(new FileInputStream(file));\n \t\t\t} catch (Exception e) {\n \t\t\t\t// continue ... actual parsing will report errors\n \t\t\t}\n \t\t}",
"private void setUp(String file) {\n unorderedList = new LinkedList<>();\n orderedList = new SortedLinkedList<>();\n\n try {\n input = new Scanner(new BufferedReader(new FileReader(file)));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"void load() {\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(propertyFile);\n\t\t\tfinal Properties newProperties = new Properties();\n\t\t\tnewProperties.load(fis);\n\t\t\ttimeLastRead = propertyFile.lastModified();\n\t\t\tproperties = newProperties;\n\t\t\tfis.close();\n\t\t} catch (final Exception e) {\n\t\t\tlogger.info(\"Property file \" + propertyFile + \" \" + e.getMessage());\n\t\t}\n\t}",
"@Override\n public void init(File jsonFile) throws PluginException {\n try {\n config = new JsonSimpleConfig(jsonFile);\n reset();\n } catch (IOException e) {\n log.error(\"Error reading config: \", e);\n }\n }",
"protected void parse() throws ParseException {\n String s;\n try {\n s=getFullText();\n } catch (IOException ioe) {\n if (ioe instanceof FileNotFoundException) {\n throw new DataNotFoundException (\"Could not find log file.\", ioe);\n } else {\n throw new ParseException (\"Error getting log file text.\", new File (getFileName()));\n }\n }\n StringTokenizer sk = new StringTokenizer(s);\n ArrayList switches = new ArrayList(10);\n while (sk.hasMoreElements()) {\n String el =sk.nextToken().trim();\n if (el.startsWith(\"-J\")) {\n if (!(el.equals(\"-J-verbose:gc\"))) {\n if (!(el.startsWith(\"-J-D\"))) {\n JavaLineswitch curr = new JavaLineswitch(el.substring(2));\n addElement (curr); \n }\n }\n }\n }\n }",
"public void setFile(File f) { file = f; }",
"private void parseConfig() throws CatascopiaException {\n\t\tthis.config = new Properties();\n\t\t//load config properties file\n\t\ttry {\t\t\t\t\n\t\t\tFileInputStream fis = new FileInputStream(JCATASCOPIA_AGENT_HOME + File.separator + CONFIG_PATH);\n\t\t\tconfig.load(fis);\n\t\t\tif (fis != null)\n\t \t\tfis.close();\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\tthrow new CatascopiaException(\"config file not found\", CatascopiaException.ExceptionType.FILE_ERROR);\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\tthrow new CatascopiaException(\"config file parsing error\", CatascopiaException.ExceptionType.FILE_ERROR);\n\t\t}\n\t}",
"public static void parseIni() {\r\n\t\t//Find the indexes of the division headers.\r\n\t\tint namesIndex = findIndex(\"[names]\");\r\n\t\tint defaultIndex = findIndex(\"[defaults]\");\r\n\t\tint soundIndex = findIndex(\"[sounds]\");\r\n\t\t\r\n\t\t//Extract the information from the ini Array List.\r\n\t\tnames = extractSettings(namesIndex);\r\n\t\tdefaults = extractSettings(defaultIndex);\r\n\t\tsounds = extractSettings(soundIndex);\r\n\r\n\t\t//Sort the names Array List and copy it to the main names Array List.\r\n\t\tCollections.sort(names);\r\n\t\tMain.names = names;\r\n\t\t\r\n\t\t//Set the sounds to their variables.\r\n\t\tsetSounds();\r\n\t\t\r\n\t\t//Set the default game configurations.\r\n\t\tsetDefaults();\r\n\r\n\t}",
"public void setFile(File file) {\n this.file = file;\n }",
"public void load(String file){\n try{\n Scanner sc = new Scanner(new FileReader(file));\n ArrayList <String> saving = new ArrayList<String>();\n boolean line = sc.hasNext();\n while(line ==true ){\n String x = sc.next();\n if(!(x.contains(\"CO\")||x.contains(\"CB\"))){\n saving.add(x);\n line = sc.hasNext();\n }\n }\n sc.close();\n setValues(saving);\n }catch(IOException e){\n JOptionPane.showMessageDialog(null, \"error in reading file\", \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n }",
"@SuppressWarnings(\"AccessingNonPublicFieldOfAnotherObject\")\n\t// Accessing final fields of a private inner class that is not exported\n\tprivate void processFile(boolean initial)\n\t{\n\t\tlog(Level.INFO, \"Processing MOTD file \" + f.getPath());\n\t\tBufferedReader in = null;\n\t\tMessage curr = null;\n\t\tfinal LinkedList<Message> stack = new LinkedList<Message>();\n\n\t\ttry\n\t\t{\n\t\t\tin = new BufferedReader(new FileReader(f));\n\n\t\t\twhile (in.ready())\n\t\t\t{\n\t\t\t\tString line = in.readLine().trim();\n\n\t\t\t\tif (line.charAt(0) == '#') continue;\n\t\t\t\tif (line.equals(\"[Message]\"))\n\t\t\t\t{\n\t\t\t\t\tif (curr != null) stack.push(curr);\n\t\t\t\t\tcurr = new Message();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (curr == null) continue;\n\t\t\t\tint div = line.indexOf('=');\n\t\t\t\tif (div == -1) continue;\n\n\t\t\t\tString field = line.substring(0,div).toLowerCase();\n\t\t\t\tString value = line.substring(div+1);\n\n\t\t\t\tif (field.equals(\"id\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.id = Integer.parseInt(value);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (initial) continue; // We only care for ids in initial pass\n\t\t\t\tif (field.equals(\"active\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.active = Boolean.valueOf(value);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"title\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.title = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"short\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.mshort = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"long\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.mlong = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"from\"))\n\t\t\t\t{\n//\t\t\t\t\tcurr.from = new Date(value).getTime();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"to\"))\n\t\t\t\t{\n//\t\t\t\t\tcurr.to = new Date(value).getTime();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"posterid\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.poster_uid = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"postername\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.poster_name = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"showunix\")) continue;\n\n\t\t\t\tlog(Level.WARNING, \"Unknown Field '\" + field + \"'\");\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tlog(Level.WARNING, ex);\n\t\t}\n\t\tcatch (Throwable ex)\n\t\t{\n\t\t\tlog(Level.SEVERE, ex.getMessage());\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tin.close();\n\t\t\t}\n\t\t\tcatch (IOException ex)\n\t\t\t{\n\t\t\t}\n\t\t}\n\n\t\tif (curr != null) stack.push(curr);\n\t\tlastModified = f.lastModified();\n\n\t\tif (initial)\n\t\t{\n\t\t\tif (stack.size() > 0) lastId = stack.getLast().id;\n\t\t\treturn;\n\t\t}\n\t\tfor (Message m : stack)\n\t\t{\n\t\t\tif (m.id > lastId)\n\t\t\t{\n\t\t\t\tlog(Level.INFO, \"Sending MOTD Notice #\" + m.id);\n\t\t\t\tgetInstance().message(channel, m.toString());\n\t\t\t\tlastId = m.id;\n\t\t\t}\n\t\t}\n\t}",
"public static void processConfig() {\r\n\t\tLOG.info(\"Loading Properties from {} \", propertiesPath);\r\n\t\tLOG.info(\"Opening configuration file ({})\", propertiesPath);\r\n\t\ttry {\r\n\t\t\treadPropertiesFile();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOG.error(\r\n\t\t\t\t\t\"Monitoring system encountered an error while processing config file, Exiting\",\r\n\t\t\t\t\te);\r\n\t\t}\r\n\t}",
"void setFilePath(String filePath);",
"public FileConfiguration loadConfiguration(File file);",
"public void setFile(File file)\n {\n this.file = file;\n }",
"public ConfigFile(File file, String encoding) {\n if (file == null) {\n throw new IllegalArgumentException(\"File can not be null.\");\n }\n if (!file.isFile()) {\n throw new IllegalArgumentException(\"File not found : \" + file.getName());\n }\n\n InputStream inputStream = null;\n try {\n inputStream = new FileInputStream(file);\n properties = new Properties();\n if (file.getName().endsWith(\"yml\")){\n isYml = true;\n properties= new Yaml().loadAs(new InputStreamReader(inputStream, encoding),Properties.class);\n }else\n properties.load(new InputStreamReader(inputStream, encoding));\n } catch (IOException e) {\n throw new RuntimeException(\"Error loading properties file.\", e);\n } finally {\n if (inputStream != null) try {\n inputStream.close();\n } catch (IOException e) {\n LogKit.error(e.getMessage(), e);\n }\n }\n }",
"public static void readFile(String filename) {\n JSONParser jsonParser = new JSONParser();\n try (Reader reader = new FileReader(filename)) {\n JSONObject jo = (JSONObject) jsonParser.parse(reader);\n\n SHORT_PERIOD = (int) (long) jo.get(\"shortPeriod\");\n LONG_PERIOD = (int) (long) jo.get(\"longPeriod\");\n AVG_AMOUNT_PERIOD = (int) (long) jo.get(\"avgAmountPeriod\");\n SESSION_INTERVAL = (int) (long) jo.get(\"sessionInterval\");\n\n\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void parse(String s) throws MalformedFileException {\n\t\t\n\t}",
"private void init() throws FileNotFoundException, TransformerConfigurationException {\n try (Scanner filesscanner = new Scanner(new File(csvlocation))) {\n while (filesscanner.hasNext()) {\n filecontent.add(filesscanner.next());\n }\n if (!filecontent.isEmpty()) {\n this.header = filecontent.get(0);\n filecontent.remove(0);\n }\n setMailtemplate();\n } catch (FileNotFoundException | TransformerConfigurationException e) {\n LOGGER.error(\"Exception occured while reading the file\", e);\n throw e;\n }\n }",
"private void loadSettings() {\n\t\ttry {\n\t\t\tFile file = new File(SETTINGS_CONF);\n\t\t\tObjectInputStream in = new ObjectInputStream(new FileInputStream(file));\n\t\t\tObject[] o = (Object[]) in.readObject();\n\n\t\t\tJob[] jobs = (Job[]) o[0];\n\t\t\tfileOne.setText((String) o[1]);\n\t\t\tsettings.getRarPath().setText((String) o[2]);\n\t\t\tsettings.getBasePath().setText((String) o[3]);\n\t\t\ttrackers.getList().setItems((String[]) o[4]);\n\n\t\t\tTreeItem root = tree.getItem(0);\n\n\t\t\tfor (Job job : jobs) {\n\t\t\t\tif (job != null) {\n\t\t\t\t\t// job.printAll();\n\t\t\t\t\tTreeItem item = new TreeItem(root, SWT.NATIVE);\n\t\t\t\t\t\n\t\t\t\t\titem.setText(job.getName());\n\t\t\t\t\titem.setData(job);\n\t\t\t\t\titem.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (job.isEnabled() ? GEAR_ICON : GEAR_DISABLED_ICON)));\n\t\t\t\t\t\n\t\t\t\t\tif(!(job.getPrefix() == null || job.getPrefix().isEmpty())) {\n\t\t\t\t\t\tTreeItem i = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\t\ti.setText(job.getPrefix());\n\t\t\t\t\t\ti.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (UNDERSCORE_ICON)));\n\t\t\t\t\t}\n\t\t\t\t\tif(!(job.getPassword() == null || job.getPassword().isEmpty())) {\n\t\t\t\t\t\tTreeItem i = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\t\ti.setText(\"[with password]\");\n\t\t\t\t\t\ti.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (PASSWORD_ICON)));\n\t\t\t\t\t}\n\t\t\t\t\tif(!(job.getFileTwo() == null || job.getFileTwo().isEmpty())) {\n\t\t\t\t\t\tTreeItem i = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\t\ti.setText(job.getFileTwo());\t\t\t\t\t\n\t\t\t\t\t\ti.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (FILE_ICON)));\n\t\t\t\t\t}\n\n\t\t\t\t\t/*\n\t\t\t\t\tTreeItem iprefix = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\tTreeItem ipassword = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\tTreeItem ifileTwo = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\tiprefix.setText(job.getPrefix() == null || job.getPrefix().isEmpty() ? \"[no prefix]\" : job.getPrefix());\n\t\t\t\t\tipassword.setText(job.getPassword() == null || job.getPassword().isEmpty() ? \"[no password]\" : \"[with password]\");\n\t\t\t\t\t\n\t\t\t\t\tipassword.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (PASSWORD_ICON)));\n\t\t\t\t\tiprefix.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (FILE_ICON)));\n\t\t\t\t\tifileTwo.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (FILE_ICON)));\n\t\t\t\t\t\n\t\t\t\t\t// ifileOne.setText(job.getFileOne() == null ||\n\t\t\t\t\t// job.getFileOne().isEmpty() ? \"[no file]\" :\n\t\t\t\t\t// job.getFileOne());\n\t\t\t\t\tifileTwo.setText(job.getFileTwo() == null || job.getFileTwo().isEmpty() ? \"[no file]\" : job.getFileTwo());\n\t\t\t\t\t*/\n\t\t\t\t}\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected abstract void onLoad() throws IOException, ConfigInvalidException;",
"public static void readCVS(String filename){\n try {\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String line;\n while((line=reader.readLine())!=null){\n String item[] = line.split(\",\");\n String name = item[0];\n String value = item[1];\n switch (name){\n case \"useMaxTick\":{\n if(value.toLowerCase().equals(\"true\")){\n Params.useMaxTick = true;\n }else{\n Params.useMaxTick = false;\n }\n break;\n }\n case \"maxTick\":{\n Params.maxTick = Integer.parseInt(value);\n break;\n }\n case \"startPctWhites\":{\n Params.startPctWhites = Float.parseFloat(value);\n break;\n }\n case \"startPctBlacks\":{\n Params.startPctBlacks = Float.parseFloat(value);\n break;\n }\n case \"startPctGreys\":{\n Params.startPctGreys = Float.parseFloat(value);\n break;\n }\n case \"albedoOfWhites\":{\n Params.albedoOfWhites = Float.parseFloat(value);\n break;\n }\n case \"albedoOfBlacks\":{\n Params.albedoOfBlacks = Float.parseFloat(value);\n break;\n }\n case \"albedoOfGreys\":{\n Params.albedoOfGreys = Float.parseFloat(value);\n break;\n }\n case \"solarLuminosity\":{\n Params.solarLuminosity = Float.parseFloat(value);\n break;\n }\n case \"albedoOfSurface\":{\n Params.albedoOfSurface = Float.parseFloat(value);\n break;\n }\n case \"diffusePct\":{\n Params.diffusePct = Float.parseFloat(value);\n break;\n }\n case \"maxAge\":{\n Params.maxAge = Integer.parseInt(value);\n break;\n }\n case \"scenario\":{\n switch (Integer.parseInt(value)){\n case 0: {\n Params.scenario = Scenario.RAMP;\n break;\n }\n case 1: {\n Params.scenario = Scenario.LOW;\n break;\n }\n case 2: {\n Params.scenario = Scenario.OUR;\n break;\n }\n case 3: {\n Params.scenario = Scenario.HIGH;\n break;\n }\n case 4: {\n Params.scenario = Scenario.MAINTAIN;\n break;\n }\n default:\n break;\n }\n }\n default:\n break;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void load() {\n if (loaded) {\n return;\n }\n loaded = true;\n\n if(useDefault){\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), \"server-embed.xml\"));\n }else {\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), getConfigFile()));\n }\n Digester digester = createStartDigester();\n try (ConfigurationSource.Resource resource = ConfigFileLoader.getSource().getServerXml()) {\n InputStream inputStream = resource.getInputStream();\n InputSource inputSource = new InputSource(resource.getUri().toURL().toString());\n inputSource.setByteStream(inputStream);\n digester.push(this);\n digester.parse(inputSource);\n } catch (Exception e) {\n return;\n }\n\n }",
"public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }",
"private void loadDataFromFile(File file) {\n\t\tString fileName = file.getName();\n\t\tQuickParser test = new QuickParser();\n\n\t\tif(fileName.trim().toUpperCase().startsWith(\"INV\")) {\n\t\t\tfileType = FileType.INVENTORY;\n\t\t\ttableView.getColumns().clear();\n\t\t\ttableView.getColumns().addAll(rfid,campus,building,room,lastScannedOn,lastScannedBy,purchaseOrder,serviceTag,comments);\n\t\t\tmasterInventoryData.clear();\n\t\t\tmasterInventoryData = test.Parse(file, fileType);\n\t\t\tpresentationInventoryData.clear();\n\t\t\tpresentationInventoryData.addAll(masterInventoryData);\n\t\t\tswitch (fileType) {\n\t\t\tcase INVENTORY:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INVENTORY;\n\t\t\t\tbreak;\n\t\t\tcase INITIAL:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INITIAL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t} // End switch statement \n\t\t} // End if statement\n\t\telse if(fileName.toUpperCase().startsWith(\"INI\")) {\n\t\t\tfileType = FileType.INITIAL;\n\t\t\ttableView.getColumns().clear();\n\t\t\ttableView.getColumns().addAll(rfid,campus,building,room,lastScannedOn,lastScannedBy,purchaseOrder,serviceTag,comments);\n\t\t\tmasterInitialData.clear();\n\t\t\tmasterInitialData = test.Parse(file, fileType);\n\t\t\tpresentationInitialData.clear();\n\t\t\tpresentationInitialData.addAll(masterInitialData);\n\t\t\tswitch (fileType) {\n\t\t\tcase INVENTORY:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INVENTORY;\n\t\t\t\tbreak;\n\t\t\tcase INITIAL:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INITIAL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t} // End switch statement \n\t\t} // End else if statement \n\t\telse {\n\t\t\tfileType = FileType.UNASSIGNED;\n\t\t} // End else statement\n\t\tchangeToScanTable();\n\t}",
"public static void load(String filename, Supervisor k) throws FileNotFoundException{\n String source = \"\";\n try {\n Scanner in = new Scanner(new FileReader(filename));\n while(in.hasNext()){\n source = source + in.next();\n }\n } catch (FileNotFoundException ex) {\n //throw ex;\n System.out.println(\"Could not read config file: \" + ex);\n System.out.println(\"trying to create a new one...\");\n String stsa = \"Done!\\n\";\n try (\n Writer writer = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(filename), \"utf-8\"))) {\n writer.write(\"\");\n writer.close();\n }\n \n catch (IOException ex1) {\n stsa = \"\";\n System.out.println(\"FAILED, SKIPPING CONFIG READ BECOUSE:\");\n Logger.getGlobal().warning(ex1.toString());\n System.out.println(\"Console version: \" + ex1.toString());\n }\n System.out.print(stsa);\n }\n LinkedList<String[]> raw = fetch(source);\n \n if(k.Logic == null){\n Logger.getGlobal().warning(\"ENGINE NOT INITIALIZED PROPERLY, ABORTING APPLYING CONFIG\");\n return;\n }\n if(k.Logic.Vrenderer == null){\n Logger.getGlobal().warning(\"ENGINE RENDERER NOT INITIALIZED PROPERLY, ABORTING APPLYING CONFIG\");\n return;\n }\n \n for(String[] x: raw){\n String value = x[1];\n if(!k.features_overrideAllStandard)\n switch(x[0]){\n case \"nausea\":\n int numValue = 0;\n try{\n numValue = Integer.parseInt(value);\n }\n catch(Exception e){\n quickTools.alert(\"configReader\", \"invalid nausea value\");\n break;\n }\n if(numValue > 0){\n k.Logic.Vrenderer.dispEffectsEnabled = true;\n }\n //k.Logic.Vrenderer.di\n break;\n default:\n\n break;\n }\n customFeatures(x[0], x[1], k);\n }\n }",
"@Test\n public final void testConfigurationParser() {\n URL resourceUrl = this.getClass().getResource(configPath);\n File folder = new File(resourceUrl.getFile());\n for (File configFile : folder.listFiles()) {\n try {\n System.setProperty(\"loadbalancer.conf.file\", configFile.getAbsolutePath());\n LoadBalancerConfiguration.getInstance();\n } finally {\n LoadBalancerConfiguration.clear();\n }\n }\n }",
"public T loadConfig(File file) throws IOException;",
"public void setFile(File file) {\n if (definerSet) {\n tooManyDefinitions();\n }\n definerSet = true;\n this.file = file;\n }",
"ValueResourceParser2(@NonNull File file) {\n mFile = file;\n }",
"private void setConfiguration() throws IOException{\n\t\tString confPath = \"mapreduce.conf\";\n\t\tFileInputStream fis = new FileInputStream(confPath);\n\t\tthis.load(fis);\n\t\tfis.close();\n\t}",
"public void parse(File file, DefaultHandler handler) throws SAXException,\n IOException {\n if (file == null) {\n throw new IllegalArgumentException(\"file must not be null\");\n }\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"file must not be a directory\");\n }\n InputSource source = new InputSource(\"file:\" + file.getAbsolutePath());\n parse(source, handler);\n }",
"@Override\n public void setFile(File f) {\n \n }",
"private void init(){\r\n\t\t// already checked that this is a valid file and reader\r\n\t\ttokenizer = new StreamTokenizer(reader);\r\n\t\ttokenizer.slashSlashComments(true);\r\n\t\ttokenizer.slashStarComments(true);\r\n\t\ttokenizer.wordChars('_', '_');\r\n\t\ttokenizer.wordChars('.', '.');\r\n\t\ttokenizer.ordinaryChar('/');\r\n\t\ttokenizer.ordinaryChar('-');\r\n\t\tfillKeywords();\r\n\t\t//tokenChoose = new TokenChooser();\r\n\t}",
"protected void initVars() {\n prefFile = \"./server.ini\";\n mimeFile = \"./mime.ini\";\n }",
"@Override\n public void fromFile(final String file) {\n // Model会关心文件路径,所以这里需要这个操作\n this.jsonFile = file;\n final JsonObject data = Ut.ioJObject(this.jsonFile);\n this.fromJson(data);\n }",
"public static void initialize() {\r\n\t\tjson = new JSONFile(filePath);\t\r\n\t}",
"void parser() throws TemplateException {\n this.config.resolver.outputdir =\n PropertiesParser.parser(this.config.resolver.outputdir);\n this.config.resolver.sourcepackage = \n PropertiesParser.parser(this.config.resolver.sourcepackage);\n this.config.resolver.templatedir = \n PropertiesParser.parser(this.config.resolver.templatedir);\n }",
"public void setupParser(InputStream is) {\r\n inputSource = new InputSource(is);\r\n }",
"public void parseDefaults() throws FileNotFoundException,\n\t\t\tIOException {\n\t\t// System.out.println(\"in parse\\t\"+szDefaultFile);\n\t\tString szLine;\n\t\tBufferedReader br;\n\t\ttry {\n\t\t\tString szError = \"\";\n\t\t\tbr = new BufferedReader(new FileReader(szDefaultFile));\n\t\t\twhile ((szLine = br.readLine()) != null) {\n\t\t\t\tStringTokenizer st = new StringTokenizer(szLine, \"\\t\");\n\t\t\t\tif (st.hasMoreTokens()) {\n\t\t\t\t\tString sztype = st.nextToken().trim();\n\n\t\t\t\t\tString szvalue = \"\";\n\t\t\t\t\tif (st.hasMoreTokens()) {\n\t\t\t\t\t\tszvalue = st.nextToken().trim();\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!szvalue.equals(\"\")) {\n\t\t\t\t\t\tif ((sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Use_static_input_to_build_model\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Use_transcription_factor-gene_interaction_data_to_build\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Use_transcription_factor_gene_interaction_data_to_build\"))) {\n\t\t\t\t\t\t\tif (szvalue.equalsIgnoreCase(\"true\")) {\n\t\t\t\t\t\t\t\tbstaticsearchDEF = true;\n\t\t\t\t\t\t\t} else if (szvalue.equalsIgnoreCase(\"false\")) {\n\t\t\t\t\t\t\t\tbstaticsearchDEF = false;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tszError += \"Warning: \" + szvalue\n\t\t\t\t\t\t\t\t\t\t+ \" is an unrecognized \" + \"value for \"\n\t\t\t\t\t\t\t\t\t\t+ sztype + \" \"\n\t\t\t\t\t\t\t\t\t\t+ \"(expecting true or false)\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Static_Input_Data_File\")\n\t\t\t\t\t\t\t\t|| sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"TF_gene_Interactions_File\")\n\t\t\t\t\t\t\t\t|| sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"TF-gene_Interactions_File\")) {\n\t\t\t\t\t\t\tszStaticFileDEF = szvalue;\n\t\t\t\t\t\t} else if (sztype.equalsIgnoreCase(\"Data_File\")\n\t\t\t\t\t\t\t\t|| sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Expression_Data_File\")) {\n\t\t\t\t\t\t\tszDataFileDEF = szvalue;\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Convergence_Likelihood_%\")) {\n\t\t\t\t\t\t\tdCONVERGENCEDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Minimum_Standard_Deviation\")) {\n\t\t\t\t\t\t\tdMINSTDDEVALDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t} else if (sztype.equalsIgnoreCase(\"Saved_Model_File\")) {\n\t\t\t\t\t\t\tszInitFileDEF = szvalue;\n\t\t\t\t\t\t} else if ((sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Spot_IDs_included_in_the_data_file\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Spot_IDs_included_in_the_the_data_file\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Spot_IDs_in_the_data_file\"))) {\n\t\t\t\t\t\t\tbspotcheckDEF = (szvalue.equalsIgnoreCase(\"true\"));\n\t\t\t\t\t\t} else if ((sztype.equalsIgnoreCase(\"Normalize_Data\"))\n\t\t\t\t\t\t\t\t|| (sztype.equalsIgnoreCase(\"Transform_Data\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Transform_Data[Log transform data,Linear transform data,Add 0]\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Normalize_Data[Log normalize data,Normalize data,No normalization/add 0]\"))) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tnnormalizeDEF = Integer.parseInt(szvalue);\n\t\t\t\t\t\t\t\tif ((nnormalizeDEF < 0) || (nnormalizeDEF > 2)) {\n\t\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\t\t\t\t\tszvalue\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" is an invalid argument for Normalize_Data\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\t\t\t\t\tif (szvalue\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Log normalize data\")) {\n\t\t\t\t\t\t\t\t\tnnormalizeDEF = 0;\n\t\t\t\t\t\t\t\t} else if (szvalue\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Normalize data\")) {\n\t\t\t\t\t\t\t\t\tnnormalizeDEF = 1;\n\t\t\t\t\t\t\t\t} else if (szvalue\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"No normalization/add 0\")) {\n\t\t\t\t\t\t\t\t\tnnormalizeDEF = 2;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\t\t\t\t\tszvalue\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" is an invalid argument for Normalize_Data\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if ((sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Change_should_be_based_on[Maximum-Minimum,Difference From 0]\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Change_should_be_based_on\"))) {\n\t\t\t\t\t\t\tif (szvalue.equalsIgnoreCase(\"Maximum-Minimum\")) {\n\t\t\t\t\t\t\t\tbmaxminDEF = true;\n\t\t\t\t\t\t\t} else if (szvalue\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Difference From 0\")) {\n\t\t\t\t\t\t\t\tbmaxminDEF = false;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tszError += szvalue\n\t\t\t\t\t\t\t\t\t\t+ \" is an invalid value of \"\n\t\t\t\t\t\t\t\t\t\t+ \"Change_should_be_based_on[Maximum-Minimum,Difference From 0]\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Gene_Annotation_Source\")) {\n\t\t\t\t\t\t\t/*Boolean bProteAll=false;\n\t\t\t\t\t\t\t * try { ndbDEF = Integer.parseInt(szvalue); if\n\t\t\t\t\t\t\t * ((ndbDEF < 0)|| (ndbDEF >= organisms.length)) {\n\t\t\t\t\t\t\t * ndbDEF = 0; } } catch(NumberFormatException ex) {\n\t\t\t\t\t\t\t * boolean bfound = false; int nsource = 0; while\n\t\t\t\t\t\t\t * ((nsource < organisms.length)&&(!bfound)) { if\n\t\t\t\t\t\t\t * (organisms[nsource].equalsIgnoreCase(szvalue)) {\n\t\t\t\t\t\t\t * bfound = true; ndbDEF = nsource; } else {\n\t\t\t\t\t\t\t * nsource++; } }\n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t * if (!bfound) { szError += \"Warning: \"+szvalue\n\t\t\t\t\t\t\t * +\" is an unrecognized \"+\n\t\t\t\t\t\t\t * \"type for Gene Annotation Source\\n\"; } }\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t} else if (sztype.equalsIgnoreCase(\"Allow_Path_Merges\")) {\n\t\t\t\t\t\t\tballowmergeDEF = (szvalue.equalsIgnoreCase(\"true\"));\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"TF-gene_Interaction_Source\")) {\n\t\t\t\t\t\t\tint numitems = staticsourceArray.length;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tnstaticsourceDEF = Integer.parseInt(szvalue);\n\t\t\t\t\t\t\t\tif ((nstaticsourceDEF < 0)\n\t\t\t\t\t\t\t\t\t\t|| (nstaticsourceDEF >= numitems)) {\n\t\t\t\t\t\t\t\t\tnstaticsourceDEF = 0;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\t\t\t\t\tboolean bfound = false;\n\t\t\t\t\t\t\t\tint nsource = 0;\n\t\t\t\t\t\t\t\twhile ((nsource < numitems) && (!bfound)) {\n\t\t\t\t\t\t\t\t\tif (((String) staticsourceArray[nsource])\n\t\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(szvalue)) {\n\t\t\t\t\t\t\t\t\t\tbfound = true;\n\t\t\t\t\t\t\t\t\t\tnstaticsourceDEF = nsource;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tnsource++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (!bfound) {\n\t\t\t\t\t\t\t\t\tszError += \"Warning: \"\n\t\t\t\t\t\t\t\t\t\t\t+ szvalue\n\t\t\t\t\t\t\t\t\t\t\t+ \" is an unrecognized \"\n\t\t\t\t\t\t\t\t\t\t\t+ \"type for TF-gene_Interaction_Source\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Cross_Reference_Source\")) {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * int numitems = defaultxrefs.length; try {\n\t\t\t\t\t\t\t * nxrefDEF = Integer.parseInt(szvalue); if\n\t\t\t\t\t\t\t * ((nxrefDEF < 0)|| (nxrefDEF >= numitems)) {\n\t\t\t\t\t\t\t * nxrefDEF = 0; } } catch(NumberFormatException ex)\n\t\t\t\t\t\t\t * { boolean bfouparseDefaultsnd = false; int nsource = 0; while\n\t\t\t\t\t\t\t * ((nsource < numitems)&&(!bfound)) { if (((String)\n\t\t\t\t\t\t\t * defaultxrefs[nsource]).equalsIgnoreCase(szvalue))\n\t\t\t\t\t\t\t * { bfound = true; nxrefDEF = nsource; } else {\n\t\t\t\t\t\t\t * nsource++; } }\n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t * if (!bfound) { szError += \"Warning: \"+szvalue\n\t\t\t\t\t\t\t * +\" is an unrecognized \"+\n\t\t\t\t\t\t\t * \"type for a Cross_Reference_Source\"; } }\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Gene_Annotation_File\")) {\n\t\t\t\t\t\t\tszGeneAnnotationFileDEF = szvalue;\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Cross_Reference_File\")) {\n\t\t\t\t\t\t\tszCrossRefFileDEF = szvalue;\n\t\t\t\t\t\t} else if ((sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Repeat_Data_Files(comma delimited list)\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Repeat_Data_Files\"))) {\n\t\t\t\t\t\t\tvRepeatFilesDEF = new Vector();\n\t\t\t\t\t\t\tStringTokenizer stRepeatList = new StringTokenizer(\n\t\t\t\t\t\t\t\t\tszvalue, \",\");\n\t\t\t\t\t\t\twhile (stRepeatList.hasMoreTokens()) {\n\t\t\t\t\t\t\t\tvRepeatFilesDEF.add(stRepeatList.nextToken());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if ((sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Repeat_Data_is_from\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Repeat_Data_is_from[Different time periods,The same time period]\"))) {\n\t\t\t\t\t\t\tif (szvalue\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Different time periods\")) {\n\t\t\t\t\t\t\t\tballtimeDEF = true;\n\t\t\t\t\t\t\t} else if (szvalue\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"The same time period\")) {\n\t\t\t\t\t\t\t\tballtimeDEF = false;\n\t\t\t\t\t\t\t} else if (!szvalue.equals(\"\")) {\n\t\t\t\t\t\t\t\tszError += \"WARNING: '\"\n\t\t\t\t\t\t\t\t\t\t+ szvalue\n\t\t\t\t\t\t\t\t\t\t+ \"' is an invalid value for \"\n\t\t\t\t\t\t\t\t\t\t+ \"Repeat Data is from it must be either \"\n\t\t\t\t\t\t\t\t\t\t+ \"'Different time periods' or 'The same time period'\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Y-axis_Scale_Factor\")) {\n\t\t\t\t\t\t\tdYaxisDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Scale_Node_Areas_By_The_Factor\")) {\n\t\t\t\t\t\t\tdnodekDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"X-axis_Scale_Factor\")) {\n\t\t\t\t\t\t\tdXaxisDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t} else if ((sztype.equalsIgnoreCase(\"X-axis_scale\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"X-axis_scale_should_be\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"X-axis_scale[Uniform,Based on Real Time]\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"X-axis_scale_should_be[Uniform,Based on Real Time]\"))) {\n\t\t\t\t\t\t\tif (szvalue.equalsIgnoreCase(\"Uniform\")) {\n\t\t\t\t\t\t\t\tbrealXaxisDEF = false;\n\t\t\t\t\t\t\t} else if (szvalue\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Based on Real Time\")) {\n\t\t\t\t\t\t\t\tbrealXaxisDEF = true;\n\t\t\t\t\t\t\t} else if (!szvalue.equals(\"\")) {\n\t\t\t\t\t\t\t\tszError += \"WARNING: '\"\n\t\t\t\t\t\t\t\t\t\t+ szvalue\n\t\t\t\t\t\t\t\t\t\t+ \"' is an invalid value for \"\n\t\t\t\t\t\t\t\t\t\t+ \"X-axis_scale it must be either 'Uniform'\"\n\t\t\t\t\t\t\t\t\t\t+ \"or 'Based on Real Time'.\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Key_Input_X_p-val_10^-X\")) {\n\t\t\t\t\t\t\tdKeyInputXDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t} else if ((sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Key_Input_Significance_Based_On[\"\n\t\t\t\t\t\t\t\t\t\t+ \"Path Significance Conditional on Split,Path Significance Overall,Split Significance]\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Key_Input_Significance_Based_On[\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ \"Split Significance,Path Significance Conditional on Split,Path Significance Overall]\"))) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tnKeyInputTypeDEF = Integer.parseInt(szvalue);\n\t\t\t\t\t\t\t\tif ((nKeyInputTypeDEF < 0)\n\t\t\t\t\t\t\t\t\t\t|| (nKeyInputTypeDEF > 2)) {\n\t\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\t\t\t\t\tszvalue\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" is an invalid argument for Key Input Significance Based On\");\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// so code maps to input order\n\t\t\t\t\t\t\t\t\tif (nKeyInputTypeDEF == 0)\n\t\t\t\t\t\t\t\t\t\tnKeyInputTypeDEF = 1;\n\t\t\t\t\t\t\t\t\telse if (nKeyInputTypeDEF == 1)\n\t\t\t\t\t\t\t\t\t\tnKeyInputTypeDEF = 2;\n\t\t\t\t\t\t\t\t\telse if (nKeyInputTypeDEF == 2)\n\t\t\t\t\t\t\t\t\t\tnKeyInputTypeDEF = 0;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\t\t\t\t\tif (szvalue\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Split Significance\")) {\n\t\t\t\t\t\t\t\t\tnKeyInputTypeDEF = 0;\n\t\t\t\t\t\t\t\t} else if (szvalue\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Path Significance Conditional on Split\")) {\n\t\t\t\t\t\t\t\t\tnKeyInputTypeDEF = 1;\n\t\t\t\t\t\t\t\t} else if (szvalue\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Path Significance Overall\")) {\n\t\t\t\t\t\t\t\t\tnKeyInputTypeDEF = 2;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\t\t\t\t\tszvalue\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" is an invalid argument for Key_Input_Significance_Based_On\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Maximum_number_of_paths_out_of_split\")) {\n\t\t\t\t\t\t\tnumchildDEF = Integer.parseInt(szvalue);\n\t\t\t\t\t\t} else if ((sztype.equalsIgnoreCase(\"Split_Seed\"))\n\t\t\t\t\t\t\t\t|| (sztype.equalsIgnoreCase(\"Random_Seed\"))) {\n\t\t\t\t\t\t\tnSEEDDEF = Integer.parseInt(szvalue);\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Penalized_likelihood_node_penalty\")) {\n\t\t\t\t\t\t\tdNODEPENALTYDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t} else if ((sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Model_selection_framework\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Model_selection_framework[Penalized Likelihood,Train-Test]\"))) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tint ntempval;\n\t\t\t\t\t\t\t\tntempval = Integer.parseInt(szvalue);\n\t\t\t\t\t\t\t\tif ((ntempval < 0) || (ntempval > 1)) {\n\t\t\t\t\t\t\t\t\tbPENALIZEDDEF = (ninitsearchDEF == 0);\n\t\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\t\t\t\t\tszvalue\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" is an invalid argument for Model_selection_framework\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\t\t\t\t\tif (szvalue\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Penalized Likelihood\")) {\n\t\t\t\t\t\t\t\t\tbPENALIZEDDEF = true;\n\t\t\t\t\t\t\t\t} else if (szvalue\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Train-Test\")) {\n\t\t\t\t\t\t\t\t\tbPENALIZEDDEF = false;\n\t\t\t\t\t\t\t\t} else if (!szvalue.equals(\"\")) {\n\t\t\t\t\t\t\t\t\tszError += \"WARNING: '\"\n\t\t\t\t\t\t\t\t\t\t\t+ szvalue\n\t\t\t\t\t\t\t\t\t\t\t+ \"' is an invalid value for \"\n\t\t\t\t\t\t\t\t\t\t\t+ \"Model_selection_framework \"\n\t\t\t\t\t\t\t\t\t\t\t+ \"it must be either \"\n\t\t\t\t\t\t\t\t\t\t\t+ \"'Use As Is', 'Start Search From', or 'Do Not Use'\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if ((sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Delay_path_improvement\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Delay_split_score_%\"))) {\n\t\t\t\t\t\t\tdDELAYPATHDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t\tif (dDELAYPATHDEF < 0) {\n\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(szvalue\n\t\t\t\t\t\t\t\t\t\t+ \" is an invalid value for \" + sztype\n\t\t\t\t\t\t\t\t\t\t+ \" must be >= 0\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Merge_path_score_%\")) {\n\t\t\t\t\t\t\tdDMERGEPATHDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t\tif (dDMERGEPATHDEF < 0) {\n\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(szvalue\n\t\t\t\t\t\t\t\t\t\t+ \" is an invalid value for \" + sztype\n\t\t\t\t\t\t\t\t\t\t+ \" must be >= 0\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Merge_path_difference_threshold\")) {\n\t\t\t\t\t\t\tdDMERGEPATHDIFFDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t\tif (dDMERGEPATHDIFFDEF > 0) {\n\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(szvalue\n\t\t\t\t\t\t\t\t\t\t+ \" is an invalid value for \" + sztype\n\t\t\t\t\t\t\t\t\t\t+ \" must be <= 0\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Delay_split_difference_threshold\")) {\n\t\t\t\t\t\t\tdDELAYPATHDIFFDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t\tif (dDELAYPATHDIFFDEF > 0) {\n\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(szvalue\n\t\t\t\t\t\t\t\t\t\t+ \" is an invalid value for \" + sztype\n\t\t\t\t\t\t\t\t\t\t+ \" must be <= 0\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Delete_path_difference_threshold\")) {\n\t\t\t\t\t\t\tdPRUNEPATHDIFFDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t\tif (dPRUNEPATHDIFFDEF > 0) {\n\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(szvalue\n\t\t\t\t\t\t\t\t\t\t+ \" is an invalid value for \" + sztype\n\t\t\t\t\t\t\t\t\t\t+ \" must be <= 0\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Main_search_difference_threshold\")) {\n\t\t\t\t\t\t\tdMinScoreDIFFDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t\tif (dMinScoreDIFFDEF < 0) {\n\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(szvalue\n\t\t\t\t\t\t\t\t\t\t+ \" is an invalid value for \" + sztype\n\t\t\t\t\t\t\t\t\t\t+ \" must be >= 0\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if ((sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Prune_path_improvement\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Delete_path_score_%\"))) {\n\t\t\t\t\t\t\tdPRUNEPATHDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t\tif (dPRUNEPATHDEF < 0) {\n\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(szvalue\n\t\t\t\t\t\t\t\t\t\t+ \" is an invalid value for \" + sztype\n\t\t\t\t\t\t\t\t\t\t+ \" must be >= 0\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if ((sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Minimum_score_improvement\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Main_search_score_%\"))) {\n\t\t\t\t\t\t\tdMinScoreDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t\tif (dMinScoreDEF < 0) {\n\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(szvalue\n\t\t\t\t\t\t\t\t\t\t+ \" is an invalid value for \" + sztype\n\t\t\t\t\t\t\t\t\t\t+ \" must be >= 0\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if ((sztype.equalsIgnoreCase(\"Saved_Model\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Saved_Model[Use As Is/Start Search From/Do Not Use]\"))) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tninitsearchDEF = Integer.parseInt(szvalue);\n\t\t\t\t\t\t\t\tif ((ninitsearchDEF < 0)\n\t\t\t\t\t\t\t\t\t\t|| (ninitsearchDEF > 2)) {\n\t\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\t\t\t\t\tszvalue\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" is an invalid argument for Saved_Model\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\t\t\t\t\tif (szvalue.equalsIgnoreCase(\"Use As Is\")) {\n\t\t\t\t\t\t\t\t\tninitsearchDEF = 0;\n\t\t\t\t\t\t\t\t} else if (szvalue\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Start Search From\")) {\n\t\t\t\t\t\t\t\t\tninitsearchDEF = 1;\n\t\t\t\t\t\t\t\t} else if (szvalue\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Do Not Use\")) {\n\t\t\t\t\t\t\t\t\tninitsearchDEF = 2;\n\t\t\t\t\t\t\t\t} else if (!szvalue.equals(\"\")) {\n\t\t\t\t\t\t\t\t\tszError += \"WARNING: '\"\n\t\t\t\t\t\t\t\t\t\t\t+ szvalue\n\t\t\t\t\t\t\t\t\t\t\t+ \"' is an invalid value for \"\n\t\t\t\t\t\t\t\t\t\t\t+ \"Saved_Model \"\n\t\t\t\t\t\t\t\t\t\t\t+ \"it must be either \"\n\t\t\t\t\t\t\t\t\t\t\t+ \"'Use As Is', 'Start Search From', or 'Do Not Use'\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Filter_Gene_If_It_Has_No_Static_Input_Data\")) {\n\t\t\t\t\t\t\tbfilterstaticDEF = (szvalue\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"true\"));\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Maximum_Number_of_Missing_Values\")) {\n\t\t\t\t\t\t\tnMaxMissingDEF = Integer.parseInt(szvalue);\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Minimum_Absolute_Log_Ratio_Expression\")) {\n\t\t\t\t\t\t\tdMinExpressionDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Minimum_Correlation_between_Repeats\")) {\n\t\t\t\t\t\t\tdMinCorrelationRepeatsDEF = Double\n\t\t\t\t\t\t\t\t\t.parseDouble(szvalue);\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Pre-filtered_Gene_File\")) {\n\t\t\t\t\t\t\tszPrefilteredDEF = szvalue;\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Include_Biological_Process\")) {\n\t\t\t\t\t\t\tbpontoDEF = (szvalue.equalsIgnoreCase(\"true\"));\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Include_Molecular_Function\")) {\n\t\t\t\t\t\t\tbfontoDEF = (szvalue.equalsIgnoreCase(\"true\"));\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Include_Cellular_Process\")) {\n\t\t\t\t\t\t\tbcontoDEF = (szvalue.equalsIgnoreCase(\"true\"));\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Only_include_annotations_with_these_evidence_codes\")) {\n\t\t\t\t\t\t\tszevidenceDEF = szvalue;\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Only_include_annotations_with_these_taxon_IDs\")) {\n\t\t\t\t\t\t\tsztaxonDEF = szvalue;\n\t\t\t\t\t\t} else if ((sztype.equalsIgnoreCase(\"Category_ID_File\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Category_ID_Mapping_File\"))) {\n\t\t\t\t\t\t\tszcategoryIDDEF = szvalue;\n\t\t\t\t\t\t} else if ((sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"GO_Minimum_number_of_genes\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Minimum_number_of_genes\"))) {\n\t\t\t\t\t\t\tnMinGoGenesDEF = Integer.parseInt(szvalue);\n\t\t\t\t\t\t} else if (sztype.equalsIgnoreCase(\"Minimum_GO_level\")) {\n\t\t\t\t\t\t\tnMinGOLevelDEF = Integer.parseInt(szvalue);\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Minimum_Split_Percent\")) {\n\t\t\t\t\t\t\tdpercentDEF = Double.parseDouble(szvalue);\n\t\t\t\t\t\t} else if (sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Number_of_samples_for_randomized_multiple_hypothesis_correction\")) {\n\t\t\t\t\t\t\tnSamplesMultipleDEF = Integer.parseInt(szvalue);\n\t\t\t\t\t\t} else if ((sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Multiple_hypothesis_correction_method_enrichment[Bonferroni,Randomization]\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Multiple_hypothesis_correction_method[Bonferroni,Randomization]\"))) {\n\t\t\t\t\t\t\tif (szvalue.equalsIgnoreCase(\"Bonferroni\")) {\n\t\t\t\t\t\t\t\tbrandomgoDEF = false;\n\t\t\t\t\t\t\t} else if (szvalue\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Randomization\")) {\n\t\t\t\t\t\t\t\tbrandomgoDEF = true;\n\t\t\t\t\t\t\t} else if (!szvalue.equals(\"\")) {\n\t\t\t\t\t\t\t\tszError += \"WARNING: '\"\n\t\t\t\t\t\t\t\t\t\t+ szvalue\n\t\t\t\t\t\t\t\t\t\t+ \"' is an invalid value for \"\n\t\t\t\t\t\t\t\t\t\t+ \"Correction_Method it must be either 'Bonferroni'\"\n\t\t\t\t\t\t\t\t\t\t+ \"or 'Randomization'.\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sztype.equalsIgnoreCase(\"miRNA-gene_Interaction_Source\")) {\n\t\t\t\t\t\t\tmiRNAInteractionDataFile = szvalue;\n\t\t\t\t\t\t} else if (sztype.equalsIgnoreCase(\"miRNA_Expression_Data_File\")) {\n\t\t\t\t\t\t\tmiRNAExpressionDataFile = szvalue;\n\t\t\t\t\t\t} else if (sztype.equalsIgnoreCase(\"Regulator_Types_Used_For_Activity_Scoring\")) {\n\t\t\t\t\t\t\tif(szvalue.equalsIgnoreCase(\"None\")){\n\t\t\t\t\t\t\t\tcheckStatusTF = false;\n\t\t\t\t\t\t\t\tcheckStatusmiRNA = false;\n\t\t\t\t\t\t\t} else if(szvalue.equalsIgnoreCase(\"TF\")){\n\t\t\t\t\t\t\t\tcheckStatusTF = true;\n\t\t\t\t\t\t\t\tcheckStatusmiRNA = false;\n\t\t\t\t\t\t\t} else if (szvalue.equalsIgnoreCase(\"miRNA\")) {\n\t\t\t\t\t\t\t\tcheckStatusTF = false;\n\t\t\t\t\t\t\t\tcheckStatusmiRNA = true;\n\t\t\t\t\t\t\t} else if (szvalue.equalsIgnoreCase(\"Both\")) {\n\t\t\t\t\t\t\t\tcheckStatusTF = true;\n\t\t\t\t\t\t\t\tcheckStatusmiRNA = true;\n\t\t\t\t\t\t\t} else if (!szvalue.equals(\"\")){\n\t\t\t\t\t\t\t\tszError = \"WARNING: '\"\n\t\t\t\t\t\t\t\t\t+ szvalue\n\t\t\t\t\t\t\t\t\t+ \"' is an invalid value for \"\n\t\t\t\t\t\t\t\t\t+ \"Regulator_Types_Used_For_Activity_Scoring it must be either 'None', 'TF'\"\n\t\t\t\t\t\t\t\t\t+ \", 'miRNA' or 'Both'.\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sztype.equalsIgnoreCase(\"Normalize_miRNA_Data[Log normalize data,Normalize data,No normalization/add 0]\")) {\n\t\t\t\t\t\t\tif (szvalue.equalsIgnoreCase(\"Log normalize data\")) {\n\t\t\t\t\t\t\t\tmiRNATakeLog = true;\n\t\t\t\t\t\t\t\tmiRNAAddZero = false;\n\t\t\t\t\t\t\t} else if (szvalue.equalsIgnoreCase(\"Normalize data\")) {\n\t\t\t\t\t\t\t\tmiRNATakeLog = false;\n\t\t\t\t\t\t\t\tmiRNAAddZero = false;\n\t\t\t\t\t\t\t} else if (szvalue.equalsIgnoreCase(\"No normalization/add 0\")) {\n\t\t\t\t\t\t\t\tmiRNATakeLog = false;\n\t\t\t\t\t\t\t\tmiRNAAddZero = true;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\t\t\t\tszvalue+ \" is an invalid argument for Normalize_miRNA_Data\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if ((sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Repeat_miRNA_Data_Files(comma delimited list)\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Repeat_miRNA_Data_Files\"))) {\n\t\t\t\t\t\t\tmiRNARepeatFilesDEF = new Vector();\n\t\t\t\t\t\t\tStringTokenizer stRepeatList = new StringTokenizer(\n\t\t\t\t\t\t\t\t\tszvalue, \",\");\n\t\t\t\t\t\t\twhile (stRepeatList.hasMoreTokens()) {\n\t\t\t\t\t\t\t\tmiRNARepeatFilesDEF.add(stRepeatList.nextToken());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if ((sztype.equalsIgnoreCase(\"Repeat_miRNA_Data_is_from\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Repeat_miRNA_Data_is_from[Different time periods,The same time period]\"))) {\n\t\t\t\t\t\t\tif (szvalue.equalsIgnoreCase(\"Different time periods\")) {\n\t\t\t\t\t\t\t\tmiRNAalltimeDEF = true;\n\t\t\t\t\t\t\t} else if (szvalue.equalsIgnoreCase(\"The same time period\")) {\n\t\t\t\t\t\t\t\tmiRNAalltimeDEF = false;\n\t\t\t\t\t\t\t} else if (!szvalue.equals(\"\")) {\n\t\t\t\t\t\t\t\tszError += \"WARNING: '\"\n\t\t\t\t\t\t\t\t\t\t+ szvalue\n\t\t\t\t\t\t\t\t\t\t+ \"' is an invalid value for \"\n\t\t\t\t\t\t\t\t\t\t+ \"Repeat miRNA Data is from it must be either \"\n\t\t\t\t\t\t\t\t\t\t+ \"'Different time periods' or 'The same time period'\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sztype.equalsIgnoreCase(\"Filter_miRNA_With_No_Expression_Data_From_Regulators\")) {\n\t\t\t\t\t\t\tfiltermiRNAExp = (szvalue.equalsIgnoreCase(\"true\"));\n\t\t\t\t\t\t} else if (sztype.equalsIgnoreCase(\"Expression_Scaling_Weight\")) {\n\t\t\t\t\t\t\tmiRNAWeight = Double.parseDouble(szvalue);\n\t\t\t\t\t\t} else if (sztype.equalsIgnoreCase(\"Minimum_TF_Expression_After_Scaling\")) {\n\t\t\t\t\t\t\ttfWeight = Double.parseDouble(szvalue);\n\t\t\t\t\t\t} else if (sztype.equalsIgnoreCase(\"Regulator_Score_File\")) {\n\t\t\t\t\t\t\tregScoreFile = szvalue;\n\t\t\t\t\t\t} else if (sztype.equalsIgnoreCase(\"DECOD_Executable_Path\")) {\n\t\t\t\t\t\t\tdecodPath = szvalue;\n\t\t\t\t\t\t} else if (sztype.equalsIgnoreCase(\"Gene_To_Fasta_Format_file\")) {\n\t\t\t\t\t\t\tfastaFile = szvalue;\n\t\t\t\t\t\t} else if (sztype.equalsIgnoreCase(\"Active_TF_influence\")) {\n\t\t\t\t\t\t\tdProbBindingFunctional = Double\n\t\t\t\t\t\t\t\t\t.parseDouble(szvalue);\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"Setting active TF influence to \"\n\t\t\t\t\t\t\t\t\t\t\t+ dProbBindingFunctional);\n // parseDefault for proteomics panel \n } else if (sztype.equalsIgnoreCase(\"Proteomics_File\")){\n djProteFile=szvalue;\n // parseDefault for relative proteomics weight\n } else if (sztype.equalsIgnoreCase(\"Proteomics_Relative_Weight\")){\n pweight=szvalue;\n } else if ((sztype\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Repeat_Prote_Data_Files(comma delimited list)\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Repeat_Prote_Data_Files\"))) {\n\t\t\t\t\t\t\tProteRepeatFilesDEF = new Vector();\n\t\t\t\t\t\t\tStringTokenizer stRepeatList = new StringTokenizer(\n\t\t\t\t\t\t\t\t\tszvalue, \",\");\n\t\t\t\t\t\t\twhile (stRepeatList.hasMoreTokens()) {\n\t\t\t\t\t\t\t\tProteRepeatFilesDEF.add(stRepeatList.nextToken());\n\t\t\t\t\t\t\t}\n } else if ((sztype.equalsIgnoreCase(\"Repeat_Prote_Data_is_from\"))\n\t\t\t\t\t\t\t\t|| (sztype\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"Repeat_Prote_Data_is_from[Different time periods,The same time period]\"))) {\n\t\t\t\t\t\t\tif (szvalue.equalsIgnoreCase(\"Different time periods\")) {\n\t\t\t\t\t\t\t\tProtealltimeDEF = true;\n\t\t\t\t\t\t\t} else if (szvalue.equalsIgnoreCase(\"The same time period\")) {\n\t\t\t\t\t\t\t\tProtealltimeDEF = false;\n\t\t\t\t\t\t\t} else if (!szvalue.equals(\"\")) {\n\t\t\t\t\t\t\t\tszError += \"WARNING: '\"\n\t\t\t\t\t\t\t\t\t\t+ szvalue\n\t\t\t\t\t\t\t\t\t\t+ \"' is an invalid value for \"\n\t\t\t\t\t\t\t\t\t\t+ \"Repeat Prote Data is from it must be either \"\n\t\t\t\t\t\t\t\t\t\t+ \"'Different time periods' or 'The same time period'\\n\";\n\t\t\t\t\t\t\t}\n } else if (sztype.equalsIgnoreCase(\"Normalize_Prote_Data[Log normalize data,Normalize data,No normalization/add 0]\")) {\n\t\t\t\t\t\t\tif (szvalue.equalsIgnoreCase(\"Log normalize data\")) {\n\t\t\t\t\t\t\t\tproteTakeLog = true;\n\t\t\t\t\t\t\t\tproteAddZero = false;\n\t\t\t\t\t\t\t} else if (szvalue.equalsIgnoreCase(\"Normalize data\")) {\n\t\t\t\t\t\t\t\tproteTakeLog = false;\n\t\t\t\t\t\t\t\tproteAddZero = false;\n\t\t\t\t\t\t\t} else if (szvalue.equalsIgnoreCase(\"No normalization/add 0\")) {\n\t\t\t\t\t\t\t\tproteTakeLog = false;\n\t\t\t\t\t\t\t\tproteAddZero = true;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\t\t\t\tszvalue+ \" is an invalid argument for Normalize_Prote_Data\");\n\t\t\t\t\t\t\t}\n } else if (sztype.equalsIgnoreCase(\"Use Proteomics[No,TF,All]\")){\n if (szvalue.equalsIgnoreCase(\"No\")){\n bProteTF=false;\n bProteAll=false;\n } else if (szvalue.equalsIgnoreCase(\"TF\")){\n bProteTF=true;\n bProteAll=false;\n } else if (szvalue.equalsIgnoreCase(\"All\")){\n bProteAll=true;\n bProteTF=false;\n } else{\n throw new IllegalArgumentException(\n szvalue+\" is not valid\"\n );\n }\n \n } else if (sztype.equalsIgnoreCase(\"PPI File\")){\n djPPIFile=szvalue;\n \n } else if (sztype.equalsIgnoreCase(\"Epigenomic_File\")){\n // parseDefault for epigenomics panel\n djMethyFile=szvalue;\n } else if (sztype.equalsIgnoreCase(\"GTF File\")){\n djMethyGTF=szvalue;\n\t\t\t\t\t\t} else if ((sztype.charAt(0) != '#')) {\n\t\t\t\t\t\t\tszError += \"WARNING: '\" + sztype\n\t\t\t\t\t\t\t\t\t+ \"' is an unrecognized variable.\\n\";\n\t\t\t\t\t\t} \n \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t\tif (!szError.equals(\"\")) {\n\t\t\t\tthrow new IllegalArgumentException(szError);\n\t\t\t}\n\t\t} catch (FileNotFoundException ex) {\n\t\t}\n\t}",
"public void analysisAndImport(File uploadedFile)\n {\n Map<String, Map<String, String>> map = new HashMap<String, Map<String, String>>();\n\n try\n {\n String[] keyArr = null;\n String key = null;\n String strKey = null;\n String strValue = null;\n InputStream is;\n is = new FileInputStream(uploadedFile);\n BufferedReader bf = new BufferedReader(new InputStreamReader(is));\n Properties prop = new Properties();\n prop.load(bf);\n Enumeration enum1 = prop.propertyNames();\n while (enum1.hasMoreElements())\n {\n // The key profile\n strKey = (String) enum1.nextElement();\n key = strKey.substring(0, strKey.lastIndexOf('.'));\n keyArr = strKey.split(\"\\\\.\");\n // Value in the properties file\n strValue = prop.getProperty(strKey);\n Set<String> keySet = map.keySet();\n if (keySet.contains(key))\n {\n Map<String, String> valueMap = map.get(key);\n Set<String> valueKey = valueMap.keySet();\n if (!valueKey.contains(keyArr[2]))\n {\n valueMap.put(keyArr[2], strValue);\n }\n }\n else\n {\n Map<String, String> valueMap = new HashMap<String, String>();\n valueMap.put(keyArr[2], strValue);\n map.put(key, valueMap);\n }\n }\n // Data analysis\n analysisData(map);\n }\n catch (Exception e)\n {\n logger.error(\"Failed to parse the file\", e);\n }\n }",
"public void parseFile() {\n File file = new File(inputFile);\n try {\n Scanner scan = new Scanner(file);\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n line = line.replaceAll(\"\\\\s+\", \" \").trim();\n\n if (line.isEmpty()) {\n continue;\n }\n // System.out.println(line);\n String cmd = line.split(\" \")[0];\n String lineWithoutCmd = line.replaceFirst(cmd, \"\").trim();\n // System.out.println(lineWithoutCmd);\n\n // The fields following each command\n String[] fields;\n\n switch (cmd) {\n case (\"add\"):\n fields = lineWithoutCmd.split(\"<SEP>\");\n fields[0] = fields[0].trim();\n fields[1] = fields[1].trim();\n fields[2] = fields[2].trim();\n add(fields);\n break;\n case (\"delete\"):\n\n fields = split(lineWithoutCmd);\n delete(fields[0], fields[1]);\n break;\n case (\"print\"):\n if (lineWithoutCmd.equals(\"ratings\")) {\n printRatings();\n break;\n }\n fields = split(lineWithoutCmd);\n\n print(fields[0], fields[1]);\n\n break;\n case (\"list\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n list(fields[0], fields[1]);\n break;\n case (\"similar\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n similar(fields[0], fields[1]);\n break;\n default:\n break;\n }\n\n }\n\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"private void parseINI() throws IOException{\n // If the labtainersPath not set in the main.ini file, set it to the System environmenta variable LABTAINER_DIR \n labtainerPath = pathProperties.getProperty(\"labtainerPath\");\n if(labtainerPath == null || labtainerPath.isEmpty()){\n System.out.println(\"No labtainer path set yet\");\n labtainerPath = System.getenv(\"LABTAINER_DIR\");\n FileOutputStream out = new FileOutputStream(iniFile);\n writeValueToINI(out, \"labtainerPath\", System.getenv(\"LABTAINER_DIR\"));\n }\n else{\n labtainerPath.trim();\n }\n\n // If textEditorPref is empty, set it to 'vi' and write to the main.ini file\n textEditorPref = pathProperties.getProperty(\"textEditor\");\n if(textEditorPref == null || textEditorPref.isEmpty()){\n textEditorPref = \"vi\";\n FileOutputStream out = new FileOutputStream(iniFile);\n writeValueToINI(out, \"textEditor\", textEditorPref);\n }\n else{\n textEditorPref.trim();\n }\n\n updateLabtainersPath();\n\n // If a lab has been loaded before then load that lab\n String iniPrevLab = pathProperties.getProperty(\"prevLab\");\n if(iniPrevLab != null && !iniPrevLab.isEmpty()){\n File prevLab = new File(iniPrevLab);\n if(prevLab.isDirectory())\n openLab(prevLab);\n }\n }",
"@Override\n\t\t\t\t\tpublic void handle(File file)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void load (File file) throws Exception;",
"@Override\n public void loadFromString(String contents) throws InvalidConfigurationException {\n //Load data of the base yaml (keys and values).\n super.loadFromString(contents);\n\n //Parse the contents into lines.\n String[] lines = contents.split(\"\\n\");\n int currentIndex = 0;\n\n //Variables that are used to track progress.\n StringBuilder comments = new StringBuilder();\n String currentSection = \"\";\n\n while (currentIndex < lines.length) {\n //Checking if the current line is a comment.\n if (isComment(lines[currentIndex])) {\n //Adding the comment to the builder with a new line at the end.\n comments.append(lines[currentIndex]).append(\"\\n\");\n }\n\n //Checking if the current line is a valid new section.\n else if (isNewSection(lines[currentIndex])) {\n //Parsing the line into a full-path.\n currentSection = getSectionPath(this, lines[currentIndex], currentSection);\n\n //If there is a valid comment for the section.\n if (comments.length() > 1)\n //Adding the comment.\n setComment(currentSection, comments.toString().substring(0, comments.length() - 1));\n\n //Reseting the comment variable for further usage.\n comments = new StringBuilder();\n }\n\n //Skipping to the next line.\n currentIndex++;\n }\n }"
]
| [
"0.6633794",
"0.65325373",
"0.63898176",
"0.6355014",
"0.6225852",
"0.6224826",
"0.60635376",
"0.6044163",
"0.60427964",
"0.59971845",
"0.593635",
"0.5922224",
"0.59086096",
"0.58779013",
"0.58390677",
"0.5834887",
"0.58117247",
"0.5807112",
"0.57996345",
"0.57989347",
"0.5791547",
"0.57904035",
"0.576722",
"0.57541406",
"0.57036626",
"0.5696876",
"0.56814986",
"0.56735927",
"0.56687295",
"0.56666964",
"0.56438565",
"0.5638301",
"0.56232727",
"0.56215024",
"0.56207997",
"0.5617545",
"0.56160927",
"0.56051916",
"0.5597123",
"0.55663",
"0.55661803",
"0.55643874",
"0.55513155",
"0.55498",
"0.5537077",
"0.5533961",
"0.55025",
"0.54881525",
"0.5472465",
"0.54488695",
"0.5425929",
"0.54199076",
"0.53955144",
"0.53824025",
"0.53801113",
"0.5377044",
"0.5376063",
"0.53759235",
"0.5374813",
"0.5374298",
"0.53734237",
"0.53696936",
"0.53581196",
"0.535206",
"0.5345973",
"0.53456074",
"0.53442687",
"0.53388256",
"0.53309995",
"0.53281116",
"0.53211796",
"0.53047764",
"0.52979",
"0.5289101",
"0.5286502",
"0.52798474",
"0.52699065",
"0.5268776",
"0.52686256",
"0.526766",
"0.52601755",
"0.5254981",
"0.5252842",
"0.5246488",
"0.5245919",
"0.52456",
"0.5237789",
"0.52360076",
"0.5235048",
"0.5231743",
"0.5227742",
"0.5226542",
"0.52159417",
"0.52114636",
"0.5200621",
"0.51982826",
"0.5197333",
"0.51928025",
"0.5182759",
"0.5182528",
"0.51781136"
]
| 0.0 | -1 |
parse and set the command line arguments | public void processArgs(final String args[]) throws OptionsException {
OptionContainer option = null;
int quant = -1;
int qcount = 0;
boolean moreData = false;
for (int i = 0; i < args.length; i++) {
if (option == null) {
if (args[i].charAt(0) != '-')
throw new OptionsException("Unexpected value: " + args[i]);
// see what kind of argument we have
if (args[i].length() == 1)
throw new OptionsException("Illegal argument: '-'");
if (args[i].charAt(1) == '-') {
// we have a long argument
// since we don't accept inline values we can take
// everything left in the string as argument, unless
// there is a = in there...
final String tmp = args[i].substring(2);
final int pos = tmp.indexOf('=');
if (pos == -1) {
option = opts.get(tmp);
moreData = false;
} else {
option = opts.get(tmp.substring(0, pos));
// modify the option a bit so the code below
// handles the moreData correctly
args[i] = "-?" + tmp.substring(pos + 1);
moreData = true;
}
} else if (args[i].charAt(1) == 'X') {
// extra argument, same as long argument
final String tmp = args[i].substring(1);
final int pos = tmp.indexOf('=');
if (pos == -1) {
option = opts.get(tmp);
moreData = false;
} else {
option = opts.get(tmp.substring(0, pos));
// modify the option a bit so the code below
// handles the moreData correctly
args[i] = "-?" + tmp.substring(pos + 1);
moreData = true;
}
} else {
// single char argument
option = opts.get("" + args[i].charAt(1));
// is there more data left in the argument?
moreData = args[i].length() > 2 ? true : false;
}
if (option != null) {
// make sure we overwrite previously set arguments
option.resetArguments();
final int card = option.getCardinality();
if (card == CAR_ONE) {
if (moreData) {
option.addArgument(args[i].substring(2));
option = null;
} else {
quant = 1;
}
} else if (card == CAR_ZERO_ONE) {
option.setPresent();
qcount = 1;
quant = 2;
if (moreData) {
option.addArgument(args[i].substring(2));
option = null;
}
} else if (card == CAR_ZERO_MANY) {
option.setPresent();
qcount = 1;
quant = -1;
if (moreData) {
option.addArgument(args[i].substring(2));
qcount++;
}
} else if (card == CAR_ZERO) {
option.setPresent();
option = null;
}
} else {
throw new OptionsException("Unknown argument: " + args[i]);
}
} else {
// store the `value'
option.addArgument(args[i]);
if (++qcount == quant) {
quant = 0;
qcount = 0;
option = null;
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void parseCommandLine(String[] args) {\r\n\t\tif (args.length != 3)\r\n\t\t\terror(\"usage: Tester server port url-file\");\r\n\t\t\t\r\n\t\tserverName = args[0];\r\n\t\tserverPort = Integer.parseInt(args[1]);\r\n\t\turlFileName = args[2];\r\n\t}",
"protected void parseArgs(String[] args) {\n // Arguments are pretty simple, so we go with a basic switch instead of having\n // yet another dependency (e.g. commons-cli).\n for (int i = 0; i < args.length; i++) {\n int nextIdx = (i + 1);\n String arg = args[i];\n switch (arg) {\n case \"--prop-file\":\n if (++i < args.length) {\n loadPropertyFile(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--schema-name\":\n if (++i < args.length) {\n DataDefinitionUtil.assertValidName(args[i]);\n\n // Force upper-case to avoid tricky-to-catch errors related to quoting names\n this.schemaName = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--grant-to\":\n if (++i < args.length) {\n DataDefinitionUtil.assertValidName(args[i]);\n\n // Force upper-case because user names are case-insensitive\n this.grantTo = args[i].toUpperCase();\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--target\":\n if (++i < args.length) {\n DataDefinitionUtil.assertValidName(args[i]);\n List<String> targets = Arrays.asList(args[i].split(\",\"));\n for (String target : targets) {\n String tmp = target.toUpperCase();\n nextIdx++;\n if (tmp.startsWith(\"BATCH\")) {\n this.grantJavaBatchSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.javaBatchSchemaName = args[nextIdx];\n i++;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n } else if (tmp.startsWith(\"OAUTH\")){\n this.grantOauthSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.oauthSchemaName = args[nextIdx];\n i++;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n } else if (tmp.startsWith(\"DATA\")){\n this.grantFhirSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.schemaName = args[nextIdx];\n i++;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n }\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--add-tenant-key\":\n if (++i < args.length) {\n this.addKeyForTenant = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--update-proc\":\n this.updateProc = true;\n break;\n case \"--check-compatibility\":\n this.checkCompatibility = true;\n break;\n case \"--drop-admin\":\n this.dropAdmin = true;\n break;\n case \"--test-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.testTenant = true;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--tenant-key\":\n if (++i < args.length) {\n this.tenantKey = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--tenant-key-file\":\n if (++i < args.length) {\n tenantKeyFileName = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--list-tenants\":\n this.listTenants = true;\n break;\n case \"--update-schema\":\n this.updateFhirSchema = true;\n this.updateOauthSchema = true;\n this.updateJavaBatchSchema = true;\n this.dropSchema = false;\n break;\n case \"--update-schema-fhir\":\n this.updateFhirSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.schemaName = args[nextIdx];\n i++;\n } else {\n this.schemaName = DATA_SCHEMANAME;\n }\n break;\n case \"--update-schema-batch\":\n this.updateJavaBatchSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.javaBatchSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--update-schema-oauth\":\n this.updateOauthSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.oauthSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--create-schemas\":\n this.createFhirSchema = true;\n this.createOauthSchema = true;\n this.createJavaBatchSchema = true;\n break;\n case \"--create-schema-fhir\":\n this.createFhirSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.schemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--create-schema-batch\":\n this.createJavaBatchSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.javaBatchSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--create-schema-oauth\":\n this.createOauthSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.oauthSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--drop-schema\":\n this.updateFhirSchema = false;\n this.dropSchema = true;\n break;\n case \"--drop-schema-fhir\":\n this.dropFhirSchema = Boolean.TRUE;\n break;\n case \"--drop-schema-batch\":\n this.dropJavaBatchSchema = Boolean.TRUE;\n break;\n case \"--drop-schema-oauth\":\n this.dropOauthSchema = Boolean.TRUE;\n break;\n case \"--pool-size\":\n if (++i < args.length) {\n this.maxConnectionPoolSize = Integer.parseInt(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--prop\":\n if (++i < args.length) {\n // properties are given as name=value\n addProperty(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--confirm-drop\":\n this.confirmDrop = true;\n break;\n case \"--allocate-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.allocateTenant = true;\n this.dropTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--drop-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.dropTenant = true;\n this.allocateTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--freeze-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.freezeTenant = true;\n this.dropTenant = false;\n this.allocateTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--drop-detached\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.dropDetached = true;\n this.dropTenant = false;\n this.allocateTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--delete-tenant-meta\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.deleteTenantMeta = true;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--dry-run\":\n this.dryRun = Boolean.TRUE;\n break;\n case \"--db-type\":\n if (++i < args.length) {\n this.dbType = DbType.from(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n switch (dbType) {\n case DERBY:\n translator = new DerbyTranslator();\n // For some reason, embedded derby deadlocks if we use multiple threads\n maxConnectionPoolSize = 1;\n break;\n case POSTGRESQL:\n translator = new PostgreSqlTranslator();\n break;\n case DB2:\n default:\n break;\n }\n break;\n default:\n throw new IllegalArgumentException(\"Invalid argument: \" + arg);\n }\n }\n }",
"public void parseCommandLine(String[] args) {\r\n\t\t// define command line options\r\n\t\tOptions options = new Options();\r\n\t\t// refresh:\r\n\t\toptions.addOption(new Option(\r\n\t\t \"refresh\", \r\n\t\t \"Tell Argus to start refreshing all files after Minstrel startup.\"));\r\n\t\t// port:\r\n\t\tOptionBuilder.withArgName(\"port\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription( \"Run NanoHTTPD on this port instead of default 8000.\" );\r\n\t\toptions.addOption(OptionBuilder.create(\"port\"));\r\n\t\t// argus:\r\n\t\tOptionBuilder.withArgName(\"url\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription( \"Use Argus at <url> instead of default localhost:8008.\" );\r\n\t\toptions.addOption(OptionBuilder.create(\"argus\"));\r\n\t\t// vlc:\r\n\t\tOptionBuilder.withArgName(\"url\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription(\"Use VLC at <url> instead of default localhost:8080.\");\r\n\t\toptions.addOption(OptionBuilder.create(\"vlc\"));\r\n\t\t// wwwroot:\r\n\t\tOptionBuilder.withArgName(\"path\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription(\"Have NanoHTTPD serve files from <path> instead of default ./wwwroot.\");\r\n\t\toptions.addOption(OptionBuilder.create(\"wwwroot\"));\r\n\t\t\r\n\t\t// parse command line options and adjust accordingly\r\n\t\tCommandLineParser parser = new GnuParser();\r\n\t\ttry {\r\n\t\t\tCommandLine line = parser.parse(options, args);\r\n\r\n\t\t\tif (line.hasOption(\"refresh\")) {\r\n\t\t\t\trefresh = new Date();\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"port\")) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tport = Integer.parseInt( line.getOptionValue(\"port\"));\r\n\t\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t\tSystem.err.println(\"Badly formatted port number, defaulting to 8000. Reason: \" + e.getMessage());\r\n\t\t\t\t\tport = 8000;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"argus\")) {\r\n\t\t\t\targusURL = line.getOptionValue(\"argus\");\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"vlc\")) {\r\n\t\t\t\tvlcURL = line.getOptionValue(\"vlc\");\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"wwwroot\")) {\r\n\t\t\t\twwwroot = line.getOptionValue(\"wwwroot\");\r\n\t\t\t}\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.err.println(\"Command line parsing failed. Reason: \" + e.getMessage());\r\n\t\t}\r\n\t}",
"public static void parseArgs(String[] args) {\n int argc = args.length,\n i = 0;\n\n for (; i < argc; i++) {\n if (args[i].equals(\"-d\")) {\n debug = true;\n } \n else if(args[i].equals(\"-m\")) {\n try {\n maxRandInt = Integer.parseInt(args[++i]);\n } catch(NumberFormatException e) {\n System.out.println(\n \"Maximum random value must be a valid integer!\"\n );\n usage();\n }\n } else if(args[i].equals(\"-n\")) {\n try {\n iterations = Integer.parseInt(args[++i]);\n } catch(NumberFormatException e) {\n System.out.println(\n \"Iteration value must be a valid integer!\"\n );\n usage();\n }\n } else {\n filename = args[i];\n }\n }\n\n if (filename.equals(\"\")) {\n System.out.println(\"Must supply a filename!\\n\");\n usage();\n }\n \n }",
"protected void parseCommandLineArgs(String[] args) {\r\n // parse username/password;\r\n for(int i = 0; i < args.length; i++) {\r\n if(args[i].equals(\"-u\")) {\r\n username = args[i+1];\r\n }\r\n if(args[i].equals(\"-p\")) {\r\n password = args[i+1];\r\n }\r\n }\r\n \r\n }",
"protected abstract void parseArgs() throws IOException;",
"private static void parseArguments(String[] args, MiParaPipeLine p) throws IOException{\n options.addOption(\"i\", \"input-file\", true, \"FASTA input file for query sequences\");\n options.addOption(\"o\", \"output-folder\", true, \"output folder for prediction results\");\n options.addOption(\"t\", \"test\", true, \"run test example \");\n options.addOption(\"c\", \"config\", true, \"configuration file for miRPara\");\n options.addOption(\"a\", \"action\", true, \"action to perform\");\n options.addOption(\"h\", \"help \", false, \"print help\");\n\n logger.trace(\"parsing args\");\n CommandLineParser parser = new BasicParser();\n CommandLine cmd = null;\n\n \n try {\n cmd = parser.parse(options, args);\n if (cmd.hasOption(\"h\")){\n print_help();\n System.out.print(p.reportAvailableActions());\n }\n\n if (cmd.hasOption(\"t\")){ \n logger.info(\"test set to \" + cmd.getOptionValue(\"l\"));\n test = cmd.getOptionValue(\"t\").toLowerCase();\n }\n \n if (cmd.hasOption(\"i\")) {\n logger.info(\"input file set to \" + cmd.getOptionValue(\"i\"));\n p.setInputFilename(cmd.getOptionValue(\"i\"));\t\n } \n\n if (cmd.hasOption(\"o\")){\n logger.info(\"output folder is\" + cmd.getOptionValue(\"o\"));\n p.setOutputFolder(cmd.getOptionValue(\"o\"));\n }\n \n if (cmd.hasOption(\"a\")){\n logger.info(\"requested action is \" + cmd.getOptionValue(\"a\"));\n p.setAction(cmd.getOptionValue(\"a\"));\n }\n \n if (cmd.hasOption(\"c\")){\n configFile = cmd.getOptionValue(\"c\");\n logger.info(\"Configuration file is \" + configFile);\n p.setConfigFilename(configFile);\n }\n\n\n \n if(p.getConfigFilename()==null){\n throw new ParseException(\"no configuration file was specified\") ; \n }\n \n if(new File(p.getConfigFilename()).exists() == false){\n throw new IOException(\"configuration file <\" + p.getConfigFilename() + \"> does not exist\");\n } \n \n if(new File(p.getInputFilename()).exists()== false)\n {\n throw new IOException(\"input file <\" + p.getInputFilename() + \"> does not exist\");\n }\n \n if(new File(p.getOutputFolder()).exists() == false)\n {\n if (new File(p.getOutputFolder()).getParentFile().exists() == false)\n throw new IOException(\"parent file <\" + new File(p.getOutputFolder()).getParentFile() + \"> does not exist\");\n \n new File(p.getOutputFolder()).mkdir();\n logger.info(\"create results folder <\" + p.getOutputFolder() + \">\");\n }\n\n } catch (ParseException e) {\n\n logger.fatal(\"Failed to parse command line properties\", e);\n print_help();\n\n }\n\n \n }",
"private static void parseArgs (String[] args) {\n\t\tint n = args.length;\n\t\tif (n != 4) {\n\t\t\tSystem.out.println(\"Usage: BuildTranslations in dbname username password\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tinPath = args[0];\n\t\tdbname = args[1];\n\t\tusername = args[2];\n\t\tpassword = args[3];\n\t}",
"void setArguments(String arguments);",
"public static void main(String[] args)\n {\n cmdLineArgs = args;\n }",
"private static void parseCommandLine(String[] args) throws WorkbenchException {\n commandLine = new CommandLine('-');\r\n commandLine.addOptionSpec(new OptionSpec(PROPERTIES_OPTION, 1));\r\n commandLine.addOptionSpec(new OptionSpec(DEFAULT_PLUGINS, 1));\r\n commandLine.addOptionSpec(new OptionSpec(PLUG_IN_DIRECTORY_OPTION, 1));\r\n commandLine.addOptionSpec(new OptionSpec(I18N_FILE, 1));\r\n //[UT] 17.08.2005 \r\n commandLine.addOptionSpec(new OptionSpec(INITIAL_PROJECT_FILE, 1));\r\n commandLine.addOptionSpec(new OptionSpec(STATE_OPTION, 1));\r\n try {\r\n commandLine.parse(args);\r\n } catch (ParseException e) {\r\n throw new WorkbenchException(\"A problem occurred parsing the command line: \" + e.toString());\r\n }\r\n }",
"public void processArgs(String[] args){\n\t\t//look for a config file \n\t\targs = appendConfigArgs(args,\"-c\");\n\t\t\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tFile forExtraction = null;\n\t\tFile configFile = null;\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'f': forExtraction = new File(args[++i]); break;\n\t\t\t\t\tcase 'v': vcfFileFilter = args[++i]; break;\n\t\t\t\t\tcase 'b': bedFileFilter = args[++i]; break;\n\t\t\t\t\tcase 'x': appendFilter = false; break;\n\t\t\t\t\tcase 'c': configFile = new File(args[++i]); break;\n\t\t\t\t\tcase 'd': dataDir = new File(args[++i]); break;\n\t\t\t\t\tcase 'm': maxCallFreq = Double.parseDouble(args[++i]); break;\n\t\t\t\t\tcase 'o': minBedCount = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tcase 's': saveDirectory = new File(args[++i]); break;\n\t\t\t\t\tcase 'e': debug = true; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//config file? or local\n\t\tif (configLines != null && configFile != null){\n\t\t\tif (configLines[0].startsWith(\"-\") == false ) {\n\t\t\t\tHashMap<String, String> config = IO.loadFileIntoHashMapLowerCaseKey(configFile);\n\t\t\t\tif (config.containsKey(\"queryurl\")) queryURL = config.get(\"queryurl\");\n\t\t\t\tif (config.containsKey(\"host\")) host = config.get(\"host\");\n\t\t\t\tif (config.containsKey(\"realm\")) realm = config.get(\"realm\");\n\t\t\t\tif (config.containsKey(\"username\")) userName = config.get(\"username\");\n\t\t\t\tif (config.containsKey(\"password\")) password = config.get(\"password\");\n\t\t\t\tif (config.containsKey(\"maxcallfreq\")) maxCallFreq = Double.parseDouble(config.get(\"maxcallfreq\"));\n\t\t\t\tif (config.containsKey(\"vcffilefilter\")) vcfFileFilter = config.get(\"vcffilefilter\");\n\t\t\t\tif (config.containsKey(\"bedfilefilter\")) bedFileFilter = config.get(\"bedfilefilter\");\n\t\t\t}\n\t\t}\n\t\t//local search?\n\t\tif (queryURL == null){\n\t\t\tif (dataDir == null || dataDir.isDirectory()== false) {\n\t\t\t\tMisc.printErrAndExit(\"\\nProvide either a configuration file for remotely accessing a genomic query service or \"\n\t\t\t\t\t\t+ \"set the -d option to the Data directory created by the GQueryIndexer app.\\n\");;\n\t\t\t}\n\t\t}\n\n\t\tIO.pl(\"\\n\"+IO.fetchUSeqVersion()+\" Arguments:\");\n\t\tIO.pl(\"\\t-f Vcfs \"+forExtraction);\n\t\tIO.pl(\"\\t-s SaveDir \"+saveDirectory);\n\t\tIO.pl(\"\\t-v Vcf File Filter \"+vcfFileFilter);\n\t\tIO.pl(\"\\t-b Bed File Filter \"+bedFileFilter);\n\t\tIO.pl(\"\\t-m MaxCallFreq \"+maxCallFreq);\n\t\tIO.pl(\"\\t-o MinBedCount \"+minBedCount);\n\t\tIO.pl(\"\\t-x Remove failing \"+(appendFilter==false));\n\t\tIO.pl(\"\\t-e Verbose \"+debug);\n\t\tif (queryURL != null){\n\t\t\tIO.pl(\"\\tQueryUrl \"+queryURL);\n\t\t\tIO.pl(\"\\tHost \"+host);\n\t\t\tIO.pl(\"\\tRealm \"+realm);\n\t\t\tIO.pl(\"\\tUserName \"+userName);\n\t\t\t//check config params\n\t\t\tif (queryURL == null) Misc.printErrAndExit(\"\\nError: failed to find a queryUrl in the config file, e.g. queryUrl http://hci-clingen1.hci.utah.edu:8080/GQuery/\");\n\t\t\tif (queryURL.endsWith(\"/\") == false) queryURL = queryURL+\"/\";\n\t\t\tif (host == null) Misc.printErrAndExit(\"\\nError: failed to find a host in the config file, e.g. host hci-clingen1.hci.utah.edu\");\n\t\t\tif (realm == null) Misc.printErrAndExit(\"\\nError: failed to find a realm in the config file, e.g. realm QueryAPI\");\n\t\t\tif (userName == null) Misc.printErrAndExit(\"\\nError: failed to find a userName in the config file, e.g. userName FCollins\");\n\t\t\tif (password == null) Misc.printErrAndExit(\"\\nError: failed to find a password in the config file, e.g. password g0QueryAP1\");\n\n\t\t}\n\t\telse IO.pl(\"\\t-d DataDir \"+dataDir);\n\t\tIO.pl();\n\n\t\t//pull vcf files\n\t\tif (forExtraction == null || forExtraction.exists() == false) Misc.printErrAndExit(\"\\nError: please enter a path to a vcf file or directory containing such.\\n\");\n\t\tFile[][] tot = new File[3][];\n\t\ttot[0] = IO.extractFiles(forExtraction, \".vcf\");\n\t\ttot[1] = IO.extractFiles(forExtraction,\".vcf.gz\");\n\t\ttot[2] = IO.extractFiles(forExtraction,\".vcf.zip\");\n\t\tvcfFiles = IO.collapseFileArray(tot);\n\t\tif (vcfFiles == null || vcfFiles.length ==0 || vcfFiles[0].canRead() == false) Misc.printExit(\"\\nError: cannot find your xxx.vcf(.zip/.gz OK) file(s)!\\n\");\n\n\t\t//check params\n\t\tif (vcfFileFilter == null) Misc.printErrAndExit(\"\\nError: provide a vcf file filter, e.g. Hg38/Somatic/Avatar/Vcf \");\n\t\tif (bedFileFilter == null) Misc.printErrAndExit(\"\\nError: provide a bed file filter, e.g. Hg38/Somatic/Avatar/Bed \");\n\t\tif (saveDirectory == null) Misc.printErrAndExit(\"\\nError: provide a directory to save the annotated vcf files.\");\n\t\telse saveDirectory.mkdirs();\n\t\tif (saveDirectory.exists() == false) Misc.printErrAndExit(\"\\nError: could not find your save directory? \"+saveDirectory);\n\n\t\tuserQueryVcf = new UserQuery().addRegExFileName(\".vcf.gz\").addRegExDirPath(vcfFileFilter).matchVcf();\n\t\tuserQueryBed = new UserQuery().addRegExFileName(\".bed.gz\").addRegExDirPath(bedFileFilter);\n\t}",
"void parse(String[] args);",
"private void parseArgs(String[] args) throws ParseException\n {\n CommandLineParser parser = new PosixParser();\n cmd = parser.parse(options, args);\n }",
"private static void parseCommandLine(String[] args) throws Exception {\n int i;\n // iterate over all options (arguments starting with '-')\n for (i = 0; i < args.length && args[i].charAt(0) == '-'; i++) {\n switch (args[i].charAt(1)) {\n // -a type = write out annotations of type a.\n case 'a':\n if (annotTypesToWrite == null)\n annotTypesToWrite = new ArrayList();\n annotTypesToWrite.add(args[++i]);\n break;\n\n // -g gappFile = path to the saved application\n case 'g':\n gappFile = new File(args[++i]);\n break;\n\n // -e encoding = character encoding for documents\n case 'e':\n encoding = args[++i];\n break;\n\n default:\n System.err.println(\"Unrecognised option \" + args[i]);\n usage();\n }\n }\n\n // set index of the first non-option argument, which we take as the first\n // file to process\n firstFile = i;\n\n // sanity check other arguments\n if (gappFile == null) {\n System.err.println(\"No .gapp file specified\");\n usage();\n }\n }",
"public static void main( String[] args )\n {\n CommandLineParser parser = new DefaultParser();\n\n // create the Options\n OptionGroup optgrp = new OptionGroup();\n optgrp.addOption(Option.builder(\"l\")\n .longOpt(\"list\")\n .hasArg().argName(\"keyword\").optionalArg(true)\n .type(String.class)\n .desc(\"List documents scraped for keyword\")\n .build());\n optgrp.addOption( Option.builder(\"r\")\n .longOpt(\"read\")\n .hasArg().argName(\"doc_id\")\n .type(String.class)\n .desc(\"Display a specific scraped document.\")\n .build());\n optgrp.addOption( Option.builder(\"a\")\n .longOpt(\"add\")\n .type(String.class)\n .desc(\"Add keywords to scrape\")\n .build());\n optgrp.addOption( Option.builder(\"s\")\n .longOpt(\"scraper\")\n .type(String.class)\n .desc(\"Start the scraper watcher\")\n .build());\n\n\n\n Options options = new Options();\n options.addOptionGroup(optgrp);\n\n options.addOption( Option.builder(\"n\")\n .longOpt(\"search-name\").hasArg()\n .type(String.class)\n .desc(\"Name of the search task for a set of keywords\")\n .build());\n\n options.addOption( Option.builder(\"k\")\n .longOpt(\"keywords\")\n .type(String.class).hasArgs()\n .desc(\"keywords to scrape. \")\n .build());\n\n options.addOption( Option.builder(\"t\")\n .longOpt(\"scraper-threads\")\n .type(Integer.class).valueSeparator().hasArg()\n .desc(\"Number of scraper threads to use.\")\n .build());\n\n //String[] args2 = new String[]{ \"--add --search-name=\\\"some thing\\\" --keywords=kw1, kw2\" };\n // String[] args2 = new String[]{ \"--add\", \"--search-name\", \"some thing new\", \"--keywords\", \"kw3\", \"kw4\"};\n // String[] args2 = new String[]{ \"--scraper\"};\n// String[] args2 = new String[]{ \"--list\"};\n\n int exitCode = 0;\n CommandLine line;\n try {\n // parse the command line arguments\n line = parser.parse( options, args );\n }\n catch( ParseException exp ) {\n System.out.println( \"Unexpected exception:\" + exp.getMessage() );\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name=<SearchTask> --keywords=<keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n System.exit(2);\n return;\n }\n\n if( line.hasOption( \"add\" ) ) {\n // Add Search Task mode\n if(!line.hasOption( \"search-name\" ) || !line.hasOption(\"keywords\")) {\n System.out.println(\"must have search name and keywords when adding\");\n System.exit(2);\n }\n String name = line.getOptionValue( \"search-name\" );\n String[] keywords = line.getOptionValues(\"keywords\");\n System.out.println(\"Got keywords: \" + Arrays.toString(keywords) );\n\n exitCode = add(name, Arrays.asList(keywords));\n\n } else if( line.hasOption( \"list\" ) ) {\n // List Keyword mode\n DataStore ds = new DataStore();\n String keyword = line.getOptionValue( \"list\" );\n System.out.println(\"Listing with keyword = `\" + keyword + \"`\");\n if(keyword == null) {\n List<String > keywords = ds.listKeywords();\n for(String kw : keywords) {\n System.out.println(kw);\n }\n exitCode=0;\n } else {\n List<SearchResult > results = ds.listDocsForKeyword(keyword);\n for(SearchResult kw : results) {\n System.out.println(kw);\n }\n }\n ds.close();\n\n } else if( line.hasOption( \"read\" ) ) {\n // Show a specific document\n String docId = line.getOptionValue( \"read\" );\n if(docId == null) {\n System.err.println(\"read option missing doc_id parameter\");\n exitCode = 2;\n } else {\n\n DataStore ds = new DataStore();\n String result = ds.read(docId);\n\n if (result == null) {\n System.err.println(\"NOT FOUND\");\n exitCode = 1;\n } else {\n System.out.println(result);\n }\n ds.close();\n }\n }\n else if( line.hasOption( \"scraper\" ) ) {\n int numThreads = 1;\n if(line.hasOption( \"scraper-threads\")) {\n String threadString = line.getOptionValue(\"scraper-threads\");\n try {\n numThreads = Integer.parseInt(threadString);\n } catch (NumberFormatException e) {\n System.out.println(\n \"unable to parse number of threads from `\" +\n threadString + \"`\");\n }\n\n }\n // Start scraper mode\n Daemon daemon = new Daemon(numThreads);\n daemon.start();\n } else {\n // generate the help statement\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name <SearchTask> --keywords <keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n exitCode = 2;\n }\n\n\n System.exit(exitCode);\n }",
"public CommandArguments parse(String[] args) {\n ErrorSupport command = new ErrorSupport();\n command.checkLength(args);\n\n //parsing arguments\n CommandArguments arguments = new CommandArguments();\n for (int i = 0; i < args.length; i++) {\n if ((i == args.length - 1) && !args[i].equals(\"--help\")) {\n throw new IllegalArgumentException(\"Incorrect argument, --help for more information about app syntax\");\n }\n switch (args[i]) {\n case (\"--help\"):\n System.out.println(\"\\nHELP MENU \\nAvailable options and arguments: \\n \\t--latitude x \\t-enter latitude coordinate \\n \\t--longitude x\\t-enter longitude coordinate \\n \\t--sensorid x \\t-enter sensor's Id \\n \\t--apikey x \\t\\t-enter API key \\n \\t--history x \\t-enter number of hours to display from history data\\n\");\n System.exit(0);\n case (\"--latitude\"):\n i++;\n arguments.setLatitude(command.checkIsDouble(args[i]));\n break;\n case (\"--longitude\"):\n i++;\n arguments.setLongitude(command.checkIsDouble(args[i]));\n break;\n case (\"--sensorid\"):\n i++;\n arguments.setSensorId(command.checkIsInt(args[i]));\n break;\n case (\"--apikey\"):\n i++;\n arguments.setApiKey(command.checkApiKey(args[i]));\n break;\n case (\"--history\"):\n i++;\n arguments.setHistory(command.checkIsInt(args[i]));\n break;\n default:\n throw new IllegalArgumentException(\"Incorrect option, --help for more information about app syntax\");\n }\n }\n\n //checking environment API_KEY if there was no apikey in command line entered\n if (!arguments.hasApiKey() && System.getenv(\"API_KEY\") == null) {\n throw new IllegalArgumentException(\"No API Key found, check if you have entered the correct key or if there is a suitable environment variable ( API_KEY ), --help for more information about app syntax\");\n } else if (!arguments.hasApiKey()) {\n arguments.setApiKey(command.checkApiKey(System.getenv(\"API_KEY\")));\n }\n return arguments;\n }",
"public void parseArgs(final String[] args) {\n \t\tfinal CmdLineParser parser = new CmdLineParser(this);\n \n \t\ttry {\n \t\t\tparser.parseArgument(args);\n \n \t\t\tif (imageFile == null) {\n \t\t\t\tthrow new CmdLineException(parser, \"No image file given\");\n \t\t\t}\n \t\t\tif (githubUser == null) {\n \t\t\t\tthrow new CmdLineException(parser, \"No GitHub user given\");\n \t\t\t}\n \t\t}\n \t\tcatch (final CmdLineException e) {\n \t\t\tSystem.err.println(e.getMessage());\n \t\t\tSystem.err.println();\n \n \t\t\t// print usage instructions\n \t\t\tSystem.err.println(\"java -jar \" + JAR_NAME +\n \t\t\t\t\" [options...] arguments...\");\n \n \t\t\t// print the list of available options\n \t\t\tparser.printUsage(System.err);\n \t\t\tSystem.err.println();\n \n \t\t\tSystem.exit(1);\n \t\t}\n \t}",
"public static void main(String[] args){\n cmd = args;\r\n init(cmd);\r\n }",
"static public void parseArgs(String[] args) {\r\n\r\n\t\tfor (int nA = 0; nA < args.length; nA++ ) {\r\n\t\t\tif (args[nA].length() > 7 && args[nA].substring(0,7).equals( \"--lang=\")) {\r\n\t\t\t\t//set the language to the given string\r\n\t\t\t\tTranslationBundle.setLanguage( args[nA].substring(7) );\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void processCommandLineArguments(String[] args) throws ConfigurationException;",
"public void parse(String[] args) throws ParseException {\r\n\r\n options.addOption(configFileOption);\r\n CommandLineParser parser = new GnuParser();\r\n\r\n CommandLine line = parser.parse(options, args);\r\n if (line.hasOption(\"f\")) {\r\n configFile = line.getOptionValue(\"f\");\r\n }\r\n }",
"private static void handleArguments(String[] args) {\n\t\t\n\t\tif ( args.length > 0 && args[0].contains(\"--help\")) {\n\t\t\tSystem.err.println (menuString);\n\t\t\tSystem.err.println(\"Example queue name are: *\");\n\t\t\tSystem.exit(0);\n\t\t} else {\n\n\t\t\tint i = 0;\n\t\t\tString arg;\n\n\t\t\twhile (i < args.length && args[i].startsWith(\"--\")) {\n\t\t\t\targ = args[i++];\n\n\t\t\t\tif (arg.contains(ECS_HOSTS_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tecsHosts = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_HOSTS_CONFIG_ARGUMENT + \" requires hosts value(s)\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.contains(ECS_MGMT_ACCESS_KEY_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tecsMgmtAccessKey = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_MGMT_ACCESS_KEY_CONFIG_ARGUMENT + \" requires an access-key value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_MGMT_SECRET_KEY_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tecsMgmtSecretKey = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_MGMT_SECRET_KEY_CONFIG_ARGUMENT + \" requires a secret-key value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_MGMT_PORT_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tecsMgmtPort = Integer.valueOf(args[i++]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_MGMT_PORT_CONFIG_ARGUMENT + \" requires a mgmt port value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_ALT_MGMT_PORT_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tecsAlternativeMgmtPort = Integer.valueOf(args[i++]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_ALT_MGMT_PORT_CONFIG_ARGUMENT + \" requires an alternative mgmt port value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_COLLECT_MODIFIED_OBJECT_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\trelativeObjectModifiedSinceOption = true;\n\t\t\t\t\t\tobjectModifiedSinceNoOfDays = Integer.valueOf(args[i++]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_COLLECT_MODIFIED_OBJECT_CONFIG_ARGUMENT + \" requires a specified number of days value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_COLLECT_DATA_CONFIG_ARGUMENT)) {\n\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tcollectData = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_COLLECT_DATA_CONFIG_ARGUMENT + \" requires a collect data value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.contains(ELASTIC_HOSTS_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\telasticHosts = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ELASTIC_HOSTS_CONFIG_ARGUMENT + \" requires hosts value(s)\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ELASTIC_PORT_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\telasticPort = Integer.valueOf(args[i++]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ELASTIC_PORT_CONFIG_ARGUMENT + \" requires a port value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ELASTIC_CLUSTER_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\telasticCluster = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( ELASTIC_CLUSTER_CONFIG_ARGUMENT + \" requires a cluster value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_COLLECTION_DAY_SHIFT_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\trelativeDayShift = Integer.valueOf(args[i++]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_COLLECTION_DAY_SHIFT_ARGUMENT + \" requires a day shift value port value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals( ECS_INIT_INDEXES_ONLY_CONFIG_ARGUMENT)) { \n\t\t\t\t\tinitIndexesOnlyOption = true;\n\t\t\t\t} else if (arg.equals( XPACK_SECURITY_USER_ARG)) { \n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\txpackUser = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( XPACK_SECURITY_USER_ARG + \" requires a value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals( XPACK_SECURITY_USER_PASSWORD_ARG)) { \n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\txpackPassword = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( XPACK_SECURITY_USER_PASSWORD_ARG + \" requires a value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals( XPACK_SSL_KEY_ARG)) { \n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\txpackSslKey = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( XPACK_SSL_KEY_ARG + \" requires a value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals( XPACK_SSL_CERTIFICATE_ARG)) { \n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\txpackSslCertificate = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( XPACK_SSL_CERTIFICATE_ARG + \" requires a value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals( XPACK_SSL_CERTIFICATE_AUTH_ARG)) { \n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\txpackSsslCertificateAuth = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( XPACK_SSL_CERTIFICATE_AUTH_ARG + \" requires a value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_COLLECT_OBJECT_DATA_NAMESPACE_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tobjectNamespace = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_COLLECT_OBJECT_DATA_NAMESPACE_ARGUMENT + \" requires namespace\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_COLLECT_OBJECT_DATA_NAME_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tbucketName = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_COLLECT_OBJECT_DATA_NAME_ARGUMENT + \" requires bucket\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.err.println(\"Unrecognized option: \" + arg); \n\t\t\t\t\tSystem.err.println(menuString);\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t} \n\t\t\t}\n\t\t\tif (bucketName!=null) {\n\t\t\t\tif (objectNamespace==null || \"\".equals(objectNamespace)) {\n\t\t\t\t\tSystem.err.println(ECS_COLLECT_OBJECT_DATA_NAMESPACE_ARGUMENT + \" requires namespace, \" + ECS_COLLECT_OBJECT_DATA_NAME_ARGUMENT + \" requires bucket\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(initIndexesOnlyOption) {\n\t\t\t// Check hosts\n\t\t\tif(elasticHosts.isEmpty()) {\t\n\t\t\t\tSystem.err.println(\"Missing Elastic hostname use \" + ELASTIC_HOSTS_CONFIG_ARGUMENT + \n\t\t\t\t\t\t\t\t\"<host1, host2> to specify a value\" );\n\t\t\t\treturn;\n\t\t\t}\t\n\t\t} else {\n\n\t\t\t// Check hosts\n\t\t\tif(ecsHosts.isEmpty()) {\t\n\t\t\t\tSystem.err.println(\"Missing ECS hostname use \" + ECS_HOSTS_CONFIG_ARGUMENT + \n\t\t\t\t\t\t\"<host1, host2> to specify a value\" );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// management access/user key\n\t\t\tif(ecsMgmtAccessKey.isEmpty()) {\n\t\t\t\tSystem.err.println(\"Missing managment access key use\" + ECS_MGMT_ACCESS_KEY_CONFIG_ARGUMENT +\n\t\t\t\t\t\t\"<admin-username> to specify a value\" );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// management access/user key\n\t\t\tif(ecsMgmtSecretKey.isEmpty()) {\n\t\t\t\tSystem.err.println(\"Missing management secret key use \" + ECS_MGMT_SECRET_KEY_CONFIG_ARGUMENT +\n\t\t\t\t\t\t\"<admin-password> to specify a value\" );\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"protected void setupArguments(Commandline commandLine) throws BuildException {\n }",
"private void parseOptions(DataStore args) {\r\n\r\n // System.out.println(\"IN JavaWeaver.parseOptions\\n\" + args);\r\n if (args.hasValue(JavaWeaverKeys.CLEAR_OUTPUT_FOLDER)) {\r\n clearOutputFolder = args.get(JavaWeaverKeys.CLEAR_OUTPUT_FOLDER);\r\n }\r\n if (args.hasValue(JavaWeaverKeys.NO_CLASSPATH)) {\r\n noClassPath = args.get(JavaWeaverKeys.NO_CLASSPATH);\r\n }\r\n if (args.hasValue(JavaWeaverKeys.INCLUDE_DIRS)) {\r\n classPath = args.get(JavaWeaverKeys.INCLUDE_DIRS).getFiles();\r\n }\r\n if (args.hasValue(JavaWeaverKeys.OUTPUT_TYPE)) {\r\n outType = args.get(JavaWeaverKeys.OUTPUT_TYPE);\r\n }\r\n if (args.hasValue(JavaWeaverKeys.SHOW_LOG_INFO)) {\r\n loggingGear.setActive(args.get(JavaWeaverKeys.SHOW_LOG_INFO));\r\n }\r\n if (args.hasValue(JavaWeaverKeys.FORMAT)) {\r\n prettyPrint = args.get(JavaWeaverKeys.FORMAT);\r\n }\r\n\r\n if (args.hasValue(JavaWeaverKeys.REPORT)) {\r\n\r\n reportGear.setActive(args.get(JavaWeaverKeys.REPORT));\r\n }\r\n\r\n }",
"public void setArgs(String[] args) {\n this.args = args;\n }",
"public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tString useqVersion = IO.fetchUSeqVersion();\n\t\tSystem.out.println(\"\\n\"+useqVersion+\" Arguments: \"+ Misc.stringArrayToString(args, \" \") +\"\\n\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'r': bedFile = new File(args[++i]); break;\n\t\t\t\t\tcase 's': saveDirectory = new File(args[++i]); break;\n\t\t\t\t\tcase 'c': haploArgs = args[++i]; break;\n\t\t\t\t\tcase 't': numberConcurrentThreads = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//check save dir\n\t\tif (saveDirectory == null) Misc.printErrAndExit(\"\\nError: cannot find your save directory!\\n\"+saveDirectory);\n\t\tsaveDirectory.mkdirs();\n\t\tif (saveDirectory.isDirectory() == false) Misc.printErrAndExit(\"\\nError: your save directory does not appear to be a directory?\\n\");\n\n\t\t//check bed\n\t\tif (bedFile == null || bedFile.canRead() == false) Misc.printErrAndExit(\"\\nError: cannot find your bed file of regions to interrogate?\\n\"+bedFile);\n\t\t\n\t\t//check args\n\t\tif (haploArgs == null) Misc.printErrAndExit(\"\\nError: please provide a gatk haplotype caller launch cmd similar to the following where you \"\n\t\t\t\t+ \"replace the $xxx with the correct path to these resources on your system:\\n'java -Xmx4G -jar $GenomeAnalysisTK.jar -T \"\n\t\t\t\t+ \"HaplotypeCaller -stand_call_conf 5 -stand_emit_conf 5 --min_mapping_quality_score 13 -R $fasta --dbsnp $dbsnp -I $bam'\\n\");\n\t\tif (haploArgs.contains(\"~\") || haploArgs.contains(\"./\")) Misc.printErrAndExit(\"\\nError: full paths in the GATK command.\\n\"+haploArgs);\n\t\tif (haploArgs.contains(\"-o\") || haploArgs.contains(\"-L\")) Misc.printErrAndExit(\"\\nError: please don't provide a -o or -L argument to the cmd.\\n\"+haploArgs);\t\n\t\n\t\t//determine number of threads\n\t\tdouble gigaBytesAvailable = ((double)Runtime.getRuntime().maxMemory())/ 1073741824.0;\n\t\t\n\t\n\t}",
"public static void main( String args[] ) {\n\n parseInput(args);\n }",
"public\n void setProperties(String argv[])\n {\n if (argv == null)\n return;\n\n for (int i = 0; i < argv.length; i++)\n {\n try {\n load(new StringBufferInputStream(argv[i]));\n }\n catch (IOException excp) {\n System.out.println(excp);\n }\n }\n }",
"public void processArgs(String[] args){\r\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\r\n\t\tfor (int i = 0; i<args.length; i++){\r\n\t\t\tString lcArg = args[i].toLowerCase();\r\n\t\t\tMatcher mat = pat.matcher(lcArg);\r\n\t\t\tif (mat.matches()){\r\n\t\t\t\tchar test = args[i].charAt(1);\r\n\t\t\t\ttry{\r\n\t\t\t\t\tswitch (test){\r\n\t\t\t\t\tcase 'f': directory = new File(args[i+1]); i++; break;\r\n\t\t\t\t\tcase 'o': orderedFileNames = args[++i].split(\",\"); break;\r\n\t\t\t\t\tcase 'c': output = new File(args[++i]); break;\r\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\r\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e){\r\n\t\t\t\t\tSystem.out.print(\"\\nSorry, something doesn't look right with this parameter request: -\"+test);\r\n\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check to see if they entered required params\r\n\t\tif (directory==null || directory.isDirectory() == false){\r\n\t\t\tSystem.out.println(\"\\nCannot find your directory!\\n\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}",
"public ArgumentsParser(String... args) {\n this.arguments = new HashMap<>(args.length);\n this.args = Arrays.copyOf(args, args.length);\n }",
"void setup(CommandLine cmd);",
"public abstract void configure(String[] args);",
"protected void parseArgs(String[] args) throws BuildException {\n for (int i = 0; i != args.length; ++i) {\n String arg = args[i];\n boolean parsed = parseArg(arg, args, i);\n if (!parsed) {\n String message = \"Unknown option: \" + arg;\n usage(message, System.out);\n throw new BuildException(message);\n }\n }\n }",
"public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tSystem.out.println(\"\\n\"+IO.fetchUSeqVersion()+\" Arguments: \"+Misc.stringArrayToString(args, \" \")+\"\\n\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'b': bedFile = new File (args[i+1]); i++; break;\n\t\t\t\t\tcase 'm': minNumExons = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'a': requiredAnnoType = args[i+1]; i++; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: System.out.println(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (bedFile == null || bedFile.canRead() == false) Misc.printExit(\"\\nError: cannot find your bed file!\\n\");\t\n\t}",
"private static Options readArguments(String[] args) {\n\t\tOptions result = new Options();\n\t\ttry {\n\t\t\tresult.numberClients = Integer.parseInt(args[0]);\n\t\t\tresult.trafficTime = Integer.parseInt(args[args.length - 1]);\n\t\t} catch (java.lang.NumberFormatException e) {\n\t\t\tSystem.err.println(\"Error while converting to integer. Did you run the program correctly?\");\n\t\t\tSystem.err.println(\"$ tgpm <c> [-w] [-s <sid>] <s>\");\n\t\t\tSystem.exit(0);\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\tSystem.err.println(\"Program requires at least TWO arguments, number of clients and active seconds.\");\n\t\t\tSystem.err.println(\"$ tgpm <c> [-w] [-s <sid>] <s>\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\tString argsString = String.join(\" \", args);\n\n\t\tif (argsString.contains(\"-w\")) {\n\t\t\tresult.writeMode = true;\n\t\t}\n\n\t\tPattern p = Pattern.compile(\"-s ([0-9]+)\");\n\t\tMatcher m = p.matcher(argsString);\n\t\tif (m.find()) {\n\t\t\tif (args.length > 3) {\n\t\t\t\tresult.storeID = Integer.parseInt(m.group(1));\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"When single store mode is enabled, the program requires AT LEAST 4 arguments.\");\n\t\t\t\tSystem.err.println(\"$ tgpm <c> [-w] [-s <sid>] <s>\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public void setArgs(java.lang.String value) {\n this.args = value;\n }",
"public static void main(String[] args)\r\n {\r\n CommandParser parser = new CommandParser(args[0]);\r\n parser.parseFile();\r\n }",
"public CommandLine parse(String[] args ) throws ParseException\n {\n String[] cleanArgs = CleanArgument.cleanArgs( args );\n CommandLineParser parser = new DefaultParser();\n return parser.parse( options, cleanArgs );\n }",
"void parse(String[] args) throws Exception;",
"private void init(String... argNames) {\n\t\tfor (int i = 0; i < argNames.length; i++) {\n\t\t\tString name = argNames[i];\n\t\t\t\n\t\t\tString value = System.getProperty(name);\n\t\t\tif (value == null) {\n\t\t\t\tvalue = System.getenv(name);\n\t\t\t}\n\t\t\tif (value == null) {\n\t\t\t\targs.put(name, new Argument(name));\n\t\t\t\t\n\t\t\t} else { \n\t\t\t\targs.put(name, new Argument(name, value));\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\trequireMoreArgument(args);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"static Configuration parseArguments(String[] args) {\n \n // Global config\n GlobalConfiguration globalConfig = new GlobalConfiguration();\n \n // Module-specific options.\n List<ModuleSpecificProperty> moduleConfigs = new LinkedList<>();\n \n \n // For each argument...\n for (String arg : args) {\n arg = StringUtils.removeStart( arg, \"--\" );\n \n if( arg.equals(\"help\") ){\n Utils.writeHelp();\n return null;\n }\n if( arg.startsWith(\"as5.dir=\") || arg.startsWith(\"eap5.dir=\") || arg.startsWith(\"src.dir=\") ) {\n globalConfig.getAS5Config().setDir(StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"dest.dir=\") || arg.startsWith(\"eap6.dir=\") || arg.startsWith(\"dest.dir=\") || arg.startsWith(\"wfly.dir=\") ) {\n globalConfig.getAS7Config().setDir(StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"as5.profile=\") || arg.startsWith(\"eap5.profile=\") || arg.startsWith(\"src.profile=\") ) {\n globalConfig.getAS5Config().setProfileName(StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"dest.confPath=\") || arg.startsWith(\"eap6.confPath=\") || arg.startsWith(\"dest.conf.file=\") || arg.startsWith(\"wfly.confPath=\") ) {\n globalConfig.getAS7Config().setConfigPath(StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"dest.mgmt=\") || arg.startsWith(\"eap6.mgmt=\") || arg.startsWith(\"dest.mgmt=\") || arg.startsWith(\"wfly.mgmt=\") ) {\n parseMgmtConn( StringUtils.substringAfter(arg, \"=\"), globalConfig.getAS7Config() );\n continue;\n }\n\n if( arg.startsWith(\"app.path=\") ) {\n globalConfig.addDeploymentPath( StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"valid.skip\") ) {\n globalConfig.setSkipValidation(true);\n continue;\n }\n\n if( arg.equals(\"dry\") || arg.equals(\"dryRun\") || arg.equals(\"dry-run\") ) {\n globalConfig.setDryRun(true);\n continue;\n }\n \n if( arg.equals(\"test\") || arg.equals(\"testRun\") || arg.equals(\"test-run\") ) {\n globalConfig.setTestRun(true);\n continue;\n }\n \n if( arg.startsWith(\"report.dir=\") ) {\n globalConfig.setReportDir( StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"migrators.dir=\") || arg.startsWith(\"migr.dir=\") ) {\n globalConfig.setExternalMigratorsDir( StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n // User variables available in EL and Groovy in external migrators.\n if (arg.startsWith(\"userVar.\")) {\n \n // --userVar.<property.name>=<value>\n String rest = StringUtils.substringAfter(arg, \".\");\n String name = StringUtils.substringBefore(rest, \"=\");\n String value = StringUtils.substringAfter(rest, \"=\");\n \n globalConfig.getUserVars().put( name, value );\n }\n \n\n // Module-specific configurations.\n // TODO: Process by calling IMigrator instances' callback.\n if (arg.startsWith(\"conf.\")) {\n \n // --conf.<module>.<property.name>[=<value>]\n String conf = StringUtils.substringAfter(arg, \".\");\n String module = StringUtils.substringBefore(conf, \".\");\n String propName = StringUtils.substringAfter(conf, \".\");\n int pos = propName.indexOf('=');\n String value = null;\n if( pos == -1 ){\n value = propName.substring(pos+1);\n propName = propName.substring(0, pos);\n }\n \n moduleConfigs.add( new ModuleSpecificProperty(module, propName, value));\n }\n\n \n // Unrecognized.\n \n if( ! arg.contains(\"=\") ){\n // TODO: Could be AS5 or AS7 dir.\n }\n \n System.err.println(\"Warning: Unknown argument: \" + arg + \" !\");\n Utils.writeHelp();\n continue;\n }\n\n Configuration configuration = new Configuration();\n configuration.setModuleConfigs(moduleConfigs);\n configuration.setGlobalConfig(globalConfig);\n \n return configuration;\n \n }",
"private static CommandLine parseCommandLine(String[] args) {\n Option config = new Option(CONFIG, true, \"operator config\");\n Option brokerStatsZookeeper =\n new Option(BROKERSTATS_ZOOKEEPER, true, \"zookeeper for brokerstats topic\");\n Option brokerStatsTopic = new Option(BROKERSTATS_TOPIC, true, \"topic for brokerstats\");\n Option clusterZookeeper = new Option(CLUSTER_ZOOKEEPER, true, \"cluster zookeeper\");\n Option seconds = new Option(SECONDS, true, \"examined time window in seconds\");\n options.addOption(config).addOption(brokerStatsZookeeper).addOption(brokerStatsTopic)\n .addOption(clusterZookeeper).addOption(seconds);\n\n if (args.length < 6) {\n printUsageAndExit();\n }\n\n CommandLineParser parser = new DefaultParser();\n CommandLine cmd = null;\n try {\n cmd = parser.parse(options, args);\n } catch (ParseException | NumberFormatException e) {\n printUsageAndExit();\n }\n return cmd;\n }",
"public static void main(String[] args) {\n \targuments = args;\n launch(args);\n }",
"private void parseArgs(String[] object) throws IllegalArgumentException {\n Object object2;\n int n;\n int n2;\n int n3 = 0;\n boolean bl = false;\n boolean bl2 = true;\n block6 : do {\n int n4 = ((Object)object).length;\n n2 = 0;\n n = ++n3;\n if (n3 >= n4) break;\n object2 = object[n3];\n if (((String)object2).equals(\"--\")) {\n n = n3 + 1;\n break;\n }\n if (((String)object2).startsWith(\"--setuid=\")) {\n if (this.mUidSpecified) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mUidSpecified = true;\n this.mUid = Integer.parseInt(((String)object2).substring(((String)object2).indexOf(61) + 1));\n continue;\n }\n if (((String)object2).startsWith(\"--setgid=\")) {\n if (this.mGidSpecified) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mGidSpecified = true;\n this.mGid = Integer.parseInt(((String)object2).substring(((String)object2).indexOf(61) + 1));\n continue;\n }\n if (((String)object2).startsWith(\"--target-sdk-version=\")) {\n if (this.mTargetSdkVersionSpecified) throw new IllegalArgumentException(\"Duplicate target-sdk-version specified\");\n this.mTargetSdkVersionSpecified = true;\n this.mTargetSdkVersion = Integer.parseInt(((String)object2).substring(((String)object2).indexOf(61) + 1));\n continue;\n }\n if (((String)object2).equals(\"--runtime-args\")) {\n bl = true;\n continue;\n }\n if (((String)object2).startsWith(\"--runtime-flags=\")) {\n this.mRuntimeFlags = Integer.parseInt(((String)object2).substring(((String)object2).indexOf(61) + 1));\n continue;\n }\n if (((String)object2).startsWith(\"--seinfo=\")) {\n if (this.mSeInfoSpecified) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mSeInfoSpecified = true;\n this.mSeInfo = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n continue;\n }\n if (((String)object2).startsWith(\"--capabilities=\")) {\n if (this.mCapabilitiesSpecified) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mCapabilitiesSpecified = true;\n if (((String[])(object2 = ((String)object2).substring(((String)object2).indexOf(61) + 1).split(\",\", 2))).length == 1) {\n this.mPermittedCapabilities = this.mEffectiveCapabilities = Long.decode((String)object2[0]).longValue();\n continue;\n }\n this.mPermittedCapabilities = Long.decode((String)object2[0]);\n this.mEffectiveCapabilities = Long.decode((String)object2[1]);\n continue;\n }\n if (((String)object2).startsWith(\"--rlimit=\")) {\n String[] arrstring = ((String)object2).substring(((String)object2).indexOf(61) + 1).split(\",\");\n if (arrstring.length != 3) throw new IllegalArgumentException(\"--rlimit= should have 3 comma-delimited ints\");\n object2 = new int[arrstring.length];\n for (n = 0; n < arrstring.length; ++n) {\n object2[n] = Integer.parseInt(arrstring[n]);\n }\n if (this.mRLimits == null) {\n this.mRLimits = new ArrayList();\n }\n this.mRLimits.add((int[])object2);\n continue;\n }\n if (((String)object2).startsWith(\"--setgroups=\")) {\n if (this.mGids != null) throw new IllegalArgumentException(\"Duplicate arg specified\");\n object2 = ((String)object2).substring(((String)object2).indexOf(61) + 1).split(\",\");\n this.mGids = new int[((String[])object2).length];\n n = ((Object[])object2).length - 1;\n do {\n if (n < 0) continue block6;\n this.mGids[n] = Integer.parseInt((String)object2[n]);\n --n;\n } while (true);\n }\n if (((String)object2).equals(\"--invoke-with\")) {\n if (this.mInvokeWith != null) throw new IllegalArgumentException(\"Duplicate arg specified\");\n ++n3;\n try {\n this.mInvokeWith = object[n3];\n }\n catch (IndexOutOfBoundsException indexOutOfBoundsException) {\n throw new IllegalArgumentException(\"--invoke-with requires argument\");\n }\n }\n if (((String)object2).startsWith(\"--nice-name=\")) {\n if (this.mNiceName != null) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mNiceName = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n continue;\n }\n if (((String)object2).equals(\"--mount-external-default\")) {\n this.mMountExternal = 1;\n continue;\n }\n if (((String)object2).equals(\"--mount-external-read\")) {\n this.mMountExternal = 2;\n continue;\n }\n if (((String)object2).equals(\"--mount-external-write\")) {\n this.mMountExternal = 3;\n continue;\n }\n if (((String)object2).equals(\"--mount-external-full\")) {\n this.mMountExternal = 6;\n continue;\n }\n if (((String)object2).equals(\"--mount-external-installer\")) {\n this.mMountExternal = 5;\n continue;\n }\n if (((String)object2).equals(\"--mount-external-legacy\")) {\n this.mMountExternal = 4;\n continue;\n }\n if (((String)object2).equals(\"--query-abi-list\")) {\n this.mAbiListQuery = true;\n continue;\n }\n if (((String)object2).equals(\"--get-pid\")) {\n this.mPidQuery = true;\n continue;\n }\n if (((String)object2).startsWith(\"--instruction-set=\")) {\n this.mInstructionSet = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n continue;\n }\n if (((String)object2).startsWith(\"--app-data-dir=\")) {\n this.mAppDataDir = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n continue;\n }\n if (((String)object2).equals(\"--preload-app\")) {\n this.mPreloadApp = object[++n3];\n continue;\n }\n if (((String)object2).equals(\"--preload-package\")) {\n this.mPreloadPackage = object[++n3];\n this.mPreloadPackageLibs = object[++n3];\n this.mPreloadPackageLibFileName = object[++n3];\n this.mPreloadPackageCacheKey = object[++n3];\n continue;\n }\n if (((String)object2).equals(\"--preload-default\")) {\n this.mPreloadDefault = true;\n bl2 = false;\n continue;\n }\n if (((String)object2).equals(\"--start-child-zygote\")) {\n this.mStartChildZygote = true;\n continue;\n }\n if (((String)object2).equals(\"--set-api-blacklist-exemptions\")) {\n this.mApiBlacklistExemptions = (String[])Arrays.copyOfRange(object, n3 + 1, ((Object)object).length);\n n3 = ((Object)object).length;\n bl2 = false;\n continue;\n }\n if (((String)object2).startsWith(\"--hidden-api-log-sampling-rate=\")) {\n object2 = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n try {\n this.mHiddenApiAccessLogSampleRate = Integer.parseInt((String)object2);\n bl2 = false;\n }\n catch (NumberFormatException numberFormatException) {\n object = new StringBuilder();\n ((StringBuilder)object).append(\"Invalid log sampling rate: \");\n ((StringBuilder)object).append((String)object2);\n throw new IllegalArgumentException(((StringBuilder)object).toString(), numberFormatException);\n }\n }\n if (((String)object2).startsWith(\"--hidden-api-statslog-sampling-rate=\")) {\n object2 = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n try {\n this.mHiddenApiAccessStatslogSampleRate = Integer.parseInt((String)object2);\n bl2 = false;\n }\n catch (NumberFormatException numberFormatException) {\n object = new StringBuilder();\n ((StringBuilder)object).append(\"Invalid statslog sampling rate: \");\n ((StringBuilder)object).append((String)object2);\n throw new IllegalArgumentException(((StringBuilder)object).toString(), numberFormatException);\n }\n }\n if (((String)object2).startsWith(\"--package-name=\")) {\n if (this.mPackageName != null) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mPackageName = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n continue;\n }\n n = n3;\n if (!((String)object2).startsWith(\"--usap-pool-enabled=\")) break;\n this.mUsapPoolStatusSpecified = true;\n this.mUsapPoolEnabled = Boolean.parseBoolean(((String)object2).substring(((String)object2).indexOf(61) + 1));\n bl2 = false;\n } while (true);\n if (!this.mAbiListQuery && !this.mPidQuery) {\n if (this.mPreloadPackage != null) {\n if (((Object)object).length - n > 0) throw new IllegalArgumentException(\"Unexpected arguments after --preload-package.\");\n } else if (this.mPreloadApp != null) {\n if (((Object)object).length - n > 0) throw new IllegalArgumentException(\"Unexpected arguments after --preload-app.\");\n } else if (bl2) {\n if (!bl) {\n object2 = new StringBuilder();\n ((StringBuilder)object2).append(\"Unexpected argument : \");\n ((StringBuilder)object2).append((String)object[n]);\n throw new IllegalArgumentException(((StringBuilder)object2).toString());\n }\n this.mRemainingArgs = new String[((Object)object).length - n];\n object2 = this.mRemainingArgs;\n System.arraycopy(object, n, object2, 0, ((String[])object2).length);\n }\n } else if (((Object)object).length - n > 0) throw new IllegalArgumentException(\"Unexpected arguments after --query-abi-list.\");\n if (!this.mStartChildZygote) return;\n bl = false;\n object = this.mRemainingArgs;\n n = ((Object)object).length;\n n3 = n2;\n do {\n bl2 = bl;\n if (n3 >= n) break;\n if (((String)object[n3]).startsWith(\"--zygote-socket=\")) {\n bl2 = true;\n break;\n }\n ++n3;\n } while (true);\n if (!bl2) throw new IllegalArgumentException(\"--start-child-zygote specified without --zygote-socket=\");\n }",
"private static void processArguments(String[] args) throws UnknownHostException {\n //\n // PROD indicates we should use the production network\n // TEST indicates we should use the test network\n //\n if (args[0].equalsIgnoreCase(\"TEST\")) {\n testNetwork = true;\n } else if (!args[0].equalsIgnoreCase(\"PROD\")) {\n throw new IllegalArgumentException(\"Valid options are PROD and TEST\");\n }\n //\n // A bitcoin URI will be specified if we are processing a payment request\n //\n if (args.length > 1) {\n if (args[1].startsWith(\"bitcoin:\"))\n uriString = args[1];\n else\n throw new IllegalArgumentException(\"Unrecognized command line parameter\");\n }\n }",
"void setArguments(List<String> arguments);",
"public static Arguments parseArgs(String args[]) {\n // Set defaults\n ArgumentBuilder builder = new ArgumentBuilder();\n builder.setFileName(args[0]);\n builder.setMode(RunMode.LOCAL);\n builder.setExampleSize(2);\n builder.setFileTemplate(FileTemplate.JAVA_DEFAUlT);\n\n for (int i = 1; i < args.length; i++) {\n switch (args[i]) {\n case \"-h\":\n case \"-help\":\n help();\n break;\n case \"-size\":\n case \"-s\":\n builder.setExampleSize(Integer.parseInt(args[i + 1]));\n i++;\n break;\n case \"-kattis\":\n builder.setMode(RunMode.KATTIS);\n break;\n case \"-local\":\n builder.setMode(RunMode.LOCAL);\n break;\n case \"-template\":\n case \"-t\":\n builder.setFileTemplate(FileTemplate.valueOf(args[i + 1].toUpperCase()));\n i++;\n break;\n }\n }\n if (builder.getMode() == RunMode.LOCAL && builder.isExampleSizeSetManual()) {\n System.out.println(\"No example size set, using default of 2.\");\n }\n return builder.build();\n }",
"public void readArgs(String[] args)\n {\n for (int i = 0; i < args.length; i++)\n {\n open(args[i]);\n }\n setTitle();\n }",
"public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tString useqVersion = IO.fetchUSeqVersion();\n\t\tSystem.out.println(\"\\n\"+useqVersion+\" Arguments: \"+ Misc.stringArrayToString(args, \" \") +\"\\n\");\n\t\tString dmelCountString = null;\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'f': drssFile = new File(args[++i]); break;\n\t\t\t\t\tcase 'd': dmelCountString = args[++i]; break;\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//check\n\t\tif (drssFile == null || drssFile.exists() == false) Misc.printErrAndExit(\"\\nFailed to find your drss file!\");\n\t\tif (dmelCountString == null) Misc.printErrAndExit(\"\\nFailed to find your treatment control count string!\");\n\t\tint[] dmel = Num.parseInts(dmelCountString, Misc.COMMA);\n\t\ttreatmentCounts = dmel[0];\n\t\tcontrolCounts = dmel[1];\n\n\n\n\t}",
"protected void parse(CommandLine cli)\n {\n // Application ID option\n if(hasOption(cli, Opt.APPLICATION_ID, false))\n {\n applicationId = Long.parseLong(getOptionValue(cli, Opt.APPLICATION_ID));\n logOptionValue(Opt.APPLICATION_ID, applicationId);\n }\n\n // Server ID option\n if(hasOption(cli, Opt.SERVER_ID, false))\n {\n serverId = Long.parseLong(getOptionValue(cli, Opt.SERVER_ID));\n logOptionValue(Opt.SERVER_ID, serverId);\n }\n\n // Category option\n if(hasOption(cli, Opt.CATEGORY, true))\n {\n category = getOptionValue(cli, Opt.CATEGORY);\n logOptionValue(Opt.CATEGORY, category);\n }\n\n // Name option\n if(hasOption(cli, Opt.NAME, true))\n {\n name = getOptionValue(cli, Opt.NAME);\n logOptionValue(Opt.NAME, name);\n }\n }",
"protected P parse(String options, String[] args){\n HashMap cmdFlags = new HashMap();\n String flag;\n String nextFlag=null;\n StringBuffer errors=new StringBuffer();\n /**\n First go through options to see what should be in args\n */\n for(int which=0;which<options.length();which++){\n flag = \"-\"+options.substring(which,which+1);\n if(which+1<options.length()){\n nextFlag=options.substring(which+1,which+2);\n if (nextFlag.equals(\"-\")){\n cmdFlags.put(flag,nextFlag);\n } else\n if (nextFlag.equals(\"+\")){\n cmdFlags.put(flag,nextFlag);\n /*\n mark that it is required\n if found this will be overwritten by -\n */\n this.put(flag,nextFlag);\n } else\n //JDH changed to \"_\" from \";\" because too many cmdlines mess up ;\n if (nextFlag.equals(\"_\")){\n cmdFlags.put(flag,nextFlag);\n } else\n //JDH changed to \".\" from \":\" because too many cmdlines mess up ;\n if (nextFlag.equals(\".\")){\n cmdFlags.put(flag,\" \"); //JDH changed this from \":\"\n /*\n mark that it is required\n if found this will be overwritten by value\n JDH should use \" \" so it cannot be the same as a value\n */\n this.put(flag,\" \"); // mark that it is required\n } else {\n System.out.println(\"Bad symbol \"+nextFlag+\"in option string\");\n }\n which++;\n } else {\n System.out.println(\"Missing symbol in option string at \"+which);\n }\n }\n\n int arg=0;\n for(;arg<args.length;arg++){\n if (!args[arg].startsWith(\"-\")){\n break;\n }\n flag = args[arg];\n /*\n This should tell it to quit looking for flags or options\n */\n if (flag.equals(\"--\")){\n arg++;\n break;\n }\n if (!(cmdFlags.containsKey(flag))){\n errors.append(\"\\nbad flag \"+flag);\n continue;\n }\n if (((String)cmdFlags.get(flag)).equals(\"-\")){\n this.put(flag,\"-\");\n continue;\n }\n if (((String)cmdFlags.get(flag)).equals(\"+\")){\n this.put(flag,\"-\");// turns off the + because it was found\n continue;\n }\n if (!(arg+1<args.length)){\n errors.append(\"\\nMissing value for \"+flag);\n continue;\n }\n arg++;\n this.put(flag,args[arg]);\n }\n String[] params=null;\n params = new String[args.length - arg];\n\n int n=0;\n // reverse these so they come back in the right order!\n for(;arg<args.length;arg++){\n params[n++] = args[arg];\n }\n Iterator k = null;\n Map.Entry e = null;\n if (this.containsValue(\"+\")){\n // can iterate through to see which ones\n k = this.entrySet().iterator();\n while (k.hasNext()){\n if (\"+\".equals((String)(e=(Map.Entry)k.next()).getValue())){\n errors.append(\"\\nThe required flag \"+(String)e.getKey()+\" was not supplied.\");\n };\n }\n } \n /*\n Should change this to \" \" in accordance with remark above\n */\n //JDH changed to \" \" from \":\" in both spots below\n if (this.containsValue(\" \")){\n // can iterate through to see which ones\n k = this.entrySet().iterator();\n while (k.hasNext()){\n if (\" \".equals((String)(e=(Map.Entry)k.next()).getValue())){\n errors.append(\"\\nThe required option \"+(String)e.getKey()+\" was not supplied.\");\n }\n }\n }\n this.put(\" \",params);\n this.put(\"*\",errors.toString());\n return this;\n }",
"public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'a': ucscGeneTableFileAll = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 'g': ucscGeneTableFileSelect = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 'b': barDirectory = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 'r': rApp = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 's': threshold = Float.parseFloat(args[i+1]); i++; break;\n\t\t\t\t\tcase 'e': extension = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'f': extensionToSegment = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'x': bpPositionOffSetBar = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'y': bpPositionOffSetRegion = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: Misc.printExit(\"\\nError: unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//parse text\n\t\tselectName = Misc.removeExtension(ucscGeneTableFileSelect.getName());\n\n\t}",
"private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }",
"public static void main( String[] args )\n\t{\n\t\tResourceBundle rbm = ResourceBundle.getBundle( rbmFile );\n\t\tCommandLine userInput = prepCli( prepCliParser(), args, rbm );\n\t\tBerCli doesStuff = prepDoer( userInput );\n\t\tdoesStuff.setSessionConfig( prepConfig( userInput, rbm ) );\n\t\tdoesStuff.satisfySession();\n\t}",
"public static void main(String[] args) {\n\t\tset();\n\t}",
"HashMap<String, String> cliParser(String[] args){\n CmdLineParser parser = new CmdLineParser(this);\n try {\n // parse the arguments.\n parser.parseArgument(args);\n\n if (this.printHelp) {\n System.err.println(\"Usage:\");\n parser.printUsage(System.err);\n System.err.println();\n System.exit(0);\n }\n } catch( CmdLineException e ) {\n System.err.println(e.getMessage());\n System.err.println(\"java BGPCommunitiesParser.jar [options...] arguments...\");\n // print the list of available options\n parser.printUsage(System.err);\n System.err.println();\n\n // print option sample. This is useful some time\n System.err.println(\" Example: java BGPCommunitiesParser.jar\"+parser.printExample(ALL));\n System.exit(0);\n }\n\n HashMap<String, String> cliArgs = new HashMap<>();\n String[] period;\n long startTs = 0;\n long endTs = 0;\n // parse the period argument\n try{\n period = this.period.split(\",\");\n startTs = this.dateToEpoch(period[0]);\n endTs = this.dateToEpoch(period[1]);\n if (startTs >= endTs){\n System.err.println(\"The period argument is invalid. \" +\n \"The start datetime should be before the end datetime.\");\n System.exit(-1);\n }\n }\n catch (java.lang.ArrayIndexOutOfBoundsException e) {\n System.err.println(\"The period argument is invalid. \" +\n \"Please provide two comma-separated datetimes in the format YYYMMMDD.hhmm \" +\n \"(e.g. 20180124.0127,20180125.1010).\");\n System.exit(-1);\n }\n\n cliArgs.put(\"communities\", this.communities);\n cliArgs.put(\"start\", Long.toString(startTs));\n cliArgs.put(\"end\", Long.toString(endTs));\n cliArgs.put(\"collectors\", this.collectors);\n cliArgs.put(\"outdir\", this.outdir);\n cliArgs.put(\"facilities\", this.facilities);\n cliArgs.put(\"overlap\", Long.toString(this.overlap));\n return cliArgs;\n }",
"private void handleCommandLineArgs(final String[] args) {\n if (args.length == 1) {\n final String value;\n if (args[0].startsWith(ToolArguments.MAP_FOLDER)) {\n value = getValue(args[0]);\n } else {\n value = args[0];\n }\n final File mapFolder = new File(value);\n if (mapFolder.exists()) {\n mapFolderLocation = mapFolder;\n } else {\n log.info(\"Could not find directory: \" + value);\n }\n } else if (args.length > 1) {\n log.info(\"Only argument allowed is the map directory.\");\n }\n // might be set by -D\n if (mapFolderLocation == null || mapFolderLocation.length() < 1) {\n final String value = System.getProperty(ToolArguments.MAP_FOLDER);\n if (value != null && value.length() > 0) {\n final File mapFolder = new File(value);\n if (mapFolder.exists()) {\n mapFolderLocation = mapFolder;\n } else {\n log.info(\"Could not find directory: \" + value);\n }\n }\n }\n }",
"@OverridingMethodsMustInvokeSuper\n protected Tool parseArguments(String[] args) throws Exception {\n for (String arg : options(args)) {\n if (arg.equals(\"--debug\")) {\n checkArgument(verbosity == Level.DEFAULT, \"Specify one of: --quiet --verbose --debug\");\n setVerbosity(Level.DEBUG);\n } else if (arg.equals(\"--verbose\")) {\n checkArgument(verbosity == Level.DEFAULT, \"Specify one of: --quiet --verbose --debug\");\n setVerbosity(Level.VERBOSE);\n } else if (arg.equals(\"--quiet\")) {\n checkArgument(verbosity == Level.DEFAULT, \"Specify one of: --quiet --verbose --debug\");\n setVerbosity(Level.QUIET);\n } else if (arg.equals(\"--pretty\")) {\n setPretty(true);\n } else {\n return unknownOption(arg);\n }\n }\n return this;\n }",
"private String parseArgs(String args[])\n {\n String fpath = null;\n \n for (String arg : args)\n {\n if (arg.startsWith(\"-\"))\n {\n // TODO: maybe add something here.\n }\n else // expect a filename.\n {\n fpath = arg;\n }\n }\n \n return fpath;\n }",
"public static void main(String[] args) {\r\n\t\tArgumentParser parser = new ArgumentParser(args);\r\n\t\tString username = null;\r\n\t\ttry {\r\n\t\t\tusername = parser.getArgumentsFor(ArgumentRegistry.USERNAME);\r\n\t\t} catch (InvalidArgumentException e) {\r\n\t\t\tArgumentParser.doTooFewArguments(\"Username argument cannot be null.\");\r\n\t\t}\r\n\t\tnew TrackObj(username);\r\n\t}",
"public static void main(String[] args) {\n OptionParser parser = new OptionParser();\n parser.accepts(\"myProp\").withRequiredArg();\n OptionSet options = parser.parse(args);\n\n boolean myProp = options.hasArgument(\"myProp\");\n System.out.println(myProp);\n Object myProp1 = options.valueOf(\"myProp\");\n System.out.println(myProp1);\n }",
"@Override\n public void setArgs(String[] args) {\n this.args = args.clone();\n }",
"@Override\n public void setArgs(String[] args) {\n this.args = args.clone();\n }",
"private void processArgs(String[] args) throws MalformedURLException, JAXBException, IOException, URISyntaxException, Exception {\n Options options = cli.getOptions(); \n options.addOption(\"collection\", true, \"Data Collection that this Fulfillment request applies to. Defaults to 'default'.\");\n Option idOpt = new Option(\"result_id\", true, \"The result_id being requested.\");\n idOpt.setRequired(true);\n options.addOption(idOpt);\n options.addOption(\"result_part_number\", true, \"The part number being requested. Defaults to '1'.\");\n \n cli.parse(args);\n CommandLine cmd = cli.getCmd();\n\n // Handle default values.\n String collection = cmd.hasOption(\"collection\") ? cmd.getOptionValue(\"collection\") : \"default\";\n int part = cmd.hasOption(\"result_part_number\") ? Integer.parseInt(cmd.getOptionValue(\"result_part_number\")) : 1;\n \n taxiiClient = generateClient(cmd);\n \n // Prepare the message to send.\n PollFulfillment request = factory.createPollFulfillment()\n .withMessageId(MessageHelper.generateMessageId())\n .withCollectionName(collection)\n .withResultId(cmd.getOptionValue(\"result_id\"))\n .withResultPartNumber(BigInteger.valueOf(part)); \n\n doCall(cmd, request);\n \n }",
"private static void parseCommandLine(String[] command) {\r\n\t\tint i = 0;\r\n\t\t\r\n\t\twhile (i < command.length) {\r\n\t\t\tif (command[i].equals(\"-f\")) { // input file\r\n\t\t\t\tdataFileName = command[i+1];\r\n\t\t\t\ti += 2;\r\n\t\t\t}\r\n\t\t\telse if (command[i].equals(\"-s\")) { // data split\r\n\t\t\t\tif (command[i+1].equals(\"simple\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.SIMPLE_SPLIT;\r\n\t\t\t\t\ttestRatio = Double.parseDouble(command[i+2]);\r\n\t\t\t\t}\r\n\t\t\t\telse if (command[i+1].equals(\"pred\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.PREDEFINED_SPLIT;\r\n\t\t\t\t\tsplitFileName = command[i+2].trim();\r\n\t\t\t\t}\r\n\t\t\t\telse if (command[i+1].equals(\"kcv\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.K_FOLD_CROSS_VALIDATION;\r\n\t\t\t\t\tfoldCount = Integer.parseInt(command[i+2]);\r\n\t\t\t\t}\r\n\t\t\t\telse if (command[i+1].equals(\"rank\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.RANK_EXP_SPLIT;\r\n\t\t\t\t\tuserTrainCount = Integer.parseInt(command[i+2]);\r\n\t\t\t\t\tminTestCount = 10;\r\n\t\t\t\t}\r\n\t\t\t\ti += 3;\r\n\t\t\t}\r\n\t\t\telse if (command[i].equals(\"-a\")) { // algorithm\r\n\t\t\t\trunAllAlgorithms = false;\r\n\t\t\t\talgorithmCode = command[i+1];\r\n\t\t\t\t\r\n\t\t\t\t// parameters for the algorithm:\r\n\t\t\t\tint j = 0;\r\n\t\t\t\twhile (command.length > i+2+j && !command[i+2+j].startsWith(\"-\")) {\r\n\t\t\t\t\tj++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\talgorithmParameters = new String[j];\r\n\t\t\t\tSystem.arraycopy(command, i+2, algorithmParameters, 0, j);\r\n\t\t\t\t\r\n\t\t\t\ti += (j + 2);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void main(String[] args) throws IOException{\r\n\t\tparseOption(args);\r\n\t\trun(args);\r\n\t}",
"public void analyseArguments(String[] args) throws ArgumentsException {\n \t\t\n for (int i=0;i<args.length;i++){ \n \n \n if (args[i].matches(\"-s\")){\n affichage = true;\n }\n else if (args[i].matches(\"-seed\")) {\n aleatoireAvecGerme = true;\n i++; \n \t// traiter la valeur associee\n try { \n seed =new Integer(args[i]);\n \n }\n catch (Exception e) {\n throw new ArgumentsException(\"Valeur du parametre -seed invalide :\" + args[i]);\n } \t\t\n }\n \n else if (args[i].matches(\"-mess\")){\n i++; \n \t// traiter la valeur associee\n messageString = args[i];\n if (args[i].matches(\"[0,1]{7,}\")) {\n messageAleatoire = false;\n nbBitsMess = args[i].length();\n \n } \n else if (args[i].matches(\"[0-9]{1,6}\")) {\n messageAleatoire = true;\n nbBitsMess = new Integer(args[i]);\n if (nbBitsMess < 1) \n throw new ArgumentsException (\"Valeur du parametre -mess invalide : \" + nbBitsMess);\n }\n else \n throw new ArgumentsException(\"Valeur du parametre -mess invalide : \" + args[i]);\n }\n \n else throw new ArgumentsException(\"Option invalide :\"+ args[i]);\n \n }\n \n }",
"@Test\n public void correctArgumentsReturnsArguments() {\n String projectPath = \"/pathI/\";\n String resultPath = \"/pathO/\";\n String apkPath = apkFile.getAbsolutePath();\n String filtersPath = filterFile.getAbsolutePath();\n String[] inputArgs = new String[] {\"-i\", projectPath, \"-o\", resultPath, \n \"-a\", apkPath, \"-f\", filtersPath};\n ArgumentReader sut = new ArgumentReader(inputArgs);\n\n Arguments args = sut.read();\n\n assertThat(args, notNullValue());\n assertThat(args.getProjectPath(), equalTo(projectPath));\n assertThat(args.getResultPath(), equalTo(resultPath));\n assertThat(args.getApkFilePath(), equalTo(apkPath));\n assertThat(args.getFiltersPath(), equalTo(filtersPath));\n }",
"@Before public void initParser() {\n\t\tparser = new CliParserImpl(\"-\", \"--\");\n\t}",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setArgs(java.lang.String value) {\n validate(fields()[3], value);\n this.args = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"private void cli (String[] args)\n {\n if (args.length != 2) {\n System.out.println(\"Usage: <analyzer> input-file output-file\");\n return;\n }\n dataFilename = args[1];\n super.cli(args[0], this);\n }",
"private void parseCommandLine(final String[] args) {\n if (args.length == 0) {\r\n System.out.println(usage);\r\n System.exit(1);\r\n }\r\n // One parameter (Run Code Metrics without Code Churn)\r\n else if (args.length == 1) {\r\n newFile = new File(args[0]);\r\n\r\n if (newFile.isDirectory()) {\r\n // One directory\r\n newFiles.parseSrcDir(newFile);\r\n } else if (newFile.isFile()) {\r\n // One file\r\n newFiles.addSrcFile(newFile);\r\n } else {\r\n System.out.println(usage);\r\n System.exit(1);\r\n }\r\n }\r\n // Two parameters calculate all Code Metrics\r\n else if (args.length == 2) {\r\n oldFile = new File(args[0]);\r\n newFile = new File(args[1]);\r\n calculateCodeChurn = true;\r\n\r\n if (oldFile.isDirectory() && newFile.isDirectory()) {\r\n // Two directories\r\n newFiles.parseSrcDir(newFile);\r\n oldFiles.parseSrcDir(oldFile);\r\n newFiles.setPath(newFile.getAbsolutePath());\r\n oldFiles.setPath(oldFile.getAbsolutePath());\r\n } else if (oldFile.isFile() && newFile.isFile()) {\r\n // Two files\r\n oldFiles.addSrcFile(oldFile);\r\n newFiles.addSrcFile(newFile);\r\n } else {\r\n System.out.println(usage);\r\n System.exit(1);\r\n }\r\n }\r\n }",
"public void processArguments(String[] _args) {\r\n\t\tboolean stateRead = false;\r\n\t\tif (_args != null && _args.length > 0) {\r\n\t\t\tfor (int i = 0; i < _args.length; i++) {\r\n\t\t\t\tif (_args[i].toLowerCase().endsWith(\".xml\")) {\r\n\t\t\t\t\tstateRead = readState(resetFile = _args[i]);\r\n\t\t\t\t} else if (_args[i].equals(\"-_initialState\")) {\r\n\t\t\t\t\tstateRead = readState(resetFile = _args[++i]);\r\n\t\t\t\t} else if (_args[i].equals(\"-_noDescription\")) {\r\n\t\t\t\t\tshowDescriptionOnStart = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public int parseArgs(String[] args, int i) {\r\n for (; i<args.length; ++i) {\r\n if (args[i].equals(\"-omitDeclaration\")) {\r\n setOmitDeclaration(true);\r\n }\r\n else if (args[i].equals(\"-omitEncoding\")) {\r\n setOmitEncoding(true);\r\n }\r\n else if (args[i].equals(\"-indent\")) {\r\n setIndent(args[++i]);\r\n }\r\n else if (args[i].startsWith(\"-expandEmpty\")) {\r\n setExpandEmptyElements(true);\r\n }\r\n else if (args[i].equals(\"-encoding\")) {\r\n setEncoding(args[++i]);\r\n }\r\n else if (args[i].equals(\"-newlines\")) {\r\n setNewlines(true);\r\n }\r\n else if (args[i].equals(\"-lineSeparator\")) {\r\n setLineSeparator(args[++i]);\r\n }\r\n else if (args[i].equals(\"-trimAllWhite\")) {\r\n setTrimAllWhite(true);\r\n }\r\n else if (args[i].equals(\"-textTrim\")) {\r\n setTextTrim(true);\r\n }\r\n else if (args[i].equals(\"-textNormalize\")) {\r\n setTextNormalize(true);\r\n }\r\n else {\r\n return i;\r\n }\r\n }\r\n return i;\r\n }",
"protected void parseArgs(String args[]) throws IllegalArgumentException, NumberFormatException\n\t{\n\t\tif(args.length != 1)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(this.getClass().getName()+\n\t\t\t\t\" <temperature (degrees C)>\");\n\t\t}\n\t\ttemperature = Double.parseDouble(args[0]);\n\t}",
"private static JSAP prepCmdLineParser()\n throws Exception {\n final JSAP jsap = new JSAP();\n\n final FlaggedOption site_xml = new FlaggedOption(\"hbase_site\")\n .setStringParser(JSAP.STRING_PARSER)\n .setDefault(\"/etc/hbase/conf/hbase-site.xml\")\n .setRequired(true)\n .setShortFlag('c')\n .setLongFlag(JSAP.NO_LONGFLAG);\n site_xml.setHelp(\"Path to hbase-site.xml\");\n jsap.registerParameter(site_xml);\n\n final FlaggedOption jmxremote_password = new FlaggedOption(\"jmxremote_password\")\n .setStringParser(JSAP.STRING_PARSER)\n .setDefault(\"/etc/hbase/conf/jmxremote.password\")\n .setRequired(true)\n .setShortFlag('j')\n .setLongFlag(JSAP.NO_LONGFLAG);\n jmxremote_password.setHelp(\"Path to jmxremote.password.\");\n jsap.registerParameter(jmxremote_password);\n\n final FlaggedOption throttleFactor = new FlaggedOption(\"throttleFactor\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"1\")\n .setRequired(false)\n .setShortFlag('t')\n .setLongFlag(JSAP.NO_LONGFLAG);\n throttleFactor.setHelp(\"Throttle factor to limit the compaction queue. The default (1) limits it to num threads / 1\");\n jsap.registerParameter(throttleFactor);\n\n final FlaggedOption num_cycles = new FlaggedOption(\"numCycles\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"1\")\n .setRequired(false)\n .setShortFlag('n')\n .setLongFlag(JSAP.NO_LONGFLAG);\n num_cycles.setHelp(\"Number of iterations to run. The default is 1. Set to 0 to run forever.\");\n jsap.registerParameter(num_cycles);\n\n final FlaggedOption pauseInterval = new FlaggedOption(\"pauseInterval\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"30000\")\n .setRequired(false)\n .setShortFlag('p')\n .setLongFlag(JSAP.NO_LONGFLAG);\n pauseInterval.setHelp(\"Time (in milliseconds) to pause between compactions.\");\n jsap.registerParameter(pauseInterval);\n\n final FlaggedOption waitInterval = new FlaggedOption(\"waitInterval\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"60000\")\n .setRequired(false)\n .setShortFlag('w')\n .setLongFlag(JSAP.NO_LONGFLAG);\n waitInterval.setHelp(\"Time (in milliseconds) to wait between \" +\n \"time (are we there yet?) checks.\");\n jsap.registerParameter(waitInterval);\n\n DateStringParser date_parser = DateStringParser.getParser();\n date_parser.setProperty(\"format\", \"HH:mm\");\n\n final FlaggedOption startTime = new FlaggedOption(\"startTime\")\n .setStringParser(date_parser)\n .setDefault(\"01:00\")\n .setRequired(true)\n .setShortFlag('s')\n .setLongFlag(JSAP.NO_LONGFLAG);\n startTime.setHelp(\"Time to start compactions.\");\n jsap.registerParameter(startTime);\n\n final FlaggedOption endTime = new FlaggedOption(\"endTime\")\n .setStringParser(date_parser)\n .setDefault(\"07:00\")\n .setRequired(true)\n .setShortFlag('e')\n .setLongFlag(JSAP.NO_LONGFLAG);\n endTime.setHelp(\"Time to stop compactions.\");\n jsap.registerParameter(endTime);\n\n final FlaggedOption dryRun = new FlaggedOption(\"dryRun\")\n .setStringParser(JSAP.BOOLEAN_PARSER)\n .setDefault(\"false\")\n .setRequired(false)\n .setShortFlag('d')\n .setLongFlag(JSAP.NO_LONGFLAG);\n dryRun.setHelp(\"Don't actually do any compactions or splits.\");\n jsap.registerParameter(dryRun);\n\n final FlaggedOption maxSplitSize = new FlaggedOption(\"maxSplitSize_in_MB\")\n .setStringParser(JSAP.LONG_PARSER)\n .setDefault(\"4096\")\n .setRequired(false)\n .setShortFlag('m')\n .setLongFlag(JSAP.NO_LONGFLAG);\n maxSplitSize.setHelp(\"Maximum size for store files (in MB) at which a region is split.\");\n jsap.registerParameter(maxSplitSize);\n\n final FlaggedOption splitsEnabled = new FlaggedOption(\"splitsEnabled\")\n .setStringParser(JSAP.BOOLEAN_PARSER)\n .setDefault(\"false\")\n .setRequired(false)\n .setShortFlag('h')\n .setLongFlag(JSAP.NO_LONGFLAG);\n splitsEnabled.setHelp(\"Do splits (default split size will be 256MB unless specified).\");\n jsap.registerParameter(splitsEnabled);\n\n final FlaggedOption table_names = new FlaggedOption(\"tableNames\")\n .setStringParser(JSAP.STRING_PARSER)\n .setRequired(false)\n .setShortFlag(JSAP.NO_SHORTFLAG)\n .setLongFlag(\"tableNames\")\n .setList(true)\n .setListSeparator(',');\n table_names.setHelp(\"Specific table names to check against (default is all)\");\n jsap.registerParameter(table_names);\n\n final FlaggedOption files_keep = new FlaggedOption(\"filesKeep\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setRequired(false)\n .setShortFlag('f')\n .setLongFlag(\"filesKeep\")\n .setDefault(\"5\");\n files_keep.setHelp(\"Number of storefiles to look for before compacting (default is 5)\");\n jsap.registerParameter(files_keep);\n\n\n return jsap;\n }",
"private void setOptions() {\n cliOptions = new Options();\n cliOptions.addOption(Option.builder(\"p\")\n .required(false)\n .hasArg()\n .desc(\"Paramaters file\")\n .type(String.class)\n .build());\n cliOptions.addOption(Option.builder(\"P\")\n .required(false)\n .hasArg()\n .desc(\"Overwrite of one or more parameters provided by file.\")\n .type(String.class)\n .hasArgs()\n .build());\n cliOptions.addOption(Option.builder(\"H\")\n .required(false)\n .desc(\"Create a parameter file model on the classpath.\")\n .type(String.class)\n .build());\n }",
"public static void parseArgs(String[] args) throws ConsolePreferencesException {\n\n\t\ttry{\n\t\t\t\n\t\t\tmap = new HashMap<String, String>();\n\t\t\t\n\t\t\tfor (int i = 0; i < args.length; i++) {\n\n\t\t\t\tif (args[i].equals(\"--input\")) {\n\t\t\t\t\tmap.put(INPUT_PATH, args[i + 1]);\n\t\t\t\t}\n\t\t\t\tif (args[i].equals(\"--output\")) {\n\t\t\t\t\tmap.put(OUTPUT_PATH, args[i + 1]);\n\t\t\t\t}\n\t\t\t\tif (args[i].equals(\"--preferences\")) {\n\t\t\t\t\tmap.put(PREFERENCES_PATH, args[i + 1]);\n\t\t\t\t\tp = new Properties();\n\t\t\t\t\tp.load(new FileInputStream(args[i + 1]));\n\t\t\t\t}\n\t\t\t\tif (args[i].equals(\"--sign\")) {\n\t\t\t\t\tmap.put(ACTION, ACTION_SIGN);\n\t\t\t\t}\n\t\t\t\tif (args[i].equals(\"--validate\")) {\n\t\t\t\t\tmap.put(ACTION, ACTION_VALIDATE);\n\t\t\t\t}\n\t\t\t\tif (args[i].equals(\"--xades\")) {\n\t\t\t\t\tmap.put(TYPE, TYPE_XADES);\n\t\t\t\t}\n\t\t\t\tif (args[i].equals(\"--pdf\")) {\n\t\t\t\t\tmap.put(TYPE, TYPE_PDF);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tthrow new ConsolePreferencesException(e);\n\t\t}\n\t}",
"public static void main( String[] args ) {\n \tclArgs = new CommandLineArgs();\n \tJCommander jc = new JCommander(clArgs);\n \tfinal IDefaultProvider DEFAULT_PROVIDER = new DefaultCommandLineArgsProvider();\n \t\n \t// Set provider for default values of command line arguments \n \tjc.setDefaultProvider(DEFAULT_PROVIDER);\n \tjc.setColumnSize(100);\n \t\n \ttry {\n \t\t// Try to parse the arguments\n \t\tjc.parse(args);\n \t} catch (ParameterException e) {\n \t\t// Print error message, jc.usage() is called automatically\n \t\tLOG.error(\"{}. Refer to the available options and their explanation below.\", e.getMessage());\n \t}\n \t\n \tif (clArgs.preprocess) {\n \t\t// Go into the preprocessing phase\n \t\tpreprocess();\n \t}\n \telse if (clArgs.spDetection) {\n \t\t// Go into the detection of stay points\n \t\tdetectStayPoints();\n \t}\n \telse if (clArgs.clustering) {\n \t\t// Go into the clustering task\n \t\tclustering();\n \t}\n \telse if (clArgs.buildFramework) {\n \t\t// Create shared framework based on clustering results\n \t\tbuildFramework();\n \t}\n \telse if (clArgs.buildUserGraphs) {\n \t\t// Create hierarchical graph for each user\n \t\tbuildHierarchicalGraphs();\n \t}\n \telse if (clArgs.calcSimilarity) {\n \t\t// Calculate spatial similarity between users\n \t\tcalculateSimilarity();\n \t}\n \telse if (clArgs.evaluation && !clArgs.automation) {\n \t\t// Evaluation only works with a run of similarity measurement beforehand\n \t\tLOG.info(\"The evaluation can only be performed in connection with the similarity measurement. Run this program with the command line switch {} or {} to get more information on how to run the similarity measurement.\",\n \t\t\t\tCommandLineArgs.HELP, CommandLineArgs.HELP_LONG);\n \t\treturn;\n \t}\n \telse if (clArgs.automation) {\n \t\tif (clArgs.evaluation) {\n \t\t\t// Start the automation\n \t\t\tautomate();\n \t\t} else {\n \t\t\t// The automation task needs the evaluation switch\n \t\tLOG.info(\"The automation requires the evaluation. The evaluation can be enabled with the {} or {} command line switch. Run this program with the command line switch {} or {} to get more information on how to run the automation.\",\n \t\t\t\tnew Object[] { CommandLineArgs.EVALUATION, CommandLineArgs.EVALUATION_LONG, CommandLineArgs.HELP, CommandLineArgs.HELP_LONG });\n \t\t\n \t\t// Ask the user if the evaluation should be enabled and the automation should run\n \t System.out.print(\"Do you want the system to enable the evaluation (y/n)? \");\n\n \t // Open standard input stream\n \t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \t\t\n \t\tString runAutomationWithEvaluation = null;\n \t\ttry {\n \t\t\trunAutomationWithEvaluation = br.readLine();\n \t\t} catch (IOException ioe) {\n \t\t\tLOG.error(\"An error occurred while reading your input: {}\", ioe);\n \t\t}\n \t\t\n \t\t// User decided to start automation with evaluation\n \t\tif (runAutomationWithEvaluation.equals(\"y\") || runAutomationWithEvaluation.equals(\"Y\")) {\n \t\t\tLOG.debug(\"The evaluation is enabled by the system. Starting automation task.\");\n \t\t\tautomate();\n \t\t}\n \t\t// User decided to end the program\n \t\telse {\n \t\t\tLOG.debug(\"Automation aborted by the user.\");\n \t\t\treturn;\n \t\t}\n \t\t}\n \t}\n \telse {\n \t\t// Print a help text\n \t\tjc.usage();\n \t}\n }",
"public static void main(String[] args)\n/* */ {\n/* 214 */ DisabledPreferencesFactory.install();\n/* 215 */ String dataFilename = null;\n/* 216 */ String parserFilename = null;\n/* 217 */ ParserPanel parserPanel = new ParserPanel();\n/* 218 */ if (args.length > 0) {\n/* 219 */ if (args[0].equals(\"-h\")) {\n/* 220 */ System.out.println(\"Usage: java edu.stanford.nlp.parser.ui.ParserPanel [parserfilename] [textFilename]\");\n/* */ } else {\n/* 222 */ parserFilename = args[0];\n/* 223 */ if (args.length > 1) {\n/* 224 */ dataFilename = args[1];\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* 229 */ Parser parser = new Parser(parserFilename, dataFilename);\n/* 230 */ parser.setVisible(true);\n/* */ }",
"public static void main(String[] args)\n {\n // form option String if there are arguments\n Option io = Option.GetOptonByArgs(args);\n // define the system option flag & argument\n norm normObj = new norm();\n Out out = new Out();\n // execute command according to option & argument\n if(SystemOption.CheckSyntax(io, normObj.GetOption(), false, true) == true)\n {\n // decode input option to form options\n normObj.ExecuteCommands(io, normObj.GetOption(), out);\n // get config file from environment variable\n normObj.GetConfig();\n // Init vars by config\n normObj.InitByConfig(normObj, out);\n }\n else\n {\n NormHelp.NormHelp(normObj.GetOutWriter(), \n normObj.GetFileOutput(), out);\n }\n // close files & database\n normObj.Close();\n }",
"private void processArgs(String[] args)\n\t{\n\t\tboolean verbose = _verbose.getMatched();\n\n\t\t// disable console echo\n\t\t_writer.println(\"@echo off\");\n\n\t\tfor(int i = 0; i < args.length; ++i)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// try and expand any wildcards not handled by DOS/Windows\n\t\t\t\tString[] xargs = expandArg(args[i]);\n\n\t\t\t\tfor(int j = 0; j < xargs.length; ++j)\n\t\t\t\t{\n\t\t\t\t\tif(verbose)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.err.println(Strings.format(\"fProcessArg\", new Object[] { xargs[j] }));\n\t\t\t\t\t}\n\n\t\t\t\t\tFile pc = new File(xargs[j]);\n\t\t\t\t\t_writer.print(\"set CLASSPATH=%CLASSPATH%;\");\n\t\t\t\t\t_writer.println(pc.getCanonicalPath());\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tSystem.err.println(Strings.format(\"fGeneralError\", new Object[] { e.getMessage() }));\n\t\t\t\t\n\t\t\t\tif(verbose)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args){\n\t\tConfigReader.read(args[0]);\n\t\tConfigReader.printValues();\n\t}",
"@Override\n protected String[] ParseCmdLine(final String[] args) {\n\n final CmdLineParser clp = new CmdLineParser();\n final OptionalFlag optHelp = new OptionalFlag(\n clp, \"h?\", \"help\", \"help mode\\nprint this usage information and exit\");\n optHelp.forHelpUsage();\n final OptionalFlag optForce =\n new OptionalFlag(clp, \"f\", \"force\", \"force overwrite\");\n final OptionalFlag optDelete =\n new OptionalFlag(clp, \"d\", \"delete\", \"delete the table content first\");\n final OptionalFlag optAll = new OptionalFlag(\n clp, \"a\", \"all\",\n \"import all and synchronize changes in the document back to the datasource\");\n final OptionalFlag optSync = new OptionalFlag(\n clp, \"\", \"sync\",\n \"synchronize changes in the document back to the datasource\");\n final OptionalArgumentInteger optCommitCount =\n new OptionalArgumentInteger(clp, \"n\", \"commitcount\", \"commit count\");\n\n clp.setArgumentDescription(\n \"[[sourcefile [destinationfile]]\\n[sourcefile... targetdirectory]]\", -1,\n -1, null);\n final String[] argv = clp.getOptions(args);\n\n force = optForce.getValue(false);\n doDelete = optDelete.getValue(false);\n doSync = optAll.getValue(false) || optSync.getValue(false);\n doImport = optAll.getValue(false) || !optSync.getValue(false);\n commitCount = optCommitCount.getValue(0);\n\n return argv;\n }",
"void setJvmArguments(List<String> arguments);",
"private boolean parseArguments(final String[] args) {\r\n final Args arg = new Args(args);\r\n boolean ok = true;\r\n try {\r\n while(arg.more() && ok) {\r\n if(arg.dash()) {\r\n final char ca = arg.next();\r\n if(ca == 'u') {\r\n final String[] s = new String[args.length - 1];\r\n System.arraycopy(args, 1, s, 0, s.length);\r\n updateTimes(s);\r\n return false;\r\n } else if(ca == 'x') {\r\n convertTopics();\r\n return false;\r\n }\r\n\r\n ok = false;\r\n }\r\n }\r\n session = new ClientSession(ctx);\r\n session.execute(new Set(Prop.INFO, true));\r\n } catch(final Exception ex) {\r\n ok = false;\r\n Main.errln(\"Please run BaseXServer for using server mode.\");\r\n ex.printStackTrace();\r\n }\r\n \r\n if(!ok) {\r\n Main.outln(\"Usage: \" + Main.name(this) + \" [options]\" + NL +\r\n \" -u[...] update submission times\" + NL +\r\n \" -x convert queries\");\r\n }\r\n return ok;\r\n }",
"public void fillCLIArgs(List<String> args) {\n\t\tif (transactionalCheckBox.isSelected()) {\n\t\t\targs.add(\"-transactional\");\n\t\t}\n\t\tObject isolationLevel = isolationLevelComboBox.getSelectedItem();\n\t\tif (isolationLevel != null && !String.valueOf(Connection.TRANSACTION_NONE).equals(isolationLevel)) {\n\t\t\targs.add(\"-isolation-level\");\n\t\t\targs.add(isolationLevel.toString());\n\t\t}\n\t\tInteger nt = numThreads();\n\t\tif (nt != null) {\n\t\t\targs.add(\"-threads\");\n\t\t\targs.add(\"\" + nt);\n\t\t}\n\t}",
"public\n YutilProperties(String argv[])\n {\n super(new Properties());\n setPropertiesDefaults(argv);\n }",
"private static void processArguments(String[] args) {\r\n if (args.length < 2) {\r\n IO.displayGUI(args.length + \" arguments provided.\\nPlease provide input and output files through the GUI.\");\r\n IO.chooseFiles(); // choose files with GUI\r\n } else {\r\n // Open file streams\r\n IO.openStream(args[0], args[1]);\r\n }\r\n }",
"ProgramArgs(String[] args) {\n String errorMessage;\n errorMessage = \"Invalid arguments.\\n\" +\n \"Usage:\\n\\t[Application] --path <file-path-and-name> --k <k-neighbourhood-value> --threads <num-threads>\";\n if (args.length != 6) {\n System.err.println(errorMessage);\n System.exit(-1);\n }\n\n String fileName = \"\";\n int kval = 0;\n int nT = 1;\n for (int i = 0; i < args.length; i++) {\n if (args[i].equals(\"--path\")) {\n fileName = args[i + 1];\n i += 1;\n } else if (args[i].equals(\"--k\")) {\n kval = Integer.parseInt(args[i + 1]);\n i += 1;\n } else if (args[i].equals(\"--threads\")) {\n nT = Integer.parseInt(args[i + 1]);\n i += 1;\n }\n else {\n System.err.println(errorMessage);\n }\n }\n\n this.filePath = fileName;\n this.kValue = kval;\n this.numThreads = nT;\n}",
"private static Params parseCLI(String[] args) {\n Params params = new Params();\n\n if(args.length>1) {\n int paramIndex = 0;\n for(int i=0; i<args.length; i++) {\n String arg = args[i];\n OutputType type = OutputType.getOutputType(arg);\n if(type!=null) {\n params.outputType = type;\n paramIndex = i;\n break;\n } else if(\"-help\".equals(arg)) {\n usage();\n System.exit(0);\n }\n }\n\n params.inputFile = args[paramIndex+1];\n if(args.length>paramIndex+2) {\n params.outputFile = args[paramIndex+2];\n }\n\n } else if(args.length == 1 && \"-help\".equals(args[0])) {\n usage();\n System.exit(0);\n\n } else {\n \n System.err.println(\"Error, incorrect usage\");\n usage();\n System.exit(-1);\n\n }\n\n return params;\n }",
"protected void handleArgs(String[] argv) throws IOException {\n String url = null, path = null, com = null;\n char c;\n boolean got_com = false;\n boolean error = false;\n edu.hkust.clap.monitor.Monitor.loopBegin(750);\nfor (int i = 0; i < argv.length; i++) { \nedu.hkust.clap.monitor.Monitor.loopInc(750);\n{\n if (argv[i].charAt(0) != '-' || argv[i].length() != 2) {\n error = true;\n break;\n }\n c = argv[i].charAt(1);\n switch(c) {\n case 'c':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n com = argv[++i].toUpperCase() + \"\\0\";\n got_com = true;\n break;\n case 'u':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n url = argv[++i];\n break;\n case 'p':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n path = argv[++i];\n break;\n case 's':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n _host_name = argv[++i];\n break;\n case 'P':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n try {\n _port = Integer.parseInt(argv[++i]);\n } catch (Exception e) {\n System.err.println(\"Invalid port number \\\"\" + argv[i] + \"\\\"\");\n _port = -1;\n error = true;\n }\n break;\n case 'v':\n ++_verbose;\n break;\n case 'h':\n usage();\n System.exit(OK);\n case 'V':\n version();\n System.exit(OK);\n default:\n error = true;\n }\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(750);\n\n if (!got_com) {\n System.err.println(\"No command specified\");\n error = true;\n }\n if (error) {\n usage();\n System.exit(FAILED);\n }\n if (_port == -1) {\n _port = PushCacheFilter.DEFAULT_PORT_NUM;\n }\n if (_host_name.length() == 0) {\n _host_name = DEFAULT_SERVER;\n }\n int ev = 0;\n try {\n switch(PushCacheProtocol.instance().parseCommand(com)) {\n case PushCacheProtocol.ADD:\n add(path, url);\n break;\n case PushCacheProtocol.DEL:\n del(url);\n break;\n case PushCacheProtocol.PRS:\n if (!isPresent(url)) {\n ev = 1;\n }\n break;\n default:\n simpleCommand(com);\n }\n } catch (IllegalArgumentException e) {\n System.err.println(e.getMessage());\n usage();\n ev = FAILED;\n }\n sendBye();\n System.exit(ev);\n }",
"public CuratorClientArgParser( String[] commandLineArgs ) {\n confirmArgsAreGood( commandLineArgs );\n\n testing = false;\n for( int crntArg = 0; crntArg < commandLineArgs.length; crntArg++ ) {\n if( commandLineArgs[crntArg].equals(\"-host\") ) {\n host = commandLineArgs[++crntArg];\n }\n else if( commandLineArgs[crntArg].equals(\"-port\") ) {\n port = Integer.parseInt( commandLineArgs[++crntArg] );\n }\n else if( commandLineArgs[crntArg].equals(\"-in\") ) {\n inputDir = new File( commandLineArgs[++crntArg] );\n }\n else if( commandLineArgs[crntArg].equals(\"-out\") ) {\n outputDir = new File( commandLineArgs[++crntArg] );\n }\n else if( commandLineArgs[crntArg].equals(\"-mode\") ) {\n try {\n mode = CuratorClient.CuratorClientMode.fromString( commandLineArgs[++crntArg] );\n } catch ( IllegalArgumentException e ) {\n System.out.println( \"Please specify either 'PRE' or 'POST' \"\n + \"(pre-Hadoop and post-Hadoop, \"\n + \"respectively) as the mode.\");\n }\n }\n else if( commandLineArgs[crntArg].equals(\"-test\") ) {\n testing = true;\n }\n }\n\n if( outputDir == null ) {\n outputDir = new File( inputDir, \"output\" );\n }\n }",
"public static void main(String[] args) {\r\n// new ZuluCLI().LoadCLIargs4j(args);\r\n System.out.println(\"-g AAA -l 32 -d commit --author=PIPKA --amend a.java b.java b.java\");\r\n new ZuluCLI().LoadFishjcommander(args);\r\n }",
"public static void main(String[] args) {\n switch (args[0]) {\r\n case \"-createUser\" -> createUser(args);\r\n case \"-showAllUsers\" -> showAllUsers();\r\n case \"-addTask\" -> addTask(args);\r\n case \"-showTasks\" -> showTasks();\r\n default -> {\r\n try {\r\n throw new IncorrectCommandFormatException();\r\n } catch (IncorrectCommandFormatException exception) {\r\n exception.printStackTrace();\r\n }\r\n }\r\n }\r\n }",
"public void testParams() {\n String line = \"-Xmx256m org.milos.Main arg1\";\n assertEquals(\"-Xmx256m\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"org.milos.Main\", RunJarPanel.splitMainClass(line));\n assertEquals(\"arg1\", RunJarPanel.splitParams(line));\n \n line = \"-Xdebug -Djava.compiler=none -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath ${packageClassName}\";\n assertEquals(\"-Xdebug -Djava.compiler=none -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"${packageClassName}\", RunJarPanel.splitMainClass(line));\n assertEquals(\"\", RunJarPanel.splitParams(line));\n \n line = \"-classpath %classpath ${packageClassName} %classpath ${packageClassName}\";\n assertEquals(\"-classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"${packageClassName}\", RunJarPanel.splitMainClass(line));\n assertEquals(\"%classpath ${packageClassName}\", RunJarPanel.splitParams(line));\n \n line = \"Main arg1 arg2.xsjs.xjsj.MainParam\";\n assertEquals(\"\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"Main\", RunJarPanel.splitMainClass(line));\n assertEquals(\"arg1 arg2.xsjs.xjsj.MainParam\", RunJarPanel.splitParams(line));\n \n //non trimmed line\n line = \" -classpath %classpath ${packageClassName} %classpath ${packageClassName} \";\n assertEquals(\"-classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"${packageClassName}\", RunJarPanel.splitMainClass(line));\n assertEquals(\"%classpath ${packageClassName}\", RunJarPanel.splitParams(line));\n\n //param with quotes and spaces..\n line = \"-Dparam1=\\\"one two three\\\" -classpath %classpath ${packageClassName} %classpath ${packageClassName} \";\n assertEquals(\"-Dparam1=\\\"one two three\\\" -classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"${packageClassName}\", RunJarPanel.splitMainClass(line));\n assertEquals(\"%classpath ${packageClassName}\", RunJarPanel.splitParams(line));\n line = \"-D\\\"foo bar=baz quux\\\" -classpath %classpath my.App\";\n assertEquals(\"-D\\\"foo bar=baz quux\\\" -classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"my.App\", RunJarPanel.splitMainClass(line));\n assertEquals(\"\", RunJarPanel.splitParams(line));\n line = \"\\\"-Dfoo bar=baz quux\\\" -classpath %classpath my.App\"; // #199411\n assertEquals(\"\\\"-Dfoo bar=baz quux\\\" -classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"my.App\", RunJarPanel.splitMainClass(line));\n assertEquals(\"\", RunJarPanel.splitParams(line));\n }",
"public void parse(String argscall) throws ParseException{\n Commons.log.finest(toString()+\" Parsing '\"+argscall+\"'\");\n argscall = argscall.trim();\n \n LinkedList<String> args = new LinkedList<String>();\n HashMap<String, String> kwargs = new HashMap<String, String>();\n \n if(!argscall.isEmpty()){\n int pointer=0, nextStringStart=0, nextStringEnd=0, nextSpace=0;\n String token, key, val;\n\n while(nextSpace >= 0){ \n //Find next token end point\n nextSpace = argscall.indexOf(' ', pointer);\n nextStringStart = indexOfNextUnescapedChar(argscall, '\"', pointer);\n \n if(nextStringStart < nextSpace && nextStringStart != -1){\n nextStringEnd = indexOfNextUnescapedChar(argscall, '\"', nextStringStart+1);\n if(nextStringEnd == -1)\n throw new ParseException(\"Expected \\\" but reached end of string.\");\n nextSpace = argscall.indexOf(' ', nextStringEnd+1);\n }\n\n //Extract token\n if(nextSpace == -1)token = argscall.substring(pointer);\n else token = argscall.substring(pointer, nextSpace); \n token = token.trim();\n\n //See if it's a keyword match or not\n if(KEYWORD.matcher(token).find()){\n key = token.substring(0, token.indexOf('='));\n val = token.substring(token.indexOf('=')+1);\n }else{\n key = null;\n val = token;\n }\n\n //Remove string indicators\n if(val.startsWith(\"\\\"\") && val.endsWith(\"\\\"\")){\n val = val.substring(1, val.length()-1).replaceAll(\"\\\\\\\\\\\"\", \"\\\"\");\n }\n\n //Save to queue or dict\n if(key == null) args.add(val);\n else kwargs.put(key, val);\n\n //Advance pointer\n pointer = nextSpace+1;\n }\n }\n \n for(Argument arg : chain){\n arg.parse(args, kwargs);\n }\n \n apargs = args.toArray(new String[args.size()]);\n akargs.putAll(kwargs);\n }",
"public static void main(String[] ignored) {\n\t\tfinal String[] argv = new String[] {\n\n\t\t\t\t/* short options */\n\t\t\t\t\"-ab\",\n\t\t\t\t\"dd-argument\",\n\t\t\t\t\"-0\",\n\t\t\t\t\"-1\",\n\t\t\t\t\"-2\",\n\n\t\t\t\t/* long options */\n\t\t\t\t\"--add=123\",\n\t\t\t\t\"--append\",\n\t\t\t\t\"--delete-float=3.141952\",\n\t\t\t\t\"--delete-double=3.141952\",\n\t\t\t\t\"--verbose\",\n\t\t\t\t\"--create=789\",\n\t\t\t\t\"-c987\",\n\t\t\t\t\"--file=filename1\",\n\n\t\t\t\t/* non-option arguments */\n\t\t\t\t\"--\",\n\t\t\t\t\"hello\",\n\t\t\t\t\"there\",\n\t\t};\n\n\t\ttry {\n\n\t\t\t/* Two ways to build options, via create() method or using() */\n\t\t\tfinal Options options = new Options.Builder()\n\n\t\t\t\t\t/* Short options */\n\t\t\t\t\t.create(\"a\")\n\t\t\t\t\t.create(\"b\")\n\t\t\t\t\t.create(\"c\", int.class)\n\t\t\t\t\t.create(\"d\", String.class)\n\t\t\t\t\t.create(\"0\")\n\t\t\t\t\t.create(\"1\")\n\t\t\t\t\t.create(\"2\")\n\n\t\t\t\t\t.group('o', suboptions -> suboptions\n\t\t\t\t\t\t\t.create(\"ro\")\n\t\t\t\t\t\t\t.create(\"rw\")\n\t\t\t\t\t\t\t.create(\"name\", String.class))\n\n\t\t\t\t\t/* Long options */\n\t\t\t\t\t.using(Option.of(\"add\", int.class))\n\t\t\t\t\t.using(Option.of(\"append\"))\n\t\t\t\t\t.using(Option.of(\"delete-float\", float.class))\n\t\t\t\t\t.using(Option.of(\"delete-double\", double.class))\n\t\t\t\t\t.using(Option.of(\"verbose\"))\n\t\t\t\t\t.using(Option.of(\"create\", int.class))\n\t\t\t\t\t.using(Option.of(\"file\", String.class))\n\t\t\t\t\t.build();\n\n\t\t\t/* Handler be notified when option is matched */\n\t\t\tfinal Option<Integer> create = options.get(\"create\", int.class);\n\t\t\tcreate.onMatch(n -> System.out.printf(\"Creating new entry %d%n\", n));\n\n\t\t\t/* Setup and parse the command line arguments */\n\t\t\tfinal Args args = Args.of(argv, options);\n\n\t\t\t/* All matched options */\n\t\t\tSystem.out.println(\"-- Example 3:\");\n\t\t\tSystem.out.println(\"Matched options:\");\n\t\t\tfinal List<Option<?>> matched = options.getAllMatched();\n\t\t\tmatched.forEach(System.out::println);\n\n\t\t\t/* Anything that was unmatched by the parser is stored here */\n\t\t\tSystem.out.println(\"Unmatched args:\");\n\t\t\tfinal List<String> unmatched = args.getUnmatchedArgs();\n\t\t\tunmatched.forEach(System.out::println);\n\n\t\t\t/* 2 ways to work with user options: getOption or findMatched */\n\n\t\t\t/*\n\t\t\t * Find methods always return a java Optional. Unmatched option with no command\n\t\t\t * line match, the returned optional will be empty, otherwise the Optional will\n\t\t\t * have the option with the commanline arg/value.\n\t\t\t */\n\t\t\tfinal Optional<Option<Boolean>> a = options.findMatched(\"a\", boolean.class);\n\t\t\ta.ifPresent(opt -> System.out.println(\"Option A is found!\"));\n\n\t\t\t/* Get method will throw unchecked OptionNotFoundException if not found */\n\t\t\tfinal Option<Integer> add = options.get(\"add\", int.class);\n\t\t\tif (add.isMatched()) {\n\t\t\t\tSystem.out.printf(\"add this amount %d%n\", add.getValue());\n\t\t\t}\n\n\t\t} catch (UnrecognizedArgException | InvalidArgException e) {\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t\tSystem.err.printf(\"Usage: %s [-a|-b|-0|-1|-2] [-c arg] [-d arg]%n\", \"Example3\");\n\t\t\tSystem.err.printf(\" \"\n\t\t\t\t\t+ \" [--add element]\"\n\t\t\t\t\t+ \" [--append]\"\n\t\t\t\t\t+ \" [--delete-float arg]\"\n\t\t\t\t\t+ \" [--delete-double arg]\"\n\t\t\t\t\t+ \" [--verbose]\"\n\t\t\t\t\t+ \" [--create arg]\"\n\t\t\t\t\t+ \" [--file arg]\"\n\t\t\t\t\t+ \"%n\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t/*\n\t\t * Next step: Example 4 - working with beans\n\t\t * \n\t\t * A much easiest way to deal with many options is using the BeanOption API.\n\t\t * Example 4 demostrates its usage.\n\t\t */\n\t}",
"private void set_inputs(Map<String, String> arg_values) {\n\n if ( arg_values.get(\"ip\") != null )\n ip = arg_values.get(\"ip\");\n else\n ip = \"127.0.0.1\";\n\n if ( arg_values.get(\"port\") != null )\n port = Integer.parseInt(arg_values.get(\"port\"));\n else\n port = 2000;\n\n if ( arg_values.get(\"-v\") != null )\n verbose = true;\n\n if ( arg_values.get(\"-h\") != null )\n help = true;\n }"
]
| [
"0.72692907",
"0.71974504",
"0.7131009",
"0.6961569",
"0.6930765",
"0.6860856",
"0.6829785",
"0.6817539",
"0.6799937",
"0.6797939",
"0.67875344",
"0.6764374",
"0.67407364",
"0.67238355",
"0.67115456",
"0.6707533",
"0.6704049",
"0.6632399",
"0.65707165",
"0.6568871",
"0.65670115",
"0.6534882",
"0.6456385",
"0.64472085",
"0.64395434",
"0.64173794",
"0.64118195",
"0.6409094",
"0.63746256",
"0.6372326",
"0.6352634",
"0.63331914",
"0.6325815",
"0.6319179",
"0.63146263",
"0.6301551",
"0.6289273",
"0.6283488",
"0.6272592",
"0.62689424",
"0.62639904",
"0.62621284",
"0.6237785",
"0.6190888",
"0.61819756",
"0.6181799",
"0.61709535",
"0.6168168",
"0.615814",
"0.6157413",
"0.61451375",
"0.61285555",
"0.6101145",
"0.6079553",
"0.6079474",
"0.60666317",
"0.6052824",
"0.60483027",
"0.60473573",
"0.6015471",
"0.6003638",
"0.59987545",
"0.59905815",
"0.59905815",
"0.5989449",
"0.5988474",
"0.59862965",
"0.59845144",
"0.5979672",
"0.59627765",
"0.5959978",
"0.594785",
"0.59475434",
"0.59453547",
"0.5941632",
"0.59328955",
"0.59315294",
"0.5922094",
"0.59093404",
"0.5908186",
"0.59053516",
"0.59018487",
"0.58862954",
"0.5885133",
"0.5885108",
"0.5882487",
"0.5871895",
"0.58615756",
"0.58125234",
"0.581008",
"0.5809016",
"0.5799666",
"0.5798799",
"0.579846",
"0.5797922",
"0.5783777",
"0.57805544",
"0.5773838",
"0.576808",
"0.574974"
]
| 0.5804565 | 91 |
Returns a help message for all options loaded. | public String produceHelpMessage() {
// first calculate how much space is necessary for the options
int maxlen = 0;
for (OptionContainer oc : options) {
final String shorta = oc.getShort();
final String longa = oc.getLong();
int len = 0;
if (shorta != null)
len += shorta.length() + 1 + 1;
if (longa != null)
len += longa.length() + 1 + (longa.charAt(0) == 'X' ? 0 : 1) + 1;
// yes, we don't care about branch mispredictions here ;)
if (maxlen < len)
maxlen = len;
}
// get the individual strings
final StringBuilder ret = new StringBuilder();
for (OptionContainer oc : options) {
ret.append(produceHelpMessage(oc, maxlen));
}
return ret.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setHelp() {\n\t\tHelpOpt.add(\"-h\");\n\t\tHelpOpt.add(\"/h\");\n\t\tHelpOpt.add(\"help\");\n\t}",
"protected final void printOptionHelp(Map<String, String> optionDescriptions) {\n int maxOptionLength = optionDescriptions.entrySet().stream().mapToInt(e -> e.getValue() != null ? e.getKey().length() : 0).max().orElse(0);\n optionDescriptions.forEach((option, description) -> {\n if (description != null) {\n printOutput(\" %-\" + maxOptionLength + \"s %s%n\", option, description);\n } else {\n printOutput(\" ------- %s -------%n\", option);\n }\n });\n }",
"private void printHelp(Options options) {\n HelpFormatter formatter = new HelpFormatter();\n formatter.setWidth(79);\n formatter.setOptionComparator(Comparator.comparingInt(this::getOptionOrder));\n formatter.printHelp(\"protostuff-compiler [options] proto_files\", options);\n }",
"String getHelpString();",
"public String getHelp();",
"@Override\r\n\tprotected String getHelpInfor() {\n\t\treturn \"\";\r\n\t}",
"private void help() {\n HelpFormatter formater = new HelpFormatter();\n\n formater.printHelp(\"Main\", options);\n System.exit(0);\n }",
"private void printHelp(Options options) {\n\t\tHelpFormatter formatter = new HelpFormatter();\r\n\t\tString header = \"CLI for Message Counter program\\n\\n\";\r\n\t\tString footer = \"End of the help\\n\";\r\n\t\tformatter.printHelp(\"ChatCounter\", header, options, footer, true);\r\n\t}",
"public void help() {\n\t\tString format = \"%-20s%s%n\";\n\t\tString[] commands = new String[5];\n\t\tcommands[0] = \"help\";\n\t\tcommands[1] = \"learn\";\n\t\tcommands[2] = \"alphabet:create\";\n\t\tcommands[3] = \"alphabet:destroy\";\n\t\tcommands[4] = \"alphabet:compose\";\n\n\t\tString[] explanation = new String[5];\n\t\texplanation[0] = \"display this message\";\n\t\texplanation[1] = \"starts a learning process. Note: with a large alphabet, this\\ncan take a \"\n\t\t\t\t+ \"very long time!\";\n\t\texplanation[2] = \"creates an alphabet. Currently only working for Android, the\\n\"\n\t\t\t\t+ \"creation of an iOS alphabet has to be done more or less manually\";\n\t\texplanation[3] = \"deletes an existing alphabet\";\n\t\texplanation[4] = \"composes an alphabet from existing window dumps.\";\n\n\t\tfor (int i = 0; i < commands.length; i++) {\n\t\t\tSystem.out.printf(format, commands[i], explanation[i]);\n\t\t}\n\t}",
"private static void help() {\n\t\tHelpFormatter formater = new HelpFormatter();\n\t\tformater.printHelp(\"Main\", options);\n\t\tSystem.exit(0);\n\t}",
"private static void help() {\n HelpFormatter formater = new HelpFormatter();\n formater.printHelp(\"SGD-SVM\", options);\n System.exit(0);\n }",
"static void printGeneralOptions(){\n System.out.println(GeneralInfo.PREFIX_COMMAND_DESCRIPTION + \"NameWeapon/Powerup: read the description of that weapon/powerup\");\n }",
"protected String getHelpText() {\n return \"\";\n }",
"private static void printHelp(final Options options) {\n\t\tHelpFormatter formatter = new HelpFormatter();\n\t\tformatter.printHelp(\"lsc\", options);\n\t}",
"private void printHelp() {\n System.out.println(\"Your available command words are:\");\n parser.showCommands();\n }",
"String getHelpText();",
"protected String getHelp() {\r\n return UIManager.getInstance().localize(\"renderingHelp\", \"Help description\");\r\n }",
"private static void printHelp(Options options) {\n HelpFormatter formatter = new HelpFormatter();\n String header = \"Generates the JSON file to send to Drupal.\";\n formatter.printHelp(120, \"drupal-builder\", header, options, \"\", true);\n }",
"public String help() {\r\n\t\t\tif(this.inBattle()) {\r\n\t\t\t\treturn \"You can use the commands [attack] and [escape] while in battle.\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn \"You can use the commands: \\n\" + this.getPlayer().getPlayerCommands().keySet().toString() + \".\";\r\n\t\t\t}\r\n\t\t}",
"private void showHelp() {\n \tHelpFormatter formatter = new HelpFormatter();\n \tformatter.printHelp( \"java -cp moustache.jar Main\", options );\n }",
"public static String helpText() {\n return \"Company options:\\n\"\n + String.format(\"%-80s %s\\n\", \"list\", \"Lists whole company\")\n + String.format(\"%-80s %s\\n\", \"add [first name] [surname] [male|female] [birth date (dd.mm.yyyy)] [position]\", \"Creates new employee\")\n + String.format(\"%-80s %s\\n\", \"delete [id]\", \"Deletes employee with specified id\")\n + String.format(\"%-80s %s\\n\", \"sort --first_name\", \"Sort employees by first name\")\n + String.format(\"%-80s %s\\n\", \"sort --age\", \"Sort employees by age\")\n + String.format(\"%-80s %s\\n\", \"export\", \"Export current state of company to YAML file\")\n + String.format(\"%-80s %s\\n\", \"exit\", \"Exit the program\")\n + String.format(\"%-80s %s\\n\", \"help\", \"Show this help text\");\n }",
"public String showHelp() {\r\n return ctrlDomain.getHidatoDescription();\r\n }",
"public static void help() {\n\tSystem.out.println(\"-- Avaible options --\");\n\tSystem.out.println(\"-- [arg]: Required argument\");\n\tSystem.out.println(\"-- {arg}: Optional argument\");\n\tSystem.out.println(\"* -s {file} Save the game into a file\");\n\tSystem.out.println(\"* -r {file} Play or Replay a game from a file\");\n\tSystem.out.println(\"* -a [file] Play a binary file or a game file\");\n\tSystem.out.println(\"* -n [file] Create a random game file\");\n\tSystem.out.println(\"* -t [size] Specify the size of the board\");\n\tSystem.out.println(\"* -k Solve the game with the IA solver\");\n\tSystem.out.println(\"* -m Solve the game with the MinMax/AlphaBeta algorithm\");\n\tSystem.out.println(\"----------------------------------------------\");\n\tSystem.out.println(\". Press Enter to Start or Restart\");\n\tSystem.out.println(\". Press Z to Undo the last move\");\n\tSystem.out.println(\"\");\n }",
"private static void help(Options options) {\n\t\tHelpFormatter formater = new HelpFormatter();\n\n\t\tformater.printHelp(\"Main\", options);\n\t\tSystem.exit(0);\n\n\t}",
"private Configuration help() {\n final HelpFormatter formatter = new HelpFormatter();\n\n formatter.printHelp(\"-f filepath OR -u http://fake.url\", options);\n return null;\n }",
"@Override\n \t\t\t\tpublic void doHelp() {\n \n \t\t\t\t}",
"private void help() {\n usage(0);\n }",
"@Override\n public void printHelp() {\n\n }",
"public abstract String getHelpInfo();",
"public void showHelp();",
"private void printHelp() \n {\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }",
"public String[] getHelpMessages()\r\n {\r\n return helpMessage;\r\n }",
"@Override\n public String showHelp()\n {\n return new String(ChatColour.RED + \"Usage: \" + ChatColour.AQUA + this.getName());\n }",
"@Override\n public void help() {\n\n }",
"public static void initDefaultOptions()\r\n\t{\n\r\n\t\taddOption(HELP, true, \"show Arguments\");\r\n\t}",
"public static void help() {\n System.out.println(line(\"*\", 80));\n System.out.println(\"SUPPORTED COMMANDS\");\n System.out.println(\"All commands below are case insensitive\");\n System.out.println();\n System.out.println(\"\\tSELECT * FROM table_name; Display all records in the table.\");\n System.out.println(\"\\tSELECT * FROM table_name WHERE rowid = <value>; Display records whose rowid is <id>.\");\n System.out.println(\"\\tDROP TABLE table_name; Remove table data and its schema.\");\n System.out.println(\"\\tVERSION; Show the program version.\");\n System.out.println(\"\\tHELP; Show this help information\");\n System.out.println(\"\\tEXIT; Exit the program\");\n System.out.println();\n System.out.println();\n System.out.println(line(\"*\", 80));\n }",
"public static void showOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- The participants' directory.\")\n .add(\"2- The RDVs' agenda.\")\n .add(\"3- Quit the app.\")\n .add(\"*************************\")\n );\n }",
"public static void help() {\n\n\t\tSystem.out.println(\"--help--Input format should be as below\" + \n\t\t \"\\njava -jar passgen.jar -l\" + \n\t\t\t\t \"\\n\" +\n\t\t\t\t \"\\njava -jar passgen.jar -l\" + \"\\n(where l= length of password)\" + \n\t\t\t\t \"\\n\");\n\n\t}",
"void printHelp();",
"private static void displayHelp(){\n System.out.println(\"-host hostaddress: \\n\" +\n \" connect the host and run the game \\n\" +\n \"-help: \\n\" +\n \" display the help information \\n\" +\n \"-images: \\n\" +\n \" display the images directory \\n\" +\n \"-sound: \\n\" +\n \" display the sounds file directory \\n\"\n\n );\n }",
"private void printOptionsMessage() {\n System.out.println(\"\\n\");\n System.out.print(\"Visible arrays: \");\n if (showArray == true) {\n System.out.println(\"On\");\n } else {\n System.out.println(\"Off\");\n }\n\n System.out.println(\"Selected Algorithms: \");\n if (selected[0] == true) {\n System.out.print(\" MergeSort\");\n }\n if (selected[1] == true) {\n System.out.print(\" QuickSort\");\n }\n if (selected[2] == true) {\n System.out.print(\" HeapSort\");\n }\n\n System.out.println();\n }",
"private void help() {\n for (GameMainCommandType commandType : GameMainCommandType.values()) {\n System.out.printf(\"%-12s%s\\n\", commandType.getCommand(), commandType.getInfo());\n }\n System.out.println();\n }",
"@Override\n public String getHelp() {\n return name;\n }",
"@Override\n\tpublic String getHelp() {\n\n\t\treturn \"EXAMINE|EXAMINAR\";\n\t}",
"private static void help() {\n\t\t\n\t\tTask[] taskList = createTaskList();\n\t\t\n\t\tSystem.out.println(\"\\n---------------------------------[ HELP ]--------\"\n\t\t\t\t+ \"------------------------------\\n\");\n\t\t\n\t\t// Post1 Display help (Polymorphism)\n\t\tfor (Task task : taskList) {\n\t\t\ttask.displayHelp();\n\t\t}\n\t\t\n\t}",
"public String getHelp(){\r\n\t\tString out=\"\";\r\n\r\n\t\tout+=this.beforeTextHelp;\r\n\r\n\t\t//uso\r\n\t\tout += \"\\nUsage: \"+this.programName+\" \";\r\n\t\t//short arg\r\n\t\tout += \"[\";\r\n\t\tint i = 0;\r\n\t\twhile(i<opts.size()){\r\n\t\t\tout += \"-\"+opts.get(i).getArgument();\r\n\t\t\tif(i<opts.size()-1){out+=\"|\";}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tout += \"] \";\r\n\r\n\t\t//long arg\r\n\t\tout += \"[\";\r\n\t\ti = 0;\r\n\t\twhile(i<opts.size()){\r\n\t\t\tout += \"--\"+opts.get(i).getLongArgument();\r\n\t\t\tif(i<opts.size()-1){out+=\"|\";}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tout += \"]\\n\\n\";\r\n\r\n\t\tout += \"*\\tArgument required\\n\";\r\n\t\tout += \"**\\tValue required\\n\\n\";\r\n\r\n\t\t//lista degli argomenti\r\n\t\ti = 0;\r\n\t\twhile(i<opts.size()){\r\n\t\t\tout += \"-\"+opts.get(i).getArgument()+\"\\t\"; //short arg\r\n\t\t\tif(opts.get(i).getLongArgument().equals(null)){out += \"\\t\\t\";}else{out += \"--\"+opts.get(i).getLongArgument()+\"\\t\";} //long arg\r\n\t\t\tout += opts.get(i).getDescription()+\"\\n\";//description\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tout +=\"\\n\";\t\r\n\r\n\t\tout+=this.afterTextHelp;\r\n\r\n\t\tout +=\"\\n\";\r\n\t\treturn out;\r\n\t}",
"public void printHelpCommands(){\r\n\t\t//Construct the help command output\r\n\t\tprintAsTable(\"exit\",\t\t \t\t\t\t\"Exit the program.\");\r\n\t\tprintAsTable(\"help\",\t\t \t\t\t\t\"Print out the usage.\");\r\n\t\tprintAsTable(\"host\",\t\t\t\t\t\t\"Enumerate all hosts.\");\r\n\t\tprintAsTable(\"host hname info\", \t\t\t\"Show info of host name.\");\r\n\t\tprintAsTable(\"host hname datastore\", \t\t\"Enumerate datastores of host hname.\");\r\n\t\tprintAsTable(\"host hname network\", \t\t\t\"Enumerate networks of host hname.\");\r\n\t\tprintAsTable(\"vm\", \t\t\t\t\t\t\t\"Enumerate all virtual machines.\");\r\n\t\tprintAsTable(\"vm vname info\", \t\t\t\t\"Show info of VM vname.\");\r\n\t\tprintAsTable(\"vm vname on\", \t\t\t\t\"Power on VM vname and wait until task completes.\");\r\n\t\tprintAsTable(\"vm vname off\", \t\t\t\t\"Power off VM vname and wait until task completes.\");\r\n\t\tprintAsTable(\"vm vname shutdown\", \t\t\t\"Shutdown guest of VM vname.\");\t\t\t\r\n\t}",
"private static void showHelp(){\r\n JOptionPane.showMessageDialog(null, \"1. Choose the faculty.\\n\"\r\n + \"2. Type in the year when the school year started in format YYYY.\\n\"\r\n + \"3. Choose the semester.\\n\"\r\n + \"4. Enter subject codes separated by semicolon. You can add them all at once or add other subjects later.\\n\"\r\n + \"5. Press the Add button to load schedule options.\\n\"\r\n + \"6. Click on the loaded options you want to choose. Their color will turn red.\\n\"\r\n + \"7. Save the options you chose to the text file through File -> Save.\\n\",\r\n \"How-to\", JOptionPane.PLAIN_MESSAGE);\r\n }",
"public void showHelp() {\n\tString shortFormat = \"%16s -- %-20s %n\";\n\tString longFormat = \"%16s -- %-40s %n\";\n System.out.printf(shortFormat, \"ls\", \"list matched tariffs\");\n System.out.printf(shortFormat, \"ls all\", \"list all tariffs\");\n System.out.printf(shortFormat, \"clear\", \"reset filters\");\n System.out.printf(shortFormat, \"exit\", \"exit the program\");\n System.out.printf(longFormat, \"field min max\",\n \"filter tariffs with field having\"\n + \"value between min and max\");\n System.out.println(\"\\nList of available fields:\\n\");\n filterCommands.stream().forEach(System.out::println);\n }",
"public static void displayHelp() {\n\t\thelp = getInstance();\n\t\tUIMain.popUpHelp(commandList, inputCommand);\t\n\t\tLoggingLogic.logging(HELP_MESSAGE);\n\t}",
"private void printHelp() \n {\n Logger.Log(\"You have somehow ended up in this strange, magical land. But really you just want to go home.\");\n Logger.Log(\"\");\n Logger.Log(\"Your command words are:\");\n parser.showCommands();\n Logger.Log(\"You may view your inventory or your companions\");\n }",
"private void showHelp() {\n\t\tJOptionPane.showMessageDialog(this, \"Created by Mario Bobić\", \"About File Encryptor\", JOptionPane.INFORMATION_MESSAGE);\n\t}",
"private static void help() {\n System.out.println(\"Supported Command List:\");\n System.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\");\n System.out.println(\"To draw canvas press: C <width> <height>\");\n System.out.println(\"To draw rectangle press: R <x1> <y1> <x2> <y2>\");\n System.out.println(\"To draw Line press : L <x1> <y1> <x2> <y2>\");\n System.out.println(\"To fill canvas press : B <x> <y> <c>\");\n System.out.println(\"To quit press: Q\");\n System.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\");\n System.out.println();\n }",
"public abstract void printHelp(List<String> args);",
"public String getHelp() {\r\n String res = \"You can use the following commands:\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"north\\\" to go towards the north\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"south\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"east\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"west\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"attack\\\" to attack a monster\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"look\\\" to look around in the room\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"search\\\" to search the room for treasure\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"use\\\" to use somthing in your inventory\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"gear\\\" to see what gear you got equipped\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"inventory\\\" to see what gear you have in your inventory\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"savegame\\\" to save your progress\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"stop\\\" to quit the game.\" + System.lineSeparator();\r\n return res;\r\n }",
"@Override\n public String getHelp() {\n return getController().getNameOfConnection(numberOfConnection);\n }",
"private static String optionsListing() {\n\t\tString result = \"\\nUsage: java -jar comtor.jar -dir dirname\\n\\n\";\n\t\tresult += \"Options:\\n\";\n\t\t\n\t\tresult += \"-dir dirname\\t\\tSpecified the pathname of the directory in which COMTOR will \"; \n\t\tresult += \"search for Java source code\\n\\t\\t\\tfiles (packaged and non-packaged).\\n\\n\";\n\t\t\n\t\tresult += \"-help | --help\\t\\tThis help message\\n\";\n\t\tresult += \"\\n\\n\";\n\t\treturn result;\n\t}",
"public static void help() {\n System.out.println(printLine(\"*\",120));\n System.out.println(\"SUPPORTED COMMANDS\");\n System.out.println(\"All commands below are case insensitive\");\n System.out.println();\n System.out.println(\"\\tSHOW TABLES; Display all tables in the schema.\");\n //System.out.println(\"\\tSELECT table_name FROM kavibase_tables; Display all records in the table.\");\n System.out.println(\"\\tCREATE TABLE table_name (column_name data_type [PRIMARY KEY] [NOT NULL],.); Create a table.\");\n System.out.println(\"\\tINSERT INTO TABLE (column_list) table_name VALUES (value_list); Insert a record into table.\");\n System.out.println(\"\\tDELETE FROM TABLE table_name WHERE row_id=key_value; Delete a record from a table.\");\n System.out.println(\"\\tSELECT * FROM table_name; Display all records in the table.\");\n System.out.println(\"\\tSELECT * FROM table_name WHERE rowid = <value>; Display records whose rowid is <id>.\");\n System.out.println(\"\\tDROP TABLE table_name; Remove table data and its schema.\");\n System.out.println(\"\\tVERSION; Show the program version.\");\n System.out.println(\"\\tHELP; Show this help information\");\n System.out.println(\"\\tEXIT; Exit the program\");\n System.out.println(\"\\tQUIT; Exit the program\");\n System.out.println();\n System.out.println();\n System.out.println(printLine(\"*\",120));\n }",
"public void help();",
"public void showHelp(CommandSender sender) {\n\t\t\n\t}",
"public void help() {\n System.out.println(\"Type 'commands' to list all \" +\n \"available commands\");\n System.out.println(\"Type 'start' to play game\");\n System.out.println(\"Player to remove the last stone loses!\");\n System.out.println();\n }",
"public void printHelp() throws IOException {\n\n HelpFormatter hf = new HelpFormatter();\n hf.setShellCommand(m_name);\n hf.setGroup(m_options);\n hf.print();\n }",
"private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the prision.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n System.out.println(parser.showCommands());\n }",
"public String getHelp() {\n\t\tfinal StringBuilder helpBuilder = new StringBuilder(\"HELP MANUAL\\n\\n\");\n\t\tfor (final Argument arg : registeredArguments) {\n\t\t\thelpBuilder.append(\n\t\t\t\t\tString.format(\"- %1s : %2s | %3s\\n\", arg.getArgName(), arg.getShortCall(), arg.getLongCall()));\n\t\t\thelpBuilder.append(arg.getHelpLine());\n\t\t\thelpBuilder.append(\"\\n\");\n\t\t\tif (arg.isMandatory()) {\n\t\t\t\thelpBuilder.append(\"This argument is mandatory on the command line.\\n\");\n\t\t\t} else {\n\t\t\t\thelpBuilder.append(\"This argument is not mandatory on the command line.\\n\");\n\t\t\t}\n\t\t\tif (arg.isValueNotRequired()) {\n\t\t\t\thelpBuilder.append(\"This argument has no value. If a value is present, it will be ignored.\\n\");\n\t\t\t}\n\t\t\thelpBuilder.append(\"\\n\");\n\t\t}\n\t\treturn helpBuilder.toString();\n\t}",
"public String getSpecificHelp() {\n return specificHelp;\n }",
"private static void help() {\n System.out.println(\"usage: pgen <project name> <args>\");\n System.out.println(\"Arguments:\");\n System.out.println(\"\\t-h | -help : help menu\");\n System.out.println(\"\\t-s | -size <example file amount> : the amount of example files to create. Defaults to 2\");\n System.out.println(\"\\t-t | -template <template> : the template to use. Defaults to java_default\");\n System.out.println(\"\\t\\tValid Templates:\");\n System.out.println(\"\\t\\t\\t* java_default\");\n System.out.println(\"\\t\\t\\t* cpp_default\");\n System.out.println(\"\\t-kattis : fetches the problems from Kattis and creates a makefile and test script for them\");\n System.out.println(\"\\t-local : fetches nothing and creates empty example files\");\n System.exit(0);\n }",
"private void print_help_and_exit() {\n System.out.println(\"A bunch of simple directus admin cli commands\");\n System.out.println(\"requires DIRECTUS_API_HOST and DIRECTUS_ADMIN_TOKEN environment variables to be set\");\n System.out.println();\n\n COMMAND_METHODS.values().forEach(c -> {\n for (String desriptionLine : c.descriptionLines) {\n System.out.println(desriptionLine);\n }\n System.out.println();\n });\n\n System.out.println();\n System.exit(-1);\n }",
"private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }",
"private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around in a dense woods.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }",
"@Override\n public HelpCtx getHelp() {\n return HelpCtx.DEFAULT_HELP;\n }",
"public String getHelpMessage() {\n\t\tString message = MessageManager.getDefaultMessages().getString(\"help.\" + getCommand());\n\t\tif (message == null || message.equals(\"\")) {\n\t\t\tmessage = getHelp();\n\t\t\tMessageManager.getDefaultMessages().set(\"help.\" + getCommand(), getHelp());\n\n\t\t\tFile f = MessageManager.getFile();\n\t\t\ttry {\n\t\t\t\tMessageManager.getDefaultMessages().save(f);\n\t\t\t} catch (IOException ex) {\n\t\t\t\tBukkit.getLogger().log(Level.SEVERE, \"Could not save config to \" + f, ex);\n\t\t\t}\n\t\t}\n\t\treturn message;\n\t}",
"public static void printHelp(Options options) {\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp(\"java -jar $DIR/evsrestapi-*.jar\", options);\n return;\n }",
"public void displayHelpMenuView()\n {\n System.out.println(\"\\nHelp menu selected.\");\n }",
"@Override\n\tpublic String getHelp()\n\t{\n\t\treturn \"<html>Enter two before values and one after value<br>\"\n\t\t\t\t+ \"from the solution. Click the calculate button<br>\"\n\t\t\t\t+ \"to find the remaining after value.</html>\";\n\t}",
"public String usage()\n {\n return (\"Common [optional] options supported by Minitest:\\n\"\n + \"(Note: assumes inputDir=.\\\\tests\\\\api)\\n\"\n + super.usage()); // Grab our parent classes usage as well\n }",
"private void helpService() {\n output.println(\"Help command\");\n output.println(\"-calc <number> \\t Calculates the value of pi based on <number> points; quit \\t Exit from program \");\n }",
"public String getOptionsAsString() {\n\t\tStringBuilder buf = new StringBuilder();\n\t\tfor (int i = 0; i <propertyKeys.size(); i++) {\n\t\t\tString key = propertyKeys.get(i);\n\t\t\tif (!runtimeKeys.get(i))\n buf.append(key + \" : \" + getOption(key)).append(\"\\r\\n\");\n\t\t}\n\t\tfor (int i = 0; i <propertyKeys.size(); i++) {\n\t\t\tString key = propertyKeys.get(i);\n\t\t\tif (runtimeKeys.get(i))\n buf.append(\"* \" + key + \" : \" + getOption(key)).append(\"\\r\\n\");\n\t\t}\n\t\treturn buf.toString();\n\t}",
"@Override\n public Optional<Text> getHelp(CommandSource source) {\n return help;\n }",
"@Override\n protected void options()\n {\n super.options();\n addOption(Opt.APPLICATION_ID);\n addOption(Opt.SERVER_ID);\n addOption(Opt.CATEGORY);\n addOption(Opt.NAME, \"The name of the label\");\n }",
"public void setHelp (String Help);",
"@Override\r\n\tpublic String getHelp() {\n\t\treturn \"QUIT|SALIR\";\r\n\t}",
"private static void help() {\n System.out.println(USAGE); \n System.exit(0);\n }",
"private void helpAbout() {\n JOptionPane.showMessageDialog(this, new ConsoleWindow_AboutBoxPanel1(), \"About\", JOptionPane.PLAIN_MESSAGE);\n }",
"private void printHelp() {\r\n\t\tSystem.out.println(\"Flag Param Details\");\r\n\t\tSystem.out.println(\" -f **x** Add a filter. 'x' is the board letter.\");\r\n\t\tSystem.out.println(\" Can have 0 or more stars before and after the board letter.\");\r\n\t\tSystem.out.println(\" -h Print this message.\");\r\n\t\tSystem.out.println(\" -q Quit interactive session.\");\r\n\t\tSystem.out.println(\" -n xx Display xx number of words.\");\r\n\t\tSystem.out.println(\" -n all Display all words.\");\r\n\t\tSystem.out.println(\" -r Repeat last search.\");\r\n\t\tSystem.out.println(\" -s len Words are sorted by length.\");\r\n\t\tSystem.out.println(\" -s alpha Words are sorted alphapetically.\");\r\n\t\t// System.out.println(\"\");\r\n\t}",
"private void showHelp(CommandSender sender) {\n StringBuilder user = new StringBuilder();\n StringBuilder admin = new StringBuilder();\n\n for (Command cmd : commands.values()) {\n CommandInfo info = cmd.getClass().getAnnotation(CommandInfo.class);\n if(!PermHandler.hasPerm(sender, info.permission())) continue;\n\n StringBuilder buffy;\n if (info.permission().startsWith(\"dar.admin\"))\n buffy = admin;\n else \n buffy = user;\n \n buffy.append(\"\\n\")\n .append(ChatColor.RESET).append(info.usage()).append(\" \")\n .append(ChatColor.YELLOW).append(info.desc());\n }\n\n if (admin.length() == 0) {\n \tMessenger.sendMessage(sender, \"Available Commands: \"+user.toString());\n } else {\n \tMessenger.sendMessage(sender, \"User Commands: \"+user.toString());\n \tMessenger.sendMessage(sender, \"Admin Commands: \"+admin.toString());\n }\n }",
"private CommandResult showDefaultHelp() throws FinProductionException {\r\n\t\tList<HelpTablePair> helpTable = new ArrayList<HelpTablePair>(); \r\n\t\t\r\n\t\tfor (ICommandHandler i: CommandParser.INSTANCE.getCommandHandlers()) {\r\n\t\t\tif (i.getHelpTablePair() != null) {\r\n\t\t\t\thelpTable.add(i.getHelpTablePair());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new CommandResult(this, \"\",\r\n\t\t\t\tCommandResult.RenderType.HELPTABLE, helpTable);\r\n\t}",
"default String toHelpString() {\n // Builder\n StringBuilder builder = new StringBuilder();\n // Name\n builder.append(ChatColor.RED).append(getName()).append(\" \");\n // Parameter\n Iterator<PowreedCommandParameter> iterator = this.getParameters().iterator();\n while (iterator.hasNext()) {\n PowreedCommandParameter next = iterator.next();\n\n if (next.isRequired()) {\n builder.append(ChatColor.GOLD).append(\"<\").append(next.getName()).append(\">\");\n } else {\n builder.append(ChatColor.DARK_GRAY).append(\"[\").append(next.getName()).append(\"]\");\n }\n\n if (iterator.hasNext()) {\n builder.append(\" \");\n }\n }\n // Description\n builder.append(ChatColor.RED).append(\": \").append(ChatColor.GRAY).append(getDescription());\n // Return to string\n return builder.toString();\n }",
"public void printHelp() {\n System.out.println(\". - jeden znak (bez znaku nowej linii)\");\n System.out.println(\".* - zero lub więcej znaków\");\n System.out.println(\"\\\\w* - zero lub więcej słów\");\n }",
"@Test\n\tpublic void testHelpOption()\n\t{\n\t\tPrintStream outBkp = System.out;\n\t\tByteArrayOutputStream outBuf = new ByteArrayOutputStream ();\n\t\tSystem.setOut ( new PrintStream ( outBuf ) );\n\n\t\tApp.main ( \"--help\" );\n\t\t\n\t\tSystem.setOut ( outBkp ); // restore the original output\n\n\t\tlog.debug ( \"CLI output:\\n{}\", outBuf.toString () );\n\t\tassertTrue ( \"Can't find CLI output!\", outBuf.toString ().contains ( \"*** Command Line Example ***\" ) );\n\t\tassertEquals ( \"Bad exit code!\", 1, App.getExitCode () );\n\t}",
"public void printUsage() {\n System.out.println(\"\\nHelp Invoked on \");\n System.out.println(\"[-hfs] \");\n System.out.println(\"\");\n\n System.out.println(\"Usage: \");\n System.out.println(\"-d [true|false]\");\n System.out.println(\"-f URL-file-pathame\");\n System.out.println(\"-h: invoke help\");\n System.out.println(\"-i: URL-list-input-source [ DEFAULT | USER | FILE ]\");\n System.out.println(\"-s URL-list-separator\");\n }",
"@Override\n\tpublic String textHelp() {\n\t\treturn \" HELP: Muestra esta ayuda.\"+\n\t\t\t\tSystem.getProperty(\"line.separator\");\n\t}",
"public boolean getHelp() {\n return help;\n }",
"private void printUsage() {\n \n // new formatter\n HelpFormatter formatter = new HelpFormatter();\n \n // add the text and print\n formatter.printHelp(\"arara [file [--log] [--verbose] [--timeout N] [--language L] | --help | --version]\", commandLineOptions);\n }",
"@Override\n public void help(CommandSender sender) {\n \n }",
"private static void printHelp(){\r\n System.out.println(\"\\n\\n\\t\\t\\t ----HELP---\\n\\n\" +\r\n \"\\nYou can set the length of password like this \\n\" +\r\n \"\\t java -jar nipunpassgen.jar -l (where l is length of password) \\n\\n\" +\r\n \"\\nYou can also specifiy the which type of word your want to use like this-->\\n\" +\r\n \"\\t Type java -jar nipunpassgen.jar -l -tttt \\n \" +\r\n \"Here 1st t will set uselowercase true \\t 2nd t set useUppercase true\\n\" +\r\n \"\\t 3rd t set useDigit True \\t and 4th t set useSpecial Char true\\n\" +\r\n \"You can use 't' or 'T' for setting the true and 'f' or 'F' for setting the false\\n\" +\r\n \"You can pass -c flag at the end of command for directly copy the password in your\\n\" +\r\n \"clipboard without showing in console like this \\t java -jar nipunpassgen.jar -c \\t this will copy a\\n\" +\r\n \"random 8 digit password in your clipboard .\");\r\n }",
"@Override\n\tpublic void sendHelp(ICommandSender sender) {\n\t}",
"public static void printHelpGuide() {\n printDivider();\n System.out.println(\"Help arrives!\\n\");\n printUserGuide();\n printDivider();\n }",
"@Override\n public void help()\n {\n System.out.println(\"\\tcd [DEST]\");\n }",
"void help();",
"public String getGenericHelp() {\n return genericHelp;\n }"
]
| [
"0.70574784",
"0.70373935",
"0.7007087",
"0.69451237",
"0.69276565",
"0.6897073",
"0.68236333",
"0.67804277",
"0.677778",
"0.6758952",
"0.67240024",
"0.672237",
"0.67196137",
"0.67146933",
"0.6712255",
"0.6689698",
"0.66883004",
"0.66783625",
"0.6677032",
"0.6660928",
"0.66491055",
"0.66463184",
"0.66027063",
"0.6588217",
"0.6583399",
"0.65823877",
"0.65648663",
"0.65596586",
"0.6485981",
"0.6481092",
"0.64771366",
"0.645984",
"0.64514345",
"0.64510906",
"0.644402",
"0.6435282",
"0.6428996",
"0.64142567",
"0.6413199",
"0.6409106",
"0.6395941",
"0.6394693",
"0.6387431",
"0.6383243",
"0.636787",
"0.6365161",
"0.6348796",
"0.6346279",
"0.632515",
"0.6324449",
"0.6311372",
"0.6299731",
"0.6290329",
"0.6273746",
"0.62600833",
"0.62521756",
"0.6248974",
"0.62406",
"0.62275654",
"0.62185717",
"0.6215623",
"0.6212613",
"0.62074053",
"0.61994475",
"0.6193789",
"0.618809",
"0.6184422",
"0.6183043",
"0.61823815",
"0.6179143",
"0.61743116",
"0.61577034",
"0.61327416",
"0.6128253",
"0.61230785",
"0.61146855",
"0.6111782",
"0.6104633",
"0.60950756",
"0.6089447",
"0.60861087",
"0.6082354",
"0.6079858",
"0.6072709",
"0.6071245",
"0.60666806",
"0.60663944",
"0.60494936",
"0.6047335",
"0.60442847",
"0.603629",
"0.60344744",
"0.6033793",
"0.6032602",
"0.6028634",
"0.6028285",
"0.6021273",
"0.6019068",
"0.60149276",
"0.60078394"
]
| 0.7467949 | 0 |
Returns the help message for the given OptionContainer. The command line flags will be padded to optwidth spaces to allow for aligning. The description of the flags will be wrapped at 80 characters. | public String produceHelpMessage(final OptionContainer oc, int indentwidth) {
final String desc = oc.getDescription();
if (desc == null)
return "";
final String shorta = oc.getShort();
final String longa = oc.getLong();
int optwidth = 0;
if (shorta != null)
optwidth += shorta.length() + 1 + 1;
if (longa != null)
optwidth += longa.length() + 1 + (longa.charAt(0) == 'X' ? 0 : 1) + 1;
final int descwidth = 80 - indentwidth;
// default to with of command line flags if no width given
if (indentwidth <= 0)
indentwidth = optwidth;
final StringBuilder ret = new StringBuilder();
// add the command line flags
if (shorta != null)
ret.append('-').append(shorta).append(' ');
if (longa != null) {
ret.append('-');
if (longa.charAt(0) != 'X')
ret.append('-');
ret.append(longa).append(' ');
}
for (int i = optwidth; i < indentwidth; i++)
ret.append(' ');
// add the description, wrap around words
int pos = 0, lastpos = 0;
while (pos < desc.length()) {
pos += descwidth;
if (lastpos != 0) {
for (int i = 0; i < indentwidth; i++)
ret.append(' ');
}
if (pos >= desc.length()) {
ret.append(desc.substring(lastpos)).append('\n');
break;
}
int space;
for (space = pos; desc.charAt(space) != ' '; space--) {
if (space == 0) {
space = pos;
break;
}
}
pos = space;
ret.append(desc.substring(lastpos, pos)).append('\n');
while (desc.charAt(pos) == ' ')
pos++;
lastpos = pos;
}
return ret.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String produceHelpMessage() {\n\t\t// first calculate how much space is necessary for the options\n\t\tint maxlen = 0;\n\t\tfor (OptionContainer oc : options) {\n\t\t\tfinal String shorta = oc.getShort();\n\t\t\tfinal String longa = oc.getLong();\n\t\t\tint len = 0;\n\t\t\tif (shorta != null)\n\t\t\t\tlen += shorta.length() + 1 + 1;\n\t\t\tif (longa != null)\n\t\t\t\tlen += longa.length() + 1 + (longa.charAt(0) == 'X' ? 0 : 1) + 1;\n\t\t\t// yes, we don't care about branch mispredictions here ;)\n\t\t\tif (maxlen < len)\n\t\t\t\tmaxlen = len;\n\t\t}\n\n\t\t// get the individual strings\n\t\tfinal StringBuilder ret = new StringBuilder();\n\t\tfor (OptionContainer oc : options) {\n\t\t\tret.append(produceHelpMessage(oc, maxlen));\n\t\t}\n\n\t\treturn ret.toString();\n\t}",
"protected final void printOptionHelp(Map<String, String> optionDescriptions) {\n int maxOptionLength = optionDescriptions.entrySet().stream().mapToInt(e -> e.getValue() != null ? e.getKey().length() : 0).max().orElse(0);\n optionDescriptions.forEach((option, description) -> {\n if (description != null) {\n printOutput(\" %-\" + maxOptionLength + \"s %s%n\", option, description);\n } else {\n printOutput(\" ------- %s -------%n\", option);\n }\n });\n }",
"public String getHelp(){\r\n\t\tString out=\"\";\r\n\r\n\t\tout+=this.beforeTextHelp;\r\n\r\n\t\t//uso\r\n\t\tout += \"\\nUsage: \"+this.programName+\" \";\r\n\t\t//short arg\r\n\t\tout += \"[\";\r\n\t\tint i = 0;\r\n\t\twhile(i<opts.size()){\r\n\t\t\tout += \"-\"+opts.get(i).getArgument();\r\n\t\t\tif(i<opts.size()-1){out+=\"|\";}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tout += \"] \";\r\n\r\n\t\t//long arg\r\n\t\tout += \"[\";\r\n\t\ti = 0;\r\n\t\twhile(i<opts.size()){\r\n\t\t\tout += \"--\"+opts.get(i).getLongArgument();\r\n\t\t\tif(i<opts.size()-1){out+=\"|\";}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tout += \"]\\n\\n\";\r\n\r\n\t\tout += \"*\\tArgument required\\n\";\r\n\t\tout += \"**\\tValue required\\n\\n\";\r\n\r\n\t\t//lista degli argomenti\r\n\t\ti = 0;\r\n\t\twhile(i<opts.size()){\r\n\t\t\tout += \"-\"+opts.get(i).getArgument()+\"\\t\"; //short arg\r\n\t\t\tif(opts.get(i).getLongArgument().equals(null)){out += \"\\t\\t\";}else{out += \"--\"+opts.get(i).getLongArgument()+\"\\t\";} //long arg\r\n\t\t\tout += opts.get(i).getDescription()+\"\\n\";//description\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tout +=\"\\n\";\t\r\n\r\n\t\tout+=this.afterTextHelp;\r\n\r\n\t\tout +=\"\\n\";\r\n\t\treturn out;\r\n\t}",
"public static StringBuffer describeOptions( final CLOptionDescriptor[] options )\n {\n final String lSep = System.getProperty( \"line.separator\" );\n final StringBuffer sb = new StringBuffer();\n\n for ( final CLOptionDescriptor option : options )\n {\n final char ch = (char) option.getId();\n final String name = option.getName();\n String description = option.getDescription();\n int flags = option.getFlags();\n boolean argumentRequired =\n ( flags & CLOptionDescriptor.ARGUMENT_REQUIRED ) == CLOptionDescriptor.ARGUMENT_REQUIRED;\n final boolean twoArgumentsRequired =\n ( flags & CLOptionDescriptor.ARGUMENTS_REQUIRED_2 ) == CLOptionDescriptor.ARGUMENTS_REQUIRED_2;\n boolean needComma = false;\n if ( twoArgumentsRequired )\n {\n argumentRequired = true;\n }\n\n sb.append( '\\t' );\n\n if ( Character.isLetter( ch ) )\n {\n sb.append( \"-\" );\n sb.append( ch );\n needComma = true;\n }\n\n if ( null != name )\n {\n if ( needComma )\n {\n sb.append( \", \" );\n }\n\n sb.append( \"--\" );\n sb.append( name );\n }\n\n if ( argumentRequired )\n {\n sb.append( \" <argument>\" );\n }\n if ( twoArgumentsRequired )\n {\n sb.append( \"=<value>\" );\n }\n sb.append( lSep );\n\n if ( null != description )\n {\n while ( description.length() > MAX_DESCRIPTION_COLUMN_LENGTH )\n {\n final String descriptionPart =\n description.substring( 0, MAX_DESCRIPTION_COLUMN_LENGTH );\n description =\n description.substring( MAX_DESCRIPTION_COLUMN_LENGTH );\n sb.append( \"\\t\\t\" );\n sb.append( descriptionPart );\n sb.append( lSep );\n }\n\n sb.append( \"\\t\\t\" );\n sb.append( description );\n sb.append( lSep );\n }\n }\n return sb;\n }",
"private void printHelp(Options options) {\n\t\tHelpFormatter formatter = new HelpFormatter();\r\n\t\tString header = \"CLI for Message Counter program\\n\\n\";\r\n\t\tString footer = \"End of the help\\n\";\r\n\t\tformatter.printHelp(\"ChatCounter\", header, options, footer, true);\r\n\t}",
"public static String helpText() {\n return \"Company options:\\n\"\n + String.format(\"%-80s %s\\n\", \"list\", \"Lists whole company\")\n + String.format(\"%-80s %s\\n\", \"add [first name] [surname] [male|female] [birth date (dd.mm.yyyy)] [position]\", \"Creates new employee\")\n + String.format(\"%-80s %s\\n\", \"delete [id]\", \"Deletes employee with specified id\")\n + String.format(\"%-80s %s\\n\", \"sort --first_name\", \"Sort employees by first name\")\n + String.format(\"%-80s %s\\n\", \"sort --age\", \"Sort employees by age\")\n + String.format(\"%-80s %s\\n\", \"export\", \"Export current state of company to YAML file\")\n + String.format(\"%-80s %s\\n\", \"exit\", \"Exit the program\")\n + String.format(\"%-80s %s\\n\", \"help\", \"Show this help text\");\n }",
"public String getFormattedOption(int offset, int descriptionStart, int width) {\n StringBuilder sb = new StringBuilder();\n if(required && ansiMode)\n sb.append(ANSI.BOLD);\n if(offset > 0)\n sb.append(String.format(\"%\" + offset+ \"s\", \"\"));\n if(shortName != null)\n sb.append(\"-\").append(shortName);\n if(name != null && name.length() > 0) {\n if(shortName != null)\n sb.append(\", \");\n sb.append(\"--\").append(name);\n }\n if(argument != null && argument.length() > 0) {\n sb.append(\"=<\").append(argument).append(\">\");\n }\n if(required && ansiMode)\n sb.append(ANSI.BOLD_OFF);\n if(description != null && description.length() > 0) {\n //int descOffset = descriptionStart - sb.length();\n int descOffset = descriptionStart - getFormattedLength() - offset;\n if(descOffset > 0)\n sb.append(String.format(\"%\"+descOffset+\"s\", \"\"));\n else\n sb.append(\" \");\n\n sb.append(description);\n }\n\n return sb.toString();\n }",
"public StringBuffer2D printHelp(boolean showDescription){\n final int commandWidth = 19;\n StringBuffer2D cmd = new StringBuffer2D();\n List<CommandTuple> commands = new ArrayList<>();\n commands.add(new CommandTuple(\"move A1 B1\", \"move worker in A1 to B1\"));\n commands.add(new CommandTuple(\"build A1 B2 [dome]\", \"build in B2 with worker in A1\"));\n commands.add(new CommandTuple(\"place A1\", \"place worker in A1\"));\n commands.add(new CommandTuple(\"end\", \"end current turn\"));\n commands.add(new CommandTuple(\"undo\", \"undo last operation\"));\n commands.add(new CommandTuple(\"+/-\", \"make board bigger/smaller\"));\n\n\n\n cmd.appendln(Color.LIGHTGRAY_UNDERLINED.escape(\"Commands usage\"));\n if(cellWidth >= 3) {\n cmd.appendln(\"\");\n }\n for(CommandTuple t : commands){\n cmd.appendln( t.getCommand() + \" \".repeat(Math.max(0, commandWidth - t.getCommand().length())) + (showDescription?Color.CYAN.escape( t.getDescription() ):\"\"));\n\n }\n return cmd;\n }",
"private void printHelp(Options options) {\n HelpFormatter formatter = new HelpFormatter();\n formatter.setWidth(79);\n formatter.setOptionComparator(Comparator.comparingInt(this::getOptionOrder));\n formatter.printHelp(\"protostuff-compiler [options] proto_files\", options);\n }",
"public String getHelp() {\n\t\tfinal StringBuilder helpBuilder = new StringBuilder(\"HELP MANUAL\\n\\n\");\n\t\tfor (final Argument arg : registeredArguments) {\n\t\t\thelpBuilder.append(\n\t\t\t\t\tString.format(\"- %1s : %2s | %3s\\n\", arg.getArgName(), arg.getShortCall(), arg.getLongCall()));\n\t\t\thelpBuilder.append(arg.getHelpLine());\n\t\t\thelpBuilder.append(\"\\n\");\n\t\t\tif (arg.isMandatory()) {\n\t\t\t\thelpBuilder.append(\"This argument is mandatory on the command line.\\n\");\n\t\t\t} else {\n\t\t\t\thelpBuilder.append(\"This argument is not mandatory on the command line.\\n\");\n\t\t\t}\n\t\t\tif (arg.isValueNotRequired()) {\n\t\t\t\thelpBuilder.append(\"This argument has no value. If a value is present, it will be ignored.\\n\");\n\t\t\t}\n\t\t\thelpBuilder.append(\"\\n\");\n\t\t}\n\t\treturn helpBuilder.toString();\n\t}",
"default String toHelpString() {\n // Builder\n StringBuilder builder = new StringBuilder();\n // Name\n builder.append(ChatColor.RED).append(getName()).append(\" \");\n // Parameter\n Iterator<PowreedCommandParameter> iterator = this.getParameters().iterator();\n while (iterator.hasNext()) {\n PowreedCommandParameter next = iterator.next();\n\n if (next.isRequired()) {\n builder.append(ChatColor.GOLD).append(\"<\").append(next.getName()).append(\">\");\n } else {\n builder.append(ChatColor.DARK_GRAY).append(\"[\").append(next.getName()).append(\"]\");\n }\n\n if (iterator.hasNext()) {\n builder.append(\" \");\n }\n }\n // Description\n builder.append(ChatColor.RED).append(\": \").append(ChatColor.GRAY).append(getDescription());\n // Return to string\n return builder.toString();\n }",
"String getHelpString();",
"private static void printHelp(final Options options) {\n\t\tHelpFormatter formatter = new HelpFormatter();\n\t\tformatter.printHelp(\"lsc\", options);\n\t}",
"private DEmbedBuilder buildHelp(String botName, String prefix, String commandString, MessageCommand command, String exception)\n {\n DEmbedBuilder builder = new DEmbedBuilder();\n String author = \"Help with \" + botName;\n String description;\n if (command != null)\n description = combineSubCommands(prefix, commandString, command);\n else\n description = combineCommands(prefix);\n Color color = new Color(97, 185, 221);\n\n builder.setAuthor(author).setColor(color);\n if (!exception.isEmpty())\n builder.setFooter(exception);\n builder.setDescription(description);\n\n return builder;\n }",
"public String getHelp() {\r\n String res = \"You can use the following commands:\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"north\\\" to go towards the north\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"south\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"east\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"west\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"attack\\\" to attack a monster\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"look\\\" to look around in the room\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"search\\\" to search the room for treasure\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"use\\\" to use somthing in your inventory\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"gear\\\" to see what gear you got equipped\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"inventory\\\" to see what gear you have in your inventory\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"savegame\\\" to save your progress\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"stop\\\" to quit the game.\" + System.lineSeparator();\r\n return res;\r\n }",
"public String help() {\r\n\t\t\tif(this.inBattle()) {\r\n\t\t\t\treturn \"You can use the commands [attack] and [escape] while in battle.\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn \"You can use the commands: \\n\" + this.getPlayer().getPlayerCommands().keySet().toString() + \".\";\r\n\t\t\t}\r\n\t\t}",
"public void help() {\n\t\tString format = \"%-20s%s%n\";\n\t\tString[] commands = new String[5];\n\t\tcommands[0] = \"help\";\n\t\tcommands[1] = \"learn\";\n\t\tcommands[2] = \"alphabet:create\";\n\t\tcommands[3] = \"alphabet:destroy\";\n\t\tcommands[4] = \"alphabet:compose\";\n\n\t\tString[] explanation = new String[5];\n\t\texplanation[0] = \"display this message\";\n\t\texplanation[1] = \"starts a learning process. Note: with a large alphabet, this\\ncan take a \"\n\t\t\t\t+ \"very long time!\";\n\t\texplanation[2] = \"creates an alphabet. Currently only working for Android, the\\n\"\n\t\t\t\t+ \"creation of an iOS alphabet has to be done more or less manually\";\n\t\texplanation[3] = \"deletes an existing alphabet\";\n\t\texplanation[4] = \"composes an alphabet from existing window dumps.\";\n\n\t\tfor (int i = 0; i < commands.length; i++) {\n\t\t\tSystem.out.printf(format, commands[i], explanation[i]);\n\t\t}\n\t}",
"public String getHelp() {\n\t\tStringBuffer help = new StringBuffer(256);\n\t\thelp.append(ConsoleMsg.CONSOLE_HELP_CONTROLLING_CONSOLE_HEADING);\n\t\thelp.append(newline);\n\t\thelp.append(tab);\n\t\thelp.append(\"more - \"); //$NON-NLS-1$\n\t\thelp.append(ConsoleMsg.CONSOLE_HELP_MORE);\n\t\thelp.append(newline);\n\t\treturn help.toString();\n\t}",
"public String getHelp();",
"public void showHelp() {\n\tString shortFormat = \"%16s -- %-20s %n\";\n\tString longFormat = \"%16s -- %-40s %n\";\n System.out.printf(shortFormat, \"ls\", \"list matched tariffs\");\n System.out.printf(shortFormat, \"ls all\", \"list all tariffs\");\n System.out.printf(shortFormat, \"clear\", \"reset filters\");\n System.out.printf(shortFormat, \"exit\", \"exit the program\");\n System.out.printf(longFormat, \"field min max\",\n \"filter tariffs with field having\"\n + \"value between min and max\");\n System.out.println(\"\\nList of available fields:\\n\");\n filterCommands.stream().forEach(System.out::println);\n }",
"static String makeHelpString() {\r\n\r\n String s;\r\n s=\"The parameters set through this interface control many of the\";\r\n s+=\" details of the calculation. Once the parameters are set,\";\r\n s+=\" store them by clicking the \\\"Save Changes\\\" button.\\n\\n\";\r\n\r\n s+=\"Log10 Start Time\\nBase-10 logarithm of the start time for\";\r\n s+=\" integration, in seconds. Distinguish from logx- below, which is\";\r\n s+= \" the start time for the plot. \\n\\n\";\r\n\r\n s+=\"Log10 END TIME\\nBase-10 logarithm of the final time for\";\r\n s+=\" integration, in seconds. Distinguish from logx+ below, which is\";\r\n s+= \" the end time for the plot. \\n\\n\";\r\n\r\n s+=\"Precision\\nPrecision factor for integration timestep.\";\r\n s+=\" Smaller values give smaller adaptive timestep and more precision.\\n\\n\";\r\n\r\n s+=\"CalcMode\\nCalculation mode (QSS=quasi-steady-state, Asy=normal asymptotic,\";\r\n s+=\" AsyMott=Mott asymptotic, AsyOB=Oran-Boris asymptotic, Explicit=explicit, F90Asy=F90).\\n\\n\";\r\n\r\n s+=\"dX\\nPermitted tolerance in deviation of sum of mass fractions X\";\r\n s+=\" from unity. For example, a value of 0.01 requires the timestep to be\";\r\n s+=\" adjusted such that sum X lies between 0.99 and 1.01\";\r\n s+=\" after each timestep.\\n\\n\";\r\n\r\n// s+=\"Max Light-Ion Mass\\nMaximum mass light ion permitted to\";\r\n// s+=\" contribute to reactions. For example, if this variable is set\";\r\n// s+=\" to 4, p + O16 and He4 + O16 reactions can contribute (if\";\r\n// s+=\" the corresponding Reaction Class is selected), but C12 + O16\";\r\n// s+=\" would be excluded since 12 is larger than 4. As another\";\r\n// s+=\" example, if Reaction Class 5 is selected and this variable\";\r\n// s+=\" is set equal to 1, p-gamma reactions contribute but not\";\r\n// s+=\" alpha-p reactions.\\n\\n\";\r\n\r\n s+=\"HYDRODYNAMIC VARIABLES\\nThe temperature (in units\";\r\n s+=\" of 10^9 K), the density (in units of g/cm^3), and electron fraction Ye are set in\";\r\n s+=\" one of two mutually exclusive ways, chosen through the radio\";\r\n s+=\" buttons. If \\\"Constant\\\" is selected the (constant)\";\r\n s+=\" temperature (T), density (rho), and electron fraction (Ye) are entered in the\";\r\n s+=\" corresponding fields. If \\\"Specify Profile\\\"\";\r\n s+=\" is selected instead, a file name is specified that\";\r\n s+=\" contains the time profile for T, rho, and Ye to be used in the\";\r\n s+=\" calculation\";\r\n s+=\" (note: assume to be case-sensitive) if in the same directory\";\r\n s+=\" as the Java class files, or by a properly qualified path\";\r\n s+=\" for the machine in question if in another directory. For\";\r\n s+=\" example, on a Unix machine \\\"../file.ext\\\" would specify the\";\r\n s+=\" file with name \\\"file.ext\\\" in the parent directory.\";\r\n s+=\" See the file jin/sampleHydroProfile.inp for sample file format\\n\\n\";\r\n\r\n\r\n s+=\"logx-\\nThe lower limit in log time for plot.\";\r\n s+=\" This differs from LOG10 START TIME, which is the integration start time.\";\r\n s+=\" Generally logx- must be greater than or equal to LOG10 START TIME \";\r\n s+= \" (the program will set logx- = LOG10 START TIME otherwise).\\n\\n\";\r\n\r\n s+=\"logx+\\nThe upper limit in log time for plot.\";\r\n s+=\" This differs from LOG10 END TIME, which is the integration stop time.\";\r\n s+=\" Generally logx+ must be less than or equal to LOG10 END TIME \";\r\n s+= \" (the program will set logx+ = LOG10 END TIME otherwise).\\n\\n\";\r\n\r\n s+=\"logy-\\nThe lower limit in log X (mass fraction) or log Y (abundance) for plot\";\r\n s+= \" (which one is determined by the X/Y selection widget).\\n\\n\";\r\n\r\n s+=\"logy+\\nThe upper limit in log X (mass fraction) or log Y (abundance) for plot.\";\r\n s+= \" (which one is determined by the X/Y selection widget).\\n\\n\";\r\n\r\n s+=\"x tics\\nNumber of tic marks on x axis.\\n\\n\";\r\n\r\n s+=\"y tics\\nNumber of tic marks on y axis.\\n\\n\";\r\n\r\n s+=\"Isotopes\\nMaximum number of curves to plot (500 is the largest permitted value).\\n\\n\";\r\n\r\n s+=\"E/dE\\nWhether integrated energy E or differential energy dE is plotted.\\n\\n\";\r\n\r\n s+=\"X/Y\\nWhether mass fraction X or molar abundance Y is plotted.\\n\\n\";\r\n\r\n s+=\"Lines/Symbols\\nWhether curves are drawn with lines or series of symbols.\\n\\n\";\r\n\r\n s+=\"Color/BW\\nWhether curves are drawn in color or black and white.\\n\\n\";\r\n\r\n s+=\"Steps\\nNumber of time intervals to plot (time intervals\";\r\n s+=\" will be equally spaced on log scale). Typical values are ~100. Max is\";\r\n s+=\" StochasticElements.tintMax. Larger values give better plot resolution but\"; \r\n s+=\" larger postscript files.\\n\\n\";\r\n\r\n s+=\"MinCon\\nApproximate minimum contour for 2D and 3D plots.\\n\\n\";\r\n\r\n s+=\"3D\\nWhether to output data in ascii file 3D.data for 3D plot animation by rateViewer3D.\\n\\n\";\r\n\r\n s+=\"AlphaOnly\\nIf No, include only triple-alpha among alpha reactions with light ions\";\r\n s+=\" (for alpha network). Otherwise, include all alpha reactions with light ions.\\n\\n\";\r\n\r\n s+=\"x deci\\nNumber of digits beyond decimal for x-axis labels.\\n\\n\";\r\n\r\n s+=\"y deci\\nNumber of digits beyond decimal for y-axis labels.\\n\\n\";\r\n\r\n s+=\"Ymin\\nFractional particle number threshold for including a box in network in a given\";\r\n s+=\" timestep. Roughly, in given timestep only isotopes having an an abundance Y\";\r\n s+=\" larger than Ymin will be processed.\\n\\n\";\r\n\r\n s+=\"renormX\\nWhether to renormalize sum of mass fractions to 1 after each timestep.\\n\\n\";\r\n \r\n s+=\"Lineplot\\nDetermines whether the lineplot produced\";\r\n s+=\" of populations as a function of time has a tall or \";\r\n s+=\" short vertical aspect.\\n\\n\";\r\n \r\n s+=\"PopCM\\nChooses colormap for 2D population animation.\\n\\n\";\r\n \r\n s+=\"FluxCM\\nChooses colormap for 2D flux ratio animation.\\n\\n\";\r\n\r\n s+=\"Comments\\nOptional comments that will be included in output text and graphics.\\n\\n\";\r\n\r\n// Remove following for now\r\n/*\r\n s+=\"Zmax\\nThe maximum value of proton number that will be considered\";\r\n s+=\" in the calculation. Set larger than the highest Z likely\";\r\n s+=\" to be encountered in the reactions of the network.\";\r\n\t\ts+=\" Can't be larger than StochasticElements.pmax.\\n\\n\";\r\n\r\n s+=\"Nmax\\nThe maximum value of neutron number that will be considered\";\r\n s+=\" in the calculation. Set larger than the highest N likely\";\r\n s+=\" to be encountered in the reactions of the network.\";\r\n\t\ts+=\" Can't be larger than StochasticElements.nmax.\\n\\n\";\r\n\r\n s+=\"Zmin\\nThe minimum value of proton number that will be considered\";\r\n s+=\" in the calculation for heavier ions. (Note: protons, neutrons,\";\r\n s+=\" He3, and He4 are always considered, irrespective of this\";\r\n s+=\" parameter). For example, if Zmin=6, no isotopes with mass\";\r\n s+=\" numbers less than 6 will be considered, except for protons,\";\r\n s+=\" neutrons (if Include Neutrons is set to \\\"Yes\\\"), He3, and\";\r\n s+=\" alpha particles. Normally changed only for diagnostic purposes. \\n\\n\";\r\n*/\r\n\r\n return s;\r\n\r\n }",
"private void printHelp() {\r\n\t\tSystem.out.println(\"Flag Param Details\");\r\n\t\tSystem.out.println(\" -f **x** Add a filter. 'x' is the board letter.\");\r\n\t\tSystem.out.println(\" Can have 0 or more stars before and after the board letter.\");\r\n\t\tSystem.out.println(\" -h Print this message.\");\r\n\t\tSystem.out.println(\" -q Quit interactive session.\");\r\n\t\tSystem.out.println(\" -n xx Display xx number of words.\");\r\n\t\tSystem.out.println(\" -n all Display all words.\");\r\n\t\tSystem.out.println(\" -r Repeat last search.\");\r\n\t\tSystem.out.println(\" -s len Words are sorted by length.\");\r\n\t\tSystem.out.println(\" -s alpha Words are sorted alphapetically.\");\r\n\t\t// System.out.println(\"\");\r\n\t}",
"private static String getHelp() {\n StringBuffer sb = new StringBuffer();\n\n // License\n //sb.append(License.get());\n\n // Usage\n sb.append(\"Usage: java -cp dist/jcore.jar -mx2G eu.fbk.fm.profiling.extractors.LSA.LSM input threshold size dim idf\\n\\n\");\n\n // Arguments\n sb.append(\"Arguments:\\n\");\n sb.append(\"\\tinput\\t\\t-> root of files from which to read the model\\n\");\n sb.append(\"\\tthreshold\\t-> similarity threshold\\n\");\n sb.append(\"\\tsize\\t\\t-> number of similar terms to return\\n\");\n sb.append(\"\\tdim\\t\\t-> number of dimensions\\n\");\n sb.append(\"\\tidf\\t\\t-> if true rescale using the idf\\n\");\n //sb.append(\"\\tterm\\t\\t-> input term\\n\");\n\n // Arguments\n //sb.append(\"Arguments:\\n\");\n\n return sb.toString();\n }",
"public String showHelp() {\n String helpMessage = \"I don't know nothin' about other commands but \"\n + \"here are the list of commands I understand!\\n\"\n + \"help: displays the list of commands available\\n\"\n + \"\\n\"\n + \"list: displays the list of tasks you have\\n\"\n + \"\\n\"\n + \"find *keyword*: displays the tasks with that keyword\\n\"\n + \"eg find karate\\n\"\n + \"\\n\"\n + \"todo *task description*: adds a task without any\\n\"\n + \"date/time attached to it\\n\" + \"eg todo scold spongebob\\n\"\n + \"\\n\"\n + \"deadline *task description* /by *date+time*: adds a\\n\"\n + \"task that needs to be done before a specific date and time\\n\"\n + \"(date and time to be written in yyyy-mm-dd HHMM format)\\n\"\n + \"eg deadline build spaceship /by 2019-10-15 2359\\n\"\n + \"\\n\"\n + \"event *task description* /at *date+time*: adds a task that\\n\"\n + \"starts at a specific time and ends at a specific time\\n\"\n + \"(date and time to be written in yyyy-mm-dd HHMM format)\\n\"\n + \"eg event karate competition /at 2019-10-15 1200\\n\"\n + \"\\n\"\n + \"done *task number*: marks the task with that number as done\\n\"\n + \"eg done 1\\n\"\n + \"\\n\"\n + \"delete *task number*: deletes the task with that number from the list\\n\"\n + \"eg delete 1\\n\"\n + \"\\n\"\n + \"update *task number* /name *task name*: updates the name of the task with \"\n + \"that number from the list\\n\" + \"update 1 /name help spongebob\\n\"\n + \"\\n\"\n + \"update *task number* /date *task date*: (only for deadline or event tasks!) \"\n + \"updates the date and time of the task with that number from the list\\n\"\n + \"update 1 /date 2020-02-20 1200\\n\"\n + \"\\n\"\n + \"bye: ends the session\";\n return helpMessage;\n }",
"String getHelpText();",
"public static void help() {\n\n\t\tSystem.out.println(\"--help--Input format should be as below\" + \n\t\t \"\\njava -jar passgen.jar -l\" + \n\t\t\t\t \"\\n\" +\n\t\t\t\t \"\\njava -jar passgen.jar -l\" + \"\\n(where l= length of password)\" + \n\t\t\t\t \"\\n\");\n\n\t}",
"public String getHelpMessage ( ) {\r\n\t\tString html = \"<html><body>\";\r\n\t\thtml += \"<p>\";\r\n\t\thtml += \"TASS Mark IV Patches Catalog<br>\";\r\n\t\thtml += \"Astronomical Data Center catalog No. 2271<br>\";\r\n\t\thtml += \"</p><p>\";\r\n\t\thtml += \"Download:\";\r\n\t\thtml += \"<blockquote>\";\r\n\t\thtml += \"<u><font color=\\\"#0000ff\\\">http://spiff.rit.edu/tass/patches/</font></u>\";\r\n\t\thtml += \"</blockquote>\";\r\n\t\thtml += \"</p>\";\r\n\t\thtml += \"</body></html>\";\r\n\t\treturn html;\r\n\t}",
"public String showHelp() {\r\n return ctrlDomain.getHidatoDescription();\r\n }",
"@Override\n\tpublic String getHelp()\n\t{\n\t\treturn \"<html>Enter two before values and one after value<br>\"\n\t\t\t\t+ \"from the solution. Click the calculate button<br>\"\n\t\t\t\t+ \"to find the remaining after value.</html>\";\n\t}",
"private static String getUsage()\n {\n final StringBuilder usage = new StringBuilder(400);\n\n // Empty line before usage info\n usage.append(\"\\n \" \n // Describe commands/options\n + \"those <option> <command> <cmd-options> \\n\"\n + \" Options:\\n\"\n + \"\\t-v : Allows stack trace to be printed.\\n\" \n + \" Commands:\\n\"\n + getCreateUsage()\n + \" help\\n\" \n + \"\\t Displays this help message\\n\" \n + \" version\\n\" \n + \"\\t Displays the SDK version and supported Core APIs\\n\");\n\n return usage.toString();\n }",
"@Override\n\tpublic String getHelp() {\n\n\t\treturn \"EXAMINE|EXAMINAR\";\n\t}",
"private String printHelp()//refactored\n { String result = \"\";\n result += \"\\n\";\n result += \"You are weak if you have to ask me\\n\";\n result += \"Try not to die, while i´am mocking you.\\n\";\n result += \"\\n\";\n result += \"\" + currentRoom.getDescription() + \"\\n\"; //new\n result += \"\\nExits: \" + currentRoom.getExitDescription() + \"\\n\";//new\n result += \"\\nCommand words:\\n\";\n result += ValidAction.getValidCommandWords();\n result += \"\\n\";\n \n return result;\n }",
"protected String getHelp() {\r\n return UIManager.getInstance().localize(\"renderingHelp\", \"Help description\");\r\n }",
"private void sendFormattedHelpLine(CommandSender sender, String title, String command, String perm) {\n StringBuilder message = new StringBuilder(\" §7 \");\n StringBuilder hiddenCommand = new StringBuilder(\"§c§k\");\n\n message.append(title).append(\": \");\n\n for (int i = 0; i < command.length(); i++)\n hiddenCommand.append(\"-\");\n\n if (EUtil.senderHasPerm(sender, perm))\n message.append(command);\n else\n message.append(hiddenCommand);\n\n sender.sendMessage(message.toString());\n }",
"@Override\r\n\tprotected String getHelpInfor() {\n\t\treturn \"\";\r\n\t}",
"private static void printHelp(Options options) {\n HelpFormatter formatter = new HelpFormatter();\n String header = \"Generates the JSON file to send to Drupal.\";\n formatter.printHelp(120, \"drupal-builder\", header, options, \"\", true);\n }",
"public static void printInventoryHelpMessage() {\n\n UI.printEmptyLine();\n System.out.println(\"Here is a list of Inventory commands: \");\n\n UI.printEmptyLine();\n int[] lengthPara = {10,60,50};\n printer(new String[]{HELP_HEADER_COMMAND, HELP_HEADER_DESCRIPTION, HELP_HEADER_FORMAT}, lengthPara);\n UI.showLongLine();\n printer(new String[]{HELP_COMMAND, INVENTORY_HELP_DESCRIPTION, MARK_BLANK}, lengthPara);\n printer(new String[]{ADD_COMMAND, INVENTORY_ADD_DESCRIPTION, INVENTORY_ADD_FORMAT}, lengthPara);\n printer(new String[]{LIST_COMMAND, INVENTORY_LIST_DESCRIPTION, INVENTORY_LIST_FORMAT}, lengthPara);\n printer(new String[]{DELETE_COMMAND, INVENTORY_DELETE_DESCRIPTION, INVENTORY_DELETE_FORMAT}, lengthPara);\n printer(new String[]{RETURN_COMMAND, RETURN_DESCRIPTION, MARK_BLANK}, lengthPara);\n }",
"private static String printOptionalArgs() {\n String output = \"\";\n for (int i = 0; i < MAX_OPTIONAL_ARGS; i++)\n output += \" [-\" + VALID_OPTIONAL_ARGS[i] + \"]\";\n return output + \" \";\n }",
"Argument help(String help);",
"protected String getHelpText() {\n return \"\";\n }",
"private Configuration help() {\n final HelpFormatter formatter = new HelpFormatter();\n\n formatter.printHelp(\"-f filepath OR -u http://fake.url\", options);\n return null;\n }",
"String getHelp(long guildID);",
"private void setHelp() {\n\t\tHelpOpt.add(\"-h\");\n\t\tHelpOpt.add(\"/h\");\n\t\tHelpOpt.add(\"help\");\n\t}",
"@Override\n public Optional<Text> getHelp(CommandSource source) {\n return help;\n }",
"private void printHelp() {\n TablePrinter helpTableHead = new TablePrinter(\"Command Name : \", \"textconvert\");\n helpTableHead.addRow(\"SYNOPSIS : \", \"textconvert [OPTION]...\");\n helpTableHead.addRow(\"DESCRIPTION : \", \"Convert text/file to Binary, Hexadecimal, Base64.\");\n helpTableHead.print();\n TablePrinter helpTable = new TablePrinter(\"Short Opt\", \"Long Opt\", \"Argument\", \"Desc\", \"Short Option Example\", \"Long Option Example\");\n helpTable.addRow(\"-h\", \"--help\", \"not required\", \"Show this help.\", \"help -h\", \"help --help\");\n helpTable.addRow(\"-f\", \"--file\", \"required\", \"Path to file\", \"textconvert -f /PATH/TO/FILE\", \"textconvert --file /PATH/TO/FILE\");\n helpTable.addRow(\"-ttb\", \"--texttobinary\", \"not required\", \"Convert text to Binary\", \"textconvert -ttb -f /PATH/TO/FILE\", \"textconvert --texttobinary --file /PATH/To/File\");\n helpTable.addRow(\"-btt\", \"--binarytotext\", \"not required\", \"Convert Binary to text\", \"textconvert -btt -f /PATH/To/FileWithBinaryData\", \"textconvert --binarytotext --file /PATH/To/FileWithBinaryData\");\n helpTable.print();\n this.done = true;\n }",
"@Override\r\n public String getUsage() {\r\n return String.format(\"%s <%s> %s%s <%s>\", super.getCommand(), super.getArgumentName(), FLAG_PREFIX, flagOption,\r\n flagName);\r\n }",
"private static void printCliHelp(String message) {\n \t\tSystem.out.println(message);\n \t\tHelpFormatter formatter = new HelpFormatter();\n\t\tformatter.printHelp(\"java -jar OsmPbfMetadata.jar\", createOptions());\n \t\tSystem.exit(-1);\n \t}",
"private static void printHelp(){\r\n System.out.println(\"\\n\\n\\t\\t\\t ----HELP---\\n\\n\" +\r\n \"\\nYou can set the length of password like this \\n\" +\r\n \"\\t java -jar nipunpassgen.jar -l (where l is length of password) \\n\\n\" +\r\n \"\\nYou can also specifiy the which type of word your want to use like this-->\\n\" +\r\n \"\\t Type java -jar nipunpassgen.jar -l -tttt \\n \" +\r\n \"Here 1st t will set uselowercase true \\t 2nd t set useUppercase true\\n\" +\r\n \"\\t 3rd t set useDigit True \\t and 4th t set useSpecial Char true\\n\" +\r\n \"You can use 't' or 'T' for setting the true and 'f' or 'F' for setting the false\\n\" +\r\n \"You can pass -c flag at the end of command for directly copy the password in your\\n\" +\r\n \"clipboard without showing in console like this \\t java -jar nipunpassgen.jar -c \\t this will copy a\\n\" +\r\n \"random 8 digit password in your clipboard .\");\r\n }",
"public String help() {\n\t\t\treturn \"\\nc-m-n backtracking test game.\\n\"\n\t\t\t\t\t\t\t+ \"Moves are integers in the range 0..\"\n\t\t\t\t\t\t\t+ getMM()\n\t\t\t\t\t\t\t+ \"\\nFind \"\n\t\t\t\t\t\t\t+ getCC()\n\t\t\t\t\t\t\t+ \" numbers that sum to \"\n\t\t\t\t\t\t\t+ getNN()\n\t\t\t\t\t\t\t+ \"\\nIf both or neither succeed, game is a draw. 0 quits.\\n\";\n\t\t}",
"public static void help() {\n\tSystem.out.println(\"-- Avaible options --\");\n\tSystem.out.println(\"-- [arg]: Required argument\");\n\tSystem.out.println(\"-- {arg}: Optional argument\");\n\tSystem.out.println(\"* -s {file} Save the game into a file\");\n\tSystem.out.println(\"* -r {file} Play or Replay a game from a file\");\n\tSystem.out.println(\"* -a [file] Play a binary file or a game file\");\n\tSystem.out.println(\"* -n [file] Create a random game file\");\n\tSystem.out.println(\"* -t [size] Specify the size of the board\");\n\tSystem.out.println(\"* -k Solve the game with the IA solver\");\n\tSystem.out.println(\"* -m Solve the game with the MinMax/AlphaBeta algorithm\");\n\tSystem.out.println(\"----------------------------------------------\");\n\tSystem.out.println(\". Press Enter to Start or Restart\");\n\tSystem.out.println(\". Press Z to Undo the last move\");\n\tSystem.out.println(\"\");\n }",
"private static void help(Options options) {\n\t\tHelpFormatter formater = new HelpFormatter();\n\n\t\tformater.printHelp(\"Main\", options);\n\t\tSystem.exit(0);\n\n\t}",
"@Test\n\tpublic void testHelpOption()\n\t{\n\t\tPrintStream outBkp = System.out;\n\t\tByteArrayOutputStream outBuf = new ByteArrayOutputStream ();\n\t\tSystem.setOut ( new PrintStream ( outBuf ) );\n\n\t\tApp.main ( \"--help\" );\n\t\t\n\t\tSystem.setOut ( outBkp ); // restore the original output\n\n\t\tlog.debug ( \"CLI output:\\n{}\", outBuf.toString () );\n\t\tassertTrue ( \"Can't find CLI output!\", outBuf.toString ().contains ( \"*** Command Line Example ***\" ) );\n\t\tassertEquals ( \"Bad exit code!\", 1, App.getExitCode () );\n\t}",
"@Override\n public String showHelp()\n {\n return new String(ChatColour.RED + \"Usage: \" + ChatColour.AQUA + this.getName());\n }",
"public String getOptionsAsString() {\n\t\tStringBuilder buf = new StringBuilder();\n\t\tfor (int i = 0; i <propertyKeys.size(); i++) {\n\t\t\tString key = propertyKeys.get(i);\n\t\t\tif (!runtimeKeys.get(i))\n buf.append(key + \" : \" + getOption(key)).append(\"\\r\\n\");\n\t\t}\n\t\tfor (int i = 0; i <propertyKeys.size(); i++) {\n\t\t\tString key = propertyKeys.get(i);\n\t\t\tif (runtimeKeys.get(i))\n buf.append(\"* \" + key + \" : \" + getOption(key)).append(\"\\r\\n\");\n\t\t}\n\t\treturn buf.toString();\n\t}",
"public String getHelpMessage ( ) {\r\n\t\tString html = \"<html><body>\";\r\n\t\thtml += \"<p>\";\r\n\t\thtml += \"The MSX Infrared Astrometric Catalog<br>\";\r\n\t\thtml += \"Astronomical Data Center catalog No. 5098<br>\";\r\n\t\thtml += \"</p><p>\";\r\n\t\thtml += \"Download:\";\r\n\t\thtml += \"<blockquote>\";\r\n\t\thtml += \"<u><font color=\\\"#0000ff\\\">ftp://dbc.nao.ac.jp/DBC/NASAADC/catalogs/5/5098/msx.dat.gz</font></u>\";\r\n\t\thtml += \"</blockquote>\";\r\n\t\thtml += \"</p>\";\r\n\t\thtml += \"</body></html>\";\r\n\t\treturn html;\r\n\t}",
"private void help() {\n for (GameMainCommandType commandType : GameMainCommandType.values()) {\n System.out.printf(\"%-12s%s\\n\", commandType.getCommand(), commandType.getInfo());\n }\n System.out.println();\n }",
"public String getHelpMessage() {\n\t\tString message = MessageManager.getDefaultMessages().getString(\"help.\" + getCommand());\n\t\tif (message == null || message.equals(\"\")) {\n\t\t\tmessage = getHelp();\n\t\t\tMessageManager.getDefaultMessages().set(\"help.\" + getCommand(), getHelp());\n\n\t\t\tFile f = MessageManager.getFile();\n\t\t\ttry {\n\t\t\t\tMessageManager.getDefaultMessages().save(f);\n\t\t\t} catch (IOException ex) {\n\t\t\t\tBukkit.getLogger().log(Level.SEVERE, \"Could not save config to \" + f, ex);\n\t\t\t}\n\t\t}\n\t\treturn message;\n\t}",
"private void showHelp() {\n \tHelpFormatter formatter = new HelpFormatter();\n \tformatter.printHelp( \"java -cp moustache.jar Main\", options );\n }",
"@Override\n\tpublic String textHelp() {\n\t\treturn \" HELP: Muestra esta ayuda.\"+\n\t\t\t\tSystem.getProperty(\"line.separator\");\n\t}",
"public void printHelp() {\n System.out.println(\". - jeden znak (bez znaku nowej linii)\");\n System.out.println(\".* - zero lub więcej znaków\");\n System.out.println(\"\\\\w* - zero lub więcej słów\");\n }",
"public void printHelp() throws IOException {\n\n HelpFormatter hf = new HelpFormatter();\n hf.setShellCommand(m_name);\n hf.setGroup(m_options);\n hf.print();\n }",
"public abstract void printHelp(List<String> args);",
"public String showHelp(String instruction) {\n if (instruction.equals(\"add\")) {\n return \"Add a word to wordbank.\\n\"\n + \"Format: add w/WORD m/MEANING [t/TAG]\\n\"\n + \"The TAG field is optional\";\n } else if (instruction.equals(\"addsyn\")) {\n return \"Add synonyms to a word.\\n\"\n + \"Format: addsyn w/WORD s/synonyms\\n\"\n + \"For more than one synonym, you may separate them by a space\";\n } else if (instruction.equals(\"add_example\")) {\n return \"Add example sentence for a word.\\n\"\n + \"Format: add_example w/ORDER e/EXAMPLE\\n\";\n } else if (instruction.equals(\"delete\")) {\n return \"Delete a word or tag from wordbank.\\n\"\n + \"Format: delete w/WORD_TO_BE_DELETED [t/TAG]\";\n } else if (instruction.equals(\"edit\")) {\n return \"Edit the meaning of word.\\n\"\n + \"Format: edit w/WORD m/MEANING\";\n } else if (instruction.equals(\"exit\")) {\n return \"Exit WordUp.\\n\"\n + \"Format: exit\";\n } else if (instruction.equals(\"freq\")) {\n return \"Show search frequency of each word.\\n\"\n + \"Format: freq [o/ORDER]\\n\"\n + \"(ORDER can be \\\"asc\\\" for ascending and \\\"desc\\\" for descending)\";\n } else if (instruction.equals(\"history\")) {\n return \"View recent search history.\\n\"\n + \"Format: history {int value}\";\n } else if (instruction.equals(\"list\")) {\n return \"Show the list of words in wordbank.\\n\"\n + \"Format: list [o/ORDER]\\n\"\n + \"(ORDER can be \\\"asc\\\" for ascending and \\\"desc\\\" for descending)\";\n } else if (instruction.equals(\"list_tags\")) {\n return \"Show the list of all tags in tagbank.\\n\"\n + \"Format: list_tags\\n\";\n } else if (instruction.equals(\"schedule\")) {\n return \"Schedule words to study.\\nReminder pop up will be shown at time set.\\n\"\n + \"Format: schedule\";\n } else if (instruction.equals(\"search\")) {\n return \"Search the meaning of a specific word.\\n\"\n + \"Format: search w/WORD_TO_BE_SEARCHED\";\n } else if (instruction.equals(\"search_begin\")) {\n return \"Search for words with their prefix.\\n\"\n + \"Format: search_begin w/d\";\n } else if (instruction.equals(\"search_syn\")) {\n return \"Search for synonyms of a word.\\n\"\n + \"Format:\\n\"\n + \"search_syn w/WORD\\n\";\n } else if (instruction.equals(\"search_tag\")) {\n return \"Search for all words of a specific tag or all tags of a specific word.\\n\"\n + \"Format:\\n\"\n + \"Searching for words of a tag: search_tag t/TAG\\n\"\n + \"Searching for tags of a word: search_tag w/WORD\";\n } else if (instruction.equals(\"tag\")) {\n return \"Add tags of a specific word.\\n\"\n + \"Format: tag w/WORD t/TAG...\\n\"\n + \"For more than one tag, please append \\\"t/\\\" before each tag\";\n } else if (instruction.equals(\"quiz\")) {\n return \"Take a quiz to test yourself.\\n\"\n + \"Format: quiz\";\n } else {\n return \"Here are the commands for WordUp.\\n\"\n + \"add, addsyn, add_example, delete, edit, exit, freq, help, history, list, list_tags\"\n + \", schedule, search, search_begin, search_syn, search_tag, tag, quiz\\n\"\n + \"Enter \\\"help [command]\\\" for more details.\";\n }\n }",
"public String getDescription(String _opt){\r\n\t\treturn getOption(_opt).getDescription();\r\n\t}",
"private static String optionsListing() {\n\t\tString result = \"\\nUsage: java -jar comtor.jar -dir dirname\\n\\n\";\n\t\tresult += \"Options:\\n\";\n\t\t\n\t\tresult += \"-dir dirname\\t\\tSpecified the pathname of the directory in which COMTOR will \"; \n\t\tresult += \"search for Java source code\\n\\t\\t\\tfiles (packaged and non-packaged).\\n\\n\";\n\t\t\n\t\tresult += \"-help | --help\\t\\tThis help message\\n\";\n\t\tresult += \"\\n\\n\";\n\t\treturn result;\n\t}",
"public abstract String getHelpInfo();",
"public String getSpecificHelp() {\n return specificHelp;\n }",
"private int help(Integer parameterIndex) throws ExceptionMalformedInput\n {\n System.out.println(\"usage: \");\n\n Field[] fieldList = this.getClass().getFields();\n\n for (Field field : fieldList)\n {\n if (!field.getName().startsWith(USER_OPTION_FIELD_NAME))\n continue;\n\n try\n {\n String attributeName = (String) field.get(this);\n String fieldName = USER_HELP_FIELD_NAME + field.getName().substring(USER_OPTION_FIELD_NAME.length()); //USER_HELP_FIELD_NAME+attributeName;\n String help = (String) this.getClass().getDeclaredField(fieldName).get(this);\n System.out.println(\"\\t\" + USER_OPTION + attributeName + \": \\t\" + help);\n }\n catch(Exception e)\n {\n throw new RuntimeException(\"Internal error.\" +\n \" We forgot to declare a help for the user option \" + field);\n }\n\n }\n System.exit(0);\n\n return parameterIndex + 1;\n }",
"private void help() {\n HelpFormatter formater = new HelpFormatter();\n\n formater.printHelp(\"Main\", options);\n System.exit(0);\n }",
"private void showHelp(CommandSender sender) {\n StringBuilder user = new StringBuilder();\n StringBuilder admin = new StringBuilder();\n\n for (Command cmd : commands.values()) {\n CommandInfo info = cmd.getClass().getAnnotation(CommandInfo.class);\n if(!PermHandler.hasPerm(sender, info.permission())) continue;\n\n StringBuilder buffy;\n if (info.permission().startsWith(\"dar.admin\"))\n buffy = admin;\n else \n buffy = user;\n \n buffy.append(\"\\n\")\n .append(ChatColor.RESET).append(info.usage()).append(\" \")\n .append(ChatColor.YELLOW).append(info.desc());\n }\n\n if (admin.length() == 0) {\n \tMessenger.sendMessage(sender, \"Available Commands: \"+user.toString());\n } else {\n \tMessenger.sendMessage(sender, \"User Commands: \"+user.toString());\n \tMessenger.sendMessage(sender, \"Admin Commands: \"+admin.toString());\n }\n }",
"char displayHelp(SideType s) {\n switch (s) {\n case IN:\n return SIDE_IN;\n case OUT:\n return SIDE_OUT;\n case FLAT:\n return SIDE_FLAT;\n }\n // in case of a problem\n return '*';\n }",
"private static String _createMessage (@Nonnull final Collection <IRequiredOption> aMissingOptions)\n {\n final StringBuilder buf = new StringBuilder (\"Missing required option\");\n if (aMissingOptions.size () != 1)\n buf.append ('s');\n buf.append (\": \").append (StringHelper.getImplodedMapped (\", \", aMissingOptions, x -> {\n if (x instanceof RequiredArg)\n return ((RequiredArg) x).getName ();\n return ((RequiredGroup) x).getGroup ().getAsString ();\n }));\n return buf.toString ();\n }",
"private static void help() {\n\t\tHelpFormatter formater = new HelpFormatter();\n\t\tformater.printHelp(\"Main\", options);\n\t\tSystem.exit(0);\n\t}",
"void printHelp();",
"public void displayHelp() {\n io.println(\"To insert a new CNF use the following format: \\n1 2; -1 2; 3 1; -3 2\");\n io.println(\"Where each number represents a variable. If the number has a minus sign in front it means it is the negation of that variable.\");\n io.println(\"Each disjunction pair is separated by a semicolon so for example above looks in mathematical form:\");\n io.println(\"(x\" + UnicodeUtil.numbers[1] + \" \" + UnicodeUtil.disjunction + \" x\" + UnicodeUtil.numbers[2] + \") \" + UnicodeUtil.conjunction + \" (\" + UnicodeUtil.negation\n + \"x\" + UnicodeUtil.numbers[1] + \" \" + UnicodeUtil.disjunction + \" x\" + UnicodeUtil.numbers[2] + \") \" + UnicodeUtil.conjunction + \" (x\" + UnicodeUtil.numbers[3] + \" \"\n + UnicodeUtil.disjunction + \" x\" + UnicodeUtil.numbers[1] + \") \" + UnicodeUtil.conjunction + \" (\" + UnicodeUtil.negation + \"x\" + UnicodeUtil.numbers[3] + \" \" + UnicodeUtil.disjunction + \" x\" + UnicodeUtil.numbers[2] + \")\");\n io.println(\"Note that this is a 2SAT-solver so each disjunction can hold just two variables.\");\n }",
"public static Options getCmdLineOptions(){\n\t\tOptions options = new Options();\n\t\t//\t\toptions.addOption(OptionBuilder.withArgName(\"outputPath\").hasArg().withDescription(\"output sequence lengths to a file [if not specified, lengths are printed to stdout]\").create(Thunder.OPT_PATH_OUTPUT));\n\t\t//\t\toptions.addOption(OptionBuilder.withArgName(\"maxExpectedLength\").hasArg().withDescription(\"print sequences exceeding this maximum expected size (for debugging + QC)\").create(\"m\"));\n\t\treturn options;\n\t}",
"private static void help() {\n HelpFormatter formater = new HelpFormatter();\n formater.printHelp(\"SGD-SVM\", options);\n System.exit(0);\n }",
"private String _getUsage() {\n\n StringBuffer buf = new StringBuffer();\n \n // Add FEI version number string and copyright statement\n buf.append(Constants.COPYRIGHT + \"\\n\");\n buf.append(Constants.CLIENTVERSIONSTR + \"\\n\");\n buf.append(Constants.APIVERSIONSTR + \"\\n\\n\");\n\n // All usuage statements begin with Usage: command name\n buf.append(\"Usage:\\t\" + this._userScript + \" \");\n\n if (this._actionId.equals(Constants.CREDLOGIN))\n {\n buf.append(\"[<user name> [<server group>] ] [help]\");\n }\n else if (this._actionId.equals(Constants.CREDLOGOUT))\n {\n buf.append(\"[<server group>] [help]\");\n }\n else if (this._actionId.equals(Constants.CREDLIST))\n {\n buf.append(\"[help]\");\n }\n else if (this._actionId.equals(Constants.ADDFILE))\n {\n buf.append(\"[<server group>:]<file type> <file name expression>\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [comment \\'<comment text>\\'] [crc] [receipt]\\n\")\n .append(\"\\t[autodelete] [filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> <file name>...\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [comment \\'<comment text>\\'] \\n\")\n .append(\"\\t[autodelete] [crc] [receipt]\");\n }\n else if (this._actionId.equals(Constants.REPLACEFILE)) \n {\n buf.append(\"[<server group>:]<file type> <file name expression>\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [comment \\'<comment text>\\'] [crc] [receipt]\\n\")\n .append(\"\\t[autodelete] [diff] [filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> <file name>...\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [comment \\'<comment text>\\'] \\n\")\n .append(\"\\t[autodelete] [crc] [receipt] [diff]\");\n }\n else if (this._actionId.equals(Constants.GETFILES))\n {\n buf.append(\"[<server group>:]<file type> [\\'<file name expression>\\'] \\n\")\n .append(\"\\t[output <path>] {[before|after <datetime>] | \\n\")\n .append(\"\\t[between <datetime1> and <datetime2>]} \\n\")\n .append(\"\\t[format \\'<date format>\\'] [crc] [saferead] [receipt] \\n\")\n .append(\"\\t{[replace|version]} [diff] [query <queryfile>] [replicate]\\n\")\n .append(\"\\t[replicateroot <rootdir>] [filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> [\\'<file name expression>\\']\\n\")\n .append(\"\\t[output <path>] {[before|after <date-time>] | \\n\")\n .append(\"\\t[between <date-time1> and <date-time2>]} \\n\")\n .append(\"\\t[format \\'<date format>\\'] [crc] [saferead] [receipt] \\n\")\n .append(\"\\t{[replace|version]} [diff]\");\n }\n else if (this._actionId.equals(Constants.AUTOGETFILES))\n {\n buf.append(\"[<server group:]<file type> \\n\")\n .append(\"\\t[output <path>] [restart] [using <option file>] {[pull|push]} \\n\")\n .append(\"\\t{[replace|version]} [format \\'<date format>\\'] [query <queryfile>]\\n\")\n .append(\"\\t[replicate] [replicateroot <rootdir>] [filehandler] [diff] [help]\\n\");\n buf.append(\"Option File Format:\\n\")\n .append(\"\\tcrc\\n\")\n .append(\"\\tdiff\\n\")\n .append(\"\\tinvoke <command>\\n\")\n .append(\"\\tinvokeExitOnError\\n\")\n .append(\"\\tinvokeAsync\\n\")\n .append(\"\\tlogFile <file name>\\n\")\n .append(\"\\tlogFileRolling {monthly|weekly|daily|hourly|minutely|halfdaily}\\n\")\n .append(\"\\tmailMessageFrom <email address>\\n\")\n .append(\"\\tmailMessageTo <email address, email address, ...>\\n\")\n .append(\"\\tmailReportAt <hh:mm am|pm, hh:mm am|pm, ...>\\n\")\n .append(\"\\tmailReportTo <email address, email address, ...>\\n\")\n .append(\"\\tmailSMTPHost <host name>\\n\")\n .append(\"\\tmailSilentReconnect\\n\")\n .append(\"\\treceipt\\n\").append(\"\\treplace\\n\")\n .append(\"\\tsaferead\\n\").append(\"\\tversion\");\n }\n else if (this._actionId.equals(Constants.AUTOSHOWFILES))\n {\n buf.append(\"[<server group:]<file type> \\n\")\n .append(\"\\t[output <path>] [restart] [using <option file>] {[pull|push]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [query <queryfile>] [filehandler]\\n\")\n .append(\"\\t[help]\\n\");\n buf.append(\"Option File Format:\\n\")\n .append(\"\\tinvoke <command>\\n\")\n .append(\"\\tinvokeExitOnError\\n\")\n .append(\"\\tinvokeAsync\\n\")\n .append(\"\\tlogFile <file name>\\n\")\n .append(\"\\tlogFileRolling {monthly|weekly|daily|hourly|minutely|halfdaily}\\n\")\n .append(\"\\tmailMessageFrom <email address>\\n\")\n .append(\"\\tmailMessageTo <email address, email address, ...>\\n\")\n .append(\"\\tmailReportAt <hh:mm am|pm, hh:mm am|pm, ...>\\n\")\n .append(\"\\tmailReportTo <email address, email address, ...>\\n\")\n .append(\"\\tmailSMTPHost <host name>\\n\")\n .append(\"\\tmailSilentReconnect\\n\");\n }\n else if (this._actionId.equals(Constants.MAKECLEAN))\n {\n buf.append(\"[<server group>:]<file type> [help]\");\n }\n else if (this._actionId.equals(Constants.DELETEFILE))\n {\n buf.append(\"[<server group>:]<file type> \\'<file name expression>\\' \\n\")\n .append(\"\\t[filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> \\'<file name expression>\\'\");\n }\n else if (this._actionId.equals(Constants.SHOWFILES))\n {\n buf.append(\"[<server group>:]<file type> [\\'<file name expression>\\'] \\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] {[long | verylong]} \\n\")\n .append(\"\\t[query <queryfile>] [filehandler] [help]\");\n }\n else if (this._actionId.equals(Constants.SETREFERENCE))\n {\n buf.append(\"[<server group>:]<file type> <file name> \\n\")\n .append(\"\\tvft <VFT name> reference <ref name> [help]\");\n }\n else if (this._actionId.equals(Constants.RENAMEFILE))\n {\n buf.append(\"[<server group>:]<file type> <old file name> <new file name>\\n\")\n .append(\"\\t[filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\")\n .append(this._userScript)\n .append(\" using <option file>\\n\")\n .append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> <old file name> <new file name>\");\n }\n else if (this._actionId.equals(Constants.COMMENTFILE))\n {\n buf.append(\"[<server group>:]<file type> <file name> comment \\n\")\n .append(\"\\t\\'<comment text>\\' [filehandler] [help]\");\n }\n else if (this._actionId.equals(Constants.COMPUTECHECKSUM))\n {\n buf.append(\"<file name expression> [help]\");\n }\n else if (this._actionId.equals(Constants.CHECKFILES))\n {\n buf.append(\"[<server group>:]<file type> [\\'<file name expression>\\']\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] {[long | verylong]} [help]\\n\\n\")\n .append(\"Usage:\\t\")\n .append(this._userScript + \" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> \\'<file name expression>\\'\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] {[long | verylong]}\");\n }\n else if (this._actionId.equals(Constants.DISPLAY))\n {\n buf.append(\"[<server group>:]<file type> <file name> [help]\");\n }\n else if (this._actionId.equals(Constants.ACCEPT))\n {\n buf.append(\"[<server group>:]<file type> for <add|replace|get|delete>\\n\")\n .append(\"\\t[output <path>] [crc] [saferead] [autodelete] {[replace|version]}\\n\")\n .append(\"\\t[diff] [help]\");\n }\n else if (this._actionId.equals(Constants.SHOWTYPES))\n {\n buf.append(\"{\\'[<server group>:][<file type expression>]\\'|[srvgroups]}\\n\")\n .append(\"\\t[classic] [help]\\n\");\n }\n else if (this._actionId.equals(Constants.CHECK))\n {\n buf.append(\"[help]\");\n }\n else if (this._actionId.equals(Constants.REGISTERFILE))\n {\n buf.append(\"[<server group>:]<file type> <file name expression>\\n\")\n .append(\"\\t[replace] [force] [comment \\'<comment text>\\']\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [receipt] [filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> <file name>... [replace] [force]\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [comment \\'<comment text>\\'] [receipt]\");\n }\n else if (this._actionId.equals(Constants.UNREGISTERFILE))\n {\n buf.append(\"[<server group>:]<file type> \\'<file name expression>\\' \\n\")\n .append(\"\\t[filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> \\'<file name expression>\\'\");\n }\n else if (this._actionId.equals(Constants.LOCKFILETYPE))\n {\n buf.append(\"[<server group>:]<file type> [owner | group] [help]\\n\"); \n }\n else if (this._actionId.equals(Constants.UNLOCKFILETYPE))\n {\n buf.append(\"[<server group>:]<file type> [owner | group] [help]\\n\"); \n }\n else if (this._actionId.equals(Constants.CHANGEPASSWORD))\n {\n buf.append(\"<server group> [help]\\n\"); \n }\n else\n {\n }\n \n \n \n return buf.toString();\n }",
"private static void printHelp(CmdLineParser parser) {\n\tSystem.out.print(\"Usage: Main \");\n\tparser.printSingleLineUsage(System.out);\n\tSystem.out.println(\"\\n\");\n\tparser.printUsage(System.out);\n\tSystem.out.println(\"\");\n\treturn;\n }",
"@Override\n public void printHelp() {\n\n }",
"@Override\n public String getHelp() {\n return name;\n }",
"private SlackerOutput handleHelp() {\n logger.debug(\"Handling help request\");\n List<WorkflowMetadata> metadata = registry.getWorkflowMetadata();\n Collections.sort(metadata, new Comparator<WorkflowMetadata>() {\n @Override\n public int compare(WorkflowMetadata m1, WorkflowMetadata m2) {\n String p1 = StringUtils.join(m1.getPath(), \"::\");\n String p2 = StringUtils.join(m2.getPath(), \"::\");\n return p1.compareTo(p2);\n }\n });\n StringBuilder sb = new StringBuilder(\"I can understand:\\n\");\n for (WorkflowMetadata wm : metadata) {\n sb.append(StringUtils.join(wm.getPath(), \" \"))\n .append(\" \")\n .append(trimToEmpty(wm.getArgsSpecification()))\n .append(\"\\n\").append(\" \")\n .append(trimToEmpty(wm.getName()))\n .append(\" - \").append(trimToEmpty(wm.getDescription()))\n .append(\"\\n\");\n }\n return new TextOutput(sb.toString());\n }",
"@Override\n public String getHelp() {\n return getController().getNameOfConnection(numberOfConnection);\n }",
"private static void displayHelp(){\n System.out.println(\"-host hostaddress: \\n\" +\n \" connect the host and run the game \\n\" +\n \"-help: \\n\" +\n \" display the help information \\n\" +\n \"-images: \\n\" +\n \" display the images directory \\n\" +\n \"-sound: \\n\" +\n \" display the sounds file directory \\n\"\n\n );\n }",
"public String getHelp() {\n\t\treturn \"DCAU type\";\n\t}",
"@Override\n @SuppressWarnings(\"static-access\")\n public void setJCLIOptions() {\n Option Help = new Option(\"h\", \"help\", false, \"Show Help.\");\n this.jcOptions.addOption(Help);\n this.jcOptions.addOption(OptionBuilder.withLongOpt(\"file\").withDescription(\"File to Convert\").isRequired(false).hasArg().create(\"f\"));\n //this.jcOptions.addOption(OptionBuilder.withLongOpt(\"outputfile\").withDescription(\"Output File\").isRequired(false).hasArg().create(\"of\"));\n OptionGroup jcGroup = new OptionGroup();\n jcGroup.addOption(OptionBuilder.withLongOpt(\"texttobinary\").withDescription(\"Convert text to Binary\").create(\"ttb\"));\n jcGroup.addOption(OptionBuilder.withLongOpt(\"binarytotext\").withDescription(\"Convert binary to text\").create(\"btt\"));\n this.jcOptions.addOptionGroup(jcGroup);\n }",
"@Override\r\n\tpublic String getHelp() {\r\n\t\treturn \"DROP | SOLTAR <id>\";\r\n\t}",
"@Override\r\n\tpublic String getHelp() {\r\n\t\treturn \"DROP | SOLTAR <id>\";\r\n\t}",
"public boolean isFullHelpMode();",
"public String toString()\n\t{\n\t\treturn \"connection type \" + connType + \" length \" + length + \" data \"\n\t\t\t\t+ (opt.length == 0 ? \"-\" : DataUnitBuilder.toHex(opt, \" \"));\n\t}",
"private void print_help_and_exit() {\n System.out.println(\"A bunch of simple directus admin cli commands\");\n System.out.println(\"requires DIRECTUS_API_HOST and DIRECTUS_ADMIN_TOKEN environment variables to be set\");\n System.out.println();\n\n COMMAND_METHODS.values().forEach(c -> {\n for (String desriptionLine : c.descriptionLines) {\n System.out.println(desriptionLine);\n }\n System.out.println();\n });\n\n System.out.println();\n System.exit(-1);\n }",
"public String osFlagsToString() {\n String result = \"\";\n if ((osFlags & FLAG_OS_RECOVERY) != 0) {\n result += \"Recovery,\";\n }\n if ((osFlags & FLAG_OS_SIGNED_MCU) != 0) {\n result += \"Signed MCU,\";\n }\n if ((osFlags & FLAG_OS_ONBOARDED) != 0) {\n result += \"Onboarded,\";\n }\n if ((osFlags & FLAG_TRUST_ISSUER) != 0) {\n result += \"Trust issuer,\";\n }\n if ((osFlags & FLAG_TRUST_CUSTOMCA) != 0) {\n result += \"Trust Custom CA,\"; \n }\n if ((osFlags & FLAG_HSM_INITIALIZED) != 0) {\n result += \"Personalized,\";\n }\n if ((osFlags & FLAG_PIN_VALIDATED) != 0) {\n result += \"PIN ready,\";\n }\n if (result.length() == 0) {\n return result;\n }\n else {\n return result.substring(0, result.length() - 1);\n }\n }",
"private String formatHelpItem(String name, String description) {\n return \"\\t\" + name + \" - \" + description;\n }",
"public static String options(Integer option) {\n\t\tString options = \"[status] for status - [quit] to close\";\n\t\tif(option == 1)\n\t\t\tSystem.out.println(options);\n\t\treturn options;\n\t}",
"public void printHelpCommands(){\r\n\t\t//Construct the help command output\r\n\t\tprintAsTable(\"exit\",\t\t \t\t\t\t\"Exit the program.\");\r\n\t\tprintAsTable(\"help\",\t\t \t\t\t\t\"Print out the usage.\");\r\n\t\tprintAsTable(\"host\",\t\t\t\t\t\t\"Enumerate all hosts.\");\r\n\t\tprintAsTable(\"host hname info\", \t\t\t\"Show info of host name.\");\r\n\t\tprintAsTable(\"host hname datastore\", \t\t\"Enumerate datastores of host hname.\");\r\n\t\tprintAsTable(\"host hname network\", \t\t\t\"Enumerate networks of host hname.\");\r\n\t\tprintAsTable(\"vm\", \t\t\t\t\t\t\t\"Enumerate all virtual machines.\");\r\n\t\tprintAsTable(\"vm vname info\", \t\t\t\t\"Show info of VM vname.\");\r\n\t\tprintAsTable(\"vm vname on\", \t\t\t\t\"Power on VM vname and wait until task completes.\");\r\n\t\tprintAsTable(\"vm vname off\", \t\t\t\t\"Power off VM vname and wait until task completes.\");\r\n\t\tprintAsTable(\"vm vname shutdown\", \t\t\t\"Shutdown guest of VM vname.\");\t\t\t\r\n\t}",
"private static void help() {\n System.out.println(\"Supported Command List:\");\n System.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\");\n System.out.println(\"To draw canvas press: C <width> <height>\");\n System.out.println(\"To draw rectangle press: R <x1> <y1> <x2> <y2>\");\n System.out.println(\"To draw Line press : L <x1> <y1> <x2> <y2>\");\n System.out.println(\"To fill canvas press : B <x> <y> <c>\");\n System.out.println(\"To quit press: Q\");\n System.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\");\n System.out.println();\n }",
"private void printHelp() \n {\n Logger.Log(\"You have somehow ended up in this strange, magical land. But really you just want to go home.\");\n Logger.Log(\"\");\n Logger.Log(\"Your command words are:\");\n parser.showCommands();\n Logger.Log(\"You may view your inventory or your companions\");\n }",
"public static String help() {\n return \" > create table <table_name> (attr_name type [, attr_name type]+);\\n\" +\n \"To create a new table with name 'table_name' and as many attributes as\\n\" +\n \"required, each of them with a given name 'attr_name' and type 'type'\\n\";\n }",
"Menu getMenuHelp();",
"public EmbedBuilder getEmbedInfo() {\n EmbedBuilder builder = new EmbedBuilder().setTitle(\"Command: \\\"\" + getName() + \"\\\"\")\n .setColor(BotConfiguration.getPromptColor());\n if (getDescription() != null) {\n builder.setDescription(getDescription());\n }\n if (getParent() != null) {\n builder.addField(\"Command group\", getParent().getName(), false);\n }\n builder.addField(\"Prefix\", getPrefix(), false);\n\n if (getParent() != null)\n builder.addField(\"Syntax\", MarkdownUtil.monospace(\n BotConfiguration.getBotPrefix() + getParent().getPrefix() + \" \" + getPrefix() + \" \" + getSyntax()),\n false);\n else\n builder.addField(\"Syntax\",\n MarkdownUtil.monospace(BotConfiguration.getBotPrefix() + getPrefix() + \" \" + getSyntax()), false);\n\n if (getExamples() != null && getExamples().length != 0) {\n StringBuilder exampleValue = new StringBuilder();\n for (String example : getExamples()) {\n if (getParent() != null) {\n exampleValue.append(BotConfiguration.getBotPrefix() + getParent().getPrefix() + \" \" + getPrefix()\n + \" \" + example + \"\\n\");\n } else {\n exampleValue.append(BotConfiguration.getBotPrefix() + getPrefix() + \" \" + example + \"\\n\");\n }\n }\n builder.addField(\"Example\" + (getExamples().length > 1 ? \"s\" : \"\"),\n MarkdownUtil.monospace(exampleValue.toString()), false);\n }\n\n return builder;\n }"
]
| [
"0.78381985",
"0.6613192",
"0.65144",
"0.64384234",
"0.63297534",
"0.62991613",
"0.62907416",
"0.6161138",
"0.61097836",
"0.60704553",
"0.59466016",
"0.59319544",
"0.59065425",
"0.58907384",
"0.5782935",
"0.5762235",
"0.5730736",
"0.57205266",
"0.5702735",
"0.56479084",
"0.5642447",
"0.55917376",
"0.55829376",
"0.55453175",
"0.553776",
"0.55039287",
"0.55033714",
"0.5491832",
"0.5490645",
"0.548161",
"0.54746747",
"0.5460447",
"0.5448747",
"0.5435044",
"0.5416481",
"0.54069006",
"0.5398637",
"0.5397518",
"0.5358598",
"0.53547376",
"0.534967",
"0.5339488",
"0.533931",
"0.5335355",
"0.53291744",
"0.53022975",
"0.5289307",
"0.5273895",
"0.52684647",
"0.5267816",
"0.5265909",
"0.5250011",
"0.5222499",
"0.5208367",
"0.51981854",
"0.51913357",
"0.5186029",
"0.5184608",
"0.51803595",
"0.51728815",
"0.5160895",
"0.5148148",
"0.51459736",
"0.5140427",
"0.5080491",
"0.5075001",
"0.50637656",
"0.50594634",
"0.50560045",
"0.50419354",
"0.50373054",
"0.5028042",
"0.5026979",
"0.5017279",
"0.5013838",
"0.5007687",
"0.5005531",
"0.50026196",
"0.50023437",
"0.4997168",
"0.49962366",
"0.49893975",
"0.49806714",
"0.49632278",
"0.4962719",
"0.49464664",
"0.49269938",
"0.49269938",
"0.4919786",
"0.4918838",
"0.49118516",
"0.4909367",
"0.49039897",
"0.49027923",
"0.49011567",
"0.4891467",
"0.4887364",
"0.4886842",
"0.48841438",
"0.4877041"
]
| 0.7881661 | 0 |
Data model for Table component. | public interface TableModel<T> extends Pageable {
/**
* @return number of rows.
*/
int getRowCount();
/**
* @return number of columns.
*/
int getColumnCount();
TableColumn getTableColumn(int column);
T getRowValue(int row);
ValueModel<Criterion> getFilterModel();
ValueModel<Order> getOrderModel();
void addListener(TableModelListener listener);
void removeListener(TableModelListener listener);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Table\n extends Tabular\n{\n /** @return the names of the columns in this table or an empty list if no columns have been defined, never null */\n List<String> getColumns();\n\n /**\n * Define the name of a column\n *\n * @param index the position in the header starting with 0\n * @param name the name to be used for this column\n * @return this to allow chaining\n */\n Table setColumn(int index, String name);\n\n /**\n * Determine the name of a column if the position is known.\n *\n * @param index the position in the header starting with 0\n * @return the column name at the given position, null if unknown\n */\n String getColumn(int index);\n\n /**\n * Determine the index of a column if the name is known.\n *\n * @param column the case insensitive name of the respective column\n * @return the index of the column in the headings, -1 if the column is unknown\n */\n int indexOf(String column);\n\n /**\n * Retrieve the value of the given row and column\n *\n * If the row is out of bounds or the column is unknown will simply return <code>null</code> to indicate that no value\n * has been set.\n *\n * @param column the column name in the table\n * @param row the row number in the table starting with 0\n * @return the associated value of that cell, can be null\n */\n\n String getValue(String column, int row);\n\n /**\n * Retrieve the configuration parameters of this table.\n *\n * As there can be many implementations of a table and these implementations are configured in a different manner,\n * this is the place where these parameters can be retrieved in a uniform manner and passed to other layers, e.g. to\n * configure appropriate writers and readers or simply to setup the respective factories.\n *\n * @return the not-null list of (key, value) pairs that configure this particular table\n */\n Map<String, String> getParameters();\n}",
"@Override\n\t\t\t\tpublic TableModel getModel() {\n\t\t\t\t\treturn model;\n\t\t\t\t}",
"public Table() {\n this.tableName = \"\";\n this.rows = new HashSet<>();\n this.columnsDefinedOrder = new ArrayList<>();\n }",
"public CellTable<Attribute> getTable() {\n\n\t\tretrieveData();\n\n\t\t// Table data provider.\n\t\tdataProvider = new ListDataProvider<Attribute>(list);\n\n\t\t// Cell table\n\t\ttable = new PerunTable<Attribute>(list);\n\n\t\t// Connect the table to the data provider.\n\t\tdataProvider.addDataDisplay(table);\n\n\t\t// Sorting\n\t\tListHandler<Attribute> columnSortHandler = new ListHandler<Attribute>(dataProvider.getList());\n\t\ttable.addColumnSortHandler(columnSortHandler);\n\n\t\t// set empty content & loader\n\t\ttable.setEmptyTableWidget(loaderImage);\n\n\t\t// checkbox column column\n\t\tif (checkable) {\n\t\t\t// table selection\n\t\t\ttable.setSelectionModel(selectionModel, DefaultSelectionEventManager.<Attribute> createCheckboxManager(0));\n\t\t\ttable.addCheckBoxColumn();\n\t\t}\n\n\t\t// Create ID column.\n\t\ttable.addIdColumn(\"Attr ID\", null, 90);\n\n\t\t// Name column\n\t\tColumn<Attribute, Attribute> nameColumn = JsonUtils.addColumn(new PerunAttributeNameCell());\n\n\t\t// Description column\n\t\tColumn<Attribute, Attribute> descriptionColumn = JsonUtils.addColumn(new PerunAttributeDescriptionCell());\n\n\t\t// Value column\n\t\tColumn<Attribute, Attribute> valueColumn = JsonUtils.addColumn(new PerunAttributeValueCell());\n\t\tvalueColumn.setFieldUpdater(new FieldUpdater<Attribute, Attribute>() {\n\t\t\tpublic void update(int index, Attribute object, Attribute value) {\n\t\t\t\tobject = value;\n\t\t\t\tselectionModel.setSelected(object, object.isAttributeValid());\n\t\t\t}\n\t\t});\n\n\t\t// updates the columns size\n\t\tthis.table.setColumnWidth(nameColumn, 200.0, Unit.PX);\n\n\t\t// Sorting name column\n\t\tnameColumn.setSortable(true);\n\t\tcolumnSortHandler.setComparator(nameColumn, new AttributeComparator<Attribute>(AttributeComparator.Column.TRANSLATED_NAME));\n\n\t\t// Sorting description column\n\t\tdescriptionColumn.setSortable(true);\n\t\tcolumnSortHandler.setComparator(descriptionColumn, new AttributeComparator<Attribute>(AttributeComparator.Column.TRANSLATED_DESCRIPTION));\n\n\t\t// Add sorting\n\t\tthis.table.addColumnSortHandler(columnSortHandler);\n\n\t\t// Add the columns.\n\t\tthis.table.addColumn(nameColumn, \"Name\");\n\t\tthis.table.addColumn(valueColumn, \"Value\");\n\t\tthis.table.addColumn(descriptionColumn, \"Description\");\n\n\t\treturn table;\n\n\t}",
"public DataTableModel() {\n super();\n LanguageObservable.getInstance().attach(this);\n setLocalizedResourceBundle(\"ch.ethz.origo.jerpa.jerpalang.perspective.ededb.EDEDB\");\n initColumns();\n data = new LinkedList<DataRowModel>();\n }",
"Table getTable();",
"public Table<Integer, Integer, String> getData();",
"public TabellaModel() {\r\n lista = new Lista();\r\n elenco = new Vector<Persona>();\r\n elenco =lista.getElenco();\r\n values = new String[elenco.size()][3];\r\n Iterator<Persona> iterator = elenco.iterator();\r\n while (iterator.hasNext()) {\r\n\t\t\tfor (int i = 0; i < elenco.size(); i++) {\r\n\t\t\t\tpersona = new Persona();\r\n\t\t\t\tpersona = (Persona) iterator.next();\r\n\t\t\t\tvalues[i][0] = persona.getNome();\r\n\t\t\t\tvalues[i][1] = persona.getCognome();\r\n\t\t\t\tvalues[i][2] = persona.getTelefono();\t\r\n\t\t\t}\r\n\t\t}\r\n setDataVector(values, columnNames);\t\r\n }",
"public TestFrame() {\n\n final String[] columnNames = {\"Nombre\",\n \"Apellido\",\n \"webeo\",\n \"Años de Practica\",\n \"Soltero(a)\"};\n final Object[][] data = {\n\n {\"Lhucas\", \"Huml\",\n \"Patinar\", new Integer(3), new Boolean(true)},\n {\"Kathya\", \"Walrath\",\n \"Escalar\", new Integer(2), new Boolean(false)},\n {\"Marcus\", \"Andrews\",\n \"Correr\", new Integer(7), new Boolean(true)},\n {\"Angela\", \"Lalth\",\n \"Nadar\", new Integer(4), new Boolean(false)}\n };\n\n Vector dataV1 = new Vector();\n dataV1.add(\"XXXX\");\n dataV1.add(\"YYYY\");\n dataV1.add(\"JJJJ\");\n\n Vector dataV2 = new Vector();\n dataV2.add(\"XX2XX\");\n dataV2.add(\"Y2YYY\");\n dataV2.add(\"J2JJJ\");\n\n List dataF = new ArrayList();\n dataF.add(dataV1);\n dataF.add(dataV2);\n\n /*Vector dataC = new Vector();\n dataC.add(\"1\");\n dataC.add(\"2\");\n dataC.add(\"J23JJJ\");\n\n //model = new ModeloDatosTabla(data, true);\n model = new TableModel_1_1(dataC, dataF);\n model2 = new TableModel(columnNames, data, false);\n*/\n\n\n\n initComponents();\n\n\n }",
"public TableObject()\r\n {\r\n\tsuper(ObjectType.Table);\r\n\tglobal = false;\r\n }",
"private EstabelecimentoTable() {\n\t\t\t}",
"private ByaTableModel() {\n\t}",
"public EditingTable() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}",
"public TableModel getModel() {\n return model;\n }",
"public DefaultTableColumnModelExt() {\r\n super();\r\n }",
"public BasicTableModel() {\n\t\tcolNames = new ArrayList<String>();\n\t\tdata = new ArrayList<List>();\n\t}",
"public TableEx() {\r\n setStyleName(\"gwtEx-Table\");\r\n rf = getRowFormatter();\r\n this.addClickHandler(tableClickTable);\r\n }",
"private DefaultTableModel createModel() {\n List list = getDefaultInitialData();//obtenemos toda la lista a mostrar\n Vector data = new Vector();//vector tabla\n if (list != null) {\n for (Object o : list) {\n Vector columnas = new Vector();//columnas para llenar la tabla\n //lenar el vector columna\n Object object = null;\n for (Object x : title) {\n try {\n object = o.getClass().getMethod(\"get\" + convertir(x.toString()), new Class[]{}).invoke(o);\n columnas.add(object);\n } catch (NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {\n Logger.getLogger(JCAbstractXTable.class.getName()).log(Level.SEVERE, null, e);\n }\n }\n data.add(columnas);\n }\n }\n return new DefaultTableModel(data, nameColumn());\n }",
"public Table(ElementStructure structure) {\n\t\tsuper(structure);\n\t\tfields = structure.data.fieldArray(vis.positionFields());\n\t\tpadding = ModelUtil.getPadding(vis, StyleTarget.makeElementTarget(null), 2);\n\t\tpadding.top += 15; // For the titles\n\t\tfraction = divideColumnSpace(fields);\n\t\tStyleTarget styleTarget = StyleTarget.makeElementTarget(\"text\");\n\t\tfontSize = ModelUtil.getFontSize(vis, styleTarget, 12);\n\t}",
"@Override\n\tpublic void configTable() {\n\t\tString[][] colNames = { { \"Name\", \"name\" }, { \"Ward No\", \"wardNo\" }, { \"Max. patients\", \"maxPatients\" }, { \"No of Patients\", \"patientCount\" },\n\t\t\t\t{ \"No of Employees\", \"employeeCount\" }};\n\n\t\tfor (String[] colName : colNames) {\n\t\t\tTableColumn<Ward, String> col = new TableColumn<>(colName[0]);\n\t\t\tcol.setCellValueFactory(new PropertyValueFactory<>(colName[1]));\n\t\t\ttable.getColumns().add(col);\n\t\t}\n\n\t\ttable.setItems(tableData);\n\t\t\n\t}",
"private TableModel getTabelaProduto() {\r\n\t\tString[] columnNames = { \"id_c\", \"nome\", \"telefone\", \"endereco\", \"cidade\", \"estado\", \"email\", \"genero\" };\r\n\r\n\t\tObject[][] dados = new Object[listacliente.size()][8];\r\n\t\tfor (int i = 0; i < listacliente.size(); i++) {\r\n\t\t\tint x = 0;\r\n\t\t\tdados[i][x++] = listacliente.get(i).getId();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getNome();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getTelefone();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getEndereco();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getCidade();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getEstado().getNome();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getEmail();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getGenero().getNome();\r\n\t\t}\r\n\r\n\t\treturn new DefaultTableModel(dados, columnNames);\r\n\r\n\t}",
"public interface ObjectTableModel<E> {\n\n /**\n * Returns the DefaultListModel which the ObjectTable is tied to. The ObjectTable is registered\n * as a listener of this object, so when it is updated, the table is synchronised.\n */\n DefaultListModel<E> getListModel();\n\n /**\n * Returns the default object to be created when an ObjectTable adds a new row to the listModel.\n * This can subsequently be edited within the table.\n */\n E createDefaultElement();\n\n /**\n * This tells the table how to map its columns to the underlying object's attributes. It is\n * expected to return a list of these mappings. The table will initially display the columns in\n * this order.\n *\n * @see se.uog.table.ObjectTableColumn\n */\n List<ObjectTableColumn<E>> getObjectColumnMap();\n}",
"public Table getTable() { return this.table; }",
"public DebugTableModel() {\r\n }",
"private Object getTable() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private void Table()\n{\n Object [] Kolom = {\"Nama\", \"No. Telp\", \"Kota Asal\"};\n Table = new DefaultTableModel(null, Kolom);\n Tabel.setModel(Table);\n}",
"public ColumnStateTableColumnModel() {\n\t}",
"public void initTable();",
"public String getTable()\n {\n return table;\n }",
"ReturnTable(TableModel dm) {\n super(dm);\n }",
"public AttlistTableModel () {\n super();\n }",
"public TableForm() {\n initComponents();\n \n setMyTable();\n }",
"private DefaultTableModel getTableModel() {\n return (DefaultTableModel) constantsTable.getModel();\n }",
"public String getTable() {\n return table;\n }",
"private JTable getTable() {\n\t\tif (table == null) {\n\t\t\ttable = new JTable() {\n\t\t\t\t/**\n\t\t\t\t * \n\t\t\t\t */\n\t\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t};\n\t\t\ttable.setModel(getDataModel());\n\t\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\n\t\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(30);\n\t\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(100);\n\t\t\ttable.getColumnModel().getColumn(2).setPreferredWidth(100);\n\t\t}\n\t\treturn table;\n\t}",
"public String getTableData() {\r\n return tableData;\r\n }",
"public TableImpl() { columns = new Column[0]; }",
"public String getTable() {\n return table;\n }",
"private void createTable() {\n\t\t// Tao dataModel & table \n\t\tdataModel = new DefaultTableModel(headers, 0);\n\t\ttable.setModel(dataModel);\n\t\t\n\t\tnapDuLieuChoBang();\n\t}",
"public TableModel getTableModel() {\n\t\tfinal int numEach = calcMags.length+1;\n\t\tfinal int rows = probs.rowKeySet().size()*numEach;\n\t\tfinal int cols = 4;\n\t\treturn new AbstractTableModel() {\n\n\t\t\t@Override\n\t\t\tpublic int getRowCount() {\n\t\t\t\treturn rows;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int getColumnCount() {\n\t\t\t\treturn cols;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Object getValueAt(int rowIndex, int columnIndex) {\n\t\t\t\tif (rowIndex == 0)\n\t\t\t\t\treturn headers[columnIndex];\n\t\t\t\trowIndex -= 1;\n\t\t\t\tint m = rowIndex % numEach;\n\t\t\t\tint d = rowIndex / numEach;\n\t\t\t\t\n\t\t\t\tif (columnIndex == 0) {\n\t\t\t\t\tif (m == 0)\n\t\t\t\t\t\treturn durations[d].label;\n\t\t\t\t\telse if (m == 1)\n\t\t\t\t\t\treturn df.format(Date.from(startDate));\n\t\t\t\t\telse if (m == 2)\n\t\t\t\t\t\treturn \"through\";\n\t\t\t\t\telse if (m == 3)\n\t\t\t\t\t\treturn df.format(Date.from(endDates[d]));\n\t\t\t\t\telse\n\t\t\t\t\t\treturn \"\";\n\t\t\t\t} else {\n\t\t\t\t\tif (m >= calcMags.length)\n\t\t\t\t\t\treturn \"\";\n\t\t\t\t\tdouble mag = calcMags[m];\n\t\t\t\t\tif (columnIndex == 1) {\n\t\t\t\t\t\tif (m == minMags.length) {\n\t\t\t\t\t\t\treturn \"M ≥ Main (\" + ((float)mag) + \")\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn \"M ≥ \"+(float)mag;\n\t\t\t\t\t} else if (columnIndex == 2) {\n\t\t\t\t\t\tint lower = (int)(numEventsLower.get(durations[d], mag)+0.5);\n\t\t\t\t\t\tint upper = (int)(numEventsUpper.get(durations[d], mag)+0.5);\n\t\t\t\t\t\tint median = (int)(numEventsMedian.get(durations[d], mag)+0.5);\n\t\t\t\t\t\tif (upper == 0)\n\t\t\t\t\t\t\treturn \"*\";\n\t\t\t\t\t\treturn lower + \" to \" + upper + \", median \" + median;\n\t\t\t\t\t} else if (columnIndex == 3) {\n\n\t\t\t\t\t\tdouble prob = 100.0 * probs.get(durations[d], mag);\n\t\t\t\t\t\tString probFormatted;\n\t\t\t\t\t\tif (prob < 1.0e-6 && prob > 0.0) {\n\t\t\t\t\t\t\tprobFormatted = SimpleUtils.double_to_string (\"%.2e\", prob);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdouble probRounded = SimpleUtils.round_double_via_string (\"%.2e\", prob);\n\t\t\t\t\t\t\tprobFormatted = SimpleUtils.double_to_string_trailz (\"%.8f\", SimpleUtils.TRAILZ_REMOVE, probRounded);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn probFormatted + \" %\";\n\n\t\t\t\t\t\t//int prob = (int)(100d*probs.get(durations[d], mag) + 0.5);\n\t\t\t\t\t\t//if (prob == 0)\n\t\t\t\t\t\t//\treturn \"*\";\n\t\t\t\t\t\t//else if (prob == 100)\n\t\t\t\t\t\t//\treturn \">99 %\";\n\t\t\t\t\t\t//return prob+\" %\";\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\t\n\t\t};\n\t}",
"public ListModelTable getModel()\n {\n\t\tif (super.getModel() instanceof ListModelTable)\n\t\t{\n\t \treturn (ListModelTable)super.getModel();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"Model must be instance of \" + ListModelTable.class.getName());\n\t\t}\n }",
"protected SSDefaultTableModel getModel() {\n SSDefaultTableModel<SSInvoice> iModel = new SSDefaultTableModel<SSInvoice>( ) {\n\n public Class getType() {\n return SSSaleRow.class;\n }\n\n public Object getValueAt(int rowIndex, int columnIndex) {\n Object value = null;\n\n SSInvoice iInvoice = getObject(rowIndex);\n\n switch (columnIndex) {\n case 0 :\n if(iInvoice.getOCRNumber() != null){\n value = iInvoice.getOCRNumber();\n } else {\n value = iInvoice.getNumber().toString();\n }\n break;\n case 1:\n value = iInvoice.getDate();\n break;\n case 2:\n value = iInvoice.getDueDate();\n break;\n case 3:\n value = getNumDelayedDays(iInvoice);\n break;\n case 4:\n value = iInvoice.getNumReminders() + 1;\n break;\n case 5:\n value = SSInvoiceMath.getSaldo(iInvoice.getNumber());\n break;\n case 6:\n value = iInvoice.getDelayInterest() ;\n break;\n case 7:\n value = SSInvoiceMath.getInterestSum(iInvoice, SSInvoiceMath.getSaldo(iInvoice.getNumber()), getNumDelayedDays(iInvoice));\n break;\n }\n\n return value;\n }\n };\n\n\n iModel.addColumn(\"invoice.number\");\n iModel.addColumn(\"invoice.date\");\n iModel.addColumn(\"invoice.duedate\");\n iModel.addColumn(\"invoice.duedays\");\n iModel.addColumn(\"invoice.numreminders\");\n iModel.addColumn(\"invoice.saldo\");\n iModel.addColumn(\"invoice.delayinterest\");\n iModel.addColumn(\"invoice.delayfee\");\n\n\n iModel.setObjects(iInvoices);\n\n return iModel;\n }",
"public static void buildTable() {\r\n\t\t//This method keeps the user from editing the table\r\n\t\ttableModel = new DefaultTableModel() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\t\t@Override\r\n\t\t\tpublic boolean isCellEditable(int row, int column) {\r\n\t\t\t\t//All cells false\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\ttableModel.setNumRows(dblogic.getSize());\r\n\t\ttableModel.setColumnCount(COL_COUNT);\r\n\t\ttableModel.setColumnIdentifiers(columnNames);\r\n\t\ttable.setRowSelectionAllowed(true);\r\n\t\ttable.setColumnSelectionAllowed(false);\r\n\t\ttable.setDragEnabled(false);\r\n\t\ttable.getTableHeader().setReorderingAllowed(false);\r\n\t\ttable.setModel(tableModel);\r\n\r\n\t\t//Build rows\r\n\t\tfor (int i = 0; i < dblogic.getSize(); i++) {\r\n\t\t\ttable.setValueAt(dblogic.getPatronFromDB(i).getLastName(), i, COL_LAST);\r\n\t\t\ttable.setValueAt(dblogic.getPatronFromDB(i).getFirstName(), i, COL_FIRST);\r\n\t\t\ttable.setValueAt(dblogic.getPatronFromDB(i).getPatronEmail(), i, COL_EMAIL);\r\n\t\t\ttable.setValueAt(dblogic.getPatronFromDB(i).getDOB(), i, COL_BIRTH);\r\n\t\t\ttable.setValueAt(dblogic.getPatronFromDB(i).getPatronSinceString(), i, COL_ADDED);\r\n\t\t\ttable.setValueAt(dblogic.getPatronFromDB(i).getAnniv().toString(), i, COL_ANNIV);\r\n\t\t}\r\n\t}",
"public table() {\n initComponents();\n }",
"public AllTablesHaveColumnsRule() {\n super();\n\n this.countOp = this.addProperty(new ChoiceProperty<>(\n \"count_op\",\n ComparisonOperator.class, ComparisonOperator.GTE, ComparisonOperator.getChoices(),\n \"Počet sloupců\", \"Operátor pro ověření počtu řádků v tabulkách\", this.getGenericLabel()\n ));\n this.count = this.addProperty(new Property<>(\n \"count\",\n Integer.class, 1,\n \"...\", \"Všechny tabulky v databázi musí obsahovat zadaný počet sloupců\", this.getGenericLabel()\n ));\n\n this.columnType = this.addProperty(new ChoiceProperty<>(\n \"column_type\",\n ColumnType.class, ColumnType._ANY, ColumnType.getChoices(),\n \"Typ sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnName = this.addProperty(new Property<>(\n \"column_name\",\n String.class, \"\",\n \"Název sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnIsPrimary = this.addProperty(new ChoiceProperty<>(\n \"column_primary\",\n YesNoType.class, YesNoType._ANY, YesNoType.getChoices(),\n \"Primární klíč\", \"Ověří, zda je sloupec součástí primárního klíče\", this.getGenericLabel()\n ));\n }",
"private void initTable() {\n \t\t// init table\n \t\ttable.setCaption(TABLE_CAPTION);\n \t\ttable.setPageLength(10);\n \t\ttable.setSelectable(true);\n \t\ttable.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX);\n \t\ttable.setColumnCollapsingAllowed(true);\n \t\ttable.setColumnReorderingAllowed(true);\n \t\ttable.setSelectable(true);\n \t\t// this class handles table actions (see handleActions method below)\n \t\ttable.addActionHandler(this);\n \t\ttable.setDescription(ACTION_DESCRIPTION);\n \n \t\t// populate Toolkit table component with test SQL table rows\n \t\ttry {\n \t\t\tQueryContainer qc = new QueryContainer(\"SELECT * FROM employee\",\n \t\t\t\t\tsampleDatabase.getConnection());\n \t\t\ttable.setContainerDataSource(qc);\n \t\t} catch (SQLException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\t// define which columns should be visible on Table component\n \t\ttable.setVisibleColumns(new Object[] { \"FIRSTNAME\", \"LASTNAME\",\n \t\t\t\t\"TITLE\", \"UNIT\" });\n \t\ttable.setItemCaptionPropertyId(\"ID\");\n \t}",
"public Table getTable() {\n return table;\n }",
"public CampTableModel() {\n setColumnIdentifiers(new Object[] { Text.CAMP_ID.text(), Text.CAMP_LOCATION.text(), Text.CAMP_NAME.text() });\n }",
"public interface QueryTableModel extends FilterableTableModel,\n SortableTableModel {\n\n /**\n * Returns the object identifier for the specified row.\n * @param row the row, zero-indexed.\n * @return the object identifier for the object at the specified row.\n */\n public String getIdForRow(int row);\n\n}",
"public TableDefinition(Class<T> model){\n this.singleton = this;\n this.model = model;\n try {\n OBJECT = Class.forName(model.getName());\n createTableDefinition();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public String table() {\n return tableName;\n }",
"public String table() {\n return tableName;\n }",
"public static MlTableModel createModel(MlObjectTable table) {\n\n MlTableModel model = null;\n switch (table.getType()) {\n case Contact:\n model = new ContactTableModel(table);\n break;\n case Task:\n model = new TaskTableModel(table);\n break;\n case Image:\n model = new ImageTableModel(table);\n break;\n case Knowlet:\n case Collection:\n case Map:\n case Container:\n case Any:\n model = new AllObjectTableModel(table);\n break;\n default:\n throw new IllegalStateException(\"No table model found for specified object class: \" + table.getType().name());\n }\n return model;\n }",
"private static AdqlValidator.ValidatorTable\n toValidatorTable( TopcatModel tcModel, final String tname ) {\n StarTable dataTable = tcModel.getDataModel();\n int ncol = dataTable.getColumnCount();\n final AdqlValidator.ValidatorColumn[] vcols =\n new AdqlValidator.ValidatorColumn[ ncol ];\n final AdqlValidator.ValidatorTable vtable =\n new AdqlValidator.ValidatorTable() {\n public String getName() {\n return tname;\n }\n public AdqlValidator.ValidatorColumn[] getColumns() {\n return vcols;\n }\n };\n for ( int ic = 0; ic < ncol; ic++ ) {\n final String cname = dataTable.getColumnInfo( ic ).getName();\n vcols[ ic ] = new AdqlValidator.ValidatorColumn() {\n public String getName() {\n return cname;\n }\n public AdqlValidator.ValidatorTable getTable() {\n return vtable;\n }\n };\n }\n return vtable;\n }",
"private void setUpTable()\n {\n //Setting the outlook of the table\n bookTable.setColumnReorderingAllowed(true);\n bookTable.setColumnCollapsingAllowed(true);\n \n \n bookTable.setContainerDataSource(allBooksBean);\n \n \n //Setting up the table data row and column\n /*bookTable.addContainerProperty(\"id\", Integer.class, null);\n bookTable.addContainerProperty(\"book name\",String.class, null);\n bookTable.addContainerProperty(\"author name\", String.class, null);\n bookTable.addContainerProperty(\"description\", String.class, null);\n bookTable.addContainerProperty(\"book genres\", String.class, null);\n */\n //The initial values in the table \n db.connectDB();\n try{\n allBooks = db.getAllBooks();\n }catch(SQLException ex)\n {\n ex.printStackTrace();\n }\n db.closeDB();\n allBooksBean.addAll(allBooks);\n \n //Set Visible columns (show certain columnes)\n bookTable.setVisibleColumns(new Object[]{\"id\",\"bookName\", \"authorName\", \"description\" ,\"bookGenreString\"});\n \n //Set height and width\n bookTable.setHeight(\"370px\");\n bookTable.setWidth(\"1000px\");\n \n //Allow the data in the table to be selected\n bookTable.setSelectable(true);\n \n //Save the selected row by saving the change Immediately\n bookTable.setImmediate(true);\n //Set the table on listener for value change\n bookTable.addValueChangeListener(new Property.ValueChangeListener()\n {\n public void valueChange(ValueChangeEvent event) {\n \n }\n\n });\n }",
"private void setDataModel() {\r\n tableData = new Object[resultSet.size()][classFields.length];\r\n // for every object from collection of objects\r\n for (int i = 0; i < resultSet.size(); i++) {\r\n // for every fields from class of object\r\n for (int j = 0; j < classFields.length; j++) {\r\n // for every method from class of object\r\n for (int x = 0; x < classMethods.length; x++) {\r\n // if class name start with 'get' and class method name\r\n // lenght is equal to field name + 3 (becouse of get word)\r\n if ((classMethods[x].getName().startsWith(\"get\"))\r\n && (classMethods[x].getName().length() == (classFields[j].getName().length() + 3))) {\r\n // if class name to lowercase ends with field name to\r\n // lower case\r\n if (classMethods[x].getName().toLowerCase().endsWith(classFields[j].getName().toLowerCase())) {\r\n // then try to invoke that getter\r\n try {\r\n tableData[i][j] = classMethods[x].invoke(resultSet.get(i));\r\n } catch (IllegalAccessException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (IllegalArgumentException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (InvocationTargetException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }\r\n // This is alternative method for obtaining getter for field but\r\n // it will need public fields\r\n // try {\r\n // fieldValue = pola[j].get(resultSet.get(i));\r\n // data[i][j]=fieldValue;\r\n // } catch (IllegalArgumentException e) {\r\n // // TODO Auto-generated catch block\r\n // e.printStackTrace();\r\n // } catch (IllegalAccessException e) {\r\n // // TODO Auto-generated catch block\r\n // e.printStackTrace();\r\n // }\r\n }\r\n }\r\n }",
"private String getTableName() {\n return this.tableName;\n }",
"public Table getTable() {\n return table;\n }",
"public BstTable() {\n\t\tbst = new Empty<Key, Value>();\n\t}",
"void initTable();",
"public ARCTable() {\n initComponents();\n table = new MyJTable();\n tableScrollPane.setViewportView(table);\n }",
"protected abstract void initialiseTable();",
"private MyTable generateTable()\n\t{\n\t\t//this creates the column headers for the table\n\t\tString[] titles = new String[] {\"Name\"};\n\t\t//fields will store all of the entries in the database for the GUI\n\t\tArrayList<String[]> fields = new ArrayList<String[]>();\n\t\tfor (food foodStuff: items) //for each element in items do the following\n\t\t{\n\t\t\t//creates a single row of the table\n\t\t\tString[] currentRow = new String[1]; //creates an array for this row\n\t\t\tcurrentRow[1] = foodStuff.getName(); //sets this row's name\n\t\t\tfields.add(currentRow); //adds this row to the fields ArrayList\n\t\t}\n\t\t//builds a table with titles and a downgraded fields array\n\t\tMyTable builtTable = new MyTable(fields.toArray(new String[0][1]), titles);\n\t\treturn builtTable; // return\n\t}",
"private JComponent createInfoTable() {\r\n\t\tm_model = new JETATableModel();\r\n\r\n\t\tString[] names = new String[2];\r\n\t\tnames[0] = I18N.getLocalizedMessage(\"Property\");\r\n\t\tnames[1] = I18N.getLocalizedMessage(\"Value\");\r\n\t\tm_model.setColumnNames(names);\r\n\r\n\t\tClass[] coltypes = new Class[2];\r\n\t\tcoltypes[0] = String.class;\r\n\t\tcoltypes[1] = String.class;\r\n\t\tm_model.setColumnTypes(coltypes);\r\n\r\n\t\treturn new javax.swing.JScrollPane(TableUtils.createBasicTablePanel(m_model, true));\r\n\t}",
"Table createTable();",
"public void getTableData() {\n MSApptIDCol.setCellValueFactory(new PropertyValueFactory<Appointment, Integer>(\"appointmentID\"));\n MSCustIDCol.setCellValueFactory(new PropertyValueFactory<Appointment, Integer>(\"customerID\"));\n MSTitleCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"appointmentTitle\"));\n MSDescriptionCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"description\"));\n MSContactCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"contactName\"));\n MSLocationCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"location\"));\n MSTypeCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"appointmentType\"));\n MSStartTimeCol.setCellValueFactory(new PropertyValueFactory<Appointment, LocalDateTime>(\"appointmentStart\"));\n MSEndTimeCol.setCellValueFactory(new PropertyValueFactory<Appointment, LocalDateTime>(\"appointmentEnd\"));\n }",
"public TempTable() {\r\n\t\t\tsuper();\r\n\t\t\tthis.clauses = new ArrayList<TempTableHeaderCell>();\r\n\t\t}",
"Table getBaseTable();",
"public DisplayTable() {\n initComponents();\n }",
"public CursosTable() {\n \n \n }",
"public TableRow() {\n\t\tthis.cells = new ArrayList<TableCell>();\n\t}",
"public AbstractSQLTableModel()\n\t{\n\t\ttry\n\t\t{\n\t\t\tthis.prefix = TableHelper.getPrefixForTable(this.getDBTableName());\n\t\t} catch( SQLException e ) {\n\t\t\tApplicationLogger.logError(\"cannot aquire prefix for \" + this.getDBTableName() );\n\t\t\tApplicationLogger.logError(e);\n\t\t}\n\t\tsetupDBColumns();\n\t}",
"ModelData getModel();",
"public final Table getTable()\n {\n return table;\n }",
"public formArticulo() {\r\n initComponents();\r\n this.tableModel = (javax.swing.table.DefaultTableModel)tblArt.getModel();\r\n }",
"private void initTableView() {\n // nastaveni sloupcu pro zobrazeni spravne hodnoty a korektniho datoveho typu\n this.colId.setCellValueFactory(cellData -> cellData.getValue().getPersonalIdProperty());\n this.colName.setCellValueFactory(cellData -> cellData.getValue().getDisplayNameProperty());\n this.colAge.setCellValueFactory(cellData -> cellData.getValue().getAgeProperty().asObject());\n this.colGender.setCellValueFactory(cellData -> cellData.getValue().getGenderProperty());\n this.colPrice.setCellValueFactory(cellData -> cellData.getValue().getPriceProperty().asObject());\n\n // nastaveni listu prvku tabulce\n this.offerTable.setItems(this.marketplace.getOfferList());\n\n // listener pro zjisteni, ktery prvek tabulky uzivatel oznacil a naplneni aktualni reference na vybrane dite\n this.offerTable.getSelectionModel().getSelectedCells().addListener(new ListChangeListener<TablePosition>() {\n\n @Override\n public void onChanged(Change<? extends TablePosition> change) {\n ObservableList selectedCells = offerTable.getSelectionModel().getSelectedCells();\n TablePosition tablePosition = (TablePosition) selectedCells.get(0);\n currentChild = marketplace.getOfferList().get(tablePosition.getRow());\n System.out.println(currentChild);\n updateUi();\n }\n });\n }",
"DataModel getDataModel ();",
"private void loadData()\n\t{\n\t\tVector<String> columnNames = new Vector<String>();\n\t\tcolumnNames.add(\"Item Name\");\n\t\tcolumnNames.add(\"Item ID\");\n\t\tcolumnNames.add(\"Current Stock\");\n\t\tcolumnNames.add(\"Unit Price\");\n\t\tcolumnNames.add(\"Section\");\n\t\t\n\t\tVector<Vector<Object>> data= new Vector<Vector<Object>>();\n\t\t\n\t\tResultSet rs = null;\n\t\ttry \n\t\t{\n\t\t\tConnection con = Connector.DBcon();\n\t\t\tString query=\"select * from items natural join sections order by sections.s_name\";\n\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\trs = pst.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tVector<Object> vector = new Vector<Object>();\n\t\t for (int columnIndex = 1; columnIndex <= 9; columnIndex++)\n\t\t {\n\t\t \t\n\t\t \tvector.add(rs.getObject(1));\n\t\t \tvector.add(rs.getObject(2));\n\t\t vector.add(rs.getObject(3));\n\t\t vector.add(rs.getObject(4));\n\t\t vector.add(rs.getObject(6));\n\t\t \n\t\t }\n\t\t data.add(vector);\n\t\t\t}\n\t\t\t\n\t\t\t tableModel.setDataVector(data, columnNames);\n\t\t\t \n\t\t\t rs.close();\n\t\t\t pst.close();\n\t\t\t con.close();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t}\n\t\t\n\t\t\n\t}",
"public void prepareTable(){\n\n TableColumn<Student, String> firstNameCol = new TableColumn<>(\"FirstName\");\n firstNameCol.setMinWidth(100);\n firstNameCol.setCellValueFactory(new PropertyValueFactory<>(\"firstname\"));\n\n TableColumn<Student, String> lastNameCol = new TableColumn<>(\"LastName\");\n lastNameCol.setMinWidth(100);\n lastNameCol.setCellValueFactory(new PropertyValueFactory<>(\"lastname\"));\n\n TableColumn<Student, String> formCol = new TableColumn<>(\"Form\");\n formCol.setMinWidth(100);\n formCol.setCellValueFactory(new PropertyValueFactory<>(\"form\"));\n\n TableColumn<Student, String> streamCol = new TableColumn<>(\"Stream\");\n streamCol.setMinWidth(100);\n streamCol.setCellValueFactory(new PropertyValueFactory<>(\"stream\"));\n\n TableColumn<Student, String> dateOfBirthCol = new TableColumn<>(\"Favorite Game\");\n dateOfBirthCol.setMinWidth(100);\n dateOfBirthCol.setCellValueFactory(new PropertyValueFactory<>(\"dateOfBirth\"));\n\n TableColumn<Student, String> genderCol = new TableColumn<>(\"Gender\");\n genderCol.setMinWidth(100);\n genderCol.setCellValueFactory(new PropertyValueFactory<>(\"gender\"));\n\n TableColumn<Student, Integer> ageCol = new TableColumn<>(\"age\");\n ageCol.setMinWidth(100);\n ageCol.setCellValueFactory(new PropertyValueFactory<>(\"age\"));\n\n TableColumn<Student, Integer> admissionCol = new TableColumn<>(\"Admission\");\n admissionCol.setMinWidth(100);\n admissionCol.setCellValueFactory(new PropertyValueFactory<>(\"admission\"));\n\n\n table.getColumns().addAll(admissionCol,firstNameCol,lastNameCol,formCol,streamCol,dateOfBirthCol,genderCol,ageCol);\n table.setItems(dao.selectAll());\n\n }",
"public void initTable() {\n this.table.setSelectable(true);\n this.table.setImmediate(true);\n this.table.setWidth(\"100%\");\n this.table.addListener(this);\n this.table.setDropHandler(this);\n this.table.addActionHandler(this);\n this.table.setDragMode(TableDragMode.ROW);\n this.table.setSizeFull();\n\n this.table.setColumnCollapsingAllowed(true);\n // table.setColumnReorderingAllowed(true);\n\n // BReiten definieren\n this.table.setColumnExpandRatio(LABEL_ICON, 1);\n this.table.setColumnExpandRatio(LABEL_DATEINAME, 3);\n this.table.setColumnExpandRatio(LABEL_DATUM, 2);\n this.table.setColumnExpandRatio(LABEL_GROESSE, 1);\n this.table.setColumnExpandRatio(LABEL_ACCESS_MODES, 1);\n this.table.setColumnHeader(LABEL_ICON, \"\");\n }",
"public JTable getTable() { return viewTable;}",
"private RowData() {\n initFields();\n }",
"public DataMahasiswa() {\n initComponents();\n load_table();\n }",
"public Table buildNewAssetTable(ManufacturingOrder dto) {\n\n\t\tTable table = new Table();\n\t\ttable.addAttribute(\"id\", \"normalTableNostripe\");\n\t\ttable.addAttribute(\"align\", \"center\");\n\t\ttable.addAttribute(\"cellSpacing\", \"0\");\n\t\ttable.addAttribute(\"cellPadding\", \"0\");\n\t\ttable.addAttribute(\"border\", \"1\");\n\t\ttable.addAttribute(\"class\", \"classContentTable\");\n\t\ttable.addAttribute(\"style\",\n\t\t\t\t\"white-space: nowrap; word-spacing: normal; width: 500px\");\n\t\ttable.addTableHeaderAttribute(\"class\", \"fixedHeader\");\n\t\ttable.addTableBodyAttribute(\"class\", \"scrollContent\");\n\n\t\tTableRow row = new TableRow();\n\n\t\tInputField assetNumberText = new InputField(\"assetNumber\", \"\",\n\t\t\t\tInputType.TEXT);\n\t\tassetNumberText.addAttribute(\"maxlength\", \"6\");\n\t\tassetNumberText.addAttribute(\"size\", \"10\");\n\t\tTableData asset = null;\n\t\tif (dto.getEditFlag()) {\n\t\t\tasset = new TableData(new SimpleText(dto.getAssetNumber()));\n\t\t\tasset.addAttribute(\"style\", \"width: 10% ; vertical-align: middle\");\n\n\t\t} else {\n\t\t\tasset = new TableData(assetNumberText);\n\t\t\tasset.addAttribute(\"style\", \"width: 30%\");\n\t\t}\n\t\tString desc = \"\";\n\n\t\tif (dto.getEditFlag()) {\n\t\t\tdesc = dto.getDescription();\n\t\t}\n\n\t\tInputField description = new InputField(\"descrip\", desc, InputType.TEXT);\n\t\tdescription.addAttribute(\"maxlength\", \"100\");\n\t\tdescription.addAttribute(\"size\", \"30\");\n\t\tTableData descriptionText = new TableData(description);\n\t\tdescriptionText.addAttribute(\"style\", \"width: 40%\");\n\n\t\tTableData status = null;\n\t\tif (dto.getEditFlag()) {\n\n\t\t\tif (dto.getStatus() == null || !(\"A\".equals(dto.getStatus()))) {\n\n\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chk\\\" value=\\\"A\\\"/>\"));\n\t\t\t} else {\n\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chk\\\" value=\\\"A\\\" checked=\\\"checked\\\"/>\"));\n\t\t\t}\n\n\t\t\tTableData facility = new TableData(new SimpleText(dto\n\t\t\t\t\t.getSelectedFacility()));\n\t\t\tfacility.addAttribute(\"style\",\n\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\n\t\t\tTableData workCenter = new TableData(new SimpleText(dto\n\t\t\t\t\t.getWorkCenterCode()));\n\t\t\tworkCenter.addAttribute(\"style\",\n\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\t\t\trow.addTableData(facility);\n\t\t\trow.addTableData(workCenter);\n\t\t\tstatus.addAttribute(\"style\", \"width: 10%\");\n\t\t\tdescriptionText.addAttribute(\"style\", \"width: 30%\");\n\n\t\t} else {\n\t\t\tstatus = new TableData(\n\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chk\\\" value=\\\"A\\\" checked=\\\"checked\\\"/>\"));\n\t\t\tstatus.addAttribute(\"style\", \"width: 20%\");\n\t\t}\n\t\trow.addTableData(asset);\n\t\trow.addTableData(descriptionText);\n\t\trow.addTableData(status);\n\n\t\trow.addAttribute(\"class\", \"normalRow\");\n\n\t\ttable.addTableRow(row);\n\n\t\treturn table;\n\t}",
"public AllFieldsTableHandler(){}",
"public String getTableName() {\n return this.tableName;\n }",
"public JP1Table( TableModel model )\n {\n super( model );\n setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n // getSelectionModel().addListSelectionListener( this );\n setCellSelectionEnabled( true );\n setSurrendersFocusOnKeystroke( true );\n setAutoResizeMode( JTable.AUTO_RESIZE_LAST_COLUMN );\n tableHeader.setReorderingAllowed( false );\n DefaultCellEditor e = ( DefaultCellEditor )getDefaultEditor( String.class );\n new TextPopupMenu( ( JTextComponent )e.getComponent() );\n }",
"public String getTableName() {\n return tableName; \n }",
"public AbstractTablePanel(DataObjectBean dataObjectBean) {\n super(dataObjectBean);\n init();\n }",
"public void bindingTable(){\n String[] header={\"Region Id\",\"Region Name\"};\n DefaultTableModel defaultTableModel = new DefaultTableModel(header, 0);\n for (Region region : regionController.binding()) {\n// for (Region binding : regionController.binding(\"region_id\",\"asc\")) {\n Object[] region1 ={\n region.getRegionId(),region.getRegionName()\n };\n defaultTableModel.addRow(region1);\n }\n tableRegion.setModel(defaultTableModel);\n }",
"private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Titular\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Dependente dependente : new NDependente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(dependente.getId() + \"\");\n linha.add(dependente.getNome());\n linha.add(dependente.getTelefone());\n linha.add(new NCliente().consultar(dependente.getCliente_id()).getNome());\n linha.add(dependente.getDataNascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblDependentes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }",
"private void initComponent() {\n\t\t// Create Table Model (rows, columns...)\n\t\ttableur = new DefaultTableModel();\n\t\t// Add title column\n\t\ttableur.addColumn(fileNumber);\n\t\ttableur.addColumn(fileName);\n\t\ttableur.addColumn(\"\");\n\t\t// Add line of Action History with NodeStructureDTO\n\t\twhile(rootNode != null){\n\t\t\ttableur.addRow(new Object[] {rootNode.getId() , rootNode.getCompletePath()});\n\t\t\trootNode = rootNode.getNextNode();\n\t\t}\n\t\t//Create JTable \n\t\ttableHistory = new JTable(tableur);\n\t\t//Change the renderer of third cells whith grey font \n\t\ttableHistory.getColumn(\"\").setCellRenderer(new ButtonRenderer());\n\t\t//Make a CheckBox in this cell\n\t\ttableHistory.getColumn(\"\").setCellEditor(new ButtonEditor(new JCheckBox()));\n\t\t//Block reordering\n\t\ttableHistory.getTableHeader().setReorderingAllowed(false);\n\t\ttableHistory.setPreferredScrollableViewportSize(new Dimension(600 , 400));\n\t\tadd(new JScrollPane(tableHistory) , BorderLayout.CENTER);\n\t}",
"public DefaultTableModel getModelo(){\n\n\t\treturn modelo;\n\n\t}",
"public Table getTable() { \n\t\treturn this.table; \n\t}",
"@Override\n\tpublic String getTableName() { \n\t\treturn tableName;\n\t}",
"private void createTable(){\n Object[][] data = new Object[0][8];\n int i = 0;\n for (Grupo grupo : etapa.getGrupos()) {\n Object[][] dataAux = new Object[data.length+1][8];\n System.arraycopy(data, 0, dataAux, 0, data.length);\n dataAux[i++] = new Object[]{grupo.getNum(),grupo.getAtletas().size(),\"Registar Valores\",\"Selecionar Vencedores\", \"Selecionar Atletas\"};\n data = dataAux.clone();\n }\n\n //COLUMN HEADERS\n String columnHeaders[]={\"Numero do Grupo\",\"Número de Atletas\",\"\",\"\",\"\"};\n\n tableEventos.setModel(new DefaultTableModel(\n data,columnHeaders\n ));\n //SET CUSTOM RENDERER TO TEAMS COLUMN\n tableEventos.getColumnModel().getColumn(2).setCellRenderer(new ButtonRenderer());\n tableEventos.getColumnModel().getColumn(3).setCellRenderer(new ButtonRenderer());\n tableEventos.getColumnModel().getColumn(4).setCellRenderer(new ButtonRenderer());\n\n //SET CUSTOM EDITOR TO TEAMS COLUMN\n tableEventos.getColumnModel().getColumn(2).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n tableEventos.getColumnModel().getColumn(3).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n tableEventos.getColumnModel().getColumn(4).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n\n }",
"public String getTableName() {\n return tableName;\n }",
"public String getTableName() {\n return tableName;\n }",
"public CMARichTableCell() {\n super(\"table-cell\");\n }"
]
| [
"0.70135975",
"0.6975137",
"0.6910961",
"0.6870716",
"0.68675643",
"0.6842575",
"0.68361664",
"0.6835164",
"0.6724623",
"0.6712966",
"0.66740876",
"0.6673001",
"0.6665578",
"0.6629015",
"0.6603574",
"0.6559175",
"0.655354",
"0.654075",
"0.64891475",
"0.6453392",
"0.6435037",
"0.6400221",
"0.6392941",
"0.6368678",
"0.6354245",
"0.63504815",
"0.63436955",
"0.6336848",
"0.6326046",
"0.63089675",
"0.62832093",
"0.6277974",
"0.62757015",
"0.6264088",
"0.6243076",
"0.62313783",
"0.6221322",
"0.621259",
"0.62068295",
"0.62028265",
"0.6185444",
"0.61832166",
"0.61767423",
"0.6174322",
"0.6169069",
"0.6167124",
"0.6158103",
"0.6155737",
"0.6152416",
"0.6143497",
"0.6133488",
"0.61304253",
"0.61304253",
"0.61294544",
"0.6124101",
"0.6121523",
"0.6107028",
"0.61026525",
"0.61022496",
"0.60792196",
"0.6077359",
"0.6071031",
"0.60709506",
"0.6068177",
"0.60650456",
"0.60648507",
"0.6060538",
"0.6059232",
"0.604999",
"0.60497254",
"0.60481316",
"0.6033244",
"0.6025954",
"0.602421",
"0.601742",
"0.6014953",
"0.6008942",
"0.6006493",
"0.60055673",
"0.59963703",
"0.5994089",
"0.59922636",
"0.5989115",
"0.59788066",
"0.5972558",
"0.5960735",
"0.59575886",
"0.5957453",
"0.5955858",
"0.59533167",
"0.5950931",
"0.5944808",
"0.5942103",
"0.5933752",
"0.59251636",
"0.5922485",
"0.5917991",
"0.59144235",
"0.59144235",
"0.5904766"
]
| 0.71402144 | 0 |
A business interface defining a Bike which a customer is aiming to ensure. | public interface Bike
{
/**
* An enumeration defining the possible Colour classifications for
* the Bike.
*/
public enum Colour {RED, ORANGE, YELLOW, GREEN, BLUE, INDIGO, VIOLET, WHITE, BLACK};
/**
* Returns the Colour of this Bike
*
* @return the Colour of this Bike
*/
public Colour getColour();
/**
* Sets the Colour of this Bike
*
* @param colour the Colour of this Bike
* @throws UnsupportedOperationException if the implementation of
* the interface is read-only with respect to this property
*/
public void setColour(Colour colour);
/**
* Returns the number of gears this Bike has
*
* @return the number of gears
*/
public int getGears();
/**
* Sets the number of gears this Bike has
*
* @param gears the number of gears
* @throws UnsupportedOperationException if the implementation of
* the interface is read-only with respect to this property
*/
public void setGears(int gears);
/**
* Returns the price of this Bike in pounds Sterling.
*
* @return the price of this Bike
*/
public int getValue();
/**
* Sets the price of this Bike in pounds Sterling
*
* @param price the price of this Bike
* @throws UnsupportedOperationException if the implementation of
* the interface is read-only with respect to this property
*/
public void setValue(int value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ICheckInBusinessWithReservation extends ICheckInBusiness {\r\n\r\n\r\n boolean setReservationOrder(long reservationOrderID);\r\n\r\n}",
"public interface IPizzaBaker {\n\n String getName();\n IntermediatePizza bakePiza(IntermediatePizza intermediatePizza);\n\n IntermediatePizza addToppings(IntermediatePizza IntermediatePizza);\n\n IntermediatePizza addSauce(IntermediatePizza IntermediatePizza);\n\n IntermediatePizza startBakingYourPizza();\n\n Set<IRecipe> getPizzaSkills();\n\n}",
"public interface OrderBookBalancingLogic {\n boolean balancingByPercentage();\n}",
"public interface CustomerInterface {\n\n\t/**\n\t * @return a string equivalent to delivery option\n\t */\n\tString getDeliveryString();\n\n\t/**\n\t * @return firstName\n\t */\n\tString getFirstName();\n\n\t/**\n\t * @return lastName\n\t */\n\tString getLastName();\n\n\t/**\n\t * @return phone\n\t */\n\tString getPhone();\n\n\t/**\n\t * @return address\n\t */\n\tString getAddress();\n\n\t/**\n\t * @return pizzaList\n\t */\n\tArrayList<Pizza> getPizzaList();\n\n\t/**\n\t * Validates and sets firstName\n\t * @param firstName\n\t * @throws IllegalArgumentException if argument does not pass validation rule\n\t */\n\tvoid setFirstName(String firstName) throws IllegalArgumentException;\n\n\t/**\n\t * Validates and sets lastName\n\t * @param lastName\n\t * @throws IllegalArgumentException if argument does not pass validation rule\n\t */\n\tvoid setLastName(String lastName) throws IllegalArgumentException;\n\n\t/**\n\t * Validates and sets phone\n\t * @param phone\n\t * @throws IllegalArgumentException if argument does not pass validation rule\n\t */\n\tvoid setPhone(String phone) throws IllegalArgumentException;\n\n\t/**\n\t * Validates and sets address\n\t * @param address\n\t * @throws IllegalArgumentException if argument does not pass validation rule\n\t */\n\tvoid setAddress(String address) throws IllegalArgumentException;\n\n\t/**\n\t * @return raw delivery boolean\n\t */\n\tboolean getDelivery();\n\n\t/**\n\t * @param pizza to add to list\n\t */\n\tvoid addPizza(Pizza pizza);\n\n}",
"public interface BenefitAvailabilityPolicy {\n\n\t/**\n\t * Calculates if an account is eligible to receive benefits for a dining.\n\t * @param account the account of the member who dined\n\t * @param dining the dining event\n\t * @return benefit availability status\n\t */\n\tpublic boolean isBenefitAvailableFor(Account account, Dining dining);\n}",
"public interface Barrier {\n\n /**\n * Obtains the barrier type.\n * \n * @return the barrier type\n */\n public abstract BarrierType getBarrierType();\n\n /**\n * Obtains the knock type.\n * \n * @return the knock type\n */\n public abstract KnockType getKnockType();\n\n /**\n * Obtains the barrier level for a given observation date.\n * \n * @param date the observation date\n * @return the barrier level\n */\n public abstract double getBarrierLevel(LocalDate date);\n\n /**\n * Obtains an instance with knock type inverted.\n * \n * @return the instance\n */\n public abstract Barrier inverseKnockType();\n\n}",
"public interface FlyBehevour {\n void fly();\n}",
"public interface RiskClient {\n\tboolean isPassingCreditCheck(String userId);\n}",
"public interface borrowable {\n\n\tpublic void borrowbook();\n\n}",
"public interface Beverage {\n\n String printDescription();\n double getCost();\n}",
"public interface HostBen {\n\t\t\n\tpublic void addWaiter(WaiterBen waiter);\n\t\n\tpublic void msgIWantFood(CustomerBen cust);\n\t\n\tpublic void msgICantWait(CustomerBen cust);\n\n\tpublic void msgLeavingTable(CustomerBen cust);\n\t\n\tpublic void msgWantToGoOnBreak(WaiterBen w);\n\t\n\tpublic void msgGoingBackToWork(WaiterBen w);\n\n\tpublic String getName();\n\n}",
"public interface CustomerManageBusiness extends BaseBusiness {\n\n\t/**\n\t * 条件获取广告主名\n\t * @param condition\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> searchCustomer(int visitId, Map<String, Object> condition) throws BusinessException;\n\t\n\t/**\n\t * 根据ID删除策略-广告主关系\n\t * @param id\n\t * @return\n\t * @throws BusinessException\n */\n\tpublic int deleteInfoById(int id)throws BusinessException;\n\n\tpublic int insertTradeInfo(Map<String,Object> condition) throws BusinessException;\n\n\tpublic List<Map<String,Object>> findAllByCondition(Map<String,Object> condition) throws BusinessException;\n\n\tpublic int countAllByCondition(Map<String,Object> condition) throws BusinessException;\n\n\tpublic List<Map<String,Object>> selectAllInfo(Map<String,Object> condition) throws BusinessException;\n\n\tpublic int countAllInfo(Map<String,Object> condition) throws BusinessException;\n}",
"public interface IBuyCar {\n //买车\n void buyCar();\n}",
"interface HasBatteries {}",
"public interface BillingService {\n /**\n * Attempts to charge the order to the credit card. Both successful and\n * failed transactions will be recorded.\n *\n * @return a receipt of the transaction. If the charge was successful, the\n * receipt will be successful. Otherwise, the receipt will contain a\n * decline note describing why the charge failed.\n */\n Receipt chargeOrder(PizzaOrder order, CreditCard creditCard);\n}",
"public Bike(Name name) {\n requireAllNonNull(name);\n this.name = name;\n\n this.status = BikeStatus.AVAILABLE;\n }",
"public interface Grocery {\n BigDecimal getCost();\n}",
"public interface LeaseInterface\r\n{\r\n\t// method all lease subclasses must include\r\n\tpublic abstract double calculateFee(int aWidth);\r\n\t\t\r\n}",
"public interface Restaurant4Customer {\n\n\t/**\n\t * @param amount The cost that was not paid and is added to the amount owed by the customer\n\t *\n\t * Sent by the cashier if the customer does not have enough money to pay.\n\t */\n\tpublic abstract void msgPayNextTime(double amount);\n\n\tpublic abstract void msgAnimationFinishedGoToSeat();\n\n\tpublic abstract void msgAnimationFinishedGoToWaitingArea();\n\n\tpublic abstract void msgAnimationFinishedLeaveRestaurant();\n\n\tpublic abstract void gotHungry();\n\n\tpublic abstract Object getGui();\n\n\tpublic abstract void setWaiter(Restaurant4Waiter waiter);\n\n\tpublic abstract void msgRestaurantIsFull(int seat);\n\n\tpublic abstract void msgFollowMe(int table);\n\n\tpublic abstract void msgWhatDoYouWant();\n\n\tpublic abstract void msgChooseNewOrder();\n\n\tpublic abstract void msgHereIsYourFood();\n\n\tpublic abstract void msgHereIsYourCheck(double checkAmt);\n\n\tpublic abstract void setHost(Restaurant4Host h1);\n\n\tpublic abstract void setCashier(Restaurant4Cashier ca);\n\n}",
"public interface Cashier {\n\t\n\t// Sent from waiter to computer a bill for a customer\n\tpublic abstract void msgComputeBill(String choice, Customer c, Waiter w, int tableNumber, Map<String, Double> menu);\n\t\n\t// Sent from a customer when making a payment\n\tpublic abstract void msgPayment(Customer customer, Cash cash);\n\n\tpublic abstract void msgAskForPayment(String food, int batchSize, Market market, double price);\n\n\tpublic abstract String getCash();\t\n\t\n\tpublic abstract String getTotalDebt(); \n}",
"public Bike(){\n\t}",
"public interface IBBO {\n String getSecurityId();\n\n double getBidPx();\n\n double getOfferPx();\n\n double getBidSize();\n\n double getOfferSize();\n\n String getTradingStatus();\n\n double getLastPx();\n\n double getLastSize();\n\n double getLowPx();\n\n double getHighPx();\n\n double getOpenPx();\n\n double getClosePx();\n\n PerformanceData getPerformanceData();\n\n boolean isInRecovery(IChannelStatus.ChannelType channelType);\n\n boolean isInRecoverySet(IChannelStatus.ChannelType channelType);\n}",
"public interface Blacksmith {\n Weapon manufactureWeapon(WeaponType weaponType);\n}",
"public interface Vehicle {\n\n void applyBrakes();\n void speedUp(int delta);\n void slowDown(int delta);\n}",
"public interface BondComponent {\n double getPrice();\n }",
"public interface WeighInService {\n}",
"public interface Coffee {\n void drink();\n}",
"public interface WithHoldOrderContract {\r\n\r\n ResponseData resendWithholdOrder();\r\n \r\n}",
"public interface Offerable {\n //this is a marker interface to allow a function in Checkout to run depending on what subclass of item is being used as an argument\n}",
"public interface IBuildingBoundariesRuleBook extends RuleBook {\n}",
"public interface Payable {\n int getSalary();\n}",
"public interface Brain {\n\n public void think(String words);\n\n public void answer(String msg);\n}",
"public interface Discountable {\n void discountSell();\n}",
"public interface RfpHotel extends RfpCompany {\n\n EntityImage getImage();\n\n int getRating();\n\n HotelChain getChain();\n\n List<String> getAmenities();\n\n HotelCategory getCategory();\n\n String getBrandChainName();\n\n String getMasterChainName();\n\n String getMasterChainId();\n}",
"public interface FlyBehavior {\n /**\n * Describes a process of flight.\n */\n void fly();\n}",
"public interface Box { // a ser implementada en clase Product\n double calculatePrice();\n}",
"public interface Bounceable {\n void bounce();\n void setBounceFactor(int bf);\n}",
"public interface Drink {\n void drink();\n}",
"public ElectricBike() {\n\t\tsuper();\n\t}",
"public interface AdultAccountInterface {\n\n\tpublic void makeAccount();\n}",
"public interface IEmployeeBonus {\n double calculateBonus(double salary);\n}",
"public interface HouseholdAppliances {\n public void on();\n public void off();\n}",
"public interface Chef {\n\n void update(Order order);\n\n}",
"public interface IBook {\n\n // Returns the number of days that the book is overdue\n public int daysOverdue(int today);\n\n // Is the book overdue?\n public boolean isOverdue(int today);\n\n // returns the price of the fine for an overdue book in cents\n public int computeFine(int today);\n\n}",
"public interface SacrificeCost extends Cost {\n}",
"public interface Boy {\n\n public void drawMan();\n}",
"public interface Offer {\r\n\t/**\r\n\t * information about provider \r\n\t * @return\r\n\t */\r\n\tOperationUser getOfferProvider();\r\n\r\n\t/**\r\n\t * short description of offer\r\n\t * @return\r\n\t */\r\n\tString getOfferSummary();\r\n}",
"public interface cfq {\n cfp b();\n}",
"public interface RecipesForCakes {\n String bakeCake();\n}",
"public interface RentToBuyService {\n}",
"public interface bzt extends cdm {\n}",
"public interface Offer {\n\n /**\n * Apply this offer to the given DiscountingContext\n * either the same context if we have not applied the offer\n * or a new context which reflects any new discounts applied\n * and required items used up\n * @param context\n * @return\n */\n DiscountingContext apply(DiscountingContext context);\n\n /**\n * Is this offer valid for the given date\n * @param date\n * @return true if it is valid false otherwise\n */\n boolean isValidForDate(LocalDate date);\n\n /**\n * Is this offer potentially valid for the given collection of items\n *\n * This is an opportunity to count ourselves out of the running\n * if the basket is missing a key component of the offer\n *\n * @param items\n * @return true if the offer is valid for the given set of items\n */\n boolean isValidForBasket(Collection<Item> items);\n\n}",
"public void hasA(Bike b)\n {\n\t\tSystem.out.println(\"bike cc is: \"+b.getCc());\n\t\tSystem.out.println(\"bike colour is: \"+b.getColour());\n\t}",
"public interface TwoWayPrice<P, C extends CurrencyId> extends TwoWay<P>, Price<C> {\n\n @Nonnull\n P mid();\n\n /**\n * @return true if the {@link #bid} exceeds the {@link #offer}.\n */\n boolean isCrossed();\n\n /**\n * @return true if there is any difference between the {@link #bid} and {@link #offer}.\n */\n boolean hasSpread();\n\n @Override\n default Map<String, Object> explain() {\n return this.explanationBuilder()\n .put(\"bid\", this.bid())\n .put(\"offer\", this.offer());\n }\n\n @Override\n TwoWayPrice<P, C> evaluate();\n\n}",
"public interface ICordysGatewayClientFactory\r\n{\r\n /**\r\n * Return a client (the factory is also responsable for creating the gateway).\r\n *\r\n * @return A cordys gateway client.\r\n */\r\n ICordysGatewayClient getGatewayClientInstance();\r\n}",
"public interface Flyable\n{\n public void updateConditions();\n public void registerTower(WeatherTower weatherTower);\n public void unregisterTower(WeatherTower weatherTower);\n}",
"public interface Discountable {\n\n double calcDiscountedPriceMarkUp(double discount);\n\n}",
"public interface BusinessBar {\n String bar(String message);\n String bar2(String message);\n\n}",
"interface Chicken {\n public void gobble();\n public void fly();\n}",
"public interface Domainclient {\n public void investment();\n}",
"public interface GigyaAuthService\n{\n\n\t/**\n\t * Method to assign authorisations to the customer after fetching it from SAP CDC.\n\t *\n\t * @param customer\n\t * The customer model \n\t */\n\tvoid assignAuthorisationsToCustomer(CustomerModel customer);\n\n\t/**\n\t * Method to remove authorisations from the customer.\n\t *\n\t * @param customer\n\t * The customer model \n\t */\n\tvoid removeAuthorisationsOfCustomer(CustomerModel customer);\n\n}",
"public interface WipableIngredient extends Ingredient {\n\n void wip();\n}",
"public interface Weighted {\r\n\r\n}",
"public interface BluesIWomen {\n public int getType();\n\n public String getRequest();\n}",
"public interface Transactionable {\n\n void book(String fromName, String toName, BigDecimal amount) throws NoNegativeBalanceAllowedException, NoSameAccountTransfersException;\n\n}",
"@Override\n\tpublic void businessMoney() {\n\n\t}",
"public interface BillContracts {\n\tinterface View {\n\t\t/**\n\t\t * 列表显示\n\t\t * @param\n\t\t */\n\t\tpublic void showBillItem(BillList bills);\n\n\t}\n\n\tinterface Presenter {\n\n\t\t/**\n\t\t * 条目被点击\n\t\t * @param context\n\t\t * @param simpleBill\n\t\t */\n\t\tpublic void itemClick(Context context, SimpleBill simpleBill);\n\n\t\t/**\n\t\t * 获取列表\n\t\t */\n\t\tpublic BillList getBillList();\n\n\t\t/**\n\t\t * 通知数据改变\n\t\t */\n\t\tpublic void notifyDataChange(Context context, BillAdapter adapter);\n\n\t\t/**\n\t\t * 加载缓存\n\t\t */\n\t\tpublic void startCacheLoading(Context context, BillList.SyncLoadBillLisetner syncLoadBillLisetner);\n\n\t\t/**\n\t\t * 获取分享链接\n\t\t * @param activity\n\t\t * @param billId\n\t\t */\n\t\tpublic void getInviteLink(final Activity activity, final String billId);\n\t}\n}",
"public interface FlightDetails\n{\n\n double getPrice();\n\n boolean getFlightType(String name);\n/**\n boolean isVisible();\n\n void setVisibility(boolean isVisible);*/\n\n}",
"public interface Client {\n\n DomainObjectAdapter getClientDomainObject();\n\n Set<Rule> getRules();\n\n// void apply(DomainObjectAdapter domainObject);\n}",
"public String getBikeName() {\n return bikeName;\n }",
"public interface Goods {\n\n int price();\n String name();\n String description();\n\n}",
"public interface Vehicle {\n\n double getSpeedLimit();\n}",
"public interface NotificationValidatedMark {\n\n}",
"public interface IClient extends Remote, Serializable {\n /**\n * @param auction\n * @throws RemoteException\n */\n void newAuction(AuctionBean auction) throws RemoteException;\n\n /**\n * @param auction\n * @throws RemoteException\n */\n void submit(AuctionBean auction) throws RemoteException;\n\n /**\n * @param buyer\n * @throws RemoteException\n */\n void bidSold(IClient buyer) throws RemoteException;\n\n /**\n * @param auctionID\n * @param price\n * @throws RemoteException\n */\n void newPrice(UUID auctionID, int price) throws RemoteException;\n\n /**\n * @return\n * @throws RemoteException\n */\n String getName() throws RemoteException;\n\n ClientState getState() throws RemoteException;\n\n void setState(ClientState newState) throws RemoteException;\n}",
"public interface Vehicle {\n /**\n * Gets number of places required\n * for parking this vehicle.\n *\n * @return Number of places for\n * the vehicle.\n */\n int size();\n}",
"public boolean canBike() {\r\n\t\tif (location == Location.SAFARI || location == Location.TOWN || location == Location.CAVE) {\r\n\t\t\treturn items.containsKey(Bicycle.getBicycleInstance());\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public interface Knight {\n public void emberkOnQuest();\n}",
"public interface HawkToBrainComp {\n /**\n * Every kind of personality will have a designated response in the form of IDK(I don't know)\n * This method allows the Hawker can use this method and an equals method to the response to determine\n * if the AI didn't have a response available for the User.\n * @return returns the IDK response of the Personality\n */\n public String getIDKReply();\n\n /**\n * Send a conventional grammar into this method and receive a response from the AI Personality\n * @param conventional_Grammar to be determined\n */\n public String requestResponce(String conventional_Grammar);\n}",
"public interface ICreditRefundBorrow {\n}",
"public interface VendingMachine {\n long getPrice(Item item);\n void insertCoin(Coin coin);\n List<Coin> refund();\n Bucket<Item, List<Coin>> dispenseItemAndChange();\n void reset();\n}",
"public interface BDService {\n\n\n public List<BfPredict> getAllBf();\n\n public BfPredict getABf(String countyName);\n\n public Integer insertBf(BfPredict bfPredict);\n\n public Predict getAPredict(String countyName);\n\n public Integer insertPredict(Predict predict);\n\n}",
"public interface BountyPresenter {\n}",
"public interface ManualQuote extends MutableBusinessModel\n{\n public static final String PROPERTY_PRODUCT_KEYS = \"PROPERTY_PRODUCT_KEYS\";\n public static final String PROPERTY_SIDE = \"PROPERTY_SIDE\";\n public static final String PROPERTY_PRICE = \"PROPERTY_PRICE\";\n public static final String PROPERTY_SIZE = \"PROPERTY_SIZE\";\n public static final String PROPERTY_OVERRIDE = \"PROPERTY_OVERRIDE\";\n\n // helper methods to struct attributes\n public String getSessionName();\n public ProductKeys getProductKeys();\n public char getSide();\n public Price getPrice();\n public int getSize();\n public boolean isOverrideIndicator();\n public ManualQuoteDetail getManualQuoteDetail();\n public KeyValueStruct[] getExtensions();\n public SessionProduct getSessionProduct();\n public SessionReportingClass getSessionReportingClass();\n public SessionProductClass getSessionProductClass();\n\n public void setSessionProduct(SessionProduct sessionProduct);\n public void setSessionReportingClass(SessionReportingClass sessionReportingClass);\n public void setSessionProductClass(SessionProductClass sessionProductClass);\n public void setSide(char side);\n public void setPrice(Price price);\n public void setSize(int size);\n public void setOverrideIndicator(boolean override);\n public void setManualQuoteDetail(ManualQuoteDetail manualQuoteDetail);\n public void setExtensions(KeyValueStruct[] keyValues);\n\n public ManualQuoteStruct getStruct();\n}",
"public interface IClient {\n\n void setName(String name);\n}",
"public interface Sandwich {\n public String make();\n}",
"public interface IBusiness {\n public Map<String, Object> trade(Map<String, Object> msgMap);\n}",
"public interface FlyBehavior {\n\n /**\n * 飞行的动作\n */\n void fly();\n\n}",
"public interface FlyBehavior {\n String fly();\n}",
"public interface IClient {\n\n public Set<CabResult> getCabList(Double lat, Double lon, BookingMode mode, CabType cabType);\n\n public CabResult getBestCab(Double lat, Double lon, BookingMode mode, CabType cabType);\n}",
"public interface WithDrawalContract extends BaseContract {\n void getWithDrawData(WithDrawDataBean results);\n void withDrawSuccess();\n}",
"public interface Discountable {\n\n String discount();\n\n\n}",
"public interface Flyable{\r\n\tString fly();\r\n}",
"public interface AreaOccupier {\n}",
"public interface VehicleMaintenance {\n\n public void doRepair();\n}",
"public interface ClientBalanceService {\n public void queryClientBalance();\n}",
"@SuppressWarnings(\"all\")\n@NonNullByDefault\npublic interface IHasCurve extends org.archstudio.bna.IThing {\n\n\tpublic static final IThingKey<java.lang.Integer> CURVE_KEY = ThingKey.create(com.google.common.collect.Lists.newArrayList(\"curve\", IHasCurve.class));\n\n\tpublic int getCurve();\n\n}",
"public interface Service {\r\n\t\r\n\t public Customer createAccount(Customer c) \r\n\t\t\t throws InvalidInputException; \r\n\t public Customer getBalance(String mobile) \r\n\t\t\t throws AccountNotFoundException, InvalidInputException;\r\n\t public Customer FundTransfer\r\n\t (String fromMobile, String toMobile, double amount)\r\n throws AccountNotFoundException,InvalidInputException, InsufficientBalanceException;\r\n\t \r\n\t public Customer deposit (String mobile, double amount)\r\n\t throws AccountNotFoundException,InvalidInputException, InsufficientBalanceException;\r\n\r\n}",
"public void createBike() {\n createFrame();\n addWheels();\n addPedals();\n getPrice();\n }",
"public interface Dishonorable {\n\n}",
"public interface IFlyAminal {\n void fly();\n}"
]
| [
"0.6431031",
"0.63215816",
"0.63138086",
"0.62546074",
"0.6165619",
"0.61601526",
"0.615774",
"0.6144124",
"0.614255",
"0.61099017",
"0.60530597",
"0.604581",
"0.6041834",
"0.6023606",
"0.6017053",
"0.6011706",
"0.59930336",
"0.5987132",
"0.59579945",
"0.5956392",
"0.5956036",
"0.5948348",
"0.5929033",
"0.5885694",
"0.58586764",
"0.5847956",
"0.584707",
"0.58433616",
"0.58270097",
"0.58191174",
"0.5813684",
"0.5810162",
"0.58019924",
"0.5798406",
"0.57876563",
"0.57859963",
"0.5783362",
"0.5777722",
"0.57741547",
"0.57621443",
"0.5759139",
"0.575321",
"0.574436",
"0.5735739",
"0.57303494",
"0.572037",
"0.5708958",
"0.57087815",
"0.57059914",
"0.5701956",
"0.56973606",
"0.5681772",
"0.56780946",
"0.5674052",
"0.5666075",
"0.56552756",
"0.56438684",
"0.5642948",
"0.5626556",
"0.5618053",
"0.56129164",
"0.5612058",
"0.5610074",
"0.5608777",
"0.56032753",
"0.55982566",
"0.5594923",
"0.55906475",
"0.5590569",
"0.55902916",
"0.558733",
"0.5587114",
"0.5583834",
"0.5582887",
"0.55767787",
"0.5569881",
"0.55681145",
"0.5563801",
"0.5557493",
"0.555735",
"0.55568033",
"0.55472326",
"0.5546477",
"0.55452836",
"0.55297506",
"0.55277073",
"0.5523857",
"0.5523738",
"0.5521519",
"0.5519959",
"0.5519773",
"0.5517755",
"0.5517316",
"0.5513842",
"0.550563",
"0.54956234",
"0.54889756",
"0.5487475",
"0.5482963",
"0.548249"
]
| 0.7437533 | 0 |
Returns the Colour of this Bike | public Colour getColour(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getColour() {\n return colour;\n }",
"public String getColour() {\n return colour;\n }",
"public String getColour()\n\t{\n\t\treturn colour;\n\t}",
"public String getColour() {\r\n return colour;\r\n }",
"public int getColour()\r\n\t{\r\n\t\treturn colour;\r\n\t}",
"String getColour();",
"public int getColour() {\n return colour;\n }",
"public Colour getColour() {\n\t\treturn colour;\n\t}",
"public String getColor()\n {\n return this.color;\n }",
"public String getColor() {\n return this.color;\n }",
"public String getColor()\n {\n return color;\n }",
"public String getColor()\n {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\r\n return color;\r\n }",
"public String getBubbleColour(){\n return myBathtub.getBubbleColour();\n }",
"@Override\n public String getColor() {\n return this.color;\n }",
"public int getColor() {\n return this.color;\n }",
"public String getColor(){\n return this._color;\n }",
"@Override\n public String getColor() {\n return this.color.name();\n }",
"public String getColor() {\n\t\treturn color;\n\t}",
"public String getColor() {\n\t\treturn color;\n\t}",
"public String getColor() {\r\n\t\treturn color;\r\n\t}",
"public String getColor() { \n return color; \n }",
"public String getColor(){\n\t\treturn color;\n\t}",
"public CMYKColors getColor() {\n return this.color;\n }",
"public int getColor() {\n return color;\n }",
"public Color getColor() {\n return Color.YELLOW;\n }",
"public Color getColor() {\n return this.color;\n }",
"public Color getColor() {\n return this.color;\n }",
"public Color getColor() {\n return this.color;\n }",
"public Color getColor() {\n return this.color;\n }",
"public String getColor(){\n return this.color;\n }",
"public Color getColor() {\r\n return this.color;\r\n }",
"public Color getColor() {\n return BirdColor;\n }",
"public String getColor(){\r\n return color;\r\n }",
"int getColour();",
"public Color getColor()\n {\n return color;\n }",
"public Integer getColor() {\n\t\treturn color;\n\t}",
"@Override\n public Color getColor() {\n return Utils.Pion.BLANC.getCouleur();\n }",
"public Color getColor() \n\t{\n\t\treturn color;\n\t}",
"public int getColor() {\n \t\treturn color;\n \t}",
"public Color getColor() {\n\t\treturn this.color;\n\t}",
"public String[] getColour()\n {\n return colour;\n }",
"public Color getColor()\n {\n return color;\n }",
"public Color getColor()\n {\n return color;\n }",
"public Color getColor()\n {\n return color;\n }",
"public Color getColor() {\n return color;\r\n }",
"public int getColor(){\n\t\treturn color;\n\t}",
"public int getColor(){\n\t\treturn color;\n\t}",
"public int getColor(){\r\n\t\treturn color;\r\n\t}",
"public String obtenColor() {\r\n return color;\r\n }",
"public Color getColor() {\n return this.color;\n }",
"public Color getColor() {\n \t\treturn color;\n \t}",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\r\n return color;\r\n }",
"public Color getColor() {\r\n return color;\r\n }",
"public Color getColor() {\r\n return color;\r\n }",
"public Color getColor() {\n return color;\n }",
"public int getColor() {\r\n return Color;\r\n }",
"public ColourPair getColorPair() {\n return colour;\n }",
"public RMColor getColor()\n {\n return getStyle().getColor();\n }",
"@Override\n public ShapeColor getColor() {\n return new ShapeColor(this.r, this.g, this.b);\n }",
"public Color getColor()\n { \n return color;\n }",
"public Color getColor() { return color.get(); }",
"public final Color getColor() {\n return color;\n }",
"public Color getColor() { return color; }",
"public Color getColor()\r\n\t{\r\n\t\treturn _g2.getColor();\r\n\t}",
"public Color getColor() {\r\n\t\treturn color;\r\n\t}",
"public Color getColor() {\r\n\t\treturn color;\r\n\t}",
"public Color getColor() {\n\t\treturn color;\n\t}",
"public Color getColor() {\n\t\treturn color;\n\t}",
"public Color getColor() {\n\t\treturn color;\n\t}",
"public Color getColor() {\n\t\treturn color;\n\t}",
"public final Color getColor() {\r\n return color;\r\n }",
"public Color getColor() {\n\treturn color;\n }",
"@Override\n\tpublic String getColor() {\n\t\treturn \"blue\";\n\t}",
"public Color getColor(){\n return color;\n }",
"public Color color() {\n return this.color;\n }",
"public Color getColor() {\n\t\treturn couleur;\n\t}",
"public Color getColor() {\n\t\treturn _color;\n\t}",
"public Color getColor()\n {\n return color;\n }",
"public java.awt.Color getColor() {\n return this.color;\n }",
"public java.awt.Color getColor() {\n return this.color;\n }",
"public RGBColor getColor(){\r\n return this._color;\r\n }",
"public java.awt.Color getColor() {\r\n return this.color;\r\n }",
"public Color getColor() {\n\t\treturn (Color)p.getPaint();\n\t}",
"public final Color getColor() {\n\t\treturn color;\n\t}",
"public Color get_color() {return this.color;}"
]
| [
"0.79314554",
"0.79314554",
"0.7911894",
"0.7898875",
"0.77341354",
"0.7689591",
"0.7670382",
"0.761427",
"0.75733966",
"0.75016433",
"0.74968576",
"0.74968576",
"0.7430599",
"0.7430599",
"0.7430599",
"0.7430599",
"0.7430599",
"0.7430599",
"0.7430599",
"0.7430599",
"0.74186456",
"0.74037683",
"0.7390366",
"0.7386781",
"0.73860055",
"0.738469",
"0.7374435",
"0.7374435",
"0.7369467",
"0.7363567",
"0.73611057",
"0.73578346",
"0.73359865",
"0.73331654",
"0.7308281",
"0.7306435",
"0.7306435",
"0.7306435",
"0.7296841",
"0.72877365",
"0.7284034",
"0.7273495",
"0.7265892",
"0.72616667",
"0.7260758",
"0.72526324",
"0.724461",
"0.72417545",
"0.72391695",
"0.72362167",
"0.7227114",
"0.7227114",
"0.7227114",
"0.722304",
"0.7222992",
"0.7222992",
"0.7210305",
"0.7206885",
"0.72049356",
"0.71844876",
"0.7183626",
"0.7183626",
"0.7183626",
"0.7183626",
"0.7183626",
"0.7183626",
"0.71827745",
"0.71827745",
"0.71827745",
"0.71825004",
"0.7180877",
"0.71751887",
"0.71704704",
"0.7168304",
"0.716196",
"0.71466464",
"0.7144271",
"0.7137541",
"0.71305007",
"0.7128418",
"0.7128418",
"0.7114558",
"0.7114558",
"0.7114558",
"0.7114558",
"0.70974714",
"0.7096141",
"0.7086035",
"0.7083574",
"0.7082491",
"0.707193",
"0.7067015",
"0.704444",
"0.70388794",
"0.70388794",
"0.70345265",
"0.7033333",
"0.703092",
"0.7030706",
"0.7019888"
]
| 0.76337373 | 7 |
Sets the Colour of this Bike | public void setColour(Colour colour); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setColor(Color c) { color.set(c); }",
"public void setColor(Color c);",
"public void setColor(Color color);",
"public void setColour(String colour) {\n this.colour = colour;\n }",
"public void setColor(int value);",
"void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }",
"public void setColor(int color);",
"public void setColor(int color);",
"public void setColor(Color newColor) ;",
"public void setColor()\n {\n if(eyeL != null) // only if it's painted already...\n {\n eyeL.changeColor(\"yellow\");\n eyeR.changeColor(\"yellow\");\n nose.changeColor(\"green\");\n mouthM.changeColor(\"red\");\n mouthL.changeColor(\"red\");\n mouthR.changeColor(\"red\");\n }\n }",
"public void setColor(String c);",
"public void setColor(Color color) {\n this.color = color;\n }",
"public void setColour(String c)\n\t{\n\t\tcolour = c;\n\t}",
"public void setColor(Color clr){\n color = clr;\n }",
"public void setColor(Color c) {\n color = c;\n }",
"public void setColor( GraphColor newVal ) {\n color = newVal;\n }",
"private void setColor() {\n cell.setStroke(Color.GRAY);\n\n if (alive) {\n cell.setFill(aliveColor);\n } else {\n cell.setFill(deadColor);\n }\n }",
"public void setColor(Color c) {\n this.color = c;\n }",
"public void setColor(final Color theColor) {\n myColor = theColor;\n }",
"public void setColor(int r, int g, int b);",
"@Override\n\tpublic void setColour(float r, float g, float b) {\n\n\t}",
"private void setPenColor() {\n\t}",
"public void setColor(String c)\n { \n color = c;\n draw();\n }",
"public void setColor(int color) {\n/* 77 */ this.color = color;\n/* 78 */ this.paint.setColor(this.color);\n/* */ }",
"public void setColor(Color color) {\n this.color = color;\r\n }",
"public void setColor(int color){\n this.color = color;\n }",
"public void setColor(Color c)\n\t{\n\t\tthis.color = c;\n\t}",
"public void setColor(int c) {\n paint.setColor(c);\n invalidate();\n }",
"void setColor(int r, int g, int b);",
"public abstract void setColor(Color color);",
"public abstract void setColor(Color color);",
"public void setColor(Color c) {\n\t\tthis.color = c;\n\t}",
"@NoProxy\n @NoWrap\n public void setColor(final String val) {\n color = val;\n }",
"public void setPenColor(Color color){\n myPen.setPenColor(color);\n }",
"public void setColor()\n {\n if(wall != null) // only if it's painted already...\n {\n wall.changeColor(\"yellow\");\n window.changeColor(\"black\");\n roof.changeColor(\"red\");\n sun.changeColor(\"yellow\");\n }\n }",
"void setStatusColour(Color colour);",
"public void setColor(Color that){\r\n \t//set this to that\r\n this.theColor = that;\r\n if(this.theColor.getRed() == 255 && this.theColor.getGreen() == 0 && this.theColor.getBlue() == 0){\r\n this.theColor = Color.red;\r\n }\r\n if(this.theColor.getRed() == 0 && this.theColor.getGreen() == 0 && this.theColor.getBlue() == 255){\r\n this.theColor = Color.black;\r\n }\r\n if(this.theColor.getRed() == 0 && this.theColor.getGreen() == 255 && this.theColor.getBlue() == 0){\r\n this.theColor = Color.green;\r\n }\r\n }",
"public void setColor(Color color) {\n this.color = color;\n }",
"public void setFillColor(Color color);",
"public void setColor(int gnum, Color col);",
"public void setColor()\n {\n if (wall != null) // only if it's painted already...\n {\n wall.changeColor(\"red\");\n window.changeColor(\"black\");\n roof.changeColor(\"green\");\n sun.changeColor(\"yellow\");\n }\n }",
"public void set(Color inColor) {\n\n\t\tthis.r = inColor.r;\n\t\tthis.g = inColor.g;\n\t\tthis.b = inColor.b;\n\n\t}",
"@Override\n public void setColor(Color color) {\n this.color = color;\n }",
"public void setColor()\n {\n if(wall != null) // only if it's painted already...\n {\n wall.changeColor(\"red\");\n window.changeColor(\"black\");\n roof.changeColor(\"green\");\n sun.changeColor(\"yellow\");\n }\n }",
"void setColor(final java.awt.Color color);",
"public void setColor(Color color) {\r\n changeColor(color);\r\n oldSwatch.setForeground(currentColor);\r\n newSwatch.setForeground(currentColor);\r\n colorCanvas.setColor(currentColor);\r\n repaint();\r\n }",
"public void setColor(int color) {\n this.color = color;\n }",
"public void setColor(int color){\r\n\t\tthis.color=color;\r\n\t}",
"public void setColor(float r, float g, float b, float a);",
"public void setColor(Graphics2D g){\r\n if(color.equals(\"yellow\") || color.equals(\"Yellow\"))\r\n g.setColor(Color.yellow);\r\n if(color.equals(\"red\") || color.equals(\"Red\"))\r\n g.setColor(Color.red);\r\n if(color.equals(\"blue\") || color.equals(\"Blue\"))\r\n g.setColor(Color.blue);\r\n \r\n }",
"public void setColor(Color newColor)\n {\n this.color = newColor;\n conditionallyRepaint();\n }",
"public void setColor(Color color) {\n\t\t_color = color;\n\t\tnotifyObs(this);\n\t}",
"public void setStrokeColor(Color color);",
"public void setDrawingColor(int color){\n mPaintLine.setColor(color);\n }",
"public void setColor(Color another)\r\n {\r\n currentColor = another;\r\n }",
"public void setColor (Color color)\n {\n this.color = color;\n repaint();\n }",
"void setGreen(int green){\n \n this.green = green;\n }",
"public void setCarColor(){\n\t\tthis.carColor = \"white\";\n\t}",
"public void setColor(String color){\n this.color = color;\n }",
"public void setColor( int c ){//1 means black, 0 means white\r\n\t\tif(c==1)\r\n\t\t\tthis.setBackground(Color.BLACK);\r\n\t\telse\r\n\t\t\tthis.setBackground(Color.WHITE);\r\n\t}",
"public void setColored() {\n\t\tmenuItemViewColored.setFillColor(new MTColor(255, 255, 255, 255));\n\t\tthis.arrow.setBright();\n\t\tcolored = true;\n\t}",
"@Override\r\n public void setColor(Llama.Color color) {\r\n this.color = color;\r\n }",
"protected void setColor(Color color) {\r\n\t\tthis.color = color;\r\n\t}",
"public void setColor(Color choice) {\n circleColor = choice;\n\n }",
"void setCurrentPenColour(Color colour) {\n int colourIndex = shapes.size();\n lineColours.set(colourIndex, colour);\n currentPenColour = colour;\n writeFile.writePen(colour);\n }",
"public void setColor(String value) {\n setAttributeInternal(COLOR, value);\n }",
"public void setColor(Color color) \n\t{\n\t\tthis.color = color;\n\t}",
"@Override\n public ShapeColor setColor(int r, int g, int b) {\n return new ShapeColor(r, g, b);\n }",
"public void setColor(String pColor){\n this._color=pColor;\n }",
"public void setColor(Color newColor) {\n\tcolor = newColor;\n }",
"public void setColor(RMColor aColor)\n{\n // Set color\n if(aColor==null) setFill(null);\n else if(getFill()==null) setFill(new RMFill(aColor));\n else getFill().setColor(aColor);\n}",
"public void setColor(GrayColor color){\n this.color = color;\n }",
"public void setPenColor(int color) {\n mPaint.setColor(color);\n }",
"void setRed(int red){\n \n this.red = red;\n }",
"public void setColor(int color){\n\t\tthis.color = color;\n\t}",
"public void setColor(String color) {\r\n this.color = color;\r\n }",
"void setColor(@ColorInt int color);",
"public void setColor(int color) {\r\n\t\tthis.color = color;\r\n\t}",
"public void setValue(Color value) {\n _color = value;\n _updateField(value);\n }",
"void setColor(Vector color);",
"public void setColor( Color color ) {\n\t\tgraphics.setColor( color );\n\t}",
"public void setColor(RGBColor color){\r\n this._color = new RGBColor(color);\r\n }",
"public void setBg(){\n this.setBackground(color);\n }",
"public void setColor(Color c){\n\t\t//do nothing\n\t}",
"@Override\n public void setColor(Color color) {\n super.setEdgeColor(color);\n }",
"public void setColor(Color color_) {\r\n\t\tcolor = color_;\r\n\t}",
"private static void changeColor(Orange apple) {\n\t\tapple.color = \"green\";\n\t\t\n\t}",
"public void setColor(int red, int green, int blue){\r\n this.red = red;\r\n this.green = green;\r\n this.blue = blue;\r\n }",
"public final native void setFill(Colour colour) /*-{\n\t\tthis.setFill([email protected]::toString()());\n\t}-*/;",
"public void setColor(Color color) {\n\t\tthis.color = color;\n\t}",
"public void setColor(Color color) {\n\t\tthis.color = color;\n\t}",
"@Override \n\tpublic void setNormalColor(){\n\t\tthis.setColor(Color.PINK);\n\t}",
"public void setColor(Color newColor) {\n color = newColor;\n Canvas.getInstance().repaint();\n }",
"public void setRgbColorBg(int newval) throws YAPI_Exception\n {\n _rgbColor = newval;\n _ycolorled.set_rgbColor(newval);\n }",
"public void setBorderColour(Color borderColour) {\n\t\tthis.borderColour = borderColour;\n\t}",
"public void setColor(String color) {\r\n this.color = color;\r\n }",
"public void changeColor(){\r\n if(color == 1)\r\n color = 2;\r\n else\r\n color = 1;\r\n }",
"public void setColor(String newColor)\n {\n invalidate();\n paintColor = Color.parseColor(newColor);\n drawPaint.setColor(paintColor);\n }",
"public void changeDogColor(Color dogColor) {\n this.color = dogColor;\n }",
"public void setColor(IsColor color) {\n\t\tsetColor(IsColor.checkAndGetValue(color));\n\t}"
]
| [
"0.7343634",
"0.73038733",
"0.7170488",
"0.7084409",
"0.7070405",
"0.7056756",
"0.70504224",
"0.70504224",
"0.7050339",
"0.6965712",
"0.69629085",
"0.695627",
"0.6948738",
"0.69413155",
"0.69141716",
"0.6890787",
"0.6871059",
"0.68628764",
"0.68488705",
"0.68212986",
"0.6780781",
"0.67774445",
"0.67501736",
"0.66626227",
"0.66428363",
"0.6602368",
"0.6601559",
"0.6593406",
"0.6588629",
"0.6581025",
"0.6581025",
"0.6569507",
"0.65597767",
"0.65468264",
"0.654233",
"0.65348476",
"0.6511699",
"0.65007275",
"0.6495762",
"0.6492519",
"0.64872336",
"0.6483375",
"0.6474575",
"0.646882",
"0.6438429",
"0.64243627",
"0.64015245",
"0.63697946",
"0.6369404",
"0.635853",
"0.6355271",
"0.63509506",
"0.63465476",
"0.63459563",
"0.6342042",
"0.633291",
"0.632924",
"0.6327448",
"0.632572",
"0.63188905",
"0.63065493",
"0.6302624",
"0.6297353",
"0.62822175",
"0.6279255",
"0.6278525",
"0.6277729",
"0.6270014",
"0.6259949",
"0.625674",
"0.6256291",
"0.6254571",
"0.62524354",
"0.6248087",
"0.6226941",
"0.62107116",
"0.6209193",
"0.6204579",
"0.6202586",
"0.61981726",
"0.618321",
"0.61799514",
"0.6179223",
"0.6176128",
"0.61704105",
"0.6170339",
"0.61688435",
"0.61643314",
"0.61631805",
"0.6162788",
"0.6162788",
"0.61571527",
"0.61189115",
"0.6118337",
"0.61170346",
"0.6090316",
"0.6079656",
"0.60761523",
"0.60701406",
"0.60677624"
]
| 0.75777453 | 0 |
Returns the number of gears this Bike has | public int getGears(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumOfTravellingBikes(){\n int numberOfBikes = 0;\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_TRAVEL_DATA);\n ResultSet rs = ps.executeQuery()){\n \n while(rs.next()){\n numberOfBikes++;\n }\n \n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return numberOfBikes;\n }",
"public Integer getNumOfCarbons() {\n return numOfCarbons;\n }",
"public int getNumCars() {\r\n\t\treturn (numCars + numSmallCars);\r\n\t}",
"public int getNumberOfCheese() {\n return this.cheese;\n }",
"int getAcksCount();",
"int getAcksCount();",
"int getNumberOfArtillery();",
"int getPriceCount();",
"@Override\r\n\tpublic int getPegCount() {\r\n\t\tint shipSize = 3;\r\n\t\treturn shipSize;\r\n\t}",
"public int getNumOfMatchedBets();",
"public int get_numLostBags(){\r\n return num_lost_bags;\r\n }",
"public int getBottles() {\n return totalBottles;\n }",
"public int numHouses() {\n\t\treturn buildings;\n\t}",
"private int getNumberOfBoxesOfAllShips() {\r\n int count = 30;\r\n return count;\r\n }",
"public Integer getAvailableBikes() {\n return availableBikes;\n }",
"public int getNumberShips();",
"public int numberOfHotels() {\r\n \tint anzahlHotel=hotelDAO.getHotelList().size();\r\n \treturn anzahlHotel;\r\n }",
"int getWayCount();",
"int getTrucksCount();",
"public int size(){\r\n return boats.size();\r\n }",
"public int numberOfBoats(){\n return this.boats.size();\n }",
"public int getHandKarteCount(){\n return getHandKarte().size();\n }",
"public static int getNumberOfGuppiesBorn() {\n return numberOfGuppiesBorn;\n }",
"@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}",
"public int getArmyCount() {\n\n return this.totArmyCount;\n }",
"int getBlockLocationsCount();",
"public int getBallsCount() {\n return balls.size();\n }",
"public int getNumberOfPlaces()\n {\n return this.numberOfPlaces;\n }",
"public int numberOfBalls() {\n this.numberOfBalls = 4;\n return 4;\n }",
"int getReservePokemonCount();",
"int getLocationsCount();",
"public int getVeinCount() {\n return veinCount;\n }",
"public int countBoats() {\r\n\t\treturn boats.size();\r\n\t}",
"int numOfPillars() {\n // there are one more coordinate line than blocks in each direction\n // since each block must be hinged on a coordinate line on each side\n return (ni+1) * (nj+1);\n }",
"public int getNumOfLegs() {\n return numOfLegs;\n }",
"public int getPriceCount() {\n if (priceBuilder_ == null) {\n return price_.size();\n } else {\n return priceBuilder_.getCount();\n }\n }",
"public int getArmySize() {\n \t\treturn soldiers;\n \t}",
"public int passengerBaggageWeight() {\n\n int numberOfBags = 0;\n for(Passenger passenger : this.flight.getPassengers()){\n numberOfBags += passenger.getNumberOfBags();\n }\n return this.bagWeight * numberOfBags;\n }",
"public int bikeNum(){\n return bike;\n }",
"public int numberOfBalls() {\n return 10;\n }",
"@java.lang.Override\n public int getPriceCount() {\n return price_.size();\n }",
"public static int getGeqBandCount()\n {\n int bandCount = (int)akParam_genb_;\n return bandCount;\n }",
"public int numberOfBalls() {\r\n return 3;\r\n }",
"public int getShipsAlive() {\n return this.numberOfShips;\n }",
"public int getBallCount() {\r\n\t\treturn ballCount;\r\n\t}",
"public int size() {\r\n\t\treturn geheim.length;\r\n\t}",
"public int getNumBalls() {\n return numBalls;\n }",
"private int countGrasses()//issues...see comment below in countTrees()\n {\n int grasses = 0;\n Field field = getField();\n Iterator<Location> it;\n List<Object> plantList = new List<>();\n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Grass) {\n grasses++;\n }\n }\n return grasses;\n }",
"int numberOfBalls();",
"public int getHats() {\n return totalHats;\n }",
"public int getMountainCount() {\n\t\tcounter = 0;\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield[row].length; column++) {\n\t\t\t\tif (battlefield[row][column].getTerrain().getIcon() == \"M\") {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}",
"public int getNbVehicles() {\n\t\t\treturn K;\r\n\t\t}",
"@Override\n\tpublic int kyunggicount() throws Exception {\n\t\treturn dao.kyunggicount();\n\t}",
"public int getNumSmallCars() {\r\n\t\treturn numSmallCars;\r\n\t}",
"public int get_nrBags() {\r\n return this.nr_bags;\r\n }",
"int getFaintedPokemonCount();",
"public int getNeighBorCount(){\n\t\treturn serventList.size(); \n\t}",
"public int getNumberOfBed() {\n return this.numberOfBed;\n }",
"public int countBars() {\n\t\treturn bars.size();\n\t}",
"public int inventorySize (TheGroceryStore g);",
"public int getNumberOfShips() {\r\n\t\treturn numberOfShips;\r\n\t}",
"public int getNumOfGoods() {\n return numOfGoods;\n }",
"public int countBookings() {\n\t\t\treturn Bookings.size();\r\n\t\t}",
"public int numLikes() {\n return this.likes.size();\n }",
"int getNoOfParties();",
"int getDisksCount();",
"int getNumOfBuyOrders();",
"int getDeliveriesCount();",
"public int getVehicleCount() {\r\n return vehicleCount;\r\n }",
"public int getSize() {\n return this.numberOfVehicle;\n }",
"final int numHits() {\n return numHits;\n }",
"int getCazuriCount();",
"public int getBalls() {\n return totalBalls;\n }",
"public int incrementAges() {\n int deadGuppyCount = 0;\n Iterator<Guppy> it = guppiesInPool.iterator();\n\n while (it.hasNext()) {\n Guppy currentGuppy = it.next();\n currentGuppy.incrementAge();\n if (!currentGuppy.getIsAlive()) {\n deadGuppyCount++;\n }\n }\n return deadGuppyCount;\n }",
"@Override\r\n\tpublic Integer getBind_car_cnt() {\n\t\treturn super.getBind_car_cnt();\r\n\t}",
"int getPickupsCount();",
"public int foodCount() {\r\n\t\treturn this.food;\r\n\t}",
"public int getNumOfBoats() {\n\t\treturn numOfBoats;\n\t}",
"public int getNumBoats() {\n return NUM_BOATS;\n }",
"public Integer getGoodsBalanceCount() {\n return goodsBalanceCount;\n }",
"public void ball_counter()\n {\n ballot_count=0;\n for (HashMap.Entry<String,Ballot> set : allBallots.entrySet())\n {\n ballot_count++;\n }\n }",
"public int getFoodCount()\r\n\t{\r\n\t\treturn foodCount;\r\n\t}",
"public static int getNumDogs() {\n\t\treturn DogWeight.numDogs;\r\n\t}",
"public int getCount() {\n\t\treturn this.countRound;\n\t}",
"public int numEdges()\r\n {\r\n\tint s = 0;\r\n\tfor (final EdgeTypeHolder eth : ethMap.values())\r\n\t s += eth.numEdges();\r\n\treturn s;\r\n }",
"public int houseCost() {\n\t\treturn houses;\n\t}",
"public int getTrucksCount() {\n if (trucksBuilder_ == null) {\n return trucks_.size();\n } else {\n return trucksBuilder_.getCount();\n }\n }",
"int getPointsCount();",
"int getNumOfSellOrders();",
"public static Integer getNumberOfships() {\n\t\treturn NUMBEROFSHIPS;\n\t}",
"public Integer count() {\n\t\tif(cache.nTriples != null)\n\t\t\treturn cache.nTriples;\n\t\treturn TripleCount.count(this);\n\t}",
"public Integer count() {\n return this.bst.count();\n }",
"public int getNumberOfPolygons()\r\n {\r\n return theNumberOfPolygons;\r\n }",
"protected int getWoodCount() {\n\t\treturn ent.getItemCount(Block.wood.blockID);\n\t}",
"int getAreaCount();",
"int getAreaCount();",
"int getAreaCount();",
"public int getNumCaught() {\r\n\t\tint count = 0;\r\n\t\tfor (int poke : caughtPokemon.values()) {\r\n\t\t\tcount += poke;\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"public int getGapCount() {\n return this.openGaps;\n }",
"public int beanBagsInStock() {\n int counter = 0;\r\n // Loop through every object in the \"stockList\" object array list.\r\n for (int i = 0; i < stockList.size(); i++) {\r\n // If the current beanBag in the \"stockList\" sold state boolean is true.\r\n if (!((BeanBag) stockList.get(i)).isSold()) {\r\n // Increment the \"counter\" integer by 1.\r\n counter++;\r\n }\r\n }\r\n // Return the value of the \"counter\" integer.\r\n return counter;\r\n }"
]
| [
"0.6889448",
"0.6884236",
"0.6882765",
"0.6848071",
"0.6734558",
"0.6734558",
"0.66504616",
"0.66415155",
"0.66350675",
"0.6595025",
"0.6581894",
"0.6551591",
"0.6542411",
"0.6533365",
"0.65237933",
"0.65090555",
"0.65085584",
"0.648881",
"0.6475982",
"0.6472806",
"0.6462328",
"0.6456416",
"0.645607",
"0.64530164",
"0.6448209",
"0.6431124",
"0.64225674",
"0.63901764",
"0.63739216",
"0.6366319",
"0.63425505",
"0.6336482",
"0.63276523",
"0.63260835",
"0.6326042",
"0.62957156",
"0.6287503",
"0.6286313",
"0.6281448",
"0.6281076",
"0.6281019",
"0.6257542",
"0.6251431",
"0.62381256",
"0.6234538",
"0.6234109",
"0.62339514",
"0.6233173",
"0.62283504",
"0.6225138",
"0.6219893",
"0.6215369",
"0.6212293",
"0.62105817",
"0.61946774",
"0.6193361",
"0.6189281",
"0.6181826",
"0.6174867",
"0.6174613",
"0.61572754",
"0.6150737",
"0.614795",
"0.61464286",
"0.6146329",
"0.6141414",
"0.61356086",
"0.61336005",
"0.61300975",
"0.61206174",
"0.6118985",
"0.6110853",
"0.61040574",
"0.6095749",
"0.6092097",
"0.6087",
"0.60851365",
"0.60850304",
"0.6082469",
"0.60801554",
"0.60775566",
"0.6077344",
"0.6075992",
"0.60714006",
"0.6066864",
"0.6058677",
"0.6046585",
"0.60449195",
"0.60442126",
"0.6042409",
"0.6042172",
"0.60375965",
"0.6036554",
"0.60347223",
"0.60337734",
"0.60337734",
"0.60337734",
"0.6030584",
"0.60271406",
"0.60229653"
]
| 0.746467 | 0 |
Sets the number of gears this Bike has | public void setGears(int gears); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBikeNum(int NewValue){\n bike = NewValue;\n }",
"@Override\n\tpublic void setGear(int newValue) {\n\t\tgear = newValue+2;\n\t}",
"void setNumberOfArtillery(int artillery);",
"void setNoOfBuckets(int noOfBuckets);",
"public void setNumberOfCheese(int cheese) {\n this.cheese = cheese;\n }",
"public void setGarlic(double countNo) {\n garlic = countNo;\r\n }",
"public void setNumsBaby (int count) {\n numsBaby = count;\n }",
"public void setGroundBeef(double countNo) {\n groundBeef = countNo;\r\n }",
"public void setNumberShips(int numberShips);",
"public void setBalls(int n){\r\n balls = n;\r\n }",
"public void setNumOfCarbons(Integer numOfCarbons) {\n this.numOfCarbons = numOfCarbons;\n }",
"public static void setHotelSize(int size) {\r\n\t\tfor(int count = 0;count< size; count++) {\r\n\t\t\thotel_size.add(count + 1);\r\n\t\t}\r\n\t}",
"void setLegs(int legs);",
"private void setLikesCount(int value) {\n \n likesCount_ = value;\n }",
"private void setNumberOfShips(int numberOfShips) {\r\n\t\tthis.numberOfShips = numberOfShips;\r\n\t}",
"void setNumberOfCavalry(int cavalery);",
"public void setGrilledVegetables(double countNo) {\n grilledVegetables = countNo;\r\n }",
"public void setNumBalls(int numBalls) {\n this.numBalls += numBalls;\n setScoreText();\n }",
"public void setCount(int count)\r\n\t{\r\n\t}",
"public void updateBallCount() {\n mBallCount = (int) NetworkTableInstance.getDefault().getTable(\"SmartDashboard\").getEntry(\"Driver/Set Ball Count\")\n .getDouble(3);\n }",
"public void setHeight(int newValue)\r\n {\r\n seatHeight = newValue;\r\n }",
"public void setNumberOfBees(int n) {\r\n this.numberOfBees = n;\r\n }",
"public void setNumSeats(int num) {\n numSeats = num;\n }",
"public void setNumofbids(int value) {\n this.numofbids = value;\n }",
"public void incrementNumOfBoats() {\n\t\tnumOfBoats++;\n\t}",
"public void setNumberOfPolygons(int aCount)\r\n {\r\n theNumberOfPolygons = aCount;\r\n if (theNumberOfPolygonsField != null)\r\n {\r\n theNumberOfPolygonsField.setValue(theNumberOfPolygons);\r\n theNumberOfPolygonsField.updateUI();\r\n }\r\n }",
"public void setRiversAlongEdges(int value) {\n this.riversAlongEdges = value;\n }",
"public synchronized void setBandCount(int count)\n { bandCount = count;\n }",
"public void setNewickLength(Double newnewicklength)\n {\n newicklength = newnewicklength; \n }",
"public void set_count(int c);",
"public void setCount(int value) {\n this.count = value;\n }",
"public void setCount(int value) {\n this.count = value;\n }",
"public void setCount(int value) {\n this.count = value;\n }",
"public void setCount(int count)\n {\n this.count = count;\n }",
"public void setHeight(int newValue) {\n seatHeight = newValue;\n }",
"public void setNumberOfPepperoni(int pepperoni) {\n this.pepperoni = pepperoni;\n }",
"public void setNumPens(int numPens){\n this.mFarm.setNumPens(numPens);\n }",
"public void setNumHands(int newNumHands) {\n Validations.nonNegative(newNumHands, \"newNumHands\");\n numHands = newNumHands;\n }",
"public void setNumOfGoods(int numOfGoods) {\n this.numOfGoods = numOfGoods;\n }",
"public void setCount(int count)\r\n {\r\n this.count = count;\r\n }",
"public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}",
"public void setCount(int count) {\r\n this.count = count;\r\n }",
"public void setNumberOfFloors(int numberOfFloors) {\r\n this.numberOfFloors = numberOfFloors;\r\n }",
"void setNumberOfInfantry(int infantry);",
"public void updateNumberOfVehicles() {\r\n numberOfVehicles = getVehicles().size();\r\n }",
"public void setTuckNum(int NewValue){\n truck = NewValue;\n }",
"public void setKiloWatts(int kiloWatts){\n\tthis.kiloWatts=kiloWatts;\n}",
"public final void setN(final int koko) {\r\n this.n = koko;\r\n }",
"private void setWeight() {\n \tthis.trainWeight = (this.trainCars*TRAIN_WEIGHT) + (this.crew + this.numPassengers) * AVE_PASSENGER_WEIGHT;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"private void setNbDiamond(int nbDiamond) { this.nbDiamond = nbDiamond; }",
"private void changeGear(int changeTo) { \n\t\tprevGear = gear;\n\t\tgear = changeTo;\n\t}",
"public void setCount(Integer count) {\r\n this.count = count;\r\n }",
"public final void setBagCount(int bagCount) {\n if(bagCount < 1) {\n throw new IllegalArgumentException(\n \"bag count must be greater than or equal to one\");\n }\n this.bagCount = bagCount;\n }",
"public void setNumPoints(int np);",
"public void incrementNumberOfShips(int value) {\r\n\t\tnumberOfShips = numberOfShips + value;\r\n\t}",
"public void setPennies(int p)\n {\n\tthis.pennies = p;\n\tchangeChecker();\n }",
"public void setCount(final int count)\n {\n this.count = count;\n }",
"public void setCount(Integer count) {\n this.count = count;\n }",
"public void setCount(Integer count) {\n this.count = count;\n }",
"public void setCount(Integer count) {\n this.count = count;\n }",
"public void setCount(Integer count) {\n this.count = count;\n }",
"public void setCount(Integer count) {\n this.count = count;\n }",
"public void setCount(Integer count) {\n this.count = count;\n }",
"public void setOneNewWanted () {\r\n numWanted ++;\r\n }",
"public void setSize(int value) {\n\t\tthis.size = value;\n\t}",
"public void setCount(int count){\n\t\tthis.count = count;\n\t}",
"public void setThisClassQuantity() {\n quantity = spinnerValue + \" pieces\";\n }",
"public int numberOfBalls() {\n this.numberOfBalls = 4;\n return 4;\n }",
"public void setNbrOfEachBed(int[] numberOfBeds) {\n\t\tthis.numberOfBeds = numberOfBeds;\n\t}",
"void setSpokes(long spokes);",
"public void setFloors(int floors);",
"public void setCheeseToppings(int cheese) {\n cheeseToppings = cheese;\n }",
"public void addBike (Bike bike) {\n if (this.bikes.size() <= 4) { // add limitation on number of parked bikes to 5\n this.bikes.add(bike);\n } else {\n System.err.printf(\"%nNo free space to park bike \" +\n \"with ID '%d' in station %d!%n\", bike.getBikeID(), this.stationID);\n }\n }",
"public void setLength(int n){ // Setter method\n \n length = n; // set the class attribute (variable) radius equal to num\n }",
"public void setSteak(double countNo) {\n steak = countNo;\r\n }",
"public void setGi( int value) {\n\n\t\tthis.gi = value;\n\t}",
"void setSpikesPerChunk(VariableAmount count);",
"public void setWeight(int x)\n {\n weightCarried=x;\n }",
"public void setWeight(long kilograms) {\n setWeight(kilograms * POUNDS_PER_KG);\n }",
"public void setCount(final int count) {\n this.count = count;\n }",
"State(int numJunkPiles) {\n this.numJunkPiles = numJunkPiles;\n }",
"public void setDrew(int num){\n drew = num;\n }",
"public void setTriangleCount(int count)\n {\n this.count = count;\n this.repaint();\n }",
"public void setStoneCount(int stoneCount)\n {\n if(stoneCount < 0) throw new RuntimeException(\"Stone count must be >= 0\");\n this.stoneCount = stoneCount;\n repaint();\n }",
"public void setStarcount(Integer starcount) {\n this.starcount = starcount;\n }",
"public void setTies(int value) {\n this.ties = value;\n }",
"public static void setCount(int aCount) {\n count = aCount;\n }",
"public void setWidth(int n){ // Setter method\n \n width = n; // set the class attribute (variable) radius equal to num\n }",
"public void setUpdateOften(int i){\n countNum = i;\n }",
"public int getGears();",
"public void setSize(int size){\n\t\tthis.shipSize = size;\n\t}",
"public void setGrowIncrement(int inc) { growInc = inc; }",
"public void setTreeSize(Double newtreesize)\n {\n treesize = newtreesize; \n }",
"public void setCount(final int count) {\n\t\t_count = count;\n\t}",
"public void setFoodCount(int foodCount)\r\n\t{\r\n\t\tthis.foodCount = foodCount;\r\n\t}"
]
| [
"0.7121011",
"0.68960655",
"0.67861354",
"0.67054707",
"0.66631234",
"0.6516268",
"0.6486116",
"0.6427672",
"0.642398",
"0.6361216",
"0.6360701",
"0.62151444",
"0.615239",
"0.60934323",
"0.6069168",
"0.60497606",
"0.6036299",
"0.6002203",
"0.5987312",
"0.59217453",
"0.592011",
"0.58747625",
"0.5867168",
"0.58497906",
"0.58243525",
"0.58214843",
"0.5815009",
"0.58122474",
"0.5801235",
"0.57903564",
"0.57827413",
"0.57827413",
"0.57827413",
"0.57819396",
"0.5772054",
"0.5760907",
"0.5757664",
"0.5755168",
"0.5751677",
"0.57477486",
"0.57394135",
"0.5735446",
"0.5721673",
"0.57166445",
"0.5714445",
"0.5709927",
"0.56901085",
"0.56842905",
"0.5679138",
"0.56788623",
"0.56788623",
"0.56788623",
"0.56788623",
"0.56788623",
"0.5678844",
"0.565073",
"0.5644629",
"0.5642179",
"0.5626238",
"0.56155396",
"0.56106555",
"0.5603925",
"0.5598829",
"0.5598829",
"0.5598829",
"0.5598829",
"0.5598829",
"0.5598829",
"0.55907214",
"0.55798924",
"0.557599",
"0.5569253",
"0.5565969",
"0.55606794",
"0.5550097",
"0.55489814",
"0.55467474",
"0.55466056",
"0.5536514",
"0.553503",
"0.5527361",
"0.55115783",
"0.55094665",
"0.55073917",
"0.5497408",
"0.5472435",
"0.54690754",
"0.5463282",
"0.54585004",
"0.5456127",
"0.5451032",
"0.5450214",
"0.5447825",
"0.5445653",
"0.5444388",
"0.5443641",
"0.54395777",
"0.5437547",
"0.5431759",
"0.5427923"
]
| 0.7862389 | 0 |
Returns the price of this Bike in pounds Sterling. | public int getValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getPrice() {\n double price = BASE_PRICE;\n for (Topping topping : toppings) {\n if (topping.isPremium()) {\n price += 1.25;\n } else {\n price += 0.75;\n }\n }\n return price;\n }",
"public BigDecimal getSellingPrice() {\n return sellingPrice;\n }",
"public int getSellPrice(){\n\t\treturn (int)(price * 0.6);\n\t}",
"public double getPrice() {\n return price_;\n }",
"public double getPrice(){\n\t\t\n\t\treturn price;\n\t}",
"public double getPrice() {\n return price_;\n }",
"@Override\n\t\t\tpublic double getPrice() {\n\t\t\t\treturn 50.0;\n\t\t\t}",
"public double getPrice(){\n\t\t\treturn price;\n\t\t}",
"public double getPrice() {\n\t\t\treturn price;\n\t\t}",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public double price(){\n if (basePrice() >1000){\n return basePrice() *0.95;\n }else\n return basePrice() * 0.98;\n }",
"public double getPrice() {\n\t\treturn this.price;\n\t}",
"public double getPrice()\r\n\t{\r\n\t\tif(isSpecial())\r\n\t\t{\r\n\t\t\treturn price * .5;\r\n\t\t}\r\n\t\treturn price;\r\n\t}",
"public ArmCurrency getPrice() {\n return (getPrice(true));\n }",
"public float getPrice() {\n if (this.groupPrice > 0.0f) {\n return this.groupPrice;\n } else {\n return this.parkingLotPrice;\n }\n }",
"public double getPrice() {\n\t\treturn this.price;\n\t\t\n\t}",
"public double getPrice() {\n\t\treturn regularCheckOut.getPrice() * subscriberDiscount;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"@Override\n\tpublic double getPrice() {\n\t\t\n\t\treturn 2000;\n\t}",
"public Double getPrice() {\r\n\t\treturn price;\r\n\t}",
"public double getPrice()\n\t{\n\t\treturn this.price;\n\t}",
"public double getPrice(){\n\t\treturn this.price;\n\t}",
"public java.lang.String getPrice() {\n return price;\n }",
"public int getPrice() {\r\n\t\tif (this.base.equals(\"tower\")) {\r\n\t\t\treturn price;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public BigDecimal getPrice()\n\t{\n\t\treturn price;\n\t}",
"public Double getPrice() {\n\t\treturn price;\n\t}",
"public BigDecimal getShopPrice() {\n return shopPrice;\n }",
"public java.math.BigDecimal getPrice() {\n return price;\n }",
"public double getPrice()\n\t{\n\t\treturn this.totalPrice + this.getFlightCosts() + this.excursionSubTotal\n\t\t\t\t+ this.getLodgingCost();\n\t}",
"public BigDecimal getPrice() {\n return (BigDecimal)getAttributeInternal(PRICE);\n }",
"public double getStockPrice() {\n\t\treturn stockPrice;\n\t}",
"public double getPrice(){\r\n\t\treturn price;\r\n\t}",
"public double getPrice() \n\t{\n\t\treturn price;\n\t}",
"public double getPrice() \n\t{\n\t\treturn price;\n\t}",
"public double price() {\n return price;\n }",
"public String getFormattedPrice() {\n NumberFormat ukFormat = NumberFormat.getCurrencyInstance(Locale.UK);\n ukFormat.setMinimumFractionDigits(2);\n ukFormat.setMaximumFractionDigits(2);\n BigDecimal result = new BigDecimal(\"0.00\");\n if (baseSize != null) {\n result = baseSize.getPrice();\n Double multiplier = baseSize.getMultiplier();\n for (ToppingEntity topping : toppings) {\n topping.setMultiplier(multiplier);\n result = result.add(topping.getPrice());\n }\n }\n return ukFormat.format(result.doubleValue());\n }",
"@Override\n\tpublic float getPrice() {\n\t\treturn 70.0f;\n\t}",
"public Number getPrice() {\n return (Number)getAttributeInternal(PRICE);\n }",
"public static int getPrice() {\n return PRICE_TO_BUY;\n }",
"public double getPrice(){\n\t\treturn Price; // Return the product's price\n\t}",
"public double getPrice(){\n\t\treturn price;\n\t}",
"public java.lang.Integer getPrice()\n {\n return price;\n }",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn price;\r\n\t}",
"@Override\n public double getPrice() {\n return 2.5;\n }",
"public BigDecimal getStock_price() {\n return stock_price;\n }",
"public Money getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n return this.price;\n }",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public double getSharePrice() {\n\t\treturn sharePrice;\n\t}",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public Strike getStrike() {\n return strike;\n }",
"@Override\n\tpublic double getPrice() {\n\t\treturn 30000;\n\t}",
"protected float getPrice() {\n\t\t\treturn price;\n\t\t}",
"public int getPrice() {\n return price_;\n }",
"public BigDecimal\tgetPrice();",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public String getPrice() {\n return price;\n }",
"public String getPrice() {\n return price;\n }",
"public double getPrice()\n {\n return this.price;\n }",
"public float getPrice() {\n\t\treturn this._entree.getPriceWithAddons() + this._side.getPrice() + this._drink.getPrice() - 1f;\n\t}",
"public Double getPrice() {\n return price;\n }",
"public Double getPrice() {\n return price;\n }",
"public BigDecimal getActualSellingPrice() {\n return actualSellingPrice;\n }",
"public double getpPrice() {\n return pPrice;\n }",
"public double getPrice()\n {\n \treturn price;\n }",
"public double getPrice() {\n return price;\n }",
"public Double getPrice() {\r\n return price;\r\n }",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn 60000;\r\n\t}",
"@Override\n public double calculatePrice() {\n return getVolume() * (1.0 + (getAlcoholPercent() / 100.0)) * this.liquids.size();\n }",
"public BigDecimal getPriceStd();",
"BigDecimal getPrice();",
"public double getSalePrice() {\n\t\n\t\treturn regularPrice;\n\t}",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn pizza.getPrice()+ 12.88;\r\n\t}",
"public BigDecimal getpPrice() {\n return pPrice;\n }",
"public double getPricePerItem()\r\n {\r\n return pricePerItem;\r\n }",
"public double getPrice()\r\n {\r\n return this.price;\r\n }"
]
| [
"0.6957962",
"0.69411176",
"0.6917332",
"0.6834451",
"0.67405504",
"0.67361605",
"0.6731801",
"0.67170984",
"0.67162204",
"0.6697013",
"0.6697013",
"0.6697013",
"0.6670723",
"0.6667615",
"0.6661767",
"0.6657909",
"0.6655178",
"0.6643484",
"0.66286266",
"0.66166973",
"0.66166973",
"0.66166973",
"0.66166973",
"0.66166973",
"0.66152894",
"0.6596691",
"0.6589482",
"0.658594",
"0.65850115",
"0.6584943",
"0.65756935",
"0.6566692",
"0.65643555",
"0.65630627",
"0.6547354",
"0.6529812",
"0.65233165",
"0.6521238",
"0.6516819",
"0.6516819",
"0.6515893",
"0.65143114",
"0.6509615",
"0.6508311",
"0.6496917",
"0.64947295",
"0.6482805",
"0.6474668",
"0.6468613",
"0.64670616",
"0.6457005",
"0.64545745",
"0.6452178",
"0.64332336",
"0.64332336",
"0.6403791",
"0.6403791",
"0.6403791",
"0.6403791",
"0.6403791",
"0.63984835",
"0.6395331",
"0.6395331",
"0.6395331",
"0.6395331",
"0.6377852",
"0.6376226",
"0.6364922",
"0.63598895",
"0.63467777",
"0.63425696",
"0.63425696",
"0.63425696",
"0.63425696",
"0.63425696",
"0.63425696",
"0.63425696",
"0.63425696",
"0.63425696",
"0.63425696",
"0.63425696",
"0.63414896",
"0.63414896",
"0.63378775",
"0.6332452",
"0.6319905",
"0.6319905",
"0.63050175",
"0.6290467",
"0.62901115",
"0.6288564",
"0.62848485",
"0.62833565",
"0.6277394",
"0.6276149",
"0.6272535",
"0.6271988",
"0.627192",
"0.6269267",
"0.6265603",
"0.62610173"
]
| 0.0 | -1 |
Sets the price of this Bike in pounds Sterling | public void setValue(int value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void setPrice(double p) {\n\t\tprice = p;\r\n\t}",
"public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}",
"public void setPrice(double p) {\n\t\tprice = p;\n\t}",
"public void setPotatoesPrice(double p);",
"public void setPrice(double p){\n\t\t// store into the instance variable price the value of the parameter p\n\t\tprice = p;\n\t}",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price)\n {\n this.price = price;\n }",
"public void setPrice(Double price);",
"public void setPrice(double price)\n {\n this.price = price;\n }",
"public void setPrice(double value) {\n this.price = value;\n }",
"public void setPrice(double value) {\n this.price = value;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(Double price) {\r\n this.price = price;\r\n }",
"public void setPrice(int price) {\n this.price = (double)price;\n }",
"public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}",
"public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}",
"public void setPrice(Double price) {\n this.price = price;\n }",
"public void setPrice(Double price) {\n this.price = price;\n }",
"@Override\n\tpublic void setPrice() {\n\t\tprice = 24.99;\n\n\t}",
"public void setPrice(double price) \n\t{\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) \n\t{\n\t\tthis.price = price * quantity;\n\t}",
"public void setPrice(Money price) {\n this.price = price;\n }",
"public void setPrice(double price){this.price=price;}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(Number value) {\n setAttributeInternal(PRICE, value);\n }",
"public void setPrice(Float price) {\r\n this.price = price;\r\n }",
"public void setPrice(float price) {\n this.price = price;\n }",
"public void setPrice(float price) {\n this.price = price;\n }",
"public void setPotatoesPrice(double p) {\n this.potatoesPrice = p;\n }",
"public void setPrice(Float price) {\n this.price = price;\n }",
"@Override\n\tpublic void setPrice(double price) {\n\t\tconstantPO.setPrice(price);\n\t}",
"public void setPrice(int price) {\r\n this.price = price;\r\n }",
"public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }",
"public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }",
"public void setPrice(int price) {\n this.price = price;\n }",
"public void setpPrice(double pPrice) {\n this.pPrice = pPrice;\n }",
"public void setPrice(Double price) {\n\t\tthis.price = price;\n\t}",
"protected void setPrice(float price) {\n\t\t\tthis.price = price;\n\t\t}",
"public void setPrice(int price) {\n\t\tthis.price = price;\n\t\tlbl.setText(price+\" C\");\n\t}",
"public void setPrice(int value) {\n this.price = value;\n }",
"public void setPrice(java.lang.Integer _price)\n {\n price = _price;\n }",
"public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }",
"public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }",
"public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }",
"public void setPrice(BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(final BigDecimal price) {\n this.price = price;\n }",
"protected void setPrice(DukatAmount price){\r\n\t\tif(canHaveAsPrice(price))\r\n\t\t\tthis.price = price;\r\n\t}",
"public void setPrice(int price) {\n\tthis.price = price;\n}",
"public void setPrice(double price) {\n this.price = price;\n if (this.price < 0) {\n this.price = 0;\n }\n }",
"public void setPrice(double x){\n\t\t\tprice = x;\t\n\t\t}",
"public void setPrice(java.lang.String price) {\n this.price = price;\n }",
"public void setPrice(java.math.BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(Integer price) {\r\n this.price = price;\r\n }",
"public void setPrice(Integer price) {\r\n this.price = price;\r\n }",
"public Builder setPrice(int value) {\n bitField0_ |= 0x00000020;\n price_ = value;\n \n return this;\n }",
"@Override\n\tpublic void setPrice(int price) {\n\t\t\n\t}",
"public void setPrice(String price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPurchasePrice(double p)\n {\n this.purchasePrice = p;\n }",
"public void changePrice(Product p, int price){\r\n\t\tp.price = price;\r\n\t}",
"public void setPrice(double price) {\n\t\tif(price > 0 )\n\t\t\tthis.price=price;\n\t}",
"public void setStockPrice(double stockPrice) {\n\t\tthis.stockPrice = stockPrice;\n\t}",
"public void setShopItemPrice(Double price) {\n\t\tlblPrice.setText(\"Price : \" + price + \" NTD\");\n\t}",
"public void setPriceStd (BigDecimal PriceStd);",
"public void setPrice(double price){\r\n Random chance = new Random();\r\n int crashChance = chance.nextInt(100);\r\n double droppedPrice = price * ThreadLocalRandom.current().nextDouble(0.6, 0.8);\r\n if (crashChance > 95) {\r\n setPlusMinus(\"Down\");\r\n System.out.println(\"This stock has crashed.\");\r\n super.setPrice(price - droppedPrice);\r\n } else if(crashChance < 5){\r\n setPlusMinus(\"Up\");\r\n System.out.println(\"This stock has surged.\");\r\n super.setPrice(price + droppedPrice);\r\n } else {\r\n super.setPrice(price);\r\n }\r\n }",
"public void changePrice(TripDTO trip, BigDecimal price);",
"public Builder setPrice(double value) {\n bitField0_ |= 0x00000010;\n price_ = value;\n onChanged();\n return this;\n }",
"public void changePrice(Booking booking, float price);",
"public void setPrice(int price)\n {\n if(checker.isString(Integer.toString(price)))\n this.price = price;\n else\n this.price = 0;\n }",
"public void putNewPrice(String symbol, double price);",
"public void setWeight(double pounds) {\n if (pounds >= 80 && pounds <= 280)\n this.weight = pounds;\n }",
"public void setPrice(BigDecimal value) {\n setAttributeInternal(PRICE, value);\n }",
"public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}",
"public void setStock_price(BigDecimal stock_price) {\n this.stock_price = stock_price;\n }",
"public void increasePrice() {\n //price doubled\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() * 2);\n }",
"public void setSharePrice(double stockPrice) {\n\t\tthis.sharePrice = stockPrice;\n\t}",
"public void setBookPrice(Float bookPrice) {\n this.bookPrice = bookPrice;\n }",
"public void setPrice(Long price) {\n this.price = price;\n }",
"public void decreasePrice() {\n //price halved\n //is it okay if the price becomes 0?\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() / 2);\n }",
"public void setPrice (Product product) {\n\t\tpriceLbl.setText(product.getPrice() + \"\");\n\t\tpriceLbl.repaint();\n\t}",
"public void setProductPrice(double productPrice) {\n this.productPrice = productPrice;\n }",
"public void setBuyPrice(double buyPrice) {\n double oldPrice = this.buyPrice;\n this.buyPrice = buyPrice;\n if(oldPrice == -1) {\n originalPrice = buyPrice;\n } else {\n fluctuation += (buyPrice - oldPrice);\n }\n }",
"public void setpPrice(BigDecimal pPrice) {\n this.pPrice = pPrice;\n }",
"protected void setItemPrice(Double itemPrice) {\n this.itemPrice = itemPrice;\n }",
"@Override\n public double getPrice() {\n return 2.5;\n }",
"public void setPriceStdOld (BigDecimal PriceStdOld);",
"void setPrice(int price) {\n mPriceTextView.setText(StoreUtils.getPriceString(price, mCurrency));\n }"
]
| [
"0.72867006",
"0.7273254",
"0.7161196",
"0.7140661",
"0.7092219",
"0.6963976",
"0.6963976",
"0.6963976",
"0.696271",
"0.6955739",
"0.6948528",
"0.6942566",
"0.6942566",
"0.69328374",
"0.69328374",
"0.69328374",
"0.69328374",
"0.69328374",
"0.69328374",
"0.69328374",
"0.690578",
"0.6830751",
"0.68226594",
"0.68226594",
"0.68191373",
"0.68191373",
"0.6817682",
"0.6763074",
"0.67348874",
"0.67248136",
"0.6712267",
"0.6695709",
"0.6695709",
"0.6695709",
"0.66700214",
"0.6668841",
"0.6668232",
"0.6668232",
"0.66538733",
"0.6643172",
"0.66424453",
"0.6642114",
"0.66268235",
"0.6607339",
"0.66032124",
"0.6566632",
"0.6564679",
"0.6557295",
"0.6550561",
"0.6504655",
"0.6503784",
"0.6500276",
"0.6476391",
"0.6476391",
"0.6468336",
"0.6468336",
"0.6460658",
"0.6456516",
"0.6451292",
"0.6449745",
"0.6445873",
"0.64443946",
"0.6431549",
"0.6409638",
"0.6409638",
"0.63905436",
"0.6388976",
"0.63860166",
"0.63803744",
"0.63803744",
"0.63803744",
"0.63803744",
"0.63639987",
"0.6355989",
"0.6346604",
"0.6301531",
"0.62889266",
"0.6274055",
"0.62636733",
"0.6260262",
"0.6257441",
"0.6239342",
"0.6238252",
"0.6236163",
"0.6215639",
"0.62051064",
"0.61927843",
"0.6186935",
"0.6179138",
"0.6165687",
"0.61608166",
"0.61607194",
"0.6136184",
"0.6075836",
"0.60719967",
"0.60292166",
"0.60116893",
"0.5988461",
"0.59790367",
"0.597436",
"0.59590334"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onFailure(int statusCode, String responseString, Throwable throwable) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
public getter eBay user ID for the user who left the feedback. | public String getCommentingUser() {
return this.commentingUser;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUserId() {\r\n\t\treturn this.userid.getText();\r\n\t}",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"public int getIduser() {\n return iduser;\n }",
"public Integer getUserid() {\n\t\treturn this.userid;\n\t}",
"public int getIdUser() {\n return idUser;\n }",
"public int getIdUser() {\n return idUser;\n }",
"public int getUserId()\r\n\t{\r\n\t\treturn this.userId;\r\n\t}",
"public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}",
"public long getUserId();",
"public long getUserId();",
"public long getUserId();",
"public long getUserId();",
"public int getUserId() {\n return instance.getUserId();\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"Integer getUserId();",
"public Integer getIdUser() {\r\n\t\treturn idUser;\r\n\t}",
"long getUserId();",
"long getUserId();",
"public int getuserId() {\n\t\treturn userId;\n\t}",
"public java.lang.String getUserid() {\n return userid;\n }",
"public java.lang.String getUserid() {\n return userid;\n }",
"public int getUserId() {\r\n\t\treturn userId;\r\n\t}",
"public Integer getUser_id() {\n\t\treturn user_id;\n\t}",
"public int getUserId() {\n return userId_;\n }",
"public long getUserId() {\r\n return userId;\r\n }",
"public Long getUserid() {\r\n return userid;\r\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public java.lang.String getUserid() {\n return userid;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public String getUserId()\r\n\t{\r\n\t\treturn userId;\r\n\t}",
"int getUserId() {\r\n\t\t\treturn userId;\r\n\t\t}",
"public int getUserID() {\n return userID;\n }",
"public int getUserID() {\n return userID;\n }",
"public int getUserID() {\n return userID;\n }",
"public String getIdUser() {\n\t\treturn idUser;\n\t }",
"String getUserId();",
"String getUserId();",
"public String getIduser() {\n\t\treturn iduser;\n\t}",
"public int getUserID()\n {\n return this.userID;\n }",
"@Override\n\tpublic long getUserId();",
"@Override\n\tpublic long getUserId();",
"public java.lang.String getUserId() {\n return userId_;\n }",
"public String getUserid() {\n return userid;\n }",
"public String getUserid() {\n return userid;\n }",
"public String getIdUser() {\n\t\treturn idUser;\n\t}",
"public long getUserId() {\n return userId_;\n }",
"public long getUserId() {\n return userId_;\n }",
"public java.lang.Long getUserId() {\n return userId;\n }",
"public java.lang.String getUserId() {\r\n return userId;\r\n }",
"public Long getUserId() {\n return this.user.getId();\n }",
"public java.lang.String getUserId() {\n return instance.getUserId();\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}",
"@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}",
"@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}",
"@Override\n\tpublic long getUserId() {\n\t\treturn _userTracker.getUserId();\n\t}",
"public long getUserId() {\n return userId;\n }"
]
| [
"0.73185635",
"0.7275356",
"0.7275356",
"0.7275356",
"0.7255318",
"0.7237241",
"0.7231099",
"0.7231099",
"0.7199891",
"0.7182577",
"0.7166313",
"0.7166313",
"0.7166313",
"0.7166313",
"0.7158967",
"0.71363413",
"0.71363413",
"0.71363413",
"0.71363413",
"0.71363413",
"0.71363413",
"0.71363413",
"0.71363413",
"0.71363413",
"0.71363413",
"0.71363413",
"0.71363413",
"0.71344346",
"0.7134182",
"0.7129917",
"0.7129917",
"0.7125418",
"0.7124404",
"0.71217644",
"0.71202147",
"0.7117006",
"0.70964146",
"0.7094856",
"0.70860255",
"0.70837337",
"0.70837337",
"0.70837337",
"0.70837337",
"0.70837337",
"0.70837337",
"0.70837337",
"0.70837337",
"0.70837337",
"0.70837337",
"0.70837337",
"0.70837337",
"0.70837337",
"0.70837337",
"0.70837337",
"0.7083695",
"0.7083566",
"0.7083566",
"0.7082511",
"0.7078744",
"0.7067038",
"0.7067038",
"0.7067038",
"0.7066023",
"0.7058462",
"0.7058462",
"0.70552737",
"0.7047327",
"0.7046225",
"0.7046225",
"0.7045202",
"0.7041486",
"0.7041486",
"0.70372695",
"0.7036854",
"0.7036854",
"0.7035344",
"0.70297825",
"0.7028103",
"0.70268995",
"0.70268023",
"0.70268023",
"0.7026144",
"0.7026144",
"0.7026144",
"0.7026144",
"0.7026144",
"0.7026144",
"0.7026144",
"0.7026144",
"0.7026144",
"0.7026144",
"0.7026144",
"0.7026144",
"0.7026144",
"0.7026144",
"0.7026144",
"0.7022921",
"0.7022921",
"0.7022921",
"0.70223176",
"0.7021768"
]
| 0.0 | -1 |
public setter eBay user ID for the user who left the feedback. | public void setCommentingUser(String commentingUser) {
this.commentingUser = commentingUser;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUserid(java.lang.String value) {\n this.userid = value;\n }",
"public void setIdUser(int value) {\n this.idUser = value;\n }",
"public void setIduser(int aIduser) {\n iduser = aIduser;\n }",
"public void setUserId(int value) {\n this.userId = value;\n }",
"private void setUserId(int value) {\n \n userId_ = value;\n }",
"public void setUserId(long userId);",
"public void setUserId(long userId);",
"public void setUserId(long userId);",
"public void setUserId(long userId);",
"private void setUserId(long value) {\n \n userId_ = value;\n }",
"void setUserId(int newId) {\r\n\t\t\tuserId = newId;\r\n\t\t}",
"public void setUserId(long value) {\r\n this.userId = value;\r\n }",
"public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}",
"private void setUserId(long value) {\n\n userId_ = value;\n }",
"public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}",
"public void setUserId(long value) {\n this.userId = value;\n }",
"public void setId_user(int id_user) {\r\n this.id_user = id_user;\r\n }",
"public void setId_user(int id_user) {\n this.id_user = id_user;\n }",
"@Override\n\tpublic void setUserId(long userId);",
"@Override\n\tpublic void setUserId(long userId);",
"public void setUserid(Long userid) {\r\n this.userid = userid;\r\n }",
"public int getIduser() {\n return iduser;\n }",
"public void setUserID(int value) {\n this.userID = value;\n }",
"public void setUserid(Integer userid) {\r\n\t\tthis.userid = userid;\r\n\t}",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setAD_User_ID (int AD_User_ID);",
"public int getIdUser() {\n return idUser;\n }",
"public int getIdUser() {\n return idUser;\n }",
"@Override\n public String getUserID() {\n return user_id;\n }",
"void setUserId(Long userId);",
"public de.hpi.msd.salsa.serde.avro.Edge.Builder setUserId(long value) {\n validate(fields()[0], value);\n this.userId = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public void setUserId(){\n AdGyde.setClientUserId(\"ADG1045984\");\n Toast.makeText(this, \"UserId = ADG1045984\", Toast.LENGTH_SHORT).show();\n }",
"public void setUserid(java.lang.String userid) {\n this.userid = userid;\n }",
"public void setUserId(String value) {\r\n setAttributeInternal(USERID, value);\r\n }",
"int getUserId() {\r\n\t\t\treturn userId;\r\n\t\t}",
"private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_changesetEntry.setUserId(userId);\n\t}",
"public int getuserId() {\n\t\treturn userId;\n\t}",
"public long getUserId() {\r\n return userId;\r\n }",
"public int getUserId() {\r\n\t\treturn userId;\r\n\t}",
"public void setUser1X_ID (int User1X_ID);",
"public void setUserID(long userID) {\n UserID = userID;\n }",
"public void handleUserSwtiched(int newUserId) {\n }",
"public int getUserId()\r\n\t{\r\n\t\treturn this.userId;\r\n\t}",
"public int getUserId() {\n return userId_;\n }",
"public void setUserId(Long userId)\n/* */ {\n/* 80 */ this.userId = userId;\n/* */ }",
"public String getUserId()\r\n\t{\r\n\t\treturn userId;\r\n\t}",
"public void setUserId(int userId) {\n this.userId = userId;\n }",
"public void setUserId(int userId) {\n this.userId = userId;\n }",
"public void setUserId(int userId) {\n this.userId = userId;\n }",
"public void setUserId(int userId)\r\n\t{\r\n\t\tthis.userId = userId;\r\n\t}",
"public String getUserId() {\r\n return userId;\r\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public Integer getIdUser() {\r\n\t\treturn idUser;\r\n\t}",
"@Override\n\tvoid setId(final UserId userId);",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_userTracker.setUserId(userId);\n\t}",
"public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }",
"public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }",
"public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}",
"public void setUserId(java.lang.Long value) {\n this.userId = value;\n }",
"public Long getUserId() {\r\n return userId;\r\n }",
"public Long getUserId() {\r\n return userId;\r\n }",
"public Long getUserId() {\r\n return userId;\r\n }",
"public String getIduser() {\n\t\treturn iduser;\n\t}",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_employee.setUserId(userId);\n\t}",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public int getUserId() {\n return userId;\n }",
"public int getUserId() {\n return userId;\n }",
"public int getUserId() {\n return userId;\n }",
"public int getUserId() {\n return userId;\n }",
"public int getUserId() {\n return userId;\n }",
"public long getUserId() {\n return userId;\n }",
"public String getUserid() {\n return userid;\n }",
"public String getUserid() {\n return userid;\n }",
"public Integer getUserId() {\r\n return userId;\r\n }",
"public Integer getUserId() {\r\n return userId;\r\n }",
"@Override\n public void setUserId(long userId) {\n _partido.setUserId(userId);\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }"
]
| [
"0.7159406",
"0.7132654",
"0.7026791",
"0.7020906",
"0.7009474",
"0.70079696",
"0.70079696",
"0.70079696",
"0.70079696",
"0.69996464",
"0.6981563",
"0.69777626",
"0.6944294",
"0.6933683",
"0.6930623",
"0.6921218",
"0.6915967",
"0.68646693",
"0.6821251",
"0.6821251",
"0.6717926",
"0.6703327",
"0.6696447",
"0.6675097",
"0.6672738",
"0.6672738",
"0.6672738",
"0.6672738",
"0.6672738",
"0.6672738",
"0.6672738",
"0.6672738",
"0.6672738",
"0.6672738",
"0.6672738",
"0.6672738",
"0.66669196",
"0.6663529",
"0.6663529",
"0.66430104",
"0.66376823",
"0.6625478",
"0.6593963",
"0.6589092",
"0.65665287",
"0.65622795",
"0.6541507",
"0.65346205",
"0.65239865",
"0.65181226",
"0.6516233",
"0.65155387",
"0.6514126",
"0.6511891",
"0.64991707",
"0.64953494",
"0.649528",
"0.64903635",
"0.64869493",
"0.64869493",
"0.64869493",
"0.648428",
"0.6483228",
"0.6483228",
"0.6483228",
"0.6483228",
"0.6483228",
"0.6483228",
"0.6480046",
"0.64723134",
"0.64707285",
"0.6467492",
"0.6467492",
"0.64537126",
"0.64521754",
"0.6442015",
"0.6442015",
"0.6442015",
"0.6432739",
"0.64271754",
"0.6421142",
"0.6421142",
"0.6414363",
"0.6414363",
"0.6414363",
"0.6414363",
"0.6414363",
"0.64097565",
"0.6409546",
"0.6409546",
"0.6408291",
"0.6408291",
"0.6406417",
"0.6403551",
"0.6403551",
"0.6403551",
"0.6403551",
"0.6403551",
"0.6403551",
"0.6403551",
"0.6403551"
]
| 0.0 | -1 |
public getter Feedback score of the user in CommentingUser. | public Integer getCommentingUserScore() {
return this.commentingUserScore;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float getUserRatingScore() {\n float scorePercent = Float.valueOf(userRating) * 10;\n\n return ((5 * scorePercent) / 100);\n }",
"public double getRating(){\n\t\treturn this.user_rating;\n\t}",
"Float getScore();",
"float getScore();",
"float getScore();",
"public Float getScore() {\n return score;\n }",
"public int getScore() {\n return getStat(score);\n }",
"public float getScore() {\n return score;\n }",
"public double getScore() {\r\n return score;\r\n }",
"public Short getUserRating() {\r\n return userRating;\r\n }",
"public Double getScore() {\n return this.score;\n }",
"public Double getScore() {\n return this.score;\n }",
"public abstract float getScore();",
"public float getScore(){return score;}",
"public int getScore()\n {\n return score;\n }",
"public int getScore() {\n return score;\n }",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore() {\r\n return score;\r\n }",
"public void setCommentingUserScore(Integer commentingUserScore) {\n\t this.commentingUserScore = commentingUserScore;\n\t}",
"public int getScore() {\n return score;\n }",
"public int getScore() {\n return score;\n }",
"public int getScore() { return score; }",
"public String getUserRating() {\n return userRating;\n }",
"public Integer getScore() {\n return score;\n }",
"public Integer getScore() {\r\n return score;\r\n }",
"public float getScore() {\r\n\t\treturn score;\r\n\t}",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public int getScore() {return score;}",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}",
"public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}",
"public int getScore ()\r\n {\r\n\treturn score;\r\n }",
"public int getScore() {\n return this.score;\n }",
"public double getScore() {\r\n return mScore;\r\n }",
"public int getScore(){\n\t\treturn score;\n\t}",
"public int getScore(){\n\t\treturn score;\n\t}",
"public float getScore() {\n\t\treturn score;\n\t}",
"public int getScore(){\n\t\treturn this.score;\n\t}",
"public int getScore(){\n\t\treturn this.score;\n\t}",
"public int score() {\n return score;\n }",
"@Override\r\n\tpublic double getScore() {\n\t\treturn score;\r\n\t}",
"int getScore();",
"public static int getScore(){\n return score;\n }",
"public double getScore() {\n\t\t\treturn this.score;\n\t\t}",
"int getScoreValue();",
"int getScore() {\n return score;\n }",
"public Long getScore() {\n return score;\n }",
"Float getAutoScore();",
"public int getScore(){\n return this.score;\n }",
"public int getScore() {\r\n \treturn score;\r\n }",
"public int getTotalScore(){\r\n return totalScore;\r\n }",
"public int getScore()\n {\n // put your code here\n return score;\n }",
"public int getScore()\n {\n return score; \n }",
"public long getScore() {\n return score_;\n }",
"public long getScore() {\n return score_;\n }",
"public int getScore()\n\t{\n\t\treturn this.score;\n\t}",
"public static int getScore()\n {\n return score;\n }",
"public int getScore () {\n return mScore;\n }",
"public int getTotalScore(){\n return totalScore;\n }",
"public java.lang.Float getScore () {\n\t\treturn score;\n\t}",
"public int getScore(){return score;}",
"public int getScore(){return score;}",
"@Override\r\n\tpublic double getScore() \r\n\t{\r\n\t\treturn this._totalScore;\r\n\t}",
"public int getPlayerScore();",
"public long getScore() {\n return score_;\n }",
"public long getScore() {\n return score_;\n }",
"int getFeedback();",
"@Override\n public int getScore() {\n return score;\n }",
"public int getScore() {\r\n\t\treturn score;\r\n\t}",
"public int getScore() {\r\n\t\treturn score;\r\n\t}",
"public int getScore()\n {\n return points + extras;\n }",
"public int getScore() {\n\t\treturn (score);\n\t}",
"public static int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}",
"public int getScore() {\n\t\treturn this.score;\n\t}",
"public int getScore() {\n\t\treturn score;\n\t}",
"public int getScore() {\n\t\treturn score;\n\t}",
"public int getScore() {\n\t\treturn score;\n\t}",
"public int getScore() {\n\t\treturn score;\n\t}",
"public int getScore() {\n\t\treturn score;\n\t}",
"public int getScore() {\n\t\treturn score;\n\t}",
"public java.lang.Integer getScore () {\r\n\t\treturn score;\r\n\t}",
"@Override\n\tpublic String showScore(String paperId, String username) {\n\t\treturn userDao.showScore(paperId, username);\n\t}",
"public int getScore()\n {\n return currentScore;\n }",
"public int getPlayerScore(){\n return this.playerScore;\n }",
"public int getScore() {\n return currentScore;\n }",
"@Override\n public int getScore() {\n return totalScore;\n }",
"public static int getScore()\n\t{\n\t\treturn score;\n\t}",
"public int getScore(){ return this.score; }",
"public Integer getGameScore() {\n return gameScore;\n }",
"public Integer getCoursePassScore() {\n\t\treturn coursePassScore;\n\t}",
"public int getPlayerScore(){\n\t\treturn playerScore;\n\t}",
"public final int getScore() {\n\t\treturn score;\n\t}",
"public double getRatingAt(int pos) {\n return this.usersRatings.get(pos).getRating();\n }",
"public int getScore() {\n\t\treturn this.ScoreValue;\n\t}",
"public Short getScore() {\n return score;\n }"
]
| [
"0.67009425",
"0.6566223",
"0.65311545",
"0.64876413",
"0.64876413",
"0.6414995",
"0.63369256",
"0.6278992",
"0.6276928",
"0.62651294",
"0.62551147",
"0.62551147",
"0.6246517",
"0.6226578",
"0.62195075",
"0.62178004",
"0.6197736",
"0.6197736",
"0.6197736",
"0.61907023",
"0.6183492",
"0.6183492",
"0.6182306",
"0.61792773",
"0.61779964",
"0.617671",
"0.6164916",
"0.616247",
"0.616247",
"0.6157203",
"0.61566657",
"0.61566657",
"0.61566657",
"0.61566657",
"0.6139092",
"0.6139092",
"0.61317486",
"0.61299145",
"0.6127963",
"0.6125185",
"0.6125185",
"0.6118762",
"0.6116756",
"0.6116756",
"0.6112994",
"0.61022556",
"0.6100788",
"0.61001676",
"0.6099795",
"0.60937345",
"0.60936856",
"0.6089788",
"0.6066739",
"0.6065598",
"0.60641575",
"0.6046224",
"0.60402185",
"0.6037869",
"0.6024981",
"0.6024981",
"0.60243946",
"0.6022333",
"0.60192806",
"0.6006369",
"0.600559",
"0.6004528",
"0.6004528",
"0.5977274",
"0.5971689",
"0.5966792",
"0.5966792",
"0.59642696",
"0.59579283",
"0.59519243",
"0.59519243",
"0.5937147",
"0.59336054",
"0.5902716",
"0.59025854",
"0.5897062",
"0.5897062",
"0.5897062",
"0.5897062",
"0.5897062",
"0.5897062",
"0.58962446",
"0.5891434",
"0.58905524",
"0.58766377",
"0.58687156",
"0.5867272",
"0.5865203",
"0.58599985",
"0.5852151",
"0.58338284",
"0.5832302",
"0.5820083",
"0.5816255",
"0.58127904",
"0.58126366"
]
| 0.793652 | 0 |
public setter Feedback score of the user in CommentingUser. | public void setCommentingUserScore(Integer commentingUserScore) {
this.commentingUserScore = commentingUserScore;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getCommentingUserScore() {\n\t return this.commentingUserScore;\n\t}",
"public void setScore(int score) {this.score = score;}",
"public void setScore (int newScore)\n {\n this.score = newScore;\n }",
"public void setScore(int score) { this.score = score; }",
"void setScoreValue(int scoreValue);",
"public void setScore(java.lang.Integer value);",
"void setScore(long score);",
"public void setScore(double score) {\r\n this.score = score;\r\n }",
"public void setScore(float value) {\n this.score = value;\n }",
"public void setScore(int score)\n {\n this.score = score;\n }",
"public void setScore(float score) {\n this.score = score;\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void setScore(Float score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(Double score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(Integer score) {\r\n this.score = score;\r\n }",
"public void setScore(int score){\n\t\tthis.score = score;\n\t}",
"public void setScore(int score)\n\t{\n\t\tthis.score=score;\n\t}",
"public void setScore(Integer score) {\n this.score = score;\n }",
"public void setBonusScore() {\r\n count = count+50;\r\n }",
"public float getScore(){return score;}",
"public void setScore(int paScore) {\n this.score = paScore;\n }",
"public UserScore() {\n this(DSL.name(\"b2c_user_score\"), null);\n }",
"void setFitnessScore(double score){\n fitnessScore = score;\n }",
"private void setScore(String score) {\r\n this.score = score;\r\n }",
"void setBestScore(double bestScore);",
"public void setScore(String score) {\n this.score = score;\n setChanged();\n notifyObservers();\n }",
"public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}",
"public int getScore(){return score;}",
"public int getScore(){return score;}",
"public int getScore() {return score;}",
"public void setScore(int score) {\n\t\tthis.score = score;\n\t}",
"public int getScore() { return score; }",
"public void setScore (java.lang.Integer score) {\r\n\t\tthis.score = score;\r\n\t}",
"private void updateLeaderboard(String channelId, String userId, int scoreFactor) {\r\n Leaderboard lb = leaderboardRepository.findByChannelId(channelId);\r\n\r\n // found leaderboard\r\n if(lb != null) {\r\n\r\n // update existing user\r\n if (lb.scores.containsKey(userId)) {\r\n\r\n UserScore us = lb.scores.get(userId);\r\n us.score += scoreFactor;\r\n us.displayName = userId;\r\n\r\n // get user display name\r\n User user = getUserInfo(userId);\r\n if(user != null) {\r\n us.displayName = user.profile.display_name_normalized;\r\n if (us.displayName.length() == 0) {\r\n us.displayName = user.profile.real_name_normalized;\r\n }\r\n }\r\n\r\n lb.scores.put(userId, us);\r\n leaderboardRepository.save(lb);\r\n }\r\n // add new user\r\n else {\r\n UserScore us = new UserScore();\r\n us.score += scoreFactor;\r\n us.displayName = userId;\r\n\r\n // get user display name\r\n User user = getUserInfo(userId);\r\n if(user != null) {\r\n us.displayName = user.profile.display_name_normalized;\r\n if (us.displayName.length() == 0) {\r\n us.displayName = user.profile.real_name_normalized;\r\n }\r\n }\r\n\r\n lb.scores.put(userId, us);\r\n leaderboardRepository.save(lb);\r\n }\r\n }\r\n // create new leaderboard\r\n else {\r\n lb = new Leaderboard(channelId);\r\n\r\n UserScore us = new UserScore();\r\n us.score += scoreFactor;\r\n us.displayName = userId;\r\n\r\n // get user display name\r\n User user = getUserInfo(userId);\r\n if(user != null) {\r\n us.displayName = user.profile.display_name_normalized;\r\n if (us.displayName.length() == 0) {\r\n us.displayName = user.profile.real_name_normalized;\r\n }\r\n }\r\n\r\n lb.scores.put(userId, us);\r\n leaderboardRepository.save(lb);\r\n }\r\n }",
"@Override\r\n\tpublic boolean updateScore(int score) {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"update member set score=score+\"+score+\" where id='\"+LoginServiceImpl.getCurrentUser().getID()+\"'\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\t\r\n\t\t\tif(ps.executeUpdate()==0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}else\r\n\t\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}",
"public void setScore(Short score) {\n this.score = score;\n }",
"public void setScore (java.lang.Float score) {\n\t\tthis.score = score;\n\t}",
"public void setScore(int newScore){\n\t\tthis.score = newScore;\n\t}",
"public int getScore(){ return this.score; }",
"public void setAwayScore(int a);",
"public void setVisitorScore(int visitorScore) {\n this.visitorScore = visitorScore;\n }",
"public int getScore()\n {\n return score; \n }",
"public Float getScore() {\n return score;\n }",
"@RequestMapping(method = RequestMethod.PUT, value = \"/{facebookId}\")\n public long updateScore(@PathVariable(value = \"facebookId\") String id, @RequestParam(value = \"score\") long score) {\n long currentScore = getUserScore(id);\n User user = usersRepository.findById(id);\n user.setScore(currentScore + score);\n usersRepository.save(user);\n return usersRepository.findById(id).getScore();\n }",
"public synchronized void setScore(Integer score) {\n this.score += score;\n }",
"public void setComment(String comment, int rating);",
"public void setScore(int score) {\r\n\t\tif(score >=0) {\r\n\t\t\tthis.score = score;\r\n\t\t}\r\n\t\t\r\n\t}",
"public float getUserRatingScore() {\n float scorePercent = Float.valueOf(userRating) * 10;\n\n return ((5 * scorePercent) / 100);\n }",
"public int getScore(){\n return this.score;\n }",
"public void setCreditScore( int score ) {\n if ( score < MIN_CREDIT_SCORE || score > MAX_CREDIT_SCORE ) \r\n throw new IllegalArgumentException( \"Customer credit score can't be < \" + MIN_CREDIT_SCORE + \" or > \" + MAX_CREDIT_SCORE + \".\" );\r\n else\r\n\t this.creditScore = score; \r\n }",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public float getScore() {\n return score;\n }",
"public void updateScore(int score){ bot.updateScore(score); }",
"protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}",
"public void updateUserScore(String user, int points) {\n this.onlineUsers.computeIfPresent(user, (k, v) -> {\n User updated = v.setScore(v.getScore() + points);\n if (Policy.IMMEDIATELY.equals(this.policy)) {\n this.safeUpdate(updated);\n }\n return updated;\n });\n }",
"public final void setScore(java.lang.Double score)\r\n\t{\r\n\t\tsetScore(getContext(), score);\r\n\t}",
"public void addScore(double _score, User _user, int _app, double _weight, String date_n_time)\r\n\t{\r\n\t\tUserProgressEstimator upe = user_knowledge_levels.findById(\r\n\t\t\t_user.getId() );\r\n\t\tif(upe==null) // add new UserProgressEstimator\r\n\t\t{\r\n\t\t\tint estimator_type = 0;\r\n\t\t\tswitch (domain.getId())\r\n\t\t\t{\r\n\t\t\t\t// concepts\r\n\t\t\t\tcase 1:\r\n\t\t\t\tcase 8:\r\n\t\t\t\tcase 9:\r\n\t\t\t\tcase 11:\r\n\t\t\t\tcase 12:\r\n\t\t\t\tcase 15:\r\n\t\t\t\tcase 16:\r\n\t\t\t\t\testimator_type = iProgressEstimator.ESTIMATOR_ASSYMPTOTIC;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase 0:\r\n\t\t\t\tbreak;\r\n\t\t\t\t// topics\r\n\t\t\t\tcase 2: \r\n\t\t\t\tcase 6: \r\n\t\t\t\tcase 7: \r\n\t\t\t\tcase 10: \r\n\t\t\t\t\testimator_type = iProgressEstimator.ESTIMATOR_MEAN;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//t \r\n\t\t\t//c \r\n\t\t\t\r\n\t\t\t\r\n\t\t\tupe = new UserProgressEstimator(_user.getId(),\r\n\t\t\t\t_user.getTitle(), _user, 0, estimator_type);\r\n\t\t\tuser_knowledge_levels.add(upe);\r\n\t\t}\r\n\t\t\r\n\t\tint level_idx = ResourceMap.mapToBloomLevelIndex(_app, _score);\r\n//\t\tif((level_idx==0) && _score<0)\r\n//\t\t\t_score = Math.abs(_score);\r\n//if(this.getId()==14)\t\t\t\r\n//{\r\n//System.out.println(\"### [CBUM] Concept.addScore C.Id=\" + this.getId() +\" _score=\" + _score + \" _weight= \" + _weight + \" outcome_w_sum=\" + outcome_w_sum); /// DEBUG\r\n//}\r\n\r\n//if(this.getId()==190)\r\n//{\r\n//System.out.println(\"### [CBUM] Concept.addScore User=\"+_user.getTitle()+\" score=\"+_score + \" weight=\" + _weight); /// DEBUG\r\n//System.out.println(\"### [CBUM] Concept.addScore \\tcog_level_name=\" + iProgressEstimator.BLOOM_NAMES[level_idx] ); /// DEBUG\r\n//System.out.println(\"### [CBUM] Concept.addScore \\tcog_level_OLD=\" + upe.getKnowledgeLevels()[level_idx].getProgress() ); /// DEBUG\r\n//}\r\n//System.out.println(this.getTitle() + \" _app = \" + _app + \" level_idx = \" + level_idx);\r\n\t\tif(level_idx != -1)\r\n\t\t\tupe.getKnowledgeLevels()[level_idx].addProgress(_score, _weight,\r\n\t\t\t\toutcome_w_sum, date_n_time);\r\n//if(this.getId()==190)\r\n//{\r\n//System.out.println(\"### [CBUM] Concept.addScore \\tcog_level_NEW=\" + upe.getKnowledgeLevels()[level_idx].getProgress() ); /// DEBUG\r\n//System.out.println(\"### [CBUM] Concept.addScore \\t domain=\" + this.getDomain().getId() + \" \" + this.getDomain().getTitle()); /// DEBUG\r\n//}\t\t\t\r\n\t\t\r\n\t}",
"public int getScore(){\n\t\treturn score;\n\t}",
"public int getScore(){\n\t\treturn score;\n\t}",
"public int getScore() {\n return score;\n }",
"public double getScore() {\r\n return score;\r\n }",
"public double getRating(){\n\t\treturn this.user_rating;\n\t}",
"int getScore() {\n return score;\n }",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore()\n {\n return score;\n }",
"@Override\n public int getScore() {\n return score;\n }",
"public int getScore() {\n return score;\n }",
"public int getScore() {\n return score;\n }",
"Float getScore();",
"public void userScore(float score) {\n String message;\n //Finds the appropriate text views in order to set text later\n TextView userScore = findViewById(R.id.yourScore);\n TextView userMessage = findViewById(R.id.messageView);\n //Final score variable derived from displayScore\n int finalScore = (Math.round(displayScore(score)));\n //if statements to determine message to be displayed based on finalScore\n if (finalScore == 100) {\n message = \"Wow!! \\nAre you Stan Lee?\";\n } else if (finalScore == 90) {\n message = \"You're amazing!!\";\n } else if (finalScore == 80) {\n message = \"Impressive!!\";\n } else if (finalScore == 70) {\n message = \"You're a regular \\ncomic book junkie!\";\n } else if (finalScore == 60) {\n message = \"Still a majority!!\";\n } else if (finalScore == 50) {\n message = \"Solid for the \\ncasual reader\";\n } else if (finalScore == 40) {\n message = \"Just a fan of \\nthe movies?\";\n } else if (finalScore == 30) {\n message = \"DC Universe?\";\n } else if (finalScore == 20) {\n message = \"A couple good guesses?\";\n } else if (finalScore == 10) {\n message = \"Did you even try?\";\n } else if (finalScore == 0) {\n message = \"Have you heard of Marvel?\";\n } else {\n message = \"What did you do?\";\n }\n //sets the text for the views\n userScore.setText((finalScore) + \"%\");\n userMessage.setText(message);\n }",
"@Override\n\tpublic int compareTo(User otherUser){\n\t\t\n\t\treturn otherUser.getScore()-score;\n\t}",
"@Override\n public void passScore(int score) {\n this.score = score;\n scoreFragment.setData(score);\n }",
"public void addReview(double score){\n totalReviews++;\n totalScore += score;\n }",
"float getScore();",
"float getScore();",
"public int getScore ()\r\n {\r\n\treturn score;\r\n }",
"public void setScore(){\n\t\t//get player's score and change it to the string\n\t\tthis.scoreLabel.setSize(scoreLabel.getPreferredSize().width, \n\t\t\t\tscoreLabel.getPreferredSize().height);\n\t\tthis.scoreLabel.setText(String.valueOf(this.player.getScore()));\n\t}",
"void setScore(int score) {\n lblScore.setText(String.valueOf(score));\n }",
"void setPassedUser(User passedUser);",
"public float getScore() {\r\n\t\treturn score;\r\n\t}",
"public Long getScore() {\n return score;\n }",
"public void setUserRating(String userRating) {\n this.userRating = userRating;\n }",
"public Double getScore() {\n return this.score;\n }",
"public Double getScore() {\n return this.score;\n }",
"public void setScore(String score) {\n\t\tthis.score = score;\n\t}",
"public void setScore(Score score) {\n scoreProperty.set(score.packed());\n }",
"SpeechAwardPoints(int rating){\n\n currentPoints = rating;\n feedback = \"Your current rating is: \" + currentPoints + \"%\";\n }",
"public Integer getScore() {\r\n return score;\r\n }",
"public void setMyRating(double myRating) {\n this.myRating = myRating;\n }",
"public int getScore(){\n\t\treturn this.score;\n\t}",
"public int getScore(){\n\t\treturn this.score;\n\t}"
]
| [
"0.7076461",
"0.66985595",
"0.66698694",
"0.6599601",
"0.6520213",
"0.63800234",
"0.6343304",
"0.63309026",
"0.630724",
"0.6300736",
"0.62523496",
"0.62343097",
"0.62343097",
"0.6224595",
"0.62098813",
"0.61899364",
"0.6161727",
"0.6161727",
"0.6161727",
"0.6161727",
"0.61484677",
"0.6116038",
"0.6104802",
"0.6088502",
"0.60848635",
"0.6078457",
"0.60313237",
"0.6024933",
"0.6011236",
"0.5960236",
"0.59355694",
"0.59354633",
"0.5928911",
"0.5893702",
"0.5893702",
"0.58910686",
"0.588123",
"0.5845385",
"0.5844248",
"0.5842736",
"0.5841579",
"0.5836976",
"0.5827606",
"0.58264285",
"0.582506",
"0.5816397",
"0.5813982",
"0.5802411",
"0.580089",
"0.5796609",
"0.5795631",
"0.57908094",
"0.57790715",
"0.57694423",
"0.5759596",
"0.57511216",
"0.57490134",
"0.57490134",
"0.5744188",
"0.57439566",
"0.57437897",
"0.5708385",
"0.57057",
"0.5699519",
"0.5688607",
"0.5688607",
"0.5681876",
"0.5679309",
"0.5675751",
"0.56732494",
"0.5671101",
"0.5671101",
"0.5671101",
"0.5670873",
"0.56398386",
"0.5639669",
"0.5639669",
"0.56391984",
"0.5634728",
"0.5632996",
"0.56282055",
"0.56250423",
"0.5619859",
"0.5619859",
"0.56187356",
"0.5611155",
"0.56004804",
"0.5600021",
"0.5599545",
"0.5582431",
"0.5576421",
"0.5576029",
"0.5576029",
"0.5568509",
"0.556727",
"0.55654407",
"0.55611813",
"0.5553461",
"0.5550379",
"0.5550379"
]
| 0.71500236 | 0 |
public getter Text message left by the user in CommentingUser. Used to provide a more indepth description of the user's opinion of the transaction. Returned as text in the language that the comment was originally left in. | public String getCommentText() {
return this.commentText;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String getLeftMessage() {\n\t\treturn player2.getName() + \": \" + player2.getScore();\n\t}",
"public String textReason() {\r\n return getParm(2).trim();\r\n }",
"public String getMessageText();",
"public String getMessageText() {\n return message_text;\n }",
"public String getMessageText() {\n return messageText;\n }",
"public String getMessage()\n\t{\n\t\treturn messageArea.getText();\n\t}",
"public String getMessage() {\n\t\tString toReturn = message;\n\t\tmessage=\"\";//delete the message\n\t\treturn toReturn;\n\t}",
"public String getPersonalMessage()\n \t{\n \t\treturn personalMessage;\n \t}",
"public String getMessage()\n {\n return fMessage;\n }",
"public String getPredefinedTextMessage( String language, int preDefindeMsgId );",
"public String getAcCommentsMessage() {\n return acCommentsMessage;\n }",
"public String text() // left text\n\t{\n\t\treturn this._data.get(\"text\");\n\t}",
"public java.lang.String getReasonText() {\n return reasonText;\n }",
"public String getMessage(){\n return(message);\n }",
"java.lang.String getMoodMessage();",
"public String getText() {\n\t\tif (isAdjacentTo!=null) {\r\n\t\t\treturn isAdjacentTo.getText();\r\n\t\t} else {\r\n\t\t\tint commentStartIndex = start-offsetToStartOfCommentTextInFile+taskTag.length();\r\n\t\t\tint commentEndIndex = end-offsetToStartOfCommentTextInFile+1;\r\n\t\t\treturn commentText.substring(commentStartIndex,commentEndIndex).trim();\r\n\t\t}\r\n\t}",
"protected String getMessage() {\n if (allMessage == null)\n return allMessage;\n return allMessage.trim();\n }",
"public String getMessageText() {\r\n\t\treturn txtAreaWriteMessage.getText();\r\n\t}",
"public String getMessage() {\n\t\treturn \" whose content is a\";\n\t}",
"java.lang.String getUserMessage();",
"public String getMessage() {\n\t//TODO fix the removing of the color char one a move\n\t\tString message = this.message.substring(position, Math.min(this.message.length(), (width - 2) + position));\n\t\tchar COLORCHAR = '&';\n\t\tif (message.charAt(0) == COLORCHAR) {\n\t\t\tcolor = ChatColor.getByChar(message.charAt(1));\n\t\t} else {\n\t\t\tmessage = message.substring(1);\n\t\t\tmessage = \"\" + color + message;\n\t\t}\n\n\t\tif (message.charAt(message.length() - 1) == COLORCHAR) {\n\t\t\tmessage = message.substring(0, message.length() - 2);\n\t\t\tmessage = message + \" \";\n\t\t}\n\t\treturn message;\n\n\t}",
"java.lang.String getTheMessage();",
"public java.lang.String getMessageText() {\n return messageText;\n }",
"public String getMessage()\r\n {\r\n return myMessage;\r\n }",
"protected String getRightMessage() {\n\t\treturn player1.getName() + \": \" + player1.getScore();\n\t}",
"public String getMessage() {\n \t\treturn message;\n \t}",
"public String getMessage() {\n\t\treturn this.nbt.getString(MESSAGE_KEY);\n\t}",
"public String getLovRemark() {\r\n\t\treturn lovRemark;\r\n\t}",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"public String getMessage()\n\t{\n\t\treturn this.message;\n\t}",
"public String getMessage() {\r\n\t\treturn m_message;\r\n\t}",
"public String getMessage(){\n\t\treturn this.message;\n\t}",
"protected String getCenterMessage() {\n\t\treturn getLeader().getName() + \" leads\";\n\t}",
"public String getMessage() {\n String message = this.rawMessage;\n Boolean endsWithDot = false;\n Boolean endsWithQuestionMark = false;\n\n // Check if the last character is a dot\n if (message.charAt(message.length()-1) == '.') {\n message = message.substring(0, message.length()-1);\n endsWithDot = true;\n }\n\n // Check if the last character is a question mark\n if (message.charAt(message.length()-1) == '?') {\n message = message.substring(0, message.length()-1);\n endsWithQuestionMark = true;\n }\n\n if (templateName != null) {\n message += \" in \\\"\" + templateName + \"\\\"\";\n }\n\n if (lineNumber != null && lineNumber > -1) {\n message += \" at line \" + lineNumber;\n }\n\n if (endsWithDot) {\n message += \".\";\n }\n if (endsWithQuestionMark) {\n message += \"?\";\n }\n\n return message;\n }",
"public String getMessage()\n\t{\n\t\treturn message;\n\t}",
"public java.lang.String getMessage() {\n return localMessage;\n }",
"public String getText() {\n if (Language.isEnglish()) {\n return textEn;\n } else {\n return textFr;\n }\n }",
"public String getText() {\n return msgText;\n }",
"public String getMessage(){\r\n\t\treturn message;\r\n\t}",
"public String getMessage()\r\n\t{\r\n\t\treturn message;\r\n\t}",
"public String getMessage() {\r\n\t\treturn mMessage;\r\n\t}",
"String getMessage() {\n return null;\n }",
"public String getCommentText() {\r\n\r\n\t\treturn commentText;\r\n\t}",
"public String getMessage(){\n return saisieMessage.getText();\n }",
"public String getMessage () {\n return message;\n }",
"public String getMessage()\r\n {\r\n return message;\r\n }",
"public String getMessage()\r\n {\r\n return message;\r\n }",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"public String getMessage() throws FIFException {\n return text;\n }",
"private String getMessage() {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\r\n\t\t\r\n\t\tboolean addSign = prefs.getBoolean(\"addsign\", true);\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\tdefMessage = \"I am busy right now and will call you latter.\";\r\n\t\t\r\n\t\tfinalMessage = prefs.getString(\"message\", defMessage);\r\n\t\tif(finalMessage.equals(\"\"))\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t}\r\n\t\t\r\n\t\tif(addSign)\r\n\t\t\tfinalMessage += \"\\nSent using Calls and SMS Blocker for android.\\nDownload from: https://play.google.com/store/apps/details?id=com.atiffarrukh.callandsmsblocker\";\r\n\t\treturn finalMessage;\r\n\t}",
"public String getMessage()\n\t\t{\n\t\t\treturn message;\n\t\t}",
"String getComment();",
"String getComment();",
"String getRemark();",
"public String getErrorMessage() {\r\n String toReturn = recentErrorMessage;\r\n\r\n return toReturn;\r\n }",
"public String getMessage() {\n\t\treturn this.message;\n\t}",
"public String getMessage() {\n\t\treturn this.message;\n\t}",
"public java.lang.String getMESSAGE() {\n return MESSAGE;\n }",
"public String getMessage()\n {\n return message;\n }",
"public String getMessage()\n {\n return message;\n }",
"public String getMessage() {\n return null;\n }",
"public String getMessage() {\r\n\t\treturn this.message;\r\n\t}",
"public String getCorrectedText() {\n return this.computeCorrectedText();\n }",
"public String getMessage() {\n\t\treturn message;\n\t\t\n\t}",
"public java.lang.String getRemarks() {\n\t\treturn _tempNoTiceShipMessage.getRemarks();\n\t}",
"private String getMessage(){\n\t\t\treturn textArea.getText();\n\t}",
"public String getMessage(){\r\n return message;\r\n }",
"public String getMessage(){\r\n return message;\r\n }",
"public String getComment() throws SQLException {\n\t\tloadFromDB();\n\t\treturn rev_comment;\n\t}",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getMessage() { return message; }",
"String getMovementComments();",
"public String getMsg(){\n return messageLabel.getText();\n }",
"public String getMessage() {\r\n return message;\r\n }",
"public String getMessage() {\r\n return message;\r\n }",
"public java.lang.String getMessage()\r\n {\r\n return message;\r\n }",
"public String getMessage() {\n return message;\n }"
]
| [
"0.65706486",
"0.6455834",
"0.6309749",
"0.60745835",
"0.6047103",
"0.6046391",
"0.60146224",
"0.6011258",
"0.6008224",
"0.600407",
"0.6003825",
"0.59870416",
"0.5970388",
"0.59445333",
"0.58678675",
"0.5852376",
"0.5842941",
"0.5835985",
"0.5830143",
"0.582654",
"0.58204657",
"0.58035976",
"0.57828224",
"0.5775762",
"0.5772995",
"0.575326",
"0.57523",
"0.5748695",
"0.5747431",
"0.5747431",
"0.5747431",
"0.5747431",
"0.5747431",
"0.5747431",
"0.5747431",
"0.5747431",
"0.5747431",
"0.5747431",
"0.5747431",
"0.5747431",
"0.5747431",
"0.5747431",
"0.5747431",
"0.5747431",
"0.5747431",
"0.5742827",
"0.5714097",
"0.57134295",
"0.571198",
"0.5700747",
"0.56959313",
"0.5695797",
"0.569222",
"0.5679564",
"0.5679274",
"0.5677605",
"0.5674754",
"0.567451",
"0.5671951",
"0.56699854",
"0.5663236",
"0.5661964",
"0.5661964",
"0.5658811",
"0.5658811",
"0.5658811",
"0.56560826",
"0.5653542",
"0.5648883",
"0.56468046",
"0.56468046",
"0.5637042",
"0.5632823",
"0.5627132",
"0.5627132",
"0.5626837",
"0.56233835",
"0.56233835",
"0.5622972",
"0.5613265",
"0.5611162",
"0.56047815",
"0.56014144",
"0.56013894",
"0.56008244",
"0.56008244",
"0.5591984",
"0.5590063",
"0.5590063",
"0.5590063",
"0.5590063",
"0.5590063",
"0.5590063",
"0.5585966",
"0.55851024",
"0.55824506",
"0.5581943",
"0.5581943",
"0.557938",
"0.5577535"
]
| 0.58745927 | 14 |
public setter Text message left by the user in CommentingUser. Used to provide a more indepth description of the user's opinion of the transaction. Returned as text in the language that the comment was originally left in. | public void setCommentText(String commentText) {
this.commentText = commentText;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String textReason() {\r\n return getParm(2).trim();\r\n }",
"public String getCommentText() {\n\t return this.commentText;\n\t}",
"public String getCommentText() {\r\n\r\n\t\treturn commentText;\r\n\t}",
"public java.lang.String getReasonText() {\n return reasonText;\n }",
"protected String getLeftMessage() {\n\t\treturn player2.getName() + \": \" + player2.getScore();\n\t}",
"public String description(){\n\t\treturn \"Mark: \" + mark + \"\\n\" + \"Comment: \" + comment;\n\t}",
"public String getMessageText();",
"public String getAcCommentsMessage() {\n return acCommentsMessage;\n }",
"public String getPredefinedTextMessage( String language, int preDefindeMsgId );",
"public String getMessageText() {\n return messageText;\n }",
"public String getMessageText() {\n return message_text;\n }",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public void setMessageText(String tmp) {\n this.messageText = tmp;\n }",
"public String getRemark()\n/* */ {\n/* 255 */ return this.remark;\n/* */ }",
"public String getRemark() {\r\n return remark;\r\n }",
"public void setTvMessageUserLeft(String message) {\n mTvMessageUserLeft.setText(message);\n }",
"public String getLovRemark() {\r\n\t\treturn lovRemark;\r\n\t}",
"java.lang.String getMoodMessage();",
"String getRemark();",
"public String getPersonalMessage()\n \t{\n \t\treturn personalMessage;\n \t}",
"public String getComment(){\n return this.comment;\n }",
"default String getOriginalText() {\n return meta(\"nlpcraft:nlp:origtext\");\n }",
"public String text() // left text\n\t{\n\t\treturn this._data.get(\"text\");\n\t}",
"@Override\n\tpublic GameChatResponse optionalCommentOnLanguage(OsuApiUser apiUser) {\n\t\treturn new Message(\"[https://osu.ppy.sh/u/6579055 Dddsasul] mă ajută să învăț Româna!\");\n\t}",
"public String getRemark() {\r\n return remark;\r\n }",
"public String getRemark() {\r\n return remark;\r\n }",
"public String getRemark() {\r\n return remark;\r\n }",
"public String getRemark() {\r\n return remark;\r\n }",
"public String getMoneyRemark() {\n return moneyRemark;\n }",
"public String getMessage(){\n return(message);\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getRemark() {\n return remark;\n }",
"public String getComment(){\n return comment;\n }",
"String getComment();",
"String getComment();",
"@Schema(description = \"A gift message provided by the buyer.\")\n public String getGiftMessageText() {\n return giftMessageText;\n }",
"public java.lang.String getRemark () {\r\n\t\treturn remark;\r\n\t}",
"public String getMessage() {\n\t\treturn \" whose content is a\";\n\t}",
"public String getComment() {\n return description;\n }",
"public String getMessage()\n {\n return fMessage;\n }",
"public String getEmotionComment() {\n return emotionComment;\n }",
"public void setMessage(String text) {\n this.text = text;\n }",
"public String getComment()\n {\n return comment;\n }",
"public java.lang.String getRemark () {\n\t\treturn _remark;\n\t}",
"public String getComment() {\n return this.comment;\n }",
"public String getMessageText() {\r\n\t\treturn txtAreaWriteMessage.getText();\r\n\t}",
"private String getMessage(){\n\t\t\treturn textArea.getText();\n\t}",
"@Override\n\tpublic String getNotes() {\n\t\treturn text;\n\t}",
"public String getRemark() {\r\n\t\treturn remark;\r\n\t}",
"@Override\n\tpublic String getComment() {\n\t\treturn model.getComment();\n\t}",
"public String get_comment() throws Exception {\n\t\treturn this.comment;\n\t}",
"public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}",
"String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getRemarks() { return remarks; }",
"private String getMessage() {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\r\n\t\t\r\n\t\tboolean addSign = prefs.getBoolean(\"addsign\", true);\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\tdefMessage = \"I am busy right now and will call you latter.\";\r\n\t\t\r\n\t\tfinalMessage = prefs.getString(\"message\", defMessage);\r\n\t\tif(finalMessage.equals(\"\"))\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t}\r\n\t\t\r\n\t\tif(addSign)\r\n\t\t\tfinalMessage += \"\\nSent using Calls and SMS Blocker for android.\\nDownload from: https://play.google.com/store/apps/details?id=com.atiffarrukh.callandsmsblocker\";\r\n\t\treturn finalMessage;\r\n\t}",
"@Override\r\n\tpublic String getMessage() {\n\t\treturn \"홀수입력 !!\";\r\n\t}",
"public String getRemark() {\n return this.Remark;\n }",
"public String getMessage()\r\n {\r\n return myMessage;\r\n }",
"public String getComment() throws SQLException {\n\t\tloadFromDB();\n\t\treturn rev_comment;\n\t}",
"public String getText() {\n return msgText;\n }"
]
| [
"0.6242953",
"0.59583575",
"0.58121365",
"0.5809324",
"0.57678175",
"0.57576144",
"0.57459074",
"0.5727898",
"0.56660676",
"0.56540686",
"0.56446284",
"0.5641504",
"0.5641504",
"0.5641504",
"0.5641504",
"0.5641504",
"0.5641504",
"0.5622747",
"0.56160647",
"0.56083226",
"0.5599536",
"0.55994666",
"0.5594715",
"0.558427",
"0.55795187",
"0.557172",
"0.5561497",
"0.55562854",
"0.5554285",
"0.5548705",
"0.5548705",
"0.5548705",
"0.5548705",
"0.55427134",
"0.5511068",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5510919",
"0.5508431",
"0.5503054",
"0.5503054",
"0.54929096",
"0.5491195",
"0.5489086",
"0.54749364",
"0.5457864",
"0.5443916",
"0.5438891",
"0.5422408",
"0.54075795",
"0.54063004",
"0.54045594",
"0.5400724",
"0.5394654",
"0.5389483",
"0.5374833",
"0.53580135",
"0.53547174",
"0.53515",
"0.5348514",
"0.5348514",
"0.5348514",
"0.5348514",
"0.5348514",
"0.5348514",
"0.5348514",
"0.53442395",
"0.5343801",
"0.53404176",
"0.5337626",
"0.5329027",
"0.53230524",
"0.5306376"
]
| 0.0 | -1 |
public getter Date and time (in GMT) that the feedback was submitted to eBay. | public Date getCommentTime() {
return this.commentTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DateTime getSubmissionTime();",
"public Date getAposttime() {\n return aposttime;\n }",
"Date getRequestedAt();",
"public Date getTimePost() {\n return timePost;\n }",
"public Date getSubmittime() {\n return submittime;\n }",
"public Date getRequestDate();",
"public Date getDeductSubmitTime() {\n return deductSubmitTime;\n }",
"public Date getGmtUpdate() {\n return gmtUpdate;\n }",
"public Date getUpdate_time() {\n return update_time;\n }",
"public Date getUpdate_time() {\n return update_time;\n }",
"public OffsetDateTime submittedTime() {\n return this.submittedTime;\n }",
"public Date getSubmitTime() {\n return submitTime;\n }",
"public Date getRequesttime() {\n return requesttime;\n }",
"public Date getSendEmailTime() {\n return sendEmailTime;\n }",
"public Date getSentAt() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n Date d = null;\n try {\n d = sdf.parse(creationDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return d;\n }",
"public Date getUpdateDatetime();",
"public java.util.Date getRequestTime() {\n return this.requestTime;\n }",
"Date getEventFiredAt();",
"public Date getRequestDate() { return requestDate; }",
"public Date getUpdatetime() {\r\n return updatetime;\r\n }",
"public Date getDatePosted() {\n return datePosted;\n }",
"public Date getRedeemedTime() {\n return redeemedTime;\n }",
"public Date getSendingTime() {\n return sendingTime;\n }",
"public Date getGmtCreate() {\r\n return gmtCreate;\r\n }",
"public Date getGmtAccept() {\n return gmtAccept;\n }",
"public Date getUpdatetime() {\n return updatetime;\n }",
"public Date getUpdatetime() {\n return updatetime;\n }",
"public Date getSendTime() {\n return sendTime;\n }",
"public Date getLastSendRequestTime()\r\n {\r\n return lastSendRequestTime;\r\n }",
"private void getDate() {\t// use the date service to get the date\r\n String currentDateTimeText = theDateService.getDateAndTime();\r\n this.send(currentDateTimeText);\r\n }",
"public Long getRequestDate() {\n return requestDate;\n }",
"double getClientTime();",
"public String getDatePost() {\n return datePost;\n }",
"com.google.protobuf.Timestamp getSubmitTime();",
"public Date getUpdateDatime() {\r\n return updateDatime;\r\n }",
"public Date getUpdateDatime() {\r\n return updateDatime;\r\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getFlastupdatetime() {\n return flastupdatetime;\n }",
"@Override\n\tpublic java.util.Date getRequestedDate() {\n\t\treturn _dmGtStatus.getRequestedDate();\n\t}",
"public Calendar getSendDateTime() {\n\n // Get the date and time at which the missive document was sent\n return this.missiveHeader.getSndDtTm();\n }",
"public Date getTbrq() {\r\n return tbrq;\r\n }",
"public Date getSentDate() {\n return sentDate;\n }",
"public Date getAtTime() {\r\n return atTime;\r\n }",
"public Date getCreate_time() {\n return create_time;\n }",
"public Date getCreate_time() {\n return create_time;\n }",
"public Date getBuy_time() {\r\n\t\treturn buy_time;\r\n\t}",
"public Date getMessageDate();",
"public Date getRptrecvtime() {\n return rptrecvtime;\n }",
"@Override\n\tpublic Date getSubmitDate() {\n\t\treturn model.getSubmitDate();\n\t}",
"public Date getActualBuyingTime() {\n return actualBuyingTime;\n }",
"public Date getEntrytime() {\n return entrytime;\n }",
"public Date getOrderTime();",
"public Date getPubTime() {\n return (Date) getAttributeInternal(PUBTIME);\n }",
"public Date getUpdateDatetime() {\r\n\t\treturn updateDatetime;\r\n\t}",
"public Date getGmtDeal() {\n return gmtDeal;\n }",
"public Date getEpDeletetime() {\n return epDeletetime;\n }",
"public Date getGmtCreated() {\n return gmtCreated;\n }",
"public Date getTimeSend() {\n return timeSend;\n }",
"public String getUpdateDate() {\r\n return updateDate;\r\n }",
"Date getUpdatedDate();",
"public String getReturnDate();",
"public Date getAnswerTime() {\n return answerTime;\n }",
"public Date getWishPaymentTime() {\n return wishPaymentTime;\n }",
"public Date getRecvdatetime() {\n\t\treturn recvdatetime;\n\t}",
"Date getTimestamp()\n{\n return time_stamp;\n}",
"public Date getFcreatetime() {\n return fcreatetime;\n }",
"Date getPostedDate();",
"public Date getTimeUpdate() {\n return timeUpdate;\n }",
"public Date getReceiveTime() {\r\n return receiveTime;\r\n }",
"public Date getCreatetime() {\r\n return createtime;\r\n }",
"public Date getCreatetime() {\r\n return createtime;\r\n }",
"public Date getCreatetime() {\r\n return createtime;\r\n }",
"public Date getReceiveTime() {\n return receiveTime;\n }",
"public Date getPublish_tm() {\n return publish_tm;\n }",
"String getCreated_at();",
"public Date getTransfertime() {\n return transfertime;\n }",
"public Timestamp getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\r\n return updateDate;\r\n }",
"public long getSentTime();",
"public Timestamp getDateConfirm() {\n\t\treturn (Timestamp) get_Value(\"DateConfirm\");\n\t}",
"public Date getRecTime() {\n return recTime;\n }",
"public Date getReceiveTime() {\n return receiveTime;\n }",
"public Timestamp getReviewDate() {\n\t\treturn reviewDate;\n\t}",
"public long getDatetime() {\n return datetime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }"
]
| [
"0.71837056",
"0.69318986",
"0.68655753",
"0.685407",
"0.6852181",
"0.67772144",
"0.67667586",
"0.6736588",
"0.6732581",
"0.6732581",
"0.6731344",
"0.67242545",
"0.66882366",
"0.6660319",
"0.6621002",
"0.66162676",
"0.66057277",
"0.66015756",
"0.6595654",
"0.6589503",
"0.6588719",
"0.6554105",
"0.6550314",
"0.6530931",
"0.6524466",
"0.65164083",
"0.65164083",
"0.65079343",
"0.65041125",
"0.6499743",
"0.6485883",
"0.6483997",
"0.6482653",
"0.64763105",
"0.64757216",
"0.64757216",
"0.6460203",
"0.6460203",
"0.6460203",
"0.6460203",
"0.6460203",
"0.6460203",
"0.6460203",
"0.6460203",
"0.6460203",
"0.6460203",
"0.6460203",
"0.6460203",
"0.6460203",
"0.6460203",
"0.645681",
"0.64474034",
"0.64462173",
"0.64407367",
"0.64406127",
"0.6438822",
"0.64343375",
"0.64343375",
"0.6430047",
"0.64209676",
"0.6416422",
"0.6411103",
"0.64096606",
"0.6403259",
"0.6401521",
"0.6399432",
"0.63977104",
"0.63929355",
"0.6387669",
"0.6379881",
"0.6364418",
"0.6359294",
"0.6353126",
"0.6343554",
"0.6338883",
"0.6331536",
"0.633106",
"0.63275737",
"0.6319857",
"0.631951",
"0.6311152",
"0.63042784",
"0.6297203",
"0.6297203",
"0.6297203",
"0.6291057",
"0.62800854",
"0.62720937",
"0.6268653",
"0.62647307",
"0.6259228",
"0.6254081",
"0.624474",
"0.62414324",
"0.6239732",
"0.6234985",
"0.6234422",
"0.62277406",
"0.62277406",
"0.62277406",
"0.62277406"
]
| 0.0 | -1 |
public setter Date and time (in GMT) that the feedback was submitted to eBay. | public void setCommentTime(Date commentTime) {
this.commentTime = commentTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRequestDate(Date requestDate);",
"public void setUpdateDatetime(Date updateDatetime);",
"public void setRequestDate(Date requestDate) { this.requestDate = requestDate; }",
"public void setMyDatePosted(String myDatePosted) {\n this.myDatePosted = myDatePosted;\n }",
"public void setAposttime(Date aposttime) {\n this.aposttime = aposttime;\n }",
"public Date getSubmittime() {\n return submittime;\n }",
"public Date getAposttime() {\n return aposttime;\n }",
"public Date getSubmitTime() {\n return submitTime;\n }",
"@Override\n\tprotected void setDate() {\n\n\t}",
"public void setUpdateTime(Date updateTime)\n/* */ {\n/* 198 */ this.updateTime = updateTime;\n/* */ }",
"public Date getDeductSubmitTime() {\n return deductSubmitTime;\n }",
"DateTime getSubmissionTime();",
"public void setDateOfExamination(java.util.Date param){\n \n this.localDateOfExamination=param;\n \n\n }",
"public void setSentTime(Date v) \n {\n \n if (!ObjectUtils.equals(this.sentTime, v))\n {\n this.sentTime = v;\n setModified(true);\n }\n \n \n }",
"Date getRequestedAt();",
"public void setTbrq(Date tbrq) {\r\n this.tbrq = tbrq;\r\n }",
"public void setDate(java.util.Date param){\n \n this.localDate=param;\n \n\n }",
"public void setGmtUpdate(Date gmtUpdate) {\n this.gmtUpdate = gmtUpdate;\n }",
"void setUpdatedDate(Date updatedDate);",
"public Date getSentDate() {\n return sentDate;\n }",
"public OffsetDateTime submittedTime() {\n return this.submittedTime;\n }",
"public Date getRequestDate() { return requestDate; }",
"@Override\n\tpublic void setSubmitDate(Date submitDate) {\n\t\tmodel.setSubmitDate(submitDate);\n\t}",
"@Override\n\tpublic Date getSubmitDate() {\n\t\treturn model.getSubmitDate();\n\t}",
"public void updateBDate() {\n bDate = new Date();\n }",
"public void setDateSaved(String dateSaved)\n {\n this.dateSaved = dateSaved; \n }",
"public void setMovementDate (Timestamp MovementDate);",
"public void setDateAdded(Date dateAdded);",
"public void setDateModified(Date dateModified);",
"public Date getRequestDate();",
"public Date getGmtAccept() {\n return gmtAccept;\n }",
"public Date getUpdateDatetime();",
"public void setSubmitTime(Date submitTime) {\n this.submitTime = submitTime;\n }",
"public Date getUpdate_time() {\n return update_time;\n }",
"public Date getUpdate_time() {\n return update_time;\n }",
"public void setDateCreated(Date dateCreated);",
"public Date getDatePosted() {\n return datePosted;\n }",
"public Date getSendEmailTime() {\n return sendEmailTime;\n }",
"public Date getTimePost() {\n return timePost;\n }",
"public void setModifiedDate(Date modifiedDate);",
"public void setModifiedDate(Date modifiedDate);",
"public void setModifiedDate(Date modifiedDate);",
"private void getDate() {\t// use the date service to get the date\r\n String currentDateTimeText = theDateService.getDateAndTime();\r\n this.send(currentDateTimeText);\r\n }",
"@ApiModelProperty(value = \"The date when the object was submitted.\")\n\n\n public String getSubmittedOn() {\n return submittedOn;\n }",
"public void setDateAcct (Timestamp DateAcct);",
"public void setDateAcct (Timestamp DateAcct);",
"public void setRequesttime(Date requesttime) {\n this.requesttime = requesttime;\n }",
"public void setSubmittime(Date submittime) {\n this.submittime = submittime;\n }",
"public abstract void setDate(Timestamp uneDate);",
"void setLastUpdatedTime();",
"protected void setTimeStamp(Date date) {\n\t\tsetPurchaseDate(date);\n\t}",
"public void setCreateTime(Date createTime)\n/* */ {\n/* 184 */ this.createTime = createTime;\n/* */ }",
"public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);",
"private final void m43719a(DateTime dateTime) {\n m43714a().edit().putString(ManagerWebServices.PARAM_LAST_ACTIVITY_DATE, dateTime.a(C8802d.f30889a)).apply();\n }",
"public void setShipped(){\n this.shipped = new Date();\n }",
"public void setArrivalDate(Date arrivalDate);",
"public Date getUpdateDate() {\r\n return updateDate;\r\n }",
"public Date getUpdatetime() {\r\n return updatetime;\r\n }",
"@Override\n\tpublic void setLastUpdatedTime(Date lastUpdated) {\n\n\t}",
"void setCreatedDate(Date createdDate);",
"public void setUpdatedOn(Date updatedOn);",
"public String getUpdateDate() {\r\n return updateDate;\r\n }",
"public Date getSendTime() {\n return sendTime;\n }",
"public void setSendingTime(Date sendingTime) {\n this.sendingTime = sendingTime;\n }",
"public void setActivationDate() {\r\n\t\tif(this.removalDate != null) {\r\n\t\t\tthrow new RuntimeException(\"This item has already been activated\");\r\n\t\t}\r\n\t\tthis.activationDate = new Date(); \r\n\t\tGregorianCalendar cal = new GregorianCalendar();\r\n\t\t\r\n\t\t// set date for test\r\n\t\t//cal.set(2010, 10, 29, 02, 55);\r\n\t\t\r\n\t\t\r\n\t\tcal.add(GregorianCalendar.HOUR_OF_DAY, this.itemType.getItemDuration());\r\n\t\tthis.removalDate = cal.getTime();\r\n\t}",
"public void setExpiryTime(java.util.Calendar param){\n localExpiryTimeTracker = true;\n \n this.localExpiryTime=param;\n \n\n }",
"public void setGmtCreate(Date gmtCreate) {\r\n this.gmtCreate = gmtCreate;\r\n }",
"public void setGmtAccept(Date gmtAccept) {\n this.gmtAccept = gmtAccept;\n }",
"@Override\n\tpublic void setAddTime(Date addTime) {\n\t\t\n\t}",
"public Date getUpdateDatetime() {\r\n\t\treturn updateDatetime;\r\n\t}",
"public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }",
"public void setFreezeTimestamp(java.util.Date value);",
"public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }",
"public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }",
"public void setPubTime(Date value) {\n setAttributeInternal(PUBTIME, value);\n }",
"public Date getPublish_tm() {\n return publish_tm;\n }",
"public Date getBuy_time() {\r\n\t\treturn buy_time;\r\n\t}",
"public void SetDate(Date date);",
"public void setDeductSubmitTime(Date deductSubmitTime) {\n this.deductSubmitTime = deductSubmitTime;\n }",
"public void setDate() {\n this.date = new Date();\n }",
"public Date getSendingTime() {\n return sendingTime;\n }",
"public void setDate(DateTime \n date) {\n this.date = date;\n }",
"public Date getUpdateDatime() {\r\n return updateDatime;\r\n }",
"public Date getUpdateDatime() {\r\n return updateDatime;\r\n }",
"void setFetchedDate(long time);",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdatetime() {\n return updatetime;\n }",
"public Date getUpdatetime() {\n return updatetime;\n }",
"public Date getTbrq() {\r\n return tbrq;\r\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }"
]
| [
"0.6478818",
"0.6316048",
"0.62820333",
"0.61339664",
"0.6117496",
"0.610795",
"0.60396427",
"0.6003811",
"0.59993094",
"0.59714854",
"0.59604603",
"0.5923155",
"0.59091204",
"0.58924955",
"0.5890407",
"0.58798194",
"0.5875749",
"0.58638674",
"0.58546716",
"0.58538085",
"0.5845764",
"0.5845428",
"0.5844839",
"0.58393705",
"0.5828188",
"0.58156353",
"0.5801625",
"0.57807636",
"0.57691586",
"0.57625914",
"0.5760101",
"0.57597667",
"0.5759742",
"0.5756194",
"0.5756194",
"0.5755106",
"0.5749908",
"0.5748899",
"0.5743246",
"0.5733257",
"0.5733257",
"0.5733257",
"0.5729611",
"0.57295805",
"0.5729343",
"0.5729343",
"0.57266355",
"0.57099503",
"0.56990296",
"0.56799054",
"0.56712395",
"0.5669176",
"0.5666532",
"0.56647223",
"0.56558454",
"0.56525564",
"0.56466955",
"0.56436074",
"0.5641044",
"0.5639712",
"0.5632621",
"0.562986",
"0.56282115",
"0.56191474",
"0.5617298",
"0.56160116",
"0.56098384",
"0.5608872",
"0.5606533",
"0.56037575",
"0.5602041",
"0.56018186",
"0.55996186",
"0.55996186",
"0.55950373",
"0.559415",
"0.5593407",
"0.5587585",
"0.5586992",
"0.5576766",
"0.55725366",
"0.55710673",
"0.55671215",
"0.55671215",
"0.55573314",
"0.55559176",
"0.55559176",
"0.55559176",
"0.55559176",
"0.55559176",
"0.55559176",
"0.55559176",
"0.55559176",
"0.55559176",
"0.55559176",
"0.55383635",
"0.55383635",
"0.5534158",
"0.55314237",
"0.55314237",
"0.55314237"
]
| 0.0 | -1 |
public getter Type of feedback. Can be Positive, Neutral, Negative, or Withdrawn (see the CommentTypeCodeType code list). Positive feedbacks add to the user's total feedback score, negative feedbacks lower the score, and neutral feedbacks do not affect the score (but do affect the overall picture of the user's online reputation). | public CommentTypeCodeType getCommentType() {
return this.commentType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Feedback getFeedback();",
"int getFeedback();",
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKING getFeedback();",
"int getChatTypeValue();",
"protected String getFeedback() {\n\t\t\n\t\tString feedback = new String();\n\t\t\n\t\treturn feedback;\n\t}",
"@Override\n\t/**\n\t * @return feedback\n\t * \t\t\treturns the feedback or status of the operation\n\t */\n\tpublic OperationFeedback getOpFeedback() {\n\t\treturn feedback;\n\t}",
"@ApiModelProperty(value = \"Campaign, Flow or None (for anything else)\")\r\n public String getStatType() {\r\n return statType;\r\n }",
"public String getFeedbackResponse() {\n\t return this.feedbackResponse;\n\t}",
"public String getFeedbackId() {\n return feedbackId;\n }",
"public void setFeedbackLevel(int feedbackLevel) {\r\n\r\n\t\t// Value in the range 0..100\r\n\t\tthis.feedbackLevel = feedbackLevel;\r\n\t}",
"public String getFeedbackID() {\n\t return this.feedbackID;\n\t}",
"public void setFeedback(String feedback) {\n\t\tthis.feedback = feedback;\n\t}",
"public lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKING getFeedback() {\n return feedback_;\n }",
"im.turms.common.constant.ChatType getChatType();",
"public Integer getQuestionType() {\n return questionType;\n }",
"public lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKING getFeedback() {\n return feedback_;\n }",
"public FeedbackOFCandidate getFeedbackObject() {\r\n\r\n\t\tFeedbackOFCandidate feedback = new FeedbackOFCandidate();\r\n\t\tfeedback.setFeedbackId(FEEDBACK_ID);\r\n\t\tfeedback.setCandidateName(CANDIDATE_NAME);\r\n\t\tfeedback.setInterviewerName(INTERVIEWER_NAME);\r\n\t\tfeedback.setRound(ROUND);\r\n\t\tfeedback.setExperience(EXPERIENCE);\r\n\t\tfeedback.setJobRole(JOB_ROLE);\r\n\t\tfeedback.setDateOfInterview(DATE_OF_INTERVIEW);\r\n\t\tfeedback.setTechnicalSkill(TECHNICAL_SKILL);\r\n\t\tfeedback.setOrganizationalSkill(ORGANIZATIONAL_SKILL);\r\n\t\tfeedback.setEducationSkill(EDUCATIONAL_SKILL);\r\n\t\tfeedback.setCommunicationSkill(COMMUNICATION_SKILL);\r\n\t\tfeedback.setOverallRating(OVERALL_RATING);\r\n\t\tfeedback.setCandidate(getCandidateObj());\r\n\t\tfeedback.setInterview(getInterview());\r\n\r\n\t\tfeedback.setUserDetails(getUserDetailsInterviewer());\r\n\t\tfeedback.setInterviewResult(INTERVIEW_RESULT);\r\n\t\tfeedback.setNextRound(NEXT_ROUND);\r\n\t\tfeedback.setHrleaderAbility(HR_ABILITY_SKILL);\r\n\t\treturn feedback;\r\n\t}",
"public int getQuestionType() {\r\n\t\treturn questionType;\r\n\t}",
"public String getScoreType(int scoreType) throws ULMSSysException\r\n {\r\n return codeMaintainDAO.getScoreType(scoreType);\r\n }",
"public FeedbackDTO getFeedbackDTO() {\r\n\r\n\t\tFeedbackDTO feedbackdto = new FeedbackDTO();\r\n\t\tfeedbackdto.setFeedbackId(FEEDBACK_ID);\r\n\t\tfeedbackdto.setCandidateName(CANDIDATE_NAME);\r\n\t\tfeedbackdto.setInterviewerName(INTERVIEWER_NAME);\r\n\t\tfeedbackdto.setRound(ROUND);\r\n\t\tfeedbackdto.setExperience(EXPERIENCE);\r\n\t\tfeedbackdto.setJobRole(JOB_ROLE);\r\n\t\tfeedbackdto.setDateOfInterview(DATE_OF_INTERVIEW);\r\n\t\tfeedbackdto.setTechnicalSkill(TECHNICAL_SKILL);\r\n\t\tfeedbackdto.setOrganizationalSkill(ORGANIZATIONAL_SKILL);\r\n\t\tfeedbackdto.setEducationSkill(EDUCATIONAL_SKILL);\r\n\t\tfeedbackdto.setCommunicationSkill(COMMUNICATION_SKILL);\r\n\t\tfeedbackdto.setOverallRating(OVERALL_RATING);\r\n\t\tfeedbackdto.setCandidate(CANDIDATE_ID);\r\n\t\tfeedbackdto.setInterview(INTERVIEW_ID);\r\n\t\tfeedbackdto.setInterviewer(INTERVIEWER_ID);\r\n\t\tfeedbackdto.setInterviewResult(INTERVIEW_RESULT);\r\n\t\tfeedbackdto.setNextRound(NEXT_ROUND);\r\n\t\tfeedbackdto.setHrLeaderAbility(HR_ABILITY_SKILL);\r\n\t\treturn feedbackdto;\r\n\t}",
"@ApiModelProperty(value = \"Credit Score Notice Type - Values can be GENERIC or MORTGAGE\")\n \n public String getNoticeType() {\n return noticeType;\n }",
"public String getQuestionType() {\n return questionType;\n }",
"@Override\n public String getDescription() {\n return \"Digital goods feedback\";\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getReviewType();",
"public char getDiscountType() {\r\n return discountType;\r\n }",
"@Override\r\n\tpublic List<Feedback> getFeedbacklist() {\n\t\tList<Feedback> flist= frepository.findAll();\r\n\t\treturn flist;\r\n\t}",
"public boolean hasFeedback() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public int getDescriptionType(){\n return localDescriptionType;\n }",
"public void submitFeedback()\r\n {\n if(mechanicList.getValue() == null && ratingButtons.getValue() == null){\r\n MainLayout.displayInformationPrompt(\"Missing Information! You Must Include Both Mechanic Name AND Desired Rating.\");\r\n } else if(mechanicList.getValue() == null){\r\n MainLayout.displayInformationPrompt(\"Missing Information! You Must Include Mechanic Name.\");\r\n } else if(ratingButtons.getValue() == null){\r\n MainLayout.displayInformationPrompt(\"Missing Information! You Must Include Desired Rating.\");\r\n } else {\r\n feedbackController.submitFeedback(mechanicList.getValue(), feedbackMsgField.getValue(), Integer.parseInt(ratingButtons.getValue()));\r\n feedbackController.updateMechanicStars(mechanicList.getValue());\r\n MainLayout.displayInformationPrompt(\"Review Submitted! Thanks For Your feedback!\");\r\n }\r\n }",
"public Short getUserType() {\r\n return userType;\r\n }",
"@ApiModelProperty(required = true, value = \"Type of contact information\")\n @NotNull\n\n\n public ContactTypeEnum getContactType() {\n return contactType;\n }",
"@java.lang.Override\n public speech.multilang.Params.DecisionPointParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.DecisionPointParams.Type result = speech.multilang.Params.DecisionPointParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.DecisionPointParams.Type.UNKNOWN : result;\n }",
"int getCouponType();",
"public DealerFeedbackVOImpl getDealerFeedbackVO1() {\n return (DealerFeedbackVOImpl) findViewObject(\"DealerFeedbackVO1\");\n }",
"public Constants.UsageType getUsageType() {\n return this.usageType;\n }",
"public double getBonus(){\r\n return bonus;\r\n }",
"public String getBloodType() {\r\n return bloodType;\r\n }",
"String getReviewrate();",
"public boolean hasFeedback() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public int getBonus() {\n\t\treturn bonus;\n\t}",
"public void setFeedbackID(String feedbackID) {\n\t this.feedbackID = feedbackID;\n\t}",
"public String getContactRating() {\n return contactRating;\n }",
"public int getBonus() {\n throw new UnsupportedOperationException(\"TODO: Implement\");\n\n }",
"@java.lang.Override public speech.multilang.Params.DecisionPointParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.DecisionPointParams.Type result = speech.multilang.Params.DecisionPointParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.DecisionPointParams.Type.UNKNOWN : result;\n }",
"public int getReqType()\r\n {\r\n return safeConvertInt(getAttribute(\"type\"));\r\n }",
"public com.czht.face.recognition.Czhtdev.MessageType getType() {\n com.czht.face.recognition.Czhtdev.MessageType result = com.czht.face.recognition.Czhtdev.MessageType.valueOf(type_);\n return result == null ? com.czht.face.recognition.Czhtdev.MessageType.MsgDefaultReply : result;\n }",
"@Override\r\n\tpublic Feedback addFeedback(int parentId, int tutorId, String rating) {\n\t\tFeedback feedback= new Feedback();\r\n\t\t//feedback.setParentId(parentId);\r\n\t\t//feedback.setTutorId(tutorId);\r\n\t\t//feedback.setRating(rating);\r\n\t\tfrepository.save(feedback);\r\n\t\treturn feedback;\r\n\t}",
"public int getBonus(){\n return bonus;\n }",
"public FeatType getFeatType()\n {\n return m_featType;\n }",
"public long getBonusAmount() {\r\n return bonusAmount;\r\n }",
"public com.czht.face.recognition.Czhtdev.MessageType getType() {\n com.czht.face.recognition.Czhtdev.MessageType result = com.czht.face.recognition.Czhtdev.MessageType.valueOf(type_);\n return result == null ? com.czht.face.recognition.Czhtdev.MessageType.MsgDefaultReply : result;\n }",
"@Override\n\tpublic TLEType getType() {\n\t\ttry {\n\t\t\tUser current_user = AccountManager.current_account.getUser();\n\t\t\tif (this.user.id == current_user.id) {\n\t\t\t\treturn TLEType.OWN;\n\t\t\t}\n\t\t\tif (this.mentionsUser(current_user)) {\n\t\t\t\treturn TLEType.MENTION;\n\t\t\t}\n\t\t\tif (this.id > AccountManager.current_account.getMaxReadTweetID()) {\n\t\t\t\treturn TLEType.UNREAD;\n\t\t\t}\n\t\t} catch (NullPointerException e) {\n\n\t\t}\n\t\treturn TLEType.READ;\n\t}",
"public Gender_Tp getGender() { return gender; }",
"public String getBloodType()\n\t{\n\t\treturn bloodType;\n\t}",
"boolean hasFeedback();",
"public java.lang.Integer getRatetype() {\n\treturn ratetype;\n}",
"protected IFigure getFeedbackLayer() {\n\t\treturn getLayer(LayerConstants.SCALED_FEEDBACK_LAYER);\n\t}",
"EDataType getReactance();",
"public String getData_type_desc() {\n return data_type_desc;\n }",
"int getIssueType();",
"public int getMessageType()\r\n {\r\n return msgType;\r\n }",
"SpeechAwardPoints(int rating){\n\n currentPoints = rating;\n feedback = \"Your current rating is: \" + currentPoints + \"%\";\n }",
"public int seeRating(String TEmail) {\n\t\tRateAndReview r = new RateAndReview();\n\t\tint rate = r.getRating(TEmail);\n\t\treturn rate;\n\t}",
"public String getRewardPointsTransactionType() {\n return rewardPointsTransactionType;\n }",
"public double getDiscountRate(){\n\t\t//only valid choices are 0 (std), 1(senior), 2(pref cust)\n\t\tDISCOUNT_RATE = 0.05;\n\t\tswitch (discount_type) {\n\t\t case 0:\n\t\t\t break;\n\t\t case 1:\n\t\t\t DISCOUNT_RATE += .10;\n\t\t break;\n\t\t case 2:\n\t\t ;\n\t\t DISCOUNT_RATE += .15;\n\t\t break;\n\t\t default:\n\t\t System.out.println(\"Invalid Discout Type. Only standard discount will be applied\");\n\t\t}\n\t\treturn DISCOUNT_RATE; \n\t}",
"public pl.stormit.protobuf.UserProtos.User.UserType getUserType() {\n pl.stormit.protobuf.UserProtos.User.UserType result = pl.stormit.protobuf.UserProtos.User.UserType.valueOf(userType_);\n return result == null ? pl.stormit.protobuf.UserProtos.User.UserType.NORMAL : result;\n }",
"public pl.stormit.protobuf.UserProtos.User.UserType getUserType() {\n pl.stormit.protobuf.UserProtos.User.UserType result = pl.stormit.protobuf.UserProtos.User.UserType.valueOf(userType_);\n return result == null ? pl.stormit.protobuf.UserProtos.User.UserType.NORMAL : result;\n }",
"public static Result feedbackPage() {\n\t\treturn ok(views.html.feedbackPage.render());\n\t}",
"int getCriterionTypeValue();",
"com.nhcsys.webservices.getmessages.getmessagestypes.v1.PriorityType.Enum getPriority();",
"public Short getUserRating() {\r\n return userRating;\r\n }",
"@Override\n\tpublic int getType() {\n\t\treturn _dmGtStatus.getType();\n\t}",
"NoteTypes getType() {\n return this.type;\n }",
"private Map<String, Object> getRatingInfo(){\n Map<String, Object> ratingInfo = new HashMap<>();\n String text = feedbackText.getText().toString().trim();\n\n ratingInfo.put(Keys.RatingInfo.RATE, ratingBar.getRating());\n ratingInfo.put(Keys.RatingInfo.MESSAGE, text);\n\n return ratingInfo;\n }",
"public abstract int getBonus();",
"public int getUserType() {\n\t\treturn userType;\n\t}",
"public ST getComment() { \r\n\t\tST retVal = this.getTypedField(48, 0);\r\n\t\treturn retVal;\r\n }",
"public String getUsageType() {\n return this.usageType;\n }",
"public int getCouponType() {\n return couponType_;\n }",
"public String feedback(boolean flag)\n\t{\n\t\tif(flag == false)\n\t\t\treturn \"Submit Feedback\\n\";\n\t\telse\n\t\t\treturn \"Feedback: \";\n\t}",
"public static char typeScore() \n {\n\n System.out.println(\"\\t Do you have (S)AT scores or (A)CT scores?\");\n String response = console.next();\n \n if(response.equalsIgnoreCase(\"S\"))\n {\n return Character.toUpperCase(response.charAt(0)); \n }\n else if(response.equalsIgnoreCase(\"A\"))\n {\n return Character.toUpperCase(response.charAt(0));\n }\n else\n {\n throw new IllegalArgumentException(\"Invalid score type. Must be S, s, A, or a.\");\n }\n }",
"public String getUserType() {\n return userType;\n }",
"public String getUserType() {\n return userType;\n }",
"public String getUserType() {\n return userType;\n }",
"public String getUserType() {\n return userType;\n }",
"public String getRating() {\r\n\t\tswitch (rating) {\r\n\t\tcase \"high\":\r\n\t\t\treturn \"high\";\r\n\t\tcase \"medium\":\r\n\t\t\treturn \"medium\";\r\n\t\tcase \"low\":\r\n\t\t\treturn \"low\";\r\n\t\tdefault: return \"none\";\r\n\t\t}\r\n\t}",
"public String getSubmissionType() {\n\t\tif (submissionType != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submission_type\" + TAB + submissionType.toString();\n\t\treturn null;\n\t}",
"@ApiModelProperty(value = \"This is a quick reference enumeration for all of the currently defined Genders. We use the enumeration for quicker lookups in related data, like DestinyClassDefinition.genderedClassNames.\")\n public Object getGenderType() {\n return genderType;\n }",
"public boolean addFeedback(String eventCode, Feedback feedback) {\r\n // Gets the events collection and creates a query string for the event id\r\n MongoCollection<Document> events = mongoDB.getCollection(\"Events\");\r\n\r\n UpdateResult ur = events.updateOne(new Document(\"eventCode\", eventCode),\r\n Updates.addToSet(\"feedbackList\", feedback));\r\n WebSocketController.setEventAsModified(eventCode);\r\n if (ur.getMatchedCount() > 0)\r\n return true;\r\n\r\n return false;\r\n }",
"public int getConversionPenalty() {\n/* 277 */ return getConversionPenalty(null).getValue();\n/* */ }",
"public String getPreferredType() {\n return m_preferredType;\n }",
"MessageType getType();",
"com.rpg.framework.database.Protocol.BonusStats getBonusStats();",
"public int getType() // pro rozeznani kdy vyuzit ai\n {\n return this.type;\n }",
"public com.rpg.framework.database.Protocol.BonusStats getBonusStats() {\n if (bonusStatsBuilder_ == null) {\n return bonusStats_;\n } else {\n return bonusStatsBuilder_.getMessage();\n }\n }",
"@Override\r\n\tpublic List<Feedback> getFeedback(int tutorId) {\n\t\tList<Feedback> flist= frepository.getFeedback(tutorId);\r\n\t\treturn flist;\r\n\t}",
"public Integer getBalanceType() {\n return balanceType;\n }",
"public int getResponseTypeValue() {\n return responseType_;\n }"
]
| [
"0.64326507",
"0.6342865",
"0.6281592",
"0.6281592",
"0.59672976",
"0.58031636",
"0.5735418",
"0.5729777",
"0.5721139",
"0.5630924",
"0.557031",
"0.5520844",
"0.5469957",
"0.54192865",
"0.5394113",
"0.53922725",
"0.5361564",
"0.53394926",
"0.531932",
"0.53164303",
"0.5280383",
"0.5252247",
"0.52504325",
"0.5222162",
"0.52090126",
"0.51595527",
"0.5108673",
"0.5067286",
"0.4983007",
"0.49706292",
"0.49672776",
"0.49662405",
"0.49537903",
"0.49430436",
"0.4941307",
"0.49408117",
"0.49370182",
"0.4924431",
"0.49232358",
"0.49190634",
"0.49189964",
"0.49164876",
"0.49131882",
"0.49113363",
"0.49111584",
"0.49043527",
"0.4895312",
"0.4883485",
"0.48819837",
"0.4878242",
"0.48723844",
"0.4866408",
"0.48651704",
"0.4863362",
"0.48600402",
"0.48549867",
"0.4852465",
"0.48452052",
"0.48447007",
"0.48376092",
"0.4833915",
"0.48330355",
"0.48315996",
"0.483055",
"0.48186475",
"0.48045734",
"0.47943634",
"0.47887796",
"0.47869384",
"0.4773948",
"0.4764159",
"0.47616166",
"0.47598955",
"0.47527343",
"0.47484243",
"0.47466946",
"0.47460234",
"0.4745912",
"0.47424358",
"0.47390005",
"0.4732207",
"0.47301072",
"0.47284815",
"0.4726646",
"0.4726646",
"0.4726646",
"0.4726646",
"0.47260898",
"0.47258565",
"0.4725585",
"0.47206268",
"0.47055906",
"0.46938735",
"0.46873775",
"0.4683634",
"0.46800035",
"0.467797",
"0.4676496",
"0.46749166",
"0.46715793"
]
| 0.5428922 | 13 |
public setter Type of feedback. Can be Positive, Neutral, Negative, or Withdrawn (see the CommentTypeCodeType code list). Positive feedbacks add to the user's total feedback score, negative feedbacks lower the score, and neutral feedbacks do not affect the score (but do affect the overall picture of the user's online reputation). | public void setCommentType(CommentTypeCodeType commentType) {
this.commentType = commentType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFeedbackLevel(int feedbackLevel) {\r\n\r\n\t\t// Value in the range 0..100\r\n\t\tthis.feedbackLevel = feedbackLevel;\r\n\t}",
"public void setFeedback(String feedback) {\n\t\tthis.feedback = feedback;\n\t}",
"void setQuestionType(QuestionType type);",
"@ApiModelProperty(value = \"Campaign, Flow or None (for anything else)\")\r\n public String getStatType() {\r\n return statType;\r\n }",
"Feedback getFeedback();",
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"public void setReviewType(java.lang.String value);",
"public Saving bonusType(String bonusType) {\n this.bonusType = bonusType;\n return this;\n }",
"public void setQuestionType(int questionType) {\r\n\t\tthis.questionType = questionType;\r\n\t}",
"int getFeedback();",
"int getChatTypeValue();",
"public void setNewProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewProperty_descriptionType=param;\n \n\n }",
"public void setQuestionType(Integer questionType) {\n this.questionType = questionType;\n }",
"public void setNewValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewValues_descriptionType=param;\n \n\n }",
"public void setDescriptionType(int param){\n \n // setting primitive attribute tracker to true\n localDescriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localDescriptionType=param;\n \n\n }",
"SpeechAwardPoints(int rating){\n\n currentPoints = rating;\n feedback = \"Your current rating is: \" + currentPoints + \"%\";\n }",
"public void submitFeedback()\r\n {\n if(mechanicList.getValue() == null && ratingButtons.getValue() == null){\r\n MainLayout.displayInformationPrompt(\"Missing Information! You Must Include Both Mechanic Name AND Desired Rating.\");\r\n } else if(mechanicList.getValue() == null){\r\n MainLayout.displayInformationPrompt(\"Missing Information! You Must Include Mechanic Name.\");\r\n } else if(ratingButtons.getValue() == null){\r\n MainLayout.displayInformationPrompt(\"Missing Information! You Must Include Desired Rating.\");\r\n } else {\r\n feedbackController.submitFeedback(mechanicList.getValue(), feedbackMsgField.getValue(), Integer.parseInt(ratingButtons.getValue()));\r\n feedbackController.updateMechanicStars(mechanicList.getValue());\r\n MainLayout.displayInformationPrompt(\"Review Submitted! Thanks For Your feedback!\");\r\n }\r\n }",
"public void setFeedbackID(String feedbackID) {\n\t this.feedbackID = feedbackID;\n\t}",
"public void setType(int pType) {\n mType = pType;\n }",
"public void setMailType(int v) \n {\n \n if (this.mailType != v)\n {\n this.mailType = v;\n setModified(true);\n }\n \n \n }",
"@ApiModelProperty(value = \"Credit Score Notice Type - Values can be GENERIC or MORTGAGE\")\n \n public String getNoticeType() {\n return noticeType;\n }",
"public void setQuestionType(String questionType) {\n this.questionType = questionType;\n }",
"public int getQuestionType() {\r\n\t\treturn questionType;\r\n\t}",
"public void setType(int type) {\n type_ = type;\n }",
"public void setMsgType(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n \r\n if (param==java.lang.Integer.MIN_VALUE) {\r\n localMsgTypeTracker = false;\r\n \r\n } else {\r\n localMsgTypeTracker = true;\r\n }\r\n \r\n this.localMsgType=param;\r\n \r\n\r\n }",
"lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKING getFeedback();",
"public Integer getQuestionType() {\n return questionType;\n }",
"public String getFeedbackId() {\n return feedbackId;\n }",
"public CommentTypeCodeType getCommentType() {\n\t return this.commentType;\n\t}",
"@Override\r\n\tpublic Feedback addFeedback(int parentId, int tutorId, String rating) {\n\t\tFeedback feedback= new Feedback();\r\n\t\t//feedback.setParentId(parentId);\r\n\t\t//feedback.setTutorId(tutorId);\r\n\t\t//feedback.setRating(rating);\r\n\t\tfrepository.save(feedback);\r\n\t\treturn feedback;\r\n\t}",
"public void setFeedbackResponse(String feedbackResponse) {\n\t this.feedbackResponse = feedbackResponse;\n\t}",
"public String getQuestionType() {\n return questionType;\n }",
"public void setType(int value) {\n this.type = value;\n }",
"public void setType(int t){\n this.type = t;\n }",
"public void setType(int nType) { m_nType = nType; }",
"public void setType(int tmp) {\n this.type = tmp;\n }",
"public void setUsageType(String usageType);",
"public void setComment(String comment, int rating);",
"public String getFeedbackResponse() {\n\t return this.feedbackResponse;\n\t}",
"public void setGender(Gender_Tp gender) { this.gender = gender; }",
"void setDataType(int type );",
"public String getFeedbackID() {\n\t return this.feedbackID;\n\t}",
"@Override\n\t/**\n\t * @return feedback\n\t * \t\t\treturns the feedback or status of the operation\n\t */\n\tpublic OperationFeedback getOpFeedback() {\n\t\treturn feedback;\n\t}",
"public void setOldProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldProperty_descriptionType=param;\n \n\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"@Override\n\tpublic void setType(int type) {\n\t\t_dmGtStatus.setType(type);\n\t}",
"public void setMessageType(MessageType messageType) {\n this.messageType = messageType;\n }",
"public void setMessageType(Integer messageType) {\n this.messageType = messageType;\n }",
"@Override\n public String getDescription() {\n return \"Digital goods feedback\";\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setUserType(String type) {\r\n switch(type) {\r\n case (\"admin\"): \r\n this.userType = 0;\r\n break;\r\n case (\"seller\"):\r\n this.userType = 1;\r\n break;\r\n case (\"buyer\"):\r\n this.userType = 2;\r\n break;\r\n \r\n }\r\n }",
"void setType(final UserType type);",
"@ApiModelProperty(required = true, value = \"Type of contact information\")\n @NotNull\n\n\n public ContactTypeEnum getContactType() {\n return contactType;\n }",
"public boolean addFeedback(String eventCode, Feedback feedback) {\r\n // Gets the events collection and creates a query string for the event id\r\n MongoCollection<Document> events = mongoDB.getCollection(\"Events\");\r\n\r\n UpdateResult ur = events.updateOne(new Document(\"eventCode\", eventCode),\r\n Updates.addToSet(\"feedbackList\", feedback));\r\n WebSocketController.setEventAsModified(eventCode);\r\n if (ur.getMatchedCount() > 0)\r\n return true;\r\n\r\n return false;\r\n }",
"public void sendFeedback(View view) {\n RatingBar ratingBar = (RatingBar) findViewById(R.id.ratingBar);\n Float feedback = ratingBar.getRating();\n\n EditText remarksText = (EditText) findViewById(R.id.remarks);\n String remarks = remarksText.getText().toString();\n\n // Build the params to be sent on the server.\n // Fill the value of the corresponding Hash map keys with\n // inputs from your own app.\n\n Map<String, String> params = new HashMap<>();\n params.put(\"apk_token\", BuildConfig.FEEDBACK_TOKEN);\n params.put(\"user_id\", user_id);\n params.put(\"doctor_id\", doctor_id);\n params.put(\"data[rating]\", feedback.toString());\n params.put(\"data[comments]\", remarks);\n\n if (user_id.equals(\"\") || doctor_id.equals(\"\")) {\n Toast toast = Toast.makeText(getApplicationContext(), \"No User/Doctor found.\", Toast.LENGTH_SHORT);\n toast.show();\n } else {\n // Previous prepared params will then used by the PostFeedback\n // class to send inputs to the server.\n //\n // For advance features, you can save the feedback inputs in a file/DB in a meantime\n // then use this when an internet connection is already available.\n new PostFeedback(getApplicationContext(), params);\n }\n }",
"public FeedbackCustom(Long id, String feedback, String causeName, String firstName, String lastName) {\n\t\tsuper();\n\t\tthis.id = id;\n\t\tthis.feedback = feedback;\n\t\tthis.causeName = causeName;\n\t\tthis.firstName = firstName;\n\t\tthis.lastName = lastName;\n\t}",
"public void setNoteType(int value) {\n this.noteType = value;\n }",
"public void setPreferredType(String preferredType){\n m_preferredType = preferredType;\n }",
"public Feedback save(Feedback feedback) {\n\t\treturn feedbackRepository.save(feedback);\n\t}",
"public void setType(BatchType value) {\n this.type = value;\n }",
"public void setType(int t) {\r\n\t\ttype = t;\r\n\t}",
"protected String getFeedback() {\n\t\t\n\t\tString feedback = new String();\n\t\t\n\t\treturn feedback;\n\t}",
"public void setOldValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldValues_descriptionType=param;\n \n\n }",
"public void setBonus(double bonus){\r\n this.bonus = bonus;\r\n }",
"public void setType(int type)\n {\n editor.putInt(KEY_TYPE, type);\n // commit changes\n editor.commit();\n Log.d(TAG,\"user type modified in pref\");\n }",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type);",
"void setType(Type type)\n {\n this.type = type;\n }",
"public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}",
"public lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKING getFeedback() {\n return feedback_;\n }",
"public void setType(int type) {\n this.type = type;\n }",
"public void setComment(Address address, int commentType, String comment);",
"public void setMessageType(String messageType)\r\n\t{\r\n\t\tthis.messageType = messageType;\r\n\t}",
"public void setAttendType(Byte attendType) {\n this.attendType = attendType;\n }",
"public void setFeedbackId(String feedbackId) {\n this.feedbackId = feedbackId == null ? null : feedbackId.trim();\n }",
"public void setData_type_desc(String data_type_desc) {\n this.data_type_desc = data_type_desc;\n }",
"private void setQuestionDataType(QuestionDef questionDef){\n\t\tint dataType = QuestionDef.QTN_TYPE_TEXT;\n\n\t\tswitch(cbDataType.getSelectedIndex()){\n\t\tcase DT_INDEX_NUMBER:\n\t\t\ttxtDefaultValue.setEnabled(true);\n\t\t\tdataType = QuestionDef.QTN_TYPE_NUMERIC;\n\t\t\tbreak;\n\t\tcase DT_INDEX_DECIMAL:\n\t\t\ttxtDefaultValue.setEnabled(true);\n\t\t\tdataType = QuestionDef.QTN_TYPE_DECIMAL;\n\t\t\tbreak;\n\t\tcase DT_INDEX_DATE:\n\t\t\ttxtDefaultValue.setEnabled(true);\n\t\t\tdataType = QuestionDef.QTN_TYPE_DATE;\n\t\t\tbreak;\n\t\tcase DT_INDEX_TIME:\n\t\t\ttxtDefaultValue.setEnabled(true);\n\t\t\tdataType = QuestionDef.QTN_TYPE_TIME;\n\t\t\tbreak;\n\t\tcase DT_INDEX_DATE_TIME:\n\t\t\ttxtDefaultValue.setEnabled(true);\n\t\t\tdataType = QuestionDef.QTN_TYPE_DATE_TIME;\n\t\t\tbreak;\n\t\tcase DT_INDEX_BOOLEAN:\n\t\t\ttxtDefaultValue.setEnabled(true);\n\t\t\tdataType = QuestionDef.QTN_TYPE_BOOLEAN;\n\t\t\tbreak;\n\t\tcase DT_INDEX_SINGLE_SELECT:\n\t\t\ttxtDefaultValue.setEnabled(false);\n\t\t\tdataType = QuestionDef.QTN_TYPE_LIST_EXCLUSIVE;\n\t\t\tbreak;\n\t\tcase DT_INDEX_MULTIPLE_SELECT:\n\t\t\ttxtDefaultValue.setEnabled(false);\n\t\t\tdataType = QuestionDef.QTN_TYPE_LIST_MULTIPLE;\n\t\t\tbreak;\n\t\tcase DT_INDEX_REPEAT:\n\t\t\ttxtDefaultValue.setEnabled(false);\n\t\t\tdataType = QuestionDef.QTN_TYPE_REPEAT;\n\t\t\tbreak;\n\t\tcase DT_INDEX_IMAGE:\n\t\t\ttxtDefaultValue.setEnabled(false);\n\t\t\tdataType = QuestionDef.QTN_TYPE_IMAGE;\n\t\t\tbreak;\n\t\tcase DT_INDEX_VIDEO:\n\t\t\ttxtDefaultValue.setEnabled(false);\n\t\t\tdataType = QuestionDef.QTN_TYPE_VIDEO;\n\t\t\tbreak;\n\t\tcase DT_INDEX_AUDIO:\n\t\t\ttxtDefaultValue.setEnabled(false);\n\t\t\tdataType = QuestionDef.QTN_TYPE_AUDIO;\n\t\t\tbreak;\n\t\tcase DT_INDEX_SINGLE_SELECT_DYNAMIC:\n\t\t\ttxtDefaultValue.setEnabled(false);\n\t\t\tdataType = QuestionDef.QTN_TYPE_LIST_EXCLUSIVE_DYNAMIC;\n\t\t\tbreak;\n\t\tcase DT_INDEX_GPS:\n\t\t\ttxtDefaultValue.setEnabled(true);\n\t\t\tdataType = QuestionDef.QTN_TYPE_GPS;\n\t\t\tbreak;\n\t\tcase DT_INDEX_BARCODE:\n\t\t\ttxtDefaultValue.setEnabled(false);\n\t\t\tdataType = QuestionDef.QTN_TYPE_BARCODE;\n\t\t\tbreak;\n\t\t}\n\n\t\tif(dataType == QuestionDef.QTN_TYPE_REPEAT && \n\t\t\t\tquestionDef.getDataType() != QuestionDef.QTN_TYPE_REPEAT)\n\t\t\tquestionDef.setRepeatQtnsDef(new RepeatQtnsDef(questionDef));\n\n\t\tquestionDef.setDataType(dataType);\n\n\t\tif(questionDef.getDataType() != QuestionDef.QTN_TYPE_LIST_EXCLUSIVE_DYNAMIC)\n\t\t\tdynamicListsView.setEnabled(false);\n\t\telse if(!dynamicListsView.isEnabled())\n\t\t\tdynamicListsView.setQuestionDef(questionDef);\n\t}",
"public void setType(int atype)\n {\n type = atype;\n }",
"public Builder setMsgType(int value) {\n\n msgType_ = value;\n onChanged();\n return this;\n }",
"public void setType(int type)\n\t{\n\t\tthis.type = type;\n\t}",
"public void setMsgType(int msgType) {\n\t\tthis.msgType = msgType;\n\t}",
"public void setCreditCardType (String CreditCardType);",
"@Override\r\n\t\t\t\t\tpublic void onRatingChanged(RatingBar ratingBar,\r\n\t\t\t\t\t\t\tfloat rating, boolean fromUser) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(rating==1.0f){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\ttxtRatingtType.setText(\"POOR\");\r\n\t\t\t\t\t\t}else if(rating==2.0f){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\ttxtRatingtType.setText(\"FAIR\");\r\n\t\t\t\t\t\t}else if(rating==3.0f){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\ttxtRatingtType.setText(\"OK\");\r\n\t\t\t\t\t\t}else if(rating==4.0f){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\ttxtRatingtType.setText(\"GOOD\");\r\n\t\t\t\t\t\t}else if(rating==5.0f){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\ttxtRatingtType.setText(\"GREAT\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tedtComments.setEnabled(true);\r\n\t\t\t\t\t\tbtnSubmit.setEnabled(true);\r\n\r\n\t\t\t\t\t}",
"public void setUserType(Byte userType) {\r\n this.userType = userType;\r\n }",
"public Builder setType(speech.multilang.Params.DecisionPointParams.Type value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value.getNumber();\n onChanged();\n return this;\n }",
"@java.lang.Override\n public speech.multilang.Params.DecisionPointParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.DecisionPointParams.Type result = speech.multilang.Params.DecisionPointParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.DecisionPointParams.Type.UNKNOWN : result;\n }",
"protected void setType(String requiredType){\r\n type = requiredType;\r\n }",
"public void setType(String value) {\n this.type = value;\n }",
"public lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKING getFeedback() {\n return feedback_;\n }",
"public interface HasCollectUserPreference\n {\n /**\n * not feedback\n */\n String NOT_FEEDBACK = \"0\";\n\n /**\n * Has feedback\n */\n String FEEDBACK = \"1\";\n }",
"public void updateFeedback(UserProfile up, String itemCode, String rating) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n\n String query = \"UPDATE userItems \"\n + \"SET rating = ? \"\n + \"WHERE itemCode = ?\";\n try {\n ps = connection.prepareStatement(query);\n ps.setString(1, rating);\n ps.setString(2, itemCode);\n ps.executeUpdate();\n } catch (SQLException se) {\n System.out.println(\"ERROR: Could not execute SQL statement in: \" + \"Item.changeRating()\");\n System.out.println(\"ERROR: Could not execute SQL statement: \" + se);\n } finally {\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n up.updateRating(itemCode, rating);\n\n }",
"public String getScoreType(int scoreType) throws ULMSSysException\r\n {\r\n return codeMaintainDAO.getScoreType(scoreType);\r\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n m_Type = type;\n }",
"public String getAssignType() {\n return assignType;\n }",
"public Notifications(Integer postID, Integer requesterID, Integer providerID,\n Boolean accepted, String type){\n //PostID, requesterID, providerID,locationOfRequester need to create variable?\n status = accepted;\n this.type = type;\n this.requestID = Integer.toString(requesterID);\n this.setProvider(providerID);\n this.type = type;\n this.postID = postID;\n\n }"
]
| [
"0.6094166",
"0.5935233",
"0.5623747",
"0.5608003",
"0.5553675",
"0.5515734",
"0.5515734",
"0.5461916",
"0.5452185",
"0.5425413",
"0.5378648",
"0.53388655",
"0.52939355",
"0.52474415",
"0.52463984",
"0.52428854",
"0.51918",
"0.5183242",
"0.5167292",
"0.5134139",
"0.5128961",
"0.5114396",
"0.51071864",
"0.50841653",
"0.5062706",
"0.50437117",
"0.5042551",
"0.5041703",
"0.5038339",
"0.50069296",
"0.4971121",
"0.4968816",
"0.49607962",
"0.49468344",
"0.49248427",
"0.49036488",
"0.4903398",
"0.49026185",
"0.48626754",
"0.48477608",
"0.4847667",
"0.48448464",
"0.4841965",
"0.4836622",
"0.48337248",
"0.48303726",
"0.48303726",
"0.48298797",
"0.4807264",
"0.48004967",
"0.479713",
"0.47956288",
"0.47956288",
"0.47755972",
"0.4773778",
"0.476332",
"0.47605306",
"0.47467607",
"0.47450134",
"0.47446254",
"0.47430772",
"0.47382474",
"0.4729324",
"0.47291803",
"0.47268537",
"0.47204068",
"0.4720235",
"0.47142473",
"0.47031337",
"0.47031337",
"0.47031337",
"0.47020096",
"0.46983662",
"0.46893758",
"0.46882695",
"0.46831042",
"0.46754655",
"0.4672688",
"0.4671628",
"0.46691027",
"0.46522015",
"0.46458408",
"0.4642817",
"0.46408483",
"0.4640542",
"0.46381152",
"0.46370852",
"0.46364346",
"0.46338496",
"0.4630547",
"0.4627012",
"0.4626174",
"0.46230355",
"0.46228087",
"0.46224487",
"0.46199524",
"0.46145454",
"0.46131074",
"0.46101135",
"0.4609198"
]
| 0.4830058 | 47 |
public getter Textual comment that the user targeted by feedback may leave in response or rebuttal to the feedback. | public String getFeedbackResponse() {
return this.feedbackResponse;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"String getComment();",
"String getComment();",
"@Override\n\tpublic String getComment() {\n\t\treturn model.getComment();\n\t}",
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"public String getCommentText() {\n\t return this.commentText;\n\t}",
"public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}",
"Feedback getFeedback();",
"public String getCommentText() {\r\n\r\n\t\treturn commentText;\r\n\t}",
"public String getComment()\n {\n return comment;\n }",
"public java.lang.String getLatestCommentText() {\n return latestCommentText;\n }",
"public String getComment(){\n return this.comment;\n }",
"public String getAcCommentsMessage() {\n return acCommentsMessage;\n }",
"public String getComment(){\n return comment;\n }",
"public java.lang.String getComment() {\r\n return comment;\r\n }",
"public String getComment() {\n return this.comment;\n }",
"public final String getComment() {\n return comment;\n }",
"protected String getFeedback() {\n\t\t\n\t\tString feedback = new String();\n\t\t\n\t\treturn feedback;\n\t}",
"public String getComment() {\n return description;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public java.lang.String getComment() {\n return comment;\n }",
"public java.lang.String getComment() {\n return comment;\n }",
"public java.lang.String getComment() {\n return comment;\n }",
"public String textReason() {\r\n return getParm(2).trim();\r\n }",
"public String getComment() {\n return comment ;\n }",
"public String getComment() {\r\n\t\treturn comment;\r\n\t}",
"public Optional<String> getComment() {\n\t\treturn Optional.ofNullable(_comment);\n\t}",
"public ST getComment() { \r\n\t\tST retVal = this.getTypedField(48, 0);\r\n\t\treturn retVal;\r\n }",
"public int getDisableComment() {\n return instance.getDisableComment();\n }",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public String getComment() {\n\t\treturn comment;\n\t}",
"java.lang.String getComments();",
"public String get_comment() throws Exception {\n\t\treturn this.comment;\n\t}",
"public int getDisableComment() {\n return disableComment_;\n }",
"public String getComment() throws SQLException {\n\t\tloadFromDB();\n\t\treturn rev_comment;\n\t}",
"public String getActionComments() {\r\n return txtComments.getText().trim();\r\n }",
"public String getComment() {\n return variant == null ? null : variant.getComment(this);\n }",
"public String getComment() {\n Object ref = comment_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n comment_ = s;\n }\n return s;\n }\n }",
"public String getBookComment() {\n return bookComment;\n }",
"public String getBookComment() {\n return bookComment;\n }",
"public java.lang.String getReasonText() {\n return reasonText;\n }",
"String getCommentaire();",
"public String getComments() {\r\n return this.comments;\r\n }",
"public String getComment() {\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getComment() \" );\n Via via=(Via)sipHeader;\n return via.getComment();\n }",
"@Override\n\tpublic String getNotes() {\n\t\treturn text;\n\t}",
"public String getSampleComment();",
"public String getRemarks() { return remarks; }",
"String getMovementComments();",
"public String getDiscussion(){\n return discussion;\n }",
"public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }",
"public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }",
"public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }",
"public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }",
"public String getRemark()\n/* */ {\n/* 255 */ return this.remark;\n/* */ }",
"public String getComment() {\n Object ref = comment_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comment_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"org.hl7.fhir.String getComments();",
"int getFeedback();",
"public String getRemarks() {\r\n return (String) getAttributeInternal(REMARKS);\r\n }",
"public java.lang.String getRevisedRemark () {\n\t\treturn revisedRemark;\n\t}",
"String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}",
"public String getNote() {\r\n return note; \r\n }",
"public String getComments() {\n return this.comments;\n }",
"public String getCommentContent() {\n return commentContent;\n }",
"public String getRemarks() {\r\n return remarks;\r\n }",
"public String getComments() {\n return _comments;\n }",
"String getCheckinComment();",
"String getRemark();",
"public String getText() {\n\t\tif (isAdjacentTo!=null) {\r\n\t\t\treturn isAdjacentTo.getText();\r\n\t\t} else {\r\n\t\t\tint commentStartIndex = start-offsetToStartOfCommentTextInFile+taskTag.length();\r\n\t\t\tint commentEndIndex = end-offsetToStartOfCommentTextInFile+1;\r\n\t\t\treturn commentText.substring(commentStartIndex,commentEndIndex).trim();\r\n\t\t}\r\n\t}",
"public String getComments() { \n\t\treturn getCommentsElement().getValue();\n\t}",
"public String getComments() {\n return (String) getAttributeInternal(COMMENTS);\n }",
"public String getRemark() {\r\n return remark;\r\n }",
"public String getRemarks() {\n return (String) getAttributeInternal(REMARKS);\n }",
"public String getRemarks() {\n return (String) getAttributeInternal(REMARKS);\n }",
"public String getComment() throws RuntimeException\n {\n return getTitle();\n }",
"private String getUsersComment(\r\n\t\t\t\t\t\t\t\tOntologyClassSubmission ontologyClassSubmission) {\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}",
"public String getRemarks() {\n return remarks;\n }",
"public String getRemarks() {\n return remarks;\n }",
"public String getRemarks() {\n return remarks;\n }",
"public String getRemarks() {\n return remarks;\n }",
"public String getRemarks() {\n return remarks;\n }",
"public String getRemarks() {\n return remarks;\n }",
"public String getRemarks() {\n return remarks;\n }",
"public String getNote() {\r\n return note;\r\n }",
"public String getNote() {\r\n return note;\r\n }",
"public String getAnnouncement();",
"public String getDocumentNote();",
"public String getRemark() {\r\n return remark;\r\n }",
"public String getRemark() {\r\n return remark;\r\n }"
]
| [
"0.6856933",
"0.6856933",
"0.6856933",
"0.6856933",
"0.6856933",
"0.6856933",
"0.67510533",
"0.67510533",
"0.6716079",
"0.66988075",
"0.66988075",
"0.66958",
"0.6636582",
"0.6602945",
"0.6528608",
"0.65258193",
"0.650792",
"0.65000296",
"0.64452475",
"0.64388925",
"0.6434581",
"0.6428721",
"0.6414447",
"0.6405105",
"0.63965243",
"0.6375314",
"0.6375314",
"0.6375314",
"0.6375314",
"0.6375314",
"0.6375314",
"0.6375314",
"0.63334274",
"0.63334274",
"0.63334274",
"0.6324267",
"0.63103604",
"0.6301516",
"0.6289804",
"0.6281073",
"0.62255335",
"0.6215426",
"0.6215426",
"0.6208907",
"0.61597526",
"0.61533415",
"0.610417",
"0.6078912",
"0.6057422",
"0.6029469",
"0.6014133",
"0.6014133",
"0.6013411",
"0.59991974",
"0.5989729",
"0.59808743",
"0.5978732",
"0.59749687",
"0.5965719",
"0.59579897",
"0.59480935",
"0.59362733",
"0.59362733",
"0.59362733",
"0.59362733",
"0.59344274",
"0.5928428",
"0.592593",
"0.5922145",
"0.5917666",
"0.5916257",
"0.5907914",
"0.59053385",
"0.58954334",
"0.5888183",
"0.5883119",
"0.58774865",
"0.5875645",
"0.5875524",
"0.587431",
"0.5856373",
"0.585147",
"0.58466125",
"0.5843962",
"0.5843962",
"0.5834377",
"0.58267576",
"0.5810849",
"0.5810849",
"0.5810849",
"0.5810849",
"0.5810849",
"0.5810849",
"0.5810849",
"0.5807822",
"0.5807822",
"0.5790414",
"0.5788488",
"0.578625",
"0.578625"
]
| 0.6150573 | 46 |
public setter Textual comment that the user targeted by feedback may leave in response or rebuttal to the feedback. | public void setFeedbackResponse(String feedbackResponse) {
this.feedbackResponse = feedbackResponse;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setComments(String newValue);",
"public void setComment(String comment);",
"public void setComment(String comment);",
"public void setComments(java.lang.String value);",
"public void setComment(String new_comment){\n this.comment=new_comment;\n }",
"public void setFeedback(String feedback) {\n\t\tthis.feedback = feedback;\n\t}",
"public void setComments(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), COMMENTS, value);\r\n\t}",
"public String getComment(){\n return this.comment;\n }",
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"Feedback getFeedback();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}",
"@SuppressWarnings(\"unused\")\n public Comment() {\n edited = false;\n }",
"public String getComment(){\n return comment;\n }",
"public void modifyComment(String text){\n if (activeEmployee.hasLicence(202)){\n DB.modifyComment(getData().id_comment, getData().id_task, text);\n update();\n } //consideramos que solo se puede modificar el texto no las id\n }",
"public void setComment(String comment, int rating);",
"public String getCommentText() {\n\t return this.commentText;\n\t}",
"private void setDisableComment(int value) {\n \n disableComment_ = value;\n }",
"@Override\n\tpublic String getComment() {\n\t\treturn model.getComment();\n\t}",
"public String getComment()\n {\n return comment;\n }",
"public String getComment() {\n return description;\n }",
"public String getComment() {\n return this.comment;\n }",
"@Override\r\n\tpublic void modifyReply(CommentVO vo) throws Exception {\n\t\tsession.update(namespace + \".modifyReply\", vo);\r\n\t}",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public String getCommentText() {\r\n\r\n\t\treturn commentText;\r\n\t}",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public void setComment(String c) {\n comment = c ;\n }",
"public void setNewComment(Comment newComment) {\r\n this.newComment = newComment;\r\n }",
"private void applyComment()\n {\n Map<String, GWikiArtefakt<?>> map = new HashMap<String, GWikiArtefakt<?>>();\n page.collectParts(map);\n GWikiArtefakt<?> artefakt = map.get(\"ChangeComment\");\n if (artefakt instanceof GWikiChangeCommentArtefakt == false) {\n return;\n }\n\n GWikiChangeCommentArtefakt commentArtefakt = (GWikiChangeCommentArtefakt) artefakt;\n String oldText = commentArtefakt.getStorageData();\n String ntext;\n String uname = wikiContext.getWikiWeb().getAuthorization().getCurrentUserName(wikiContext);\n int prevVersion = page.getElementInfo().getProps().getIntValue(GWikiPropKeys.VERSION, 0);\n if (StringUtils.isNotBlank(comment) == true) {\n Date now = new Date();\n ntext = \"{changecomment:modifiedBy=\"\n + uname\n + \"|modifiedAt=\"\n + GWikiProps.date2string(now)\n + \"|version=\"\n + (prevVersion + 1)\n + \"}\\n\"\n + comment\n + \"\\n{changecomment}\\n\"\n + StringUtils.defaultString(oldText);\n } else {\n ntext = oldText;\n }\n ntext = StringUtils.trimToNull(ntext);\n commentArtefakt.setStorageData(ntext);\n }",
"public int getDisableComment() {\n return disableComment_;\n }",
"public String getComment() {\r\n\t\treturn comment;\r\n\t}",
"public void setComment(final String newComment) {\n this.comment = newComment;\n }",
"public static void setProvideFeedback(boolean b){\n\t\tprovideFeedback = b;\t \n\t}",
"public void showMyComments(){\n String nothing=null;\n }",
"public String getComment() {\n return comment ;\n }",
"public void setComment(String comment){\n this.comment = comment;\n }",
"@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}",
"public void setRemarks(String value) {\r\n setAttributeInternal(REMARKS, value);\r\n }",
"public final String getComment() {\n return comment;\n }",
"public void setComments(String value) {\n setAttributeInternal(COMMENTS, value);\n }",
"String getComment();",
"String getComment();",
"public void setDocumentNote (String DocumentNote);",
"@ApiModelProperty(value = \"The message provided by the reviewer when a submission is rejected.\")\n\n\n public String getRejectionMessage() {\n return rejectionMessage;\n }",
"public void setRemark(String remark)\n/* */ {\n/* 267 */ this.remark = remark;\n/* */ }",
"public void setEquipcomment( java.lang.String newValue ) {\n __setCache(\"equipcomment\", newValue);\n }",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }",
"public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }",
"public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }",
"public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }",
"public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }",
"public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }",
"public java.lang.String getComment() {\r\n return comment;\r\n }",
"public String getAcCommentsMessage() {\n return acCommentsMessage;\n }",
"public static void setComments(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, COMMENTS, value);\r\n\t}",
"public void setNote(String note);",
"@Override\r\n public boolean respond(Comment response, int id) {\n return false;\r\n }",
"public void setComment(String comment)\n {\n this.comment = comment;\n }",
"@Override\r\n\tpublic void setWholeComment(String currentComment) {\n\t\t\r\n\t}",
"public void setAnswer(String newAnswer){\n this.answer = newAnswer; \n }",
"public void setHopscomment( java.lang.String newValue ) {\n __setCache(\"hopscomment\", newValue);\n }",
"public void effacerDiscussion() {\n discussion.setText(\"\");\n }",
"@ApiModelProperty(value = \"The reject action text. If not specified the reject button will NOT be rendered, and the user will only see an approve action button.\")\n public String getRejectText() {\n return rejectText;\n }",
"@Before({PostIntercept.class, UserIntercept.class})\n @ActionKey(\"/api/blog/replyComment\")\n public void replyComment() {\n Integer belongTo = getParaToInt(\"belongTo\"); //MUST your new comment's id\n String content = getPara(\"content\"); //MUST\n String createdBy = getPara(\"createdBy\"); //MUST\n Integer replyTo = getParaToInt(\"replyTo\"); //MUST reply to which comment's id\n\n if (belongTo == null || content == null || createdBy == null || replyTo == null) {\n mResult.fail(102);\n renderJson(mResult);\n return;\n }\n mResult.success(mCommentService.reply(createdBy, belongTo, content, replyTo));\n renderJson(mResult);\n }",
"public void setComments( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), COMMENTS, value);\r\n\t}",
"@Override\n public void setReason( String arg0)\n {\n \n }",
"public java.lang.String getComment() {\n return comment;\n }",
"public java.lang.String getComment() {\n return comment;\n }",
"public java.lang.String getComment() {\n return comment;\n }",
"public String getFeedbackResponse() {\n\t return this.feedbackResponse;\n\t}",
"@Override\n\tpublic String createComment_request() {\n\t\treturn null;\n\t}",
"public void setComments (String Comments)\n{\nif (Comments != null && Comments.length() > 255)\n{\nlog.warning(\"Length > 255 - truncated\");\nComments = Comments.substring(0,255);\n}\nset_Value (\"Comments\", Comments);\n}",
"public int getDisableComment() {\n return instance.getDisableComment();\n }",
"public String getRemarks() { return remarks; }",
"public void setReason(String reason);",
"public String getBookComment() {\n return bookComment;\n }",
"public String getBookComment() {\n return bookComment;\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"void setCheckinComment(String comment);",
"@Lob\r\n @Column (name=\"RECORD_COMMENT\")\r\n\tpublic String getComment() {\r\n\t\treturn comment;\r\n\t}",
"public void setAnnouncement(String announcement);",
"public Boolean getCommentReplaced() {\n\t return this.commentReplaced;\n\t}",
"@Override\n\tpublic GameChatResponse optionalCommentOnLanguage(OsuApiUser apiUser) {\n\t\treturn new Message(\"[https://osu.ppy.sh/u/6579055 Dddsasul] mă ajută să învăț Româna!\");\n\t}",
"@Override\n\tpublic String getQuestionAnswerText() {\n\t\treturn null;\n\t}",
"public Builder setComment(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n comment_ = value;\n onChanged();\n return this;\n }",
"public void setRespondText(String respondText);"
]
| [
"0.6372187",
"0.621239",
"0.621239",
"0.61389494",
"0.61388737",
"0.60804784",
"0.5822461",
"0.5773133",
"0.5750303",
"0.5750303",
"0.5742827",
"0.57150525",
"0.57150525",
"0.57150525",
"0.57150525",
"0.57150525",
"0.57150525",
"0.5711864",
"0.5677151",
"0.567115",
"0.5666632",
"0.5664531",
"0.5648107",
"0.5646354",
"0.5624676",
"0.5608327",
"0.56054837",
"0.5593622",
"0.559044",
"0.5589845",
"0.5574063",
"0.5520205",
"0.5520205",
"0.5520205",
"0.5520205",
"0.5520205",
"0.5520205",
"0.5520205",
"0.5519757",
"0.5511955",
"0.55058414",
"0.549831",
"0.54791623",
"0.54620296",
"0.5460468",
"0.54566437",
"0.5454839",
"0.54454803",
"0.5444667",
"0.54344267",
"0.5429093",
"0.5423489",
"0.541684",
"0.541684",
"0.5395984",
"0.5372861",
"0.53724",
"0.53714186",
"0.53663826",
"0.53663826",
"0.5363854",
"0.5363854",
"0.5363854",
"0.5363854",
"0.5363854",
"0.5363854",
"0.5361427",
"0.5356053",
"0.5347853",
"0.5337815",
"0.53324324",
"0.5330892",
"0.53288263",
"0.53164786",
"0.5292768",
"0.5286857",
"0.5274911",
"0.52733266",
"0.52570474",
"0.525693",
"0.5251633",
"0.5251633",
"0.5251633",
"0.5251396",
"0.52482706",
"0.52459717",
"0.52288514",
"0.5228638",
"0.52234226",
"0.5222306",
"0.5222306",
"0.52184635",
"0.51967645",
"0.51856",
"0.51748765",
"0.5172126",
"0.51713777",
"0.51712984",
"0.51639473",
"0.51620346"
]
| 0.5508758 | 40 |
public getter Explanation a user can give to a response. | public String getFollowUp() {
return this.followUp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getAnswerResponse();",
"pb4server.GiveRansomAskReq getGiveRansomAskReq();",
"String getResponsible();",
"public boolean getMustUnderstand();",
"public boolean isResponse(){\n return true;\n }",
"protected abstract void askResponse();",
"private SpeechletResponse getHelpResponse() {\n\t\tString speechText = \"Please ask Flight Check the status of a flight by providing the airline name followed by the flight number. For example, Flight Check, what is the status of Lufthansa flight 112. Now, what can I help you with?\";\n\t\t// Create the plain text output.\n\t\tPlainTextOutputSpeech speech = new PlainTextOutputSpeech();\n\t\tspeech.setText(speechText);\n\n\t\t// Create reprompt\n\t\tReprompt reprompt = new Reprompt();\n\t\treprompt.setOutputSpeech(speech);\n\n\t\treturn SpeechletResponse.newAskResponse(speech, reprompt);\n\t}",
"public String getAnswer(){\n return this.answer;\n }",
"public String admit() {\n\n Applicants applicants = new Applicants(\"Daniel\", \"Okoro\", 17, \"male\", 70);\n System.out.println(applicants.admitted());\n return applicants.admitted();\n }",
"public java.lang.CharSequence getRespp() {\n return respp;\n }",
"public abstract String getResponse();",
"public String provideAlwasDefResponse()\n {\n return (\"d\") ;\n }",
"@ApiModelProperty(value = \"Purpose for which the token was requested.\")\n public String getDescription() {\n return description;\n }",
"public String getPrivacy();",
"public interface Response extends Message\n\t{\n public static final String RESPONSE_TO = \"aether.response.response-to\";\n\t}",
"public java.lang.CharSequence getRespp() {\n return respp;\n }",
"public int getResponse() {return response;}",
"public String getAnswer() {\n return answer;\n }",
"public boolean isGivingInformation();",
"@AutoEscape\n\tpublic String getSecurity_answer();",
"public int get_correctAnswer(){return this._correctAnswer;}",
"boolean isMarkAsResponse();",
"public String getAccess();",
"public int getAnswer()\n {\n return answer;\n }",
"public String getResponseMessage();",
"private String randomResponse()\r\n\t{\r\n\t\t\tpatience--;\r\n\t\t\tif (patience==0)\r\n\t\t\t{\r\n\t\t\t\tString[] randomArray = {\"Huh?\",\"Can you rephrase that in reptilian for me?\",\"Sorry I don't understand.\"\r\n\t\t\t\t\t\t,\"Hmmm\",\"Hmph\"};\r\n\t\t\t\tRandom rand = new Random();\r\n\t\t\t\tint i = rand.nextInt(4)+0;\r\n\t\t\t\treturn randomArray[i];\r\n\t\t\t}\t\r\n\t\t\telse if (patience <= 0)\r\n\t\t\t{\r\n\t\t\t\tString[] randomImpatientArray = {\"Hiss\",\"Can you please use your words correctly to speak\",\">:(((\",\"Your pushing my limit\",\"You were here... Now your here!!\",\"ok.....\"};\r\n\t\t\t\tRandom rand = new Random();\r\n\t\t\t\tint i = rand.nextInt(5)+0;\r\n\t\t\t\treturn randomImpatientArray[i];\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tString[] randomPatientArray = {\"Hey can you please say that again.\",\"Excuse me but I don't understand\",\"Oh okay!Interesting\",\"Yeah yeah totally\"};\r\n\t\t\t\tRandom rand = new Random();\r\n\t\t\t\tint i = rand.nextInt(3)+0;\r\n\t\t\t\treturn randomPatientArray[i];\r\n\t\t\t}\r\n\t}",
"public String getProgrammerResponse() {\n\t\treturn programmerResponse;\n\t}",
"@Schema(description = \"an optional message back the client. In the case of a simple message response for a verification message or dialog that message will be available here \")\n public String getResponseMessage() {\n return responseMessage;\n }",
"public String getSecurity_question() \r\n {\r\n return security_question;\r\n }",
"@Override\r\n\tpublic String say() {\n\t\tif(livingBy==LivingBy.CAT) {\r\n\t\t\treturn \"Me ow\";\r\n\t\t}else if(livingBy==LivingBy.ROOSTER) {\r\n\t\t\treturn \"Cock-a-doodle-doo\";\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\treturn \"Woof, woof\";\r\n\t\t}\r\n\t\t\r\n\t}",
"public Answer getAnswer(){\n\t\treturn answer; /** use relation -> DecideAnswer.java */\n\t}",
"public String getPerformative() {\n return this.performative;\n }",
"public String sayYes(){\n return \"Yes\";\n }",
"public String response() {\n\t\treturn message;\n\t}",
"public String getSecurityAnswer() {\n return securityAnswer;\n }",
"public int readResponse(){\n\t\t\t\t\tint ans1 = resp.nextInt();\n\t\t\t\t\treturn ans1;\n\t\t\t\t}",
"@Override\n\tpublic String toString() {\n\t\treturn ans+\" By \"+by;\n\t}",
"protected abstract String answer();",
"public String getUtterance();",
"public int getAnswer() {\n return answer;\n }",
"@Override\n public void onExplanationNeeded(List<String> permissionsToExplain) {\n }",
"public boolean getWishOfUser() {\n return wishOfUSer;\n }",
"public String getRequested() {\n return this.requested;\n }",
"public String get_question(){return this._question;}",
"protected abstract String getAllowedRequests();",
"String getAccess();",
"String getAccess();",
"public java.lang.CharSequence getResponseLink() {\n return ResponseLink;\n }",
"public String checkMessage() {\n\t\tString userLatestStep = questionBot.get(owner.id());\n\n\t\t//se a amensagem comeca com '/', trata-se de um item de menu sendo acionado\n\t\tif(answerUser != null && answerUser.startsWith(\"/\"))\n\t\t\tuserLatestStep = answerUser;\n\n\t\t//busca no mapa de respostas as opcoes para o usuario\n\t\tObject options = response.get(userLatestStep);\n\n\t\t//obtem a mensagem a ser devolvida para o usuario\n\t\tString result = parseResult(options, answerUser);\n\n\t\t//mantem a ultima resposta do usuario\n\t\tuserLatestAnswer.put(owner.id(), answerUser);\n\n\t\treturn result;\n\t}",
"public String genTopicResponse()\n {\n String str = \"\";\n\n double pr = generator.nextDouble();\n if( pr <= probability1 )\n str += response1;\n else if( pr <= (probability1 + probability2) )\n str += response2;\n else \n str += response3;\n\n decrActivation();\n return str;\n }",
"public String getPunishAdvice() {\n return punishAdvice;\n }",
"public abstract String getResponseID();",
"public String getResponse()\r\n {\r\n return this.response;\r\n }",
"public User getRequested() {\n return requested;\n }",
"void faild_response();",
"public String getGoal();",
"public boolean getIsResponse() {\n\t\treturn isResponse;\n\t\t\n\t}",
"@AutoEscape\n\tpublic String getRespondText();",
"public java.lang.CharSequence getResponseLink() {\n return ResponseLink;\n }",
"Boolean getIsAnswered();",
"@Override\n\tpublic String getBye() {\n\t\treturn \"Say Good bye VietNam!\";\n\t}",
"public String getResponseDescription() {\n return responseDescription;\n }",
"@Override\n public boolean isGivingInformation() {\n return true;\n }",
"String getResponse();",
"public String provideRandomResponse()\n {\n int randomN = (int) (Math.random() * 2) ;\n if (randomN == 1)\n {\n return(\"c\") ;\n }\n else\n {\n return(\"d\") ;\n }\n \n }",
"private String getRandomResponse() {\n\t\tfinal int NUMBER_OF_RESPONSES = 6;\n\t\tdouble r = Math.random();\n\t\tint whichResponse = (int) (r * NUMBER_OF_RESPONSES);\n\t\tString response = \"\";\n\n\t\tif (whichResponse == 0) {\n\t\t\tresponse = \"Interesting, tell me more.\";\n\t\t} else if (whichResponse == 1) {\n\t\t\tresponse = \"Hmmm.\";\n\t\t} else if (whichResponse == 2) {\n\t\t\tresponse = \"Do you really think so?\";\n\t\t} else if (whichResponse == 3) {\n\t\t\tresponse = \"You don't say.\";\n\t\t} else if(whichResponse == 4) {\n\t\t\tresponse = \"Well, that's right.\";\n\t\t} else if(whichResponse == 5) {\n\t\t\tresponse = \"Can we switch the topic?\";\n\t\t}\n\n\t\treturn response;\n\t}",
"@Override\n\tpublic void requestLawyer() {\n\t\tSystem.out.println(\"xiaoming-requestLawyer\");\n\t}",
"public interface IWomen {\n //获得个人情况, 是否结婚,丈夫是否去世\n int getType();\n //获得个人请示,\n String getRequest();\n}",
"protected Answer(){\r\n\t\t\r\n\t}",
"@JsonProperty(\"granted\")\n public boolean isGranted() {\n return granted;\n }",
"public String getNeedsAttentionDisplay() {\n if (needsAttention.booleanValue()) {\n return NEEDS_ATTN_YES;\n }\n return NEEDS_ATTN_NO;\n }",
"@Test\n\tpublic void testResponse() {\n\t\tquestions.setResponse(\"No\");\n\t\tassertEquals(\"No\",questions.getResponse());\n\t}",
"java.lang.String getResponse();",
"public String requestAction3(){\n return \"Response Three\";\n }",
"public String getResponseString() {\r\n\t\t// TODO - log message if this is ever called\r\n\t\treturn \"\";\r\n\t}",
"@Override\n public void showRationale(Context context, T permissions, final RequestExecutor executor) {\n Log.e(TAG, \"rantionale\");\n AlertDialog.Builder dialog = new AlertDialog.Builder(context);\n dialog.setTitle(title)\n .setMessage(msg)\n .setCancelable(false)\n .setPositiveButton(R.string.allow, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // When the user to continue the request:\n executor.execute();\n }\n })\n .setNegativeButton(R.string.no_thanks, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // When the user interrupts the request:\n executor.cancel();\n }\n }).show();\n\n }",
"@Override\r\n public String ask() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n word = \"Do you like the Story?\";\r\n System.out.println(word);\r\n return word;\r\n }",
"@Override\n protected String requiredGetPermission() {\n return \"user\";\n }",
"public long getResponsedByUserId();",
"public java.lang.CharSequence getResph() {\n return resph;\n }",
"public String getAnswerBy() {\n return answerBy;\n }",
"public String getExplanation() {\n\n\t\treturn explanation;\n\t}",
"public br.com.sergio.wallet.Response getResponse() {\n br.com.sergio.wallet.Response result = br.com.sergio.wallet.Response.valueOf(response_);\n return result == null ? br.com.sergio.wallet.Response.UNRECOGNIZED : result;\n }",
"public GrizzletResponse getResponse();",
"public String getWhat() {\n\n\t\tString[] whatArray = new String[]{\n\t\t\t\t\"My lawyer says I don't need to answer this question\",\n\t\t\t\t\"Are you really asking me this right now?\",\n\t\t\t\t\"That was underwhelming. Try harder.\",\n\t\t\t\t\"What? What indeed.\",\n\t\t\t\t\"I think you should ask Siri that one. I really don't know what that is.\",\n\t\t\t\t\"Simon says: Everything is an object.\",\n\t\t\t\t\"You should ask STP, he's a really smart guy. Without his teaching, my creators would not have created me.\",\n\t\t\t\t\"That's a tough question to answer. Let's talk about cats instead. Meow?\"\n\t\t};\n\t\tRandom random = new Random();\n\t\tint index = random.nextInt(whatArray.length);\n\t\treturn whatArray[index];\t\n\t}",
"public String getAnotherDetail();",
"@AutoEscape\n\tpublic String getSecurity_question();",
"public int getNumRespAtracc();",
"private void __getReply() throws IOException\n {\n __getReply(true); // tagged response\n }",
"public String getRespuesta() {\n return (aRespuestas[iRespuesta]);\n }",
"public String getQuestion() {\n return question;\n }",
"public java.lang.CharSequence getResph() {\n return resph;\n }",
"public String getQuestion() {\n return question;\n }",
"public int getAnswer() {\n\t\treturn answer;\n\t}",
"public String getResponse(String statement) {\n\t\tString response = \"\";\n\t\tif (statement.indexOf(\"no\") >= 0) {\n\t\t\tresponse = \"Why so negative?\";\n\t\t} else if (statement.indexOf(\"mother\") >= 0\n\t\t\t\t|| statement.indexOf(\"father\") >= 0\n\t\t\t\t|| statement.indexOf(\"sister\") >= 0\n\t\t\t\t|| statement.indexOf(\"brother\") >= 0) {\n\t\t\tresponse = \"Tell me more about your family.\";\n\t\t} else if(statement.indexOf(\"Dreyer\") >= 0) {\n\t\t\tresponse = \"She sounds like a good teacher.\";\n\t\t} else if(statement.indexOf(\"jokes\") >= 0) {\n\t\t\tresponse = \"I'm not a humorous person.\";\n\t\t} else if(statement.indexOf(\"study\") >= 0) {\n\t\t\tresponse = \"Study is the easiest thing in the world.\";\n\t\t} else if(statement.indexOf(\"name\") >= 0){\n\t\t\tresponse = \"My name is Mark Ding. And I have a robot friend called Sam Ding.\";\n\t\t} else if(statement.trim().length() <= 0) {\n\t\t\tresponse = \"Say something, please.\";\n\t\t} else {\n\t\t\tresponse = getRandomResponse();\n\t\t}\n\t\treturn response;\n\t}",
"@Schema(description = \"depending on the response type, this may be an irods path, a link for a redirect, or some other value \")\n public String getResponsePathOrLink() {\n return responsePathOrLink;\n }",
"public boolean isGet();",
"boolean getCorrect();",
"String getDescripcion();",
"String getDescripcion();",
"private void answerYesOrNo() {\n List<String> Yes = additionalDB.get(\"Yes\");\n List<String> No = additionalDB.get(\"No\");\n if (random.nextBoolean())\n \tresponsesList.add(new Response(getRandomElementFromList(Yes)));\n else responsesList.add(new Response(getRandomElementFromList(No)));\n }"
]
| [
"0.65766394",
"0.6313839",
"0.6143001",
"0.6140963",
"0.60788107",
"0.6065889",
"0.6061296",
"0.6010567",
"0.59737414",
"0.59244484",
"0.5905502",
"0.5885383",
"0.5884199",
"0.58737046",
"0.58716345",
"0.5858818",
"0.5847142",
"0.5834493",
"0.58140504",
"0.5794283",
"0.5787769",
"0.5780831",
"0.57776195",
"0.5776443",
"0.5773246",
"0.57680315",
"0.5756171",
"0.575483",
"0.57417846",
"0.5741625",
"0.57243574",
"0.5722725",
"0.57166904",
"0.5715614",
"0.56976223",
"0.5695271",
"0.56679714",
"0.5637466",
"0.5636976",
"0.5628578",
"0.5625163",
"0.5618223",
"0.5617107",
"0.5616647",
"0.5616316",
"0.5615151",
"0.5615151",
"0.5609039",
"0.55906856",
"0.5589776",
"0.5589181",
"0.55795705",
"0.5574027",
"0.5571916",
"0.55712324",
"0.55557346",
"0.5546783",
"0.554358",
"0.55352604",
"0.5534779",
"0.55340004",
"0.5524457",
"0.5513986",
"0.55123925",
"0.55080456",
"0.5506758",
"0.55047697",
"0.5501384",
"0.5500006",
"0.5498496",
"0.54981166",
"0.5497862",
"0.54932",
"0.5492638",
"0.548975",
"0.54851013",
"0.5484229",
"0.5483748",
"0.5478068",
"0.54779154",
"0.5474897",
"0.54720104",
"0.5453125",
"0.54528886",
"0.5451573",
"0.54470253",
"0.5445255",
"0.54444736",
"0.54388815",
"0.54381394",
"0.5434471",
"0.5434285",
"0.54341555",
"0.5430746",
"0.542603",
"0.5425531",
"0.5424257",
"0.5423964",
"0.5422522",
"0.5422522",
"0.5421837"
]
| 0.0 | -1 |
public setter Explanation a user can give to a response. | public void setFollowUp(String followUp) {
this.followUp = followUp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSecurity_answer(String security_answer);",
"public void setResponse(int response) {\r\n this.response = response;\r\n }",
"public void setResponse(T response) {\n this.response = response;\n }",
"public void setAnswer(double correctResponse)\n { \n answer = correctResponse; \n }",
"public void setRequested(){\n this.status = \"Requested\";\n }",
"public Builder setResponse(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n response_ = value;\n onChanged();\n return this;\n }",
"public void setResponse(String response) {\n this.response = response;\n }",
"public void setResponse(String response) {\n this.response = response;\n }",
"public void setResponsedByUserId(long responsedByUserId);",
"public void setAnswer(String newAnswer){\n this.answer = newAnswer; \n }",
"public void setSecurity_question(String security_question);",
"protected abstract void askResponse();",
"@Override\n public void setReason( String arg0)\n {\n \n }",
"private void setResponse(net.iGap.proto.ProtoResponse.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n \n }",
"private void setResponse(net.iGap.proto.ProtoResponse.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n \n }",
"public void setRespondText(String respondText);",
"private void setResponse(\n net.iGap.proto.ProtoResponse.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n \n }",
"private void setResponse(\n net.iGap.proto.ProtoResponse.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n \n }",
"@Override\n public void setAccessibilityPhrase(String arg0)\n {\n \n }",
"protected Answer(){\r\n\t\t\r\n\t}",
"public void setClaim(boolean a){\n isClaimed= a;\n \n}",
"public void setResponse( Double response )\n\t{\n\t\tthis.response = response;\n\t}",
"public abstract void setProductResponseMessage(int paramInt, String paramString);",
"public void setIsResponse(boolean isResponse) {\n\t\tthis.isResponse = isResponse;\n\t\t\n\t}",
"public void setRespp(java.lang.CharSequence value) {\n this.respp = value;\n }",
"public void setResponse(edu.itq.soa.ResponseDocument.Response response)\n {\n generatedSetterHelperImpl(response, RESPONSE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public void setAnswer(String answer) {\r\n this.answer = answer;\r\n }",
"private void setResponse(com.google.search.now.wire.feed.ResponseProto.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n bitField0_ |= 0x00000002;\n }",
"private void setDescription(String UserDescription){\n Description = UserDescription;\n }",
"public void setResponse(final String response) {\n\t\thandler.response = response;\n\t}",
"private void setResponse(com.google.search.now.wire.feed.ResponseProto.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n bitField0_ |= 0x00000001;\n }",
"public void setRegisterResponse(Response registerResponse){\n\t\tthis.registerResponse=registerResponse;\n\t}",
"public void setClaim(boolean a,AbstAnt ant){\n isClaimed= a;\n claimer= ant;\n}",
"public void setRequested(User requested) {\n this.requested = requested;\n }",
"private void setResponse(\n com.google.search.now.wire.feed.ResponseProto.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n bitField0_ |= 0x00000002;\n }",
"@Test\n\tpublic void testResponse() {\n\t\tquestions.setResponse(\"No\");\n\t\tassertEquals(\"No\",questions.getResponse());\n\t}",
"public void setResph(java.lang.CharSequence value) {\n this.resph = value;\n }",
"public interface Response extends Message\n\t{\n public static final String RESPONSE_TO = \"aether.response.response-to\";\n\t}",
"public void setNumRespAtracc(int num);",
"private void setResponse(\n com.google.search.now.wire.feed.ResponseProto.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n bitField0_ |= 0x00000001;\n }",
"public static void setResponse(Object response) {\n\t\tif (null != response) {\n\t\t\tMDC.put(ApplicationConstants.RESPONSE, response.toString());\n\t\t}\n\t}",
"void setOk();",
"public void setHttpResponse( HttpResponse resp ) {\r\n\tresponse=resp;\r\n }",
"public void question() {\n\t\tlead.answer(this);\n\t}",
"public String getAnswer(){\n return this.answer;\n }",
"void setCalled(String called);",
"void faild_response();",
"public void setHelp (String Help);",
"public void setResponseMessage(KineticMessage response) {\n this.response = response;\n }",
"void setGreeting(String greeting);",
"public Builder setResponse(com.czht.face.recognition.Czhtdev.Response value) {\n if (responseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n onChanged();\n } else {\n responseBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000004;\n return this;\n }",
"@Override\n\tpublic void sendResponse() {\n\n\t}",
"public int get_correctAnswer(){return this._correctAnswer;}",
"public void setResponseServer(java.lang.CharSequence value) {\n this.ResponseServer = value;\n }",
"boolean isMarkAsResponse();",
"@Override\n\tpublic void requestLawyer() {\n\t\tSystem.out.println(\"xiaoming-requestLawyer\");\n\t}",
"@JsonSetter(\"response\")\n public void setResponse (EventResponseModel value) {\n this.response = value;\n }",
"@Override\n\tpublic void sendResponse() {\n\t\t\n\t}",
"private Response() {\n initFields();\n }",
"@Test\n public void testSetResponse_1()\n throws Exception {\n Transaction fixture = new Transaction();\n fixture.setResponse(new Response());\n fixture.setRequest(new Request());\n Response response = new Response();\n\n fixture.setResponse(response);\n\n }",
"@Override\n @SuppressWarnings(\"unchecked\")\n public void setObject(Object response) {\n synchronized (waitObj) {\n if (done != false) {\n throw new IllegalStateException(\"Response value already set.\");\n }\n this.response = (T) response;\n done = true;\n waitObj.notify();\n }\n }",
"@Override\n\tpublic void setHungry() {\n\t\t\n\t}",
"public void setAchieved(Boolean newValue);",
"public void setResponseMessage(String responseMessage) { this.responseMessage = responseMessage; }",
"public void set(Object requestor, String field);",
"public boolean isResponse(){\n return true;\n }",
"public void setRespuesta(int Respuesta) {\n iRespuesta = Respuesta;\n }",
"public void setResponse(HttpResponseWrapper response) {\n this.response = response;\n }",
"public void setNama() {\n nama.postValue(\"Hello, Riyanto!\");\n }",
"public Response(String prompt) {\n this(prompt, true);\n }",
"public void setResult (String Result);",
"public com.example.DNSLog.Builder setRespp(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.respp = value;\n fieldSetFlags()[4] = true;\n return this;\n }",
"public void setUser(String user)\n {\n _user = user;\n }",
"public void setInformation(String information);",
"public void setRequester(User requester) {\n this.requester = requester;\n }",
"public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }",
"@Override\r\n public boolean respond(Comment response, int id) {\n return false;\r\n }",
"public void setProgrammerResponse(String programmerResponse) {\n\t\tthis.programmerResponse = programmerResponse;\n\t}",
"public String get_question(){return this._question;}",
"public Builder setResponseValue(int value) {\n response_ = value;\n onChanged();\n return this;\n }",
"public void setResponsedByUserUuid(String responsedByUserUuid);",
"@Override\n public void onResponse(String response) {\n\n if (response.equals(update_success)) {\n return;\n }\n if (response.equals(update_fail)) {\n return;\n }\n if (response.equals(non_value)) {\n return;\n }\n if (response.equals(wrong_query)) {\n return;\n }\n if (response.equals(non_post)) {\n\n }\n }",
"public void setNombre(String nombre) {this.nombre = nombre;}",
"public void setReason(String reason);",
"public Builder setResponse(br.com.sergio.wallet.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n response_ = value.getNumber();\n onChanged();\n return this;\n }",
"public sparqles.avro.discovery.DGETInfo.Builder setResponseLink(java.lang.CharSequence value) {\n validate(fields()[7], value);\n this.ResponseLink = value;\n fieldSetFlags()[7] = true;\n return this; \n }",
"public Builder setResponse(com.github.yeriomin.playstoreapi.ResponseWrapper value) {\n if (responseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n onChanged();\n } else {\n responseBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }",
"void setPassedUser(User passedUser);",
"public void set_reply(short value) {\n setUIntBEElement(offsetBits_reply(), 8, value);\n }",
"pb4server.GiveRansomAskReq getGiveRansomAskReq();",
"@Override\n public void onSetSuccess() {\n }",
"@Override\n public void onSetSuccess() {\n }",
"private CallResponse() {\n initFields();\n }",
"public abstract void setNovedad(java.lang.String newNovedad);",
"public void setRequestMessage(String requestMessage)\r\n/* 39: */ {\r\n/* 40:29 */ this.requestMessage = requestMessage;\r\n/* 41: */ }",
"Answerable(String name) {\n this.name = name;\n }",
"String getAnswerResponse();",
"public void setSecurityAnswer(String securityAnswer) {\n this.securityAnswer = securityAnswer;\n }",
"public void setResponseLink(java.lang.CharSequence value) {\n this.ResponseLink = value;\n }",
"void setConfirmed(String value);",
"private void useFakeResponse() {\n EmployeeApp.useFakeResponse = true;\n ResponseObject responseObject = new ResponseObject();\n responseObject.setReturnCode(200);\n responseObject.setType(ResponseObject.ResponseType.JSON);\n responseObject.setResponseBodyString(new CompanyEmployeesResponse().getRandomResponse());\n FakeInterceptor.addTest(\"-mobile-\", responseObject);\n }"
]
| [
"0.6612997",
"0.6301271",
"0.62945557",
"0.6261747",
"0.6222487",
"0.6127714",
"0.60707563",
"0.60707563",
"0.60656065",
"0.6055772",
"0.6046113",
"0.59704894",
"0.59234804",
"0.5911116",
"0.5911116",
"0.5909329",
"0.59058",
"0.59058",
"0.58904517",
"0.5872829",
"0.5854772",
"0.5842802",
"0.58390236",
"0.58079255",
"0.5786229",
"0.57463706",
"0.57336867",
"0.5725638",
"0.572465",
"0.57240134",
"0.5719895",
"0.5686524",
"0.5686428",
"0.56838113",
"0.56794167",
"0.56672394",
"0.5657134",
"0.56511277",
"0.56461096",
"0.5639612",
"0.5634222",
"0.5618095",
"0.5617164",
"0.5603772",
"0.55886227",
"0.5588597",
"0.55870694",
"0.55801755",
"0.55622846",
"0.5551119",
"0.5542292",
"0.55400807",
"0.5539584",
"0.55339104",
"0.5530144",
"0.55246675",
"0.55227095",
"0.55178225",
"0.5514252",
"0.55042243",
"0.5495508",
"0.54919255",
"0.5487902",
"0.54841846",
"0.54771197",
"0.54700917",
"0.544686",
"0.5445721",
"0.5441925",
"0.5415203",
"0.5414292",
"0.5404831",
"0.54029",
"0.5398134",
"0.5392733",
"0.5383931",
"0.53740346",
"0.53730726",
"0.53696173",
"0.5363489",
"0.5358452",
"0.5355197",
"0.53534955",
"0.5351737",
"0.53454834",
"0.5344773",
"0.53434664",
"0.5334813",
"0.53269565",
"0.532099",
"0.53142935",
"0.53142935",
"0.5313379",
"0.5308708",
"0.5299916",
"0.5295124",
"0.52924526",
"0.52924114",
"0.5290939",
"0.52886605",
"0.528637"
]
| 0.0 | -1 |
public getter The ID that uniquely identifies the item listing. | public String getItemID() {
return this.itemID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getItemID();",
"long getID(Object item);",
"public final ItemId getId() {\r\n return null;\r\n }",
"public Long getItemId() {\r\n return itemId;\r\n }",
"public int getItemID()\n {\n return itemID;\n }",
"public Integer getId() {\n\t\treturn wishlistItemId;\n\t}",
"public int getItemId()\r\n {\r\n return _itemId;\r\n }",
"public String getItemId() {\r\n return itemId;\r\n }",
"public int getItemId() {\n\t\treturn id;\n\t}",
"public Integer getItemid() {\n return itemid;\n }",
"public Integer getItemid() {\n return itemid;\n }",
"public int getItemId() {\n return itemId;\n }",
"public String getItemId() {\n return itemId;\n }",
"@java.lang.Override\n public long getItemId() {\n return itemId_;\n }",
"@java.lang.Override\n public long getItemId() {\n return itemId_;\n }",
"int getItemId() {\n return m_itemId;\n }",
"public String getItemIdentifier();",
"public int getID() {\n return this._id;\n }",
"public long getID() {\n return _id;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The Plaid Item ID. The `item_id` is always unique; linking the same account at the same institution twice will result in two Items with different `item_id` values. Like all Plaid identifiers, the `item_id` is case-sensitive.\")\n\n public String getItemId() {\n return itemId;\n }",
"public long getId ()\r\n {\r\n return _id;\r\n }",
"public String getItemId(){\r\n\t\treturn \"\";\r\n\t}",
"public long getID() {\n return ID;\n }",
"public long getID() {\n return ID;\n }",
"public String getID() {\n return (id);\n }",
"@Override\r\n public int getItemId() {\n return this.itemId;\r\n }",
"public String getID() {\r\n \t\treturn _id;\r\n \t}",
"public static String id()\n {\n return _id;\n }",
"public long getID() {\n return id;\n }",
"public long getID() {\n return id;\n }",
"public java.lang.String getId() {\n return this._id;\n }",
"public java.lang.String getId() {\r\n return this._id;\r\n }",
"public String getID() {\r\n return id;\r\n }",
"public String getId() {\n return _theId;\n }",
"@java.lang.Override\n public long getId() {\n return id_;\n }",
"public String getID() {\n return id;\n }",
"public Long getID() {\n return id;\n }",
"java.lang.String getID();",
"public long getId() { return _id; }",
"@java.lang.Override\n public long getId() {\n return id_;\n }",
"public String getID()\r\n {\r\n return id;\r\n }",
"public int getId( ) {\n return id;\n }",
"public long getId() {\r\n return id;\r\n }",
"public long getId() {\r\n return id;\r\n }",
"public long getId() {\r\n return id;\r\n }",
"public long getId() {\r\n return id;\r\n }",
"public long getId() {\r\n return id;\r\n }",
"public long getId() {\n return id_;\n }",
"public long getId() { return id; }",
"public long getId() { return id; }",
"@java.lang.Override\n public long getId() {\n return id_;\n }",
"@java.lang.Override\n public long getId() {\n return id_;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public int getID() {\n return(this.id);\n }",
"public long getId() { return this.id; }",
"public java.lang.String getId() {\n return _id;\n }",
"public long getId() {\n return id_;\n }",
"public String getId()\n {\n return _id ;\n }",
"public long getId()\r\n {\r\n return _id;\r\n }",
"public int get_id() {\n return _id;\n }",
"public int getId() {\n return _id;\n }",
"public int getId() {\n return _id;\n }",
"public int getId() {\n return _id;\n }",
"@Override\n\tpublic long getId() {\n\t\treturn id;\n\t}",
"@Override\n\tpublic long getId() {\n\t\treturn id;\n\t}",
"@Override\n\tpublic long getId() {\n\t\treturn id;\n\t}",
"public Integer getID() {\n return ID;\n }",
"public Long getId () {\r\n\t\treturn id;\r\n\t}",
"@Override\n public long getId() {\n return this.id;\n }",
"public String id() {\r\n return id;\r\n }",
"public String getId ()\n {\n return id;\n }",
"public long id() {\n return id;\n }",
"public int getId() {\n\t\treturn ID;\n\t}",
"public String getId () {\n return id;\n }",
"public String id() {\n return definition.getString(ID);\n }",
"public String getId() {\n return _id;\n }",
"public String getId() {\n return _id;\n }",
"public String id()\n {\n return id;\n }",
"public Long getId () {\n\t\treturn id;\n\t}",
"public String getLocalItemId() {\n return localItemId;\n }",
"public String getID() {\r\n\t\treturn ID;\r\n\t}",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }",
"public long getId() {\n return id;\n }"
]
| [
"0.7546206",
"0.7378798",
"0.7348594",
"0.7326004",
"0.7318206",
"0.72851354",
"0.726088",
"0.72154325",
"0.719911",
"0.71920973",
"0.71920973",
"0.7178335",
"0.7178296",
"0.7144032",
"0.7096677",
"0.70405173",
"0.7036293",
"0.6978556",
"0.692812",
"0.69153726",
"0.6902057",
"0.6892984",
"0.68753",
"0.68753",
"0.6867023",
"0.68656796",
"0.6863616",
"0.686213",
"0.68390405",
"0.68390405",
"0.6810616",
"0.68072134",
"0.6806134",
"0.67891634",
"0.6764311",
"0.67597234",
"0.6758723",
"0.67528677",
"0.6752766",
"0.6742506",
"0.67385256",
"0.67384946",
"0.6738142",
"0.6738142",
"0.6738142",
"0.6738142",
"0.6738142",
"0.6735388",
"0.6734361",
"0.6734361",
"0.67297316",
"0.6728366",
"0.67280906",
"0.67280906",
"0.67280906",
"0.67280906",
"0.6726791",
"0.6720317",
"0.671897",
"0.6716338",
"0.6715199",
"0.671514",
"0.67118806",
"0.6707615",
"0.6707615",
"0.6707615",
"0.67072934",
"0.67072934",
"0.67072934",
"0.6704916",
"0.6704356",
"0.6702551",
"0.6701893",
"0.67002064",
"0.6700069",
"0.6698981",
"0.66979694",
"0.66978496",
"0.6696471",
"0.6696471",
"0.6696138",
"0.669531",
"0.6693883",
"0.6691446",
"0.6687008",
"0.6687008",
"0.6687008",
"0.6687008",
"0.6687008",
"0.6687008",
"0.6687008",
"0.6687008",
"0.6687008",
"0.6687008",
"0.6687008",
"0.6687008",
"0.6687008",
"0.6687008",
"0.6687008",
"0.6687008"
]
| 0.73013234 | 5 |
public setter The ID that uniquely identifies the item listing. | public void setItemID(String itemID) {
this.itemID = itemID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getItemId()\r\n {\r\n return _itemId;\r\n }",
"public int getItemID()\n {\n return itemID;\n }",
"public void setID(String idIn) {this.id = idIn;}",
"int getItemID();",
"public Long getItemId() {\r\n return itemId;\r\n }",
"@java.lang.Override\n public long getItemId() {\n return itemId_;\n }",
"public Builder setItemId(long value) {\n \n itemId_ = value;\n onChanged();\n return this;\n }",
"public String getItemId() {\r\n return itemId;\r\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The Plaid Item ID. The `item_id` is always unique; linking the same account at the same institution twice will result in two Items with different `item_id` values. Like all Plaid identifiers, the `item_id` is case-sensitive.\")\n\n public String getItemId() {\n return itemId;\n }",
"public int getItemId() {\n return itemId;\n }",
"public Integer getId() {\n\t\treturn wishlistItemId;\n\t}",
"@Override\r\n public int getItemId() {\n return this.itemId;\r\n }",
"void setItemId(String itemId);",
"public final ItemId getId() {\r\n return null;\r\n }",
"public String getItemId() {\n return itemId;\n }",
"@java.lang.Override\n public long getItemId() {\n return itemId_;\n }",
"@Override\r\n public void setItemId(int itemId) {\n this.itemId = itemId;\r\n }",
"public int getItemId() {\n\t\treturn id;\n\t}",
"public void setItemId(Long itemId) {\r\n this.itemId = itemId;\r\n }",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"public Integer getItemid() {\n return itemid;\n }",
"public Integer getItemid() {\n return itemid;\n }",
"int getItemId() {\n return m_itemId;\n }",
"public String getItemID() {\n\t return this.itemID;\n\t}",
"public String getItemId(){\r\n\t\treturn \"\";\r\n\t}",
"public void setID(long id);",
"long getID(Object item);",
"public void setId(long id) {\n id_ = id;\n }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"@Override public String getID() { return id;}",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }",
"public void setId(int id){ this.id = id; }",
"public void setID(int id){\n this.ID = id;\n }",
"private void setId(Integer id) { this.id = id; }",
"public void setId(int i) { id = i; }",
"public void setId (long id)\r\n {\r\n _id = id;\r\n }",
"public int getID() {\n return this._id;\n }",
"public int getListId()\n {\n return listId;\n }",
"public String getID() {\r\n return id;\r\n }",
"@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }",
"@ApiModelProperty(value = \"Uniquely identifies the resource within the collection of like resources.\")\n @JsonProperty(\"Id\")\n public String getId() {\n return id;\n }",
"public String getID()\n {\n return this.id;\n }",
"public void setId(String idIn) {\n this.id = idIn;\n }",
"public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}",
"public void setID(int i) {\n\t\tthis.id = i;\n\t}",
"public String getID()\r\n {\r\n return id;\r\n }",
"public String getID()\r\n {\r\n return this.id;\r\n }",
"public void setID(int id);",
"public void setID(String id){\n this.id = id;\n }",
"public void setID(int i){\n\t\tid = i;\n\t}",
"public void setID(int value) {\n this.id = value;\n }",
"public void setID(int id){\n this.id=id;\n }",
"public ArrayList<String> getListingIds() {\n\t \n\t return this.listingIds;\n }",
"public void setID(long value) {\n this.id = value;\n }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getID() {\n return id;\n }",
"public void setId(String i) {\n\t\tid = i;\n\t}",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"public String getID() {\r\n \t\treturn _id;\r\n \t}",
"public long getID() {\n return ID;\n }",
"public long getID() {\n return ID;\n }",
"public void setId(Long id) \n {\n this.id = id;\n }",
"public void setId(String id) {\n this.id = id;\n }",
"public int getID() {\r\n return id;\r\n }",
"public Long id() { return this.id; }",
"public String getItemIdentifier();",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public String id() {\r\n return id;\r\n }",
"public int getID() {return id;}",
"public int getID() {return id;}",
"@Override\n public long getId() {\n return id;\n }",
"public Long getID() {\n return id;\n }",
"public int getID() {\r\n return ID;\r\n }",
"public void setId(Long value) {\r\n this.id = value;\r\n }",
"public Long getItemLocationId() {\r\n return itemLocationId;\r\n }",
"public long getId() { return this.id; }",
"public long getID() {\n return _id;\n }",
"public int getID() {\n return id;\r\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"@Override\r\n\tpublic String getID() {\n\t\treturn super.id;\r\n\t}",
"protected void setID(int i){\r\n\t\tthis.ID = i;\r\n\t}",
"@Override\n public long getItemId(int itemId) {\n return itemId;\n }",
"public long getId() { return _id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }"
]
| [
"0.67909706",
"0.67860454",
"0.6782682",
"0.67345035",
"0.67219806",
"0.6710926",
"0.6635152",
"0.6622256",
"0.6607931",
"0.66028565",
"0.658488",
"0.65842175",
"0.65699834",
"0.65551776",
"0.65528035",
"0.6550674",
"0.65444493",
"0.65377444",
"0.6533094",
"0.65127295",
"0.65127295",
"0.64981407",
"0.64981407",
"0.64612025",
"0.64585906",
"0.64368707",
"0.64233434",
"0.64146227",
"0.6391578",
"0.63846433",
"0.63846433",
"0.6308397",
"0.6297877",
"0.6297877",
"0.62804896",
"0.6279517",
"0.62768406",
"0.62692153",
"0.6261925",
"0.62539464",
"0.6245708",
"0.6228341",
"0.6227482",
"0.6226515",
"0.62181884",
"0.6216542",
"0.6214111",
"0.6208929",
"0.6192833",
"0.61919487",
"0.6185721",
"0.6181038",
"0.6172617",
"0.61703074",
"0.61693954",
"0.6158136",
"0.6156558",
"0.6153463",
"0.6153463",
"0.6153463",
"0.61514777",
"0.61443007",
"0.6140206",
"0.6140206",
"0.6139863",
"0.6131594",
"0.6131594",
"0.6123435",
"0.6122204",
"0.6121411",
"0.61213124",
"0.6116521",
"0.611601",
"0.611601",
"0.61109203",
"0.61108977",
"0.61108977",
"0.6109832",
"0.6106107",
"0.6102311",
"0.61000276",
"0.6092357",
"0.6092125",
"0.6089625",
"0.6088731",
"0.6084795",
"0.6084795",
"0.6084795",
"0.6084795",
"0.6084795",
"0.6084795",
"0.6084795",
"0.6083578",
"0.60802966",
"0.60768974",
"0.6076345",
"0.60701495",
"0.60701495",
"0.60701495",
"0.60701495",
"0.60701495"
]
| 0.0 | -1 |
public getter Indicates whether the user who was the feedback recipient was a Buyer or the Seller for that transaction. | public TradingRoleCodeType getRole() {
return this.role;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSeller(){\n\t\tif(sellerFlag == 1) return true;\n\t\telse return false;\n\t}",
"public char getIsSeller() {\n\treturn isSeller;\n}",
"public String getSeller() {\n return seller;\n }",
"public String getSeller() {\n return seller;\n }",
"public String getBuyer() {\n return buyer;\n }",
"java.lang.String getSeller();",
"public String getBuyerName() {\n return buyerName;\n }",
"public String getBuyerContactor() {\n return buyerContactor;\n }",
"public Seller getSeller() {\n\t\treturn seller;\n\t}",
"public boolean getWishOfUser() {\n return wishOfUSer;\n }",
"public boolean isNonFundedBuyer(Integer buyerId);",
"public String getBestSeller ()\n {\n return (bestSeller);\n }",
"public Integer getBuyerRateStatus() {\n return buyerRateStatus;\n }",
"public String getSellerSKU() {\n return sellerSKU;\n }",
"@JsonIgnore public Participant getSeller() {\n return (Participant) getValue(\"seller\");\n }",
"@java.lang.Override\n public java.lang.String getSeller() {\n java.lang.Object ref = seller_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n seller_ = s;\n return s;\n }\n }",
"public Integer getSellerRateStatus() {\n return sellerRateStatus;\n }",
"public java.lang.String getSeller() {\n java.lang.Object ref = seller_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n seller_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Boolean getNeedBuyerAddressAndPhone() {\n return needBuyerAddressAndPhone;\n }",
"public Byte getSellerType() {\n return sellerType;\n }",
"public boolean isSetSellerList() {\n return this.sellerList != null;\n }",
"public Long getBuyerId() {\r\n return buyerId;\r\n }",
"public Long getSellerId() {\n return sellerId;\n }",
"public Long getSellerId() {\n return sellerId;\n }",
"public void setIsSeller(char isSeller) {\n\tthis.isSeller = isSeller;\n}",
"public boolean isSetSellerOrderId() {\r\n return sellerOrderId != null;\r\n }",
"@Override\n public boolean isExists(Buyer buyer) {\n return false;\n }",
"public Number getBuyerId() {\n return (Number)getAttributeInternal(BUYERID);\n }",
"public boolean isTouAgree() {\n return touAgreeFlag;\n }",
"public Integer getSellerId() {\n return sellerId;\n }",
"public Number getBuyerId() {\n return (Number) getAttributeInternal(BUYERID);\n }",
"@Override\n\tpublic java.lang.String getSellerName() {\n\t\treturn _buySellProducts.getSellerName();\n\t}",
"public String getSellerSku() {\n return sellerSku;\n }",
"@ApiModelProperty(value = \"If the transaction is a money transfer and cross-border or U.S. domestic, this field must contain the sender's name.<br><br>If the transaction is a funds disbursement and cross-border or U.S. domestic, this field must contain either the name of the merchant or government entity sending the funds disbursement.<br><br>If the transaction is a pre-paid load or credit card bill pay and U.S. domestic, this field must contain the sender's name.<br><br>Recommended Format: Last Name/Family Surname 1 + Space + Last Name/Family Surname 2 (optional) + Space + First Name/Given Name + Space + Middle Initial or Middle name (optional) + space<br><br>Example: Doe John A\")\n public String getSenderName() {\n return senderName;\n }",
"public boolean isCarried() {\n return transportable != null\n && transportable.getLocation() == carrier;\n }",
"public boolean getIsDonor() {\n\t\treturn this.isDonor;\n\t}",
"public boolean isSold() {\n return sold;\n }",
"public void setSeller(String seller) {\n this.seller = seller;\n }",
"public void setSeller(String seller) {\n this.seller = seller;\n }",
"public boolean IsPayed(){\n\t\treturn payed;\n\t}",
"public boolean hasDonator() {\n return donator_ != null;\n }",
"public boolean hasDonator() {\n return donatorBuilder_ != null || donator_ != null;\n }",
"boolean hasDonator();",
"public void setBuyer(String buyer) {\n this.buyer = buyer;\n }",
"public com.google.protobuf.ByteString\n getSellerBytes() {\n java.lang.Object ref = seller_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n seller_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getBooked(){\n if (booked==true)\n return \"Booked\";\n else\n return \"Not Booked\";\n }",
"public Boolean getIsOnSale() {\n return isOnSale;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getSellerBytes() {\n java.lang.Object ref = seller_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n seller_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public char getIsBidder() {\n\treturn isBidder;\n}",
"boolean isEligible(@Nonnull Urn userUrn, @Nonnull RecommendationRequestContext requestContext);",
"public boolean getAccepted_tou();",
"public String getSellerOrderId() {\r\n return sellerOrderId;\r\n }",
"public boolean isSubscriber(String callerId) throws DAOException\n\t{\n\t\tUserBean user = UserManagerImpl.getInstance().loadByPrimaryKey(callerId);\n\n\t\tif (user != null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"private boolean isEncapsulatingBet(BetSlipResponse betSlipResponse) {\n boolean result = betSlipResponse.getTransactions().size() > 0;\n\n for (TransactionResponse transactionResponse : betSlipResponse.getTransactions()) {\n result &= transactionResponse.getTransactionTypeId() == TransactionType.BET.getId();\n }\n\n return result;\n }",
"private boolean checkIfTransactionIsPossible(Account sender, Account receiver){\n if ((sender.getType() == Account.TypeEnum.SAVING) || (receiver.getType() == Account.TypeEnum.SAVING) ){\n // one cannot directly transfer from a savings account to an account that is not of the same customer\n if (sender.getOwnerId() == receiver.getOwnerId()) {\n if (!sender.getIBAN().equals(receiver.getIBAN())) {\n return true;\n } else {\n throw new IllegalArgumentException(\"Accounts sender and receiver cannot be the same account\");\n }\n } else {\n throw new IllegalArgumentException(\"Saving Accounts sender or receiver cannot belong to different customers\");\n }\n }\n //if senderAccount is Checking, can send money to other checking account or his own saving account\n else if(sender.getType() == Account.TypeEnum.CHECKING){\n if (!sender.getIBAN().equals(receiver.getIBAN())) {\n return true;\n } else {\n throw new IllegalArgumentException(\"Accounts sender and receiver cannot be the same account\");\n }\n }\n return false;\n }",
"public boolean isSetSender() {\n return this.sender != null;\n }",
"public Boolean getIsRecommend() {\n return isRecommend;\n }",
"public boolean acceptedTradeOffer()\n\t{\n\t\treturn m_isReadyToTrade;\n\t}",
"public String getBuyerNew() {\n return (String) getAttributeInternal(BUYERNEW);\n }",
"public void setBestSeller (String bS)\n {\n bestSeller = bS;\n }",
"public boolean isHasAlreadyReviewed() {\r\n boolean result = false;\r\n if (ui.isIsUserAuthenticated() && professionalStatus.isIsProfessional()) {\r\n Users user = ui.getUser();\r\n if (recipe != null) {\r\n for (Review rev : recipe.getReviews()) {\r\n if (rev.getReviewer().getUserName().equals(user.getUserName())) {\r\n result = true;\r\n break;\r\n }\r\n }//end for\r\n }\r\n }// end value != null\r\n return result;\r\n }",
"public boolean isBooked(){\n return booked;\n }",
"public boolean isBuyable();",
"boolean isDisplayMessageOnRedeem();",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Seller)) {\n return false;\n }\n Seller other = (Seller) object;\n if ((this.sellerId == null && other.sellerId != null) || (this.sellerId != null && !this.sellerId.equals(other.sellerId))) {\n return false;\n }\n return true;\n }",
"public String getBuyerContactPhone() {\n return buyerContactPhone;\n }",
"private boolean isContactableUser() {\r\n\r\n return (friendFeed == null || friendFeed.getContact() == null) ? false\r\n : friendFeed.getContact().isContactable();\r\n }",
"public boolean isSetRequesting_user() {\n return this.requesting_user != null;\n }",
"public boolean hasSecondItemToBuy() {\n return this.secondItemToBuy != null;\n }",
"public String getEbaynoweligible() {\r\n return ebaynoweligible;\r\n }",
"public String getDebtor() {\n return debtor;\n }",
"com.google.protobuf.ByteString\n getSellerBytes();",
"public long getBookedBy() {\n\t\treturn bookedBy;\n\t}",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"public boolean isSubscriber(String retailerName) {\n\t\t// begin\n\t\treturn subscribers.contains(retailerName);\n\t\t// end\n\t\t// return false;\n\t}",
"public User getRecommendUser() {\n\t\treturn RecommendUser;\n\t}",
"public boolean getUser () {\n return user;\n }",
"public boolean getAuthorisedUser() {\n return authorisedUser;\n }",
"public boolean getUserMaintOK() {\n return userMaintOK;\n }",
"boolean hasIsRedeemed();",
"boolean hasSenderName();",
"boolean hasSenderName();",
"public boolean isSetBuycardate() {\n return this.buycardate != null;\n }",
"public Boolean getPayType() {\n return payType;\n }",
"public String getFreightPayer() {\n return freightPayer;\n }",
"public Boolean getSalestatus() {\n return salestatus;\n }",
"public boolean isOriginator() {\n return originator;\n }",
"@ApiModelProperty(value = \"If the transaction is a money transfer, pre-paid load, or credit card bill pay, and if the sender intends to fund the transaction with a non-financial instrument (for example, cash), a reference number unique to the sender is required.<br><br>If the transaction is a funds disbursement, the field is required.<br><br> This field is required if senderAccountNumber is not sent.\")\n public String getSenderReference() {\n return senderReference;\n }",
"public String getShopperEmail() {\n return shopperEmail;\n }",
"public boolean isUserApproval() {\n\n if (!ACTION_UserChoice.equals(getAction())) {\n return false;\n }\n\n return (getColumn() != null) && \"IsApproved\".equals(getColumn().getColumnName());\n\n }",
"private void getUserIsSoldChoice() {\n int checkedChipId = mBinding.chipGroupIsSold.getCheckedChipId();\n if (checkedChipId == R.id.chip_yes_sold) {\n mChipIsSoldInput = 1;\n } else if (checkedChipId == R.id.chip_no_sold) {\n mChipIsSoldInput = 0;\n } else {\n mChipIsSoldInput = 10;\n }\n }",
"boolean hasBidrequest();",
"public String getBuyStrategy() {\r\n return buyStrategy;\r\n }",
"public Bidder getBidder() {\n return Bootstrap.getInstance().getUserRepository().fetchAll().stream()\n .filter(user -> user.getType() == UserType.BIDDER && user.getId() == this.bidderId)\n .map(user -> (Bidder) user)\n .findFirst().orElse(null);\n }",
"boolean hasAdvertisingPartner();",
"@Schema(description = \"A seller-defined identifier for an order.\")\n public String getSellerOrderId() {\n return sellerOrderId;\n }"
]
| [
"0.7302724",
"0.68709123",
"0.65086466",
"0.65086466",
"0.6425799",
"0.6356493",
"0.6189192",
"0.61383826",
"0.6110831",
"0.60736626",
"0.6068712",
"0.60512275",
"0.6045407",
"0.602874",
"0.60156566",
"0.6011256",
"0.60085464",
"0.59890884",
"0.5951601",
"0.59251523",
"0.5892963",
"0.5867667",
"0.58582145",
"0.58582145",
"0.5826386",
"0.5813362",
"0.5805278",
"0.5772484",
"0.5762136",
"0.57390195",
"0.57363415",
"0.56946784",
"0.56722724",
"0.5656558",
"0.56291926",
"0.5597283",
"0.55883485",
"0.5587275",
"0.5587275",
"0.55785424",
"0.55748224",
"0.55622095",
"0.55563116",
"0.55449224",
"0.5537586",
"0.5513002",
"0.5512283",
"0.54950565",
"0.5434034",
"0.540659",
"0.53977716",
"0.5396297",
"0.53901875",
"0.53871685",
"0.5381625",
"0.53803736",
"0.5361486",
"0.53613067",
"0.53303",
"0.53224",
"0.5312186",
"0.5290075",
"0.5286038",
"0.5274677",
"0.5271116",
"0.5238009",
"0.5234947",
"0.52249837",
"0.5220284",
"0.5215503",
"0.5211948",
"0.52060515",
"0.5202978",
"0.5196474",
"0.5196474",
"0.5196474",
"0.5196474",
"0.5196474",
"0.5196474",
"0.5191007",
"0.51764584",
"0.5175955",
"0.5168323",
"0.5156187",
"0.51510227",
"0.5144944",
"0.5144944",
"0.5141215",
"0.51387197",
"0.51316124",
"0.5130979",
"0.5123124",
"0.5121861",
"0.5116672",
"0.5112585",
"0.5111005",
"0.5098179",
"0.5089397",
"0.5085602",
"0.50831264",
"0.5074967"
]
| 0.0 | -1 |
public setter Indicates whether the user who was the feedback recipient was a Buyer or the Seller for that transaction. | public void setRole(TradingRoleCodeType role) {
this.role = role;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIsSeller(char isSeller) {\n\tthis.isSeller = isSeller;\n}",
"public boolean isSeller(){\n\t\tif(sellerFlag == 1) return true;\n\t\telse return false;\n\t}",
"public void setBuyer(String buyer) {\n this.buyer = buyer;\n }",
"public char getIsSeller() {\n\treturn isSeller;\n}",
"public void setSeller(String seller) {\n this.seller = seller;\n }",
"public void setSeller(String seller) {\n this.seller = seller;\n }",
"public String getBuyer() {\n return buyer;\n }",
"public String getSeller() {\n return seller;\n }",
"public String getSeller() {\n return seller;\n }",
"public void setBestSeller (String bS)\n {\n bestSeller = bS;\n }",
"public void setIsBidder(char isBidder) {\n\tthis.isBidder = isBidder;\n}",
"public String getBuyerName() {\n return buyerName;\n }",
"public String getBuyerContactor() {\n return buyerContactor;\n }",
"public Long getBuyerId() {\r\n return buyerId;\r\n }",
"public Seller getSeller() {\n\t\treturn seller;\n\t}",
"@ApiModelProperty(value = \"If the transaction is a money transfer and cross-border or U.S. domestic, this field must contain the sender's name.<br><br>If the transaction is a funds disbursement and cross-border or U.S. domestic, this field must contain either the name of the merchant or government entity sending the funds disbursement.<br><br>If the transaction is a pre-paid load or credit card bill pay and U.S. domestic, this field must contain the sender's name.<br><br>Recommended Format: Last Name/Family Surname 1 + Space + Last Name/Family Surname 2 (optional) + Space + First Name/Given Name + Space + Middle Initial or Middle name (optional) + space<br><br>Example: Doe John A\")\n public String getSenderName() {\n return senderName;\n }",
"public String getSellerSKU() {\n return sellerSKU;\n }",
"public Boolean getNeedBuyerAddressAndPhone() {\n return needBuyerAddressAndPhone;\n }",
"public boolean isSetSellerList() {\n return this.sellerList != null;\n }",
"java.lang.String getSeller();",
"public Long getSellerId() {\n return sellerId;\n }",
"public Long getSellerId() {\n return sellerId;\n }",
"public void setSellerType(Byte sellerType) {\n this.sellerType = sellerType;\n }",
"public void setIsDonor(boolean isDonor) {\n\t\tthis.isDonor = isDonor;\n\t}",
"public boolean isNonFundedBuyer(Integer buyerId);",
"public Integer getBuyerRateStatus() {\n return buyerRateStatus;\n }",
"public boolean getWishOfUser() {\n return wishOfUSer;\n }",
"public Builder setSeller(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n seller_ = value;\n onChanged();\n return this;\n }",
"public boolean isSetSellerOrderId() {\r\n return sellerOrderId != null;\r\n }",
"public Integer getSellerRateStatus() {\n return sellerRateStatus;\n }",
"public Byte getSellerType() {\n return sellerType;\n }",
"public void setBooked(boolean confirmed){\n booked = confirmed;\n }",
"public void setBuyerId(Number value) {\n setAttributeInternal(BUYERID, value);\n }",
"public void setBuyerId(Number value) {\n setAttributeInternal(BUYERID, value);\n }",
"public void setAccepted_tou(boolean accepted_tou);",
"public void setRequester(User requester) {\n this.requester = requester;\n }",
"public Integer getSellerId() {\n return sellerId;\n }",
"public void setWho_booked(String who_booked)\n {\n this.who_booked = who_booked;\n }",
"@Override\n public boolean isExists(Buyer buyer) {\n return false;\n }",
"@java.lang.Override\n public java.lang.String getSeller() {\n java.lang.Object ref = seller_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n seller_ = s;\n return s;\n }\n }",
"public void setSender(boolean besender) {\n if (this.sender != besender) {\n SSRCCache sSRCCache;\n if (besender) {\n sSRCCache = this.cache;\n sSRCCache.sendercount++;\n setAlive(true);\n } else {\n sSRCCache = this.cache;\n sSRCCache.sendercount--;\n }\n this.sender = besender;\n }\n }",
"@JsonIgnore public Participant getSeller() {\n return (Participant) getValue(\"seller\");\n }",
"public void setSellerRateStatus(Integer sellerRateStatus) {\n this.sellerRateStatus = sellerRateStatus;\n }",
"public void setSellerOrderId(String sellerOrderId) {\r\n this.sellerOrderId = sellerOrderId;\r\n }",
"public void setBuyerName(String buyerName) {\n this.buyerName = buyerName == null ? null : buyerName.trim();\n }",
"public void setPaid() {\n isPaid = true;\n }",
"public java.lang.String getSeller() {\n java.lang.Object ref = seller_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n seller_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setBuyerRateStatus(Integer buyerRateStatus) {\n this.buyerRateStatus = buyerRateStatus;\n }",
"public String getBestSeller ()\n {\n return (bestSeller);\n }",
"public static void setProvideFeedback(boolean b){\n\t\tprovideFeedback = b;\t \n\t}",
"public Number getBuyerId() {\n return (Number)getAttributeInternal(BUYERID);\n }",
"@Override\n\tpublic void setSellerName(java.lang.String sellerName) {\n\t\t_buySellProducts.setSellerName(sellerName);\n\t}",
"public String getSellerSku() {\n return sellerSku;\n }",
"public Number getBuyerId() {\n return (Number) getAttributeInternal(BUYERID);\n }",
"public boolean isTouAgree() {\n return touAgreeFlag;\n }",
"public void setDealerName(String dealerName);",
"@Override\n public boolean promote(Seller seller) {\n sellerDao.update(seller);\n return true;\n }",
"public void setWishOfUser(boolean wish) {\n this.wishOfUSer = wish;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Seller)) {\n return false;\n }\n Seller other = (Seller) object;\n if ((this.sellerId == null && other.sellerId != null) || (this.sellerId != null && !this.sellerId.equals(other.sellerId))) {\n return false;\n }\n return true;\n }",
"public void setSellerId(Integer sellerId) {\n this.sellerId = sellerId;\n }",
"public void setReviewedBy(java.lang.String value);",
"public void setBuyerId(Long buyerId) {\r\n this.buyerId = buyerId;\r\n }",
"private void getUserIsSoldChoice() {\n int checkedChipId = mBinding.chipGroupIsSold.getCheckedChipId();\n if (checkedChipId == R.id.chip_yes_sold) {\n mChipIsSoldInput = 1;\n } else if (checkedChipId == R.id.chip_no_sold) {\n mChipIsSoldInput = 0;\n } else {\n mChipIsSoldInput = 10;\n }\n }",
"@Override\n protected void acceptTrade(Territory offerer, double demand, int typeDemand, double offer, int typeOffer){\n // An example for accepting a trade proposal: I only accept offers of peasants when I have less than 3 peasants\n // I am not checking what I am giving in exchange or how much, so you should work on that\n if (typeOffer == 3 && typeDemand == 2){\n acceptTrade = true;// no matter the amounts\n }\n else acceptTrade = false;\n }",
"@Override\n public boolean hire(Seller seller) {\n sellerDao.save(seller);\n return true;\n }",
"@Override\n\tpublic void affectInsuranceToBuyer(int insId, int buyerId) {\n\n\t}",
"public void setSellerId(Long sellerId) {\n this.sellerId = sellerId;\n }",
"public void setSellerId(Long sellerId) {\n this.sellerId = sellerId;\n }",
"public boolean isSetSender() {\n return this.sender != null;\n }",
"public void setBuyerNew(String value) {\n setAttributeInternal(BUYERNEW, value);\n }",
"public void setBorrowed(boolean isBorrowed){ this.isBorrowed = isBorrowed; }",
"public boolean isSold() {\n return sold;\n }",
"public void setIsRemitTo(boolean IsRemitTo) {\n\t\tset_Value(\"IsRemitTo\", new Boolean(IsRemitTo));\n\t}",
"public boolean IsPayed(){\n\t\treturn payed;\n\t}",
"public void setCreator(User creator) {\n this.creator = creator;\n }",
"public com.google.protobuf.ByteString\n getSellerBytes() {\n java.lang.Object ref = seller_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n seller_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setBuyerContactor(String buyerContactor) {\n this.buyerContactor = buyerContactor == null ? null : buyerContactor.trim();\n }",
"@Override\n\tpublic java.lang.String getSellerName() {\n\t\treturn _buySellProducts.getSellerName();\n\t}",
"public void setCreator(SystemUserBO creator)\n {\n _creator = creator;\n _model.setCreator(creator.getModel());\n }",
"public void setDebtor(String debtor) {\n this.debtor = debtor;\n }",
"public Builder setSellerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n seller_ = value;\n onChanged();\n return this;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getSellerBytes() {\n java.lang.Object ref = seller_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n seller_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setIsSOTrx (boolean IsSOTrx);",
"public Boolean getIsOnSale() {\n return isOnSale;\n }",
"@ApiModelProperty(value = \"If the transaction is a money transfer, pre-paid load, or credit card bill pay, and if the sender intends to fund the transaction with a non-financial instrument (for example, cash), a reference number unique to the sender is required.<br><br>If the transaction is a funds disbursement, the field is required.<br><br> This field is required if senderAccountNumber is not sent.\")\n public String getSenderReference() {\n return senderReference;\n }",
"public void setCallingUser(entity.User value);",
"public void payedConfirmation(){\n\t\tassert reserved: \"a seat also needs to be reserved when bought\";\n\t\tassert customerId != -1: \"this seat needs to have a valid user id\";\n\t\tpayed = true;\n\t}",
"@Override\n\tpublic boolean send(String userId, ArrayList<String> transactionIds,\n\t\t\tfloat netValue) {\n\t\t// TODO Auto-generated method stub\n\t\t// Account senderAccount = accountManager.getAccountByUserId(userId);\n\t\tAccount senderAccount = accountManager.getAccountByUserId(userId);\n\t\tif (senderAccount == null) {\n\t\t\ttry {\n\t\t\t\tsenderAccount = accountDao.getByUserId(userId);\n\t\t\t\tif (senderAccount == null)\n\t\t\t\t\treturn false;\n\t\t\t} catch (AccountNotFoundException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t}\n\t\tUser sender;// = userManager.getUser(senderAccount);\n\t\tif (userManager.hasUser(senderAccount)) {\n\t\t\tsender=utils.reinitializeUser(senderAccount);\n\t\t\tif(sender==null)\n\t\t\t{\n\t\t\t\t//throw exception\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tsender = userManager.getUser(senderAccount);\n\t\tArrayList<Transaction> transactions = sender\n\t\t\t\t.getTransactions(transactionIds);\n\t\t// this below statement also sets the receiver objects depending on the\n\t\t// transactions\n\t\tSuggestion newSuggestion = suggestionCreator.createSuggestion(\n\t\t\t\tsenderAccount, transactions, netValue);\n\t\tString suggestionId = suggestionDao.addSuggestion(newSuggestion);\n\t\tif (suggestionId == null) {\n\t\t\tsuggestionId = suggestionDao.addSuggestion(newSuggestion);\n\t\t\tif (suggestionId == null) {\n\t\t\t\t// an exception should be thrown\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tnewSuggestion.setSuggestionId(suggestionId);\n\t\tArrayList<SuggestionReceiver> receivers = newSuggestion.getReceivers();\n\t\tsender.addSuggestion(newSuggestion);\n\t\tfor (int i = 0; i < receivers.size(); i++) {\n\t\t\t// we are creating seperate notification object for each receiver so\n\t\t\t// each one of them has its own identity\n\t\t\tNotification newNotification = notificationCreator\n\t\t\t\t\t.createNotification(senderAccount, transactionIds,\n\t\t\t\t\t\t\tnetValue, true, false,\n\t\t\t\t\t\t\tnewSuggestion.getSuggestionId(), receivers.get(i)\n\t\t\t\t\t\t\t\t\t.getReceiver().getUserId());\n\t\t\tUser receiver;\n\t\t\tif (!userManager.hasUser(receivers.get(i).getReceiver())) {\n\t\t\t\treceiver = userManager.reInitializeUser(receivers.get(i)\n\t\t\t\t\t\t.getReceiver());\n\t\t\t\t// fix this\n\t\t\t}\n\t\t\treceiver = userManager.getUser(receivers.get(i).getReceiver());\n\t\t\treceiver.addNewNotification(newNotification);\n\t\t\tuserManager.setUser(receiver);\n\t\t}\n\t\treturn true;\n\t}",
"protected boolean customerWantsMeat() { return true; }",
"public void setNeedBuyerAddressAndPhone(Boolean needBuyerAddressAndPhone) {\n this.needBuyerAddressAndPhone = needBuyerAddressAndPhone;\n }",
"public String getSellerOrderId() {\r\n return sellerOrderId;\r\n }",
"public void setIsRecommend(Boolean isRecommend) {\n this.isRecommend = isRecommend;\n }",
"@Override\n\tpublic boolean approvePartner(Partner partner) {\n\t\treturn false;\n\t}",
"public String getBuyerContactPhone() {\n return buyerContactPhone;\n }",
"public Boolean getIsRecommend() {\n return isRecommend;\n }",
"public int getPropertyBuyerId() {\n\t\treturn propertyBuyerId;\n\t}",
"public boolean getAccepted_tou();",
"@ApiModelProperty(value = \"This identifier is optionally provided during the product ordering and stored for informative purpose in the seller inventory\")\n @JsonProperty(\"buyerProductId\")\n public String getBuyerProductId() {\n return buyerProductId;\n }",
"public boolean getIsDonor() {\n\t\treturn this.isDonor;\n\t}",
"public void setRecipient(Object recipient) {\n\t\tthis.recipient = recipient;\n\t}",
"public boolean isBooked(){\n return booked;\n }"
]
| [
"0.68548",
"0.6774946",
"0.6600331",
"0.63917166",
"0.631111",
"0.631111",
"0.621184",
"0.61526865",
"0.61526865",
"0.6033199",
"0.58784217",
"0.5875626",
"0.58391464",
"0.58040553",
"0.578731",
"0.57717687",
"0.571438",
"0.5692321",
"0.5671277",
"0.5670686",
"0.5662321",
"0.5662321",
"0.5660145",
"0.56595224",
"0.5645728",
"0.5644256",
"0.5641777",
"0.56225145",
"0.55790377",
"0.5569803",
"0.5559154",
"0.55487716",
"0.5539248",
"0.5539248",
"0.55327296",
"0.55255395",
"0.55104554",
"0.55041945",
"0.5485532",
"0.5484395",
"0.54774594",
"0.5467572",
"0.5453833",
"0.54337996",
"0.54336244",
"0.5419439",
"0.54026395",
"0.5396313",
"0.5394774",
"0.53906727",
"0.5372389",
"0.5364946",
"0.53602934",
"0.53497094",
"0.53489983",
"0.5341238",
"0.531487",
"0.53087413",
"0.53038865",
"0.5296724",
"0.52911",
"0.52823555",
"0.52759814",
"0.52752167",
"0.527325",
"0.5273018",
"0.52671003",
"0.52671003",
"0.5263031",
"0.5229026",
"0.52176094",
"0.5217436",
"0.5185258",
"0.51748157",
"0.51746136",
"0.5152128",
"0.5151483",
"0.51404643",
"0.51320016",
"0.512783",
"0.5120736",
"0.5105558",
"0.51036376",
"0.5099079",
"0.50914985",
"0.50856787",
"0.5079015",
"0.5075082",
"0.50692713",
"0.50599587",
"0.5054838",
"0.50455046",
"0.5040382",
"0.50346303",
"0.5034253",
"0.5033237",
"0.5032569",
"0.50304425",
"0.5029506",
"0.50179344",
"0.5008941"
]
| 0.0 | -1 |
public getter Name of the listing for which feedback was provided. Returned as CDATA. Not returned if a listing ended more than 90 days ago. | public String getItemTitle() {
return this.itemTitle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String getFeedback() {\n\t\t\n\t\tString feedback = new String();\n\t\t\n\t\treturn feedback;\n\t}",
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"org.hl7.fhir.String getComments();",
"public String getDescription() {\n if ((desc == null) && (forVar != null)) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.LONG_NAME);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(\"description\");\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(CDM.TITLE);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(CF.STANDARD_NAME);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n }\n return (desc == null) ? null : desc.trim();\n }",
"java.lang.String getDesc();",
"String getSlingDescription();",
"java.lang.String getComments();",
"String getDesc();",
"public String getDescription()\n\t{\n\t\treturn this.name;\n\t}",
"String getCName() {\n return nameTF.getText();\n }",
"public java.lang.String getDescription() {\n return localDescription;\n }",
"public String getFeedbackResponse() {\n\t return this.feedbackResponse;\n\t}",
"public String getAnnouncement();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"public java.lang.String getZqu__List_Name__c() {\r\n return zqu__List_Name__c;\r\n }",
"public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }",
"public String getLstCustName() {\n return lstCustName;\n }",
"public String getDescription() {\n\t if(fullDescription == null) {\n\t if(description == null || isExtensionListInDescription()) {\n \t\t fullDescription = description==null ? \"(\" : description + \" (\";\n\t\t // build the description from the extension list\n\t\t Enumeration extensions = filters.keys();\n\t\t if(extensions != null) {\n\t\t fullDescription += \".\" + (String) extensions.nextElement();\n\t\t while (extensions.hasMoreElements()) {\n\t\t\t fullDescription += \", .\" + (String) extensions.nextElement();\n\t\t }\n\t\t }\n\t\t fullDescription += \")\";\n\t } else {\n\t\t fullDescription = description;\n\t }\n\t }\n\t return fullDescription;\n }",
"public String getListingduration() {\r\n return listingduration;\r\n }",
"public String getcatgdesc() {\n return (String) getAttributeInternal(CATGDESC);\n }",
"@Override\n public String getName() {\n return this.desc;\n }",
"public String getcDescription() {\n return cDescription;\n }",
"public String getFeedbackID() {\n\t return this.feedbackID;\n\t}",
"public String getName() {\r\n return listName;\r\n }",
"public String getDetails() {\r\n\t\treturn \"Loan Id: \" + loanId + \"\\n\\rStock Id: \" + stockId + \" \\n\\rDate of loan: \" + loanDate + \"\\n\\r Has the loan been returned?: \" + isReturned + \" \\n\\rFine owed: \" + loanFine.getFine();\r\n\t}",
"public String getDescName() {\r\n return _descName;\r\n }",
"String getDisplay_description();",
"public String getComments() {\n return (String) getAttributeInternal(COMMENTS);\n }",
"@Override\r\n\tpublic List<Feedback> getFeedbacklist() {\n\t\tList<Feedback> flist= frepository.findAll();\r\n\t\treturn flist;\r\n\t}",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"public String getCustomerDescriptiveName() {\r\n return customerDescriptiveName;\r\n }",
"public String getMyActivitiesListViewTxt() {\n\t\tString methodID = \"getMyActivitiesListViewTxt\";\n\t\t\n\t\tWebElement myActivitiesLisViewInfo = driver.findElement(By.xpath(\"//*[@id='myactivity_list']/ul\"));\n\t\t\n\t\treturn myActivitiesLisViewInfo.getText();\t\t\n\t}",
"public String getDescription(){\n\t\treturn \"\" ; //trim(thisInstance.getDescription());\n\t}",
"public String getComments() { \n\t\treturn getCommentsElement().getValue();\n\t}",
"public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }",
"public java.lang.String getDescription(){\r\n return this.description;\r\n }",
"private String getTestPersistedListing() {\n StringBuilder sb = new StringBuilder();\n SimpleDateFormat sdf = new SimpleDateFormat(ListingFileHelper.DATE_FORMAT);\n sb.append(sdf.format(getTestListingDateTimeStamp()));\n sb.append(\"~\");\n sb.append(testTvShow);\n sb.append(\"~\");\n sb.append(testTitle);\n sb.append(\"~\");\n sb.append(testChannel.getChannelName());\n return sb.toString();\n }",
"public String getRelatedActivitiesListViewTxt() {\n\t\tString methodID = \"getRelatedActivitiesListViewTxt\";\n\t\t\n\t\tWebElement relActivitiesLisViewInfo = driver.findElement(By.xpath(\"//*[@id='activity_related']/ul\"));\n\t\t\n\t\treturn relActivitiesLisViewInfo.getText();\t\t\n\t}",
"public String getDescription()\r\n\t{\r\n\t\tStringBuilder msgreturn = new StringBuilder().append(m_name).append(\" \").append(m_taxBaseAmt.toString());\r\n\t\treturn msgreturn.toString();\r\n\t}",
"public String getDescription()\r\n {\r\n return this.aDescription ;\r\n }",
"String getDoctorName();",
"public String getDescription() {\n if (description == null) {\n description = Description.getDescription(this);\n }\n return description;\n }",
"public ST getComment() { \r\n\t\tST retVal = this.getTypedField(48, 0);\r\n\t\treturn retVal;\r\n }",
"public String getName() {\n return list;\n }",
"public String getFileComment()\r\n {\r\n return sFileComment;\r\n }",
"String getComment();",
"String getComment();",
"String getDetailedDescription() {\n return context.getString(detailedDescription);\n }",
"java.lang.String getDeskName();",
"String getFpDescription();",
"public String getDescription() {\n return description; // returns the appointment's description\n }",
"public java.lang.String getDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESC$10);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public String getName()\r\n\t{\r\n\t\treturn categoryName;\r\n\t}",
"public String toString() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.CANADA);\n if (this.emotionComment == null) {\n emotionComment = \"\";\n }\n if (emotionComment.length() >= 25) {\n return this.emotionName + \" \" + dateFormat.format(this.emotionDate);\n }\n return this.emotionName + \" \" + dateFormat.format(this.emotionDate) + \" \" + this.emotionComment;\n }",
"@Override\n public String getCourseName() {\n return this.deadline.getCourseName();\n }"
]
| [
"0.6107521",
"0.60105824",
"0.60105824",
"0.5814168",
"0.567527",
"0.56283283",
"0.56272084",
"0.5579437",
"0.55494815",
"0.5530418",
"0.55255383",
"0.5503965",
"0.54962534",
"0.54784167",
"0.5465622",
"0.5465622",
"0.5465622",
"0.5465622",
"0.5465622",
"0.5465622",
"0.5465622",
"0.5465622",
"0.5465622",
"0.54646504",
"0.54261875",
"0.54203206",
"0.540886",
"0.540461",
"0.5402883",
"0.5394517",
"0.53741556",
"0.5369086",
"0.5368452",
"0.53601867",
"0.53599054",
"0.53583825",
"0.5356098",
"0.53486454",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5345038",
"0.5340871",
"0.5334033",
"0.53323156",
"0.53273004",
"0.53220004",
"0.53193086",
"0.53120935",
"0.5301998",
"0.52837455",
"0.5280652",
"0.52765924",
"0.52734417",
"0.526964",
"0.5269195",
"0.5251691",
"0.5248282",
"0.5248282",
"0.5240487",
"0.52399766",
"0.52335274",
"0.5233006",
"0.5231502",
"0.5227744",
"0.5219068",
"0.5216115"
]
| 0.0 | -1 |
public setter Name of the listing for which feedback was provided. Returned as CDATA. Not returned if a listing ended more than 90 days ago. | public void setItemTitle(String itemTitle) {
this.itemTitle = itemTitle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"protected String getFeedback() {\n\t\t\n\t\tString feedback = new String();\n\t\t\n\t\treturn feedback;\n\t}",
"@Override\n public String getName() {\n return this.desc;\n }",
"String getCName() {\n return nameTF.getText();\n }",
"public String getLstCustName() {\n return lstCustName;\n }",
"public String getFeedbackResponse() {\n\t return this.feedbackResponse;\n\t}",
"public String getListingduration() {\r\n return listingduration;\r\n }",
"public String getDescription()\n\t{\n\t\treturn this.name;\n\t}",
"public String getCustomerDescriptiveName() {\r\n return customerDescriptiveName;\r\n }",
"public String getDescName() {\r\n return _descName;\r\n }",
"public String getcDescription() {\n return cDescription;\n }",
"public java.lang.String getDescription() {\n return localDescription;\n }",
"public void setFeedback(String feedback) {\n\t\tthis.feedback = feedback;\n\t}",
"public java.lang.String getZqu__List_Name__c() {\r\n return zqu__List_Name__c;\r\n }",
"org.hl7.fhir.String getComments();",
"public String getFeedbackID() {\n\t return this.feedbackID;\n\t}",
"String getSlingDescription();",
"public String getName() {\r\n return listName;\r\n }",
"public String getDescription() {\n if ((desc == null) && (forVar != null)) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.LONG_NAME);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(\"description\");\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(CDM.TITLE);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(CF.STANDARD_NAME);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n }\n return (desc == null) ? null : desc.trim();\n }",
"public String description(){\n\t\treturn \"Mark: \" + mark + \"\\n\" + \"Comment: \" + comment;\n\t}",
"public java.lang.String getDescription(){\r\n return this.description;\r\n }",
"java.lang.String getDesc();",
"public String getFeeDescription() {\n return feeDescription;\n }",
"public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }",
"org.hl7.fhir.String addNewComments();",
"public String getDescription(){\n\t\treturn \"\" ; //trim(thisInstance.getDescription());\n\t}",
"public String getFileComment()\r\n {\r\n return sFileComment;\r\n }",
"public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }",
"private String getTestPersistedListing() {\n StringBuilder sb = new StringBuilder();\n SimpleDateFormat sdf = new SimpleDateFormat(ListingFileHelper.DATE_FORMAT);\n sb.append(sdf.format(getTestListingDateTimeStamp()));\n sb.append(\"~\");\n sb.append(testTvShow);\n sb.append(\"~\");\n sb.append(testTitle);\n sb.append(\"~\");\n sb.append(testChannel.getChannelName());\n return sb.toString();\n }",
"public String getAnnouncement();",
"public String getFeedbackId() {\n return feedbackId;\n }",
"public String getDescription() {\r\n return Description; \r\n }",
"String getDesc();",
"java.lang.String getComments();",
"public StringDt getCommentsElement() { \n\t\tif (myComments == null) {\n\t\t\tmyComments = new StringDt();\n\t\t}\n\t\treturn myComments;\n\t}",
"public String getComment() {\n return description;\n }",
"@Override\n public String getCourseName() {\n return this.deadline.getCourseName();\n }",
"public String getName() {\n return list;\n }",
"String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}",
"@Override\n public String getDescription() {\n return name;\n }",
"public String getComments() {\n return (String) getAttributeInternal(COMMENTS);\n }",
"public String getDescription(){ return description; }",
"public String getDESCRIPTION() {\r\n return DESCRIPTION;\r\n }",
"public ST getComment() { \r\n\t\tST retVal = this.getTypedField(48, 0);\r\n\t\treturn retVal;\r\n }",
"public String getDescription(){return description;}",
"public String getDescription(){return description;}",
"public String getBriefName() {\r\n return briefName;\r\n }",
"public String getDescription()\r\n {\r\n return this.aDescription ;\r\n }",
"public synchronized String getDescription(){\n \treturn item_description;\n }",
"public String showName()\r\n {\r\n return name;\r\n }",
"public String getDescription() {\n return description; // returns the appointment's description\n }",
"public String getDesc()\r\n {\r\n return description;\r\n }",
"public String getDescription()\r\n\t{\r\n\t\tStringBuilder msgreturn = new StringBuilder().append(m_name).append(\" \").append(m_taxBaseAmt.toString());\r\n\t\treturn msgreturn.toString();\r\n\t}",
"public String getStrCategoryName() {\n return strCategoryName;\n }",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getcatgdesc() {\n return (String) getAttributeInternal(CATGDESC);\n }",
"public String getDesc(){\r\n\t\treturn this.desc;\r\n\t}",
"public String getDescription(){\n return description;\n }",
"public String getDescription(){\n return description;\n }",
"String getdescription() {\n\t\treturn description;\n\t}",
"public String getDescription1() {\r\n return description1;\r\n }",
"public String getComment(){\n return this.comment;\n }",
"public String name() {\n return celestialName;\n }",
"public String getDescription()\r\n\t{\treturn this.description;\t}",
"@Override\n public String getDescription() {\n return \"Digital goods feedback\";\n }",
"public String getCourseDesc() {\n return courseDesc;\n }",
"public java.lang.String getDescription() {\r\n return this._description;\r\n }",
"public java.lang.String getDescription() {\r\n return this._description;\r\n }",
"public String getcName() {\n return cName;\n }",
"public String getCategoryDescription() {\n return categoryDesc;\n }",
"public List<String> getDescription()\n {\n return description;\n }",
"public String getDescription() {\n return (desc);\n }",
"public String getCategory_name(){return category_name;}",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"public String getName() { return this.Name; }",
"public void setZqu__List_Name__c(java.lang.String zqu__List_Name__c) {\r\n this.zqu__List_Name__c = zqu__List_Name__c;\r\n }",
"public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}",
"public String getComments() {\r\n return this.comments;\r\n }",
"public String getComment(){\n return comment;\n }",
"public String get_description() {\n return description;\n }",
"public String getDescription(){\n \n return\"\";\n }",
"protected String getDescription()\n {\n return description;\n }",
"public String getDescription()\r\n {\r\n return description;\r\n }",
"Feedback getFeedback();",
"public String getDescription()\n/* */ {\n/* 74 */ return this.description;\n/* */ }",
"@Override\r\n\tpublic List<Feedback> getFeedbacklist() {\n\t\tList<Feedback> flist= frepository.findAll();\r\n\t\treturn flist;\r\n\t}",
"@Override\n\tpublic String asText() {\n\t\treturn name;\n\t}"
]
| [
"0.5804786",
"0.5804786",
"0.5679778",
"0.52976525",
"0.5280045",
"0.5258701",
"0.5248206",
"0.5235828",
"0.5209545",
"0.5208389",
"0.5203595",
"0.51753485",
"0.517521",
"0.51717424",
"0.5171111",
"0.5156341",
"0.51373947",
"0.51229435",
"0.5122058",
"0.5084596",
"0.50817674",
"0.5054258",
"0.5049591",
"0.50465155",
"0.5046038",
"0.50425607",
"0.5035736",
"0.5032683",
"0.5029454",
"0.5024147",
"0.5012432",
"0.50091064",
"0.49846724",
"0.4984398",
"0.49796444",
"0.4977551",
"0.4973975",
"0.49734357",
"0.4969951",
"0.49595216",
"0.4958302",
"0.49550423",
"0.49517626",
"0.49480346",
"0.49478456",
"0.49471813",
"0.49471813",
"0.49470213",
"0.4937811",
"0.49349087",
"0.49337396",
"0.49310255",
"0.49308172",
"0.49189234",
"0.491409",
"0.48976156",
"0.48976156",
"0.48976156",
"0.48976156",
"0.48976156",
"0.48976156",
"0.4890762",
"0.4889881",
"0.4884394",
"0.4884394",
"0.4874169",
"0.48692986",
"0.48685208",
"0.4866619",
"0.48656484",
"0.48571467",
"0.4855451",
"0.4854222",
"0.4854222",
"0.48517984",
"0.48509306",
"0.48443735",
"0.4843672",
"0.4843469",
"0.48428154",
"0.48428154",
"0.48428154",
"0.48428154",
"0.48428154",
"0.48428154",
"0.48428154",
"0.48428154",
"0.48428154",
"0.48384038",
"0.48373523",
"0.48366433",
"0.48350167",
"0.48282218",
"0.48277986",
"0.48274875",
"0.48204163",
"0.48191077",
"0.48185787",
"0.48178497",
"0.4811793",
"0.48101795"
]
| 0.0 | -1 |
public getter The final price for the item, associated with the currency identified by the currencyId attribute of the AmountType. Not returned if a listing ended more than 90 days ago. | public AmountType getItemPrice() {
return this.itemPrice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArmCurrency getPrice() {\n return (getPrice(true));\n }",
"protected Double getItemPrice() {\n return itemPrice;\n }",
"public BigDecimal getPrice() {\n return (BigDecimal)getAttributeInternal(PRICE);\n }",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public double getPrice()\r\n\t{\r\n\t\tif(isSpecial())\r\n\t\t{\r\n\t\t\treturn price * .5;\r\n\t\t}\r\n\t\treturn price;\r\n\t}",
"public java.math.BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public int getPrice()\r\n\t{\r\n\t\treturn theItem.getPrice();\r\n\t}",
"public BigDecimal getPrice()\n\t{\n\t\treturn price;\n\t}",
"public Money getPrice() {\n\t\treturn price;\n\t}",
"public Long getPrice() {\n return price;\n }",
"public double getPrice() {\n return price_;\n }",
"public float getItemPrice()\n\t{\n\t\treturn itemPrice;\n\t}",
"public double getPrice() {\n return price_;\n }",
"@Override\n\tpublic double getItemPrice(String itemCode) {\n\n\t\treturn 100.00;\n\t}",
"public BigDecimal getActualSellingPrice() {\n return actualSellingPrice;\n }",
"public Number getPrice() {\n return (Number)getAttributeInternal(PRICE);\n }",
"public long getPrice() {\n return price;\n }",
"public BigDecimal getSellingPrice() {\n return sellingPrice;\n }",
"public double getPricePerItem()\r\n {\r\n return pricePerItem;\r\n }",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public Double getPrice() {\r\n\t\treturn price;\r\n\t}",
"BigDecimal getPrice();",
"public Money getPrice() {\n return price;\n }",
"public BigDecimal getPriceActual();",
"public Double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\n\t\treturn this.price;\n\t}",
"public Double getPrice() {\n return price;\n }",
"public Double getPrice() {\n return price;\n }",
"public Double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n return this.price;\n }",
"public double getPrice() {\n\t\t\treturn price;\n\t\t}",
"public BigDecimal getpPrice() {\n return pPrice;\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice(){\n\t\t\treturn price;\n\t\t}",
"protected String getFormattedItemPrice() {\n return formattedItemPrice;\n }",
"public double getPrice()\n\t{\n\t\treturn this.price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public BigDecimal getMarketPrice() {\n return marketPrice;\n }",
"public double getPrice(){\n\t\t\n\t\treturn price;\n\t}",
"public double getPrice(){\n\t\treturn this.price;\n\t}",
"public double getPrice() {\n\t\treturn this.price;\n\t\t\n\t}",
"public double getPrice(){\r\n\t\treturn price;\r\n\t}",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double price(){\n if (basePrice() >1000){\n return basePrice() *0.95;\n }else\n return basePrice() * 0.98;\n }",
"@Override\n\t\t\tpublic double getPrice() {\n\t\t\t\treturn 50.0;\n\t\t\t}",
"public java.lang.Integer getPrice()\n {\n return price;\n }",
"Price getTradePrice();",
"public double getPrice()\n {\n return this.price;\n }",
"public double getDiscountedPrice(double itemPrice);",
"BigDecimal getClosePrice();",
"public double getPrice() {\n double price = BASE_PRICE;\n for (Topping topping : toppings) {\n if (topping.isPremium()) {\n price += 1.25;\n } else {\n price += 0.75;\n }\n }\n return price;\n }",
"public Float getFinalPrice() {\n return finalPrice;\n }",
"public double getPrice() {\n return price;\n }",
"public BigDecimal\tgetPrice();",
"public int getPrice() {\n for (Item item : items) {\n price +=item.getPrice();\n }\n return price;\n }",
"public BigDecimal getM_price() {\n return m_price;\n }",
"public float getPrice() {\n if (this.groupPrice > 0.0f) {\n return this.groupPrice;\n } else {\n return this.parkingLotPrice;\n }\n }",
"public double getPrice() \n\t{\n\t\treturn price;\n\t}",
"public double getPrice() \n\t{\n\t\treturn price;\n\t}",
"@Override\n\tpublic double getPrice() {\n\t\t\n\t\treturn 2000;\n\t}",
"public Date getPrice() {\n return price;\n }",
"public double getPrice()\r\n {\r\n return this.price;\r\n }",
"public Integer getPrice() {\r\n return price;\r\n }",
"public Integer getPrice() {\r\n return price;\r\n }",
"public double getPrice(){\n\t\treturn price;\n\t}",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn price;\r\n\t}",
"public double getPrice()\n\t{\n\t\treturn this.totalPrice + this.getFlightCosts() + this.excursionSubTotal\n\t\t\t\t+ this.getLodgingCost();\n\t}",
"public float getPrice() {\n return _price;\n }",
"public Integer getPrice() {\n return price;\n }",
"public Integer getPrice() {\n return price;\n }",
"public Integer getPrice() {\n return price;\n }",
"public Integer getPrice() {\n return price;\n }",
"public Float getPrice() {\r\n return price;\r\n }",
"public double price() {\n return price;\n }",
"public double getPrice()\r\n {\r\n return price;\r\n }"
]
| [
"0.67003435",
"0.6485846",
"0.64565384",
"0.6447193",
"0.6447193",
"0.6441044",
"0.64183587",
"0.6405933",
"0.6405933",
"0.6405933",
"0.6405933",
"0.6405933",
"0.63989824",
"0.6372162",
"0.6365135",
"0.63435894",
"0.6339551",
"0.6328788",
"0.6314094",
"0.6312291",
"0.6299673",
"0.6291725",
"0.62816834",
"0.627593",
"0.6238282",
"0.62358445",
"0.62358445",
"0.62358445",
"0.62300336",
"0.62104803",
"0.6194286",
"0.61907256",
"0.6184781",
"0.6183572",
"0.61766696",
"0.61766696",
"0.61673605",
"0.61594814",
"0.6158583",
"0.61499643",
"0.6143301",
"0.6143301",
"0.6143301",
"0.6143301",
"0.6140046",
"0.6131538",
"0.6121857",
"0.6118631",
"0.6118631",
"0.6118631",
"0.6118631",
"0.6118631",
"0.61185277",
"0.6111826",
"0.61070305",
"0.6103901",
"0.60906035",
"0.6089429",
"0.6089429",
"0.6089429",
"0.6089429",
"0.6089429",
"0.6089429",
"0.6089429",
"0.6089429",
"0.6089429",
"0.6089429",
"0.6089429",
"0.60889375",
"0.6085379",
"0.60807514",
"0.6080313",
"0.6077562",
"0.6074381",
"0.6069066",
"0.60657305",
"0.60624194",
"0.6051139",
"0.6047523",
"0.60450864",
"0.6044533",
"0.60432",
"0.604223",
"0.604223",
"0.60412544",
"0.6041058",
"0.60392934",
"0.6035593",
"0.6035593",
"0.6033376",
"0.60297084",
"0.60234916",
"0.6016428",
"0.60127556",
"0.60127556",
"0.60127556",
"0.60127556",
"0.6001452",
"0.6000726",
"0.59947324"
]
| 0.71112734 | 0 |
public setter The final price for the item, associated with the currency identified by the currencyId attribute of the AmountType. Not returned if a listing ended more than 90 days ago. | public void setItemPrice(AmountType itemPrice) {
this.itemPrice = itemPrice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AmountType getItemPrice() {\n\t return this.itemPrice;\n\t}",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public Long getPrice() {\n return price;\n }",
"protected Double getItemPrice() {\n return itemPrice;\n }",
"public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }",
"public long getPrice() {\n return price;\n }",
"public BigDecimal getPrice()\n\t{\n\t\treturn price;\n\t}",
"public Money getPrice() {\n\t\treturn price;\n\t}",
"public Money getPrice() {\n return price;\n }",
"public Double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\n return price_;\n }",
"public double getPrice() {\n return price_;\n }",
"public ArmCurrency getPrice() {\n return (getPrice(true));\n }",
"public java.math.BigDecimal getPrice() {\n return price;\n }",
"public Double getPrice() {\n return price;\n }",
"public Double getPrice() {\n return price;\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public Double getPrice() {\r\n\t\treturn price;\r\n\t}",
"public Date getPrice() {\n return price;\n }",
"@Override\n\tpublic double getItemPrice(String itemCode) {\n\n\t\treturn 100.00;\n\t}",
"public double getPrice(){\r\n\t\treturn price;\r\n\t}",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice(){\n\t\t\treturn price;\n\t\t}",
"public BigDecimal getSellingPrice() {\n return sellingPrice;\n }",
"public BigDecimal getActualSellingPrice() {\n return actualSellingPrice;\n }",
"public double getPrice() {\n return this.price;\n }",
"public double getPrice() {\n return price;\n }",
"public float getItemPrice()\n\t{\n\t\treturn itemPrice;\n\t}",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"@Override\n public double getPrice(){\n \n return currentPrice; \n }",
"protected String getFormattedItemPrice() {\n return formattedItemPrice;\n }",
"@Override\n\tpublic double getPrice() {\n\t\treturn 30000;\n\t}",
"public Double getPrice() {\n\t\treturn price;\n\t}",
"public int getPrice()\r\n\t{\r\n\t\treturn theItem.getPrice();\r\n\t}",
"public double getPrice()\n {\n return this.price;\n }",
"@Override\n\t\t\tpublic double getPrice() {\n\t\t\t\treturn 50.0;\n\t\t\t}",
"public double getPrice()\r\n {\r\n return this.price;\r\n }",
"public double getPrice()\r\n\t{\r\n\t\tif(isSpecial())\r\n\t\t{\r\n\t\t\treturn price * .5;\r\n\t\t}\r\n\t\treturn price;\r\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice()\r\n {\r\n return price;\r\n }",
"public double getPrice() {\n\t\t\treturn price;\n\t\t}",
"public float getPrice() {\n return _price;\n }",
"public double getPrice(){\n\t\treturn price;\n\t}",
"public BigDecimal getMarketPrice() {\n return marketPrice;\n }",
"public BigDecimal getPrice() {\n return (BigDecimal)getAttributeInternal(PRICE);\n }",
"public void setPrice(Money price) {\n this.price = price;\n }",
"public Integer getPrice() {\r\n return price;\r\n }",
"public Integer getPrice() {\r\n return price;\r\n }",
"public double getPricePerItem()\r\n {\r\n return pricePerItem;\r\n }",
"public double getPrice(){\n\t\t\n\t\treturn price;\n\t}",
"@Override\n\tpublic void setPrice() {\n\t\tprice = 24.99;\n\n\t}",
"public Float getPrice() {\r\n return price;\r\n }",
"public BigDecimal getM_price() {\n return m_price;\n }",
"public double getPrice(){\n\t\treturn this.price;\n\t}",
"@Override\n\tpublic double getPrice() {\n\t\t\n\t\treturn 2000;\n\t}",
"public double getPrice() {\n\t\treturn this.price;\n\t}",
"public Integer getPrice() {\n return price;\n }",
"public Integer getPrice() {\n return price;\n }",
"public Integer getPrice() {\n return price;\n }",
"public Integer getPrice() {\n return price;\n }",
"public float getPrice() {\n return price;\n }",
"public float getPrice() {\n return price;\n }",
"public float getPrice() {\n return price;\n }",
"public double price() {\n return price;\n }",
"public Float getPrice() {\n return price;\n }",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn 60000;\r\n\t}",
"public BigDecimal getpPrice() {\n return pPrice;\n }",
"BigDecimal getDirtyPrice();",
"public double getPrice() \n\t{\n\t\treturn price;\n\t}",
"public double getPrice() \n\t{\n\t\treturn price;\n\t}",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn price;\r\n\t}",
"public double getPrice()\n\t{\n\t\treturn this.price;\n\t}",
"public double getPrice()\n {\n return price;\n }",
"@Element \n public Long getPrice() {\n return price;\n }",
"public java.lang.Integer getPrice()\n {\n return price;\n }"
]
| [
"0.69557804",
"0.6625528",
"0.6625528",
"0.65662247",
"0.65662247",
"0.65662247",
"0.65662247",
"0.65662247",
"0.65331787",
"0.65331197",
"0.64872426",
"0.6463322",
"0.64480203",
"0.6444678",
"0.64254105",
"0.63896674",
"0.6381851",
"0.63813794",
"0.6371345",
"0.63554776",
"0.63473946",
"0.63473946",
"0.63455874",
"0.63455874",
"0.63455874",
"0.63455874",
"0.63400596",
"0.63381225",
"0.6327598",
"0.62963724",
"0.6284865",
"0.6284865",
"0.6284865",
"0.6284865",
"0.6284865",
"0.6284865",
"0.6284865",
"0.6284865",
"0.6284865",
"0.6284865",
"0.6284865",
"0.6283495",
"0.628291",
"0.627523",
"0.6273924",
"0.62738776",
"0.6270685",
"0.6259517",
"0.6259517",
"0.6259517",
"0.6254766",
"0.62473094",
"0.6246583",
"0.62397844",
"0.6238274",
"0.623119",
"0.6227423",
"0.6223353",
"0.6217803",
"0.6217472",
"0.6217472",
"0.6217472",
"0.6217472",
"0.6217472",
"0.6217251",
"0.62160194",
"0.6213453",
"0.6211753",
"0.6199844",
"0.61962503",
"0.61960554",
"0.61930996",
"0.61930996",
"0.61878896",
"0.6186822",
"0.6186065",
"0.6183348",
"0.61751914",
"0.61692774",
"0.6164604",
"0.61629283",
"0.6157922",
"0.6157922",
"0.6157922",
"0.6157922",
"0.61535394",
"0.61535394",
"0.61535394",
"0.6149852",
"0.614787",
"0.6147116",
"0.6143774",
"0.61385804",
"0.6134571",
"0.6134571",
"0.61253834",
"0.6122143",
"0.61152697",
"0.6114201",
"0.60877407"
]
| 0.6666568 | 1 |
public getter Unique identifier for the feedback entry. | public String getFeedbackID() {
return this.feedbackID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getFeedbackId() {\n return feedbackId;\n }",
"public String getUniqueID ( ) { return _uniqueID; }",
"public String getUniqueID() {\n return this.uniqueID;\n }",
"public String getUniqueID()\r\n {\r\n return (m_uniqueID);\r\n }",
"protected int getUniqueID() {\n\t\treturn uniqueID;\n\t}",
"public String getUniqueID();",
"public String getUniqueId() {\n return _uniqueId;\n }",
"public int getUniqueId() {\r\n\t\treturn uniqueId;\r\n\t}",
"String getUniqueId();",
"public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }",
"String getUniqueID();",
"public String uniqueId() {\n return this.uniqueId;\n }",
"@NonNull\n public String getIdentifier() {\n return mProto.id;\n }",
"java.lang.String getMessageInfoID();",
"public String getUniqueIdValue() {\n return uniqueIdValue;\n }",
"public String getUniqueId() {\n\t\treturn m_serverName + \" - \" + m_userId + \" - \" + m_timestampMillisecs;\n\t}",
"@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}",
"public String getId() {\n\t\treturn Integer.toString(this.hashCode());\n\t}",
"public static String id()\n {\n return _id;\n }",
"java.lang.String getID();",
"public String getUniqueId() {\n return getCurrentInstance().getViewRoot().createUniqueId();\n }",
"public long getId() {\n\t\treturn _tempNoTiceShipMessage.getId();\n\t}",
"public int getEntryUid() {\n return this.mEntryUid;\n }",
"@Override\n\tpublic UUID getUniqueId() {\n\t\treturn uid;\n\t}",
"public int getUniqueID() { \n return -1;\n }",
"public String getEntryId() {\n return entryId;\n }",
"long getMessageID();",
"long getMessageID();",
"public String getId(){\n\t\treturn uuid;\n\t}",
"Object getMessageId();",
"int getMessageId();",
"public String getID()\n {\n return \"topic=\" + id;\n }",
"long getMessageId();",
"long getMessageId();",
"java.lang.String getMessageId();",
"public String getId() {\r\n\t\treturn userId.toString();\r\n\t}",
"public java.lang.String getId() {\r\n return this._id;\r\n }",
"public java.lang.String getId() {\n return this._id;\n }",
"public String getId() {\n return _theId;\n }",
"public String getPrefContactId() {\n return getContact().getUid();\n }",
"public Object getMessageId()\n {\n return getUnderlyingId(true);\n }",
"@Schema(required = true, description = \"An identifier with the intention of being globally unique. \")\n public String getId() {\n return id;\n }",
"public final String getId() {\n return id;\n }",
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"UUID getUniqueId();",
"public String getId() {\n return (String) getValue(ACTION_ID);\n }",
"public int getUID() {\n return 0;\n }",
"public String getUid()\r\n\t{\r\n\t\treturn getUid( getSession().getSessionContext() );\r\n\t}",
"public java.lang.String getId() {\n return _id;\n }",
"public UUID getUniqueId ( ) {\n\t\treturn extract ( handle -> handle.getUniqueId ( ) );\n\t}",
"public Integer getAttentionId() {\n return attentionId;\n }",
"public int getUniqueReference ()\n\t{\n\t\treturn uniqueReference;\n\t}",
"public String getId() {\n if (id == null)\n return \"\"; //$NON-NLS-1$\n return id;\n }",
"public synchronized short getID () {\n return this.id;\n }",
"String getID();",
"String getID();",
"String getID();",
"String getID();",
"public String getId()\n\t{\n\t\treturn this.id;\n\t}",
"public String getId() {\r\n\t\treturn this.id;\r\n\t}",
"public String getId() {\r\n\t\treturn this.id;\r\n\t}",
"public String getId() {\r\n\t\treturn this.id;\r\n\t}",
"@Override\n\tpublic String getEntryId() {\n\t\treturn null;\n\t}",
"public String getId()\n {\n return _id ;\n }",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"@Override\r\n\tpublic String getId() {\n\t\treturn this.id;\r\n\t}",
"@Override\r\n\tpublic String getId() {\n\t\treturn this.id;\r\n\t}",
"public java.lang.String getId () {\r\n\t\treturn id;\r\n\t}",
"Short getId();",
"String getNotificationID();",
"public String getID() {\n return (id);\n }",
"public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}",
"public String getId ()\n {\n return id;\n }",
"String getUid();",
"public String getId() {\r\n \t\treturn id;\r\n \t}",
"public String getId()\n\t{\n\t\treturn m_sID;\t\n\t}",
"public java.lang.String getId () {\n\t\treturn id;\n\t}",
"public byte[] getUniqueID()\n {\n return m_Key;\n }",
"public String getId() {\r\n return this.id;\r\n }",
"public String getId() {\r\n return this.id;\r\n }",
"public String getId() {\r\n return this.id;\r\n }",
"public String getId() {\n\t\treturn m_MessageId;\n\t}"
]
| [
"0.7219374",
"0.70931405",
"0.70724344",
"0.6969407",
"0.6858211",
"0.68524796",
"0.6850725",
"0.682486",
"0.6791763",
"0.67585254",
"0.6721871",
"0.66888255",
"0.668678",
"0.66216207",
"0.6611144",
"0.6596065",
"0.6570549",
"0.65484536",
"0.64698756",
"0.64697653",
"0.644635",
"0.6441961",
"0.64347565",
"0.64303035",
"0.64110047",
"0.6405052",
"0.6392267",
"0.6392267",
"0.6381584",
"0.6375656",
"0.6368684",
"0.6327863",
"0.6325717",
"0.6325717",
"0.63153416",
"0.63042367",
"0.62879413",
"0.6284765",
"0.6283774",
"0.62604696",
"0.6254946",
"0.62490916",
"0.62460345",
"0.6241923",
"0.6218634",
"0.6216552",
"0.621229",
"0.6212054",
"0.62113774",
"0.62052375",
"0.620506",
"0.6204585",
"0.61920923",
"0.6183793",
"0.6178028",
"0.6178028",
"0.6178028",
"0.6178028",
"0.6175718",
"0.61737764",
"0.61737764",
"0.61737764",
"0.6168812",
"0.61680436",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6166544",
"0.6164938",
"0.6164938",
"0.615587",
"0.61517304",
"0.614988",
"0.6143858",
"0.6142234",
"0.613938",
"0.6137934",
"0.61360216",
"0.6134673",
"0.6133168",
"0.61307573",
"0.61264217",
"0.612555",
"0.612555",
"0.6123979"
]
| 0.7201405 | 1 |
public setter Unique identifier for the feedback entry. | public void setFeedbackID(String feedbackID) {
this.feedbackID = feedbackID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getFeedbackId() {\n return feedbackId;\n }",
"public String getFeedbackID() {\n\t return this.feedbackID;\n\t}",
"public String getUniqueID ( ) { return _uniqueID; }",
"public String getUniqueID() {\n return this.uniqueID;\n }",
"protected int getUniqueID() {\n\t\treturn uniqueID;\n\t}",
"public String getUniqueId() {\n return _uniqueId;\n }",
"public int getUniqueId() {\r\n\t\treturn uniqueId;\r\n\t}",
"public String getUniqueID();",
"public String getUniqueIdValue() {\n return uniqueIdValue;\n }",
"public String getUniqueID()\r\n {\r\n return (m_uniqueID);\r\n }",
"@Override\n\tpublic UUID getUniqueId() {\n\t\treturn uid;\n\t}",
"public String uniqueId() {\n return this.uniqueId;\n }",
"@Override\n\tpublic void setUniqueId(int id) {}",
"String getUniqueID();",
"public int getUniqueID() { \n return -1;\n }",
"@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}",
"public void setID() {\n\t\tthis.ID = UUID.randomUUID().toString();\n\t}",
"public void setUniqueID(String uniqueID)\r\n {\r\n m_uniqueID = uniqueID;\r\n }",
"public void setUniqueId(final String uniqueId) {\n _uniqueId = uniqueId;\n }",
"public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }",
"String getUniqueId();",
"public String getID()\n {\n return \"topic=\" + id;\n }",
"@Override\r\n\t\tpublic String getId()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public Integer getAttentionId() {\n return attentionId;\n }",
"public String getId(){\n\t\treturn uuid;\n\t}",
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"public int getUID() {\n return 0;\n }",
"@Override\n\t\tpublic String getId() {\n\t\t\treturn null;\n\t\t}",
"@Override\r\n\tpublic String getID() {\n\t\treturn super.id;\r\n\t}",
"public void setFeedbackId(String feedbackId) {\n this.feedbackId = feedbackId == null ? null : feedbackId.trim();\n }",
"private void updateExtendedId() {\r\n\t\tif (category != null && source != null && sink != null) {\r\n\t\t\tif (logger.isLoggable(Level.FINEST)) {\r\n\t\t\t\tlogger.log(Level.FINEST, \"ExtendedID updated\", TaskManager\r\n\t\t\t\t\t\t.getCurrentTick());\r\n\t\t\t}\r\n\t\t\textendedId = new ExtendedId(source.getId(), sink.getExtendedId(),\r\n\t\t\t\t\tcategory.getId());\r\n\t\t}\r\n\t}",
"public void setID(String idIn) {this.id = idIn;}",
"@Override\r\n public String getId() {\r\n return id;\r\n }",
"@Override\n\tpublic int getID() {\n\t\treturn 1;\n\t}",
"public void generateID()\n {\n ID = this.hashCode();\n }",
"@Override public String getID() { return id;}",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"@Override\n\tpublic String getEntryId() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic long getChangesetEntryId() {\n\t\treturn _changesetEntry.getChangesetEntryId();\n\t}",
"public String getID() {\r\n \t\treturn _id;\r\n \t}",
"public String getId(){ return ID; }",
"public String getId(){\n return uid;\n }",
"public String getUniqueId() {\n\t\treturn m_serverName + \" - \" + m_userId + \" - \" + m_timestampMillisecs;\n\t}",
"java.lang.String getID();",
"@Override\r\n\tpublic String getId() {\n\t\treturn this.id;\r\n\t}",
"@Override\r\n\tpublic String getId() {\n\t\treturn this.id;\r\n\t}",
"@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }",
"@Override\r\n\tpublic String getId() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getId() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getId() {\n\t\treturn null;\r\n\t}",
"public void setId(String uid){\n this.uid = uid;\n }",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"@Override\n public String getId() {\n return id;\n }",
"public Text getIdAttachHolder()\r\n\t{\r\n\t\treturn idAttachHolder;\r\n\t}",
"@Schema(required = true, description = \"An identifier with the intention of being globally unique. \")\n public String getId() {\n return id;\n }",
"public String getUniqueId() {\n return getCurrentInstance().getViewRoot().createUniqueId();\n }",
"@NonNull\n public String getIdentifier() {\n return mProto.id;\n }",
"public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}",
"@Override\n public long getId() {\n return this.id;\n }",
"@Override\n public long getId() {\n return super.getId();\n }",
"public java.lang.String getId() {\r\n return this._id;\r\n }",
"public FeedbackCustom(Long id, String feedback, String causeName, String firstName, String lastName) {\n\t\tsuper();\n\t\tthis.id = id;\n\t\tthis.feedback = feedback;\n\t\tthis.causeName = causeName;\n\t\tthis.firstName = firstName;\n\t\tthis.lastName = lastName;\n\t}",
"public int uid() { return uid; }",
"@Override\n public String getId() {\n return \"1\";\n }",
"@Override\n\tpublic String getSubmitId() {\n\t\treturn model.getSubmitId();\n\t}",
"@Override\n\tpublic int getID() {\n\t\treturn 41;\n\t}",
"public String getId(){ \r\n\t\treturn mId;\r\n\t}",
"public java.lang.String getId() {\n return this._id;\n }",
"@NotNull\n @Override\n public final String getUniqueID() {\n return \"charge\";\n }",
"protected int getID(){\r\n\t\treturn this.ID;\r\n\t}",
"public String getId(){\r\n\t\treturn id;\r\n\t}",
"public String getId(){\r\n\t\treturn id;\r\n\t}",
"public java.lang.CharSequence getUid() {\n return uid;\n }",
"public String getID() {\r\n return id;\r\n }",
"private UniqueIdentifier(){\n\t\t\n\t}",
"public synchronized short getID () {\n return this.id;\n }",
"public String getId() {\r\n \t\treturn id;\r\n \t}",
"public void setId(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localIdTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localId=param;\r\n \r\n\r\n }",
"public String getID()\r\n {\r\n return id;\r\n }",
"@Override\r\n public int getId() {\n return id;\r\n }",
"public String getID() {\n return (id);\n }",
"public String getUid() { return null; }",
"public java.lang.CharSequence getUid() {\n return uid;\n }",
"public String getID()\r\n {\r\n return this.id;\r\n }",
"public String getPrefContactId() {\n return getContact().getUid();\n }",
"public void setUid(int value) {\n this.uid = value;\n }",
"public String getId()\n {\n return _id ;\n }",
"@Override\n\tpublic String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n return id;\r\n }",
"public String getId() {\r\n return this.id;\r\n }",
"public String getId() {\r\n return this.id;\r\n }",
"@Override\n\tpublic String getId() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getId() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getId() {\n\t\treturn null;\n\t}",
"public void setM_MovementConfirm_ID (int M_MovementConfirm_ID);",
"public int getUID() {\n return uid;\n }",
"public String getEntryId() {\n return entryId;\n }",
"public long getId() { return _id; }"
]
| [
"0.67448294",
"0.65685755",
"0.6561238",
"0.63172364",
"0.6220945",
"0.6198268",
"0.6107186",
"0.60598296",
"0.6010641",
"0.59659517",
"0.58958393",
"0.58864826",
"0.58839095",
"0.5862441",
"0.58362657",
"0.5825339",
"0.5774065",
"0.5760446",
"0.57166535",
"0.57127154",
"0.5693379",
"0.56694776",
"0.56328887",
"0.5629036",
"0.5599079",
"0.5588747",
"0.55825263",
"0.557246",
"0.5560523",
"0.5555655",
"0.5536956",
"0.5532107",
"0.55277854",
"0.5519661",
"0.55140215",
"0.5507565",
"0.5500722",
"0.5500722",
"0.5500722",
"0.54891604",
"0.5487311",
"0.54867893",
"0.54846936",
"0.54838634",
"0.54729086",
"0.54684937",
"0.54513174",
"0.54513174",
"0.5448919",
"0.5436206",
"0.5436206",
"0.5436206",
"0.54342186",
"0.54285663",
"0.54277253",
"0.54218906",
"0.54183275",
"0.5415921",
"0.5414557",
"0.53978294",
"0.53945607",
"0.539439",
"0.53926235",
"0.53921324",
"0.53855574",
"0.5383549",
"0.5381242",
"0.5379292",
"0.53758657",
"0.5370912",
"0.5368166",
"0.5366746",
"0.5366477",
"0.5366477",
"0.536564",
"0.5363748",
"0.5358662",
"0.5357026",
"0.53565246",
"0.53561413",
"0.53527987",
"0.5352659",
"0.5347613",
"0.5346246",
"0.5341105",
"0.533604",
"0.5335663",
"0.5334573",
"0.53332293",
"0.53320855",
"0.5329644",
"0.5327221",
"0.5327221",
"0.53252095",
"0.53252095",
"0.53252095",
"0.53236747",
"0.5320891",
"0.53187543",
"0.53171295"
]
| 0.6037317 | 8 |
public getter Unique identifier for the transaction about which this feedback entry was left. This field is not returned in the case of TransactionIDs from Chinese auction listings, because a value of zero is used for TransactionIDs in such cases. | public String getTransactionID() {
return this.transactionID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getTransactionID() {\r\n return transactionID;\r\n }",
"public int getId() {\n return txId;\n }",
"public long getTransactionid() {\n return transactionid;\n }",
"long getTxid();",
"public long getTransactionId() {\n return _sTransaction.getTransactionId();\n }",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n txId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"java.lang.String getTxId();",
"public long getTransactionId();",
"String getTransactionID();",
"public int getTransactionID() {\r\n return transactionID;\r\n }",
"public int getTransactionId() {\n return transactionId;\n }",
"public Long getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n txId_ = s;\n return s;\n }\n }",
"@Override\r\n\tpublic long txNumber() {\r\n\t\treturn -1; // dummy value\r\n\t}",
"public String getTransactionId()\n\t{\n\t\treturn transactionId;\n\t}",
"public java.lang.String getTransactionId() {\r\n return transactionId;\r\n }",
"public long getId() {\n\t\treturn _tempNoTiceShipMessage.getId();\n\t}",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public Long getTransactionId() {\n return this.transactionId;\n }",
"public int getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"@Transient\n\tpublic String getParentTransactionId()\t{\n\t\tif (mParentTransactionIdLong > 0) \n\t\t\treturn Long.toString(mParentTransactionIdLong);\n\t\telse\n\t\t\treturn null;\n\t}",
"public String getTransactionId() {\n return transactionId;\n }",
"public String getTransactionId() {\n return transactionId;\n }",
"public static String getTransId() {\n\n return MDC.get(MDC_KEY_REQUEST_ID);\n }",
"public String getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public String getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public long getCommitTransId() {\n return commitList.getCommitTransId();\n }",
"protected String getTransactionId() {\n return transactionId;\n }",
"public long getBaseTransId() {\n return commitList.getBaseTransId();\n }",
"String getTransactionId();",
"String getTransactionId();",
"public String getTransactionId() {\n return this.transactionId;\n }",
"public java.lang.Long getTransNo () {\r\n\t\treturn transNo;\r\n\t}",
"UUID getTransactionId();",
"UUID getTransmissionId();",
"public String getTransId() {\n\t\treturn transId;\n\t}",
"com.google.protobuf.ByteString\n getTxIdBytes();",
"public String getFeedbackId() {\n return feedbackId;\n }",
"public java.lang.String getTransactionId() {\n java.lang.Object ref = transactionId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n transactionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getTxid() {\n return txid;\n }",
"public int get_last_transfert() {\n\t\treturn this.last_transfert;\n\t}",
"public String getUniqueID()\r\n {\r\n return (m_uniqueID);\r\n }",
"public java.lang.String getTxid() {\n java.lang.Object ref = txid_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n txid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"String getAcctgTransEntrySeqId();",
"public String getFeedbackID() {\n\t return this.feedbackID;\n\t}",
"public com.google.protobuf.ByteString\n getTxIdBytes() {\n java.lang.Object ref = txId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public DBSequence getBudgetCustTranId() {\n return (DBSequence)getAttributeInternal(BUDGETCUSTTRANID);\n }",
"@java.lang.Override\n public java.lang.String getTransactionId() {\n java.lang.Object ref = transactionId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n transactionId_ = s;\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getTxIdBytes() {\n java.lang.Object ref = txId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Transient\n\tpublic long getTransactionIdLong() {\n\t\treturn mTransactionIdLong;\n\t}",
"@JsonIgnore\r\n public String getRedeemActivityId() {\r\n return OptionalNullable.getFrom(redeemActivityId);\r\n }",
"public int getUniqueID() { \n return -1;\n }",
"public int getUniqueId() {\r\n\t\treturn uniqueId;\r\n\t}",
"public String getUniqueID() {\n return this.uniqueID;\n }",
"public String getFirstTxId() {\n\t\t\treturn firstTxId;\n\t\t}",
"public java.lang.String getRecUpdTransId () {\n\t\treturn recUpdTransId;\n\t}",
"public synchronized long getNextTransactionID(){\n\t\treturn this.id++;\n\t}",
"protected int getUniqueID() {\n\t\treturn uniqueID;\n\t}",
"public String getClientTransId() {\n\t\treturn clientTransId;\n\t}",
"public long getMemberId() {\n return _sTransaction.getMemberId();\n }",
"@java.lang.Override\n public java.lang.String getTxid() {\n java.lang.Object ref = txid_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n txid_ = s;\n return s;\n }\n }",
"public long getTxnid() {\n return txnid_;\n }",
"public int getTxIndex() {\n return txIndex;\n }",
"public int geti_ordertrx_temp_ID();",
"int getTransactionNum();",
"public long getTxnid() {\n return txnid_;\n }",
"public int getTransac(){\n System.out.println(\"There are altogether \" + transac + \" transactions for \" + this);\n return transac;\n }",
"public static Integer getTransactionNumber() {\n\t\tRandom r = new Random(System.currentTimeMillis());\n\t\treturn r.nextInt(100000) * 00001;\n\n\t}",
"public String getUniqueID ( ) { return _uniqueID; }",
"public String getTransLogId() {\n return transLogId;\n }",
"public long getPrimaryKey() {\n\t\treturn _tempNoTiceShipMessage.getPrimaryKey();\n\t}",
"public int getTID();",
"@Override\n\tpublic long getId() {\n\t\treturn _dmGtStatus.getId();\n\t}",
"public String uniqueId() {\n return this.uniqueId;\n }",
"public String getUniqueId() {\n return _uniqueId;\n }",
"public String getTransaction() {\n return transaction;\n }",
"public java.lang.Long getCardTransno () {\r\n\t\treturn cardTransno;\r\n\t}",
"public long getLastTweetId() {\n return tweetAdapter.getItem(tweetAdapter.getCount()-1).getTweetId();\n }",
"public String getTransID()\n\t{\n\t\tif(response.containsKey(\"RRNO\")) {\n\t\t\treturn response.get(\"RRNO\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public long getIdMessage() {\r\n\t\treturn idMessage;\r\n\t}",
"public short getIdentTurretee() {\n\n return m_identTurretee;\n }",
"public String getAndIncrement() {\n Integer value = transactionId.get();\n transactionId.set(value + 1);\n return String.format(\"T_%08d\", value);\n }",
"@Override\r\n\tpublic String createID() {\r\n\t\t \r\n\t\t\t\treturn transCode.toString();\r\n\t\t\t\t}",
"public int getTranTime()\n\t{\n\t\treturn tranTime;\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getTransactionIdBytes() {\n java.lang.Object ref = transactionId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n transactionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Transaction getTransaction() {\n\t\treturn null;\n\t}",
"public long getPrimaryKey() {\n return _sTransaction.getPrimaryKey();\n }",
"public java.lang.String getTxIndex() {\n java.lang.Object ref = txIndex_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n txIndex_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"private String getTxAsString()\n {\n if (tx == null)\n return null;\n\n return tx.getClass().getName() + \"@\" + System.identityHashCode(tx);\n }",
"public Object getMessageId()\n {\n return getUnderlyingId(true);\n }",
"java.lang.String getTid();",
"java.lang.String getTid();",
"public String getId() {\n\t\treturn Integer.toString(this.hashCode());\n\t}",
"public String getID() {\n\t\treturn iReason;\n\t}",
"public java.lang.String getTxIndex() {\n java.lang.Object ref = txIndex_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n txIndex_ = s;\n return s;\n }\n }",
"public int getSenderId() {\n return messages.get(messages.size()-1).getNodeId();\n }"
]
| [
"0.6804594",
"0.6754523",
"0.6652108",
"0.66469854",
"0.6636514",
"0.6616873",
"0.66035926",
"0.6597041",
"0.6572727",
"0.6557366",
"0.6521649",
"0.6519528",
"0.6507706",
"0.6494147",
"0.6490282",
"0.6467656",
"0.64625543",
"0.6456716",
"0.6456716",
"0.64525676",
"0.64410704",
"0.6429548",
"0.6429548",
"0.64073646",
"0.64015454",
"0.64015454",
"0.6366937",
"0.63565254",
"0.63565254",
"0.6351637",
"0.6334911",
"0.6311845",
"0.6305698",
"0.6305698",
"0.62968314",
"0.62434816",
"0.6219901",
"0.6213508",
"0.6212711",
"0.61979777",
"0.61733544",
"0.616137",
"0.6154479",
"0.61341757",
"0.61301184",
"0.6126856",
"0.6104621",
"0.6100415",
"0.60968715",
"0.6078541",
"0.6055945",
"0.6034537",
"0.602788",
"0.6021682",
"0.6019556",
"0.59970367",
"0.59969777",
"0.59890777",
"0.59792215",
"0.59702945",
"0.59583426",
"0.5957448",
"0.5955592",
"0.5941486",
"0.5925576",
"0.5920199",
"0.5910954",
"0.5905117",
"0.5897256",
"0.5896871",
"0.5894968",
"0.58749694",
"0.58561844",
"0.5844762",
"0.5837262",
"0.5822512",
"0.58225065",
"0.5820769",
"0.5818888",
"0.58183306",
"0.5809783",
"0.58076817",
"0.5795151",
"0.5781689",
"0.576632",
"0.5756636",
"0.5756087",
"0.5751176",
"0.574779",
"0.5746071",
"0.5736699",
"0.571786",
"0.5716451",
"0.5703996",
"0.5698853",
"0.5698853",
"0.56986254",
"0.56974024",
"0.5686253",
"0.5669275"
]
| 0.6512733 | 12 |
public setter Unique identifier for the transaction about which this feedback entry was left. This field is not returned in the case of TransactionIDs from Chinese auction listings, because a value of zero is used for TransactionIDs in such cases. | public void setTransactionID(String transactionID) {
this.transactionID = transactionID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getId() {\n return txId;\n }",
"public long getTransactionID() {\r\n return transactionID;\r\n }",
"@Override\r\n\tpublic long txNumber() {\r\n\t\treturn -1; // dummy value\r\n\t}",
"public long getTransactionid() {\n return transactionid;\n }",
"public int getTransactionID() {\r\n return transactionID;\r\n }",
"public int getTransactionId() {\n return transactionId;\n }",
"long getTxid();",
"protected String getTransactionId() {\n return transactionId;\n }",
"public String getTransactionID() {\n\t return this.transactionID;\n\t}",
"java.lang.String getTxId();",
"public Long getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public String getFeedbackId() {\n return feedbackId;\n }",
"public Long getTransactionId() {\n return this.transactionId;\n }",
"public String getTransactionId()\n\t{\n\t\treturn transactionId;\n\t}",
"public long getTransactionId();",
"public int getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public String getTransactionId() {\n return transactionId;\n }",
"public String getTransactionId() {\n return transactionId;\n }",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n txId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n\tpublic int GetSetBtnTxId() {\n\t\treturn 0;\n\t}",
"public long getTransactionId() {\n return _sTransaction.getTransactionId();\n }",
"public java.lang.String getTransactionId() {\r\n return transactionId;\r\n }",
"public TransactionID(){\r\nthis.id = transCount++;\r\n\r\n}",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public String getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public String getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public String getTxid() {\n return txid;\n }",
"public long getId() {\n\t\treturn _tempNoTiceShipMessage.getId();\n\t}",
"public long getBaseTransId() {\n return commitList.getBaseTransId();\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public String getTransactionId() {\n return this.transactionId;\n }",
"void setTransactionId( long txId )\n {\n this.transactionId = txId;\n }",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n txId_ = s;\n return s;\n }\n }",
"public String getFeedbackID() {\n\t return this.feedbackID;\n\t}",
"public long getCommitTransId() {\n return commitList.getCommitTransId();\n }",
"String getTransactionID();",
"public EPPTransId() {\n\t\tclientTransId = null;\n\t\tserverTransId = null;\n\t}",
"public int getUniqueID() { \n return -1;\n }",
"public String getTransId() {\n\t\treturn transId;\n\t}",
"@Transient\n\tpublic String getParentTransactionId()\t{\n\t\tif (mParentTransactionIdLong > 0) \n\t\t\treturn Long.toString(mParentTransactionIdLong);\n\t\telse\n\t\t\treturn null;\n\t}",
"public void setTransactionID(long value) {\r\n this.transactionID = value;\r\n }",
"protected int getUniqueID() {\n\t\treturn uniqueID;\n\t}",
"@Override\r\n\tpublic String createID() {\r\n\t\t \r\n\t\t\t\treturn transCode.toString();\r\n\t\t\t\t}",
"public DBSequence getBudgetCustTranId() {\n return (DBSequence)getAttributeInternal(BUDGETCUSTTRANID);\n }",
"public String getUniqueID() {\n return this.uniqueID;\n }",
"public String getUniqueID ( ) { return _uniqueID; }",
"public static String getTransId() {\n\n return MDC.get(MDC_KEY_REQUEST_ID);\n }",
"UUID getTransmissionId();",
"UUID getTransactionId();",
"public int getUniqueId() {\r\n\t\treturn uniqueId;\r\n\t}",
"public String getUniqueID()\r\n {\r\n return (m_uniqueID);\r\n }",
"String getTransactionId();",
"String getTransactionId();",
"@Transient\n\tpublic long getTransactionIdLong() {\n\t\treturn mTransactionIdLong;\n\t}",
"public java.lang.Long getTransNo () {\r\n\t\treturn transNo;\r\n\t}",
"public com.google.protobuf.ByteString\n getTxIdBytes() {\n java.lang.Object ref = txId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\r\n\tpublic int selectNewId() {\n\t\treturn messageMapper.selectNewId();\r\n\t}",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public java.lang.String getTxid() {\n java.lang.Object ref = txid_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n txid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int get_last_transfert() {\n\t\treturn this.last_transfert;\n\t}",
"public String getFirstTxId() {\n\t\t\treturn firstTxId;\n\t\t}",
"com.google.protobuf.ByteString\n getTxIdBytes();",
"public String getUniqueId() {\n return _uniqueId;\n }",
"@java.lang.Override\n public java.lang.String getTxid() {\n java.lang.Object ref = txid_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n txid_ = s;\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getTxIdBytes() {\n java.lang.Object ref = txId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public int getTxIndex() {\n return txIndex;\n }",
"public Integer getSettlementno() {\n return settlementno;\n }",
"public synchronized long getNextTransactionID(){\n\t\treturn this.id++;\n\t}",
"public long getMemberId() {\n return _sTransaction.getMemberId();\n }",
"public void setTransactionID(int tid) {\n m_TransactionID = tid;\n // setChanged(true);\n }",
"@JsonIgnore\r\n public String getRedeemActivityId() {\r\n return OptionalNullable.getFrom(redeemActivityId);\r\n }",
"public long getTxnid() {\n return txnid_;\n }",
"private void GenerateTxId() {\n Random random = new Random();\n final String txId = String.valueOf(10000000 + random.nextInt(90000000));\n transactionModel.txId = txId;\n }",
"public String uniqueId() {\n return this.uniqueId;\n }",
"public int getIdUnitNew( )\n {\n return _nIdUnitNew;\n }",
"@java.lang.Override\n public java.lang.String getTransactionId() {\n java.lang.Object ref = transactionId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n transactionId_ = s;\n return s;\n }\n }",
"public java.lang.String getTransactionId() {\n java.lang.Object ref = transactionId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n transactionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getRecUpdTransId () {\n\t\treturn recUpdTransId;\n\t}",
"public long getTxnid() {\n return txnid_;\n }",
"public int getCanalTransaccionalId() {\r\n return canalTransaccionalId;\r\n }",
"public String getTransaction() {\n return transaction;\n }",
"public void setTransactionId(int value) {\n this.transactionId = value;\n }",
"public void setTransactionid(long value) {\n this.transactionid = value;\n }",
"public long getNoId() {\n return noId_;\n }",
"public Long getTransferId() {\n return transferId;\n }",
"public String getClientTransId() {\n\t\treturn clientTransId;\n\t}",
"public String getTransLogId() {\n return transLogId;\n }",
"public String getUniqueIdValue() {\n return uniqueIdValue;\n }",
"public Long getTransferId() {\n return transferId;\n }",
"public long getNoId() {\n return noId_;\n }",
"@Override\n\tpublic long getId() {\n\t\treturn _dmGtStatus.getId();\n\t}",
"private String getNewConversationId( )\r\n {\r\n return UUID.randomUUID( ).toString( );\r\n }",
"public int getCurrentBuyID(){\n return currentBuyID;\n }",
"public String getAndIncrement() {\n Integer value = transactionId.get();\n transactionId.set(value + 1);\n return String.format(\"T_%08d\", value);\n }",
"public Transaction getTransaction() {\n\t\treturn null;\n\t}",
"String getAcctgTransEntrySeqId();",
"public Text getIdAttachHolder()\r\n\t{\r\n\t\treturn idAttachHolder;\r\n\t}",
"@ApiModelProperty(value = \"The VisaNet transaction identifier. If you have previously sent an AFT, this field must include the VisaNet transaction identifier returned in the AFT response.<br><br><b>Note:</b> provide only if there is a corresponding AFT transaction response.\")\n public Long getTransactionIdentifier() {\n return transactionIdentifier;\n }",
"public long getLastTweetId() {\n return tweetAdapter.getItem(tweetAdapter.getCount()-1).getTweetId();\n }"
]
| [
"0.64191175",
"0.6394277",
"0.63566655",
"0.62428015",
"0.6196162",
"0.61416006",
"0.6126441",
"0.6073317",
"0.6065423",
"0.6062421",
"0.60458803",
"0.6027012",
"0.6008446",
"0.60068965",
"0.6001946",
"0.60015416",
"0.5982864",
"0.5982864",
"0.5973976",
"0.59676975",
"0.59317607",
"0.5929365",
"0.58991224",
"0.58982664",
"0.58982664",
"0.5896714",
"0.5896714",
"0.5892981",
"0.58882815",
"0.5884732",
"0.5879808",
"0.5879808",
"0.58793926",
"0.585991",
"0.58523095",
"0.584511",
"0.58410823",
"0.5822457",
"0.58038205",
"0.5755214",
"0.573295",
"0.5724017",
"0.571957",
"0.56874025",
"0.56801325",
"0.5673824",
"0.5665542",
"0.5661785",
"0.56603813",
"0.56597334",
"0.5653436",
"0.5652819",
"0.5652774",
"0.565116",
"0.565116",
"0.5644872",
"0.5636598",
"0.5614567",
"0.56132436",
"0.5572846",
"0.5567763",
"0.5558153",
"0.5553644",
"0.5535588",
"0.5535524",
"0.5533597",
"0.55322075",
"0.55257833",
"0.55166084",
"0.5514968",
"0.5500651",
"0.549875",
"0.54845285",
"0.5467108",
"0.5455266",
"0.54465413",
"0.54455996",
"0.54448867",
"0.54350173",
"0.54348",
"0.5433771",
"0.54286414",
"0.542181",
"0.5417684",
"0.54043573",
"0.5399964",
"0.53773665",
"0.5375025",
"0.5373284",
"0.537269",
"0.5368637",
"0.53675425",
"0.5356781",
"0.53554153",
"0.534987",
"0.53488916",
"0.5343323",
"0.5342864",
"0.53425556",
"0.53182757",
"0.53172845"
]
| 0.0 | -1 |
public getter Indicates whether eBay replaced the comment with a message that the comment was removed. | public Boolean getCommentReplaced() {
return this.commentReplaced;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isRemoved() {\n return REMOVED.equals(message);\n }",
"public void setCommentReplaced(Boolean commentReplaced) {\n\t this.commentReplaced = commentReplaced;\n\t}",
"public boolean isReplaced() {\n return REPLACED.equals(message);\n }",
"public String getAcCommentsMessage() {\n return acCommentsMessage;\n }",
"public int getDisableComment() {\n return disableComment_;\n }",
"public Comment getDeleteComment() {\r\n return deleteComment;\r\n }",
"boolean hasComment();",
"private boolean isRemoved() {\r\n\t\t\treturn removed;\r\n\t\t}",
"public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}",
"public boolean hasComment() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean isDescriptionModified() {\n return description_is_modified; \n }",
"public boolean hasComment() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public String getComment() {\n return this.comment;\n }",
"public String getComment()\n {\n return comment;\n }",
"@Override\r\n\tpublic boolean gbCommentModify(GroupBoardDto dto) {\n\t\treturn false;\r\n\t}",
"public boolean isRemoved() {\n return removed;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\r\n\t\treturn comment;\r\n\t}",
"boolean hasComments();",
"public boolean hasComments() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public String getComment() {\n return comment ;\n }",
"public int getDisableComment() {\n return instance.getDisableComment();\n }",
"private boolean replaceCommentInItems(int commentPosition, @NonNull GitHubComment comment) {\n Object item = items.get(commentPosition);\n boolean result = false;\n if (item instanceof GitHubComment) {\n items.set(commentPosition, comment);\n result = true;\n }\n return result;\n }",
"public String getComment(){\n return this.comment;\n }",
"public String getCommentText() {\n\t return this.commentText;\n\t}",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public boolean hasComments() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public final String getComment() {\n return comment;\n }",
"public String getComment() {\n return description;\n }",
"public boolean removed()\n {\n return this.removed;\n }",
"public void setComment(String new_comment){\n this.comment=new_comment;\n }",
"public String getCommentText() {\r\n\r\n\t\treturn commentText;\r\n\t}",
"public String getReasonRemove() {\r\n return reasonRemove;\r\n }",
"public String getComment(){\n return comment;\n }",
"public java.lang.String getComment() {\r\n return comment;\r\n }",
"public boolean hasComment() {\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"hasComment()\" );\n Via via=(Via)sipHeader;\n return via.hasComment();\n }",
"@Override\r\n\tpublic boolean bgCommentDelete(String br_uuid) {\n\t\treturn false;\r\n\t}",
"public String getComment() {\n Object ref = comment_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n comment_ = s;\n }\n return s;\n }\n }",
"public Comment getNewComment() {\r\n return newComment;\r\n }",
"boolean toBeRemoved(){\n\t\tif(isCancelled() || getStatus() == 0){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public String getCommentContent() {\n return commentContent;\n }",
"public boolean getAllowMessageDel() {\n return allowMessageDel;\n }",
"public boolean longDescriptionHasSeenBefore(){\n return longDescriptionviewer;\n }",
"public String getComment() {\n Object ref = comment_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comment_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"@Override\n\t/**\n\t * returns nothing because comments are disabled for classes\n\t * \n\t * @return nothing \n\t */\n\tpublic String getOriginalCommentName() {\n\t\treturn \"\";\n\t}",
"public boolean isOKToRemove(){\n return ( this == Acked || this == Expired || this == DLCMessage);\n }",
"boolean isSetComments();",
"String getComment();",
"String getComment();",
"public java.lang.String getComment() {\n return comment;\n }",
"public java.lang.String getComment() {\n return comment;\n }",
"public java.lang.String getComment() {\n return comment;\n }",
"boolean getSkipMessage();",
"public boolean isComment() {\r\n\t\treturn specialTag==SpecialTag.COMMENT;\r\n\t}",
"public java.lang.String getComments() {\n java.lang.Object ref = comments_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comments_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getComments() {\r\n return this.comments;\r\n }",
"public Optional<String> getComment() {\n\t\treturn Optional.ofNullable(_comment);\n\t}",
"public String get_comment() throws Exception {\n\t\treturn this.comment;\n\t}",
"public Boolean getFollowUpReplaced() {\n\t return this.followUpReplaced;\n\t}",
"public String getOverrideComment() {\n return overrideComment;\n }",
"public String getComment() {\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getComment() \" );\n Via via=(Via)sipHeader;\n return via.getComment();\n }",
"public String getComments() {\n return _comments;\n }",
"public String getComments() {\n return this.comments;\n }",
"public java.lang.String getComments() {\n java.lang.Object ref = comments_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n comments_ = s;\n }\n return s;\n }\n }",
"protected boolean beforeDelete() {\n if (DOCSTATUS_Drafted.equals(getDocStatus())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(null, \"El documento no se puede eliminar ya que no esta en Estado Borrador.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n\n }",
"public String getBookComment() {\n return bookComment;\n }",
"public String getBookComment() {\n return bookComment;\n }",
"public boolean isSetComment() {\n return this.comment != null;\n }",
"public void setComment(final String newComment) {\n this.comment = newComment;\n }",
"@Test\n public void testIsMarkedForDeletion() {\n System.out.println(\"isMarkedForDeletion\");\n Comment instance = testComment;\n boolean expResult = false;\n boolean result = instance.isMarkedForDeletion();\n assertEquals(expResult, result);\n }",
"public String getComments() {\n\t\treturn this.comments;\n\t}",
"public boolean visible_Comments_Field() {\r\n\t\treturn IsElementVisibleStatus(DefineSetup_Cmnts_txtBx);\r\n\t}",
"@Override\n\tpublic String getComment() {\n\t\treturn model.getComment();\n\t}",
"private boolean checkIfReadyToRemoveFromTracking(long messageID) {\n MsgData messageTrackingData = getTrackingData(messageID);\n return messageTrackingData.messageStatus.isOKToRemove();\n }",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public boolean removeComment(Comment comment) {\n try {\n comments.remove(comment);\n } catch (Exception ex) {\n return false;\n }\n return true;\n }",
"public boolean addComment (Message comment) {\n Logger.write(\"VERBOSE\", \"DB\", \"addComment(...)\");\n \n try {\n execute(DBStrings.addComment.replace(\"__sig__\", comment.getSig())\n .replace(\"__msgText__\", comment.CMNTgetText())\n .replace(\"__parent__\", comment.CMNTgetItemID())\n .replace(\"__commenterKey__\", Crypto.encodeKey(getSignatory(comment)))\n .replace(\"__senderKey__\", Crypto.encodeKey(getSignatory(comment)))\n .replace(\"__creationTime__\", Long.toString(comment.getTimestamp())));\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n return false;\n }\n \n return true;\n }",
"@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t */\n\tpublic void removedComment() {\n\t}",
"private void applyComment()\n {\n Map<String, GWikiArtefakt<?>> map = new HashMap<String, GWikiArtefakt<?>>();\n page.collectParts(map);\n GWikiArtefakt<?> artefakt = map.get(\"ChangeComment\");\n if (artefakt instanceof GWikiChangeCommentArtefakt == false) {\n return;\n }\n\n GWikiChangeCommentArtefakt commentArtefakt = (GWikiChangeCommentArtefakt) artefakt;\n String oldText = commentArtefakt.getStorageData();\n String ntext;\n String uname = wikiContext.getWikiWeb().getAuthorization().getCurrentUserName(wikiContext);\n int prevVersion = page.getElementInfo().getProps().getIntValue(GWikiPropKeys.VERSION, 0);\n if (StringUtils.isNotBlank(comment) == true) {\n Date now = new Date();\n ntext = \"{changecomment:modifiedBy=\"\n + uname\n + \"|modifiedAt=\"\n + GWikiProps.date2string(now)\n + \"|version=\"\n + (prevVersion + 1)\n + \"}\\n\"\n + comment\n + \"\\n{changecomment}\\n\"\n + StringUtils.defaultString(oldText);\n } else {\n ntext = oldText;\n }\n ntext = StringUtils.trimToNull(ntext);\n commentArtefakt.setStorageData(ntext);\n }",
"public void setDeleteComment(Comment deleteComment) {\r\n this.deleteComment = deleteComment;\r\n }",
"@Override\n\tpublic CommentVnEntity UpdateComment(CommentVnRequest commentRequest) {\n\t\treturn null;\n\t}",
"public String getjComment() {\n return jComment;\n }",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void removeComment() { \n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"removeComment() \" );\n Via via=(Via)sipHeader;\n via.removeComment();\n }",
"public String getComments() {\n return comments;\n }",
"public boolean canDeleteComment(Session session, Comment comment);",
"public void setNewComment(Comment newComment) {\r\n this.newComment = newComment;\r\n }"
]
| [
"0.6861879",
"0.6322261",
"0.62254727",
"0.6142266",
"0.5999524",
"0.59601796",
"0.59445345",
"0.5818741",
"0.57995695",
"0.579249",
"0.5790099",
"0.5768558",
"0.57584345",
"0.574799",
"0.5744926",
"0.57422423",
"0.5733457",
"0.5733457",
"0.5733457",
"0.5733457",
"0.5733457",
"0.5733457",
"0.5733457",
"0.5719054",
"0.5698237",
"0.5695069",
"0.5688692",
"0.568449",
"0.5675916",
"0.56756145",
"0.56741333",
"0.56725055",
"0.56725055",
"0.56725055",
"0.56725055",
"0.56725055",
"0.56725055",
"0.5667169",
"0.56661785",
"0.56661785",
"0.56646526",
"0.5644958",
"0.56409156",
"0.5626303",
"0.5617701",
"0.56130904",
"0.56118476",
"0.5611238",
"0.56071377",
"0.55783224",
"0.55727047",
"0.55707276",
"0.5570306",
"0.55702645",
"0.5560513",
"0.5557587",
"0.5555794",
"0.55555004",
"0.5552233",
"0.552705",
"0.55267346",
"0.55267346",
"0.5522316",
"0.5522316",
"0.5522316",
"0.55129707",
"0.55123687",
"0.55098337",
"0.5509546",
"0.5491364",
"0.54768634",
"0.54720104",
"0.5465888",
"0.5462983",
"0.5451782",
"0.5443454",
"0.5437022",
"0.5422905",
"0.54220283",
"0.54220283",
"0.5409177",
"0.54087776",
"0.54057896",
"0.5388886",
"0.53610605",
"0.5342581",
"0.5340671",
"0.53356075",
"0.533419",
"0.53189456",
"0.5302072",
"0.529751",
"0.52831614",
"0.5280162",
"0.5273512",
"0.52712584",
"0.52584994",
"0.5254301",
"0.52515936",
"0.5243073"
]
| 0.7413173 | 0 |
public setter Indicates whether eBay replaced the comment with a message that the comment was removed. | public void setCommentReplaced(Boolean commentReplaced) {
this.commentReplaced = commentReplaced;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setComment(String new_comment){\n this.comment=new_comment;\n }",
"public Boolean getCommentReplaced() {\n\t return this.commentReplaced;\n\t}",
"public void setComments(String newValue);",
"public void setComment(final String newComment) {\n this.comment = newComment;\n }",
"public void setComment(String comment);",
"public void setComment(String comment);",
"public void setHopscomment( java.lang.String newValue ) {\n __setCache(\"hopscomment\", newValue);\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"private void setDisableComment(int value) {\n \n disableComment_ = value;\n }",
"public void setNewComment(Comment newComment) {\r\n this.newComment = newComment;\r\n }",
"public void setComments(java.lang.String value);",
"@Override\r\n\tpublic boolean gbCommentModify(GroupBoardDto dto) {\n\t\treturn false;\r\n\t}",
"public void setComment(String comment){\n this.comment = comment;\n }",
"public void setComment(String comment)\n {\n this.comment = comment;\n }",
"private void applyComment()\n {\n Map<String, GWikiArtefakt<?>> map = new HashMap<String, GWikiArtefakt<?>>();\n page.collectParts(map);\n GWikiArtefakt<?> artefakt = map.get(\"ChangeComment\");\n if (artefakt instanceof GWikiChangeCommentArtefakt == false) {\n return;\n }\n\n GWikiChangeCommentArtefakt commentArtefakt = (GWikiChangeCommentArtefakt) artefakt;\n String oldText = commentArtefakt.getStorageData();\n String ntext;\n String uname = wikiContext.getWikiWeb().getAuthorization().getCurrentUserName(wikiContext);\n int prevVersion = page.getElementInfo().getProps().getIntValue(GWikiPropKeys.VERSION, 0);\n if (StringUtils.isNotBlank(comment) == true) {\n Date now = new Date();\n ntext = \"{changecomment:modifiedBy=\"\n + uname\n + \"|modifiedAt=\"\n + GWikiProps.date2string(now)\n + \"|version=\"\n + (prevVersion + 1)\n + \"}\\n\"\n + comment\n + \"\\n{changecomment}\\n\"\n + StringUtils.defaultString(oldText);\n } else {\n ntext = oldText;\n }\n ntext = StringUtils.trimToNull(ntext);\n commentArtefakt.setStorageData(ntext);\n }",
"public void setDeleteComment(Comment deleteComment) {\r\n this.deleteComment = deleteComment;\r\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public void setZCOMMENTS(java.lang.String value)\n {\n if ((__ZCOMMENTS == null) != (value == null) || (value != null && ! value.equals(__ZCOMMENTS)))\n {\n _isDirty = true;\n }\n __ZCOMMENTS = value;\n }",
"@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t */\n\tpublic void setItemHavingComment() {\n\t}",
"public final void setComment(final String comment) {\n this.comment = comment;\n }",
"public void setComments(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), COMMENTS, value);\r\n\t}",
"@SuppressWarnings(\"unused\")\n public Comment() {\n edited = false;\n }",
"@Override\n\tpublic CommentVnEntity UpdateComment(CommentVnRequest commentRequest) {\n\t\treturn null;\n\t}",
"public void setComments(String value) {\n setAttributeInternal(COMMENTS, value);\n }",
"public void setComment(String p_comment) throws RuntimeException\n {\n setTitle(p_comment);\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public void setComment(java.lang.String comment) {\r\n this.comment = comment;\r\n }",
"public void setComment(String c) {\n comment = c ;\n }",
"@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}",
"@Override\n\tpublic void setComment(String comment) {\n\t\tmodel.setComment(comment);\n\t}",
"public void setComments( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), COMMENTS, value);\r\n\t}",
"public void setComment(String comment) {\r\n\t\tthis.comment = comment == null ? null : comment.trim();\r\n\t}",
"@Override\n public void comment(String comment)\n {\n }",
"public void setField(long messageId, boolean newValue);",
"public int getDisableComment() {\n return disableComment_;\n }",
"public void setComment(java.lang.String comment) {\n this.comment = comment;\n }",
"public void setComment(java.lang.String comment) {\n this.comment = comment;\n }",
"public void setComment(java.lang.String comment) {\n this.comment = comment;\n }",
"@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t */\n\tpublic void removedComment() {\n\t}",
"public void setComments(String comment) {\n\t\tthis.comments = comment;\n\t}",
"public void setComments(String comments) {\n _comments = comments;\n }",
"public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}",
"public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}",
"public void set_comment(String comment) throws Exception{\n\t\tthis.comment = comment;\n\t}",
"private void clearDisableComment() {\n \n disableComment_ = 0;\n }",
"public void removeToCommentsList(Object newValue);",
"public void removeToCommentsList(Object newValue);",
"public void setComment(String comment) {\n this.comment = comment == null ? null : comment.trim();\n }",
"public void setComment(String comment) {\n this.comment = comment == null ? null : comment.trim();\n }",
"public void setComment(String comment) {\n this.comment = comment == null ? null : comment.trim();\n }",
"public void setComment(String comment) {\n this.comment = comment == null ? null : comment.trim();\n }",
"@Override\n @IcalProperty(pindex = PropertyInfoIndex.COMMENT,\n adderName = \"comment\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n public void setComments(final Set<BwString> val) {\n comments = val;\n }",
"public void setEquipcomment( java.lang.String newValue ) {\n __setCache(\"equipcomment\", newValue);\n }",
"public void setComments (java.lang.String comments) {\r\n\t\tthis.comments = comments;\r\n\t}",
"private boolean replaceCommentInItems(int commentPosition, @NonNull GitHubComment comment) {\n Object item = items.get(commentPosition);\n boolean result = false;\n if (item instanceof GitHubComment) {\n items.set(commentPosition, comment);\n result = true;\n }\n return result;\n }",
"public String getComment(){\n return this.comment;\n }",
"public void removeComments(java.lang.String value) {\r\n\t\tBase.remove(this.model, this.getResource(), COMMENTS, value);\r\n\t}",
"public void setCommentaire(String newCommentaire) {\n\t\tthis.commentaire = newCommentaire;\n\t}",
"public void setComments(String comments) {\r\n this.comments = comments;\r\n }",
"public Builder setComment(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n comment_ = value;\n onChanged();\n return this;\n }",
"public String getComment() {\n return this.comment;\n }",
"public void removeComment() { \n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"removeComment() \" );\n Via via=(Via)sipHeader;\n via.removeComment();\n }",
"public void removeComments( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), COMMENTS, value);\r\n\t}",
"public String getComment(){\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getOverrideComment() {\n return overrideComment;\n }",
"@Override\n public void onComment(Comment newComment) {\n addComment(mPostRef, newComment)\n .addOnSuccessListener(this, new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(LOG_VAL, \"Comment added\");\n\n //Hide keyboard and scroll to top\n hideKeyboard();\n mCommentRecycler.smoothScrollToPosition(0);\n }\n })\n .addOnFailureListener(this, new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.w(LOG_VAL, \"Add comment failed\", e);\n\n //show failure message and hide keyboard\n hideKeyboard();\n Snackbar.make(findViewById(android.R.id.content), \"Failed to add comment\",\n Snackbar.LENGTH_SHORT).show();\n }\n });\n }",
"public String getComment()\n {\n return comment;\n }",
"private void updateLiveComment(String comment) {\n MainActivity mainActivity = (MainActivity) this.getContext();\n mainActivity.setLiveComment(comment);\n }",
"@Override\r\n\tpublic void setWholeComment(String currentComment) {\n\t\t\r\n\t}",
"public void setOverrideComment(String aOverrideComment) {\n overrideComment = aOverrideComment;\n }",
"public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}",
"public String getComment() {\r\n\t\treturn comment;\r\n\t}",
"public void setComments(String comments) {\n this.comments = comments;\n }",
"public void setComments (java.lang.String comments) {\n\t\tthis.comments = comments;\n\t}",
"void setCheckinComment(String comment);",
"public void setComment(Address address, int commentType, String comment);",
"void setComments(org.hl7.fhir.String comments);",
"public String getComment() {\n return comment ;\n }",
"public void setRemoved(boolean b) {\n removed = b;\n }",
"@Override\n public void setComments(java.lang.String comments) {\n _entityCustomer.setComments(comments);\n }",
"public void setComment(String comment) throws IllegalArgumentException,\n SipParseException {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"setComment() \" + comment );\n Via via=(Via)sipHeader;\n \n if (comment==null) \n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: null comment\" );\n else if (comment.length() == 0) \n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: 0 length comment\" );\n else via.setComment(comment);\n }",
"public void setCommentContent(String commentContent) {\n this.commentContent = commentContent == null ? null : commentContent.trim();\n }",
"@Test\r\n public void testSetValue() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n comment.setValue(COMMENT1);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT1+\"\\n\", s);\r\n \r\n comment = new CIFComment(COMMENTS);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \r\n \"#comment 1\\n\" +\r\n \"#comment 2\\n\" +\r\n \"#comment 3\\n\" +\r\n \"\", s);\r\n comment.setValue(COMMENT1);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT1+\"\\n\", s);\r\n }",
"boolean isSetComments();",
"public Builder setCommentsBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n comments_ = value;\n onChanged();\n return this;\n }",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public String getComment() {\n return description;\n }",
"public void setComments(String comments) {\n\t\tthis.comments = comments;\n\t}",
"public void setComments(String comments) {\n\t\tthis.comments = comments;\n\t}",
"@Override\r\n\tpublic void modifyReply(CommentVO vo) throws Exception {\n\t\tsession.update(namespace + \".modifyReply\", vo);\r\n\t}",
"public Builder setCommentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n comment_ = value;\n onChanged();\n return this;\n }"
]
| [
"0.69708276",
"0.6941374",
"0.6727063",
"0.6577683",
"0.6570477",
"0.6570477",
"0.63810223",
"0.6253711",
"0.6249949",
"0.6238475",
"0.61931306",
"0.6158647",
"0.6145095",
"0.61248934",
"0.6059878",
"0.6058405",
"0.6042201",
"0.5994319",
"0.5987656",
"0.59857553",
"0.5985573",
"0.5981478",
"0.5971709",
"0.59634143",
"0.59543014",
"0.5934679",
"0.5934679",
"0.59334964",
"0.59275556",
"0.5923716",
"0.5918108",
"0.58930916",
"0.5882407",
"0.58821636",
"0.5874231",
"0.58602285",
"0.5835823",
"0.5835823",
"0.5835823",
"0.5827893",
"0.5817876",
"0.58177394",
"0.58032",
"0.58032",
"0.5801718",
"0.5782415",
"0.57756054",
"0.57756054",
"0.57719296",
"0.57719296",
"0.57719296",
"0.57719296",
"0.5770632",
"0.57393944",
"0.5736959",
"0.5718436",
"0.5715545",
"0.5705992",
"0.5690006",
"0.5688708",
"0.5673617",
"0.566999",
"0.5659571",
"0.5655922",
"0.56312394",
"0.5630729",
"0.5630729",
"0.5630729",
"0.5630729",
"0.5630729",
"0.5630729",
"0.5630729",
"0.5622232",
"0.56215817",
"0.5615423",
"0.56146115",
"0.5612765",
"0.5612377",
"0.5609685",
"0.5604981",
"0.5601539",
"0.55969477",
"0.55955446",
"0.55897343",
"0.55852145",
"0.55706424",
"0.55513334",
"0.55511045",
"0.55497044",
"0.55440176",
"0.5539613",
"0.55350566",
"0.5528833",
"0.552382",
"0.552382",
"0.55233496",
"0.5509648",
"0.5509648",
"0.55026287",
"0.549391"
]
| 0.7029201 | 0 |
public getter Indicates whether eBay replaced the response with a message that the response was removed. | public Boolean getResponseReplaced() {
return this.responseReplaced;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isOKToRemove(){\n return ( this == Acked || this == Expired || this == DLCMessage);\n }",
"public boolean hasResponseMessage() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }",
"public boolean isRemoved() {\n return REMOVED.equals(message);\n }",
"public boolean hasResponseMessage() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }",
"public void setResponseReplaced(Boolean responseReplaced) {\n\t this.responseReplaced = responseReplaced;\n\t}",
"public boolean isResponseChanged() {\n return responseChanged;\n }",
"boolean hasResponseMessage();",
"public boolean isReplaced() {\n return REPLACED.equals(message);\n }",
"boolean hasReplacePlayerResponse();",
"boolean isMarkAsResponse();",
"public Boolean getFollowUpReplaced() {\n\t return this.followUpReplaced;\n\t}",
"public boolean isRemoved() {\n return removed;\n }",
"boolean afficherReponse(String reponse)\n\t{\n\t\treturn respLine.afficherReponse(reponse);\n\t}",
"private boolean isRemoved() {\r\n\t\t\treturn removed;\r\n\t\t}",
"public boolean removed()\n {\n return this.removed;\n }",
"boolean toBeRemoved(){\n\t\tif(isCancelled() || getStatus() == 0){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public String getReasonRemove() {\r\n return reasonRemove;\r\n }",
"public boolean hasRespp() {\n return fieldSetFlags()[4];\n }",
"public boolean isResponse(){\n return true;\n }",
"public boolean getIsResponse() {\n\t\treturn isResponse;\n\t\t\n\t}",
"public boolean hasListResponse() {\n return msgCase_ == 6;\n }",
"public String getResponseMessage() { return responseMessage; }",
"public boolean hasListResponse() {\n return msgCase_ == 6;\n }",
"public boolean isDeclined()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"DECLINED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean canHandleOutdatedMessaged() {\n\t return false;\n\t}",
"public boolean hasResponse() {\n return instance.hasResponse();\n }",
"public boolean hasResponse() {\n return instance.hasResponse();\n }",
"public boolean hasResponse() {\n return instance.hasResponse();\n }",
"public boolean hasResponse() {\n return instance.hasResponse();\n }",
"public boolean hasResponseLink() {\n return fieldSetFlags()[7];\n }",
"private boolean checkIfReadyToRemoveFromTracking(long messageID) {\n MsgData messageTrackingData = getTrackingData(messageID);\n return messageTrackingData.messageStatus.isOKToRemove();\n }",
"public boolean hasResponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasResponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isContactResponse() {\n int flags = rBody.getCollisionFlags();\n boolean result = (flags & CollisionFlags.NO_CONTACT_RESPONSE) == 0x0;\n return result;\n }",
"public boolean hasResponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasResponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasResponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean getRemoveWhenFarAway ( ) {\n\t\treturn extract ( handle -> handle.getRemoveWhenFarAway ( ) );\n\t}",
"boolean hasRemsg();",
"@java.lang.Override\n public boolean hasReplicateResponse() {\n return replicateResponse_ != null;\n }",
"public boolean hasReplicateResponse() {\n return replicateResponseBuilder_ != null || replicateResponse_ != null;\n }",
"public boolean hasResponse() {\n return response_ != null;\n }",
"public boolean getAllowMessageDel() {\n return allowMessageDel;\n }",
"public boolean hasResponse() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasResponseCode() {\n return fieldSetFlags()[5];\n }",
"public boolean isDescriptionModified() {\n return description_is_modified; \n }",
"@Override\n\tpublic boolean isResponseExpected() {\n\t\treturn false;\n\t}",
"public boolean isResponseError()\n\t{\n\t\treturn this.responseError;\t\t\n\t}",
"public boolean hasResponse() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }",
"public boolean hasResponse() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public void setResponseMessage(String responseMessage) { this.responseMessage = responseMessage; }",
"public boolean hasResponse() {\n return response_ != null;\n }",
"public boolean hasResponse() {\n return response_ != null;\n }",
"public boolean hasResponse() {\n return response_ != null;\n }",
"public boolean hasRetrieveFileResponse() {\n return msgCase_ == 11;\n }",
"public boolean isRMRemoveOfficialResult() {\r\n return rmRemoveOfficialResult;\r\n }",
"public boolean getRefuse() {\n return refuse_;\n }",
"public boolean hasResponse() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }",
"boolean getSkipMessage();",
"public boolean hasRetrieveFileResponse() {\n return msgCase_ == 11;\n }",
"public boolean lose() { return lost; }",
"public String concludeRequest() {\n\t\treturn \"Already received a request\";\n\t}",
"private boolean isDescriptionInDocGeneratorResponse(DocumentGeneratorResponse response) {\n\n if (StringUtils.isBlank(response.getDescription())) {\n Map<String, Object> logMap = new HashMap<>();\n logMap.put(LOG_MESSAGE_KEY,\n \"The description has not been in the Document Generator Response\");\n LOGGER.error(LOG_DOC_GENERATOR_RESPONSE_INVALID_MESSAGE_KEY, logMap);\n\n return false;\n }\n return true;\n }",
"public boolean hasResponse() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasBidresponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"@Schema(description = \"an optional message back the client. In the case of a simple message response for a verification message or dialog that message will be available here \")\n public String getResponseMessage() {\n return responseMessage;\n }",
"@Override\n\tpublic boolean getVanished() {\n\t\treturn this.vanished;\n\t}",
"public boolean hasBidresponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public Response getOriginalResponse()\n\t{\n\t\treturn originalResponse;\n\t}",
"boolean hasUnReceived();",
"public String getResponseMessage() {\n return responseMessage;\n }",
"public boolean getRejected() {\n return rejected;\n }",
"@Override\n public boolean getOrReplace() {\n return orReplace_;\n }",
"@Override\n public boolean getOrReplace() {\n return orReplace_;\n }",
"public boolean hasTxnresponse() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"boolean isDisplayMessageOnRedeem();",
"public boolean getRejected() {\n return rejected;\n }",
"public com.google.search.now.wire.feed.ResponseProto.Response getResponse() {\n return instance.getResponse();\n }",
"public com.google.search.now.wire.feed.ResponseProto.Response getResponse() {\n return instance.getResponse();\n }",
"public com.google.search.now.wire.feed.ResponseProto.Response getResponse() {\n return response_ == null ? com.google.search.now.wire.feed.ResponseProto.Response.getDefaultInstance() : response_;\n }",
"public com.google.search.now.wire.feed.ResponseProto.Response getResponse() {\n return response_ == null ? com.google.search.now.wire.feed.ResponseProto.Response.getDefaultInstance() : response_;\n }",
"public boolean isForgettable ()\r\n {\r\n return forgettable_;\r\n }",
"public boolean hasTxnresponse() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasResponseAddress() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"public boolean isRemastered() {\r\n\t\treturn this.remastered;\r\n\t}",
"boolean hasSkipMessage();",
"public List<String> getResponseHeadersToRemoveList() {\n return responseHeadersToRemove;\n }",
"public boolean hasReason() {\n return ((bitField0_ & 0x00000010) != 0);\n }",
"public org.hl7.fhir.Boolean getWasNotGiven()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Boolean target = null;\n target = (org.hl7.fhir.Boolean)get_store().find_element_user(WASNOTGIVEN$4, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"boolean hasSystemResponse();",
"@Override\n public boolean getOrReplace() {\n return orReplace_;\n }",
"@Override\n public boolean getOrReplace() {\n return orReplace_;\n }",
"public static boolean retrievePartialResponseSent(Message message) {\n Boolean ret = (Boolean)message.get(PARTIAL_REPONSE_SENT_PROPERTY);\n return ret != null && ret.booleanValue();\n }",
"public boolean isTaggedAsRemoved() {\n\t return levelOfRemoval > 0;\n\t}",
"boolean hasResponse();",
"boolean hasResponse();",
"boolean hasResponse();",
"boolean hasResponse();",
"boolean hasResponse();",
"boolean hasResponse();"
]
| [
"0.6589313",
"0.6491007",
"0.6464144",
"0.6455053",
"0.6441081",
"0.6336334",
"0.630978",
"0.6181975",
"0.60932",
"0.5952684",
"0.59123105",
"0.5902891",
"0.5891837",
"0.58778524",
"0.5782481",
"0.5775186",
"0.57677704",
"0.57279617",
"0.56789064",
"0.5675919",
"0.5673077",
"0.56597996",
"0.5654676",
"0.5598506",
"0.5580667",
"0.5564895",
"0.5564895",
"0.5564895",
"0.5564895",
"0.55291516",
"0.55228895",
"0.55184764",
"0.5515792",
"0.55010027",
"0.5497591",
"0.5497591",
"0.5497591",
"0.54825956",
"0.54750884",
"0.5471247",
"0.54613817",
"0.5455815",
"0.5449313",
"0.5448757",
"0.5447785",
"0.5445604",
"0.54373795",
"0.54305965",
"0.5421648",
"0.5421347",
"0.54200053",
"0.5404481",
"0.5404481",
"0.5404481",
"0.5399183",
"0.539638",
"0.5395729",
"0.53889185",
"0.53764945",
"0.5370365",
"0.5365796",
"0.5362166",
"0.5351016",
"0.53500175",
"0.5347245",
"0.5346256",
"0.5330582",
"0.53239155",
"0.53130263",
"0.5307988",
"0.5304477",
"0.5285632",
"0.52764636",
"0.52764636",
"0.52763456",
"0.52712923",
"0.5271127",
"0.5258338",
"0.5258338",
"0.52564913",
"0.52564913",
"0.5241915",
"0.5235147",
"0.5231945",
"0.52206457",
"0.52151835",
"0.5213894",
"0.5210155",
"0.52042526",
"0.519572",
"0.51931745",
"0.51931745",
"0.5191321",
"0.5190167",
"0.5188674",
"0.5188674",
"0.5188674",
"0.5188674",
"0.5188674",
"0.5188674"
]
| 0.72920364 | 0 |
public setter Indicates whether eBay replaced the response with a message that the response was removed. | public void setResponseReplaced(Boolean responseReplaced) {
this.responseReplaced = responseReplaced;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean getResponseReplaced() {\n\t return this.responseReplaced;\n\t}",
"public boolean isOKToRemove(){\n return ( this == Acked || this == Expired || this == DLCMessage);\n }",
"public void setResponseMessage(String responseMessage) { this.responseMessage = responseMessage; }",
"public boolean isResponseChanged() {\n return responseChanged;\n }",
"public boolean hasResponseMessage() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }",
"public boolean hasResponseMessage() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }",
"public void setRemoved(boolean b) {\n removed = b;\n }",
"boolean isMarkAsResponse();",
"private void setResponse(com.google.search.now.wire.feed.ResponseProto.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n bitField0_ |= 0x00000002;\n }",
"private void setResponse(com.google.search.now.wire.feed.ResponseProto.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n bitField0_ |= 0x00000001;\n }",
"boolean hasResponseMessage();",
"boolean hasReplacePlayerResponse();",
"public void setIsResponse(boolean isResponse) {\n\t\tthis.isResponse = isResponse;\n\t\t\n\t}",
"private void setResponse(\n com.google.search.now.wire.feed.ResponseProto.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n bitField0_ |= 0x00000002;\n }",
"boolean afficherReponse(String reponse)\n\t{\n\t\treturn respLine.afficherReponse(reponse);\n\t}",
"public Boolean getFollowUpReplaced() {\n\t return this.followUpReplaced;\n\t}",
"private void setResponse(\n com.google.search.now.wire.feed.ResponseProto.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n bitField0_ |= 0x00000001;\n }",
"public boolean isReplaced() {\n return REPLACED.equals(message);\n }",
"void setDefinitionResponseMsg(com.exacttarget.wsdl.partnerapi.DefinitionResponseMsgDocument.DefinitionResponseMsg definitionResponseMsg);",
"public boolean isRemoved() {\n return REMOVED.equals(message);\n }",
"public void setRemove(Boolean newValue);",
"public String getReasonRemove() {\r\n return reasonRemove;\r\n }",
"public void setResponseError(boolean value)\n\t{\n\t\tthis.responseError = value;\n\t}",
"public Builder clearResponseMessage() {\n bitField0_ = (bitField0_ & ~0x00002000);\n responseMessage_ = getDefaultInstance().getResponseMessage();\n onChanged();\n return this;\n }",
"private static void sendNotModified(HttpResponse response) throws ForceCloseConnection {\n\t\tresponse.setStatus(HttpResponseStatus.NOT_MODIFIED);\n\t\tsetDateHeader(response);\n\n\t\t// Close the connection as soon as the error message is sent.\n\t\tthrow new ForceCloseConnection();\n\t}",
"public Builder setResponse(com.google.search.now.wire.feed.ResponseProto.Response value) {\n copyOnWrite();\n instance.setResponse(value);\n return this;\n }",
"public Builder setResponse(com.google.search.now.wire.feed.ResponseProto.Response value) {\n copyOnWrite();\n instance.setResponse(value);\n return this;\n }",
"@Override\n\tpublic void updateFalse(MetodoPagamento object) {\n\t\t\n\t}",
"public void setAnnounced(Boolean newValue);",
"@Override\n\tpublic boolean isResponseExpected() {\n\t\treturn false;\n\t}",
"public void setRejected(boolean value) {\n this.rejected = value;\n }",
"public void setResponseMessage(KineticMessage response) {\n this.response = response;\n }",
"public Builder setResponseMessage(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00002000;\n responseMessage_ = value;\n onChanged();\n return this;\n }",
"public abstract void setNovedad(java.lang.String newNovedad);",
"public void setSendingReferrersAsNotSent() {\n }",
"public boolean isResponse(){\n return true;\n }",
"public void setContentInvalid(boolean contentInvalid) {\n/* 1170 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public Builder setTxnresponse(TxnResponseProto.TxnResponse value) {\n if (txnresponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n txnresponse_ = value;\n onChanged();\n } else {\n txnresponseBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }",
"boolean toBeRemoved(){\n\t\tif(isCancelled() || getStatus() == 0){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public void indicateNot() {\r\n notIndicated = true;\r\n }",
"public void setReasonRemove(String reasonRemove) {\r\n this.reasonRemove = reasonRemove;\r\n }",
"void removeIsEquivalent(Noun oldIsEquivalent);",
"public boolean getAllowMessageDel() {\n return allowMessageDel;\n }",
"@Override\n public boolean isOutdated() {\n return false;\n }",
"private void setResponse(\n net.iGap.proto.ProtoResponse.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n \n }",
"private void setResponse(\n net.iGap.proto.ProtoResponse.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n \n }",
"public void reportIrreversibleChange() {\r\n Assert.isTrue(isReceiving());\r\n irreversibleChangeReported = true;\r\n }",
"public void setModified (boolean modified);",
"public boolean isDescriptionModified() {\n return description_is_modified; \n }",
"public void setResponse(String response) {\n this.response = response;\n }",
"public void setResponse(String response) {\n this.response = response;\n }",
"protected final void setDontShowThisAgain() {\n messageFactory.setDontShowThisAgain(messageId);\n }",
"public boolean lose() { return lost; }",
"void setCheckProductEligibilityResponse(amdocs.iam.pd.pdwebservices.CheckProductEligibilityResponseDocument.CheckProductEligibilityResponse checkProductEligibilityResponse);",
"public void setWasNotGiven(org.hl7.fhir.Boolean wasNotGiven)\n {\n generatedSetterHelperImpl(wasNotGiven, WASNOTGIVEN$4, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public void setFollowUpReplaced(Boolean followUpReplaced) {\n\t this.followUpReplaced = followUpReplaced;\n\t}",
"public boolean canHandleOutdatedMessaged() {\n\t return false;\n\t}",
"public com.example.DNSLog.Builder setRejected(boolean value) {\n validate(fields()[19], value);\n this.rejected = value;\n fieldSetFlags()[19] = true;\n return this;\n }",
"public void setUnproved() {\n\t\tproveState = UNPROVED;\n\t}",
"public Builder setResponse(\n com.google.search.now.wire.feed.ResponseProto.Response.Builder builderForValue) {\n copyOnWrite();\n instance.setResponse(builderForValue);\n return this;\n }",
"public Builder setResponse(\n com.google.search.now.wire.feed.ResponseProto.Response.Builder builderForValue) {\n copyOnWrite();\n instance.setResponse(builderForValue);\n return this;\n }",
"public void setAchieved(Boolean newValue);",
"public String getResponseMessage() { return responseMessage; }",
"public void setResponse(edu.itq.soa.ResponseDocument.Response response)\n {\n generatedSetterHelperImpl(response, RESPONSE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public boolean isRemoved() {\n return removed;\n }",
"private void setResponse(net.iGap.proto.ProtoResponse.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n \n }",
"private void setResponse(net.iGap.proto.ProtoResponse.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n \n }",
"@Override\n\t\tpublic void setWasRetried(boolean wasRetried) {\n\t\t\t\n\t\t}",
"private boolean isRemoved() {\r\n\t\t\treturn removed;\r\n\t\t}",
"public void setNotVisibleIfNotBlockedAndReplaced() {\n\t\tif (!isBlocked && getReplacementAttribute() == null) {\n\t\t\tthis.isVisible = false;\n\t\t}\n\t}",
"public void setRemoveLine(boolean b){\n\t\tremoveline = b;\n\t}",
"protected void setSuccess(boolean newSuccess)\r\n {\r\n success = newSuccess;\r\n }",
"@Override\r\n\tpublic void setReturnMessage(OclMessage returnMessage) {\n\r\n\t}",
"private boolean isDescriptionInDocGeneratorResponse(DocumentGeneratorResponse response) {\n\n if (StringUtils.isBlank(response.getDescription())) {\n Map<String, Object> logMap = new HashMap<>();\n logMap.put(LOG_MESSAGE_KEY,\n \"The description has not been in the Document Generator Response\");\n LOGGER.error(LOG_DOC_GENERATOR_RESPONSE_INVALID_MESSAGE_KEY, logMap);\n\n return false;\n }\n return true;\n }",
"@Override\n public void onResponse(String response) {\n\n if (response.equals(update_success)) {\n return;\n }\n if (response.equals(update_fail)) {\n return;\n }\n if (response.equals(non_value)) {\n return;\n }\n if (response.equals(wrong_query)) {\n return;\n }\n if (response.equals(non_post)) {\n\n }\n }",
"@Test\n\tpublic void testResponse() {\n\t\tquestions.setResponse(\"No\");\n\t\tassertEquals(\"No\",questions.getResponse());\n\t}",
"public boolean getIsResponse() {\n\t\treturn isResponse;\n\t\t\n\t}",
"public void setRejected (java.lang.Boolean rejected) {\n\t\tthis.rejected = rejected;\n\t}",
"public boolean removed()\n {\n return this.removed;\n }",
"@Schema(description = \"an optional message back the client. In the case of a simple message response for a verification message or dialog that message will be available here \")\n public String getResponseMessage() {\n return responseMessage;\n }",
"@Override\n\tprotected boolean isUserWishToKeepChanges() {\n\t\tString newValue = convertPairsToText().replace(\" \", \"\");\n\t\tString oldValue = result.get().replace(\" \", \"\");\n\t\t\n\t\tif(oldValue.equals(newValue))\n\t\t\treturn false;\n\t\t\n\t\treturn not(showConfirmActionDialog());\n\t}",
"public void addMessage(Response response)\n {\n if (response == null)\n {\n //leave a mark to skip a message\n messageSequence.add(false);\n }\n else\n messageSequence.add(response);\n }",
"public ReversionResponse() {\n\t\tthis.codigoBusqueda = \"\";\n\t\tthis.idTxnNeivorResponse = 0L;\n\t\tthis.idTxnRevertida = 0L;\n\t}",
"public void setRemoveWhenFarAway ( boolean remove ) {\n\t\texecute ( handle -> handle.setRemoveWhenFarAway ( remove ) );\n\t}",
"public boolean isDeclined()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"DECLINED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private void clearResponse() { response_ = null;\n bitField0_ = (bitField0_ & ~0x00000002);\n }",
"Observable<Boolean> messageBodyRecipientCardViewIsGone();",
"public boolean hasResponseLink() {\n return fieldSetFlags()[7];\n }",
"private boolean remove() {\r\n\t\t\treturn removed = true;\r\n\t\t}",
"private boolean m43013b(int responseCode) {\n if (responseCode == 200 || responseCode == 202 || responseCode == 206) {\n return true;\n }\n return false;\n }",
"@Override\n\tpublic boolean update(CampusReplyVO reply) {\n\t\treturn replyMapper.update(reply)>0?true:false;\n\t}",
"public boolean unSetDangerous() {\r\n\t\tif(isDangerous && isCovered) {\r\n\t\t\tisDangerous=false;\r\n\t\t\t\r\n\t\t\tthis.setChanged();\r\n\t\t\tthis.notifyObservers();\r\n\t\t\tthis.clearChanged();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void setField(long messageId, boolean newValue);",
"public Builder setResponse(com.github.yeriomin.playstoreapi.ResponseWrapper value) {\n if (responseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n onChanged();\n } else {\n responseBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }",
"boolean getSkipMessage();",
"@Override\n public boolean getOrReplace() {\n return orReplace_;\n }",
"@Override\n public boolean getOrReplace() {\n return orReplace_;\n }",
"public void setResponseView(String message){\n messageStatusView.append(message);\n messageStatusView.append(\"\\n\");\n }",
"public boolean hasRespp() {\n return fieldSetFlags()[4];\n }",
"public Response getOriginalResponse()\n\t{\n\t\treturn originalResponse;\n\t}"
]
| [
"0.66664493",
"0.60637015",
"0.60580844",
"0.6025033",
"0.59195566",
"0.58864564",
"0.5809603",
"0.5728845",
"0.5648963",
"0.56433433",
"0.5583264",
"0.55629903",
"0.5545482",
"0.5543733",
"0.55398566",
"0.5509427",
"0.54914725",
"0.54814565",
"0.5473538",
"0.5458364",
"0.54162896",
"0.53954536",
"0.539027",
"0.5387992",
"0.5375229",
"0.537063",
"0.537063",
"0.53073186",
"0.5307286",
"0.5298214",
"0.52873385",
"0.52540493",
"0.52529275",
"0.524668",
"0.52466774",
"0.5227512",
"0.5220979",
"0.52095914",
"0.5202529",
"0.51914996",
"0.5191365",
"0.51803744",
"0.5169818",
"0.5165246",
"0.5162916",
"0.5162916",
"0.5162048",
"0.5159208",
"0.51430976",
"0.51422817",
"0.51422817",
"0.514172",
"0.5141176",
"0.51395684",
"0.51360667",
"0.51342356",
"0.51283807",
"0.512554",
"0.5123727",
"0.512106",
"0.512106",
"0.5111182",
"0.51105165",
"0.5110019",
"0.5107726",
"0.51010203",
"0.51010203",
"0.5074899",
"0.5063436",
"0.5060454",
"0.50553626",
"0.5054522",
"0.50511736",
"0.50510466",
"0.5050039",
"0.50498664",
"0.5025774",
"0.5023989",
"0.50233",
"0.5021521",
"0.5020631",
"0.50206125",
"0.5017366",
"0.50156456",
"0.50104636",
"0.50036246",
"0.50024134",
"0.5002042",
"0.500141",
"0.49998933",
"0.49961594",
"0.4996128",
"0.49901098",
"0.49863285",
"0.49806407",
"0.4979232",
"0.4979232",
"0.49789554",
"0.4978398",
"0.49726397"
]
| 0.67702967 | 0 |
public getter Indicates whether eBay replaced the followup with a message that the followup was removed. | public Boolean getFollowUpReplaced() {
return this.followUpReplaced;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasFollowUp() \n {\n return followUp.equals(Constants.CLOSE);\n }",
"public void setFollowUpReplaced(Boolean followUpReplaced) {\n\t this.followUpReplaced = followUpReplaced;\n\t}",
"public boolean isRemoved() {\n return REMOVED.equals(message);\n }",
"public String getFollowUp() {\n\t return this.followUp;\n\t}",
"public boolean getNoFollow() {\n return noFollow;\n }",
"public String getFollowUp() \n {\n return followUp;\n }",
"public Boolean getFollowing() { return following; }",
"@Override\n\tpublic boolean unfollowUser(Long us_id) {\n\t\treturn false;\n\t}",
"public boolean isOKToRemove(){\n return ( this == Acked || this == Expired || this == DLCMessage);\n }",
"private boolean userNotAlreadyFollowing(String url) {\n mStatusTextView.setText(\"\");\n\n if (WearFeedEntry.isFollowingUrl(url)) {\n mStatusTextView.setText(getActivity().getString(R.string.already_following_feed));\n return false;\n }\n\n return true;\n }",
"private boolean isRemoved() {\r\n\t\t\treturn removed;\r\n\t\t}",
"public boolean getRemoveWhenFarAway ( ) {\n\t\treturn extract ( handle -> handle.getRemoveWhenFarAway ( ) );\n\t}",
"public void setFollowUp(String followUp) {\n\t this.followUp = followUp;\n\t}",
"public void setFollowing(Boolean newValue) { following = newValue; }",
"@Override\n\tpublic boolean followUser(Long us_id) {\n\t\treturn false;\n\t}",
"public String getUserFollowers() {\n String temp = userFollowers;\r\n userFollowers = \"Has no followers\";\r\n return temp;\r\n }",
"public boolean isReplaced() {\n return REPLACED.equals(message);\n }",
"public org.hl7.fhir.Boolean getWasNotGiven()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Boolean target = null;\n target = (org.hl7.fhir.Boolean)get_store().find_element_user(WASNOTGIVEN$4, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"boolean toBeRemoved(){\n\t\tif(isCancelled() || getStatus() == 0){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isRemoved() {\n return removed;\n }",
"public String getFollow() {\r\n return follow;\r\n }",
"private boolean checkIfReadyToRemoveFromTracking(long messageID) {\n MsgData messageTrackingData = getTrackingData(messageID);\n return messageTrackingData.messageStatus.isOKToRemove();\n }",
"public boolean removed()\n {\n return this.removed;\n }",
"public boolean getRefuse() {\n return refuse_;\n }",
"public String getReasonRemove() {\r\n return reasonRemove;\r\n }",
"public Boolean getResponseReplaced() {\n\t return this.responseReplaced;\n\t}",
"public String getFollowing() {\n return following;\n }",
"public String getFollowUpInstr() {\r\n\t\treturn followUpInstr;\r\n\t}",
"public boolean hasFollowingN() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasFollowingN() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isUnproved() {\n\t\treturn proveState == UNPROVED;\n\t}",
"boolean hasIsRedeemed();",
"public boolean isRMRemoveOfficialResult() {\r\n return rmRemoveOfficialResult;\r\n }",
"@Override\r\n\tpublic void update(FollowUp followup) {\n\t\t\r\n\t}",
"boolean isDisplayMessageOnRedeem();",
"boolean hasReplacePlayerResponse();",
"boolean hasRemsg();",
"public boolean hasDeleteBackUp() {\n return msgCase_ == 12;\n }",
"public void setNoFollow() {\n noFollow= true;\n }",
"boolean hasSkipMessage();",
"public boolean isRemastered() {\r\n\t\treturn this.remastered;\r\n\t}",
"boolean getSkipMessage();",
"public boolean hasDeleteBackUp() {\n return msgCase_ == 12;\n }",
"@Override\r\n\tpublic void delete(FollowUp followup) {\n\t\t\r\n\t}",
"public void setFollowUp(final String followID) \n {\n followUp = followID;\n }",
"@Override\n\t\tpublic void onUnfollow(User arg0, User arg1) {\n\t\t\t\n\t\t}",
"boolean hasUnReceived();",
"public boolean getFaceUp() {\n\t\treturn faceUp;\n\t}",
"private boolean inspect(Pinner pinner) {\n if (unfollowConfig.getUnfollowOnlyRecordedFollowings()) {\n if (pinbot3.PinBot3.dalMgr.containsObjectExternally(pinner, DALManager.TYPES.duplicates_unfollow_pinners, account)) {\n return false;\n }\n /*for (PinterestObject p : account.getDuplicates_follow()) {\n if (p instanceof Pinner && ((Pinner) p).equals(pinner)\n && (new Date()).getTime() - ((Pinner) p).getTimeFollow() <= unfollowConfig.getTimeBetweenFollowAndUnfollow()) {\n return false;\n }\n }*/\n }\n\n if (!unfollowConfig.getCriteria_Users()) {\n return true;\n }\n\n String url = \"/\" + pinner.getUsername() + \"/\";\n String referer = pinner.getBaseUsername();\n int pincount = pinner.getPinsCount();\n int followerscount = pinner.getFollowersCount();\n\n if (!(pincount >= unfollowConfig.getCriteria_UserPinsMin() && pincount <= unfollowConfig.getCriteria_UserPinsMax())) {\n return true;\n }\n if (!(followerscount >= unfollowConfig.getCriteria_UserFollowersMin() && followerscount <= unfollowConfig.getCriteria_UserFollowersMax())) {\n return true;\n }\n\n try {\n if (!Http.validUrl(base_url + url)) {\n return false;\n }\n\n String rs = MakeRequest(base_url + url, referer, Http.ACCEPT_HTML);\n if (rs == null) {\n return false;\n }\n\n Pattern pattern = Pattern.compile(\"name=\\\"pinterestapp:following\\\" content=\\\"(\\\\d+)\\\"\", Pattern.DOTALL | Pattern.CASE_INSENSITIVE & Pattern.MULTILINE);\n Matcher matcher = pattern.matcher(rs);\n if (matcher.find()) {\n int followingcount = Integer.parseInt(matcher.group(1));\n if (!(followingcount >= unfollowConfig.getCriteria_UserFollowingMin() && followingcount <= unfollowConfig.getCriteria_UserFollowingMax())) {\n return true;\n }\n }\n\n pattern = Pattern.compile(\"name=\\\"pinterestapp:boards\\\" content=\\\"(\\\\d+)\\\"\", Pattern.DOTALL | Pattern.CASE_INSENSITIVE & Pattern.MULTILINE);\n matcher = pattern.matcher(rs);\n if (matcher.find()) {\n int boardcount = Integer.parseInt(matcher.group(1));\n if (!(boardcount >= unfollowConfig.getCriteria_UserBoardsMin() && boardcount <= unfollowConfig.getCriteria_UserBoardsMax())) {\n return true;\n }\n }\n return true;\n } catch (InterruptedException ex) {\n //ignore\n config.isInterrupt = true;\n return false;\n } catch (Exception ex) {\n common.ExceptionHandler.reportException(ex);\n return false;\n }\n }",
"public boolean isUrgent() {\n\t\treturn urgent;\n\t}",
"private boolean isFollowing(User user, String target)\n{\n \n DefaultListModel following = user.getFollowings();\n if (following.contains(target))\n {\n return true;\n }\n return false;\n}",
"public boolean longDescriptionHasSeenBefore(){\n return longDescriptionviewer;\n }",
"public void setFollowUpInstr(String followUpInstr) {\r\n\t\tthis.followUpInstr = followUpInstr;\r\n\t}",
"public Boolean isFollowing() {\n Integer groupType = getGroupType();\n if (groupType != null && groupType == Group.DISCUSSION_KEY) {\n return isMember();\n } else {\n return isFollowing;\n }\n }",
"private boolean m91739M() {\n if (!C6903bc.m21482a().mo84630a() || !TextUtils.equals(this.f73944a, \"homepage_follow\")) {\n return false;\n }\n return true;\n }",
"@Override\n\tprotected boolean isUserWishToKeepChanges() {\n\t\tString newValue = convertPairsToText().replace(\" \", \"\");\n\t\tString oldValue = result.get().replace(\" \", \"\");\n\t\t\n\t\tif(oldValue.equals(newValue))\n\t\t\treturn false;\n\t\t\n\t\treturn not(showConfirmActionDialog());\n\t}",
"public static boolean removeFollower(String currentUser, String userToFollow) {\n return UserFactory.removeFollower(currentUser, userToFollow);\n }",
"private boolean noVacancy() {\r\n\t\t\treturn removed = false;\r\n\t\t}",
"private boolean remove() {\r\n\t\t\treturn removed = true;\r\n\t\t}",
"Observable<Boolean> messageBodyRecipientCardViewIsGone();",
"public org.hl7.fhir.Boolean addNewWasNotGiven()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Boolean target = null;\n target = (org.hl7.fhir.Boolean)get_store().add_element_user(WASNOTGIVEN$4);\n return target;\n }\n }",
"public boolean isTaggedAsRemoved() {\n\t return levelOfRemoval > 0;\n\t}",
"public boolean VerifyOrderConfirmation_ThankYouMessage() {\n\t\tboolean flag = false;\n\t\t\n\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.THANKYOU_LABEL).isDisplayed();\n\t\tif(flag){extentLogs.pass(\"VerifyOrderDetails\", \"OrderConfirmationIsDisplayed\");\n\t }else{extentLogs.fail(\"VerifyOrderDetails\", \"OrderNumberLabelIsNotDisplayed\");}\n\t\t\n\t\treturn flag;\n\t}",
"@Override\n protected boolean isFinished() {\n return (m_left_follower.isFinished() || m_right_follower.isFinished());\n }",
"public boolean isForgettable ()\r\n {\r\n return forgettable_;\r\n }",
"public Boolean isPunishment() {\n return (Boolean) get(\"punishment\");\n }",
"public static boolean getFb() {\n return fb;\n }",
"public boolean hasResponseMessage() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }",
"boolean getRefuse();",
"@Override\n public boolean test(Status status) {\n User tweetPoster = status.getUser();\n\n if (followStatusChecker.isFollowedBy(tweetPoster)) {\n return true;\n }\n if (unfollowAutomatically && followStatusChecker.isFollowing(tweetPoster)) {\n try {\n System.out.println(\"I'm going to unfollow \" + status.getUser() + \" because he is not following us anymore\");\n followStatusChecker.unfollow(tweetPoster);\n } catch (TwitterException e) {\n e.printStackTrace();\n }\n }\n return false;\n }",
"public boolean verifyMentorRequestContinue(){\n\t\treturn mentorConnectRequestObjects.almostDoneText.isDisplayed();\n\t}",
"public boolean hasDetonated()\r\n\t{\r\n\t\treturn detonated;\r\n\t}",
"public boolean hasResponseMessage() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }",
"public boolean remain();",
"public static boolean compareNotices(Notice upDatedNotice) throws Exception {\n Session session = HibernateUtil.getCurrentSession();\n String textToUpdate = upDatedNotice.getText();\n Notice notice = get(upDatedNotice.getAncestorID());\n int textHash = 0;\n if(notice.getText() != null) {\n textHash = notice.getText().hashCode();\n }\n int updateTextHash = textToUpdate.hashCode();\n if (textHash == updateTextHash) {\n return false;\n }\n session.save(upDatedNotice);\n return true;\n }",
"public boolean isDoneFlgFalse() {\n HangarCDef.Flg cdef = getDoneFlgAsFlg();\n return cdef != null ? cdef.equals(HangarCDef.Flg.False) : false;\n }",
"public boolean isDeclined()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"DECLINED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isRemovalDeferred() {\n return this.mDeferredRemoval;\n }",
"public void setFollowing(String following) {\n this.following = following;\n }",
"boolean hasUserMessage();",
"private boolean isMentioned(MessageReceivedEvent event) {\n Message message = event.getMessage();\n\n if (message.getContentRaw().equals(\"<@!\" + ID.SELF + \">\")) {\n message.reply(\"Hi, my prefix is `\" + Setting.PREFIX + \"`. You can also use `/help` for more info.\").queue();\n return true;\n }\n\n return false;\n }",
"public boolean isIdUsusarioModified()\n\t{\n\t\treturn idUsusarioModified;\n\t}",
"public Boolean isRemoveFromSharing() {\n return removeFromSharing;\n }",
"public boolean unFollowPage(int pageID) throws Exception\n {\n return userFan.unfollowPage(pageID);\n }",
"public boolean isInAppMessageShowing() {\n return false;\n }",
"@Override\r\n\t\tpublic boolean hasPrevious() {\n\t\t\treturn false;\r\n\t\t}",
"boolean isWeakRelationship();",
"boolean isRemove();",
"public boolean lose() { return lost; }",
"public boolean canHandleOutdatedMessaged() {\n\t return false;\n\t}",
"public boolean hasPrevious() {\n\t\t\t\treturn false;\r\n\t\t\t}",
"public Boolean getDeprecated()\n {\n return deprecated;\n }",
"void removeIsEquivalent(Noun oldIsEquivalent);",
"public boolean hasNewMessage() throws RemoteException {\r\n return !messages.isEmpty();\r\n }",
"public boolean toggleFollowUser(String follower, String followed) {\n return userDAO.toggleFollowUser(follower, followed);\n }",
"public boolean uncover() {\r\n\t\tif(isCovered && !isDangerous) {\r\n\t\t\tisCovered=false;\r\n\t\t\t\r\n\t\t\tthis.setChanged();\r\n\t\t\tthis.notifyObservers();\r\n\t\t\tthis.clearChanged();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private boolean m125720o() {\n return isAdded() && !isDetached();\n }",
"boolean hasFaceUp();",
"@Override\n\tpublic boolean isRented() {\n\t\treturn false;\n\t}",
"public boolean isAlreadyReported() {\n return this.alreadyReported;\n }"
]
| [
"0.72204596",
"0.67869526",
"0.6414709",
"0.63181174",
"0.6286277",
"0.6265254",
"0.6168292",
"0.6108114",
"0.6022298",
"0.6008244",
"0.5771504",
"0.57640934",
"0.57614815",
"0.5724853",
"0.56956756",
"0.5684551",
"0.56842554",
"0.5672121",
"0.56663954",
"0.56527674",
"0.56262714",
"0.56158614",
"0.5560065",
"0.5548742",
"0.5547755",
"0.55218226",
"0.5514108",
"0.5512579",
"0.5502418",
"0.5499611",
"0.5437377",
"0.5417162",
"0.53823245",
"0.5376847",
"0.5372949",
"0.5370764",
"0.53240275",
"0.5316673",
"0.53125906",
"0.5307653",
"0.53028953",
"0.5302144",
"0.5297677",
"0.52921987",
"0.5279015",
"0.52700084",
"0.5256285",
"0.5241068",
"0.5236466",
"0.52139413",
"0.5213312",
"0.5197753",
"0.51967466",
"0.5196425",
"0.5190745",
"0.5189185",
"0.5188806",
"0.5180656",
"0.5180542",
"0.517524",
"0.5174456",
"0.51645094",
"0.51576805",
"0.5152811",
"0.5145809",
"0.51398605",
"0.51242",
"0.5107296",
"0.51018155",
"0.50927454",
"0.5090867",
"0.50878084",
"0.5087273",
"0.50832033",
"0.50790787",
"0.50782263",
"0.5075604",
"0.5072307",
"0.50717443",
"0.50703007",
"0.5067333",
"0.5066274",
"0.50541055",
"0.5048548",
"0.5033915",
"0.5032477",
"0.5032456",
"0.50323886",
"0.5030592",
"0.5022095",
"0.501871",
"0.5017641",
"0.50082076",
"0.5006684",
"0.5006144",
"0.4989541",
"0.49831414",
"0.49825373",
"0.4981451",
"0.49805635"
]
| 0.7785373 | 0 |
public setter Indicates whether eBay replaced the followup with a message that the followup was removed. | public void setFollowUpReplaced(Boolean followUpReplaced) {
this.followUpReplaced = followUpReplaced;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean getFollowUpReplaced() {\n\t return this.followUpReplaced;\n\t}",
"public void setFollowing(Boolean newValue) { following = newValue; }",
"public boolean hasFollowUp() \n {\n return followUp.equals(Constants.CLOSE);\n }",
"public void setFollowUp(String followUp) {\n\t this.followUp = followUp;\n\t}",
"public void setFollowUp(final String followID) \n {\n followUp = followID;\n }",
"@Override\r\n\tpublic void update(FollowUp followup) {\n\t\t\r\n\t}",
"public void setNoFollow() {\n noFollow= true;\n }",
"public boolean getNoFollow() {\n return noFollow;\n }",
"@Override\n\tpublic boolean unfollowUser(Long us_id) {\n\t\treturn false;\n\t}",
"public String getFollowUp() {\n\t return this.followUp;\n\t}",
"public String getFollowUp() \n {\n return followUp;\n }",
"public void setFollowing(String following) {\n this.following = following;\n }",
"public Boolean getFollowing() { return following; }",
"public void setFollow(String follow) {\r\n this.follow = follow;\r\n }",
"public void setFollowUpInstr(String followUpInstr) {\r\n\t\tthis.followUpInstr = followUpInstr;\r\n\t}",
"@Override\n\tpublic boolean followUser(Long us_id) {\n\t\treturn false;\n\t}",
"private boolean userNotAlreadyFollowing(String url) {\n mStatusTextView.setText(\"\");\n\n if (WearFeedEntry.isFollowingUrl(url)) {\n mStatusTextView.setText(getActivity().getString(R.string.already_following_feed));\n return false;\n }\n\n return true;\n }",
"@Override\n\t\tpublic void onUnfollow(User arg0, User arg1) {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void updateFalse(MetodoPagamento object) {\n\t\t\n\t}",
"public String getFollow() {\r\n return follow;\r\n }",
"public void setRemoveWhenFarAway ( boolean remove ) {\n\t\texecute ( handle -> handle.setRemoveWhenFarAway ( remove ) );\n\t}",
"@Override\r\n\tpublic void delete(FollowUp followup) {\n\t\t\r\n\t}",
"public void setRemoved(boolean b) {\n removed = b;\n }",
"public void setWasNotGiven(org.hl7.fhir.Boolean wasNotGiven)\n {\n generatedSetterHelperImpl(wasNotGiven, WASNOTGIVEN$4, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public void setAchieved(Boolean newValue);",
"public void setRemove(Boolean newValue);",
"public boolean toggleFollowUser(String follower, String followed) {\n return userDAO.toggleFollowUser(follower, followed);\n }",
"public void setUnproved() {\n\t\tproveState = UNPROVED;\n\t}",
"public boolean isOKToRemove(){\n return ( this == Acked || this == Expired || this == DLCMessage);\n }",
"public void removeFromFollowedUsers(String followedUsers);",
"public void setFollowPosition(boolean on) {\n\tfollowPos = on;\n }",
"public boolean isRemoved() {\n return REMOVED.equals(message);\n }",
"public boolean unSetDangerous() {\r\n\t\tif(isDangerous && isCovered) {\r\n\t\t\tisDangerous=false;\r\n\t\t\t\r\n\t\t\tthis.setChanged();\r\n\t\t\tthis.notifyObservers();\r\n\t\t\tthis.clearChanged();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void setAnnounced(Boolean newValue);",
"void removeIsEquivalent(Noun oldIsEquivalent);",
"public void unfollow(int followerId, int followeeId) {\n\n }",
"default void disableFollowButton() {}",
"public String getFollowing() {\n return following;\n }",
"public void setFollowing(ArrayList<Following> followings) {\n following_list = followings;\n }",
"public void setHasLeveledUp(boolean value) {\n this.hasLeveledUp = value;\n }",
"public boolean hasFollowingN() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasFollowingN() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean unfollow(ProfileInterface other);",
"@Override\n\tprotected boolean isUserWishToKeepChanges() {\n\t\tString newValue = convertPairsToText().replace(\" \", \"\");\n\t\tString oldValue = result.get().replace(\" \", \"\");\n\t\t\n\t\tif(oldValue.equals(newValue))\n\t\t\treturn false;\n\t\t\n\t\treturn not(showConfirmActionDialog());\n\t}",
"public void setPopedUp(Boolean settothis) {\n\t\tpopedup = settothis;\n\n\t}",
"protected final void setDontShowThisAgain() {\n messageFactory.setDontShowThisAgain(messageId);\n }",
"public void mo56529a(TopicFeedFollowNoUpdate topicFeedFollowNoUpdate) {\n C32569u.m150519b(topicFeedFollowNoUpdate, C6969H.m41409d(\"G6D82C11B\"));\n }",
"public void metFollower() {\n metFollowers++;\n }",
"public void setForua(boolean newValue);",
"public org.hl7.fhir.Boolean addNewWasNotGiven()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Boolean target = null;\n target = (org.hl7.fhir.Boolean)get_store().add_element_user(WASNOTGIVEN$4);\n return target;\n }\n }",
"@Override\r\n\tpublic boolean updateUser() {\n\t\treturn false;\r\n\t}",
"public void removeFriend(String me, String other, UserFriends uf) {\n MongoCollection<Document> followColl = db.getCollection(\"followList\");\n\n getFollowList(me, uf);\n\n // remove other user on my following list\n if (!uf.friendsList.isEmpty()) uf.friendsList.remove(other);\n if (uf.friendsList.contains(me)) uf.friendsList.remove(me);\n\n // updating database\n followColl.findOneAndUpdate(\n eq(\"username\", me),\n Updates.set(\"following\", uf.friendsList)\n );\n }",
"void unFollow(User user);",
"@Override\n public boolean update(EmailNotification entity) {\n return false;\n }",
"public String getUserFollowers() {\n String temp = userFollowers;\r\n userFollowers = \"Has no followers\";\r\n return temp;\r\n }",
"@Override\r\n\tpublic boolean update(Moteur obj) {\n\t\treturn false;\r\n\t}",
"public boolean getRefuse() {\n return refuse_;\n }",
"public void setSendingReferrersAsNotSent() {\n }",
"public void setFollowingSince(Date followingSince) {\n this.followingSince = followingSince;\n }",
"public String getFollowUpInstr() {\r\n\t\treturn followUpInstr;\r\n\t}",
"public boolean isReplaced() {\n return REPLACED.equals(message);\n }",
"public void setFollowOrigin(String FollowOrigin) {\n this.FollowOrigin = FollowOrigin;\n }",
"@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}",
"@Override\n public void setPlayerDoneEliminating(Player player, boolean value) {\n DatabaseReference currentRef = database.getReference(gameCodeRef).child(\"Players\").child(player.getUsername());\n currentRef.child(\"DoneEliminating\").setValue(value);\n if(value){\n updateNrPlayerValues(\"PlayersDoneEliminating\");\n }\n\n }",
"@Override\n public void setFollowableNotifiableStatus(Followable.FollowableNotifiable notifiable) {\n logger.debug(\"setFollowableNotifiableStatus(notifiable: {})\", notifiable);\n // process update\n this.setFollowableNotifiableStatusByFollowable(authenticationService.getCurrentUser(), notifiable);\n }",
"public void setReasonRemove(String reasonRemove) {\r\n this.reasonRemove = reasonRemove;\r\n }",
"public String getReasonRemove() {\r\n return reasonRemove;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Followup)) {\n return false;\n }\n Followup other = (Followup) object;\n if ((this.idfollowup == null && other.idfollowup != null) || (this.idfollowup != null && !this.idfollowup.equals(other.idfollowup))) {\n return false;\n }\n return true;\n }",
"@Override\n\tpublic void unfollow(String username) throws Exception {\n\t\t\n\t}",
"public static void setFb(boolean f) {\n fb = f;\n }",
"@Override\n public final boolean hasForfeitAttribute() {\n return true;\n }",
"public void unfollow(int followerId, int followeeId) {\n if(users.containsKey(followerId) && followerId != followeeId){\n users.get(followerId).remove(followeeId); // Remove as required\n } \n }",
"boolean toBeRemoved(){\n\t\tif(isCancelled() || getStatus() == 0){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean setDangerous() {\r\n\t\tif(!isDangerous && isCovered) {\r\n\t\t\tisDangerous=true;\r\n\t\t\t\r\n\t\t\tthis.setChanged();\r\n\t\t\tthis.notifyObservers();\r\n\t\t\tthis.clearChanged();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n public boolean isOutdated() {\n return false;\n }",
"Observable<Boolean> messageBodyRecipientCardViewIsGone();",
"public boolean getRemoveWhenFarAway ( ) {\n\t\treturn extract ( handle -> handle.getRemoveWhenFarAway ( ) );\n\t}",
"private boolean m91739M() {\n if (!C6903bc.m21482a().mo84630a() || !TextUtils.equals(this.f73944a, \"homepage_follow\")) {\n return false;\n }\n return true;\n }",
"private void setRefuse(boolean value) {\n \n refuse_ = value;\n }",
"private boolean userMadeChanges() {\n\t\treturn userMadeChanges(null);\n\t}",
"private boolean isFollowing(User user, String target)\n{\n \n DefaultListModel following = user.getFollowings();\n if (following.contains(target))\n {\n return true;\n }\n return false;\n}",
"public boolean removeContributor(String value) {\n/* 74 */ return removeStringFromArray(\"contributor\", value);\n/* */ }",
"public void setMoveUp(boolean TorF) {\n moveUp = TorF;\n }",
"public void retireLead()\r\n\t{\r\n\t\tisleader = false;\r\n\t}",
"public static boolean removeFollower(String currentUser, String userToFollow) {\n return UserFactory.removeFollower(currentUser, userToFollow);\n }",
"public void setReferral( boolean referral )\n {\n this.referral = referral;\n }",
"public abstract void setNovedad(java.lang.String newNovedad);",
"public void setFaceUp(){faceUp = true;}",
"private boolean modifiable() {\n // Only allow un-answered tests/surveys to be modified\n return this.completed.size() == 0;\n }",
"private boolean remove() {\r\n\t\t\treturn removed = true;\r\n\t\t}",
"@Override\n public boolean test(Status status) {\n User tweetPoster = status.getUser();\n\n if (followStatusChecker.isFollowedBy(tweetPoster)) {\n return true;\n }\n if (unfollowAutomatically && followStatusChecker.isFollowing(tweetPoster)) {\n try {\n System.out.println(\"I'm going to unfollow \" + status.getUser() + \" because he is not following us anymore\");\n followStatusChecker.unfollow(tweetPoster);\n } catch (TwitterException e) {\n e.printStackTrace();\n }\n }\n return false;\n }",
"public void changeIfJail()\r\n\t{\r\n\t\tisJailed = !isJailed;\r\n\t}",
"@Override\n\tpublic boolean updateStatus() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isRented() {\n\t\treturn false;\n\t}",
"public void setField(long messageId, boolean newValue);",
"boolean hasIsRedeemed();",
"public org.hl7.fhir.Boolean getWasNotGiven()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Boolean target = null;\n target = (org.hl7.fhir.Boolean)get_store().find_element_user(WASNOTGIVEN$4, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public boolean getFaceUp() {\n\t\treturn faceUp;\n\t}"
]
| [
"0.7485202",
"0.6979337",
"0.66798264",
"0.6495645",
"0.6338458",
"0.62000906",
"0.61782444",
"0.61282545",
"0.6113143",
"0.6037991",
"0.6029061",
"0.59625834",
"0.5930355",
"0.5871057",
"0.5776124",
"0.57614356",
"0.56583905",
"0.5588091",
"0.55861795",
"0.5541857",
"0.54990214",
"0.54970044",
"0.5451502",
"0.5432305",
"0.5415654",
"0.54101837",
"0.53784645",
"0.53651047",
"0.53531295",
"0.5341972",
"0.53406054",
"0.5287879",
"0.52558076",
"0.52523094",
"0.52384937",
"0.5229925",
"0.5217899",
"0.5180401",
"0.5176972",
"0.5170858",
"0.5154989",
"0.51546425",
"0.5151927",
"0.5144886",
"0.5134927",
"0.5131283",
"0.5113725",
"0.5112584",
"0.51051766",
"0.5104619",
"0.51030195",
"0.50970536",
"0.5080879",
"0.5068146",
"0.5065043",
"0.50648516",
"0.5057359",
"0.50526196",
"0.50465363",
"0.503943",
"0.503554",
"0.5024046",
"0.5023016",
"0.5023016",
"0.5023016",
"0.50123656",
"0.5003219",
"0.49990827",
"0.4989621",
"0.49824798",
"0.49757344",
"0.49716356",
"0.49674246",
"0.49646524",
"0.49633208",
"0.49624822",
"0.49619156",
"0.49545306",
"0.49467736",
"0.49459174",
"0.49457416",
"0.49456584",
"0.4945551",
"0.49400425",
"0.49362987",
"0.49357602",
"0.49350375",
"0.4927581",
"0.49252144",
"0.4920392",
"0.49202612",
"0.49156764",
"0.4911875",
"0.49118677",
"0.4908201",
"0.49063066",
"0.48989192",
"0.4890999",
"0.4888693",
"0.4887538"
]
| 0.7547247 | 0 |
public getter Specifies if a user's feedback score is or is not countable. This field is returned only when a user's feedback score is not countable (value is false). | public Boolean getCountable() {
return this.countable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasFeedback();",
"public boolean hasFeedback() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasFeedback() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"int getFeedback();",
"Feedback getFeedback();",
"public Integer getIsUseful() {\n return isUseful;\n }",
"boolean hasBonusStats();",
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"public abstract Boolean higherScoreBetter();",
"public interface HasCollectUserPreference\n {\n /**\n * not feedback\n */\n String NOT_FEEDBACK = \"0\";\n\n /**\n * Has feedback\n */\n String FEEDBACK = \"1\";\n }",
"public int getHotOrNotRating() {\r\n if (ratingCount == 0) return 0;\r\n return (rating/ratingCount);\r\n }",
"public Integer getCommentingUserScore() {\n\t return this.commentingUserScore;\n\t}",
"public boolean getUsageWeighted() {\n return usageWeighted; \n }",
"public boolean checkBonus() {\r\n\t\tif (bonus) {\r\n\t\t\tbonus = false;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public float getNoOfPositiveReviewsAfinn(){\n return afinnPositive;\n }",
"lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKING getFeedback();",
"public Integer getSafeScore() {\n return safeScore;\n }",
"public double getFalsePositiveRate() {\n\t\treturn falsePositiveRate;\n\t}",
"public double getNumberOfTrueNegatives() {\n\t\treturn numberOfTrueNegatives;\n\t}",
"Boolean getIsAnswered();",
"public boolean isUsingBestScore() {\n return usingBestScore;\n }",
"@Override\n\t/**\n\t * @return feedback\n\t * \t\t\treturns the feedback or status of the operation\n\t */\n\tpublic OperationFeedback getOpFeedback() {\n\t\treturn feedback;\n\t}",
"public boolean isOverThreshold(){return isOverThreshold;}",
"Boolean getCompletelyCorrect();",
"public boolean hasBonusStats() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasBonusStats() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean isSetScore() {\n return __isset_bit_vector.get(__SCORE_ISSET_ID);\n }",
"public float getNoOfNegativeReviewsAfinn(){\n return afinnNegative;\n }",
"public abstract boolean higherScoresAreBetter();",
"public boolean getMustUnderstand();",
"public Short getUserRating() {\r\n return userRating;\r\n }",
"public boolean discount(){\n return false;\n }",
"public String getIsRecommended() {\n return isRecommended;\n }",
"Boolean getPartiallyCorrect();",
"public lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKING getFeedback() {\n return feedback_;\n }",
"public boolean isReviewPositive()\n {\n return (m_nReviewValue == REVIEW_VALUE_POSITIVE) ? true : false ;\n }",
"public static void setProvideFeedback(boolean b){\n\t\tprovideFeedback = b;\t \n\t}",
"boolean hasBonusPercentHP();",
"Boolean getAccruedInterest();",
"public double get_numCorrectAns(){return this._numCorrectAns;}",
"public boolean getNotSupplied() {\n return notSupplied;\n }",
"public int getUnreadCount(Player player) {\n QuestionInstance instance = this.getInstance(player);\n if (this.getCbx()) {\n return instance.getActive() && !instance.getValidated() ? 1 : 0;\n } else {\n return instance.getActive() && !instance.getValidated() && instance.getReplies(player).isEmpty() ? 1 : 0;\n }\n }",
"public boolean isDecided()\n {\n return m_decided;\n }",
"public lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKING getFeedback() {\n return feedback_;\n }",
"public boolean hasAnswers() {\n return fieldSetFlags()[20];\n }",
"public Integer getRt_thanks_count() {\n return rt_thanks_count;\n }",
"public double getNumberOfFalseNegatives() {\n\t\treturn numberOfFalseNegatives;\n\t}",
"public Integer getCorrectflag() {\n return correctflag;\n }",
"public String getFeedbackResponse() {\n\t return this.feedbackResponse;\n\t}",
"public int getCorrect()\n\t{\n\t\treturn correct;\t\n\t}",
"default public boolean getSoundness() {\n if (getValidity()) {\n for (Proposition premise : getPremises()) {\n if (!premise.determineTruth()) {\n return false;\n }\n }\n return true;\n } else {\n return false;\n }\n }",
"public boolean isSetAvgScore() {\n return __isset_bit_vector.get(__AVGSCORE_ISSET_ID);\n }",
"boolean getCorrect();",
"float getScore();",
"float getScore();",
"boolean hasBonusMoney();",
"@Override\r\n\tpublic Double getPropensity_credit_score() {\n\t\treturn super.getPropensity_credit_score();\r\n\t}",
"public boolean isCheckForCrit() {\n return checkForCrit;\n }",
"@Override\n public boolean test(User user) {\n return user.getPoints() > 160;\n }",
"boolean getNegated();",
"boolean isGoodQuestion(){\n\t\treturn goodQ;\n\t}",
"public void Feedback_req()\n {\n\t boolean feedbackreqpresent =Feedbackreq.size()>0;\n\t if(feedbackreqpresent)\n\t {\n\t\t // System.out.println(\"Feedback Request report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Feedback Request report is not present\");\n\t }\n }",
"public boolean checkScore() {\r\n return !(this.scoreTable.getRank(this.score.getValue()) > this.scoreTable.size());\r\n }",
"@Override\n\tpublic boolean isCovered() {\n\t\treturn (falseCount > 0) && (trueCount > 0);\n\t}",
"private double getScore() {\n double score = 0;\n score += getRBAnswers(R.id.radiogroup1, R.id.radiobutton_answer12);\n score += getRBAnswers(R.id.radiogroup2, R.id.radiobutton_answer21);\n score += getRBAnswers(R.id.radiogroup3, R.id.radiobutton_answer33);\n score += getRBAnswers(R.id.radiogroup4, R.id.radiobutton_answer41);\n score += getCBAnswers();\n score += getTextAns();\n score = Math.round(score / .0006);\n score = score / 100;\n return score;\n }",
"boolean hasBonusExp();",
"boolean hasBonusExp();",
"boolean hasBonusExp();",
"public boolean getHonorConstraints()\r\n {\r\n return (m_honorConstraints);\r\n }",
"boolean hasBonusHP();",
"public double getBonus(){\r\n return bonus;\r\n }",
"public boolean getReviewed() {\n\t\treturn this.reviewed;\n\t}",
"boolean getIsLimited();",
"public double getNumberOfFalsePositives() {\n\t\treturn numberOfFalsePositives;\n\t}",
"public Integer getNoVoteCount() {\n return this.noVoteCount;\n }",
"public double getRating(){\n\t\treturn this.user_rating;\n\t}",
"public String getFeedbackId() {\n return feedbackId;\n }",
"public int getAwayScore();",
"private int getPositiveCount(){\n return m_PositiveCount;\n }",
"@Override\r\n public String feedbackApplicable() {\r\n String result = super.feedbackApplicable();\r\n if (result.isEmpty()) {\r\n AppSettings current = getApplication().getSettings();\r\n\r\n boolean currentFull = current.isFullscreen();\r\n boolean goFull = !currentFull && isFullscreen();\r\n if (goFull) {\r\n return \"Can't go from windowed to fullscreen.\";\r\n }\r\n\r\n int currentHeight = current.getHeight();\r\n boolean heightChange = currentHeight != height();\r\n if (heightChange) {\r\n return \"Can't apply height change.\";\r\n }\r\n\r\n int currentWidth = current.getWidth();\r\n boolean widthChange = currentWidth != width();\r\n if (widthChange) {\r\n return \"Can't apply width change.\";\r\n }\r\n }\r\n\r\n return result;\r\n }",
"boolean isSetScoreAnalysis();",
"public Boolean isPSMSetScore() {\n return false;\n }",
"boolean hasScoreUpdateResponse();",
"public boolean getAccepted_tou();",
"public String getScore() {\n String scoreMessage;\n if (noWinner() && !(isDeuce())) {\n scoreMessage = (isTie()) ? gameTie() : currentScore();\n }else if (isDeuce()){\n scoreMessage = \"Deuce\";\n }else {\n scoreMessage = advanceGame();\n }\n return scoreMessage;\n }",
"public void setFeedbackLevel(int feedbackLevel) {\r\n\r\n\t\t// Value in the range 0..100\r\n\t\tthis.feedbackLevel = feedbackLevel;\r\n\t}",
"public Short getScore() {\n return score;\n }",
"public JLabel getQuestionCounter()\n {\n return questionCounter;\n }",
"protected int getNegativeOnes() {\n Rating[] ratingArray = this.ratings;\n int negOneCount = 0;\n for(int i = 0; i < ratingArray.length; i++) {\n if(ratingArray[i] != null) {\n if(ratingArray[i].getScore() == -1) negOneCount++;\n }\n }\n return negOneCount;\n }",
"protected abstract boolean canGenerateScore();",
"Float getScore();",
"public String feedback(boolean flag)\n\t{\n\t\tif(flag == false)\n\t\t\treturn \"Submit Feedback\\n\";\n\t\telse\n\t\t\treturn \"Feedback: \";\n\t}",
"public float getScore(){return score;}",
"public int getBonus() {\n\t\treturn bonus;\n\t}",
"double getCritChance();",
"Boolean getIsCritical();",
"@java.lang.Override\n public boolean getCorrect() {\n return correct_;\n }",
"@Override\n public boolean isStatisticsEnabled() {\n return counter != null && counter.isStatisticsEnabled();\n }",
"public boolean isControllable() {\n return stats.isControllable();\n }"
]
| [
"0.658275",
"0.6227928",
"0.6197562",
"0.6171129",
"0.5883178",
"0.5863802",
"0.575813",
"0.5707023",
"0.5707023",
"0.56752855",
"0.5610992",
"0.558428",
"0.5523645",
"0.5492105",
"0.5436089",
"0.5425518",
"0.5423418",
"0.5410511",
"0.5393046",
"0.53495485",
"0.5328151",
"0.53182316",
"0.5310906",
"0.5278249",
"0.5276355",
"0.5264851",
"0.52425736",
"0.5240906",
"0.52370465",
"0.5229758",
"0.521806",
"0.521784",
"0.5212745",
"0.51868874",
"0.51838595",
"0.51573676",
"0.5156881",
"0.51524216",
"0.51521444",
"0.5145992",
"0.51432884",
"0.51396877",
"0.5130771",
"0.51205206",
"0.5120195",
"0.5110287",
"0.5107249",
"0.51028025",
"0.5085714",
"0.50853056",
"0.5083066",
"0.50794494",
"0.506196",
"0.505973",
"0.5053953",
"0.5053953",
"0.504673",
"0.5045739",
"0.50438",
"0.50385875",
"0.5036569",
"0.5034642",
"0.50324357",
"0.5019014",
"0.50174016",
"0.50097084",
"0.50089115",
"0.50089115",
"0.50089115",
"0.500689",
"0.5005313",
"0.50053006",
"0.5003363",
"0.49935293",
"0.4993388",
"0.4990521",
"0.49900323",
"0.49831882",
"0.498108",
"0.49792752",
"0.49788368",
"0.4971887",
"0.49672768",
"0.49660498",
"0.49643126",
"0.49615058",
"0.4959074",
"0.49579334",
"0.4957255",
"0.49500507",
"0.49491408",
"0.49365202",
"0.49319795",
"0.49296948",
"0.4926216",
"0.4924902",
"0.4923422",
"0.4921481",
"0.49209088",
"0.491837"
]
| 0.53043604 | 23 |
public setter Specifies if a user's feedback score is or is not countable. This field is returned only when a user's feedback score is not countable (value is false). | public void setCountable(Boolean countable) {
this.countable = countable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasFeedback();",
"public static void setProvideFeedback(boolean b){\n\t\tprovideFeedback = b;\t \n\t}",
"public boolean hasFeedback() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasFeedback() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public void setBonusScore() {\r\n count = count+50;\r\n }",
"public interface HasCollectUserPreference\n {\n /**\n * not feedback\n */\n String NOT_FEEDBACK = \"0\";\n\n /**\n * Has feedback\n */\n String FEEDBACK = \"1\";\n }",
"int getFeedback();",
"public abstract Boolean higherScoreBetter();",
"public boolean checkBonus() {\r\n\t\tif (bonus) {\r\n\t\t\tbonus = false;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void setFeedbackLevel(int feedbackLevel) {\r\n\r\n\t\t// Value in the range 0..100\r\n\t\tthis.feedbackLevel = feedbackLevel;\r\n\t}",
"public Integer getIsUseful() {\n return isUseful;\n }",
"Feedback getFeedback();",
"public Boolean isPSMSetScore() {\n return false;\n }",
"public void setFeedback(String feedback) {\n\t\tthis.feedback = feedback;\n\t}",
"public void setUsageWeighted(boolean aUsageWeighted) {\n usageWeighted = aUsageWeighted; \n }",
"public void setIsUseful(Integer isUseful) {\n this.isUseful = isUseful;\n }",
"public void setNotSupplied(final boolean value) {\n this.notSupplied = value;\n }",
"public void ratingNetTrained() {\n useFeedbackCheckBoxMenuItem.setEnabled(true);\n }",
"public void setCorrectFlag(){\n\t\tcorrectFlag = true;\n\t}",
"public boolean discount(){\n return false;\n }",
"public Integer getSafeScore() {\n return safeScore;\n }",
"public boolean updateFeedback(int is_used_0, int f_id) {\n\t\treturn iFeedbackDao.updateFeedback(is_used_0, f_id);\n\t}",
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"public String getFeedback() {\n\t\treturn feedback;\n\t}",
"boolean hasBonusStats();",
"public void setTallied(java.lang.Boolean value);",
"public void setScore(int score) {this.score = score;}",
"public boolean isSetScore() {\n return __isset_bit_vector.get(__SCORE_ISSET_ID);\n }",
"public Integer getCommentingUserScore() {\n\t return this.commentingUserScore;\n\t}",
"@Override\n public boolean test(User user) {\n return user.getPoints() > 160;\n }",
"public void setAchieved(Boolean newValue);",
"public void setReputation(double reputation) {\n if(reputation >= 0.0 && reputation <= 100.0){\n this.reputation = reputation;\n }\n else if(reputation > 100.0){\n this.reputation = 100.0;\n }\n else{\n this.reputation = 0.0;\n }\n}",
"public void setScore(int score) { this.score = score; }",
"@Override\r\n\tpublic boolean updateFeback(Feedback f) {\n\t\tString sql = \"UPDATE user SET userId = ?,feedbackInfo = ? where feedbackId = ? \";\r\n\t\treturn BaseDao.execute(sql, f.getUserId(), f.getFeedbackInfo(), f.getFeedbackId()) > 0;\r\n\t}",
"public double getFalsePositiveRate() {\n\t\treturn falsePositiveRate;\n\t}",
"public boolean isOverThreshold(){return isOverThreshold;}",
"public void setClaim(boolean a){\n isClaimed= a;\n \n}",
"public void setScore (int newScore)\n {\n this.score = newScore;\n }",
"public boolean getUsageWeighted() {\n return usageWeighted; \n }",
"public abstract boolean higherScoresAreBetter();",
"public void setHotOrNotRating(int rating) {\r\n this.rating += rating;\r\n ratingCount++;\r\n }",
"@Override\n\tprotected boolean on_bonus_taken(GfxObject bonus) {\n\t\treturn false;\n\t}",
"public void setBonus(double bonus){\r\n this.bonus = bonus;\r\n }",
"protected abstract boolean canGenerateScore();",
"@Test\r\n\tpublic void calculMetricSuperiorTeacherBetterScoreButNoLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculMetricSuperior(new ModelValue(25f, 1f), 12f, 11f), new Float(0));\r\n\t}",
"@Override\n\tpublic void checkScore() {\n\t\t\n\t}",
"public void setAwayScore(int a);",
"public void fixTeacherRating()\n {\n // put your code here\n if(profQuality < 5)\n profQuality++;\n }",
"public double get_numCorrectAns(){return this._numCorrectAns;}",
"void setScoreValue(int scoreValue);",
"boolean isSetScoreAnalysis();",
"public int get_correctAnswer(){return this._correctAnswer;}",
"public double getBonus(){\r\n return bonus;\r\n }",
"public float getScore(){return score;}",
"public boolean getNotSupplied() {\n return notSupplied;\n }",
"boolean hasScoreUpdateResponse();",
"public void setAccepted_tou(boolean accepted_tou);",
"public void submitFeedback()\r\n {\n if(mechanicList.getValue() == null && ratingButtons.getValue() == null){\r\n MainLayout.displayInformationPrompt(\"Missing Information! You Must Include Both Mechanic Name AND Desired Rating.\");\r\n } else if(mechanicList.getValue() == null){\r\n MainLayout.displayInformationPrompt(\"Missing Information! You Must Include Mechanic Name.\");\r\n } else if(ratingButtons.getValue() == null){\r\n MainLayout.displayInformationPrompt(\"Missing Information! You Must Include Desired Rating.\");\r\n } else {\r\n feedbackController.submitFeedback(mechanicList.getValue(), feedbackMsgField.getValue(), Integer.parseInt(ratingButtons.getValue()));\r\n feedbackController.updateMechanicStars(mechanicList.getValue());\r\n MainLayout.displayInformationPrompt(\"Review Submitted! Thanks For Your feedback!\");\r\n }\r\n }",
"public Builder clearFeedback() {\n bitField0_ = (bitField0_ & ~0x00000002);\n feedback_ = lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKING.NO_EXIST_PARKING;\n onChanged();\n return this;\n }",
"public Boolean getCountable() {\n\t return this.countable;\n\t}",
"public float getNoOfPositiveReviewsAfinn(){\n return afinnPositive;\n }",
"public synchronized boolean HaveWon() {\n if (maxScore <= score) {\n return true;\n }\n return false;\n }",
"public void setCorrect(boolean ncorrect) {\r\n this.correct = ncorrect;\r\n }",
"@Override\n public int getSpecialValue() {\n return maxBonus;\n }",
"public boolean getAI(){return ai;}",
"public boolean getClaim(){\n return isClaimed;\n}",
"public boolean isUsingBestScore() {\n return usingBestScore;\n }",
"public double getNumberOfTrueNegatives() {\n\t\treturn numberOfTrueNegatives;\n\t}",
"public void setCommentingUserScore(Integer commentingUserScore) {\n\t this.commentingUserScore = commentingUserScore;\n\t}",
"SpeechAwardPoints(int rating){\n\n currentPoints = rating;\n feedback = \"Your current rating is: \" + currentPoints + \"%\";\n }",
"@Override\r\n\tpublic Double getModel_lufax_prop_score() {\n\t\treturn super.getModel_lufax_prop_score();\r\n\t}",
"@Override\n\t/**\n\t * @return feedback\n\t * \t\t\treturns the feedback or status of the operation\n\t */\n\tpublic OperationFeedback getOpFeedback() {\n\t\treturn feedback;\n\t}",
"private void notateScore() {\r\n View.notate(score, this.getSize().width + 15, 0);\r\n }",
"Boolean getIsAnswered();",
"public void feedback(boolean isCorrect, VocabularyQuiz question) {\n String correctMeaning = question.getSelections().get(question.getAnswer());\n String message;\n if (isCorrect) {\n message = \"Correct!\";\n totalCorrect++;\n } else {\n message = \"Incorrect! The answer is \" + correctMeaning;\n }\n JOptionPane.showMessageDialog(gui.getFrame(), message);\n }",
"public boolean getMustUnderstand();",
"public int getHotOrNotRating() {\r\n if (ratingCount == 0) return 0;\r\n return (rating/ratingCount);\r\n }",
"public boolean checkScore() {\r\n return !(this.scoreTable.getRank(this.score.getValue()) > this.scoreTable.size());\r\n }",
"public boolean isReviewPositive()\n {\n return (m_nReviewValue == REVIEW_VALUE_POSITIVE) ? true : false ;\n }",
"public void setScore(Short score) {\n this.score = score;\n }",
"public boolean isSetTotal_bonus() {\n return this.total_bonus != null;\n }",
"@Test\r\n\tpublic void calculMetricInferiorTeacherBetterScoreButNoLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculMetricInferior(new ModelValue(25f, 1f), 12f, 13f), new Float(0));\r\n\t}",
"public double getScoreCutoff() {\n return scoreCutoff;\n }",
"public boolean isSaveScore(){\n\t\treturn manager.isFailed();\n\t}",
"private int getPositiveCount(){\n return m_PositiveCount;\n }",
"public boolean isDecided()\n {\n return m_decided;\n }",
"public void setFeedbackResponse(String feedbackResponse) {\n\t this.feedbackResponse = feedbackResponse;\n\t}",
"void setBestScore(double bestScore);",
"public void setScore(double score) {\r\n this.score = score;\r\n }",
"public void setScore(java.lang.Integer value);",
"public int getBonus(){\n return bonus;\n }",
"public boolean hasBonusStats() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"void calculateRating(){\r\n if(playerScore <= 30){\r\n playerRating = getString(R.string.rating_message_bad);\r\n }\r\n else if(playerScore <= 70){\r\n playerRating = getString(R.string.rating_message_regular);\r\n }\r\n else if(playerScore <= 90){\r\n playerRating = getString(R.string.rating_message_good);\r\n }\r\n else{\r\n playerRating = getString(R.string.rating_message_excelent);\r\n }\r\n }",
"public boolean setPropertyUnityGain(boolean aValue);",
"Boolean getCompletelyCorrect();",
"public Short getUserRating() {\r\n return userRating;\r\n }",
"public boolean hasBonusStats() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public int getScore(){ return this.score; }",
"lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKING getFeedback();",
"public void userScore(float score) {\n String message;\n //Finds the appropriate text views in order to set text later\n TextView userScore = findViewById(R.id.yourScore);\n TextView userMessage = findViewById(R.id.messageView);\n //Final score variable derived from displayScore\n int finalScore = (Math.round(displayScore(score)));\n //if statements to determine message to be displayed based on finalScore\n if (finalScore == 100) {\n message = \"Wow!! \\nAre you Stan Lee?\";\n } else if (finalScore == 90) {\n message = \"You're amazing!!\";\n } else if (finalScore == 80) {\n message = \"Impressive!!\";\n } else if (finalScore == 70) {\n message = \"You're a regular \\ncomic book junkie!\";\n } else if (finalScore == 60) {\n message = \"Still a majority!!\";\n } else if (finalScore == 50) {\n message = \"Solid for the \\ncasual reader\";\n } else if (finalScore == 40) {\n message = \"Just a fan of \\nthe movies?\";\n } else if (finalScore == 30) {\n message = \"DC Universe?\";\n } else if (finalScore == 20) {\n message = \"A couple good guesses?\";\n } else if (finalScore == 10) {\n message = \"Did you even try?\";\n } else if (finalScore == 0) {\n message = \"Have you heard of Marvel?\";\n } else {\n message = \"What did you do?\";\n }\n //sets the text for the views\n userScore.setText((finalScore) + \"%\");\n userMessage.setText(message);\n }"
]
| [
"0.60679996",
"0.5841083",
"0.58311844",
"0.58048916",
"0.5645216",
"0.5625687",
"0.5624525",
"0.5583085",
"0.55673575",
"0.5530545",
"0.54517716",
"0.5437946",
"0.539034",
"0.5387128",
"0.53656185",
"0.53609025",
"0.5351874",
"0.5336468",
"0.5288603",
"0.52346855",
"0.5181341",
"0.5179139",
"0.51780546",
"0.51780546",
"0.51671547",
"0.51662517",
"0.5158157",
"0.5150056",
"0.5141615",
"0.5113802",
"0.5102773",
"0.509149",
"0.5080718",
"0.5076487",
"0.5068145",
"0.50629324",
"0.5053716",
"0.50500184",
"0.50446355",
"0.50351673",
"0.50157607",
"0.5014435",
"0.50130475",
"0.50070137",
"0.5005488",
"0.50021094",
"0.4988681",
"0.4984849",
"0.49778536",
"0.49649167",
"0.49616468",
"0.49578983",
"0.4944052",
"0.4941788",
"0.4929145",
"0.4926036",
"0.49241254",
"0.491737",
"0.49117008",
"0.49097437",
"0.49004838",
"0.48976663",
"0.4897019",
"0.4884928",
"0.48848858",
"0.48814672",
"0.48799914",
"0.48719868",
"0.48715293",
"0.48694247",
"0.48666957",
"0.48507392",
"0.4846069",
"0.48457012",
"0.48388186",
"0.4827669",
"0.48210153",
"0.482066",
"0.48180205",
"0.48137817",
"0.4807074",
"0.4803205",
"0.47963127",
"0.47937492",
"0.47901487",
"0.47873652",
"0.47714943",
"0.47668067",
"0.4766",
"0.47569308",
"0.47562194",
"0.47549018",
"0.47483185",
"0.4748171",
"0.47475094",
"0.47415626",
"0.47408932",
"0.4739941",
"0.47397164",
"0.47353736"
]
| 0.5366843 | 14 |
methods for the Entity implementation | public Integer getId() {
return aao.getId();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract V getEntity();",
"@Override\n public Entity getEntity() {\n return super.getEntity();\n }",
"@Override\n\tpublic void initEntity() {\n\n\t}",
"protected abstract Serializable getEntity();",
"protected abstract ENTITY createEntity();",
"protected void entityInit() {}",
"public abstract Integer getEntity();",
"public E getEntity();",
"public interface Entity {\n}",
"public interface Entity {\r\n\r\n /**\r\n * Gets the initial (relative, map) position of the entity.\r\n * \r\n * @return the initial position of the player\r\n */\r\n Pair<Integer, Integer> getInitialPosition();\r\n\r\n /**\r\n * Gets the position of the entity on screen (absolute, pixel).\r\n * \r\n * @return entity current position on screen\r\n */\r\n Pair<Integer, Integer> getPosition();\r\n\r\n /**\r\n * Sets the position of the entity on screen.\r\n * Can be used to change an absolute position (that is grid locked because they're a multiple of a value) \r\n * to a specific position and place an object everywhere you want\r\n * \r\n * Please check {@link TestEntity} for an in-depth explanation of how this works.\r\n * \r\n * @param position defines the entity position on screen\r\n */\r\n void setPosition(Pair<Integer, Integer> position);\r\n\r\n /**\r\n * Gets the hitbox of the entity (a Rectangle if it's solid, null otherwise).\r\n * \r\n * @return the collision box of the entity.\r\n */\r\n Rectangle getCollisionBox();\r\n\r\n /**\r\n * Gets the path of the image that will be used by the view. \r\n * \r\n * @return the path where the image of the entity is located\r\n */\r\n String getImagePath();\r\n\r\n /**\r\n * Sets the path of the image that will be used by the view.\r\n * \r\n * @param path the path where the image of the entity is located\r\n */\r\n void setImagePath(String path);\r\n\r\n /**\r\n * Method that defines if the entity is destroyed or not.\r\n * \r\n * @return true if destroyed, false otherwise\r\n */\r\n boolean isDestroyed();\r\n\r\n /**\r\n * Sets the status of the entity (true if destroyed, false otherwise).\r\n * \r\n * @param destroyed defines if the entity has been destroyed or not\r\n */\r\n void setStatus(boolean destroyed);\r\n\r\n /**\r\n * Gets the entity width.\r\n * \r\n * @return entity width\r\n */\r\n int getWidth();\r\n\r\n /**\r\n * Sets the new entity width.\r\n * \r\n * @param width defines the new entity width\r\n */\r\n void setWidth(int width);\r\n\r\n /**\r\n * Gets the entity height.\r\n * \r\n * @return entity height\r\n */\r\n int getHeight();\r\n\r\n /**\r\n * Sets the new entity height.\r\n * \r\n * @param height defines the new entity width\r\n */\r\n void setHeight(int height);\r\n\r\n /**\r\n * Return the state of the block, if it is solid or not.\r\n * @return true if entity is solid, false otherwise.\r\n */\r\n boolean isSolid();\r\n\r\n /**\r\n * Sets the score value of the entity.\r\n * \r\n * @param scoreValue defines the value that will be given (added) to players score when the entity is destroyed\r\n */\r\n void setScoreValue(int scoreValue);\r\n\r\n /**\r\n * Gets the score value of the entity.\r\n * \r\n * @return a score value that defines the value of the entity\r\n */\r\n int getScoreValue();\r\n}",
"protected T getEntity() {\r\n\t\treturn entity;\r\n\t}",
"EntityData<?> getEntityData();",
"protected abstract Entity getEditedEntity();",
"@Override\r\n public void createNewEntity(String entityName) {\n\r\n }",
"@Override\n\tpublic Entity getEntity() {\n\t\treturn entity;\n\t}",
"protected abstract EntityBase createEntity() throws Exception;",
"@Override\n public void entityRPClassUpdate(RPObject entity) {\n }",
"@Override\n\tprotected void processEntity(Entity entity, float deltaTime) {\n\t\t\n\t}",
"public interface Entity\n\textends Node\n{\n\n\tpublic abstract String getPublicId();\n\n\tpublic abstract String getSystemId();\n\n\tpublic abstract String getNotationName();\n}",
"public void toEntity(){\n\n }",
"public ZEntity getEntity() {\r\n return entity;\r\n }",
"Entity createEntity();",
"public void updateEntity();",
"String getEntity();",
"String getEntity();",
"public interface Entity {\n\n\tpublic abstract Point getCenterPosition();\n\n\tpublic abstract float getHeight();\n\n\tpublic abstract Colliding getHitbox();\n\n\tpublic abstract float getLifetime();\n\n\tpublic abstract String getName();\n\n\tpublic abstract Point getPosition();\n\n\tpublic abstract Team getTeam();\n\n\tpublic abstract float getWidth();\n\n\tpublic abstract boolean hit(Bullet bullet);\n\n\tpublic abstract void render();\n\n\tpublic abstract void renderShapes();\n\n\tpublic abstract void renderText();\n\n\tpublic abstract boolean update();\n}",
"@Override protected void processEntity(Time time, Entity entity) {\n }",
"public abstract String getEntityId();",
"protected void validateEntity() {\n super.validateEntity();\n }",
"EntityType getEntity();",
"public int getEntityId()\r\n/* 25: */ {\r\n/* 26:26 */ return this.entityId;\r\n/* 27: */ }",
"public interface GearyEntity {\n\n /**\n * Get the underlying data holder for this entity.\n */\n PersistentDataHolder getDataHolder();\n\n /**\n * Gets the contained component of type {@code T} or null if this entity does not contain {@code\n * T}\n */\n <T extends Component> T getComponent(Class<T> componentClass);\n\n /**\n * Adds the provided component to this entity. Adding the same type of component a second time\n * overwrites the first one.\n */\n void addComponent(Component component);\n\n /**\n * Removes the component with this type from this entity. Noop if the component is not contained.\n */\n void removeComponent(Class<? extends Component> componentClass);\n\n /**\n * Returns true if this entity has a component with this type.\n */\n boolean hasComponent(Class<? extends Component> componentClass);\n\n /**\n * Gets the ItemStack this entity is attached to, if it exists.\n */\n Optional<ItemStack> getItemStack();\n\n /**\n * Gets this entities UUID.\n */\n UUID getUUID();\n\n /**\n * Gets the entity version this entity was created using.\n */\n long getVersion();\n\n /**\n * Gets the Player this entity is held by, if it exists.\n */\n Optional<Player> getHoldingPlayer();\n\n /**\n * Gets all components within this entity.\n */\n Set<Component> getComponents();\n}",
"public interface EntityBase extends Serializable{\n\n\t/**\n\t * \n\t * Retorna o ID da Entidade.\n\t * \n\t * \n\t * @return {@link Long} - ID da Entidade.\n\t */\n\tLong getId();\n}",
"@Override\n protected Class<LineEntity> getEntityClass() {\n return null;\n }",
"@Override\n\tpublic void entityAdded(Entity entity)\n\t{\n\t\t\n\t}",
"@Override\n protected void preconditions(Object entity) throws Exception {\n }",
"public interface Entity {\n\n\t/**\n\t * Returns a {@code Long} representing the unique ID of this entity.\n\t *\n\t * @return Returns the unique ID of this Entity as {@code Long}, or {@code null} if this Entity doesn't\n\t * have ID.\n\t */\n\tpublic Long getEntityId();\n\n\t/**\n\t * Change the unique ID of this Entity.\n\t *\n\t * @param id a {@code Long} on {@code null} if doesn't have ID\n\t * @see #getEntityId()\n\t */\n\tpublic void setEntityId(Long id);\n\n}",
"@Override\r\n public void updateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }",
"protected abstract byte[] getEntity(EntityType entityType, String entityName, int entityVersion) throws IOException;",
"public interface Entity {\n /**\n * Method's purpose it to update any relevant state in the entity.\n * Meant to be called before every render, and allows\n * for entities to move or change over time.\n *\n * @param delta time step from when this was last called.\n */\n void update(float delta);\n\n /**\n * Method's purpose is to draw the entity on the screen.\n * Meant to be called every frame, and allows\n * for entities to show be viewed by humans.\n *\n * @param rendererTool Object with which the entity will use to render itself.\n */\n void render(Object rendererTool);\n\n /**\n * Method's purpose it to allow entities to either be drawn with a\n * ShapeRenderer or SpriteBatch. Must be respected when calling render.\n *\n * @return SHAPE_RENDERER if the Entity must be rendered with a ShapeRenderer\n * SPRITE_BATCH if the Entity must be rendered with a SpriteBatch\n */\n RenderTool getRenderTool();\n\n /**\n * Enum that represents the different render tools entity's can use to render\n * themselves.\n */\n enum RenderTool {\n SHAPE_RENDERER, SPRITE_BATCH\n }\n\n /**\n * Method's purpose is to be able to tell when to entities collide,\n * as this is the most common form of interaction between to entities\n * Currently, what to do when a collision occurs is governed by the\n * Collisions class. Calls Collisions.collided(this, other) if\n * this and other overlap with each other.\n *\n * @param other The entity this one is being checked against.\n */\n void checkCollision(Entity other);\n\n /**\n * Method's purpose is to allow an EntityObserver\n * to get notified when the entity expires.\n *\n * @param observer EntityObserver to add to the list of observers\n * to notify when the entity expires.\n */\n void addObserver(EntityObserver observer);\n\n /**\n * Method's purpose is to allow an EntityObserver\n * to cleanse itself from it's responsibilities to\n * the entity class by ignoring the Entity's expiration.\n *\n * @param observer EntityObserver to remove from the list of observers\n * to notify when the entity expires.\n */\n void removeObserver(EntityObserver observer);\n\n /**\n * Method's purpose is to allow the Entity\n * to tell all of it's observers that it has\n * expired, and thus all references of the\n * Entity should be removed, and the other\n * methods of this interface should not\n * be called.\n */\n @SuppressWarnings(\"unused\")\n void expire();\n\n /**\n * Method's purpose is to allow the Entity\n * to tell all of it's observers that it\n * has spawned a new Entity and to add\n * this new Entity to it's list of entities.\n *\n * @param entity The entity to be spawned.\n */\n @SuppressWarnings(\"unused\")\n void spawn(Entity entity);\n}",
"@Override\n public void loadEntityDetails() {\n \tsuper.loadEntityDetails();\n }",
"public void setupEntities() {\n }",
"public String getPrimitiveEntity();",
"public interface EntityService<E extends BaseEntity<ID>, ID extends Serializable> {\n\n /**\n * Find a copy of the entity by its identifier from the database.\n * @param identifier The object identifier\n * @return An instance of the entity\n * @throws ResourceNotFoundException In case of the resource has not been found\n */\n E find(final ID identifier) throws ResourceNotFoundException;\n\n /**\n * Persist an entity object in the database.\n * @param entity The entity object to save\n * @param context The authentication context from the request\n * @throws TechnicalException The entity could not be saved in the database\n * @throws ConflictException A similar copy of the entity already exists\n */\n E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;\n\n /**\n * Update the provided entity in the database.\n * @param id The entity id\n * @param entity The entity to update\n * @param context The authentication context from the request\n * @throws PersistenceException Thrown if the given entity does not exist in the database\n */\n E update(ID id, E entity, RequestContext context);\n\n /**\n * Gets all the entities from the database.\n * @return A list of all the entities\n */\n List<E> findAll();\n\n /**\n * Retrieves all the entities from database, with pagination.\n * @param page The current page index\n * @param size The number of elements to put on the page\n * @return A list of all the entities of this page\n */\n List<E> findAll(int page, int size);\n\n /**\n * Retrieves all the entites from database, sorted according to the\n * sort object given in argument.\n * @param sort A sort object describing what and how to sort\n * @return A list of all the entites, sorted\n */\n List<E> findAll(Sort sort);\n\n /**\n * Retrieves all the entities with specified identifiers from the database.\n * @param identifiers A sequence of ID of entity objects to retrieve.\n * @return A list of all the entities\n */\n List<E> findAll(Iterable<ID> identifiers);\n\n /**\n * Returns the number of all entity objects.\n * @return The number of entities\n */\n long count();\n\n /**\n * Delete the given entity object.\n * @param entity The entity object to delete\n * @param context The authentication context from the request\n * @throws TechnicalException A persistence error occured during the operation\n * @throws ResourceNotFoundException The entity was not found\n */\n void delete(E entity, RequestContext context)\n throws TechnicalException, ResourceNotFoundException;\n\n /**\n * Try to find an entity that conforms to the given Specification object.\n * @param spec The Specification object, representing the criteria\n * @return The found object, or null else\n */\n E findOne(Specification<E> spec);\n\n /**\n * Retrieves all the entities that conforms to the given Specification object.\n * @return A list of the found entities\n */\n List<E> findAll(Specification<E> spec);\n\n /**\n * Retrieves all the entities that conforms to the given Specification object,\n * sorted according to the Sort object.\n * @return A list of the found entities, sorted\n */\n List<E> findAll(Specification<E> spec, Sort sort);\n\n default <Pr> E findAnyBy(String propertyName, Pr candidateValue)\n throws ResourceNotFoundException {\n return findAllBy(propertyName, candidateValue).stream()\n .findAny()\n .orElseThrow(ResourceNotFoundException::new);\n }\n\n default <Pr> E findFirstBy(String propertyName, Pr candidateValue)\n throws ResourceNotFoundException {\n return findAllBy(propertyName, candidateValue).stream()\n .findFirst()\n .orElseThrow(ResourceNotFoundException::new);\n }\n\n /**\n * Finds all the entity for which the property described by the given accessor\n * have the candidate value.\n * @param propertyName A method reference to the entity property\n * @param candidateValue The candidate value\n * @param <Pr> The type of the property\n * @return A list of all the found entities\n */\n <Pr> List<E> findAllBy(String propertyName, Pr candidateValue);\n\n /**\n * Counts the entities that conforms to the given Specification object.\n * @return The number of found entities\n */\n long count(Specification<E> spec);\n\n\n /**\n * Delete the given entity object.\n * @param entity The entity object to delete\n * @throws TechnicalException A persistence error occured during the operation\n * @throws ResourceNotFoundException The entity was not found\n */\n default void delete(E entity)\n throws TechnicalException, ResourceNotFoundException {\n delete(entity, null);\n }\n\n /**\n * Delete the given entity object.\n * @param id The id of the entity to delete\n * @throws TechnicalException A persistence error occured during the operation\n * @throws ResourceNotFoundException The entity was not found\n */\n default void delete(ID id)\n throws TechnicalException, ConflictException{\n delete(find(id));\n }\n\n /**\n * Persist an entity object in the database.\n * @param entity The entity object to save\n * @throws TechnicalException The entity could not be saved in the database\n * @throws ConflictException A similar copy of the entity already exists\n */\n default E create(E entity)\n throws TechnicalException, ConflictException {\n return create(entity, null);\n }\n\n /**\n * Persist a sequence of entity objects in the database.\n * @param entities The sequence of the entities\n * @throws TechnicalException The entity could not be saved in the database\n * @throws ConflictException A similar copy of the entity already exists\n */\n default void create(Iterable<E> entities)\n throws TechnicalException, ConflictException {\n entities.forEach(this::create);\n }\n\n /**\n * Persist a sequence of entity objects in the database.\n * @param entities The sequence of the entities\n * @param context The authentication context from the request\n * @throws TechnicalException The entity could not be saved in the database\n * @throws ConflictException A similar copy of the entity already exists\n */\n default void create(Iterable<E> entities, RequestContext context)\n throws TechnicalException, ConflictException {\n entities.forEach(entity -> create(entity, context));\n }\n\n /**\n * Update the provided entity in the database.\n * @param id The entity id\n * @param entity The entity to update\n * @throws PersistenceException Thrown if the given entity does not exist in the database\n */\n default E update(ID id, E entity) {\n return update(id, entity, null);\n }\n\n}",
"@Override\n\tpublic void entityDeclaration() {\n\t\t\n\t}",
"protected abstract T getEntityById(Long id);",
"@Override\n public EntityResponse getEntity(String entitySetName, OEntityKey entityKey, EntityQueryInfo queryInfo) { \n if (_log.isDebugEnabled()) {\n _log.debug(\"getEntity(set:\" + entitySetName + \", key:\" + entityKey + \", queryInfo:{\" + OData4JServerUtils.toString(queryInfo) + \"}\");\n }\n \n ExtendedPropertyModel.setQueryInfo(queryInfo);\n try {\n return super.getEntity(entitySetName, entityKey, queryInfo);\n } finally {\n // remove from thread-local\n ExtendedPropertyModel.setQueryInfo(null);\n }\n }",
"public interface InternalEntity {\n\t/**\n\t * Returns true if the entity should be visible in the entities view.\n\t * \n\t * @return\n\t */\n\tboolean isVisible();\n}",
"public interface ISchemaEntity {\n\t\n\tpublic static final String KEY_NAME = \"Name\";\n\t\n\t\n\t/**\n\t * Vraca sucelje sklopa koji se modelira\n\t * u schematicu - broj i vrstu portova.\n\t * \n\t */\n\tCircuitInterface getCircuitInterface(ISchemaInfo info);\n\t\n\t\n\t/**\n\t * Vraca mapu parametara komponente\n\t * koja se modelira u schematicu.\n\t * Na temelju dijela ove kolekcije biti ce kasnije\n\t * izgraden generic blok pri generiranju\n\t * strukturnog VHDLa.\n\t * \n\t */\n\tIParameterCollection getParameters();\n\t\n\t/**\n\t * Postavlja parametre (vidi metodu\n\t * getParameters()).\n\t * \n\t * @param parameters\n\t */\n\tvoid setParameters(IParameterCollection parameters);\n\t\n\t/**\n\t * Vraca vrijednost uvijek prisutnog parametra pod kljucem KEY_NAME,\n\t * koji oznacava ime entity-a.\n\t */\n\tCaseless getName();\n\t\n\t/**\n\t * Dohvaca portove sucelja modelirane komponente.\n\t * \n\t */\n\tpublic List<Port> getPorts(ISchemaInfo info);\n\t\n\t/**\n\t * Brise portove i ne-defaultne parametre.\n\t *\n\t */\n\tvoid reset();\n\t\n}",
"public EntityBase getEntity() {\n return entity;\n }",
"@Override\n\tpublic void Update(PersonelContract entity) {\n\n\t}",
"@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }",
"@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }",
"@Override\n\tpublic Entity[] getEntities()\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}",
"@Override\r\n public void update(Answer entity) {\n\r\n }",
"public abstract EntitySelect<T> getEntitySelect();",
"T createEntity();",
"public interface EntityWithID {\r\n\r\n\t/**\r\n\t * Get entity's UI ID\r\n\t * @return ID\r\n\t */\r\n\tpublic abstract String getEntityId();\r\n}",
"@Override\n public void rootRPClassUpdate(RPObject entity) {\n }",
"public Entity build();",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public interface Entity {\n /**\n * check whether a collision with another entity happened\n * and perform the relevant action.\n * @param e the other entity\n * @return whether the collision happened\n */\n boolean collidedWith(Entity e);\n\n void draw(Graphics g, DisplayWriter d);\n\n void doLogic(long delta);\n\n void move(long delta);\n\n /**\n * whether or not the entity is out of the currently displayed area.\n * @return true if not visible\n */\n boolean outOfSight();\n}",
"public Entity(String name)\n {\n super(name);\n isAs = Lists.newArrayList();\n }",
"public interface Entity {\n\n /**\n * Returns the position of this entity in the simulation system.\n *\n * @return the position of this entity.\n * @see Pasture\n * @see Point\n */\n public Point getPosition();\n\n /**\n * Sets the position of this entity.\n *\n * @param newPosition the new position of this entity.\n * @see Point\n */\n public void setPosition(Point newPosition);\n\n /**\n * Performs the relevant actions of this entity, depending on what kind of\n * entity it is.\n */\n public void tick();\n\n /**\n * Returns the icon of this entity, to be displayed by the pasture gui.\n *\n * @see PastureGUI\n */\n public ImageIcon getImage();\n\n /**\n * Returns the name of the entity\n */\n public String type();\n}",
"@Override\r\n\tpublic void onEntityHit(LivingEntity ent) {\n\r\n\t}",
"public interface Entity {\n\n /**\n * Returns id of an entity\n *\n * @return id of an entity\n */\n long getId();\n}",
"public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}",
"@Override\n\tpublic Class<Object> getEntityClass() {\n\t\treturn null;\n\t}",
"@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}",
"public E getEntity() {\n return this.entity;\n }",
"@Override\r\n\tpublic void onEntityHit(LivingEntity ent) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onEntityHit(LivingEntity ent) {\n\t\t\r\n\t}",
"public interface Entity {\n int getId();\n void setId(int id);\n}",
"public abstract P toEntity();",
"protected abstract String getEntityExistanceSQL(E entity);",
"protected void prepareEntityToNodeMap()\r\n\t{\n\t}",
"public interface Entity extends Serializable { \n\n public abstract boolean equals(Object other);\n public abstract int hashCode();\n\n}",
"void update(CE entity);",
"@Override\n\tpublic void save(Field entity) {\n\t\t\n\t}",
"protected QueryEntity(EntityInterface entityInterface)\r\n\t{\r\n\t\tthis.entityInterface = entityInterface;\t\r\n\t}",
"@Override\n public EntityResponse createEntity(String entitySetName, OEntity entity) {\n return super.createEntity(entitySetName, entity);\n }",
"@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }",
"public interface Entity {\n\n // ===================================================================================\n // Display String\n // ==============\n /**\n * @return The display string of basic informations with one-nested relation values. (NotNull)\n */\n public String toStringWithRelation();\n\n /**\n * @param name The name for display. (NullAllowed: If it's null, it does not have a name)\n * @param column Does it contains column values or not?\n * @param relation Does it contains relation existences or not?\n * @return The display string for this entity. (NotNull)\n */\n public String buildDisplayString(String name, boolean column, boolean relation);\n}",
"public interface CharacterData extends EntityData {\n\n}",
"public abstract T findEntityById(int id);",
"@Override\n public void updateEntity(String entitySetName, OEntity entity) {\n super.updateEntity(entitySetName, entity);\n }",
"@Override\n\tpublic Class<?> getEntityClass() {\n\t\treturn null;\n\t}",
"public void commitEntity();",
"@Override\n public void itemRPClassUpdate(RPObject entity) {\n }",
"protected abstract E createEntity(String line);",
"public interface IEntity {\n\n\t/**\n\t * Get the modifier used for an defensive action of the specified type\n\t * \n\t * @param type\n\t * The type of action being undertaken\n\t * @return The modifier to use for the action being taken\n\t */\n\tint getDefensiveMod(ActionType type);\n\n\t/**\n\t * Get the modifier used for an offensive action of the specified type\n\t * \n\t * @param type\n\t * The type of action being undertaken\n\t * @return The modifier to use for the action being taken\n\t */\n\tint getOffensiveMod(ActionType type);\n\n\t/**\n\t * Give the entity a specified amount of combat damage\n\t * \n\t * @param damage\n\t * The amount of the damage the entity takes\n\t * @return Whether or not the entity is still alive\n\t */\n\tboolean takeDamage(DamageCount damage);\n}",
"public Entity getEntity() {\n\t\treturn entity;\n\t}",
"interface IEntity\n{\n int getShareWeight(); // the fair-share weight of this entity within its collection\n // the setter isn't required, must come some other way\n\n String getName(); // the name / id of the entity (for messages)\n // the setter isn't required, name must be set some other way\n\n void initWantedByOrder(ResourceClass rc);\n int[] getWantedByOrder(); // the number of resources of each order wanted by this entity\n // setter isn't required, often an entity will produce this by\n // calculation anyway\n\n int[] getGivenByOrder(); // the number of resources actually allocated after scheduling for this entity.\n void setGivenByOrder(int[] gbo); // the scheduler uses this to set the allocation after each\n // scheduling round\n\n boolean canUseBonus(int order); // can I use one more share of this size\n\n int calculateCap(); // The entity must work out any caps that may restrict the counts\n // UIMA-4275 Simplify (delete) args\n\n long getTimestamp(); // for tiebreaks\n\n Comparator<IEntity> getApportionmentSorter();\n}",
"public interface AnutaEntityManager {\n\n /**\n * Saves entity in database\n * @param entity the entity to be saved\n * @param <T> the type if target entity\n * @return saved entity\n */\n public <T> T save(T entity);\n\n /**\n * Loads the entity from data source using entity's id\n * @param entityClass the target entity class\n * @param id the id of entity lo load\n * @param <T> the type if target entity\n * @return Java object, representing the entity if object was found and null otherwise\n */\n public <T> T find(Class<T> entityClass, String id);\n\n\n /**\n * Loads entity without loading all inner collections\n * @param id the id of the entity\n * @return loaded entity, if exists and null otherwise\n */\n public <T> T getPlainEntity(Class<T> entityClass, String id);\n\n /**\n * Updates entity in database\n * @param <T> the type if target entity\n * @return updated entity\n */\n public <T> T update(T entity);\n\n /**\n * Deletes entity from database\n * @param entity the entity to be deleted\n * @param <T> the type if target entity\n * @return true if was removed and false otherwise\n */\n public <T> boolean delete(T entity);\n\n /**\n * Deletes entity from database\n * @param entityClass the class of entity to be deleted\n * @param id the id of entity to be removed\n * @param <T> the type if target entity\n * @return true if was removed and false otherwise\n */\n public <T> boolean delete(Class<T> entityClass, String id);\n\n /**\n * Finds all entities of the given type\n * @param <T> the type if target entity\n * @return list of found entities or empty list if nothing was found\n */\n public <T> List<T> findAll(Class<T> entityClass);\n\n /**\n * Finds all entities of the given type\n * @param <T> the type if target entity\n * @return list of found entities or empty list if nothing was found\n */\n public <T> List<T> findByQuery(AnutaQuery<T> query);\n\n /**\n * Saves all entities into database\n * @param <T> the type if target entity\n * @return collection of saved entities\n */\n public <T> Collection<T> saveAll(Collection<T> entities);\n\n /**\n * Updates all entities in database\n * @param <T> the type if target entity\n * @return collection of updated entities\n */\n public <T> Collection<T> updateAll(Collection<T> entities);\n\n /**\n * Deletes all entities in database\n * @param <T> the type if target entity\n * @return collection of updated entities\n */\n public <T> boolean deleteAll(Collection<T> entities);\n\n /**\n * Deletes all entities in database\n * @param ids collection of ids for entities to be deleted\n * @param <T> the type if target entity\n * @return collection of updated entities\n */\n public <T> boolean deleteAll(Class<T> entityClass, Collection<String> ids);\n\n /**\n * @return the instance of {@link AnutaQueryBuilder} which can be used to build query\n */\n public <T> AnutaQueryBuilder<T> getQueryBuilder(Class<T> cls);\n\n /**\n * Queries data from DB and coverts data from cursor to Java entity.\n * @param query the query to select objects\n * @param <T> type of target entity\n * @return an instance of {@link AnutaEntityCursor} which can be used to iterate objects from database\n */\n public <T> AnutaEntityCursor<T> getEntityCursor(AnutaQuery<T> query);\n\n /**\n * Executes query and returns true if query was executed successfully and false otherwise\n * @param query the query to be executed\n * @return {@code true} if query was executed successfully and {@code false} otherwise\n */\n public <T> boolean executeQuery(AnutaQuery<T> query);\n\n /**\n * Initializes all related collections and entities\n * @param entity the entity to be initialized\n * @return initialized entity. WARNING! The reference of returned object will differ from passed at params\n */\n public <T> T initialize(T entity);\n\n /**\n * Initializes all related collections and entities up to the given level\n * @param entity the entity to be initialized\n * @param level the level of initialization (greater then 0 or one of the following)\n * <ul>\n * <li>{@link DatabaseAccessSession#LEVEL_ENTITY_ONLY} - to load plain entity</li>\n * <li>{@link DatabaseAccessSession#LEVEL_ALL} - to load entity and all dependent collections</li>\n * <li>{@link DatabaseAccessSession#LEVEL_ANNOTATION_BASED} - to load entity and collections will be loaded accorging to annotation config</li>\n * </ul>\n * @return initialized entity. WARNING! The reference of returned object will differ from passed at params\n */\n public <T> T initialize(T entity, int level);\n\n /**\n * Initializes all related collections and entities for the given collection of entities\n * @param entities the collection of entities to be initialized\n * @return initialized entity. WARNING! The reference of returned object will differ from passed at params\n */\n public <T> Collection<T> initialize(Collection<T> entities);\n\n /**\n * Initializes all related collections and entities up to the given level\n * @param entities the collection of entities to be initialized\n * @param level the level of initialization (greater then 0 or one of the following)\n * <ul>\n * <li>{@link DatabaseAccessSession#LEVEL_ENTITY_ONLY} - to load plain entity</li>\n * <li>{@link DatabaseAccessSession#LEVEL_ALL} - to load entity and all dependent collections</li>\n * <li>{@link DatabaseAccessSession#LEVEL_ANNOTATION_BASED} - to load entity and collections will be loaded accorging to annotation config</li>\n * </ul>\n * @return initialized entity. WARNING! The reference of returned object will differ from passed at params\n */\n public <T> Collection<T> initialize(Collection<T> entities, int level);\n}",
"public interface EntityDao<E extends ControlledListEntity> {\n\n GroupingEntityCommon<? extends Hierarchy.GroupedHierarchyEntity> getGroupingEntityCommon();\n\n /**\n * Get an entity of type <E> by its unique identifier\n *\n * @param id The entity identifier\n * @return E\n */\n E getById(long id);\n\n /**\n * Retrieve an entity by its name\n *\n * @param name the name of entity to retrieve\n * @return The entity E or null\n */\n E getByName(String name);\n\n /**\n * Retrieve an entity using the given {@link Key}\n *\n * @param name the key to retrieve the entity\n * @return The entity E or null\n */\n E getByName(Key name);\n\n /**\n * Determine if an entity with the given name exists\n *\n * @param name the method or standard name to check\n * @return true if the name exists, false otherwise\n */\n boolean nameExists(Key name);\n\n /**\n * List all entities of type E. This list invocation includes any aliases as primaries\n *\n * @return List<E>\n */\n List<E> list();\n\n /**\n * List all entities of type <E> which satisfy a predicate\n *\n * @param predicate The predicate\n * @return List<E>\n */\n List<E> list(Predicate<E> predicate);\n\n /**\n * List the entities of type <E> filtered such that the field contains the search term\n *\n * @param field The name of the field used for filtering\n * @param contains The search term\n * @return A filtered list\n */\n List<E> list(String field, String contains);\n\n /**\n * Search for entities which match ANY of the given search terms.\n *\n * The nature of the search is specific to the entity. All entities will search names but specific subclasses may customise the\n * implementation, for example to search aliases, or for parameters to search CAS numbers.\n *\n * @param terms the terms to search for\n * @return a {@link List} of matching entities.\n */\n List<E> search(List<String> terms);\n\n\n /**\n * @return the set of field identifiers that are searchable for the entity <E>\n */\n Set<String> getSearchFields();\n\n /**\n * Retrieves a mashed version of the name from a cache.\n *\n * The name must exist in the cache or null will be returned.\n *\n * @param name the name by which to lookup a mash\n * @return the mashed version of the name if one is found in the cache, null otherwise\n */\n String lookupMashFromName(String name);\n\n /**\n * Retrieves a name from the cache given an exact mashed value\n * The mash must exist in the cache or null will be returned.\n *\n * @param mash a mashed version of a name (space reduced/normalised according to entity specific rules)\n * @return the proper name for the given mash if one is found in the cache, null otherwise\n */\n String lookupNameFromMash(final String mash);\n\n /**\n * A method to convert the reduce variation in name in case and spacing\n * to a standard format which acts as the key. Here so it can be overridden. The default functionality\n * is to convert to upper cases and reduce multiple spaces to a single space to create the lookup key.\n */\n String generateMash(String input);\n\n /**\n * Add a new entity of type <E>\n *\n */\n @Transactional void add(E entity);\n\n /**\n * Remove an entity of type <E>\n *\n * @param id The entity identifier\n * @throws IllegalArgumentException\n */\n @Transactional void removeById(long id) throws IllegalArgumentException;\n\n /**\n * Get the class of the entity being operated on\n */\n Class<E> getEntityClass();\n\n /**\n * Retrieve a DAO for a given DAO class\n * This is intended to allow access to the DAO's from a non-spring managed context\n *\n * @param daoClass the desired dao class\n * @return the spring managed dao for the given class\n */\n static <T extends EntityDao<? extends ControlledListEntity>> T getDao(Class<T> daoClass) {\n return SpringApplicationContextProvider.getApplicationContext().getBean(daoClass);\n }\n}",
"@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}",
"public interface Entity<PK> extends Identity<PK> {\n\n\t/**\n\t * Get the date this datum was created.\n\t * \n\t * @return the created date\n\t */\n\tpublic DateTime getCreated();\n\n}",
"@Override\n\tpublic T update(T entity) {\n\t\treturn entity;\n\t}",
"@Override\n protected Entity[] getObservedEntities() {\n return entities;\n }",
"public Entity newEntity() { return newMyEntity(); }",
"public Entity newEntity() { return newMyEntity(); }"
]
| [
"0.71623355",
"0.7129426",
"0.69273174",
"0.6916755",
"0.6902586",
"0.68542385",
"0.68385595",
"0.67435384",
"0.66558504",
"0.6646599",
"0.662857",
"0.65866685",
"0.6542674",
"0.6533178",
"0.65287346",
"0.6508105",
"0.6501012",
"0.6497889",
"0.6497537",
"0.64949954",
"0.6448194",
"0.6381157",
"0.6379698",
"0.6361221",
"0.6361221",
"0.63584405",
"0.6339055",
"0.63049054",
"0.6294233",
"0.6283606",
"0.6277377",
"0.62752384",
"0.6264535",
"0.6242002",
"0.62409496",
"0.6216851",
"0.6206836",
"0.62057984",
"0.61836016",
"0.6183019",
"0.6182284",
"0.6175366",
"0.6165997",
"0.6160455",
"0.61572367",
"0.61355007",
"0.6118284",
"0.6111499",
"0.6101152",
"0.61000735",
"0.6099376",
"0.60960895",
"0.60960895",
"0.6093924",
"0.6092918",
"0.6068139",
"0.6066858",
"0.60631937",
"0.60609984",
"0.60570395",
"0.6051187",
"0.6051019",
"0.60487735",
"0.60422933",
"0.60358775",
"0.603267",
"0.6027705",
"0.6018873",
"0.6018379",
"0.6015858",
"0.5992878",
"0.5992878",
"0.5939515",
"0.59370106",
"0.59366935",
"0.5935881",
"0.5935401",
"0.59318423",
"0.5930467",
"0.59260005",
"0.59253746",
"0.5920979",
"0.5913023",
"0.5894624",
"0.5890542",
"0.5878965",
"0.58652467",
"0.58637315",
"0.5860094",
"0.5852743",
"0.58496684",
"0.5844935",
"0.5841541",
"0.58361286",
"0.58334744",
"0.58302647",
"0.58230096",
"0.5819287",
"0.5813937",
"0.5803108",
"0.5803108"
]
| 0.0 | -1 |
getter and setter methods for 'object' attributes | public String getName() {
return aao.getName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public\tvoid setobject(object obj) {\r\n\t\t oop.value=obj.value;\r\n\t\t oop.size=obj.size;\r\n\t\t \r\n\t}",
"public void setObject(Object object) {\n\t\tif(object==null)\n\t\t\treturn;\n\t\ttry {\n\t\t\t//BeanUtils.copyProperties(this,object);\n\t\t\tMap map=PropertyUtils.describe(object);\n\t\t\tSet set=map.keySet();\n\t\t\tIterator i=set.iterator();\n\t\t\twhile(i.hasNext())\n\t\t\t{\n\t\t\t\tStringBuffer method=new StringBuffer();\n\t\t\t\tmethod.append(\"get\");\n\t\t\t\tObject key=i.next();\n\t\t\t\t\n\t\t\t\tString s=(String)key;\n\t\t\t\tif(s.equals(\"class\"))\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tString first=s.substring(0,1);\n\t\t\t\tmethod.append(first.toUpperCase());\n\t\t\t\tmethod.append(s.substring(1));\n\t\t\t\t//System.out.println(method);\n\t\t\t\t//Class clas=PropertyUtils.getPropertyType(dist,s);\n\t\t\t\tObject value=null;\n\t\t\t\tboolean po=false;\n\t\t\t\tClass clas=PropertyUtils.getPropertyType(object,s);\n\t\t\t\t\n\t\t\t\tif(clas==String.class)\n\t\t\t\t{\n\t\t\t\t\tvalue=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tpo=true;\n\t\t\t\t}\n\t\t\t\tif(clas==Long.class)\n\t\t\t\t{\n\t\t\t\t\tObject temp=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tvalue=temp.toString();\n\t\t\t\t\tpo=true;\n\t\t\t\t}\n\t\t\t\tif(clas== Date.class)\n\t\t\t\t{\n\t\t\t\t\tObject temp=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tDate d=(Date)temp;\n\t\t\t\t\tvalue=TimeUtil.getTheTimeStr(d);\n\t\t\t\t\tpo=true;\n\t\t\t\t}\n\t\t\t\tif(clas== Double.class)\n\t\t\t\t{\n\t\t\t\t\tObject temp=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tvalue=temp.toString();\n\t\t\t\t\tpo=true;\n\t\t\t\t}\n\t\t\t\tif(clas== BigDecimal.class)\n\t\t\t\t{\n\t\t\t\t\tObject temp=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tvalue=temp.toString();\n\t\t\t\t\tpo=true;\n\t\t\t\t}\n\t\t\t\tif(clas==Set.class)\n\t\t\t\t\tcontinue;\n\t\t\t\tif(clas==List.class)\n\t\t\t\t\tcontinue;\n\t\t\t\tif(clas==Map.class)\n\t\t\t\t\tcontinue;\n\t\t\t\tif(clas.isAssignableFrom(Collection.class))\n\t\t\t\t\tcontinue;\n\t\t\t\tif(!po)\n\t\t\t\t{\n\t\t\t\t\tObject temp=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tif(temp!=null)\n\t\t\t\t\tvalue=MethodUtils.invokeExactMethod(temp,\"getId\",null);\n\t\t\t\t}\n\t\t\t\tif(value!=null)\n\t\t\t\t{\n\t\t\t\t\tthis.set(s,value);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalAccessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (InvocationTargetException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchMethodException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"void setObjectValue(Object dataObject);",
"@Override\n public void setObject(Object arg0)\n {\n \n }",
"public T set(T obj);",
"@Override\r\n public void setObject(String object) {\n }",
"@Override\n\tpublic void setValue(Object object) {\n\n\t}",
"public void setObject(T object)\n\t{\n\t\tthis.object = object;\n\t}",
"public void setObject(XSerial obj);",
"@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}",
"default <T> T setAllFields(T object) {\n Field[] fields = object.getClass().getDeclaredFields();\n\n for (Field field : fields) {\n field.setAccessible(true);\n\n if (Modifier.isStatic(field.getModifiers()) || Modifier.isTransient(field.getModifiers())) continue;\n\n try {\n set(field.getName(), field.get(object));\n } catch (IllegalAccessException e) {\n //hopefully we will be fine\n e.printStackTrace();\n }\n }\n\n return object;\n }",
"void setValue(org.python.Object obj) {\n org.python.types.Object object = (org.python.types.Object) obj;\n this.co_argcount = (org.python.types.Int) object.__getattribute__(\"co_argcount\");\n this.co_cellvars = (org.python.types.Tuple) object.__getattribute__(\"co_cellvars\");\n this.co_code = (org.python.types.Bytes) object.__getattribute__(\"co_code\");\n this.co_consts = (org.python.types.Tuple) object.__getattribute__(\"co_consts\");\n this.co_filename = (org.python.types.Str) object.__getattribute__(\"co_filename\");\n this.co_firstlineno = (org.python.types.Int) object.__getattribute__(\"co_firstlineno\");\n this.co_flags = (org.python.types.Int) object.__getattribute__(\"co_flags\");\n this.co_freevars = (org.python.types.Tuple) object.__getattribute__(\"co_freevars\");\n this.co_kwonlyargcount = (org.python.types.Int) object.__getattribute__(\"co_kwonlyargcount\");\n this.co_lnotab = (org.python.types.Bytes) object.__getattribute__(\"co_lnotab\");\n this.co_name = (org.python.types.Str) object.__getattribute__(\"co_name\");\n this.co_names = (org.python.types.Tuple) object.__getattribute__(\"co_names\");\n this.co_nlocals = (org.python.types.Int) object.__getattribute__(\"co_nlocals\");\n this.co_stacksize = (org.python.types.Int) object.__getattribute__(\"co_stacksize\");\n this.co_varnames = (org.python.types.Tuple) object.__getattribute__(\"co_varnames\");\n }",
"void setValue(Object object, Object value);",
"public Object getObject() ;",
"@Override\n public T getValue(T object) {\n return object;\n }",
"public abstract void setContentObject(Object object);",
"public void setObject(Object aObject) {\r\n\t\tthis.object = aObject;\r\n\t}",
"public Object getValueForSetValue(Object object) throws IllegalArgumentException, IllegalAccessException, InstantiationException, SecurityException, InvocationTargetException, NoSuchMethodException{\n\t\tObject object2 = null;\n\t\tif(this.fielAncestor != null){\n\t\t\tobject = this.fielAncestor.getValueForSetValue(object);\n\t\t}\n\t\tif(object != null){\n\t\t\tobject2 = object;\n\t\t\tobject = getValueObject(object);\n\t\t}\n\t\tif(object == null){\n\t\t\tobject = createInstance();\n\t\t\tsetValueObject(object2, object);\n\t\t}\n\t\treturn object;\n\t}",
"public AttrObject(){\t\r\n\tvalue = null;\r\n }",
"ObjectValue createObjectValue();",
"public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }",
"public void setObject(int i, T obj);",
"public void setAttributes(IEntityObject obj) {\r\n\tDispenser dObj = (Dispenser) obj;\r\n\tdObj.pk = this.pk;\r\n\tdObj.versionInfoID = this.versionInfoID;\r\n\tdObj.interfaceID = this.interfaceID;\t\r\n\tdObj.setBlender(this.blender);\r\n }",
"public Object getObject();",
"public void set(E obj) {\r\n throw new UnsupportedOperationException();\r\n }",
"public void setGeneralEncapsulatedObject(DataObject value) {\r\n\t\tBase.set(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT, value);\r\n\t}",
"public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"public void setItem (Object anObject)\r\n {\r\n // TODO: implement (?)\r\n }",
"public void set(XObject object) {\r\n if(object == null)\r\n throw new IllegalArgumentException(\"XObject was null.\");\r\n name = object.getName();\r\n id = object.getId();\r\n parent = object.getParent();\r\n }",
"public ObjectProperties getObjectProperties();",
"void setObject(String id, Object data);",
"public T getObject()\n\t{\n\t\treturn object;\n\t}",
"public org.python.Object __getattribute__(java.lang.String name);",
"public void set(String name, Object value) {\n }",
"private void setValueObject(Object object, Object value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException{\n\t\tthis.methodSet.invoke(object, value);\n\t}",
"public void setProperty(String name,Object value);",
"public Object objectValue();",
"private static void setValue(Object object, String fieldName, Object fieldValue) \n throws NoSuchFieldException, IllegalAccessException {\n \n Class<?> studentClass = object.getClass();\n while(studentClass != null){\n Field field = studentClass.getDeclaredField(fieldName);\n field.setAccessible(true);\n field.set(object, fieldValue);\n //return true;\n } \n //return false;\n }",
"public Object obj()\n\t{\n\t\treturn object;\n\t}",
"public void set( Object obj ) throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"set(Object obj) Not implemented.\" );\n\t\t}",
"private Object getValueObject(Object object) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException{\n\t\tObject value = this.methodGet.invoke(object, null);\n\t\treturn value;\n\t}",
"@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}",
"public abstract Object getUnderlyingObject();",
"Objet getObjetAlloue();",
"public void setValue(Object object, Object value) throws IllegalArgumentException, IllegalAccessException, SecurityException, InvocationTargetException, NoSuchMethodException, InstantiationException{\n\t\tif(this.fielAncestor != null){\n\t\t\tobject = this.fielAncestor.getValueForSetValue(object);\n\t\t}\n\t\tsetValueObject(object, value);\n\t\t\n\t}",
"public void updateAttributeWithObject(String attributeName, Object value) {\n DatabaseMapping mapping = this.query.getDescriptor().getMappingForAttributeName(attributeName);\n if (mapping == null) {\n throw DescriptorException.mappingForAttributeIsMissing(attributeName, getDescriptor());\n }\n\n Object clone = this.getObject();\n Object cloneValue = value;\n Object original = null;\n\n //only set the original object if we need to update it, ie before the merge takes place\n if ((this.eventCode == DescriptorEventManager.PostCloneEvent) || (this.eventCode == DescriptorEventManager.PostMergeEvent)) {\n original = this.getOriginalObject();\n }\n Object originalValue = value;\n ObjectChangeSet eventChangeSet = this.getChangeSet();\n Object valueForChangeSet = value;\n\n if ((this.query != null) && this.query.isObjectLevelModifyQuery()) {\n clone = ((ObjectLevelModifyQuery)this.query).getObject();\n eventChangeSet = ((ObjectLevelModifyQuery)this.query).getObjectChangeSet();\n }\n ClassDescriptor descriptor = getSession().getDescriptor(value.getClass());\n\n if (descriptor != null) {\n //There is a descriptor for the value being passed in so we must be carefull\n // to convert the value before assigning it.\n if (eventChangeSet != null) {\n valueForChangeSet = descriptor.getObjectBuilder().createObjectChangeSet(value, (UnitOfWorkChangeSet)eventChangeSet.getUOWChangeSet(), getSession());\n }\n if (original != null) {\n // must be a unitOfWork because only the postMerge, and postClone events set this attribute\n originalValue = ((UnitOfWorkImpl)getSession()).getOriginalVersionOfObject(value);\n }\n }\n if (clone != null) {\n mapping.setRealAttributeValueInObject(clone, cloneValue);\n }\n if (original != null) {\n mapping.setRealAttributeValueInObject(original, originalValue);\n }\n if (getRecord() != null) {\n AbstractRecord tempRow = getDescriptor().getObjectBuilder().createRecord();\n\n // pass in temp Row because most mappings use row.add() not row.put() for\n // perf reasons. We are using writeFromObjectIntoRow in order to support\n // a large number of types.\n mapping.writeFromObjectIntoRow(clone, tempRow, getSession());\n ((AbstractRecord)getRecord()).mergeFrom(tempRow);\n }\n if (eventChangeSet != null) {\n eventChangeSet.removeChange(attributeName);\n eventChangeSet.addChange(mapping.compareForChange(clone, ((UnitOfWorkImpl)getSession()).getBackupClone(clone), eventChangeSet, getSession()));\n }\n }",
"public void setObj1 (String value) {\r\n Obj1 = value;\r\n }",
"public void setUserObject(Object o);",
"public Object getObject() {\n\t\treturn object;\n\t}",
"ObjectField createObjectField();",
"private void readObject() {}",
"private void readObject() {}",
"private void readObject() {}",
"final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}",
"public void setValue(Object o){\n \tthis.value = o;\n }",
"void setValue(Object value);",
"public Object getValue() {\n\t\treturn object;\n\t}",
"final public void setDataObject(Object _object) {\n this.dataObject = _object;\n }",
"public void setObjet(Object messageObject) throws UtilsException;",
"public T get() {\n return object;\n }",
"Object getObjectField();",
"String objectRead();",
"void m21808d(Object obj);",
"public void setGeneralEncapsulatedObject( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT, value);\r\n\t}",
"@Override\n\tpublic void setAttribute(String name, Object o) {\n\t\t\n\t}",
"@Override\r\n\tpublic void update(Object object) {\n\t\t\r\n\t}",
"void m21807c(Object obj);",
"public ObjectProperty getObjectProperty() {\n return var;\n }",
"public ObjectInfo getObjectInfo();",
"boolean isAttribute(Object object);",
"public T set(int i, T obj);",
"public void setData(Object o){}",
"public Object getObject()\n {\n return m_object;\n }",
"void setInternal(ATTRIBUTES attribute, Object iValue);",
"public final void value(Object o) {\n value(objectToInt(o));\n valueType = OBJECT_TYPE;\n }",
"public boolean setProperty(String attName, Object value);",
"public interface ValueObject<T> {\n\n /**\n * TODO BTF this is stupid. Use {@link #equals(Object)}.\n * \n * Value objects compare by the values of their attributes, they don't have an identity.\n *\n * @param other The other value object.\n * @return <code>true</code> if the given value object's and this value object's attributes are the same.\n */\n boolean sameValueAs(T other);\n\n}",
"public void setValue(Object obj) throws AspException\n {\n throw new AspException(\"Modification of read-only variable\");\n }",
"void m21805a(Object obj);",
"public void setValue(Object value) { this.value = value; }",
"public void setupConvenienceObjects();",
"public abstract org.omg.CORBA.Object read_Object();",
"void m21806b(Object obj);",
"public void setObject(@NonNull T object) {\n index = object.getIndex();\n objectReference = new WeakReference<T>(object);\n }",
"public abstract void setContent(Object o);",
"public void updateByObject()\r\n\t{\n\t}",
"@Override\npublic void setAttributes() {\n\t\n}",
"public Object getValue(Object object) throws IllegalArgumentException, IllegalAccessException, SecurityException, InvocationTargetException, NoSuchMethodException{\n\t\tif(this.fielAncestor != null){\n\t\t\tobject = this.fielAncestor.getValue(object);\n\t\t}\n\t\tif(object != null)\n\t\t\tobject = getValueObject(object);\n\t\treturn object;\n\t}",
"public void set(T t, Object obj) {\n try {\n this.field.set(t, obj);\n } catch (IllegalAccessException e) {\n throw new AssertionError(e);\n }\n }",
"public void setObjectdata(byte[] objectdata)\n {\n\n }",
"private void readObject() {\n }",
"@Override\n public T getObjRaiz() {\n return (super.getObjRaiz());\n }",
"protected CacheObject(T value) {\n this.value = value;\n }",
"public void setClassObject(Object obj)\n\n {\n\n this.classObject = obj;\n\n }",
"void m21809e(Object obj);",
"@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }",
"@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }"
]
| [
"0.7239358",
"0.6795547",
"0.6641899",
"0.65702677",
"0.65572876",
"0.6516617",
"0.6434045",
"0.6433284",
"0.64312136",
"0.6402127",
"0.63066804",
"0.6285833",
"0.6278108",
"0.6220946",
"0.62126803",
"0.6202091",
"0.61832684",
"0.61369115",
"0.61221516",
"0.60975957",
"0.6070934",
"0.6059687",
"0.6019502",
"0.59864515",
"0.5961299",
"0.5956286",
"0.5952148",
"0.5913097",
"0.5913097",
"0.5913097",
"0.5913097",
"0.5895251",
"0.58785874",
"0.587567",
"0.5871076",
"0.5854798",
"0.58487564",
"0.5839048",
"0.5833489",
"0.5814385",
"0.58092415",
"0.58069736",
"0.5802587",
"0.5799108",
"0.5795944",
"0.5780472",
"0.5772751",
"0.5767433",
"0.57573056",
"0.57541645",
"0.57509506",
"0.5738495",
"0.57176906",
"0.57170594",
"0.57128495",
"0.57128495",
"0.57128495",
"0.5708057",
"0.5706966",
"0.5684733",
"0.5668094",
"0.5658855",
"0.56568915",
"0.5656729",
"0.5656666",
"0.56531507",
"0.56455964",
"0.56400365",
"0.5633575",
"0.563062",
"0.5628229",
"0.5617345",
"0.5609467",
"0.56048375",
"0.5597312",
"0.55922955",
"0.5589702",
"0.55875885",
"0.55798817",
"0.55781347",
"0.5574101",
"0.55702096",
"0.5566555",
"0.5563105",
"0.55627257",
"0.55623823",
"0.55623233",
"0.55621916",
"0.55603004",
"0.55427766",
"0.5541311",
"0.55401176",
"0.5526668",
"0.5520388",
"0.5507226",
"0.54917234",
"0.5478737",
"0.5475734",
"0.54756415",
"0.54711586",
"0.54711586"
]
| 0.0 | -1 |
getter and setter methods for 'documented' attributes | public String getEnteredBy() {
return aao.getEnteredBy();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\npublic void setAttributes() {\n\t\n}",
"Attributes getAttributes();",
"public interface DocAttr extends Comparable<DocAttr> {\n\n\t// document ID\n\n\tString getId();\n\n\t// document owner\n\n\tString getOwner();\n\n\t// timestamp for the document\n\n\tDate getTimeStamp();\n\n\t// number of days since last modification\n\n\tdouble getAgeDays();\n\n\t// text lines of the document\n\n\tArrayList<String> getLines();\n\n\t// attributes in string form\n\n\tString toString();\n\n\t// order relative to another DocAttr\n\n\tint compareTo(DocAttr da);\n\n\t// equals\n\n\tboolean equals(Object obj);\n}",
"public StructuredData getStructuredDataAttribute();",
"public String getReadWriteAttribute();",
"IAttributes getAttributes();",
"private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}",
"public Attributes getAttributes() { return this.attributes; }",
"protected LPDMODOMAttribute() {\n }",
"String attributeToSetter(String name);",
"public interface Attributable extends Serializable {\n\n Map<String, Object> getAttrs();\n\n default void setAttrs(Map<String, Object> attrs) {\n if (attrs != null && attrs.size() > 0) {\n getAttrs().putAll(attrs);\n }\n }\n\n default <V> V getOrDefault(String key, V defaultValue) {\n V v = defaultValue;\n if (containsKey(key)) {\n v = getAttr(key);\n }\n return v;\n }\n\n @SuppressWarnings(\"unchecked\")\n default <V> V getAttr(String key) {\n return (V) getAttrs().get(key);\n }\n\n\n default void setAttr(String key, Object value) {\n getAttrs().put(key, value);\n }\n\n default void remove(String key) {\n getAttrs().remove(key);\n }\n\n default boolean containsKey(String key) {\n return getAttrs().containsKey(key);\n }\n\n default boolean containsValue(Object value) {\n return getAttrs().containsValue(value);\n }\n}",
"public Map<String, Object> getAttrs();",
"public interface Attribute {\n\n /**\n * The id of the attribute. This will be unique for all attributes in a\n * graph. However, if an attribute is removed from the graph, future\n * attributes may (and probably will) reuse this id.\n *\n * @return the id of the attribute.\n */\n public int getId();\n\n /**\n * Sets the id of this attribute.\n *\n * @param id the new id of this attribute.\n */\n public void setId(final int id);\n\n /**\n * Returns the element type that this attribute is associated with.\n *\n * @return the element type that this attribute is associated with.\n */\n public GraphElementType getElementType();\n\n /**\n * Sets the element type of this attribute.\n *\n * @param elementType the new element type of this attribute.\n */\n public void setElementType(final GraphElementType elementType);\n\n /**\n * The type of this attribute.\n * <p>\n * This is a String as returned by\n * {@link au.gov.asd.tac.constellation.graph.attribute.AttributeDescription#getName()}\n * from one of the registered AttributeDescription instances.\n *\n * @return The type of this attribute.\n */\n public String getAttributeType();\n\n /**\n * Sets the type of this attribute.\n *\n * @param attributeType the new type of the attribute.\n */\n public void setAttributeType(final String attributeType);\n\n /**\n * Return the name of the attribute. This name will be unique for all\n * attributes associated with the same element type in a graph. This is the\n * value that is presented to the user in the UI and the most common way in\n * which attributes are looked up in the graph.\n *\n * @return the name of the attribute.\n */\n public String getName();\n\n /**\n * Sets a new name for this attribute.\n *\n * @param name the new name for the attribute.\n * @see Attribute#getName()\n */\n public void setName(final String name);\n\n /**\n * Returns the description of an attribute. The description provides more\n * detailed information about the attribute such as how it is being used or\n * and constraints that should be observed.\n *\n * @return the description of an attribute.\n */\n public String getDescription();\n\n /**\n * Sets a new description of an attribute.\n *\n * @param description the new description of the attribute.\n * @see Attribute#getDescription()\n */\n public void setDescription(final String description);\n\n /**\n * Returns the current default value for this attribute. This is the value\n * that new elements will get when they are created.\n *\n * @return the current default value for this attribute.\n */\n public Object getDefaultValue();\n\n /**\n * Sets the new default value for this attribute. This will not change the\n * values of any existing elements but rather the value that new elements\n * will get given when they are created.\n *\n * @param defaultValue the new default value for the attribute.\n */\n public void setDefaultValue(final Object defaultValue);\n\n /**\n * Returns the class of the attribute description that defines this\n * attribute.\n *\n * @return the class of the attribute description that defines this\n * attribute.\n */\n public Class<? extends AttributeDescription> getDataType();\n\n /**\n * Sets the data type of this attribute.\n *\n * @param dataType the new datatype of this attribute.\n */\n public void setDataType(final Class<? extends AttributeDescription> dataType);\n\n /**\n * Returns the attribute merger for this attribute.\n *\n * @return the attribute merger for this attribute.\n */\n public GraphAttributeMerger getAttributeMerger();\n\n /**\n * Sets the attribute merger for this attribute.\n *\n * @param attributeMerger the attribute merger for this attribute.\n */\n public void setAttributeMerger(final GraphAttributeMerger attributeMerger);\n}",
"public String getAttributeName() {\n/* 85 */ return this.attributeName;\n/* */ }",
"public interface Customizable {\n\n String getCustomAttributes();\n\n void setCustomAttributes(String customAttributes);\n}",
"public String getAttr() {\n return attr;\n }",
"@Override\r\n protected void parseAttributes()\r\n {\n\r\n }",
"public String attribute() {\n return this.attribute;\n }",
"public interface IAttributes {\n\n\t/***\n\t * Integer index of the attribute. Should be used with defined public static final int values.\n\t * Chosen because of better extensibility (an enum cannot extend another enum).\n\t * More specific object attribute definitions should extend the ObjectAttributesBase class in order\n\t * to have access to all derived attributes.\n\t * \n\t * @param attribute integer index of attribute\n\t * @return\n\t */\n\tObject getAttribute(int attribute);\n\t\n\tvoid setAttribute(int attribute, Object value);\n}",
"boolean isAttribute();",
"public String getStringAttribute();",
"@Override\npublic void processAttributes() {\n\t\n}",
"@Override\r\n\tpublic Map<String, String> getAttributes() {\r\n\t\treturn this.attributes;\r\n\t}",
"String getControllingAttributeName();",
"public boolean isAttribute() {\n\t\treturn false;\n\t}",
"public abstract Map<String, Object> getAttributes();",
"public abstract Map getAttributes();",
"public Attr() {\n\t\t\tsuper();\n\t\t}",
"public java.util.Collection getAttributes();",
"public String getattribut() \n\t{\n\t\treturn attribut;\n\t}",
"@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }",
"public WSLAttributeList getAttributes() {return attributes;}",
"@Override\n public boolean isAttribute()\n {\n return attribute;\n }",
"public abstract ImportAttributes getAttributes();",
"EAttribute createEAttribute();",
"public String getAttributes() {\n\t\treturn getProperty(\"attributes\");\n\t}",
"public String getAttributes() {\n return attributes;\n }",
"public String getAttributes() {\n return attributes;\n }",
"public void setOldProperty_description(java.lang.String param){\n localOldProperty_descriptionTracker = true;\n \n this.localOldProperty_description=param;\n \n\n }",
"public Object[] getAttributes() {\n\t\treturn new Object[] {true}; //true for re-init... \n\t}",
"java.lang.String getAttribute();",
"Attribute getAttribute();",
"public static interface Mutable extends DescribedObject\n { \n /** Set description\n * @param _desc description. */\n public void setDescription(String _desc);\n }",
"public void changeAttrName() {\r\n }",
"String getAttribute();",
"@Override\n\tpublic void visitAttribute(Object attr) {\n\t}",
"Map<String, Object> getAttributes();",
"Map<String, Object> getAttributes();",
"Map<String, Object> getAttributes();",
"public Boolean getBooleanAttribute();",
"@Test\n public void setExtraSavesExtra()\n {\n //arrange\n String expectedExtra = \"some user agent extra\";\n ProductInfo actual = new ProductInfo();\n\n //act\n actual.setExtra(expectedExtra);\n\n //assert\n assertEquals(expectedExtra, Deencapsulation.getField(actual, \"extra\"));\n }",
"@Override\r\n\t\tpublic boolean hasAttributes()\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}",
"String attributeToGetter(String name);",
"public BasicAttributesGrammarAccess.AttributeDefinitionElements getAttributeDefinitionAccess() {\n\t\treturn gaBasicAttributes.getAttributeDefinitionAccess();\n\t}",
"public java.lang.String getOldProperty_description(){\n return localOldProperty_description;\n }",
"public void setOldProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldProperty_descriptionType=param;\n \n\n }",
"@Override\r\n\t@MockNumber(min=0, max=100)\r\n\tpublic Integer getAttr_age() {\n\t\treturn super.getAttr_age();\r\n\t}",
"public interface CfgDocument extends com.hps.july.persistence.Document, com.ibm.ivj.ejb.runtime.CopyHelper {\n\n\n\n\t/**\n\t * Get accessor for persistent attribute: savconfigidold\n\t */\n\tpublic int getSavconfigidold() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: savconfigidold\n\t */\n\tpublic void setSavconfigidold(int newSavconfigidold)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: savconfigidnew\n\t */\n\tpublic int getSavconfigidnew() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: savconfigidnew\n\t */\n\tpublic void setSavconfigidnew(int newSavconfigidnew)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: storedem\n\t */\n\tpublic java.lang.Integer getStoredem() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: storedem\n\t */\n\tpublic void setStoredem(java.lang.Integer newStoredem)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: storebad\n\t */\n\tpublic java.lang.Integer getStorebad() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: storebad\n\t */\n\tpublic void setStorebad(java.lang.Integer newStorebad)\n\t\tthrows java.rmi.RemoteException;\n}",
"public interface Describable\n{\n\t/**\n\t * Returns the description.\n\t *\n\t * @return the description.\n\t */\n\tString getDescription();\n\n\t/**\n\t * Sets the description.\n\t *\n\t * @param description The description.\n\t */\n\tvoid setDescription(String description);\n}",
"Attribute createAttribute();",
"Attribute createAttribute();",
"void setInternal(ATTRIBUTES attribute, Object iValue);",
"Map<String, String> getAttributes();",
"public org.python.Object __getattribute__(java.lang.String name);",
"public interface PeopleAttribute {\n\n /**\n * Dynamically get the defined additional attribute of People\n * depending on their type\n *\n * @return pair of key indicating the label of the property\n * and value as the actual value of the additional attribute\n * @see Pair\n */\n Pair<String, String> getAdditionalAttribute();\n}",
"@Override\r\n\tpublic Map<String, Object> getAttributes() {\n\t\treturn null;\r\n\t}",
"public Map<String, Object> getAttributes();",
"public Map<String, Object> getAttributes();",
"void setProperty(String attribute, String value);",
"public abstract boolean isAllowCustomProperties();",
"public Map<String, String> getAttributes();",
"protected abstract MethodDescription accessorMethod();",
"public interface IPropertyInfo extends IAttributedFeatureInfo, IIntrinsicTypeReference\n{\n /**\n * @return true if the property is readable given the visibility constraint passed in,\n * false otherwise.\n */\n public boolean isReadable();\n\n /**\n * @return True if the property is writable given the visibility constraint passed in,\n * false otherwise.\n */\n public boolean isWritable();\n\n /**\n * @param whosAskin The type querying the property writability. For example, passing in the type the property is on will\n * allow properties that have private access in the setter to be written to. Passing in an unrelated type will only\n * allow properties that are public to be written to.\n *\n * @return True if the property is writable given the visibility constraint passed in,\n * false otherwise.\n */\n public boolean isWritable( IType whosAskin );\n\n /**\n * @return the PropertyAccessor (for getting and setting) this property.\n */\n public IPropertyAccessor getAccessor();\n\n public IPresentationInfo getPresentationInfo();\n}",
"protected abstract boolean populateAttributes();",
"public boolean setProperty(String attName, Object value);",
"public List<String> attributes() {\n return this.attributes;\n }",
"public void setAge(int age) { this.age = age; }",
"public int getOldProperty_descriptionType(){\n return localOldProperty_descriptionType;\n }",
"public java.util.List<DocumentAttribute> getDocumentAttributes() {\n return documentAttributes;\n }",
"TAttribute createTAttribute();",
"@Override\n public List<MappedField<?>> getAttributes() {\n return attributes;\n }",
"public FactAttributes getAttributes() {\r\n return localAttributes;\r\n }",
"Metadata getMetaData();",
"private void initReservedAttributes()\n {\n addIgnoreProperty(ATTR_IF_NAME);\n addIgnoreProperty(ATTR_REF);\n addIgnoreProperty(ATTR_UNLESS_NAME);\n addIgnoreProperty(ATTR_BEAN_CLASS);\n addIgnoreProperty(ATTR_BEAN_NAME);\n }",
"@Override public void visitAttribute(Attribute attr) {\n }",
"public ServerAttribute.ServerAttributeDef getAttributeDef () {\n return attributeDef;\n }",
"AttributeDefinition getDefinition();",
"private ReadProperty()\r\n {\r\n\r\n }",
"void setInt(int attributeValue);",
"public Double getDoubleAttribute();",
"@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }",
"public String[] getRelevantAttributes();",
"public Integer getIntegerAttribute();",
"@Test\n public void testSetResearched() {\n VirusAttribute virusAttribute = new VirusAttribute(\"att\", \"desc\", 30);\n virusAttribute.setResearched(true);\n boolean result = virusAttribute.isResearched();\n assertTrue(result);\n }",
"public void setAttributes(FactAttributes param) {\r\n localAttributesTracker = true;\r\n\r\n this.localAttributes = param;\r\n\r\n\r\n }",
"@Override\r\n\tpublic String getAttribute() {\n\t\treturn null;\r\n\t}",
"public List<TLAttribute> getAttributes();",
"@Override public void visitAttribute(Attribute attr) {\n }",
"@Override public void visitAttribute(Attribute attr) {\n }",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"private void getCustomAttributes(AttributeSet attrs)\r\n {\r\n String labelText;\r\n TypedArray a = getContext().obtainStyledAttributes( attrs, R.styleable.Label );\r\n labelText = a.getString(R.styleable.Label_label_text);\r\n labelSize = a.getInt(R.styleable.Label_label_size, 10);\r\n a.recycle(); \r\n \r\n if (labelText != null) setLabel(labelText);\r\n else setLabel(\"\");\r\n \r\n }"
]
| [
"0.65072304",
"0.6437036",
"0.64095575",
"0.63549536",
"0.63535434",
"0.6192337",
"0.6103786",
"0.609131",
"0.5984656",
"0.59715295",
"0.5946824",
"0.59393775",
"0.5935701",
"0.59221387",
"0.5853583",
"0.5838471",
"0.5820484",
"0.5754459",
"0.57503223",
"0.57393664",
"0.5737234",
"0.5733428",
"0.57082254",
"0.57068634",
"0.57053894",
"0.5688151",
"0.5681186",
"0.5661211",
"0.5645913",
"0.56305176",
"0.56224287",
"0.561359",
"0.56111485",
"0.5611052",
"0.5609708",
"0.5609172",
"0.5604464",
"0.5604464",
"0.5600827",
"0.55904984",
"0.5581938",
"0.5574116",
"0.5565164",
"0.55580354",
"0.55482656",
"0.55428874",
"0.5535368",
"0.5535368",
"0.5535368",
"0.5529018",
"0.5525029",
"0.55230784",
"0.551914",
"0.55126077",
"0.5512005",
"0.55069685",
"0.5500379",
"0.548501",
"0.54804003",
"0.54697937",
"0.54697937",
"0.5468964",
"0.54682773",
"0.5462207",
"0.5457597",
"0.5448313",
"0.5441002",
"0.5441002",
"0.54406714",
"0.54384565",
"0.54244465",
"0.54216164",
"0.54205567",
"0.54100204",
"0.5407753",
"0.54077077",
"0.54042584",
"0.5403553",
"0.539792",
"0.5396244",
"0.5384153",
"0.5381444",
"0.53708184",
"0.5368605",
"0.5367638",
"0.5358471",
"0.53422767",
"0.53236735",
"0.5317994",
"0.53170043",
"0.5316389",
"0.5316023",
"0.53151387",
"0.5314662",
"0.53113407",
"0.53031355",
"0.52993435",
"0.52989274",
"0.52989274",
"0.5295907",
"0.52920157"
]
| 0.0 | -1 |
getter and setter methods for 'atomic' attributes | public String getAccessionNumber() {
return aao.getAccessionNumber();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"AtomicDataAttributes createAtomicDataAttributes();",
"AtomicData createAtomicData();",
"@Override\n\tpublic boolean isAtomic() {\n\t\treturn true;\n\t}",
"public AtomicInteger getAtomicId() { return this.atomicId; }",
"public AtomicValue asAtomic() throws ValidationException {\n throw makeException();\n }",
"public boolean isAtomic() {\n return false;\n }",
"public void setAtomicId(AtomicInteger atomicId) { this.atomicId = atomicId; }",
"public int getAtomicNumber() {\n }",
"public String getReadWriteAttribute();",
"public void setAtomic(boolean atomic) {\n this.atomic = atomic;\n\n // If this element is atomic then we must check the cost.\n if (atomic) {\n setMustCheckCost(true);\n }\n }",
"public long getAtomicLong(){return atomicLong.incrementAndGet();}",
"void setInt(int attributeValue);",
"void setInternal(ATTRIBUTES attribute, Object iValue);",
"public T get() {\n return value;\n }",
"public T get() {\n return value;\n }",
"@Override\n public void setAtomicNumber(int atomicNumber) {\n }",
"TAttribute createTAttribute();",
"@Test\n public void atomicCreation() {\n long startVersion = stm.getVersion();\n\n IntRef intValue = new IntRef(10);\n\n assertEquals(startVersion, stm.getVersion());\n assertNotNull(getThreadLocalTransaction());\n assertEquals(10, intValue.get());\n }",
"public T get() {\n return value;\n }",
"@Override\npublic void setAttributes() {\n\t\n}",
"@Override\n public boolean isMutable() {\n return true;\n }",
"public BigInteger getBigIntegerAttribute();",
"public Long getLongAttribute();",
"String attributeToSetter(String name);",
"public interface Attributable extends Serializable {\n\n Map<String, Object> getAttrs();\n\n default void setAttrs(Map<String, Object> attrs) {\n if (attrs != null && attrs.size() > 0) {\n getAttrs().putAll(attrs);\n }\n }\n\n default <V> V getOrDefault(String key, V defaultValue) {\n V v = defaultValue;\n if (containsKey(key)) {\n v = getAttr(key);\n }\n return v;\n }\n\n @SuppressWarnings(\"unchecked\")\n default <V> V getAttr(String key) {\n return (V) getAttrs().get(key);\n }\n\n\n default void setAttr(String key, Object value) {\n getAttrs().put(key, value);\n }\n\n default void remove(String key) {\n getAttrs().remove(key);\n }\n\n default boolean containsKey(String key) {\n return getAttrs().containsKey(key);\n }\n\n default boolean containsValue(Object value) {\n return getAttrs().containsValue(value);\n }\n}",
"@Test\n public void gettersAndSettersShouldWorkForEachProperty() {\n assertThat(AssignForceBatch.class, hasValidGettersAndSetters());\n }",
"public double getAtomicWeight() {\n }",
"public int storeAttribute(String key, String value);",
"void setProperty(String attribute, String value);",
"public boolean isNonAtomic() {\n return nonAtomic;\n }",
"protected SLEXMMAttribute(SLEXMMStorageMetaModel storage) {\n\t\tsuper(storage);\n\t}",
"@Override\n public boolean isMutable()\n {\n return true;\n }",
"Attribute createAttribute();",
"Attribute createAttribute();",
"public void setAttributeWritesAreCached(boolean status);",
"public String getTransactionAttribute() {\n\treturn this.transactionAttribute;\n }",
"public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }",
"public int\t\tget() { return value; }",
"public long get() {\n return stamp;\n }",
"EAttribute createEAttribute();",
"public interface TLAttributeOwner extends NamedEntity, TLMemberFieldOwner {\n\n /**\n * Returns the value of the 'attributes' field.\n * \n * @return List<TLAttribute>\n */\n public List<TLAttribute> getAttributes();\n\n /**\n * Returns the attribute with the specified name.\n * \n * @param attributeName the name of the attribute to return\n * @return TLAttribute\n */\n public TLAttribute getAttribute(String attributeName);\n\n /**\n * Adds a <code>TLAttribute</code> element to the current list.\n * \n * @param attribute the attribute value to add\n */\n public void addAttribute(TLAttribute attribute);\n\n /**\n * Adds a <code>TLAttribute</code> element to the current list.\n * \n * @param index the index at which the given attribute should be added\n * @param attribute the attribute value to add\n * @throws IndexOutOfBoundsException thrown if the index is out of range (index < 0 || index > size())\n */\n public void addAttribute(int index, TLAttribute attribute);\n\n /**\n * Removes the specified <code>TLAttribute</code> from the current list.\n * \n * @param attribute the attribute value to remove\n */\n public void removeAttribute(TLAttribute attribute);\n\n /**\n * Moves this attribute up by one position in the list. If the attribute is not owned by this object or it is\n * already at the front of the list, this method has no effect.\n * \n * @param attribute the attribute to move\n */\n public void moveUp(TLAttribute attribute);\n\n /**\n * Moves this attribute down by one position in the list. If the attribute is not owned by this object or it is\n * already at the end of the list, this method has no effect.\n * \n * @param attribute the attribute to move\n */\n public void moveDown(TLAttribute attribute);\n\n /**\n * Sorts the list of attributes using the comparator provided.\n * \n * @param comparator the comparator to use when sorting the list\n */\n public void sortAttributes(Comparator<TLAttribute> comparator);\n\n}",
"alluxio.proto.journal.File.SetAttributeEntry getSetAttribute();",
"public Integer getIntegerAttribute();",
"public boolean isAttributeWritesCached();",
"public CreateOptions setEnsureAtomic(boolean atomic) {\n mEnsureAtomic = atomic;\n return this;\n }",
"String booleanAttributeToGetter(String arg0);",
"@Override\npublic boolean isComponentAtomic() {\n\treturn false;\n}",
"private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}",
"public GenericAttribute getAttribute () {\n return attribute;\n }",
"@Override\n public int characteristics() {\n return ORDERED | NONNULL | IMMUTABLE;\n }",
"public interface IAttributes {\n\n\t/***\n\t * Integer index of the attribute. Should be used with defined public static final int values.\n\t * Chosen because of better extensibility (an enum cannot extend another enum).\n\t * More specific object attribute definitions should extend the ObjectAttributesBase class in order\n\t * to have access to all derived attributes.\n\t * \n\t * @param attribute integer index of attribute\n\t * @return\n\t */\n\tObject getAttribute(int attribute);\n\t\n\tvoid setAttribute(int attribute, Object value);\n}",
"public byte[] get(){\n return this.value;\n }",
"public static void main(String[] args) {\n Simple simple = new Simple(\"James\", 29);\n //AtomicReference --> creates possible ABA problem\n AtomicReference<Simple> atomicSimple= new AtomicReference<>(simple);\n System.out.println(atomicSimple.get());\n //expect false\n boolean falseResult = atomicSimple.compareAndSet(new Simple(\"Henry\", 22), new Simple(\"Andy\", 23));\n System.out.println(falseResult);\n boolean falseResult1 = atomicSimple.compareAndSet(new Simple(\"James\",29), new Simple(\"Andy\", 23));\n System.out.println(falseResult1);\n boolean result = atomicSimple.compareAndSet(simple, new Simple(\"Andy\", 23));\n System.out.println(result);\n }",
"public String getAttr() {\n return attr;\n }",
"public void setAttributes(FactAttributes param) {\r\n localAttributesTracker = true;\r\n\r\n this.localAttributes = param;\r\n\r\n\r\n }",
"boolean get();",
"public AttrObject(){\t\r\n\tvalue = null;\r\n }",
"public native void set(T value);",
"public abstract void set(M newValue);",
"@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}",
"public Object get()\n {\n return m_internalValue;\n }",
"public Value setReadOnly() {\n checkNotUnknown();\n if (isReadOnly())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_READONLY_ANY;\n r.flags |= ATTR_READONLY;\n return canonicalize(r);\n }",
"public interface PropertyManager extends Manager {\n\t/**\n\t * The attribute \"attr\" has been added (instantiated for the first time).\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribute name.\n\t * @param newValue\n\t * . The new value of that attribute.\n\t */\n\tpublic void attributeAdded(Component component, String attr, String newValue);\n\n\t/**\n\t * The attribute \"attr\" has been modified.\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribute name.\n\t * @param newValue\n\t * . The new value of that attribute.\n\t * @param oldValue\n\t * . The previous value of that attribute.\n\t */\n\tpublic void attributeChanged(Component component, String attr, String newValue, String oldValue);\n\n\t/**\n\t * The attribute \"attr\" has been removed.\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribute name.\n\t * @param oldValue\n\t * . The previous value of that attribute.\n\t */\n\tpublic void attributeRemoved(Component component, String attr, String oldValue);\n}",
"public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }",
"AdditionalAttributes setAttribute(String name, Object value, boolean force);",
"public void setAge(int age) { this.age = age; }",
"QuoteAttribute createQuoteAttribute();",
"public Boolean getBooleanAttribute();",
"@Test\n public void testPutReturnsCorrectVersion() throws Exception {\n initialiseOptimisticPersister();\n\n // Configure attributes for database to return - the get is used for logging\n // only, so does not really matter.\n GetAttributesRequest simpleDBRequest = new GetAttributesRequest(testSimpleDBDomainName,\n testItemName);\n simpleDBRequest.setConsistentRead(true);\n GetAttributesResult getAttributesResult = new GetAttributesResult();\n mockery.checking(new Expectations() {\n {\n allowing(mockSimpleDBClient).getAttributes(with(equal(simpleDBRequest)));\n will(returnValue(getAttributesResult));\n }\n });\n\n mockery.checking(new Expectations() {\n {\n allowing(mockSimpleDBClient).putAttributes(with(anything()));\n }\n });\n\n ReplaceableAttribute testAttribute = new ReplaceableAttribute();\n testAttribute.setName(\"Name\");\n testAttribute.setValue(\"Value\");\n\n int initialVersion = 42; // Arbitrary\n\n // ACT\n int finalVersion = optimisticPersister.put(testItemName, Optional.of(initialVersion),\n testAttribute);\n\n // ASSERT\n assertTrue(\"The returned version should be one higher than the initial version\",\n finalVersion == (initialVersion + 1));\n }",
"public void setAttrib(String name, String value);",
"Property createProperty();",
"public interface IBlockAttribute<T extends Comparable<T>> {\n\n String getAttributeName();\n\n String getValueName(T value);\n\n Class<T> getValueClass();\n\n Set<T> getValidValues();\n}",
"public void setValue(T value) {\n/* 134 */ this.value = value;\n/* */ }",
"public void setDirty(boolean value){this.dirty = value;}",
"void setMyProperty1(Integer a) {}",
"@Test\n public void setExtraSavesExtra()\n {\n //arrange\n String expectedExtra = \"some user agent extra\";\n ProductInfo actual = new ProductInfo();\n\n //act\n actual.setExtra(expectedExtra);\n\n //assert\n assertEquals(expectedExtra, Deencapsulation.getField(actual, \"extra\"));\n }",
"@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }",
"void setString(String attributeValue);",
"public double getStrong(){return this.aStrong;}",
"public String attribute() {\n return this.attribute;\n }",
"public Attr() {\n\t\t\tsuper();\n\t\t}",
"long get();",
"public V get() {\n return value;\n }",
"public void setABContact(entity.ABContact value);",
"Attributes getAttributes();",
"public Attributes getAttributes() { return this.attributes; }",
"public int value() { \n return this.value; \n }",
"public void setValue(A value) {this.value = value; }",
"public Object getInternalValue(long ldtAccess)\n {\n m_metaInf.setAccessTime(ldtAccess);\n m_syntheticKind = JCacheSyntheticKind.JCACHE_SYNTHETIC_UPDATE;\n\n return m_internalValue;\n }",
"protected CompoundValue getCompoundValue() {\n return accessor.getValue(this);\n }",
"public A getValue() { return value; }",
"public interface ValueSetter<TEntity, T> {\n void setValue(TEntity entity, T value);\n}",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);"
]
| [
"0.67435133",
"0.59770525",
"0.5888792",
"0.5796721",
"0.5747162",
"0.5711011",
"0.5708384",
"0.5684502",
"0.5649026",
"0.55431306",
"0.54456764",
"0.5378696",
"0.53242606",
"0.53078943",
"0.53078943",
"0.5306041",
"0.5297561",
"0.5284285",
"0.5275131",
"0.5228785",
"0.52285963",
"0.51886415",
"0.5184309",
"0.51757914",
"0.51742625",
"0.5172129",
"0.515741",
"0.5153515",
"0.511879",
"0.51142174",
"0.51118726",
"0.5088779",
"0.5083759",
"0.5083759",
"0.50705165",
"0.50596696",
"0.5038052",
"0.50295526",
"0.5014875",
"0.5013209",
"0.50107217",
"0.50078756",
"0.50016576",
"0.49855745",
"0.49781072",
"0.49761018",
"0.49715737",
"0.49619117",
"0.4960469",
"0.49570054",
"0.49513704",
"0.49491453",
"0.49389616",
"0.49355978",
"0.49295607",
"0.49293154",
"0.4926818",
"0.4921788",
"0.49139258",
"0.4902197",
"0.48950535",
"0.48894915",
"0.48874855",
"0.48851067",
"0.4883703",
"0.48655874",
"0.48652887",
"0.48648378",
"0.48532295",
"0.48455518",
"0.4845342",
"0.48423982",
"0.48408428",
"0.48373747",
"0.4829053",
"0.48286724",
"0.48234746",
"0.48088202",
"0.4804113",
"0.479401",
"0.47881094",
"0.47869602",
"0.47817665",
"0.47806832",
"0.47700143",
"0.4768566",
"0.47674602",
"0.47660762",
"0.47657433",
"0.4763966",
"0.4752832",
"0.47512883",
"0.47456422",
"0.47456422",
"0.47456422",
"0.47456422",
"0.47456422",
"0.47456422",
"0.47456422",
"0.47456422",
"0.47456422"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public int compareTo(Entity arg0) {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public Integer getDocumentCount() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public Set<Frequency> getFrequencies() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public Double getInverseDocumentFrequency() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public Set<Vote> getVotes() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public void setDocumentCount(Integer arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public void setFrequencies(Set<Frequency> arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public void setInverseDocumentFrequency(Double arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public void setVotes(Set<Vote> arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public String toXML() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public Element toXMLElement() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
]
| 0.0 | -1 |
Created by oleht on 22.07.2018 | public interface PasswordResetTokenRepository extends JpaRepository<PasswordResetToken, Long> {
PasswordResetToken findByToken(String token);
PasswordResetToken findByUser(UserEntity user);
Stream<PasswordResetToken> findAllByExpiryDateLessThan(Date now);
void deleteByExpiryDateLessThan(Date now);
@Modifying
@Query("delete from PasswordResetToken t where t.expiryDate <= ?1")
void deleteAllExpiredSince(Date now);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"private void poetries() {\n\n\t}",
"private stendhal() {\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n protected void getExras() {\n }",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void strin() {\n\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private void m50366E() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"private void init() {\n\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n public void init() {\n\n }",
"public void mo6081a() {\n }",
"@Override\n public void memoria() {\n \n }",
"@Override\n public int retroceder() {\n return 0;\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override public int describeContents() { return 0; }",
"@Override\n public void init() {\n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n void init() {\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"private final zzgy zzgb() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n protected void init() {\n }",
"public void mo12628c() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n public void init() {}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo12930a() {\n }",
"static void feladat4() {\n\t}",
"public abstract void mo70713b();",
"protected void mo6255a() {\n }",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public Pitonyak_09_02() {\r\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"public void mo55254a() {\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"private zza.zza()\n\t\t{\n\t\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"private void init() {\n\n\n\n }"
]
| [
"0.5523521",
"0.5448874",
"0.5446326",
"0.54022163",
"0.5392598",
"0.5282301",
"0.528165",
"0.5272292",
"0.5255977",
"0.5255977",
"0.5204059",
"0.5184493",
"0.5179778",
"0.51732254",
"0.5123705",
"0.51237035",
"0.51236635",
"0.51189244",
"0.51133054",
"0.51065624",
"0.50860226",
"0.5069796",
"0.5055309",
"0.5055057",
"0.50501704",
"0.5045753",
"0.50307745",
"0.5029235",
"0.5006611",
"0.4996559",
"0.49811113",
"0.4978523",
"0.4971585",
"0.49566463",
"0.49566463",
"0.49566463",
"0.49566463",
"0.49566463",
"0.49558994",
"0.49558994",
"0.49558994",
"0.49558994",
"0.49558994",
"0.49558994",
"0.49558994",
"0.4945808",
"0.494255",
"0.49310046",
"0.49107954",
"0.49073392",
"0.49041763",
"0.49025843",
"0.4892669",
"0.488896",
"0.48809978",
"0.4870599",
"0.4870599",
"0.4870599",
"0.4870599",
"0.4870599",
"0.4870599",
"0.48705178",
"0.48702586",
"0.48679918",
"0.4867676",
"0.48659775",
"0.48655164",
"0.4858237",
"0.48576725",
"0.48576725",
"0.4854092",
"0.48505238",
"0.48476392",
"0.4846457",
"0.4846457",
"0.4846457",
"0.4844283",
"0.48416603",
"0.48416603",
"0.48416603",
"0.48298255",
"0.48269463",
"0.4824821",
"0.48183176",
"0.48181373",
"0.48130107",
"0.48127407",
"0.48086002",
"0.4804896",
"0.48019603",
"0.47936967",
"0.4788945",
"0.4788945",
"0.4787782",
"0.47846517",
"0.4784276",
"0.47828716",
"0.47814998",
"0.47798946",
"0.47798946",
"0.477782"
]
| 0.0 | -1 |
printConstraint(): Method used for app.testing. | public abstract void printConstraint(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printConstraint() {\n\t\tSystem.out.println(this.object + \" \" + this.closeObject + \" \" + this.farObject);\r\n\t}",
"public void printAllConstraints() {\n\t\tSystem.out.println(\"Printing all constraints\");\n\t\tfor (int row = 0; row < Sudoku.ROWS; row++ ) {\n\t\t\tfor (int col = 0; col < Sudoku.COLUMNS; col++) {\n\t\t\t\tSystem.out.printf(\"Constraints of (%d, %d): {\", row, col);\n\t\t\t\tSudoku.grid[row][col].printVariableConstraints();\n\t\t\t\tSystem.out.print(\"}\\n\");\n\t\t\t}\n\t\t}\n\t}",
"public String toString() {\r\n\t\tStringBuilder s = new StringBuilder(\"\");\r\n\t\tif (objective != null) {\r\n\t\t\ts.append(\"Objective: \").append(objective.getName())\r\n\t\t\t .append('=').append(objective.getDomain())\r\n\t\t\t .append('\\n');\r\n\t\t}\r\n\t\tfor (Variable v : variables) {\r\n\t\t\ts.append(v.getName()).append('=').append(v.getDomain())\r\n\t\t\t .append('\\n');\r\n\t\t}\r\n\t\tfor (Constraint c : constraints) {\r\n\t\t\ts.append(c.toString()).append('\\n');\r\n\t\t}\r\n\t\treturn s.toString();\r\n\t}",
"@DISPID(1610940427) //= 0x6005000b. The runtime will prefer the VTID if present\n @VTID(33)\n Constraints constraints();",
"public String toString()\n {\n StringBuffer sb = new StringBuffer();\n sb.append(\"ReportConstraints:\");\n sb.append(\" TimeStart=\" + this.getTimeStart());\n sb.append(\" TimeEnd=\" + this.getTimeEnd());\n sb.append(\" ValidGPSRequired=\" + this.getValidGPSRequired());\n sb.append(\" SelectionLimitType=\" + this.getSelectionLimitType());\n sb.append(\" SelectionLimit=\" + this.getSelectionLimit());\n sb.append(\" ReportLimit=\" + this.getReportLimit());\n sb.append(\" Where='\" + this.getWhere() + \"'\");\n return sb.toString();\n }",
"@Override\n\t\tpublic void print() {\n\n\t\t}",
"public void print() {\n print$$dsl$guidsl$guigs();\n System.out.print( \" eqn =\" + eqn );\n }",
"@Override\n\t\t\tpublic void print() {\n\t\t\t\t\n\t\t\t}",
"public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}",
"@Override\r\n\t\t\tpublic void print() {\n\t\t\t\t\r\n\t\t\t}",
"public void printRoute() {\n\t\tString route = new String(\"[ROUTE INFO] - Cost: \");\n\t\tif(cost == 0) {\n\t\t\troute += \" Not Yet Calculated, \";\n\t\t}\n\t\telse {\n\t\t\troute += (\"\" + this.cost + \", \");\n\t\t}\n\t\troute += (\"Route Length: \" + solutionLength + \", Route: \");\n\t\troute += \"(\" + solutionRepresentation.get(0).getX() + \",\" + solutionRepresentation.get(0).getY() + \")\";\n\t\tfor(int i = 1; i < solutionLength; i++) {\n\t\t\troute+= \" -> (\" + solutionRepresentation.get(i).getX() + \",\" + solutionRepresentation.get(i).getY() + \")\";\n\t\t}\n\t\tSystem.out.println(route);\n\t}",
"private void printProofAssert(Class c) {\n\t\tprintProofMethodAssert(\"this\", c.getMethods());\n\t\tprintProofMethodAssert(\"this\", c.getConstructors());\n\t\t//c.staticInitLemmas.nbPo();\n\t\tif (c.getStaticInitLemmas() != null)\n\t\t\tprintProofAssert(\"\", c.getStaticInitLemmas());\n\t\t//c.wellDefInvLemmas.nbPo();\n\t\tprintProofAssert(\"\", c.getWellDefInvLemmas());\n\t}",
"public List<Constraint> getConstraints();",
"void printCheck();",
"public String print(){\r\n\t\t\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.companyName, \r\n\t\t\t\tthis.numberOfRailCars, \r\n\t\t\t\tthis.destinationCity);\r\n\t}",
"public void print() {\n if (this.tuples == null || this.tuples.isEmpty()) return; \n\n // Initialize number of attributes.\n int attributesNumber = attributes.size();\n\n // An array storing the max length of Strings per column.\n // The Strings per column are tuple Values and attributes.\n int[] maxColumnLengthOfStrings = new int[attributesNumber];\n\n // Loop all the attributes and fill the max length array\n for (int index = 0; index < attributesNumber; index++) {\n\n // Initialize the array with the attributes name length.\n maxColumnLengthOfStrings[index] = attributes.get(index).getName().length();\n\n // Loop the values and find the longest value toString().\n for (int rowIndex = 0; rowIndex < this.tuples.size(); rowIndex++) { // Loop the rows\n String value = this.tuples.get(rowIndex).getValues().get(index).toString();\n if (value.length() > maxColumnLengthOfStrings[index]){\n maxColumnLengthOfStrings[index] = value.length();\n }\n }\n }\n\n // A set of tables whose columns are in the attributes list.\n Set<SQLTable> tablesSet = new HashSet<>();\n // The list of attributes to String format.\n String attributesList = new String();\n // A line used to separate the attributes from the data.\n String separationLine = new String();\n // Create the separation line and the attributes line.\n for (int index = 0; index < attributesNumber; index++) {\n\n // The score column has a null table. Dont search it.\n if (!this.attributes.get(index).getName().equals(\"score\"))\n tablesSet.add((this.attributes.get(index).getTable()) );\n\n\n attributesList += \"|\" + PrintingUtils.addStringWithLeadingChars(maxColumnLengthOfStrings[index],\n this.attributes.get(index).getName(), \" \");\n separationLine += \"+\" + PrintingUtils.addStringWithLeadingChars(maxColumnLengthOfStrings[index], \"\", \"-\");\n }\n attributesList += \"|\"; // Add the last \"|\".\n separationLine += \"+\"; // Add the last \"+\".\n\n // Print the tables which contain this tuples (HACK WAY). \n String tablesInString = new String (\"Tables joined : \");\n for (SQLTable table: tablesSet) {\n tablesInString += table.toAbbreviation() + \" |><| \";\n }\n System.out.println(tablesInString.substring(0, tablesInString.length()-5));\n\n // Print the attributes between separation lines.\n System.out.println(separationLine);\n System.out.println(attributesList);\n System.out.println(separationLine);\n\n // Print all the rows of Tuple Values.\n for (OverloadedTuple tuple: this.tuples) {\n String rowOfValues = new String();\n for (int index = 0; index < attributesNumber; index++) {\n rowOfValues += \"|\" + PrintingUtils.addStringWithLeadingChars( maxColumnLengthOfStrings[index],\n tuple.getValues().get(index).toString(), \" \");\n }\n rowOfValues += \"|\";\n System.out.println(rowOfValues);\n }\n\n // Print a separation line.\n System.out.println(separationLine);\n }",
"public void printRule()\n {\n System.out.print(lhs + \" ::= \");\n for( String s : rhsSymbols)\n System.out.print(s + \" \");\n System.out.println();\n }",
"public void print (){\r\n\t\tSystem.out.print(\" > Inputs (\"+numInputAttributes+\"): \");\r\n\t\tfor (int i=0; i<numInputAttributes; i++){\r\n\t\t\tif (missingValues[Instance.ATT_INPUT][i]){\r\n\t\t\t\tSystem.out.print(\"?\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tswitch(Attributes.getInputAttribute(i).getType()){\r\n\t\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\t\tSystem.out.print(nominalValues[Instance.ATT_INPUT][i]); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\t\tSystem.out.print((int)realValues[Instance.ATT_INPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.REAL:\r\n\t\t\t\t\tSystem.out.print(realValues[Instance.ATT_INPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t\tSystem.out.print(\" > Outputs (\"+numOutputAttributes+\"): \");\r\n\t\tfor (int i=0; i<numOutputAttributes; i++){\r\n\t\t\tif (missingValues[Instance.ATT_OUTPUT][i]){\r\n\t\t\t\tSystem.out.print(\"?\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tswitch(Attributes.getOutputAttribute(i).getType()){\r\n\t\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\t\tSystem.out.print(nominalValues[Instance.ATT_OUTPUT][i]); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\t\tSystem.out.print((int)realValues[Instance.ATT_OUTPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.REAL:\r\n\t\t\t\t\tSystem.out.print(realValues[Instance.ATT_OUTPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\r\n\t\tSystem.out.print(\" > Undefined (\"+numUndefinedAttributes+\"): \");\r\n\t\tfor (int i=0; i<numUndefinedAttributes; i++){\r\n\t\t\tif (missingValues[Instance.ATT_NONDEF][i]){\r\n\t\t\t\tSystem.out.print(\"?\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tswitch(Attributes.getUndefinedAttribute(i).getType()){\r\n\t\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\t\tSystem.out.print(nominalValues[Instance.ATT_NONDEF][i]); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\t\tSystem.out.print((int)realValues[Instance.ATT_NONDEF][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.REAL:\r\n\t\t\t\t\tSystem.out.print(realValues[Instance.ATT_NONDEF][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t}",
"void printSpecification(PrintStream ps);",
"public String toDebugString(RuleSet rs){\n\t\tString res = \"\";\n\t\tif(body != null)\n\t\t\tfor(Integer e : body){\n\t\t\t\tres = res + (res.equals(\"\") ? \"\" : \" & \") + OWLPrinter.getString(rs.debugLookup(e));\n\t\t\t}\n\n\t\tres += \" -> \";\n\t\tif(head != null) res += OWLPrinter.getString(rs.debugLookup(head));\n\t\telse{\n\t\t\tres += OWLPrinter.getString(rs.debugLookup(axiom));\n\t\t\tif(define != null){\n\t\t\t\tres += \" def \" + OWLPrinter.getString(rs.debugLookup(define));\n\t\t\t}\n\t\t}\n\n\t\t//if(head instanceof OWLAxiom) \tres += \" -> \" + ClassPrinter.printAxiom((OWLAxiom) head);\n\t\t//else \t\t\t\t\t\t\tres += \" -> \" + ClassPrinter.printClass(head);\n\t\treturn res;\n\t}",
"public void displaySchema() {\n for (String s : attributes)\n System.out.print(s + \"\");\n }",
"private void printProofAssert(String decl, Proofs lv) {\n\t\tif (lv == null)\n\t\t\treturn;\n\t\tfor (int i = lv.nbLemmas() - 1; i >= 0; i--) {\n\t\t\tTheorem t = lv.getTheorem(i);\n\t\t\tSimpleLemma l = lv.getLemma(i);\n\t\t\tprintProofAssert(decl, t, l);\n\t\t}\n\t}",
"public static void printSolutionTable() {\n\t\tIAWorklist.printSolutionTable();\n\n\t}",
"public void print()\r\n\t{\r\n\t\tSystem.out.println(\"Method name: \" + name);\r\n\t\tSystem.out.println(\"Return type: \" + returnType);\r\n\t\tSystem.out.println(\"Modifiers: \" + modifiers);\r\n\r\n\t\tif(exceptions != null)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Exceptions: \" + exceptions[0]);\r\n\t\t\tfor(int i = 1; i < exceptions.length; i++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\", \" + exceptions[i]);\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exceptions: none\");\r\n\t\t}\r\n\r\n\t\tif(parameters != null)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Parameters: \" + parameters[0]);\r\n\t\t\tfor(int i = 1; i < parameters.length; i++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\", \" + parameters[i]);\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Parameters: none\");\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t}",
"@Override\r\n\tpublic void print() {\n\t}",
"@Override\r\n public String print(){\r\n String geneString = \"Customer: \" + getNode() + \", isVehicle: \" + getIsVehicle() + \", capacity:\" + getSize();\r\n return geneString;\r\n }",
"@Override\n\tpublic void print() {\n\n\t}",
"public void debugPrint() {\n\t\tsuper.debugPrint();\n\t\tSystem.out.println(\"requestID: \" + requestID);\n\t\tSystem.out.println(\"jzn: \" + jzn);\n\t\tif (jzn != null) {\n\t\t\tfor (int i = 0; i < jzn.length; i++) {\n\t\t\t\tSystem.out.println(i + \": \" + (jzn[i] != null ? jzn[i].length() : 0));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"jzt: \" + jzt);\t\t\n\t}",
"public void print() {\n \n for (int i=0 ; i< getNumberOfCases() ; i++) {\n Configuration conf = get(i);\n conf.print();\n System.out.print(\"\\n\");\n }\n}",
"public void print() {\n System.out.print(\"[ \" + value + \":\" + numSides + \" ]\");\n }",
"@Override\n\tpublic void print() {\n\t\t\n\t}",
"@VisibleForTesting\n void print();",
"public String getConstraintName() {\n return constraintName;\n }",
"@Override\n public String toString() {\n if (valid())\n return \"valid\";\n return print(errors + \":\" + validator);\n }",
"public java.lang.String toDebugString () { throw new RuntimeException(); }",
"private void printScore() {\r\n View.print(score);\r\n }",
"public void printQuestion() {\n\t\tSystem.out.println(question);\n\t}",
"protected abstract void defineConstraints();",
"private void printModel(Model model) {\n\t\tStmtIterator iter = model.listStatements();\n\n\t\t// print out the predicate, subject and object of each statement\n\t\twhile (iter.hasNext()) {\n\t\t\tStatement stmt = iter.nextStatement(); // get next statement\n\t\t\tResource subject = stmt.getSubject(); // get the subject\n\t\t\tProperty predicate = stmt.getPredicate(); // get the predicate\n\t\t\tRDFNode object = stmt.getObject(); // get the object\n\n\t\t\tSystem.out.print(\"SUBJECT: \" + subject.toString());\n\t\t\tSystem.out.print(\"\\tPREDICATE: \" + predicate.toString() + \" \");\n\t\t\tif (object instanceof Resource) {\n\t\t\t\tSystem.out.print(\"\\tOBJECT: \" + object.toString());\n\t\t\t} else {\n\t\t\t\t// object is a literal\n\t\t\t\tSystem.out.print(\"\\tOBJECT: \\\"\" + object.toString() + \"\\\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\" .\");\n\t\t}\n\t}",
"public void printAssertions(JmlFile jf) {\n\t\tstream.println(\"ASSERTIONS\");\n\t\tprinter.firstItem = true;\n\t\tprintProofAssert(jf.getClasses());\n\t\tstream.println(\"\\nEND\");\n\t}",
"@Test(timeout = 4000)\n public void test053() throws Throwable {\n DBCheckConstraint dBCheckConstraint0 = new DBCheckConstraint(\"alter table\", false, \"Pg`v\", \"select\");\n StringBuilder stringBuilder0 = new StringBuilder();\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n StringBuilder stringBuilder1 = SQLUtil.appendConstraintName((DBConstraint) dBCheckConstraint0, stringBuilder0, nameSpec0);\n assertEquals(\"\", stringBuilder1.toString());\n }",
"@objid (\"db7f3c97-1871-4855-958d-3659b2211f8a\")\n protected Object getConstraint() {\n return this.constraint;\n }",
"public String toString() {\n StringBuilder out = new StringBuilder(\"Requirements:\\n\");\n for (Fact fact: requiredFacts) {\n out.append(fact.toString());\n if (requiredFacts.indexOf(fact) < requiredFacts.size() - 1) out.append(reqIsAnd ? \"AND\\n\" : \"OR\\n\");\n }\n return out.toString();\n }",
"private void printContrib() {\n \t\tSystem.out.println(\"-- Current Contributions --\");\n \t\tfor (int y = 0; y < contrib.length; y++) {\n \t\t\tfor (int x = 0; x < contrib[y].length; x++) {\n \t\t\t\tString s = contrib[y][x] == null ? \"-\" : (\"\" + contrib[y][x].current);\n \t\t\t\twhile (s.length() < 4)\n \t\t\t\t\ts = \" \" + s;\n \t\t\t\tSystem.out.print(s);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tSystem.out.println();\n \t\tSystem.out.println(\"-- Target Contributions --\");\n \t\tfor (int y = 0; y < contrib.length; y++) {\n \t\t\tfor (int x = 0; x < contrib[y].length; x++) {\n \t\t\t\tString s = contrib[y][x] == null ? \"-\" : (\"\" + contrib[y][x].target);\n \t\t\t\twhile (s.length() < 4)\n \t\t\t\t\ts = \" \" + s;\n \t\t\t\tSystem.out.print(s);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t}",
"@Override\n\tpublic void print() {\n\t\tsuper.print();\n\t\tSystem.out.println(subjects);\n\t}",
"public void printRules () {\n \n System.out.println(\"PRINTING RULESET ID : \" + this.id + \" (\" + this.size() + \") entries.\");\n for (int i = 0; i < this.size(); i++) {\n \n System.out.println(\"Rule \" + (i+1) + \" (ID \" + references.get(i) + \") : \" + this.rulelist.getRuleByID(references.get(i)) + \" Prob : \" + this.rulelist.getRuleByID(references.get(i)).getProb() + \" TIMES \" + this.rulelist.getRuleByID(references.get(i)).occurrencies + \" PREC \" + this.rulelist.getRuleByID(references.get(i)).prec_occurrencies);\n }\n System.out.println(\"Total Prob : \" + this.totalProb);\n System.out.println(\"Precedences : \" + this.precedences);\n }",
"public void print() {\n System.out.println(\"Scheme print:\");\n System.out.println(\" Blocks:\");\n for (Block block : this.blocks) {\n // System.out.println(\" \" + block.getName() + \" (\" + block.getID() + \")\");\n for (Integer id : block.getConnections()) {\n System.out.println(\" \" + id);\n }\n //System.out.println(\" \" + block.outputs.getFirst().getDstID());\n }\n /*System.out.println(\" Connections:\");\n for (Con connection : this.connections) {\n System.out.println(\" [\" + connection.src + \"]---[\" + connection.dst + \"]\");\n }*/\n if(this.queue_set){\n System.out.println(\" Queue: \" + this.queue);\n }\n else{\n System.out.println(\" Queue not loaded\");\n }\n }",
"public String print(){\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.trackNumber, \r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.numRailCars, \r\n\t\t\t\tthis.destCity);\r\n\t\t}",
"public void print(){\n System.out.println(\"(\"+a.getAbsis()+\"_a,\"+a.getOrdinat()+\"_a)\");\n System.out.println(\"(\"+b.getAbsis()+\"_b,\"+b.getOrdinat()+\"_b)\");\n System.out.println(\"(\"+c.getAbsis()+\"_b,\"+c.getOrdinat()+\"_c)\");\n }",
"public String toDebugString();",
"public FormalGenConstraint getConstraint() {\n return constraint;\n }",
"public void print() {\n\t\tSystem.out.println(name + \" -- \" + rating + \" -- \" + phoneNumber);\n\t}",
"private void print() {\n printInputMessage();\n printFrequencyTable();\n printCodeTable();\n printEncodedMessage();\n }",
"public void printOut() {\n System.out.println(\"\\t\" + result + \" = icmp \" + cond.toLowerCase() + \" \" + type + \" \" + op1 + \", \" + op2 );\n\n // System.out.println(\"\\t\" + result + \" = bitcast i1 \" + temp + \" to i32\");\n }",
"public void showRules(Application app){\n System.out.println(\"Here are your rules: \\n • GPA >= \" + app.getStand().getReqGPA() + \"\\n • SAT >= \" + app.getStand().getReqSAT() + \"\\n • A valid intended major, either aligned towards STEM or Humanities.\" + \"\\n • Three valid extracurriculars. \\n \\t • A valid extracurricular is defined as a productive use of time and/or a standout accomplishment. \\n \\t • It must align with the student's STEM or Humanities focus. \\n \\t • All three extracurriculars must be valid. \\n • A statement of purpose without spelling errors.\");\n System.out.println(\" • Students admitted to Harvard must have a passion for Humanities. Students admitted to MIT must have a passion for STEM. This can be determined through their intended major and extracurriculars, assuming both are valid.\");\n System.out.println(\" • All students with errors in their applications should be admitted to Greendale Community College.\");\n System.out.println();\n System.out.println(\"Good luck!\");\n }",
"public String print() {\n\n String returnString = \"\";\n\n if (kv1 != null) {\n returnString += kv1.toString();\n }\n\n if (kv2 != null) {\n returnString += \" \" + kv2.toString();\n }\n\n return returnString;\n }",
"public void print() {\n\t\t\n\t\tfor(Solution sol : population) {\n\t\t\tSystem.out.println(sol.getPossibleSolution() + \" \" + sol.getPath());\n\t\t}\n\t}",
"public void print(){\r\n System.out.println(toString());\r\n }",
"protected void printValConfig(){\n\t\t//System.out.println(\"writing values\");\n\t\tif(valueFxn.compareToIgnoreCase(\"additive\")==0){\n\t\t\tprintAdditive();\n\n\t\t}else if(valueFxn.compareToIgnoreCase(\"schedule\")==0){\n\t\t\tprintSchedule();\n\n\n\t\t}else if(valueFxn.compareToIgnoreCase(\"contract\")==0){\n\t\t\tprintContracts();\n\n\t\t}else{\n\t\t\tSystem.out.println(\"Value function not set correctly.\");\n\t\t}\n\t}",
"@Override\n public void print() {\n }",
"public void disp(){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"------------------------------------------- \");\r\n\t\t\tSystem.out.println(\"Feature Model \");\r\n\t\t\tSystem.out.println(\"------------------------------------------- \");\r\n\t\t\tSystem.out.println(\"The mandatory feature:\");\r\n\t\t\tfor(int i = 0; i < this.mandatoryFeatures.size(); i++ ){\r\n\t\t\t\tthis.mandatoryFeatures.get(i).disp();\r\n\t\t\t}//for\r\n\t\t\tSystem.out.println(\"Optional features:\");\r\n\t\t\tfor(int i = 0; i < this.optionalFeatures.size(); i++ ){\r\n\t\t\t\tthis.optionalFeatures.get(i).disp();\r\n\t\t\t}//for\r\n\t\t\tfor(int i = 0; i < this.alternativeFeatureGroup.size(); i++ ){\r\n\t\t\t\tSystem.out.println(\"Alternative features:\");\r\n\t\t\t\tfor(int j = 0; j < alternativeFeatureGroup.get(i).getFeatures().size(); j++ ){\r\n\t\t\t\t\talternativeFeatureGroup.get(i).getFeatures().get(j).disp();\r\n\t\t\t\t}//for\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < this.orFeatureGroup.size(); i++ ){\r\n\t\t\t\tSystem.out.println(\"Or features:\");\r\n\t\t\t\tfor(int j = 0; j < orFeatureGroup.get(i).getFeatures().size(); j++ ){\r\n\t\t\t\t\torFeatureGroup.get(i).getFeatures().get(j).disp();\r\n\t\t\t\t}//for\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Constraints:\");\r\n\t\t\tfor(int i = 0; i < this.constraints.size(); i++ ){\r\n\t\t\t\tthis.constraints.get(i).disp();\r\n\t\t\t}//for\r\n\t\t}",
"public void printByResource() {\r\n TUseStatus useStatus;\r\n\t for (int b=0; b < m_current_users_count; b++)\r\n\t for (int a=0; a < m_current_resources_count; a++) {\r\n\t useStatus = m_associations[a][b];\r\n\t if (useStatus!=null) System.out.println(useStatus.toString()); \r\n\t } \r\n }",
"public static void printIndications() {\n\t\tSystem.out.println(\"\\n\" + \"Usage :\"\n\t\t\t\t+ \"\\n\\t\" + \"java -jar <jar-file> nodeScopeDirectoryPath windowSize\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"nodeScopeDirectoryPath is the path of the directory where the tagged corpus is located\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"windowSize is the size of the sliding window; it must be an integer (usually 2)\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"Other input parameters\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"the file containing the candidates terms must be located at src/main/resources/concepts/candidates.txt\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"the file containing the reference terms must be located at src/main/resources/concepts/reference_samples.txt\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"the file containing the stopwords must be located at src/main/resources/stopwords/stopwords_users.txt\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"Output parameters\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"nodeScopeDirectoryPath/output/pat_context.json\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"nodeScopeDirectoryPath/output/med_context.json\"\n\t\t\t\t+ \"\\n\\t\\t\" + \"nodeScopeDirectoryPath/output/frequency.json\"\n\t\t\t\t+ \"\\n\"\n\t\t\t\t);\n\t}",
"public void printRecipt(){\n\n }",
"@Override\n\tpublic void print(int indent) {\n\t}",
"public void print() {\n mat.print();\n }",
"public void printOptions() {\n\t\t\n\t}",
"public void print() {\n \tfor (int i=0; i < this.table.height; i++) {\n \t\tfor (int j=0; j < this.table.width; j++) {\n \t\t\tString tmp = \"e\";\n \t\t\tif(this.table.field[i][j].head != null) {\n \t\t\t\ttmp = \"\";\n \t\t\t\tswitch (this.table.field[i][j].head.direction) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\ttmp+=\"^\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\ttmp+=\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\ttmp+=\"V\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\ttmp+=\"<\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n \t\t\t}\n \t\t\telse if(this.table.field[i][j].obj != null) {\n \t\t\t\ttmp = this.table.field[i][j].obj.name;\n \t\t\t}\n \t\t\tSystem.out.print(\" \" + tmp);\n \t\t}\n \t\t\tSystem.out.println(\"\");\n \t}\n }",
"private void print( org.antlr.v4.tool.Grammar grammar, ParseTree tree, String indentStep, String indent )\n {\n if ( tree != null )\n {\n Object payload = tree.getPayload();\n if ( payload instanceof InterpreterRuleContext )\n {\n String ruleName = grammar.getRule( ((InterpreterRuleContext) payload).getRuleIndex() ).name;\n System.out.println( indent + ruleName );\n }\n else\n {\n System.out.println( indent + \"\\\"\" + tree.getText() + \"\\\"\" );\n }\n for ( int i = 0; i <= tree.getChildCount(); i++ )\n {\n print( grammar, tree.getChild( i ), indentStep, indent + indentStep );\n }\n }\n }",
"public void print(){\n String res = \"\" + this.number;\n for(Edge edge: edges){\n res += \" \" + edge.toString() + \" \";\n }\n System.out.println(res.trim());\n }",
"public void printStats() {\n\t\t\n\t\tif(grafo==null) {\n\t\t\t\n\t\t\tthis.createGraph();\n\t\t}\n\t\t\n\t\tConnectivityInspector <Airport, DefaultWeightedEdge> c = new ConnectivityInspector<>(grafo);\n\t\t\n\t\tSystem.out.println(c.connectedSets().size());\n\n\t}",
"public final void printTestPlanJmx() throws IOException {\n constructTestPlan();\n\n SaveService.saveTree(testPlanTree, System.out);\n\n }",
"public void printInformation() {\n\n System.out.println(\"Name: \" + name);\n System.out.println(\"Weight: \" + weight);\n System.out.println(\"Shape: \" + shape);\n System.out.println(\"Color: \" + color);\n }",
"public String printFormat(){\n return \"The workout: \" + getName() + \" should be done for \" + getSets() + \" sets and in each set should be \"\n + getReps() + \" reps.\";\n }",
"public void printExpectedVisitors() {\n System.out.println(expectedVisitors);\n }",
"@Override\n\tprotected void print() {\n\t\tSystem.out.println(\"-----------\"+this.getName()+\"\");\n\t}",
"private void printSchema() {\n ArrayList<String> schema = sqlMngr.getSchema();\n\n System.out.println(\"\");\n System.out.println(\"------------\");\n System.out.println(\"Total number of tables: \" + schema.size());\n for (int i = 0; i < schema.size(); i++) {\n System.out.println(\"Table: \" + schema.get(i));\n }\n System.out.println(\"------------\");\n System.out.println(\"\");\n }",
"@Test(timeout = 4000)\n public void test090() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[6];\n DBForeignKeyConstraint dBForeignKeyConstraint0 = new DBForeignKeyConstraint(\"\", false, defaultDBTable0, stringArray0, defaultDBTable0, stringArray0);\n StringBuilder stringBuilder0 = new StringBuilder();\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n StringBuilder stringBuilder1 = SQLUtil.appendConstraintName((DBConstraint) dBForeignKeyConstraint0, stringBuilder0, nameSpec0);\n assertEquals(\"\", stringBuilder1.toString());\n }",
"public void printcuml()\n\t{\n\t\tSystem.out.println(\"Question: \"+ans);\n\t\tSystem.out.println(\"Times Tried: \"+ tried);\n\t\tSystem.out.println(\"Times Correct: \"+ correct);\n\t\tSystem.out.println(\"Percent Correct: \"+ percent*100 +\"%\");\n\t}",
"private void printProofAssert(Enumeration e) {\n\t\tif (e.hasMoreElements()) {\n\t\t\tClass c = (Class) e.nextElement();\n\t\t\tprintProofAssert(e);\n\t\t\tprintProofAssert(c);\n\t\t}\n\t}",
"@Override\n\tpublic void addConstraint(String constraint) {\n\n\t}",
"@Override\r\n public String dumpOf ()\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n\r\n if (evaluation != null) {\r\n sb.append(String.format(\" evaluation=%s%n\", evaluation));\r\n }\r\n\r\n Shape physical = (getShape() != null) ? getShape().getPhysicalShape() : null;\r\n if (physical != null) {\r\n sb.append(String.format(\" physical=%s%n\", physical));\r\n }\r\n\r\n if (forbiddenShapes != null) {\r\n sb.append(String.format(\" forbiddenShapes=%s%n\", forbiddenShapes));\r\n }\r\n\r\n if (timeRational != null) {\r\n sb.append(String.format(\" rational=%s%n\", timeRational));\r\n }\r\n\r\n return sb.toString();\r\n }",
"public void printForDebug() {\n\t\tif(Globalconstantable.DEBUG)\n\t\t{\n\t\t\tSystem.out.println(this.getSID());\n\t\t\tSystem.out.println(this.getScores());\n\t\t}\n\t}",
"protected void print_knapsack(Knapsack knapsack) {\n System.out.println(\"iteration:\"+iteration+\" time:\"+System.currentTimeMillis()+\n \" best_value:\"+best_value+\" \"+knapsack);\n }",
"@Override\n\tprotected void getConstraintFromNetlistConstraintFile() {\n\n\t}",
"private void printProofAssert(String decl, Theorem t, SimpleLemma l) {\n\t\tfor (int i = l.nbPo() - 1; i >= 0; i--) {\n\t\t\tNonObviousGoal g = (NonObviousGoal) l.getGoal(i);\n\t\t\tif (printer.firstItem)\n\t\t\t\tprinter.firstItem = false;\n\t\t\telse\n\t\t\t\tstream.println(\";\");\n\t\t\tif (!decl.equals(\"\"))\n\t\t\t\tstream.print(\"!(\" + decl + \").\");\n\t\t\tstream.print(\"(\");\n\t\t\tEnumeration e = t.getHyp().elements();\n\t\t\tboolean first = true;\n\t\t\twhile (e.hasMoreElements()) {\n\t\t\t\tVirtualFormula vf = (VirtualFormula) e.nextElement();\n\t\t\t\tFormula f = vf.getFormula();\n\t\t\t\tif (printer.formulaRank.containsKey(f)) {\n\t\t\t\t\tif (!first)\n\t\t\t\t\t\tstream.print(\" &\");\n\t\t\t\t\telse\n\t\t\t\t\t\tfirst = false;\n\n\t\t\t\t\tstream.print(\" f_\" + printer.formulaRank.get(f).toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!first)\n\t\t\t\tstream.print(\" =>\");\n\t\t\tstream.print(\n\t\t\t\t\"f_\"\n\t\t\t\t\t+ printer.formulaRank.get(g.getFormula()).toString()\n\t\t\t\t\t+ \")\");\n\t\t}\n\t}",
"public void print();",
"public void print();",
"public void print();",
"public void print();",
"@Override\n public String getDebugString() {\n return _model.toString();\n }",
"public void print()\n {\n System.out.println();\n System.out.println(\"Ticket to \" + destination +\n \" Price : \" + price + \" pence \" + \n \" Issued \" + issueDateTime);\n System.out.println();\n }",
"public String drawRequirements();",
"public List<Constraint> getConstraints() {\r\n\t\treturn constraints;\r\n\t}",
"public void print() {\r\n\t\t System.out.println(toString());\r\n\t }",
"public void printTable() {\n\t\tString s = String.format(\"Routing table (%.3f)\\n\"\n\t\t\t\t+ \"%10s %10s %8s %5s %10s \\t path\\n\", now, \"prefix\", \n\t\t\t\t\"timestamp\", \"cost\",\"link\", \"VLD/INVLD\");\n\t\tfor (Route rte : rteTbl) {\n\t\t\ts += String.format(\"%10s %10.3f %8.3f\",\n\t\t\t\t\trte.pfx.toString(), rte.timestamp, rte.cost);\n\n\t\t\ts += String.format(\" %5d\", rte.outLink);\n\n\t\t\tif (rte.valid == true)\n\t\t\t\ts+= String.format(\" %10s\", \"valid\");\n\t\t\telse\n\t\t\t\ts+= String.format(\" %10s \\t\", \"invalid\");\n\n\t\t\tfor (int r :rte.path)\n\t\t\t\ts += String.format (\" %s\",Util.ip2string(r));\n\n\t\t\tif (lnkVec.get(rte.outLink).helloState == 0)\n\t\t\t\ts += String.format(\"\\t ** disabled link\");\n\t\t\ts += \"\\n\";\n\t\t}\n\t\tSystem.out.println(s);\n\t}",
"public void printConfig();",
"public void print() {\n\t\tSystem.out.println(\"[System] 펫 정보입니다.\\n 이름 : \"+TMGCSYS.tmgcName+\", 레벨 : \"+TMGCSYS.tmgcLV+\", 경험치 : \"+TMGCSYS.tmgcEXP+\"/\"+(100*TMGCSYS.tmgcLV)+\", 체력 : \"+TMGCSYS.tmgcHP+\", 스트레스 : \"+TMGCSYS.tmgcStress);\r\n\t}",
"@Override\n public String toString() {\n if (tree != null) {\n\n String s = tree.render();\n\n s += \"\\n\\nNumber of positive rules: \"\n + getMeasure(\"measureNumPositiveRules\") + \"\\n\";\n s += \"Number of conditions in positive rules: \"\n + getMeasure(\"measureNumConditionsInPositiveRules\") + \"\\n\";\n\n return s;\n } else {\n return \"No model built yet!\";\n }\n }",
"public void printInfo(){\n\t}"
]
| [
"0.8204897",
"0.69957405",
"0.6193562",
"0.5950445",
"0.59093714",
"0.577197",
"0.5734376",
"0.5718897",
"0.5706683",
"0.56567585",
"0.5637729",
"0.5632072",
"0.5595261",
"0.5575107",
"0.55667657",
"0.556599",
"0.5559352",
"0.54957116",
"0.5472018",
"0.5456749",
"0.5413886",
"0.5384877",
"0.53829974",
"0.53805596",
"0.5379509",
"0.53736186",
"0.53516054",
"0.53473437",
"0.5343796",
"0.53377557",
"0.53253525",
"0.5323499",
"0.5321884",
"0.5310003",
"0.53061604",
"0.5300642",
"0.528193",
"0.528187",
"0.5275891",
"0.52752256",
"0.5274989",
"0.52678674",
"0.5263106",
"0.52612936",
"0.52586335",
"0.5242446",
"0.5238843",
"0.52272636",
"0.52165335",
"0.52083004",
"0.52034175",
"0.51925415",
"0.5188909",
"0.5185263",
"0.51767355",
"0.51752377",
"0.5171964",
"0.5165819",
"0.5158751",
"0.51551145",
"0.51473385",
"0.5146519",
"0.514527",
"0.51442045",
"0.51411915",
"0.51398623",
"0.5132236",
"0.51268715",
"0.5123156",
"0.5122075",
"0.51145476",
"0.5111304",
"0.50984555",
"0.5091523",
"0.508739",
"0.5085335",
"0.5083639",
"0.5083392",
"0.5081454",
"0.50811386",
"0.50756973",
"0.50732213",
"0.50663507",
"0.50551707",
"0.50547016",
"0.50527036",
"0.50487745",
"0.50487745",
"0.50487745",
"0.50487745",
"0.504088",
"0.503861",
"0.50384796",
"0.5035055",
"0.50310165",
"0.50298005",
"0.5028948",
"0.5027009",
"0.5021085",
"0.50143546"
]
| 0.8812403 | 0 |
getDefinition(): Method to be implemented by all TableEntity classes. Used to provide create definition during query generation. | public abstract String getDefinition(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface TableDefinition extends BaseColumns {\n\n String tableName();\n\n String createStatement();\n\n String dropStatement();\n \n}",
"@Override\n public List<TableDefinition> getTableDefinitions()\n {\n return tableDefinitions;\n }",
"String getDefinition();",
"private EntityDef createEntityDef(Class<?> entityClass)\n {\n\t\tif (entityClass.isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass.SingleTableSuperclass(entityClass);\n } else if (entityClass.getSuperclass().isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass(entityClass);\n } else {\n return new EntityDef(entityClass);\n }\n\t}",
"public String getDefinition() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic EntityDefinition getDefine() {\n\t\treturn null;\n\t}",
"public String getDefinitionName() {\n return null;\n }",
"public String getDefinition(){\n\t\treturn definition;\n\t}",
"@SuppressWarnings({ \"unchecked\", \"null\" })\n public static void createTableDefinition() throws Exception{\n\n if(OBJECT.isAnnotationPresent(Table.class)){\n Annotation annotation = OBJECT.getAnnotation(Table.class);\n Method method = annotation.getClass().getMethod(\"name\");\n Object object = method.invoke(annotation);\n\n TABLE_NAME = object.toString().toUpperCase();\n\n CREATE_STATEMENT = new StringBuilder();\n FOREIGN_KEY = new StringBuilder();\n COLUMNS = new StringBuilder();\n LIST_FIELD_MODEL = new ArrayList<FieldModel>();\n\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Annotation @Table not declared in class \"+OBJECT.getSimpleName());\n }\n\n\n FIELD_DEFINITION = OBJECT.getDeclaredFields();\n\n ARRAY_COLUMNS = new String[FIELD_DEFINITION.length];\n\n for (int i = 0; i < FIELD_DEFINITION.length ; i++){\n Field field = FIELD_DEFINITION[i];\n Annotation annotation = null;\n Method methodName = null;\n Method methodSize = null;\n Object objectName = null;\n Object sizeField = null;\n String type;\n String primaryKeyText = \"\";\n\n\n if(field.isAnnotationPresent(Column.class)){\n annotation = field.getAnnotation(Column.class);\n methodName = annotation.getClass().getMethod(\"name\");\n methodSize = annotation.getClass().getMethod(\"size\");\n sizeField = methodSize.invoke(annotation);\n objectName = methodName.invoke(annotation);\n if(objectName == null || objectName.toString() == \"\"){\n objectName = field.getName();\n }\n\n\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Annotation @Column not declared in the field --> \"+field.getName());\n }\n\n if(field.isAnnotationPresent(PrimaryKey.class)){\n PK = objectName.toString();\n\n Annotation pKey_annotation = field.getAnnotation(PrimaryKey.class);\n Method pkey_methodAutoIncrement = pKey_annotation.getClass().getMethod(\"autoIncrement\");\n Object pkey_autoIncrement = pkey_methodAutoIncrement.invoke(pKey_annotation);\n\n primaryKeyText = \" PRIMARY KEY \";\n\n if(Boolean.valueOf(pkey_autoIncrement.toString())){\n primaryKeyText = primaryKeyText + \" AUTOINCREMENT \";\n }\n\n }\n if(field.isAnnotationPresent(Codigo.class)){\n setCOD(objectName.toString());\n }\n if(field.isAnnotationPresent(ForeignKey.class)){\n Annotation fkey_annotation = field.getAnnotation(ForeignKey.class);\n Method fkey_methodTableReference = fkey_annotation.getClass().getMethod(\"tableReference\");\n Object fkey_tableReferenceName = fkey_methodTableReference.invoke(fkey_annotation);\n\n Method fkey_methodOnUpCascade = fkey_annotation.getClass().getMethod(\"onUpdateCascade\");\n Object fkey_OnUpCascadeValue = fkey_methodOnUpCascade.invoke(fkey_annotation);\n\n Method fkey_methodOnDelCascade = fkey_annotation.getClass().getMethod(\"onDeleteCascade\");\n Object fkey_OnDelCascadeValue = fkey_methodOnDelCascade.invoke(fkey_annotation);\n\n Method fkey_methodColumnReference = fkey_annotation.getClass().getMethod(\"columnReference\");\n Object fkey_columnReference = fkey_methodColumnReference.invoke(fkey_annotation);\n\n String columnReference = fkey_columnReference.toString();\n if(columnReference == \"\"){\n columnReference = \"_id\";\n }\n\n FOREIGN_KEY.append(\", FOREIGN KEY (\"+objectName.toString()+\") REFERENCES \"+fkey_tableReferenceName.toString().toUpperCase()+\" (\"+columnReference+\")\");\n\n if(Boolean.valueOf(fkey_OnUpCascadeValue.toString())){\n FOREIGN_KEY.append(\" ON UPDATE CASCADE \");\n }\n if(Boolean.valueOf(fkey_OnDelCascadeValue.toString())){\n FOREIGN_KEY.append(\" ON DELETE CASCADE \");\n }\n\n\n }\n\n\n if(field.getType() == int.class || field.getType() == Integer.class || field.getType() == Long.class || field.getType() == long.class){\n type = \" INTEGER \";\n }else\tif(field.getType() == String.class || field.getType() == char.class ){\n type = \" TEXT \";\n }else\tif(field.getType() == Double.class || field.getType() == Float.class || field.getType() == double.class){\n type = \" REAL \";\n }else if(field.getType() == BigDecimal.class){\n type = \" REAL \";\n }else if(field.getType() == Date.class){\n type = \" TIMESTAMP \";\n }\n else if(field.getType() == java.sql.Timestamp.class){\n type = \" TIMESTAMP \";\n }else if(field.getType() == Boolean.class || field.getType() == boolean.class){\n type = \" BOOLEAN \";\n }else{\n type = \" NONE \";\n }\n if(!sizeField.equals(\"\") ){\n type = type+\"(\"+sizeField.toString()+\") \";\n setSIZE(Integer.parseInt(sizeField.toString()));\n }\n // Log.d(\"afalOG\", \"TAMANHO\" + type+sizeField.toString());\n if(i == FIELD_DEFINITION.length-1){\n if(objectName != null){\n CREATE_STATEMENT.append(objectName.toString()+\" \"+type+primaryKeyText);\n COLUMNS.append(objectName.toString());\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Property 'name' not declared in the field --> \"+field.getName());\n }\n }else{\n if(objectName != null){\n CREATE_STATEMENT.append(objectName.toString()+\" \"+type+primaryKeyText+\", \");\n COLUMNS.append(objectName.toString()+\" , \");\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Property 'name' not declared in the field --> \"+field.getName());\n }\n }\n ARRAY_COLUMNS[i] = objectName.toString();\n if(! primaryKeyText.contains(\"AUTOINCREMENT\")){\n FieldModel fieldModel = new FieldModel();\n fieldModel.setColumnName(objectName.toString());\n fieldModel.setFieldName(field.getName());\n LIST_FIELD_MODEL.add(fieldModel);\n }\n }\n\n if(FOREIGN_KEY.toString() != \"\"){\n CREATE_STATEMENT.append(FOREIGN_KEY);\n }\n CREATE_STATEMENT.append(\");\");\n\n\n if(getPK() == \"\"){\n StringBuilder sb = new StringBuilder();\n sb.append(\"CREATE TABLE \" + TABLE_NAME + \" (\");\n sb.append(BaseColumns._ID +\" INTEGER PRIMARY KEY AUTOINCREMENT, \" );\n sb.append(CREATE_STATEMENT);\n\n String[] columns = new String[ARRAY_COLUMNS.length+1];\n columns[0] = BaseColumns._ID;\n for(int i = 0; i < ARRAY_COLUMNS.length; i++){\n columns[i+1] = ARRAY_COLUMNS[i];\n }\n\n ARRAY_COLUMNS = columns;\n\n CREATE_STATEMENT = sb;\n }else{\n StringBuilder sb = new StringBuilder();\n sb.append(\"CREATE TABLE \" + TABLE_NAME + \" (\");\n sb.append(CREATE_STATEMENT);\n\n CREATE_STATEMENT = sb;\n }\n }",
"@objid (\"818dee09-2959-443b-9223-8a8a24ff4879\")\n PropertyTableDefinition getDefinedTable();",
"public RDR_RDR_DEFINITION getDEFINITION() { \r\n return getTyped(\"DEFINITION\", RDR_RDR_DEFINITION.class);\r\n }",
"protected void sequence_DEFINE_DefinitionTable_TABLE(ISerializationContext context, DefinitionTable semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"public TableDefinition(String tableName) {\n this.tableName = tableName;\n }",
"public String getName()\n {\n return definition.getName();\n }",
"public static synchronized EntityDefImpl getDefinitionObject()\n {\n if (mDefinitionObject == null)\n {\n mDefinitionObject = (EntityDefImpl)EntityDefImpl.findDefObject(\"es.sysmap.interflex.model.bdc.Sgaexpedbulto\");\n }\n return mDefinitionObject;\n }",
"public static CommonTableField createEntity() {\n CommonTableField commonTableField = new CommonTableField()\n .title(DEFAULT_TITLE)\n .entityFieldName(DEFAULT_ENTITY_FIELD_NAME)\n .type(DEFAULT_TYPE)\n .tableColumnName(DEFAULT_TABLE_COLUMN_NAME)\n .columnWidth(DEFAULT_COLUMN_WIDTH)\n .order(DEFAULT_ORDER)\n .editInList(DEFAULT_EDIT_IN_LIST)\n .hideInList(DEFAULT_HIDE_IN_LIST)\n .hideInForm(DEFAULT_HIDE_IN_FORM)\n .enableFilter(DEFAULT_ENABLE_FILTER)\n .validateRules(DEFAULT_VALIDATE_RULES)\n .showInFilterTree(DEFAULT_SHOW_IN_FILTER_TREE)\n .fixed(DEFAULT_FIXED)\n .sortable(DEFAULT_SORTABLE)\n .treeIndicator(DEFAULT_TREE_INDICATOR)\n .clientReadOnly(DEFAULT_CLIENT_READ_ONLY)\n .fieldValues(DEFAULT_FIELD_VALUES)\n .notNull(DEFAULT_NOT_NULL)\n .system(DEFAULT_SYSTEM)\n .help(DEFAULT_HELP)\n .fontColor(DEFAULT_FONT_COLOR)\n .backgroundColor(DEFAULT_BACKGROUND_COLOR)\n .nullHideInForm(DEFAULT_NULL_HIDE_IN_FORM)\n .endUsed(DEFAULT_END_USED)\n .options(DEFAULT_OPTIONS);\n return commonTableField;\n }",
"private String getCreateTableSql() {\n StringBuffer stringBuffer = new StringBuffer();\r\n stringBuffer.append(\"create table if not exists \");\r\n stringBuffer.append(tableName + \"(\");\r\n //反射得到所有的成员变量\r\n Field[] fields = entityClass.getDeclaredFields();\r\n for (Field field : fields) {\r\n Class type = field.getType();\r\n if (field.getAnnotation(DbField.class) != null) {\r\n if (type == String.class) {\r\n stringBuffer.append(field.getAnnotation(DbField.class).value() + \" TEXT,\");\r\n } else if (type == Integer.class) {\r\n stringBuffer.append(field.getAnnotation(DbField.class).value() + \" INTEGER,\");\r\n } else if (type == Long.class) {\r\n stringBuffer.append(field.getAnnotation(DbField.class).value() + \" BIGINT,\");\r\n } else if (type == Double.class) {\r\n stringBuffer.append(field.getAnnotation(DbField.class).value() + \" DOUBLE,\");\r\n } else if (type == byte[].class) {\r\n stringBuffer.append(field.getAnnotation(DbField.class).value() + \" BLOB,\");\r\n } else {\r\n //不支持的类型\r\n continue;\r\n }\r\n } else {\r\n if (type == String.class) {\r\n stringBuffer.append(field.getName() + \" TEXT,\");\r\n } else if (type == Integer.class) {\r\n stringBuffer.append(field.getName() + \" INTEGER,\");\r\n } else if (type == Long.class) {\r\n stringBuffer.append(field.getName() + \" BIGINT,\");\r\n } else if (type == Double.class) {\r\n stringBuffer.append(field.getName() + \" DOUBLE,\");\r\n } else if (type == byte[].class) {\r\n stringBuffer.append(field.getName() + \" BLOB,\");\r\n } else {\r\n //不支持的类型\r\n continue;\r\n }\r\n }\r\n }\r\n if (stringBuffer.charAt(stringBuffer.length() - 1) == ',') {\r\n stringBuffer.deleteCharAt(stringBuffer.length() - 1);\r\n }\r\n stringBuffer.append(\")\");\r\n return stringBuffer.toString();\r\n\r\n }",
"Definition createDefinition();",
"public String getName() {\n return definition.getName();\n }",
"@Override\n public String getDefinitionSetId() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }",
"public String getNomTable();",
"@Override\n\tpublic EntityDescriptor getEntityDescriptor() {\n\t\ttry {\n\t\t\treturn DAOSystem.getEntityDescriptor(getEntityClass().getName());\n\t\t} catch (ConfigurationException e) {\n\t\t\tthrow new DataAccessException(\"Can not load EntityDescriptor\", e);\n\t\t}\n\t}",
"@Override\n\tpublic BeanEntity getBeanDefinition(String name) {\n\t\treturn null;\n\t}",
"public String getCreateTableString() {\n \t\treturn \"create table\";\n \t}",
"public abstract String getDatabaseTableName(String entityName);",
"public interface ISchemaEntity {\n\t\n\tpublic static final String KEY_NAME = \"Name\";\n\t\n\t\n\t/**\n\t * Vraca sucelje sklopa koji se modelira\n\t * u schematicu - broj i vrstu portova.\n\t * \n\t */\n\tCircuitInterface getCircuitInterface(ISchemaInfo info);\n\t\n\t\n\t/**\n\t * Vraca mapu parametara komponente\n\t * koja se modelira u schematicu.\n\t * Na temelju dijela ove kolekcije biti ce kasnije\n\t * izgraden generic blok pri generiranju\n\t * strukturnog VHDLa.\n\t * \n\t */\n\tIParameterCollection getParameters();\n\t\n\t/**\n\t * Postavlja parametre (vidi metodu\n\t * getParameters()).\n\t * \n\t * @param parameters\n\t */\n\tvoid setParameters(IParameterCollection parameters);\n\t\n\t/**\n\t * Vraca vrijednost uvijek prisutnog parametra pod kljucem KEY_NAME,\n\t * koji oznacava ime entity-a.\n\t */\n\tCaseless getName();\n\t\n\t/**\n\t * Dohvaca portove sucelja modelirane komponente.\n\t * \n\t */\n\tpublic List<Port> getPorts(ISchemaInfo info);\n\t\n\t/**\n\t * Brise portove i ne-defaultne parametre.\n\t *\n\t */\n\tvoid reset();\n\t\n}",
"@Override\n public boolean isTableFactory() {\n return true;\n }",
"TableInstance createTableInstance();",
"public Class getTableClass() {\n\t\treturn entityClass;\r\n\t}",
"@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}",
"@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}",
"@Override\n public String getTableName() {\n return getFreeTextDocTablename(conf);\n }",
"@Override\n\t\tpublic String getTableName() {\n\t\t\treturn null;\n\t\t}",
"public TableName name();",
"@Override\r\n\tpublic String getTableName() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getTableName() {\n\t\treturn null;\r\n\t}",
"public String getDefinition() {\n\t\ttry {\n\t\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/definition\").getText();\n\t\t} catch (Throwable t) {\n\t\t}\n\t\treturn \"\";\n\t}",
"String getTableDefines();",
"String getTableName();",
"public String getDefinition_type() {\r\n\t\treturn definition_type;\r\n\t}",
"public definitionSet getDefinitionSet() {\n return definitionSet;\n }",
"private String getEntitiesTableName()\n {\n\tString prefix = PropertyLookup.getTableNamePrefix();\n\tString separator = PropertyLookup.getTableNameSeparator();\n\tString suffix = PropertyLookup.getEntitiesTableNameSuffix();\n\n\treturn prefix + separator + catalogId + separator + suffix;\n }",
"private TableSchema createTableSchema(Node entity) {\n\t\tString physicalName = handler.getChildValueByProperty(entity,\n\t\t\t\t\"EntityProps.Physical_Name\");\n\t\tString name = entity.getAttributes().getNamedItem(\"Name\").getNodeValue().trim();\n\t\tString id = entity.getAttributes().getNamedItem(\"id\").getNodeValue().trim();\n\t\tnodeMap.put(id, entity);\n\t\tTableSchema tableSchema = new TableSchema(\"\", \"\");\n\t\tif (physicalName != null) {\n\t\t\tphysicalNameMap.put(id, physicalName);\n\t\t\ttableSchema.setName(physicalName);\n\t\t} else {\n\t\t\ttableSchema.setName(name);\n\t\t}\n\n\t\treturn tableSchema;\n\t}",
"DatastoreMetadataFactory<EntityMetadata, Discriminator> getMetadataFactory();",
"public List<String> definition() {\n return this.definition;\n }",
"@Override\n\tpublic String getTableName() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getTableName() {\n\t\treturn null;\n\t}",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"public abstract List<ColumnSpecification> metadata();",
"@Override\n\tpublic void entityDeclaration() {\n\t\t\n\t}",
"private String TableContentDefinition(SimpleNode treeRoot) {\n String statement = \"\";\n SimpleNode node;\n String nodeType;\n String tmp;\n\n /*\n\t\t * Table content consists of column definitions.\n */\n for (int i = 0; i < treeRoot.jjtGetNumChildren(); i++) {\n node = ((SimpleNode) treeRoot.jjtGetChild(i));\n nodeType = node.toString();\n if (\"ColumnDefinition\".equals(nodeType)) {\n statement += ColumnDefinition(node) + \",\\n\";\n } else if (\"OutOfLineConstraint\".equals(nodeType)) {\n /*\n\t\t\t\t * Constraint can result in empty statement \n\t\t\t\t * - PRIMARY KEY (###) just adds columns to keys array and has empty result\n */\n tmp = OutOfLineConstraint(node);\n if (tmp.length() != 0) {\n statement += tmp + \",\\n\";\n }\n }\n }\n return statement;\n }",
"public String getEntityTypeName() { return \"org.doxer.app.db.dbflute.exentity.StShhnKnyMs\"; }",
"@Override\r\n\tpublic Class<TeEmployeesDetail> getEntityClass() {\n\t\treturn TeEmployeesDetail.class;\r\n\t}",
"@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}",
"public String tableName() {\n if ( tableName != null ) {\n return tableName;\n }\n\n TableName annotation = this.entityType().getAnnotation( TableName.class );\n if ( annotation != null ) {\n tableName = annotation.value();\n } else {\n tableName = entityType().getSimpleName().toLowerCase() + 's';\n }\n return tableName;\n }",
"Table getBaseTable();",
"@Override\n\tpublic String getTableName() { \n\t\treturn tableName;\n\t}",
"@Generated(\"Speedment\")\npublic interface Employee extends Entity<Employee> {\n \n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getId()} method.\n */\n public final static ComparableField<Employee, Short> ID = new ComparableFieldImpl<>(\"id\", Employee::getId, Employee::setId);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getFirstname()} method.\n */\n public final static StringField<Employee> FIRSTNAME = new StringFieldImpl<>(\"firstname\", o -> o.getFirstname().orElse(null), Employee::setFirstname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getLastname()} method.\n */\n public final static StringField<Employee> LASTNAME = new StringFieldImpl<>(\"lastname\", o -> o.getLastname().orElse(null), Employee::setLastname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getBirthdate()} method.\n */\n public final static ComparableField<Employee, Date> BIRTHDATE = new ComparableFieldImpl<>(\"birthdate\", o -> o.getBirthdate().orElse(null), Employee::setBirthdate);\n \n /**\n * Returns the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @return the id of this Employee\n */\n Short getId();\n \n /**\n * Returns the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @return the firstname of this Employee\n */\n Optional<String> getFirstname();\n \n /**\n * Returns the lastname of this Employee. The lastname field corresponds to\n * the database column db0.sql696688.employee.lastname.\n * \n * @return the lastname of this Employee\n */\n Optional<String> getLastname();\n \n /**\n * Returns the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @return the birthdate of this Employee\n */\n Optional<Date> getBirthdate();\n \n /**\n * Sets the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @param id to set of this Employee\n * @return this Employee instance\n */\n Employee setId(Short id);\n \n /**\n * Sets the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @param firstname to set of this Employee\n * @return this Employee instance\n */\n Employee setFirstname(String firstname);\n \n /**\n * Sets the lastname of this Employee. The lastname field corresponds to the\n * database column db0.sql696688.employee.lastname.\n * \n * @param lastname to set of this Employee\n * @return this Employee instance\n */\n Employee setLastname(String lastname);\n \n /**\n * Sets the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @param birthdate to set of this Employee\n * @return this Employee instance\n */\n Employee setBirthdate(Date birthdate);\n \n /**\n * Creates and returns a {@link Stream} of all {@link Borrowed} Entities that\n * references this Entity by the foreign key field that can be obtained using\n * {@link Borrowed#getEmployeeid()}. The order of the Entities are undefined\n * and may change from time to time.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a {@link Stream} of all {@link Borrowed} Entities that references\n * this Entity by the foreign key field that can be obtained using {@link\n * Borrowed#getEmployeeid()}\n */\n Stream<Borrowed> findBorrowedsByEmployeeid();\n \n /**\n * Creates and returns a <em>distinct</em> {@link Stream} of all {@link\n * Borrowed} Entities that references this Entity by a foreign key. The order\n * of the Entities are undefined and may change from time to time.\n * <p>\n * Note that the Stream is <em>distinct</em>, meaning that referencing\n * Entities will only appear once in the Stream, even though they may\n * reference this Entity by several columns.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a <em>distinct</em> {@link Stream} of all {@link Borrowed}\n * Entities that references this Entity by a foreign key\n */\n Stream<Borrowed> findBorroweds();\n}",
"public String getTabledesc() {\n return tabledesc;\n }",
"String getBaseTable();",
"public Long getDefinition() {\n return this.Definition;\n }",
"UnNamedDomainType getDefinition();",
"public TransformDefinition definition() throws Throwable {\n return TransformDefinitionRepository.getInstance(executor()).get(_defnUid, _defnVersion);\n }",
"protected String getTableName()\n {\n return immutableGetTableName();\n }",
"@Override\n public String getFormatEntity() {\n return NameIDType.ENTITY;\n }",
"public static synchronized EntityDefImpl getDefinitionObject() {\n if (mDefinitionObject == null) {\n mDefinitionObject = \n (OAEntityDefImpl)EntityDefImpl.findDefObject(\"oracle.apps.fnd.framework.toolbox.schema.server.SupplierEO\");\n }\n return mDefinitionObject;\n }",
"public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }",
"public void setDefinition(String definition){\n\t\tthis.definition = definition;\n\t}",
"void create(DataTableDef def) throws IOException;",
"Table createTable();",
"public interface TableMetaData {\n\n\t/** Adds normal column. */\n\tpublic void addColumn(final ColumnMetaData column);\n\n\t/** Adds primary key column. */\n\tpublic void addPrimaryKey(final ColumnMetaData column);\n\n\t/** Returns map of column meta data, keyed by the column label (the alias if provided in the query, otherwise the name). */\n\tpublic Map<String, ColumnMetaData> getColumns();\n\n\t/** Returns database name. */\n\tpublic String getDatabaseName();\n\n\t/** Returns ordered list of columns that are primary keys. */\n\tpublic List<ColumnMetaData> getPrimaryKeys();\n\n\t/**\n\t * Returns fully qualified table name in database-specific form for use in SQL statements. MySQL uses the form\n\t * <code>database.table</code>, for example <code>sakila.film</code>. PostgreSQL uses the form\n\t * <code>database.schema.table</code>, for example <code>sakila.public.film</code>.\n\t */\n\tpublic String getQualifiedTableName();\n\n\t/** Returns row alias. */\n\tpublic String getRowAlias();\n\t\n\t/** Returns row set alias. */\n\tpublic String getRowSetAlias();\n\t\n\t/**\n\t * Returns row alias.\n\t * \n * @deprecated As of 0.8.11 use {@link #getRowAlias()}\n\t */\n\t@Deprecated\n\tpublic String getTableAlias();\n\n\t/** Returns table name. */\n\tpublic String getTableName();\n\n\t/** Returns role of table in the SQL Resource. */\n\tpublic TableRole getTableRole();\n\n\t/** Returns true if the SQL Resource role is child. */\n\tpublic boolean isChild();\n\n\t/** Returns true if the SQL Resource role is parent. */\n\tpublic boolean isParent();\n\n\t/** Sets all the row and row set aliases. */\n\tpublic void setAliases(final String alias, final String rowAlias, final String rowSetAlias);\n\n\t/** Sets attributes. */\n\tpublic void setAttributes(final String tableName, final String qualifedTableName,\n\t\t\tfinal String databaseName, final TableRole tableRole);\n\n\t/**\n\t * Sets table alias.\n\t * \n * @deprecated As of 0.8.11 use {@link #setAliases(String, String, String)}\n\t */\n\t@Deprecated\n\tpublic void setTableAlias(final String tableAlias);\n\t\n\t/** Represents all of the roles a table may plan in a SQL Resource. */\n\t@XmlType(namespace = \"http://restsql.org/schema\")\n\tpublic enum TableRole {\n\t\tChild, ChildExtension, Join, Parent, ParentExtension, Unknown;\n\t}\n}",
"@Override\n public void definitionListItem()\n {\n }",
"SchemaDefinition createSchemaDefinition();",
"public interface Column{\n\t\tpublic abstract String asc();\n\t\tpublic abstract String desc();\n\t}",
"public String getTableGenerationPropertyName() {\n return PersistenceUnitProperties.SCHEMA_GENERATION_DATABASE_ACTION;\n }",
"private void createGetTableName(){\n //---------------------------------------------------------------------------\n buffer.append(\" /**\\n\");\n buffer.append(\" * <code>getTableName</code>\\n\");\n buffer.append(\" * <p>\\n\");\n buffer.append(\" * This method return the current tablename.\\n\");\n buffer.append(\" * </p>\\n\");\n buffer.append(\" * @author Booker Northington II\\n\");\n buffer.append(\" * @version 1.0\\n\");\n buffer.append(\" * @since 1.3\\n\");\n buffer.append(\" * @return tableName <code>String</code> the name \");\n buffer.append(\"of this table.\\n\");\n buffer.append(\" */\\n\");\n buffer.append(spacer);\n buffer.append(\" public String getTableName(){\\n\");\n buffer.append(spacer);\n buffer.append(\" return tableName;\\n\");\n buffer.append(\" }//getTableName() ENDS\\n\\n\");\n }",
"@Override public int get_Table_ID()\r\n {\r\n return Table_ID;\r\n \r\n }",
"@Override public int get_Table_ID()\r\n {\r\n return Table_ID;\r\n \r\n }",
"@Override public int get_Table_ID()\r\n {\r\n return Table_ID;\r\n \r\n }",
"@Override public int get_Table_ID()\r\n {\r\n return Table_ID;\r\n \r\n }",
"public interface Table\n extends Tabular\n{\n /** @return the names of the columns in this table or an empty list if no columns have been defined, never null */\n List<String> getColumns();\n\n /**\n * Define the name of a column\n *\n * @param index the position in the header starting with 0\n * @param name the name to be used for this column\n * @return this to allow chaining\n */\n Table setColumn(int index, String name);\n\n /**\n * Determine the name of a column if the position is known.\n *\n * @param index the position in the header starting with 0\n * @return the column name at the given position, null if unknown\n */\n String getColumn(int index);\n\n /**\n * Determine the index of a column if the name is known.\n *\n * @param column the case insensitive name of the respective column\n * @return the index of the column in the headings, -1 if the column is unknown\n */\n int indexOf(String column);\n\n /**\n * Retrieve the value of the given row and column\n *\n * If the row is out of bounds or the column is unknown will simply return <code>null</code> to indicate that no value\n * has been set.\n *\n * @param column the column name in the table\n * @param row the row number in the table starting with 0\n * @return the associated value of that cell, can be null\n */\n\n String getValue(String column, int row);\n\n /**\n * Retrieve the configuration parameters of this table.\n *\n * As there can be many implementations of a table and these implementations are configured in a different manner,\n * this is the place where these parameters can be retrieved in a uniform manner and passed to other layers, e.g. to\n * configure appropriate writers and readers or simply to setup the respective factories.\n *\n * @return the not-null list of (key, value) pairs that configure this particular table\n */\n Map<String, String> getParameters();\n}",
"@objid (\"e6f7930d-e513-40f5-a7a6-044fb7df6be5\")\n void setDefinedTable(PropertyTableDefinition value);",
"public Hashtable getDataTypeDefinitions() {\n return ComponentHelper.getComponentHelper(this).getDataTypeDefinitions();\n }",
"@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}",
"@Override\n public String getCreate() {\n return \"CREATE TABLE IF NOT EXISTS StoreController (\\n\" +\n \"\\tstoreID INTEGER NOT NULL UNIQUE,\\n\" +\n \"\\tstoreShelves INTEGER NOT NULL,\\n\" +\n \"\\tnumberOfShelves INTEGER NOT NULL,\\n\" +\n \"\\tdiscountCounter INTEGER NOT NULL,\\n\" +\n \"\\ttypeCounter INTEGER NOT NULL,\\n\" +\n \"\\tcategoryCounter INTEGER NOT NULL,\\n\"+\n \"\\tFOREIGN KEY(\\\"storeID\\\") REFERENCES \\\"Branches\\\"(\\\"BID\\\"),\\n\" +\n \"\\tPRIMARY KEY(\\\"storeID\\\")\\n\" +\n \");\";\n }",
"@Override\n\tpublic String entityClassName() {\n\t\treturn null;\n\t}",
"public PersonFactLastNameRecord() {\n\t\tsuper(opus.address.database.jooq.generated.tables.PersonFactLastName.PersonFactLastName);\n\t}",
"public String getTableGenerationCreateValue(){\n return PersistenceUnitProperties.SCHEMA_GENERATION_CREATE_ACTION;\n }",
"private String getTableName() {\n return this.tableName;\n }",
"@Override\r\n\tprotected String defineColumn(ColumnDefinition columnDefinition) {\n\t\treturn null;\r\n\t}",
"public String getName() {\n return tableName;\n }",
"TableId table();",
"TableType getTableType()\n {\n return tableType;\n }",
"@Override\n @SuppressWarnings( \"unchecked\" )\n protected Set<String> getDefinitions() {\n final Set<Object> allowedDefinitions =\n commonLookups.getAllowedTargetDefinitions(\n canvasHandler.getModelRulesManager(),\n getDefinitionSetIdentifier(),\n canvasHandler.getDiagram().getGraph(),\n this.sourceNode,\n getEdgeIdentifier(),\n 0,\n 10 );\n return null;\n }",
"FieldDefinition createFieldDefinition();",
"public ATExpression base_tableExpression();",
"private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}",
"public interface Entity {\n\n // ===================================================================================\n // Display String\n // ==============\n /**\n * @return The display string of basic informations with one-nested relation values. (NotNull)\n */\n public String toStringWithRelation();\n\n /**\n * @param name The name for display. (NullAllowed: If it's null, it does not have a name)\n * @param column Does it contains column values or not?\n * @param relation Does it contains relation existences or not?\n * @return The display string for this entity. (NotNull)\n */\n public String buildDisplayString(String name, boolean column, boolean relation);\n}",
"public String getTableName() {\n return this.tableName;\n }",
"public String createTable() {\n\n String statement = \"CREATE TABLE \" + tableName + \"( \";\n\n //go through INTEGER, FLOAT, TEXT columns\n Iterator iterator = Iterables.filter(columns.entrySet(), entry -> entry.getValue().getType() instanceof String).iterator();\n\n while (iterator.hasNext()) {\n Map.Entry<Element, FieldData> fieldDataEntry = (Map.Entry<Element, FieldData>) iterator.next();\n statement += fieldDataEntry.getValue().createColumn() + \",\";\n }\n\n return (new StringBuilder(statement).replace(statement.length() - 1, statement.length(), \"\").toString() + \")\").toUpperCase();\n }"
]
| [
"0.6615112",
"0.64759964",
"0.62054545",
"0.5995261",
"0.59885174",
"0.59494674",
"0.5943001",
"0.59193665",
"0.5912595",
"0.5897081",
"0.5867896",
"0.5774693",
"0.5772883",
"0.56681305",
"0.56133765",
"0.5601464",
"0.5571701",
"0.5566628",
"0.5552856",
"0.5550375",
"0.5537357",
"0.5535426",
"0.5531742",
"0.5524338",
"0.5514216",
"0.5508562",
"0.5499515",
"0.5496437",
"0.54688525",
"0.5468837",
"0.5468726",
"0.5458619",
"0.54438716",
"0.5441714",
"0.54387873",
"0.54387873",
"0.5430411",
"0.5419937",
"0.54152805",
"0.5408454",
"0.5387799",
"0.5369951",
"0.5362916",
"0.5361796",
"0.5356743",
"0.53536624",
"0.53536624",
"0.53453267",
"0.5333728",
"0.5333497",
"0.53294533",
"0.53268427",
"0.5319845",
"0.5311787",
"0.5298854",
"0.5285225",
"0.5273932",
"0.52643603",
"0.5260345",
"0.5244658",
"0.52345",
"0.5227247",
"0.5219014",
"0.52187836",
"0.5217796",
"0.5216159",
"0.5215289",
"0.5210257",
"0.5209864",
"0.5205871",
"0.52048105",
"0.520388",
"0.51996577",
"0.51964146",
"0.5194764",
"0.51557505",
"0.51474226",
"0.51474226",
"0.51474226",
"0.51474226",
"0.51442534",
"0.5130899",
"0.5113592",
"0.5091481",
"0.50897115",
"0.50845486",
"0.5074095",
"0.5062073",
"0.50616693",
"0.50596154",
"0.5059307",
"0.50580776",
"0.505127",
"0.5048627",
"0.50442934",
"0.5039652",
"0.5035666",
"0.50297356",
"0.50227994",
"0.5022154"
]
| 0.6459698 | 2 |
Creates a new instance of DeviceDataRequestCommand | public DeviceDataRequestCommand()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final com.francetelecom.admindm.model.Parameter createCommand()\n\t\t\tthrows Fault {\n\t\tcom.francetelecom.admindm.model.Parameter param;\n\t\tparam = data.createOrRetrieveParameter(basePath + \"Command\");\n\t\tparam.setNotification(0);\n\t\tparam.setStorageMode(StorageMode.DM_ONLY);\n\t\tparam.setType(ParameterType.STRING);\n\t\tparam.addCheck(new CheckLength(256));\n\t\tparam.setValue(\"\");\n\t\tparam.setWritable(false);\n\t\treturn param;\n\t}",
"public NewDeviceRequest(String deviceId) {\n super();\n setId(deviceId);\n }",
"public static DeviceCommand copy(IDeviceCommand input) throws SiteWhereException {\n\tDeviceCommand result = new DeviceCommand();\n\tPersistentEntity.copy(input, result);\n\tresult.setId(input.getId());\n\tresult.setToken(input.getToken());\n\tresult.setDeviceTypeId(input.getDeviceTypeId());\n\tresult.setName(input.getName());\n\tresult.setNamespace(input.getNamespace());\n\tresult.setDescription(input.getDescription());\n\tfor (ICommandParameter inparam : input.getParameters()) {\n\t CommandParameter param = new CommandParameter();\n\t param.setName(inparam.getName());\n\t param.setType(inparam.getType());\n\t param.setRequired(inparam.isRequired());\n\t result.getParameters().add(param);\n\t}\n\treturn result;\n }",
"public SystemCommandRequest(String command)\r\n\t{\r\n\t\tsetCommand(command);\r\n\t}",
"public SystemCommandRequest()\r\n\t{\r\n\t}",
"protected abstract Command getCreateCommand(CreateRequest request);",
"public CommandPacket(int requestId, String senderAddress, int senderPort, JSONObject command) {\n this.setType(PacketType.COMMAND);\n this.clientRequestId = requestId;\n this.LNSRequestId = -1; // this will be filled in at the LNS\n this.senderAddress = senderAddress;\n this.senderPort = senderPort;\n this.command = command;\n }",
"protected Command(String input, String[] data) {\n this.setInput(input);\n this.setData(data);\n }",
"public static DataModelBuilder create() {\n return new DataModelBuilder();\n }",
"protected Command getCreateCommand(CreateRequest request) {\n\t\treturn null;\n\t}",
"Command createCommand();",
"public static Packet12EntityDefRequest create(final int defID) {\n\t\tPacket12EntityDefRequest r =\n\t\t\t\tnew Packet12EntityDefRequest();\n\t\tr.defID = defID;\n\t\treturn r;\n\t}",
"public Builder setCommandBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n command_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tprotected Command getCreateCommand(CreateRequest request) {\n\t\treturn null;\n\t}",
"public CreateDeviceRequest(CreateDeviceRequest source) {\n if (source.ProductId != null) {\n this.ProductId = new String(source.ProductId);\n }\n if (source.DeviceName != null) {\n this.DeviceName = new String(source.DeviceName);\n }\n if (source.DevAddr != null) {\n this.DevAddr = new String(source.DevAddr);\n }\n if (source.AppKey != null) {\n this.AppKey = new String(source.AppKey);\n }\n if (source.DevEUI != null) {\n this.DevEUI = new String(source.DevEUI);\n }\n if (source.AppSKey != null) {\n this.AppSKey = new String(source.AppSKey);\n }\n if (source.NwkSKey != null) {\n this.NwkSKey = new String(source.NwkSKey);\n }\n if (source.DefinedPsk != null) {\n this.DefinedPsk = new String(source.DefinedPsk);\n }\n }",
"@Override\n public ByteBuffer buildRequestPacket() {\n\n ByteBuffer sendData = ByteBuffer.allocate(128);\n sendData.putLong(this.connectionId); // connection_id - can't change (64 bits)\n sendData.putInt(getActionNumber()); // action we want to perform - connecting with the server (32 bits)\n sendData.putInt(getTransactionId()); // transaction_id - random int we make (32 bits)\n\n return sendData;\n }",
"public static TemplatePushRequest newRequest() {\n return new TemplatePushRequest();\n }",
"public CreateDeviceRequest(CreateDeviceRequest source) {\n if (source.ProjectId != null) {\n this.ProjectId = new String(source.ProjectId);\n }\n if (source.DeviceId != null) {\n this.DeviceId = new String(source.DeviceId);\n }\n if (source.DeviceName != null) {\n this.DeviceName = new String(source.DeviceName);\n }\n if (source.DeviceType != null) {\n this.DeviceType = new String(source.DeviceType);\n }\n if (source.DeviceToken != null) {\n this.DeviceToken = new String(source.DeviceToken);\n }\n }",
"public ISOCommandAPDU(int size, byte classByte, byte instruction, byte p1, byte p2, byte[] data) {\n this(size, classByte, instruction, p1, p2, data, -1);\n }",
"public ISOCommandAPDU(byte classByte, byte instruction, byte p1, byte p2, byte[] data) {\n this(data.length+5+4, classByte, instruction, p1, p2, data, -1); // 5 = max overhead for coding data; 4 = header bytes\n }",
"public static NashRequest newInstance(String command, String workingDirectory, Properties environment, String...arguments) {\n\t\treturn new DefaultNashRequestImpl(command, workingDirectory, environment, arguments);\n\t}",
"public Command createInstance() {\n\t\t\n\t\tif(name == \"Direction\")\n\t\t\treturn new Direction();\n\t\t\n\t\tif(name == \"Gear\")\n\t\t\treturn new Gear();\n\t\t\n\t\tif(name == \"Pause\")\n\t\t\treturn new Pause();\n\t\t\n\t\treturn null;\n\t\t\n\t}",
"@Nonnull\n public DeviceAppManagementRequest buildRequest(@Nonnull final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {\n return new com.microsoft.graph.requests.DeviceAppManagementRequest(getRequestUrl(), getClient(), requestOptions);\n }",
"public CPRCommand()\r\n {\r\n }",
"Device createDevice();",
"public SatelCommandBase(byte commandCode, byte[] payload) {\n super(commandCode, payload);\n }",
"public CardCommandAPDU(byte cla, byte ins, byte p1, byte p2, byte[] data, byte le) {\n\tthis(cla, ins, p1, p2, data, le & 0xFF);\n }",
"public void instantiateCommand() throws SystemException {\r\n\t\t// Check the definitation.\r\n\t\tdefinitionCheck();\r\n\t\t\r\n\t\t// Create the fresh instance.\r\n\t\tcommandInstance = new ReadWriteableAttributes();\r\n\t}",
"public DeviceData() {\r\n this.rtAddress = 0;\r\n this.subAddress = 0;\r\n this.txRx = 0;\r\n this.data = new short[32];\r\n }",
"public CM_DUEL_REQUEST(final int opcode) {\r\n\t\tsuper(opcode);\r\n\t}",
"public DataRequest(DataRequest source) {\n\t\tthis();\n\t\tcopy(source);\n\t}",
"public DataRequest() {\n\t\tfilters = new ArrayList<FilteringRule>();\n\t\tsort_by = new ArrayList<SortingRule>();\n\t}",
"TransferInitiateResponse initiateConsumerRequest(DataRequest dataRequest);",
"public PCDataDirectiveIfc createPCDataDirective ();",
"Command createCommand() throws ServiceException, AuthException;",
"public byte[] marshall() {\r\n if (marshall == null)\r\n marshall = Utilities.marshall(COMMAND, deviceToken, payload);\r\n return marshall.clone();\r\n }",
"String createCommand(String commandType, AttributeList properties);",
"public Request(){\n\t\tthis(null, null, null);\n\t}",
"public CalccustoRequest()\r\n\t{\r\n\t}",
"public CardCommandAPDU(byte cla, byte ins, byte p1, byte p2, byte[] data, short le) {\n\tthis(cla, ins, p1, p2, data, le & 0xFFFF);\n }",
"Builder forDevice(DeviceId deviceId);",
"public NewCommand(ApplicationData data) {\n super(\"NewCommand\");\n this.data = data;\n // configure log4j using resource URL APF-548\n DOMConfigurator.configure(getClass().getResource(\"/META-INF/log4j.xml\"));\n log = getLogger(NewCommand.class);\n\n }",
"@Deprecated\n public static RequestRejectReleasePdu createRequestPdu(int sourceId, int messageId, int multicastGroupAddress) {\n return new RequestRejectReleasePdu(Request_PDU, sourceId, messageId, multicastGroupAddress);\n }",
"public ISOCommandAPDU(byte classByte, byte instruction, byte p1, byte p2) {\n this(4, classByte, instruction, p1, p2, null, -1); // size = header length\n }",
"public Packet createPacket() {\n\t\treturn new Packet((ByteBuffer) buffer.flip());\n\t}",
"private Command(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"public static DeviceCommandResponse copy(IDeviceCommandResponse input) throws SiteWhereException {\n\tDeviceCommandResponse result = new DeviceCommandResponse();\n\tDeviceEvent.copy(input, result);\n\tresult.setOriginatingEventId(input.getOriginatingEventId());\n\tresult.setResponseEventId(input.getResponseEventId());\n\tresult.setResponse(input.getResponse());\n\treturn result;\n }",
"public SmsSendRequestDto() {\n super();\n }",
"private Command(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"IDbCommand createCommand();",
"Command createCommandWith(CommandCreator creator);",
"public Device build() {\n return new Device(name, active);\n }",
"Commands createCommands();",
"private Command createPushCommand() {\n\t\treturn new PushCommand();\n\t}",
"public CardCommandAPDU(byte cla, byte ins, byte p1, byte p2, byte[] data) {\n\tthis(cla, ins, p1, p2);\n\tthis.data = data;\n\n\tsetLC(data.length);\n }",
"public ISOCommandAPDU(byte classByte, byte instruction, byte p1, byte p2, byte[] data, int le) {\n this(data.length+5+4, classByte, instruction, p1, p2, data, le); // 5 = max overhead for coding data; 4 = header bytes\n }",
"public RPCRequest()\n\t{\n\t\tsuper();\n\t}",
"public SingleRequest<?> create() {\n return new SingleRequest<>();\n }",
"public CardCommandAPDU(byte cla, byte ins, byte p1, byte p2) {\n\theader[0] = cla;\n\theader[1] = ins;\n\theader[2] = p1;\n\theader[3] = p2;\n }",
"private Command() {\n initFields();\n }",
"private ReductionPublisherRequestCommand() { super(null); }",
"static CRBase create(final boolean request, final byte[] data, final int offset)\n\t\tthrows KNXFormatException\n\t{\n\t\tif (data.length - offset < 2)\n\t\t\tthrow new KNXFormatException(\"buffer too short for \" + (request ? \"CRI\" : \"CRD\"));\n\t\tfinal int type = data[offset + 1] & 0xff;\n\t\tif (type == KNXnetIPTunnel.TUNNEL_CONNECTION)\n\t\t\treturn request ? (CRBase) new TunnelCRI(data, offset) : new TunnelCRD(data, offset);\n\t\tif (type != KNXnetIPDevMgmt.DEVICE_MGMT_CONNECTION)\n\t\t\tlogger.warn(\"unknown connection type 0x\" + Integer.toHexString(type)\n\t\t\t\t\t+ \", create default CRI/CRD\");\n\t\treturn request ? (CRBase) new CRI(data, offset) : new CRD(data, offset);\n\t}",
"protected DiameterClientRequest newRequest(ChargingConstants.CcRecordType type) {\n\t\tlong accountingRecordNumber = getRecordNumber();\n\t\tDiameterClientRequest request = _client.newAuthRequest(ChargingConstants.COMMAND_CC, true);\n\n\t\tDiameterAVP avp = new DiameterAVP(ChargingUtils.getCcRequestTypeAVP());\n\t\tavp.setValue(EnumeratedFormat.toEnumerated(type.getValue()), false);\n\t\trequest.addDiameterAVP(avp);\n\n\t\tavp = new DiameterAVP(ChargingUtils.getCcRequestNumberAVP());\n\t\tavp.setValue(Unsigned32Format.toUnsigned32(accountingRecordNumber), false);\n\t\trequest.addDiameterAVP(avp);\n\n\t\treturn request;\n\t}",
"public CardRequest() {\r\n card = new MSRData(); // an empty one\r\n }",
"Device_Resource createDevice_Resource();",
"private Builder() {\n super(TransferSerialMessage.SCHEMA$);\n }",
"public ISOCommandAPDU(int size, byte classByte, byte instruction, byte p1, byte p2, byte[] data, int le) {\n super(size);\n // initialize properly for encoding\n this.le = le;\n this.lc = (data == null ? 0 : data.length);\n // encode\n byte[] body = this.encode(data);\n int L = (body == null ? 0 : body.length);\n // fill buffer\n this.apdu_buffer[CLASS] = classByte;\n this.apdu_buffer[INSTRUCTION] = instruction;\n this.apdu_buffer[P1] = p1;\n this.apdu_buffer[P2] = p2;\n if (body != null)\n System.arraycopy(body, 0, this.apdu_buffer, 4, L);\n\n this.apdu_length = 4+L;\n }",
"public ISOCommandAPDU(int size, byte classByte, byte instruction, byte p1, byte p2) {\n this(size, classByte, instruction, p1, p2, null, -1);\n }",
"public Command(byte[] data, long timestamp, int sid, int size) throws IOException {\n this.timestamp = timestamp;\n this.sid = sid;\n this.setSize(size);\n DataInputStream in = new DataInputStream(new ByteArrayInputStream(data));\n int magic = in.readUnsignedByte();\n if (magic != TTMAGICNUM) throw new IOException(\"Wrong magic header.\");\n command = in.readUnsignedByte();\n switch (command) {\n case TTCMDMISC:\n parseCommandMisc(in);\n break;\n case TTCMDPUT:\n name = \"put\";\n parseCommandPut(in);\n break;\n case TTCMDPUTKEEP:\n name = \"putkeep\";\n parseCommandPut(in);\n break;\n default:\n if (LOG.isDebugEnabled()) LOG.debug(\"constructor: Found unhandled command -> 0x\" + Integer.toHexString(command));\n break;\n }\n in.close();\n in = null;\n }",
"public <T extends IRequestParamsData> JsonRpcRequest<T> createRequestPackage(\n T requestData,\n String method,\n String uuid\n ) throws TrustlyValidationException {\n\n JsonRpcRequest<T> rpcRequest = this.objectFactory.create(requestData, method, uuid);\n JsonRpcRequest<T> signedRpcRequest = this.signer.sign(rpcRequest);\n\n this.validator.validate(signedRpcRequest);\n\n return signedRpcRequest;\n }",
"public static ProtocolMessage createRequest(String parameter) {\n return new ProtocolMessage(ProtocolMessage.MessageType.REQUEST,\n parameter);\n }",
"public Command() {\n }",
"public static DebugCommand makeCommand(XmlReader.Element element) {\n String text = element.getAttribute(\"message\");\n return new DebugCommand(text);\n }",
"public static PciRequestWrapper constructRequest(VirtualControlLoopEvent onset, ControlLoopOperation operation,\n Policy policy) {\n\n /* Construct an SDNR request using pci Model */\n\n /*\n * The actual pci request is placed in a wrapper used to send through dmaap. The\n * current version is 2.0 as of R1.\n */\n PciRequestWrapper dmaapRequest = new PciRequestWrapper();\n dmaapRequest.setVersion(\"1.0\");\n dmaapRequest.setCorrelationId(onset.getRequestId() + \"-\" + operation.getSubRequestId());\n dmaapRequest.setRpcName(policy.getRecipe().toLowerCase());\n dmaapRequest.setType(\"request\");\n\n /* This is the actual request that is placed in the dmaap wrapper. */\n final PciRequest sdnrRequest = new PciRequest();\n\n /* The common header is a required field for all SDNR requests. */\n PciCommonHeader requestCommonHeader = new PciCommonHeader();\n requestCommonHeader.setRequestId(onset.getRequestId());\n requestCommonHeader.setSubRequestId(operation.getSubRequestId());\n\n sdnrRequest.setCommonHeader(requestCommonHeader);\n sdnrRequest.setPayload(onset.getPayload());\n\n /*\n * An action is required for all SDNR requests, this will be the recipe\n * specified in the policy.\n */\n sdnrRequest.setAction(policy.getRecipe());\n\n /*\n * Once the pci request is constructed, add it into the body of the dmaap\n * wrapper.\n */\n dmaapRequest.setBody(sdnrRequest);\n logger.info(\"SDNR Request to be sent is {}\", dmaapRequest);\n\n /* Return the request to be sent through dmaap. */\n return dmaapRequest;\n }",
"public Builder setCommand(int value) {\n bitField0_ |= 0x00000004;\n command_ = value;\n onChanged();\n return this;\n }",
"public static DataModelDescriptorBuilder of(Class<?> dataModelClass) {\n return new DataModelDescriptorBuilder(dataModelClass);\n }",
"public NewDocumentRequestDto() {\n }",
"public DataModelDescriptorBuilder(Class<?> dataModelClass) {\n this.dataModelClass = dataModelClass;\n }",
"public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}",
"public void makeRequest() {\n Request newRequest = new Request();\n\n if (mProduct == null) {\n Toast.makeText(getContext(), \"BAD\", Toast.LENGTH_LONG).show();\n return;\n }\n\n newRequest.setClient(ParseUser.getCurrentUser());\n newRequest.setProduct(mProduct);\n newRequest.setBeaut(mBeaut);\n\n Date dateTime = new Date(selectedAppointmet.appDate.getTimeInMillis());\n newRequest.setDateTime(dateTime);\n // TODO: uncomment below line when dataset is clean and products have lengths\n// newRequest.setLength(mProduct.getLength());\n newRequest.setLength(1);\n newRequest.setSeat(selectedAppointmet.seatId);\n newRequest.setDescription(rComments.getText().toString());\n\n sendRequest(newRequest);\n }",
"protected CardCommandAPDU() {\n }",
"public PCDataDirectiveIfc createPCDataDirective ( String pcData );",
"static public QRScanProviderVolunteerRequest create(String serializedData) {\n Gson gson = new Gson();\n return gson.fromJson(serializedData, QRScanProviderVolunteerRequest.class);\n }",
"public interface IDeviceSpecificationCreateRequest {\r\n\r\n /**\r\n * Get name that describes specification.\r\n * \r\n * @return\r\n */\r\n public String getName();\r\n\r\n /**\r\n * Get id for asset module.\r\n * \r\n * @return\r\n */\r\n public String getAssetModuleId();\r\n\r\n /**\r\n * Get id for specification asset type.\r\n * \r\n * @return\r\n */\r\n public String getAssetId();\r\n\r\n /**\r\n * Allows the specification id to be specified. (Optional)\r\n * \r\n * @return\r\n */\r\n public String getToken();\r\n\r\n /**\r\n * Get container policy.\r\n * \r\n * @return\r\n */\r\n public DeviceContainerPolicy getContainerPolicy();\r\n\r\n /**\r\n * Get {@link IDeviceElementSchema} for locating nested devices.\r\n * \r\n * @return\r\n */\r\n public IDeviceElementSchema getDeviceElementSchema();\r\n\r\n /**\r\n * Get metadata values.\r\n * \r\n * @return\r\n */\r\n public Map<String, String> getMetadata();\r\n}",
"public MessageRequest() {\n\t}",
"public CardCommandAPDU(byte[] commandAPDU) {\n\tSystem.arraycopy(commandAPDU, 0, header, 0, 4);\n\tsetBody(ByteUtils.copy(commandAPDU, 4, commandAPDU.length - 4));\n }",
"@Override\n\tpublic Receive createReceive() {\n\t\treturn receiveBuilder()\n\t\t\t\t.match(RequestTrackDevice.class, this::onTrackDevice)\n\t\t\t\t.match(Terminated.class, this::onTerminate)\n\t\t\t\t.match(RequestDeviceList.class, this::onDeviceList)\n\t\t\t\t.match(RequestAllTemperatures.class, this::onAllTemperatures)\n\t\t\t\t.build();\n\t}",
"@Override public EntityCommand createFromParcel(Parcel source) { return null; }",
"public com.rpg.framework.database.Protocol.ActionCommand.Builder addDataBuilder() {\n return getDataFieldBuilder().addBuilder(\n com.rpg.framework.database.Protocol.ActionCommand.getDefaultInstance());\n }",
"public Device() {\n }",
"public Task getInstance(TargetTransportPort port, Command command)\n throws IllegalRequestException\n {\n switch (command.getCommandDescriptorBlock().getOperationCode())\n {\n case ModeSense6.OPERATION_CODE :\n case ModeSense10.OPERATION_CODE :\n return new ModeSenseTask(port, command, modePageRegistry, inquiryDataRegistry);\n case TestUnitReady.OPERATION_CODE :\n return new TestUnitReadyTask(port, command, modePageRegistry, inquiryDataRegistry);\n case Inquiry.OPERATION_CODE :\n return new InquiryTask(port, command, modePageRegistry, inquiryDataRegistry);\n }\n\n Class<? extends BufferedTask> taskClass =\n tasks.get(command.getCommandDescriptorBlock().getClass());\n\n if (taskClass != null)\n {\n try\n {\n return taskClass.newInstance().load(buffer, blockLength, port, command,\n modePageRegistry, inquiryDataRegistry);\n }\n catch (InstantiationException e)\n {\n throw new RuntimeException(\"Unable to instantiate class with default constructor\"\n + taskClass.getName(), e);\n }\n catch (IllegalAccessException e)\n {\n throw new RuntimeException(\"Unable to instantiate class with default constructor\"\n + taskClass.getName(), e);\n }\n }\n else\n {\n throw new InvalidCommandOperationCodeException();\n }\n }",
"public static DeviceIdentifierBuilder builder() {\n return new DeviceIdentifierBuilder();\n }",
"TransferInitiateResponse initiateProviderRequest(DataRequest dataRequest);",
"public Builder addCommandBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n ensureCommandIsMutable();\n command_.add(value);\n onChanged();\n return this;\n }",
"public Request() {\n }",
"public CardCommandAPDU(byte cla, byte ins, byte p1, byte p2, byte le) {\n\tthis(cla, ins, p1, p2, le & 0xFF);\n }",
"protected VmCommand(Guid commandId) {\n super(commandId);\n }",
"public Request() {\n this.setRequestId(newRequestId());\n this.setRequestValue(0.0);\n this.date = new Date();\n }",
"private void initDevice() {\n device = new Device();\n device.setManufacture(new Manufacture());\n device.setInput(new Input());\n device.setPrice(new Price());\n device.getPrice().setCurrency(\"usd\");\n device.setCritical(DeviceCritical.FALSE);\n }",
"protected abstract D createData();"
]
| [
"0.62072927",
"0.6051921",
"0.5800997",
"0.57831687",
"0.5750529",
"0.5592599",
"0.5556742",
"0.5534492",
"0.5508867",
"0.5464168",
"0.5456832",
"0.54491067",
"0.54284644",
"0.5422266",
"0.5411196",
"0.53871125",
"0.5342625",
"0.5333916",
"0.5333612",
"0.52923733",
"0.52850634",
"0.52849984",
"0.5266633",
"0.52546",
"0.522347",
"0.51859367",
"0.518432",
"0.51832974",
"0.51797974",
"0.5166249",
"0.5154644",
"0.51464653",
"0.51355606",
"0.512363",
"0.5105232",
"0.51018095",
"0.50734025",
"0.50694895",
"0.50687236",
"0.5057964",
"0.5056404",
"0.5049324",
"0.5031313",
"0.5027149",
"0.50175256",
"0.50135213",
"0.49950284",
"0.49946713",
"0.49837124",
"0.4982152",
"0.49787694",
"0.49699265",
"0.49696773",
"0.49654114",
"0.49634635",
"0.49606308",
"0.49487808",
"0.49462456",
"0.4946133",
"0.49460477",
"0.49322754",
"0.4929415",
"0.49101588",
"0.49065226",
"0.4900585",
"0.4891497",
"0.48892573",
"0.4886122",
"0.4883311",
"0.48723906",
"0.48712674",
"0.48665142",
"0.48627916",
"0.4862123",
"0.4852203",
"0.48466423",
"0.48452908",
"0.48406637",
"0.48406148",
"0.48397297",
"0.4839696",
"0.48382223",
"0.48355275",
"0.48311922",
"0.48215422",
"0.4818774",
"0.48181924",
"0.48178732",
"0.48145837",
"0.48078218",
"0.4805541",
"0.4802441",
"0.48015833",
"0.479273",
"0.47871813",
"0.47850665",
"0.4781815",
"0.47814643",
"0.47788453",
"0.47783512"
]
| 0.7981308 | 0 |
Creates a new TaggedInputSplit. | public TaggedInputSplit(InputSplit inputSplit, Configuration conf, Class<? extends InputFormat> inputFormatClass,
Class<? extends AIngleMapper> mapperClass, Schema inputSchema) {
this.inputSplitClass = inputSplit.getClass();
this.inputSplit = inputSplit;
this.conf = conf;
this.inputFormatClass = inputFormatClass;
this.mapperClass = mapperClass;
this.schema = inputSchema;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InputSplit getInputSplit() {\n byte[] serializedSplit = state.getSerializedInputSplit();\n String splitClassName = state.getInputSplitClassName();\n return SerializationUtil.deserializeFromByteArray(\n getConfiguration(), InputSplit.class, splitClassName, serializedSplit, null);\n }",
"public StreamInputSplit() {\n // No-op\n }",
"public InputSplit getInputSplit() {\n return inputSplit;\n }",
"public GBTSplit() {\n this(null, null, null);\n }",
"public static StringSplit newSplit(int start) {\n return new StringSplit(start, END_OF_LINE, WordCase.NO_CASE, false);\n }",
"public static StringArraySplitterBuilder newSplitter() {\n splitter = new StringArraySplit();\n return INSTANCE;\n }",
"@Override\n protected TokenStreamComponents createComponents(String fieldName, Reader reader) {\n KiteTokenizer source = new KiteTokenizer(reader);\n return new TokenStreamComponents(source, new KiteTokenFilter(source));\n }",
"public Split(String split) {\r\n\t\tthis.splitName.setValue(split);\r\n\t\tImage img = new Image(new File(Config.FLAG).toURI().toString(), 30.0, 30.0, false, false);\r\n\t\tImageView imgV = new ImageView(img);\r\n\t\tthis.logo.setValue(imgV);\r\n\t}",
"public static StringSplit newSplit(int start, int end) {\n return new StringSplit(start, end, WordCase.NO_CASE, false);\n }",
"public SplitNode splitAbout(int newSplit, int elementsPosition) {\n\t\tthrow new UnsupportedOperationException(\"should not implement\");\n\t}",
"public static DecisionOperator<IntVar> split() {\n return DecisionOperator.int_split;\n }",
"@Override\n\tpublic RecordReader<NullWritable, Text> createRecordReader(InputSplit split, TaskAttemptContext context)\n\t\t\tthrows IOException {\n\t\tCustomRecordReader reader = new CustomRecordReader();\n\t\t\n\t\ttry {\n\t\t\treader.initialize(split, context);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn reader;\n\t}",
"public Tokenizer(Reader input) {\n this(input, false);\n }",
"public final EObject ruleSplitOperator() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n EObject lv_parameter_2_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:924:28: ( (otherlv_0= 'split' otherlv_1= '(' ( (lv_parameter_2_0= ruleStreamOperatorParameter ) ) otherlv_3= ')' ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:925:1: (otherlv_0= 'split' otherlv_1= '(' ( (lv_parameter_2_0= ruleStreamOperatorParameter ) ) otherlv_3= ')' )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:925:1: (otherlv_0= 'split' otherlv_1= '(' ( (lv_parameter_2_0= ruleStreamOperatorParameter ) ) otherlv_3= ')' )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:925:3: otherlv_0= 'split' otherlv_1= '(' ( (lv_parameter_2_0= ruleStreamOperatorParameter ) ) otherlv_3= ')'\n {\n otherlv_0=(Token)match(input,27,FOLLOW_27_in_ruleSplitOperator2022); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getSplitOperatorAccess().getSplitKeyword_0());\n \n otherlv_1=(Token)match(input,21,FOLLOW_21_in_ruleSplitOperator2034); \n\n \tnewLeafNode(otherlv_1, grammarAccess.getSplitOperatorAccess().getLeftParenthesisKeyword_1());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:933:1: ( (lv_parameter_2_0= ruleStreamOperatorParameter ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:934:1: (lv_parameter_2_0= ruleStreamOperatorParameter )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:934:1: (lv_parameter_2_0= ruleStreamOperatorParameter )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:935:3: lv_parameter_2_0= ruleStreamOperatorParameter\n {\n \n \t newCompositeNode(grammarAccess.getSplitOperatorAccess().getParameterStreamOperatorParameterParserRuleCall_2_0()); \n \t \n pushFollow(FOLLOW_ruleStreamOperatorParameter_in_ruleSplitOperator2055);\n lv_parameter_2_0=ruleStreamOperatorParameter();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getSplitOperatorRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"parameter\",\n \t\tlv_parameter_2_0, \n \t\t\"StreamOperatorParameter\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,22,FOLLOW_22_in_ruleSplitOperator2067); \n\n \tnewLeafNode(otherlv_3, grammarAccess.getSplitOperatorAccess().getRightParenthesisKeyword_3());\n \n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public TagParser(String input, TaskList lines) {\n this.input = input;\n this.lines = lines;\n }",
"public static StringSplit newSplit(int start, WordCase wordCase) {\n return new StringSplit(start, END_OF_LINE, wordCase, false);\n }",
"abstract E createSplit(RandomAccessFile raf, long length) throws IOException;",
"public static StringSplit newSplit(int start, boolean trimmed) {\n return new StringSplit(start, END_OF_LINE, WordCase.NO_CASE, trimmed);\n }",
"@Override\r\n\tpublic void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException {\n\t}",
"abstract Node split();",
"abstract Node split();",
"public PravegaSplit(String readerGroupName, int subtaskId) {\n this.readerGroupName = readerGroupName;\n this.subtaskId = subtaskId;\n }",
"@Override\n public void createSplitter(final int orientation, @Nullable final FileEditorWindow window) {\n if (window != null) {\n window.split(orientation, true, null, false);\n }\n // otherwise we'll split the current window, if any\n else {\n final FileEditorWindow currentWindow = getSplitters().getCurrentWindow();\n if (currentWindow != null) {\n currentWindow.split(orientation, true, null, false);\n }\n }\n }",
"private static String[] lineSplit(String input) {\r\n String[] tokens = input.split(delimiter);\r\n return tokens;\r\n }",
"public SignalMediaJSONParser(DocumentSplit split, Parameters p) throws IOException {\n super(split, p);\n this.reader = DocumentStreamParser.getBufferedReader(split);\n }",
"private IntSplitInfo split() {\n\t\tint midKey = entries.getMidKey();\n\t\tIntInternalNode newNode = new IntInternalNode(k, entries.split());\n\n\t\t// // fix sibling pointers\n\t\t// newNode.nextNode = nextNode;\n\t\t// nextNode = newNode;\n\n\t\treturn new IntSplitInfo(this, midKey, newNode);\n\t}",
"public JsonParser createParser(DataInput in)\n/* */ throws IOException\n/* */ {\n/* 920 */ IOContext ctxt = _createContext(in, false);\n/* 921 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }",
"public SplitFile() {\n\t}",
"public WordTokenizer(Reader input, String[] separatorTokens) {\r\n this(input, separatorTokens, false, true);\r\n }",
"public Split(String split, String logoPath) {\r\n\t\tthis.logoPath = logoPath;\r\n\t\tthis.splitName.setValue(split);\r\n\t\tImage img = new Image(new File(logoPath).toURI().toString(), 30.0, 30.0, false, false);\r\n\t\tImageView imgV = new ImageView(img);\r\n\t\tthis.logo.setValue(imgV);\r\n\t}",
"public static StringSplit newSplit(int start, int end, WordCase wordCase) {\n return new StringSplit(start, end, wordCase, false);\n }",
"private void createNumPartitions(Integer[] splits, FeatureField featFld, \n \t\tList<Integer[]> newSplitList) {\n \t\tint min = (int)(featFld.getMin() + 0.01);\n \t\tint max = (int)(featFld.getMax() + 0.01);\n \t\tint binWidth = featFld.getBucketWidth();\n \tif (null == splits) {\n \t\t//first time\n \t\tfor (int split = min + binWidth ; split < max; split += binWidth) {\n \t\t\tInteger[] newSplits = new Integer[1];\n \t\t\tnewSplits[0] = split;\n \t\t\tnewSplitList.add(newSplits);\n \t\t\tcreateNumPartitions(newSplits, featFld,newSplitList);\n \t\t}\n \t} else {\n \t\t//create split based off last split that will contain one additinal split point\n \t\tint len = splits.length;\n \t\tif (len < featFld.getMaxSplit() -1) {\n\t \t\tfor (int split = splits[len -1] + binWidth; split < max; split += binWidth) {\n\t \t\t\tInteger[] newSplits = new Integer[len + 1];\n\t \t\t\tint i = 0;\n\t \t\t\tfor (; i < len; ++i) {\n\t \t\t\t\tnewSplits[i] = splits[i];\n\t \t\t\t}\n\t \t\t\tnewSplits[i] = split;\n\t \t\t\tnewSplitList.add(newSplits);\n\t \t\t\t\n\t \t\t\t//recurse to generate additional splits\n\t \t\t\tcreateNumPartitions(newSplits, featFld,newSplitList);\n\t \t\t}\n \t\t}\n \t}\n }",
"public abstract RecordReader<K , V> createRecordReader(InputSplit inputSplit) throws IOException, SfsFileDoesNotExistException;",
"public static StringSplit newSplit(int start, int end, boolean trimmed) {\n return new StringSplit(start, end, WordCase.NO_CASE, trimmed);\n }",
"public static StringSplit newSplit(int start, WordCase wordCase, boolean trimmed) {\n return new StringSplit(start, END_OF_LINE, wordCase, trimmed);\n }",
"@Override\n public RecordReader<NullWritable, Text> createRecordReader(\n InputSplit split, TaskAttemptContext context) throws IOException {\n\n if (!(split instanceof CombineFileSplit)) {\n throw new IllegalArgumentException(\"split must be a CombineFileSplit\");\n }\n return new CombineFileRecordReader<NullWritable, Text>((CombineFileSplit) split, context, WholeFileRecordReader.class);\n }",
"public static String splitTagContents(String source, String tagName, String splitRegex) {\n\t\tString regexBody = String.format(\"<(?<tagDefinition>%s[^<>]*)>[^<>]+((?<delimiter>%s)[^<>]+)+</%1$s>\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttagName, splitRegex);\n\t\tregexBody = Strings.getValidPatternOrFailAnyMatch(regexBody);\n\t\tif (!source.matches(String.format(\".*%s.*\",regexBody))) return source;\n\t\tString result = source;\n\t\tMatcher matcher = Pattern.compile(String.format(\"(?<tagToSplit>%s)\",regexBody)).matcher(source);\n\t\twhile (matcher.find()) {\n\t\t\tString sourceTag = matcher.group(\"tagToSplit\");\n\t\t\tString sourceTagDefinition = matcher.group(\"tagDefinition\");\n\t\t\tString splitDelimiter = matcher.group(\"delimiter\");\n\t\t\tString taggedDelimiter = String.format(\"</%s>%s<%s>\", tagName, splitDelimiter, sourceTagDefinition);\n\t\t\tresult = result.replace(sourceTag, sourceTag.replaceAll(splitDelimiter, taggedDelimiter));\n\t\t}\n\t\treturn result;\n\t}",
"Tag createTag();",
"public HopcroftTarjanSplitComponent() {\n\t\tsuper();\n\t\tvirtualEdges = new ArrayList<E>();\n\t}",
"Node split() {\r\n\r\n // to do the split operation\r\n // to get the correct child to promote to the internal node\r\n int from = key_num() / 2 + 1, to = key_num();\r\n InternalNode sibling = new InternalNode();\r\n sibling.keys.addAll(keys.subList(from, to));\r\n sibling.children.addAll(children.subList(from, to + 1));\r\n\r\n keys.subList(from - 1, to).clear();\r\n children.subList(from, to + 1).clear();\r\n\r\n return sibling;\r\n }",
"public static StringSplit newSplit(int start, int end, WordCase wordCase, boolean trimmed) {\n return new StringSplit(start, end, wordCase, trimmed);\n }",
"public InputParser(String sentence) {\n this.words = sentence.split(\" \");\n }",
"public OperationStFactory(String input, String oper) {\r\n\t\tthis.inputList = u.toInputList(input);\r\n\t\tthis.operator = u.toCharList(oper);\r\n\t}",
"INPUT createINPUT();",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n split = new javax.swing.JSplitPane();\n\n split.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(split, javax.swing.GroupLayout.DEFAULT_SIZE, 311, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(split, javax.swing.GroupLayout.DEFAULT_SIZE, 371, Short.MAX_VALUE)\n .addContainerGap())\n );\n }",
"public Tokenizer() {\n tokenInfos = new LinkedList<TokenInfo>();\n tokens = new LinkedList<Token>();\n\n }",
"public static TokenizerFactory<Word> factory()\n/* */ {\n/* 116 */ return new WhitespaceTokenizerFactory(false);\n/* */ }",
"public void addSplit(Split s)\n\t{\n\t\tsplits.add(s);\t\n\t}",
"@Override\n public SplitType getSplitType()\n {\n return new SplitType(SplitTypes.useDependencies, this.getDependency());\n }",
"public final EObject entryRuleSplitOperator() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleSplitOperator = null;\n\n\n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:913:2: (iv_ruleSplitOperator= ruleSplitOperator EOF )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:914:2: iv_ruleSplitOperator= ruleSplitOperator EOF\n {\n newCompositeNode(grammarAccess.getSplitOperatorRule()); \n pushFollow(FOLLOW_ruleSplitOperator_in_entryRuleSplitOperator1975);\n iv_ruleSplitOperator=ruleSplitOperator();\n\n state._fsp--;\n\n current =iv_ruleSplitOperator; \n match(input,EOF,FOLLOW_EOF_in_entryRuleSplitOperator1985); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public OpenNLPTokenizer() throws IOException {\n try (InputStream modelIn = File.getStreamFromResources(\"opennlp/SpanishPOS.bin\")) {\n openNLPTokenizerModel = new opennlp.tools.tokenize.TokenizerModel(modelIn);\n openNLPTokenizer = new TokenizerME(openNLPTokenizerModel);\n }\n }",
"@Override\n public BertTokenizer build() {\n if (doStripAccents == null) {\n doStripAccents = doLowerCase;\n }\n\n if (neverSplit == null) {\n neverSplit = Collections.emptySet();\n }\n\n return new BertJapaneseTokenizer(\n originalVocab,\n vocab,\n doLowerCase,\n doTokenizeCjKChars,\n doStripAccents,\n withSpecialTokens,\n maxSequenceLength,\n neverSplit\n );\n }",
"public Tags() {\n\t\t\n\t}",
"@Override\n\tpublic void initialize(InputSplit arg0, TaskAttemptContext arg1)\n\t\t\tthrows IOException, InterruptedException {\n\n\t}",
"@Override\n public JComponent createPane() {\n\n JSplitPane jSplitPane = new JSplitPane();\n\n jSplitPane.setLeftComponent(new JButton(\"左边按钮\"));\n jSplitPane.setRightComponent(new JButton(\"右边按钮\"));\n\n jSplitPane.setOneTouchExpandable(false);\n\n jSplitPane.setContinuousLayout(false);\n jSplitPane.setDividerLocation(150);\n\n// jPanel.add(jSplitPane);\n return jSplitPane;\n }",
"public abstract Tokenizer getTokenizer();",
"public Tokenizer(Reader input, boolean ignoreCase) {\n this.buffer = new ReaderBuffer(input);\n this.ignoreCase = ignoreCase;\n }",
"protected Tokenizer createPrefixTokenizer() {\n return new PrefixTokenizer();\n }",
"public InputSplit[] getSplits( JobConf job, int numSplits ) throws IOException\n {\n numSplits = numSplits == 0 ? 1 : numSplits;\n \n List<Map<String, String>> configs = getConfigs( job );\n JobConf[] jobConfs = getJobConfs( job, configs );\n InputFormat[] inputFormats = getInputFormats( jobConfs );\n int[] indexedSplits = new int[inputFormats.length];\n \n // if we need only a few, the return one for each\n if( numSplits <= inputFormats.length )\n {\n Arrays.fill( indexedSplits, 1 );\n return collapse( getSplits( inputFormats, jobConfs, indexedSplits ), configs );\n }\n \n // attempt to get splits proportionally sized per input format\n long[] inputSizes = getInputSizes( inputFormats, jobConfs );\n long totalSize = sum( inputSizes );\n \n for( int i = 0; i < inputSizes.length; i++ )\n indexedSplits[ i ] = (int) Math.ceil( numSplits * inputSizes[ i ] / totalSize );\n \n return collapse( getSplits( inputFormats, jobConfs, indexedSplits ), configs );\n }",
"private JSplitPane getButtonSplitPane() {\n\t\tif (buttonSplitPane == null) {\n\t\t\tbuttonSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,\n\t\t\t\t\tgetDirectoryPanel(), getFilePanel());\n\t\t\tbuttonSplitPane.setMinimumSize(new Dimension(50, 0));\n\t\t\tbuttonSplitPane.setDividerSize(0);\n\t\t\tbuttonSplitPane.setContinuousLayout(true);\n\t\t\tbuttonSplitPane.setDividerLocation(298);\n\t\t\tbuttonSplitPane.setEnabled(false);\n\t\t}\n\t\treturn buttonSplitPane;\n\t}",
"public void setSplitOrder(SplitOrder splitOrder) {\n this.splitOrder = splitOrder;\n }",
"int getSplitIndex();",
"public CharTokenizer() {\n this(\",\", \"\\n\");\n }",
"public Lex()\n {\n num_tags = Tags.num_tags;\n }",
"public abstract void split(Space s);",
"static void init(InputStream input) {\r\n reader = new BufferedReader(new InputStreamReader(input));\r\n tokenizer = new StringTokenizer(\"\");\r\n }",
"protected abstract void splitBAMs();",
"private void createPartitions() {\n \tfor (int attrOrd : splitAttrs) {\n \t\tFeatureField featFld = schema.findFieldByOrdinal(attrOrd);\n \t\tif (featFld.isInteger()) {\n \t\t\t//numerical\n \t\t\tList<Integer[]> splitList = new ArrayList<Integer[]>();\n \t\t\tInteger[] splits = null;\n \t\t\tcreateNumPartitions(splits, featFld, splitList);\n \t\t\t\n \t\t\t//collect all splits\n \t\t\tfor (Integer[] thisSplit : splitList) {\n \t\t\t\tsplitHandler.addIntSplits(attrOrd, thisSplit);\n \t\t\t}\n \t\t} else if (featFld.isCategorical()) {\n \t\t\t//categorical\n \t\t\tint numGroups = featFld.getMaxSplit();\n \t\t\tif (numGroups > maxCatAttrSplitGroups) {\n \t\t\t\tthrow new IllegalArgumentException(\n \t\t\t\t\t\"more than \" + maxCatAttrSplitGroups + \" split groups not allwed for categorical attr\");\n \t\t\t}\n \t\t\t\n \t\t\t//try all group count from 2 to max\n \t\t\tList<List<List<String>>> finalSplitList = new ArrayList<List<List<String>>>();\n \t\t\tfor (int gr = 2; gr <= numGroups; ++gr) {\n \t\t\t\tLOG.debug(\"num of split sets:\" + gr);\n \t\t\t\tList<List<List<String>>> splitList = new ArrayList<List<List<String>>>();\n \t\t\t\tcreateCatPartitions(splitList, featFld.getCardinality(), 0, gr);\n \t\t\t\tfinalSplitList.addAll(splitList);\n \t\t\t}\n \t\t\t\n \t\t\t//collect all splits\n \t\t\tfor (List<List<String>> splitSets : finalSplitList) {\n \t\t\t\tsplitHandler.addCategoricalSplits(attrOrd, splitSets);\n \t\t\t}\n \t\t\t\n \t\t}\n \t}\n }",
"private JSplitPane getSplMain() {\r\n\t\tif (splMain == null) {\r\n\t\t\tsplMain = new JSplitPane();\r\n\t\t\tsplMain.setOrientation(JSplitPane.VERTICAL_SPLIT);\r\n\t\t\tsplMain.setBottomComponent(getTxtInput());\r\n\t\t\tsplMain.setTopComponent(getScrMessage());\r\n\t\t\tsplMain.setDividerLocation(100);\r\n\t\t}\r\n\t\treturn splMain;\r\n\t}",
"public RingFactoryTokenizer() {\n this(new BufferedReader(new InputStreamReader(System.in,Charset.forName(\"UTF8\"))));\n }",
"@Override\n protected List<IElementParser<ShapeImpl>> createParserList() {\n List<IElementParser<ShapeImpl>> result = new ArrayList<>();\n result.add(new SubElementPolylineParser());\n result.add(new SubElementClothoidParser());\n result.add(new SubElementNurbsParser());\n return result;\n }",
"public JsonParser createParser(InputStream in)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 809 */ IOContext ctxt = _createContext(in, false);\n/* 810 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }",
"static void init(InputStream input) {\r\n\r\n reader = new BufferedReader(new InputStreamReader(input));\r\n\r\n tokenizer = new StringTokenizer(\"\");\r\n\r\n }",
"@Override\n protected HtmlInsertingFilterParser createHtmlInsertingFilterParser(DynamoHttpServletRequest pRequest,\n ServletOutputStream pOutputStream) {\n return new StoreHtmlInsertingFilterParser(pOutputStream, pRequest, getEventQueueForRequest(pRequest),\n getHtmlInserterFactoryForRequest(pRequest));\n }",
"public OtherTokenizer() {\n super();\n }",
"static void init(InputStream input) {\n reader = new BufferedReader(new InputStreamReader(input));\n tokenizer = new StringTokenizer(\"\");\n }",
"static void init(InputStream input) {\r\n reader = new BufferedReader(\r\n new InputStreamReader(input) );\r\n tokenizer = new StringTokenizer(\"\");\r\n }",
"static void init(InputStream input) {\r\n reader = new BufferedReader(\r\n new InputStreamReader(input) );\r\n tokenizer = new StringTokenizer(\"\");\r\n }",
"public List<Split> getSplits() {\n return splits;\n }",
"public Tag() {\n\t}",
"public Tag() {\n\t}",
"public SplitPolicyGeneralizedHyperplane() {\n }",
"private void initializeSplitPane() {\n\t\tthis.splitPane = new JSplitPane();\n\t\tthis.splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);\n\t\tthis.splitPane.setDividerLocation(this.screenDimensions.height / 2);\n\t\tthis.getContentPane().add(this.splitPane, BorderLayout.CENTER);\n\t}",
"public PosTagger() {\n\t\ttry {\n\t\t\t//Load pos model only if it has not been loaded before\n\t\t\tif (posModel == null) {\n\t\t\t\tInputStream modelIn = PosTagger.class\n\t\t\t\t\t\t.getResourceAsStream(POSTAGGING_MODEL_PATH);\n\t\t\t\tposModel = new POSModel(modelIn);\n\t\t\t\tmodelIn.close();\n\t\t\t}\n\t\t\t//Load multiword model only if it has not been loaded before\n\t\t\tif (multiwordModel == null) {\n\t\t\t\tInputStream modelIn = PosTagger.class\n\t\t\t\t\t\t.getResourceAsStream(MULTIWORD_MODEL_PATH);\n\t\t\t\tmultiwordModel = new POSModel(modelIn);\n\t\t\t\tmodelIn.close();\n\t\t\t}\n\t\t\t//set the instances for both tagging tools\n\t\t\tpostagger = new POSTaggerME(posModel);\n\t\t\tmultiwordTagger = new POSTaggerME(multiwordModel);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected Splitter(Collection<SampleDescriptor> samples) {\n this.samples = new ArrayList<SampleDescriptor>(samples);\n this.setup();\n }",
"private void createDelimiterPart() {\n\t\t//------------------------------------------------\n\t\t// Delimiter Label & Combo\n\t\t//------------------------------------------------\n\t\tLabel delimiterLabel = new Label(generalSettingsGroup, SWT.NONE);\n\t\tdelimiterLabel.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false, 1, 1));\n\t\tdelimiterLabel.setText(\"Result Delimiter:\");\n\t\t\n\t\tdelimiterDeco = new ControlDecoration(delimiterLabel, SWT.LEFT | SWT.TOP);\n\t\tdelimiterDeco.setImage(SWTResourceManager.getImage(GeneralSettingsGroup.class, \"/org/eclipse/jface/fieldassist/images/info_ovr.gif\"));\n\t\tdelimiterDeco.setDescriptionText(\"Choose the delimiter used in the result file.\");\n\t\t\n\t\tdelimiterCombo = new Combo(generalSettingsGroup, SWT.NONE);\n\t\tdelimiterCombo.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 2, 1));\n\t\tdelimiterCombo.setItems(delimiterMap.keySet().toArray(new String[delimiterMap.size()]));\n\t\tdelimiterCombo.select(1);\n\t\t\n\t\tRegexCompilableValidator delimiterValidator = \n\t\t\t\tnew RegexCompilableValidator(delimiterLabel, SWT.BOTTOM | SWT.LEFT) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic String getStringToValidate() {\n\t\t\t\t\t\treturn delimiterCombo.getText();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t\n\t\tdelimiterCombo.addModifyListener(delimiterValidator);\n\t\tdelimiterValidator.setTag(\"ALWAYS\");\n\t\tCSVComparatorGUI.getValidatorEngine().addValidator(delimiterValidator);\n\t}",
"P getSplitPoint();",
"static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }",
"static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }",
"static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }",
"static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }",
"static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }",
"private void splitState( State state, int i, State split, List<State> result)\n {\n if ( split == null)\n {\n State v1 = copy( state);\n v1.stackOps[ i] = nullShift;\n result.add( v1);\n }\n \n State v2 = copy( state);\n v2.stackOps[ i-1] = nullShift;\n result.add( v2);\n }",
"private PLPParser makeParser(String input) throws LexicalException {\n\t\t\tshow(input); //Display the input \n\t\t\tPLPScanner scanner = new PLPScanner(input).scan(); //Create a Scanner and initialize it\n\t\t\tshow(scanner); //Display the Scanner\n\t\t\tPLPParser parser = new PLPParser(scanner);\n\t\t\treturn parser;\n\t\t}",
"Node split() {\r\n LeafNode Sibling = new LeafNode();\r\n int index = (branchingFactor + 1) / 2;\r\n int to = key_num();\r\n Sibling.keys.addAll(keys.subList(index, to));\r\n Sibling.values.addAll(values.subList(index, to));\r\n\r\n keys.subList(index, to).clear();\r\n values.subList(index, to).clear();\r\n\r\n\r\n // to make connections between the old node and the new node\r\n Sibling.next = next;\r\n Sibling.previous = this;\r\n // the current's next may be null so to check on that\r\n if (next != null) {\r\n next.previous = Sibling;\r\n }\r\n next = Sibling;\r\n\r\n return Sibling;\r\n }",
"public static ElementInsertionList create()\n {\n return new ElementInsertionList();\n }",
"static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }",
"public PartOfSpeechTagger newPartOfSpeechTagger( String className )\r\n\t{\r\n\t\tPartOfSpeechTagger partOfSpeechTagger\t= null;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tpartOfSpeechTagger\t=\r\n\t\t\t\t(PartOfSpeechTagger)Class.forName(\r\n\t\t\t\t\tclassName ).newInstance();\r\n\t\t}\r\n\t\tcatch ( Exception e )\r\n\t\t{\r\n\t\t\tString fixedClassName\t=\r\n\t\t\t\t(String)taggerClassMap.get( className );\r\n\r\n\t\t\tif ( fixedClassName != null )\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tpartOfSpeechTagger\t=\r\n\t\t\t\t\t\t(PartOfSpeechTagger)Class.forName(\r\n\t\t\t\t\t\t\tfixedClassName ).newInstance();\r\n\t\t\t\t}\r\n\t\t\t\tcatch ( Exception e2 )\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.err.println(\r\n\t\t\t\t\t\t\"Unable to create part of speech tagger of class \" +\r\n\t\t\t\t\t\tfixedClassName + \", using trigram tagger.\" );\r\n\r\n\t\t\t\t\tpartOfSpeechTagger\t= new TrigramTagger();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.err.println(\r\n\t\t\t\t\t\"Unable to create part of speech tagger of class \" +\r\n\t\t\t\t\tclassName + \", using trigram tagger.\" );\r\n\r\n\t\t\t\tpartOfSpeechTagger\t= new TrigramTagger();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn partOfSpeechTagger;\r\n\t}",
"Object create(InputSource is) throws IOException, SAXException, ParserConfigurationException;",
"public static JSplitPane getSplitPane()\r\n {\r\n\treturn splitpn;\r\n }"
]
| [
"0.6347369",
"0.6045722",
"0.597738",
"0.57186675",
"0.56142545",
"0.5527204",
"0.53783673",
"0.53633815",
"0.53486127",
"0.528937",
"0.5206572",
"0.5152922",
"0.5143335",
"0.51209205",
"0.5114601",
"0.505259",
"0.502995",
"0.50256187",
"0.5022088",
"0.50080043",
"0.50080043",
"0.49830493",
"0.49798805",
"0.49549133",
"0.49510634",
"0.4930581",
"0.49163967",
"0.49135166",
"0.48985463",
"0.48684913",
"0.48520517",
"0.4826394",
"0.48222846",
"0.48130816",
"0.48008057",
"0.47891623",
"0.47435284",
"0.4736254",
"0.47061196",
"0.4702422",
"0.4669705",
"0.466469",
"0.46625298",
"0.4639876",
"0.46383834",
"0.46297958",
"0.46227252",
"0.46159545",
"0.4599934",
"0.45858842",
"0.4585706",
"0.45831332",
"0.45677432",
"0.45677236",
"0.45648658",
"0.45610142",
"0.45579037",
"0.45498067",
"0.4536883",
"0.45330858",
"0.4531724",
"0.45303747",
"0.45288202",
"0.45249",
"0.45007187",
"0.4500605",
"0.44866678",
"0.44803753",
"0.4470673",
"0.4468671",
"0.44682539",
"0.44604307",
"0.44597855",
"0.44581825",
"0.4443862",
"0.4438118",
"0.44342524",
"0.44342524",
"0.44231513",
"0.44209924",
"0.44209924",
"0.4417213",
"0.4398657",
"0.4390875",
"0.4386958",
"0.4384968",
"0.43829364",
"0.43798143",
"0.43798143",
"0.43798143",
"0.43798143",
"0.4370169",
"0.4369911",
"0.4369502",
"0.43614113",
"0.43564603",
"0.43520448",
"0.4350348",
"0.4341231",
"0.43214613"
]
| 0.6911122 | 0 |
Retrieves the original InputSplit. | public InputSplit getInputSplit() {
return inputSplit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InputSplit getInputSplit() {\n byte[] serializedSplit = state.getSerializedInputSplit();\n String splitClassName = state.getInputSplitClassName();\n return SerializationUtil.deserializeFromByteArray(\n getConfiguration(), InputSplit.class, splitClassName, serializedSplit, null);\n }",
"public StreamInputSplit() {\n // No-op\n }",
"public String getOriginalInput() {\n return this.input;\n }",
"public List<Split> getSplits() {\n return splits;\n }",
"String getBeginSplited();",
"public float getSplitPosition() {\r\n\t\treturn _hSplit.getSplitPosition();\r\n\t}",
"public int getSplitIndex() {\n\t\treturn index;\n\t}",
"public String getInput() {\n return this.input.substring(this.index);\n }",
"int getSplitIndex();",
"private static String[] lineSplit(String input) {\r\n String[] tokens = input.split(delimiter);\r\n return tokens;\r\n }",
"public String getSplitter() {\r\n return splitter;\r\n }",
"P getSplitPoint();",
"protected Object getInitialInput() {\n return this;\n }",
"@Override\n public S trySplit(){\n return null;\n }",
"public String getOriginalInput() {\n\t\treturn commandString;\n\t}",
"public Input getInput() {\r\n return localInput;\r\n }",
"@Override\n public Spliterator<SampleDescriptor> trySplit() {\n Spliterator<SampleDescriptor> retVal;\n // If there is only one sample left we don't split.\n int remaining = this.samples.size() - this.pos;\n if (remaining <= 1)\n retVal = null;\n else {\n // Compute the size for the entire list. This will be our running total of the size of the\n // remaining samples.\n long total = this.length();\n // Set up the new list.\n List<SampleDescriptor> newList = new ArrayList<SampleDescriptor>(remaining - 1);\n long newTotal = 0;\n // Loop until the old list is almost empty or it is smaller or equal to the new list, moving samples\n // from the end of the old list to the beginning of the new list.\n for (int tail = this.samples.size() - 1; tail > this.pos && newTotal < total; tail--) {\n // Move the last element in the old list to the new list.\n SampleDescriptor popped = this.samples.remove(tail);\n newList.add(popped);\n // Adjust the lengths.\n long len = popped.estimatedSize();\n total -= len;\n newTotal += len;\n }\n // Create a spliterator from the new list.\n retVal = new Splitter(newList);\n }\n return retVal;\n }",
"public List<String> getInputList() {\r\n\t\treturn inputList;\r\n\t}",
"public byte[] getInput() {\n return input;\n }",
"public double getSplitValue() {\n\t\treturn splitValue;\n\t}",
"public String getInput() {\n return input;\n }",
"private IntSplitInfo split() {\n\t\tint midKey = entries.getMidKey();\n\t\tIntInternalNode newNode = new IntInternalNode(k, entries.split());\n\n\t\t// // fix sibling pointers\n\t\t// newNode.nextNode = nextNode;\n\t\t// nextNode = newNode;\n\n\t\treturn new IntSplitInfo(this, midKey, newNode);\n\t}",
"public InputSplit[] getSplits( JobConf job, int numSplits ) throws IOException\n {\n numSplits = numSplits == 0 ? 1 : numSplits;\n \n List<Map<String, String>> configs = getConfigs( job );\n JobConf[] jobConfs = getJobConfs( job, configs );\n InputFormat[] inputFormats = getInputFormats( jobConfs );\n int[] indexedSplits = new int[inputFormats.length];\n \n // if we need only a few, the return one for each\n if( numSplits <= inputFormats.length )\n {\n Arrays.fill( indexedSplits, 1 );\n return collapse( getSplits( inputFormats, jobConfs, indexedSplits ), configs );\n }\n \n // attempt to get splits proportionally sized per input format\n long[] inputSizes = getInputSizes( inputFormats, jobConfs );\n long totalSize = sum( inputSizes );\n \n for( int i = 0; i < inputSizes.length; i++ )\n indexedSplits[ i ] = (int) Math.ceil( numSplits * inputSizes[ i ] / totalSize );\n \n return collapse( getSplits( inputFormats, jobConfs, indexedSplits ), configs );\n }",
"public ArrayList<ArrayList<Double>> getInput() {\n return input;\n }",
"public static JSplitPane getSplitPane()\r\n {\r\n\treturn splitpn;\r\n }",
"@Override\n public Spliterator<T> trySplit() {\n return null;\n }",
"protected String getInput() {\n if (input.hasNext()) {\n return input.nextLine();\n }\n return getInput();\n }",
"protected T input() {\n\t\tRecordReader<T> inputReader = getReader(getMainConstraint());\n\t\tif (inputReader == null) {\n\t\t\tLogger.getLogger(OneToManyLookupProcessNode.class).error(\"no main reader!\"); //$NON-NLS-1$\n\t\t\treturn null;\n\t\t}\n\t\tT inputRecord = inputReader.read();\n\t\tif (inputRecord == null) {\n\t\t\tLogger.getLogger(OneToManyLookupProcessNode.class).info(\"end of input\"); //$NON-NLS-1$\n\t\t\treturn null;\n\t\t}\n\t\t// Logger.getLogger(OneToManyLookupProcessNode.class).info(\"got input\"); //$NON-NLS-1$\n\t\tsetInCount(getInCount() + 1);\n\t\tif (getProgressCount() > 0 && getInCount() % getProgressCount() == 0) {\n\t\t\tLogger.getLogger(ProcessNode.class).info(\"input records: \" + getInCount()); //$NON-NLS-1$\n\t\t\tlong newTime = System.currentTimeMillis();\n\t\t\tLogger.getLogger(ProcessNode.class).info(\n\t\t\t\t\"duration: \" + String.valueOf(((double) newTime - (double) getTime()) / 1000)); //$NON-NLS-1$\n\t\t\tsetTime(newTime);\n\t\t}\n\t\treturn inputRecord;\n\t}",
"public String getCurrrentInput(){\n\t\treturn this.currentInput;\n\t}",
"@Override\n public Spliterator<Person> trySplit() {\n return null;\n }",
"public static String[] breakInput(String input){\n\t\t//Split the thing up on spaces,\n\t\tString[] inputSplit = (input.split(\"\\\\s\"));\n\t\treturn inputSplit;\n\t}",
"public StepInterface getOriginalStep()\n {\n return this.step;\n }",
"public RecordReader getRecordReader( InputSplit split, JobConf job, Reporter reporter ) throws IOException\n {\n MultiInputSplit multiSplit = (MultiInputSplit) split;\n JobConf currentConf = mergeConf( job, multiSplit.config, true );\n \n return currentConf.getInputFormat().getRecordReader( multiSplit.inputSplit, currentConf, reporter );\n }",
"private JSplitPane getSplMain() {\r\n\t\tif (splMain == null) {\r\n\t\t\tsplMain = new JSplitPane();\r\n\t\t\tsplMain.setOrientation(JSplitPane.VERTICAL_SPLIT);\r\n\t\t\tsplMain.setBottomComponent(getTxtInput());\r\n\t\t\tsplMain.setTopComponent(getScrMessage());\r\n\t\t\tsplMain.setDividerLocation(100);\r\n\t\t}\r\n\t\treturn splMain;\r\n\t}",
"@Override\n public SplitType getSplitType()\n {\n return new SplitType(SplitTypes.useDependencies, this.getDependency());\n }",
"com.google.appengine.v1.TrafficSplit getSplit();",
"@Override\r\n\tpublic List getInput() {\n\t\treturn super.getInput();\r\n\t}",
"public static Input getInput() {\r\n return input;\r\n }",
"public String[] parse() {\n String line = input.nextLine();\n line = line.trim();\n if (StringUtils.isNotEmpty(line)) {\n return StringUtils.split(line, \" \");\n }\n return null;\n }",
"private ClassifierSplitModel localModel(){\n\n return (ClassifierSplitModel)m_localModel;\n }",
"@Override\n public Format getInputFormat()\n {\n return super.getInputFormat();\n }",
"public SplitDisplayLayout getSplitLayout() {\n return this.mSplitLayout;\n }",
"int retrieve(FileInputSplit fileInputSplit);",
"@Override\n public CloneableInputStream clone() {\n return new CloneableInputStream(buf);\n }",
"@Nonnull\n @CheckReturnValue\n public SplitString previous() {\n if (offset == 0) {\n throw new IllegalStateException(\"Already at the beginning\");\n }\n return array[--offset];\n }",
"public int[] getInputSize() {\n return inputSize;\n }",
"public java.lang.String getInputData() {\n return inputData;\n }",
"public static DecisionOperator<IntVar> split() {\n return DecisionOperator.int_split;\n }",
"public String getCurrentInputString() { return line; }",
"public File getInputFile() {\n\t\treturn infile;\n\t}",
"public Input getInput() {\n return this.input;\n }",
"private Pair<Word<O>, State<I, S>> readInputFromInitialState(Iterable<? extends I> input,\n boolean recordOutput) {\n return readInput(input, this.initialProcedure.initialState, recordOutput);\n }",
"R extractRawInputs(I input);",
"protected SelectionText input() {\n return inputter;\n }",
"public final EObject ruleSplitOperator() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n EObject lv_parameter_2_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:924:28: ( (otherlv_0= 'split' otherlv_1= '(' ( (lv_parameter_2_0= ruleStreamOperatorParameter ) ) otherlv_3= ')' ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:925:1: (otherlv_0= 'split' otherlv_1= '(' ( (lv_parameter_2_0= ruleStreamOperatorParameter ) ) otherlv_3= ')' )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:925:1: (otherlv_0= 'split' otherlv_1= '(' ( (lv_parameter_2_0= ruleStreamOperatorParameter ) ) otherlv_3= ')' )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:925:3: otherlv_0= 'split' otherlv_1= '(' ( (lv_parameter_2_0= ruleStreamOperatorParameter ) ) otherlv_3= ')'\n {\n otherlv_0=(Token)match(input,27,FOLLOW_27_in_ruleSplitOperator2022); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getSplitOperatorAccess().getSplitKeyword_0());\n \n otherlv_1=(Token)match(input,21,FOLLOW_21_in_ruleSplitOperator2034); \n\n \tnewLeafNode(otherlv_1, grammarAccess.getSplitOperatorAccess().getLeftParenthesisKeyword_1());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:933:1: ( (lv_parameter_2_0= ruleStreamOperatorParameter ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:934:1: (lv_parameter_2_0= ruleStreamOperatorParameter )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:934:1: (lv_parameter_2_0= ruleStreamOperatorParameter )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:935:3: lv_parameter_2_0= ruleStreamOperatorParameter\n {\n \n \t newCompositeNode(grammarAccess.getSplitOperatorAccess().getParameterStreamOperatorParameterParserRuleCall_2_0()); \n \t \n pushFollow(FOLLOW_ruleStreamOperatorParameter_in_ruleSplitOperator2055);\n lv_parameter_2_0=ruleStreamOperatorParameter();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getSplitOperatorRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"parameter\",\n \t\tlv_parameter_2_0, \n \t\t\"StreamOperatorParameter\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,22,FOLLOW_22_in_ruleSplitOperator2067); \n\n \tnewLeafNode(otherlv_3, grammarAccess.getSplitOperatorAccess().getRightParenthesisKeyword_3());\n \n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public String getInputString() {\n return inputString;\n }",
"public @NonNull String getSplitPermission() {\n return mSplitPermissionInfoParcelable.getSplitPermission();\n }",
"private final List<PLineSegment> getLineSegmentsForSplitLine(SplitLine splitLine) {\n int lineIndex = splitLine.getLineIndex();\n List<PLineSegment> segments = getLineSegments(lineIndex);\n int index = 0;\n ArrayList<PLineSegment> result = new ArrayList<PLineSegment>();\n int start = splitLine.getOffset();\n int end = start + splitLine.getLength();\n \n for (int i = 0; index < end && i < segments.size(); ++i) {\n PLineSegment segment = segments.get(i);\n if (start >= index + segment.getModelTextLength()) {\n index += segment.getModelTextLength();\n continue;\n }\n if (start > index) {\n int skip = start - index;\n segment = segment.subSegment(skip);\n index += skip;\n }\n if (end < index + segment.getModelTextLength()) {\n segment = segment.subSegment(0, end - index);\n }\n result.add(segment);\n index += segment.getModelTextLength();\n }\n return result;\n }",
"Node split() {\r\n\r\n // to do the split operation\r\n // to get the correct child to promote to the internal node\r\n int from = key_num() / 2 + 1, to = key_num();\r\n InternalNode sibling = new InternalNode();\r\n sibling.keys.addAll(keys.subList(from, to));\r\n sibling.children.addAll(children.subList(from, to + 1));\r\n\r\n keys.subList(from - 1, to).clear();\r\n children.subList(from, to + 1).clear();\r\n\r\n return sibling;\r\n }",
"public String[] getInputNames()\n\t{\n\t\treturn _inputNames;\n\t}",
"public SplitNode splitAbout(int newSplit, int elementsPosition) {\n\t\tthrow new UnsupportedOperationException(\"should not implement\");\n\t}",
"public List<String> sentenceSplit(String input)\n {\n return InputNormalizer.sentenceSplit(this.sentenceSplitters, input);\n }",
"public FileQuerySerialization getInputSerialization() {\n return inputSerialization;\n }",
"public String readInput() {\n\t\treturn null;\n\t}",
"public static StringSplit newSplit(int start) {\n return new StringSplit(start, END_OF_LINE, WordCase.NO_CASE, false);\n }",
"public String getInputPath() {\n\t\treturn inputPath;\n\t}",
"public InputStream getIn() {\n\t\treturn proc.getInputStream();\n\t}",
"public String getOriginal() {\r\n return original;\r\n }",
"public java.util.List<br.unb.cic.bionimbus.avro.gen.Pair> getInputs() {\n return inputs;\n }",
"public String[] split() {\n if (name == null) {\n throw new IllegalStateException(\"invalid name\");\n }\n if (sourceImage == null) {\n throw new IllegalStateException(\"invalid sourceImage\");\n }\n if (imageCount == null || imageCount <= 0) {\n throw new IllegalStateException(\"invalid imageCount\");\n }\n if (origRow == null || origRow < 0) {\n throw new IllegalStateException(\"invalid origRow\");\n }\n if (origCol == null || origCol < 0) {\n throw new IllegalStateException(\"invalid origCol\");\n }\n\n graphicEntityModule.loadSpriteSheetSplitter(this);\n if (imageCount > 1) {\n return IntStream.range(0, imageCount).mapToObj(i -> name + i).toArray(String[]::new);\n } else {\n return new String[] { name };\n }\n }",
"private static String[] collectInput() {\n\t\tString command = sc.next();\n\t\tString i = sc.next();\n\t\tString destination = sc.next();\n\t\treturn new String[] { command, destination };\n\t\t\n\t}",
"static InputScanner getInputScanner() {\n return inputScanner;\n }",
"public static String[] splitFirst(String source, String splitter)\n\t {\n\t Vector<String> rv = new Vector<String>();\n\t int last = 0;\n\t int next = 0;\n\n\t // find first splitter in source\n\t next = source.indexOf(splitter, last);\n\t if (next != -1)\n\t {\n\t // isolate from last thru before next\n\t rv.add(source.substring(last, next));\n\t last = next + splitter.length();\n\t }\n\n\t if (last < source.length())\n\t {\n\t rv.add(source.substring(last, source.length()));\n\t }\n\n\t // convert to array\n\t return (String[]) rv.toArray(new String[rv.size()]);\n\t }",
"@Override\n public IntArrayList clone() {\n try {\n /* */\n final IntArrayList cloned = (IntArrayList) super.clone();\n cloned.buffer = buffer.clone();\n return cloned;\n } catch (CloneNotSupportedException e) {\n throw new RuntimeException(e);\n }\n }",
"public InputConnector getInputConnector()\n {\n return inputConnector;\n }",
"com.google.appengine.v1.TrafficSplitOrBuilder getSplitOrBuilder();",
"public static String[] prepareInput(String input) {\n\t\tArrayList<String> als = separatePhrases( input );\n\t\tif( foundQuitWord( als ) )\n\t\t{\n\t\t\t//System.out.println( \"Found\" );\n\t\t\treturn null;\n\t\t}\n\t\tString respondTo = selectPhrase( als );\n\t\tif( respondTo == null )\n\t\t{\n\t\t\t//System.out.println( \"rNull\" );\n\t\t\treturn null;\n\t\t}\n\t\tString result = swapWords( respondTo , Config.INPUT_WORD_MAP );\n\t\tif( result == null )\n\t\t{\n\t\t\t//System.out.println( \"sNull\" );\n\t\t\treturn null;\n\t\t}\n\t\telse\n\t\t\treturn result.split(\" \");\n\t}",
"public DataMatrix getInputData() {\n return this.dataInput;\n }",
"public java.util.List<br.unb.cic.bionimbus.avro.gen.Pair> getInputs() {\n return inputs;\n }",
"@Override\r\n public Object getItem(int position) {\n return splits[position];\r\n }",
"public static StringArraySplitterBuilder newSplitter() {\n splitter = new StringArraySplit();\n return INSTANCE;\n }",
"public static String[] splitAt (String toSplit, char splitter) {\n\t\n\t\tint placeHolder = 0; //tracks latest position of new substring\n\t\tint arrayCount = 0; //tracks of position of array entries\n\t\tint numberOfSplitters = 0; /*counts number of splitters so that\n\t\t\t\t\t\t\t\t\t*the length of array will be correct\n\t\t\t\t\t\t\t\t\t*/\n\t\tfor (int x = 0; x < toSplit.length(); x++) {\n\t\t\tif (toSplit.charAt(x) == splitter)\n\t\t\t\tnumberOfSplitters += 1;\n\t\t}\n\t\t/*\n\t\t * creates array to return with the correct number of \n\t\t * elements based on number of splitters plus 1\n\t\t */\n\t\tString[] splitArray = new String[numberOfSplitters + 1];\n\t\tfor (int x = 0; x < toSplit.length(); x++){\n\t\t\tif (toSplit.charAt(x) == splitter) {\n\t\t\t\tsplitArray[arrayCount] = \n\t\t\t\t\t\ttoSplit.substring(placeHolder, x);\n\t\t\t\tplaceHolder = x + 1;\n\t\t\t\tarrayCount += 1;\n\t\t\t}\n\t\t}\n\t //adds substring from last splitter to end of string\n\t\tsplitArray[arrayCount] = \n\t\t\t\ttoSplit.substring(placeHolder);\n\t\treturn splitArray;\n\t}",
"public List<Synapse> getInputs() {\n\t\treturn inputs;\n\t}",
"@Override\n @Nonnull\n @CheckReturnValue\n public SplitString next() {\n if (offset == array.length) {\n throw new IllegalStateException(\"No more arguments to read\");\n }\n return array[offset++];\n }",
"public List<Point2D> getInputPoints() {\n return mInputPoints;\n }",
"public String getInputFile() {\n return inputFile;\r\n }",
"public ImageArray getOriginalImage() {\n return originalIm;\n }",
"public static String process(String input) {\n StringTokenizer st = new StringTokenizer(input, DELIM);\n StringBuilder result = new StringBuilder();\n String space = \" \";\n\n while (st.hasMoreTokens()) {\n String tok = st.nextToken();\n Pattern p = Pattern.compile(SPLIT_REGEX);\n Matcher m = p.matcher(tok);\n boolean found = m.find();\n while (found) {\n String subStringFound = m.group();\n if (1 < subStringFound.length()) {\n result.append(subStringFound + space);\n }\n found = m.find();\n }\n }\n return result.toString();\n }",
"List<String> getEditPanelInput();",
"public InputSource getInputSource() {\r\n\t\t\r\n\t\treturn inputsource;\r\n\t\r\n\t}",
"public Object getCallInput() {\n\t\treturn null;\n\t}",
"public static IPath getInputParentPath(IEditorInput input) {\r\n IPath inputPath = null;\r\n if (input instanceof ILocationProvider) {\r\n inputPath = ((ILocationProvider) input).getPath(input);\r\n } else if (input instanceof IFileEditorInput) {\r\n IFile inputFile = ((IFileEditorInput) input).getFile();\r\n if (inputFile != null) {\r\n inputPath = inputFile.getLocation();\r\n }\r\n }\r\n if (inputPath != null && !inputPath.isEmpty()) {\r\n inputPath = inputPath.removeLastSegments(1);\r\n }\r\n return inputPath;\r\n }",
"Input getInputs();",
"public synchronized InputContext getInputContext() {\n if (inputContext == null) {\n inputContext = InputContext.getInstance();\n }\n return inputContext;\n }",
"static List<Intervall> handleInput(String input) {\n\t\tList<Intervall> listIntervall = new ArrayList<>();\n\t\tif (input.length() > 0) {\n\t\t\tString[] inputArray = input.split(\" \");\n\n\t\t\tfor (String s : inputArray) {\n\t\t\t\tString sTrimmed = s.substring(1, s.length() - 1);\n\t\t\t\tString[] inputValues = sTrimmed.split(\",\");\n\t\t\t\tlistIntervall.add(new Intervall(Integer.parseInt(inputValues[0]), Integer.parseInt(inputValues[1])));\n\t\t\t}\n\t\t}\n\t\treturn listIntervall;\n\t}",
"public abstract void split(Space s);",
"String getEndSplited();",
"public RecordingInputStream getRecordedInput() {\n return this.ris;\n }",
"public void addUsedSplitsAllRight(Split inSplit) throws ApException {\r\n\t\tint totalValues = values.size();\r\n\t\tList<Integer> tempUsedSplits = new ArrayList<>();\r\n\t\tfor (int i=inSplit.getSplitIndex(); i < totalValues; i++) {\r\n\t\t\tif (! usedSplits.contains(i)) {\r\n\t\t\t\ttempUsedSplits.add(values.get(i).getSplitIndex());\r\n\t\t\t}\r\n\t\t}\r\n\t\tusedSplits.addAll(tempUsedSplits);\r\n\t}",
"public Format getInputFormat() {\n return inputFormat;\n }"
]
| [
"0.7765469",
"0.62476176",
"0.6206807",
"0.58907247",
"0.5797402",
"0.5695939",
"0.5626591",
"0.55963844",
"0.5558814",
"0.55463624",
"0.5533069",
"0.54760486",
"0.5454398",
"0.53529793",
"0.53494227",
"0.5288305",
"0.5241748",
"0.5211901",
"0.51680064",
"0.5160353",
"0.5089419",
"0.5079775",
"0.5066393",
"0.5038558",
"0.503684",
"0.5009865",
"0.50034225",
"0.49786338",
"0.4960965",
"0.49571973",
"0.49446097",
"0.49306002",
"0.4914044",
"0.48952758",
"0.48941824",
"0.48930338",
"0.4891171",
"0.4885329",
"0.48846167",
"0.48796204",
"0.48697394",
"0.48363018",
"0.48173994",
"0.4813006",
"0.48105446",
"0.48016727",
"0.47982568",
"0.4789165",
"0.47821057",
"0.47792634",
"0.47755444",
"0.4775018",
"0.47547328",
"0.47541866",
"0.47522295",
"0.4751225",
"0.47483853",
"0.47433114",
"0.473054",
"0.47266534",
"0.47141492",
"0.47083974",
"0.47069684",
"0.46808648",
"0.46799487",
"0.46763188",
"0.4675778",
"0.46478254",
"0.46451265",
"0.46242103",
"0.46157512",
"0.4613341",
"0.46041846",
"0.46022767",
"0.4594407",
"0.45826483",
"0.4581622",
"0.4580027",
"0.45796517",
"0.45789006",
"0.45755395",
"0.4560235",
"0.45541385",
"0.45532924",
"0.4552296",
"0.45480746",
"0.4532925",
"0.4531946",
"0.452744",
"0.45155066",
"0.45099545",
"0.45066115",
"0.45035252",
"0.450138",
"0.4494848",
"0.44931242",
"0.44907606",
"0.44878668",
"0.44859317",
"0.44848013"
]
| 0.7842569 | 0 |
Retrieves the InputFormat class to use for this split. | public Class<? extends InputFormat> getInputFormatClass() {
return inputFormatClass;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Format getInputFormat() {\n return inputFormat;\n }",
"public Class getReadClass(int formatIndex);",
"public String getInputFormat() {\n return this.inputFormat;\n }",
"public Class<F> getFormatType() {\n\t\treturn formatType;\n\t}",
"private Class getInputFormat(JobConf jobConf, MapWork mWork) throws HiveException {\n if (mWork.getInputformat() != null) {\n HiveConf.setVar(jobConf, HiveConf.ConfVars.HIVEINPUTFORMAT,\n mWork.getInputformat());\n }\n String inpFormat = HiveConf.getVar(jobConf,\n HiveConf.ConfVars.HIVEINPUTFORMAT);\n if ((inpFormat == null) || (StringUtils.isBlank(inpFormat))) {\n inpFormat = ShimLoader.getHadoopShims().getInputFormatClassName();\n }\n\n if (mWork.isUseBucketizedHiveInputFormat()) {\n inpFormat = BucketizedHiveInputFormat.class.getName();\n }\n\n Class inputFormatClass;\n try {\n inputFormatClass = Class.forName(inpFormat);\n } catch (ClassNotFoundException e) {\n String message = \"Failed to load specified input format class:\"\n + inpFormat;\n LOG.error(message, e);\n throw new HiveException(message, e);\n }\n\n return inputFormatClass;\n }",
"public edu.umich.icpsr.ddi.FormatType getFormat()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FormatType target = null;\n target = (edu.umich.icpsr.ddi.FormatType)get_store().find_element_user(FORMAT$10, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public Class getWriteClass(int formatIndex);",
"Object getFormat();",
"@SuppressWarnings({\"rawtypes\"})\n @Override\n public Class<? extends InputFormat> getInputFormatClass() {\n return OldAzureTableInputFormat.class;\n }",
"public Class<? extends FormatFeature> getFormatReadFeatureType()\n/* */ {\n/* 415 */ return null;\n/* */ }",
"public static String getInputFormatClassName(HudiFileFormat baseFileFormat, boolean realtime) {\n switch (baseFileFormat) {\n case PARQUET:\n if (realtime) {\n return PARQUET_REALTIME_INPUT_FORMAT_NAME;\n } else {\n return PARQUET_INPUT_FORMAT_NAME;\n }\n case HFILE:\n if (realtime) {\n return HFILE_REALTIME_INPUT_FORMAT_NAME;\n } else {\n return HFILE_INPUT_FORMAT_NAME;\n }\n case ORC:\n return ORC_INPUT_FORMAT_NAME;\n default:\n throw new RuntimeException(\"Hudi InputFormat not implemented for base file format \" + baseFileFormat);\n }\n }",
"@Override\n public String getFormatName() throws IOException {\n return input == null? myDefaultFormat.getName() : getInfo().getFormat().getName();\n }",
"@SuppressWarnings(\"unchecked\")\n public <F> ConverterFormat<F> getFormat(Class<F> formatType) {\n ConverterFormat<F> format = (ConverterFormat<F>) formats.get(formatType);\n\n if (format == null) {\n throw new UnsupportedOperationException(\"The format \" + formatType + \" is not supported.\");\n }\n\n return format;\n }",
"@Override\n public Format getInputFormat()\n {\n return super.getInputFormat();\n }",
"public final Class<? extends ItemFormat<?>> getDefaultItemFormatClass(){\n String defaultItemFormatClassName = getText(\"defaultItemFormatClassName\");\n if(defaultItemFormatClassName != null){\n try{\n return (Class<? extends ItemFormat<?>>) Class.forName(defaultItemFormatClassName);\n }\n catch(Exception e){\n LOG.error(\"Failed to load ItemFormat class: \" + defaultItemFormatClassName, e);\n }\n }\n return getAny(\"defaultItemFormatClass\", Class.class);\n }",
"public String getFormat() {\n\t\treturn format;\n\t}",
"public Format getFormat()\n {\n return (formatControl == null) ? null : formatControl.getFormat();\n }",
"FileFormat getFormat();",
"NumberFormat getFormat() {\n\t\t\treturn fmt_result;\n\t\t}",
"public Format setInputFormat(Format input) {\n inputFormat = input;\n return input;\n }",
"public Format getOutputFormat() {\n return outputFormat;\n }",
"@Override\n public Format[] getSupportedInputFormats()\n {\n return supportedInputFormats;\n }",
"public final AdFormat getFormat() {\n\t\treturn impl.getFormat();\n }",
"public RMFormat getFormat()\n {\n return getStyle().getFormat();\n }",
"public static String getOutputFormatClassName(HudiFileFormat baseFileFormat) {\n switch (baseFileFormat) {\n case PARQUET:\n case HFILE:\n return MAPRED_PARQUET_OUTPUT_FORMAT_NAME;\n case ORC:\n return ORC_OUTPUT_FORMAT_NAME;\n default:\n throw new RuntimeException(\"No OutputFormat for base file format \" + baseFileFormat);\n }\n }",
"public String getFormat() {\n return format;\n }",
"public String getFormat() {\n return format;\n }",
"public String getFormat() {\n return format;\n }",
"public String getFormat() {\r\n return _format;\r\n }",
"public int getFormat()\n {\n return format;\n }",
"public String getFormat()\n {\n return format;\n }",
"public BioFormatsFormat() {\n\t\tcacheReaderClasses();\n\t}",
"public InputFormatOptions getInputFormatOptions() {\n return this.inputFormatOptions;\n }",
"public String getFormat() {\n\t\treturn formatString;\n\t}",
"public String getFormat() {\n return this.format;\n }",
"public Class<? extends FormatFeature> getFormatWriteFeatureType()\n/* */ {\n/* 426 */ return null;\n/* */ }",
"public RMFormat getFormat()\n{\n // Return format from first binding\n if(getBindingCount()>0)\n return (RMFormat)getBinding(0).getFormat();\n \n // Return null\n return null;\n}",
"public int getFormat ()\n {\n return this.format;\n }",
"public String getSupportFormat() {\r\n\t\treturn supportFormat;\r\n\t}",
"public static String getClassName(EditorInfo info) {\n\t\tif (info.inputType==InputType.TYPE_NULL) return \"NULL\"; //inputType==0 is a common case...\n\t\tint i = info.inputType & InputType.TYPE_MASK_CLASS;\n\t\tfor (Field f : InputType.class.getFields())\n\t\t\ttry {\n\t\t\t\tif (f.getName().startsWith(\"TYPE_CLASS_\")\n\t\t\t\t\t\t&& f.getInt(null)==i)\n\t\t\t\t\treturn f.getName().substring(\"TYPE_CLASS_\".length());\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t//Shouldn't happen, but hope some other field matches!\n\t\t\t\tandroid.util.Log.d(\"DasherIME\",\"Couldn't read field \"+f.getName()+\", skipping...\", e);\n\t\t\t}\n\t\tthrow new IllegalArgumentException(\"InputType class \"+info.inputType+\" not found\");\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate static Class<? extends OutputFormat<?, ?>> getNamedOutputFormatClass(\r\n\t\t\tJobContext job, String namedOutput) {\r\n\t\treturn (Class<? extends OutputFormat<?, ?>>)\r\n\t\tjob.getConfiguration().getClass(MO_PREFIX + namedOutput + FORMAT, null,\r\n\t\t\t\tOutputFormat.class);\r\n\t}",
"protected Format doGetFormat()\n {\n return null;\n }",
"protected NumberFormat getFormat() {\n return this.format;\n }",
"private RouteFormatter getTravelFormat(){\n \t\n \tint format = jComboBoxFormat.getSelectedIndex();\n \tif(format == 0){\n \t\treturn new DrivingRouteFormatter();\n \t}else if(format == 1){\n \t\treturn new WalkingRouteFormatter();\n \t}\n \treturn null;\n }",
"public NumberFormat getNumberFormat() {\n return numberFormat;\n }",
"public String getFormat() {\n\t\treturn getAttribute(FORMAT_TAG);\n\t}",
"public Format getBestFormat() {\n\t\tif (formats.contains(Format.JSON)) {\n\t\t\treturn Format.JSON;\n\t\t}\n\t\tif (formats.contains(Format.XML)) {\n\t\t\treturn Format.XML;\n\t\t}\n\t\treturn null;\n\t}",
"public NumberFormat getNumberFormat() {\n\t\treturn this.numberFormat;\n\t}",
"@ApiModelProperty(required = true, value = \"The file type of the file.\")\n public String getFormat() {\n return format;\n }",
"String getOutputFormat();",
"@Field(0) \r\n\tpublic ValuedEnum<DXGI_FORMAT> format() {\r\n\t\treturn this.io.getEnumField(this, 0);\r\n\t}",
"public AudioFormat getFormat() throws AudioSourceException {\n if (format==null){\n AudioInputStream dummyStream=getAudioInputStream();\n try {\n dummyStream.close();\n } catch (IOException e) {\n throw new AudioSourceException(e);\n }\n }\n \n\t\treturn format;\n\t}",
"String getFormat();",
"String getFormat();",
"String getFormat();",
"public abstract String getOutputFormat();",
"@SuppressWarnings({\"rawtypes\"})\n @Override\n public Class<? extends OutputFormat> getOutputFormatClass() {\n // Not yet implemented, but if we return null then the create\n // table statement will fail. Return a dummy implementation that'll\n // throw if ever actually used.\n return NotImplementedOutputFormat.class;\n }",
"public static Format getFormat(int format) throws IOException {\r\n\r\n switch (format) {\r\n case Order.FORMAT_FLAT: return new FormatFlat();\r\n case Order.FORMAT_TREE: return new FormatTree();\r\n case Order.FORMAT_NORITSU: return new FormatNoritsu();\r\n case Order.FORMAT_KONICA: return new FormatKonica();\r\n case Order.FORMAT_FUJI: return new FormatFuji();\r\n case Order.FORMAT_FUJI_NEW: return new FormatFujiNew();\r\n case Order.FORMAT_DLS: return new FormatDLSStub();\r\n case Order.FORMAT_KODAK: return new FormatKodak();\r\n case Order.FORMAT_AGFA: return new FormatAgfa();\r\n case Order.FORMAT_LUCIDIOM: return new FormatLucidiom();\r\n case Order.FORMAT_PIXEL: return new FormatPixel();\r\n case Order.FORMAT_DP2: return new FormatDP2();\r\n case Order.FORMAT_BEAUFORT: return new FormatBeaufort();\r\n case Order.FORMAT_DKS3: return new FormatDKS3();\r\n case Order.FORMAT_DIRECT_PDF: return new FormatDirectPDF();\r\n case Order.FORMAT_ZBE: return new FormatZBE();\r\n case Order.FORMAT_FUJI3: return new FormatFuji3();\r\n case Order.FORMAT_HP: return new FormatHP();\r\n case Order.FORMAT_XEROX: return new FormatXerox();\r\n case Order.FORMAT_DIRECT_JPEG: return new FormatDirectJPEG();\r\n case Order.FORMAT_BURN: return new FormatBurn();\r\n case Order.FORMAT_HOT_FOLDER: return new FormatHotFolder();\r\n case Order.FORMAT_DNP: return new FormatDNP();\r\n case Order.FORMAT_PURUS: return new FormatPurus();\r\n case Order.FORMAT_RAW_JPEG: return new FormatRawJPEG();\r\n default:\r\n throw new IOException(Text.get(Format.class,\"e1\"));\r\n }\r\n }",
"public int getImageFormat() {\n if (this.cleanedUp) {\n throw new IllegalStateException(\"Tried fetch image format from cleaned up swapchain!\");\n }\n return this.imageFormat;\n }",
"ImageFormat getFormat();",
"@Override\n @Nullable\n public Format getOutputFormat() throws TransformationException {\n maybeDequeueOutputBuffer(/* setOutputBuffer= */ false);\n return outputFormat;\n }",
"public void setInputFormat(String inputFormat) {\n this.inputFormat = inputFormat;\n }",
"public ClientLoader inputFormat(final String theInputFormat) {\r\n this.inputFormat = checkNotNull(theInputFormat, \"inputFormat is null\");\r\n return this;\r\n }",
"public SurfaceFormat getFormat()\n\t{\n\t\treturn this._format;\n\t}",
"public ResourceFormatGenerator getGeneratorForFormat(final String format) throws UnsupportedFormatException {\n try {\n return providerOfType(format);\n } catch (ExecutionServiceException e) {\n throw new UnsupportedFormatException(\"No provider available to parse format: \" + format, e);\n }\n }",
"String getFormatter();",
"public SECSItemFormatCode getFormatCode()\n {\n return formatCode;\n }",
"public String formatTypeName()\r\n {\r\n return mFormatTypeName;\r\n }",
"public int getPreviewFormat() {\n return pixelFormatForCameraFormat(get(\"preview-format\"));\n }",
"public String getFormat() {\n Object ref = format_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n format_ = s;\n return s;\n }\n }",
"@Override\n public com.gensym.util.Symbol getFormatType() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.FORMAT_TYPE_);\n return (com.gensym.util.Symbol)retnValue;\n }",
"public static Format getTheirDefaultFormat()\n {\n return (Format) theirDefaultFormat.clone();\n }",
"Format internalGetFormat()\n {\n return doGetFormat();\n }",
"public String getDocumentFormat() {\n return this.documentFormat;\n }",
"public AudioFormat getFormat() {\n return format;\n }",
"private String getClass( String format )\n {\n final Class clazz = StackIntrospector.getCallerClass( Logger.class );\n\n if( null == clazz )\n {\n return \"Unknown-class\";\n }\n else\n {\n // Found : the caller is the previous stack element\n String className = clazz.getName();\n\n // Handle optional format\n if( TYPE_CLASS_SHORT_STR.equalsIgnoreCase( format ) )\n {\n int pos = className.lastIndexOf( '.' );\n\n if( pos >= 0 )\n {\n className = className.substring( pos + 1 );\n }\n }\n\n return className;\n }\n }",
"public interface InputFormat {\n /**\n * Return a FileFilter that can be used to identify files which can be restored\n * with this Storage Format. Typically, each input format has its own \n * recognizable file naming convention.\n *\n * @return FileFilter to be used with a javax.swing.JFileChooser\n */\n public javax.swing.filechooser.FileFilter getFileFilter();\n \n /**\n * Return a JFileChooser accessory that can be used to customize the input\n * format.\n *\n * @return A JFileChooser accessory to be used with a javax.swing.JFileChooser\n * Returns null, if no accessory is provided for this format.\n */\n public JComponent getInputFormatAccessory();\n \n /**\n * Reads figures from a file and replaces the children of the drawing\n * with them.\n * <p>\n * This is a convenience method for calling read(File,Drawing,true).\n *\n * @param file The file.\n * @param drawing The drawing.\n */\n public void read(File file, Drawing drawing) throws IOException;\n \n /**\n * Reads figures from a file and adds them to the specified drawing.\n *\n * @param file The file.\n * @param drawing The drawing.\n * @param replace Set this to true, if the contents of the file replaces the\n * contents of the drawing (for example, when loading a drawing from a file).\n * Set this to false, to add the contents of the file to the drawing (for\n * example, when the file has been dropped into the drawing view).\n */\n public void read(File file, Drawing drawing, boolean replace) throws IOException;\n\n /**\n * Reads figures from a file and adds them to the specified drawing.\n *\n * @param in The input stream.\n * @param drawing The drawing.\n * @param replace Set this to true, if the contents of the stream replaces the\n * contents of the drawing (for example, when loading a drawing from a stream).\n * Set this to false, to add the contents of the file to the drawing (for\n * example, when the stream has been dropped into the drawing view).\n */\n public void read(InputStream in, Drawing drawing, boolean replace) throws IOException;\n\n /**\n * Returns true, if this InputFormat can readFigures TransferData using the \n * specified DataFlavor.\n * \n * @param flavor A DataFlavor.\n */\n public boolean isDataFlavorSupported(DataFlavor flavor);\n \n /**\n * Reads figures from the specified Transferable and adds them to the\n * specified drawing.\n * \n * @param t The Transferable. \n * @param drawing The drawing.\n * @param replace Set this to true, if the contents of the transferable\n * replaces the contents of the drawing (for example, when loading a drawing\n * from a transferable). Set this to false, to add the contents of the \n * transferable to the drawing (for example, when the transferable has been\n * dropped or pasted into the drawing view).\n */\n public void read(Transferable t, Drawing drawing, boolean replace) throws UnsupportedFlavorException, IOException;\n}",
"public edu.umich.icpsr.ddi.FormatType addNewFormat()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FormatType target = null;\n target = (edu.umich.icpsr.ddi.FormatType)get_store().add_element_user(FORMAT$10);\n return target;\n }\n }",
"public String getFormat() {\n Object ref = format_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n format_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getFormatName()\n/* */ {\n/* 465 */ if (getClass() == JsonFactory.class) {\n/* 466 */ return \"JSON\";\n/* */ }\n/* 468 */ return null;\n/* */ }",
"public String getFormat() {\n/* 206 */ return getValue(\"format\");\n/* */ }",
"public String getFileFormat()\r\n\t{\r\n\t\treturn this.getSerializer().getFileFormat();\r\n\t}",
"public FormatOptions getFormatOptions() {\n return this.formatOptions;\n }",
"public String getFClass() {\n\t\t\treturn this.fClass ;\n\t\t}",
"public boolean isFormat() {\n\t\treturn isFormat;\n\t}",
"public void setOutputFormat(OutputFormat format);",
"public int getTypeFormatId()\n {\n if ( formatId != 0 ) { return formatId; }\n else\n {\n //\n // If you serialize this class outside the formatable machinery, you\n // will lose the format id. This can happen if you pass one of these\n // objects across the network. Here we recover the format id.\n //\n if ( TypeId.BOOLEAN_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.BOOLEAN_TYPE_ID_IMPL; }\n else if ( TypeId.BIGINT_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.BIGINT_TYPE_ID_IMPL; }\n else if ( TypeId.INTEGER_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.INT_TYPE_ID_IMPL; }\n else if ( TypeId.SMALLINT_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.SMALLINT_TYPE_ID_IMPL; }\n else if ( TypeId.TINYINT_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.TINYINT_TYPE_ID_IMPL; }\n else if ( TypeId.DECIMAL_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.DECIMAL_TYPE_ID_IMPL; }\n else if ( TypeId.NUMERIC_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.DECIMAL_TYPE_ID_IMPL; }\n else if ( TypeId.DOUBLE_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.DOUBLE_TYPE_ID_IMPL; }\n else if ( TypeId.REAL_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.REAL_TYPE_ID_IMPL; }\n else if ( TypeId.REF_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.REF_TYPE_ID_IMPL; }\n else if ( TypeId.CHAR_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.CHAR_TYPE_ID_IMPL; }\n else if ( TypeId.VARCHAR_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.VARCHAR_TYPE_ID_IMPL; }\n else if ( TypeId.LONGVARCHAR_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.LONGVARCHAR_TYPE_ID_IMPL; }\n else if ( TypeId.CLOB_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.CLOB_TYPE_ID_IMPL; }\n //DERBY-5407 Network Server on wire sends CHAR () FOR BIT DATA \n // not CHAR FOR BIT DATA. Keeping the check for CHAR FOR BIT\n // DATA just in case if there is any dependency on that check\n else if ( TypeId.BIT_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.BIT_TYPE_ID_IMPL; }\n else if ( \"CHAR FOR BIT DATA\".equals( unqualifiedName ) ) {\n return StoredFormatIds.BIT_TYPE_ID_IMPL; }\n //DERBY-5407 Network Server on wire sends VARCHAR () FOR BIT DATA \n // not VARCHAR FOR BIT DATA. Keeping the check for VARCHAR FOR BIT\n // DATA just in case if there is any dependency on that check\n else if ( TypeId.VARBIT_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.VARBIT_TYPE_ID_IMPL; }\n else if ( \"VARCHAR FOR BIT DATA\".equals( unqualifiedName ) ) {\n return StoredFormatIds.VARBIT_TYPE_ID_IMPL; }\n else if ( TypeId.LONGVARBIT_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.LONGVARBIT_TYPE_ID_IMPL; }\n else if ( TypeId.BLOB_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.BLOB_TYPE_ID_IMPL; }\n else if ( TypeId.DATE_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.DATE_TYPE_ID_IMPL; }\n else if ( TypeId.TIME_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.TIME_TYPE_ID_IMPL; }\n else if ( TypeId.TIMESTAMP_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.TIMESTAMP_TYPE_ID_IMPL; }\n else if ( TypeId.XML_NAME.equals( unqualifiedName ) ) {\n return StoredFormatIds.XML_TYPE_ID_IMPL; }\n else { return 0; }\n }\n }",
"public String getFormat() throws Exception {\n\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/@metaFormat\").getText();\n\t}",
"public ClientLoader outputFormat(final String theOutputFormat) {\r\n this.outputFormat = checkNotNull(theOutputFormat,\r\n \"outputFormat is null\");\r\n return this;\r\n }",
"public com.google.protobuf.ByteString\n getFormatBytes() {\n Object ref = format_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n format_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getFormatBytes() {\n Object ref = format_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n format_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getLabelFormat() {\n\t\treturn this.labelFormat;\n\t}",
"public ImageFormatProperties getFormat() {\n return this.format;\n }",
"public Format setOutputFormat(Format output) {\n outputFormat = output;\n return output;\n }",
"public BasicInstructionFormat getInstructionFormat() {\r\n\t\treturn instructionFormat;\r\n\t}",
"@UML(identifier=\"fileFormat\", obligation=MANDATORY, specification=ISO_19139)\n Format getFileFormat();",
"protected String getDataFormat() {\n return this.dataFormat;\n }",
"public String getSequenceFormat() {\n return sequenceFormat;\n }",
"com.google.protobuf.ByteString\n getFormatBytes();",
"@Field(0) \n\tpublic int format() {\n\t\treturn this.io.getIntField(this, 0);\n\t}"
]
| [
"0.68431497",
"0.67664903",
"0.660486",
"0.65616065",
"0.64441526",
"0.6253015",
"0.6177609",
"0.6122214",
"0.59793216",
"0.5972087",
"0.5965065",
"0.58923113",
"0.58641523",
"0.58624136",
"0.58492994",
"0.58318675",
"0.5819222",
"0.58149594",
"0.58112866",
"0.5805304",
"0.5803117",
"0.57688606",
"0.5744315",
"0.5732739",
"0.57224375",
"0.5713822",
"0.5713822",
"0.5713822",
"0.56747377",
"0.56745785",
"0.56628966",
"0.5658844",
"0.56314695",
"0.5572409",
"0.55447215",
"0.5466201",
"0.5448841",
"0.54238456",
"0.5416285",
"0.54110104",
"0.54090697",
"0.5392564",
"0.53906804",
"0.53749514",
"0.53691244",
"0.53511465",
"0.53479934",
"0.5341437",
"0.53352076",
"0.5329273",
"0.53123766",
"0.5282113",
"0.5274229",
"0.5274229",
"0.5274229",
"0.52635384",
"0.52582955",
"0.52558714",
"0.5247342",
"0.52437246",
"0.5242026",
"0.52406925",
"0.52325153",
"0.5228651",
"0.520522",
"0.5188725",
"0.5173782",
"0.5155654",
"0.5144358",
"0.5127016",
"0.51213074",
"0.5104945",
"0.5076364",
"0.507629",
"0.5058242",
"0.5058206",
"0.50575006",
"0.50542045",
"0.5049266",
"0.5048975",
"0.5044779",
"0.5015792",
"0.5008573",
"0.49898738",
"0.49848765",
"0.4960562",
"0.49478695",
"0.49443138",
"0.4938918",
"0.49345723",
"0.4897792",
"0.48966694",
"0.489349",
"0.48908082",
"0.48796713",
"0.4877479",
"0.48769033",
"0.48743045",
"0.48737308",
"0.485655"
]
| 0.7818031 | 0 |
Retrieves the Mapper class to use for this split. | public Class<? extends AIngleMapper> getMapperClass() {
return mapperClass;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected MapperIF getBeanMapper() {\r\n\t\treturn beanMapper;\r\n\t}",
"@Override\r\n\tpublic Class getObjectType() {\n\t\treturn mapperInterface;\r\n\t}",
"public static Class get_CLASS()\n {\n return WrapperMap.class;\n }",
"public static ObjectMapper getMapper() {\n return MAPPER;\n }",
"private MappingClassElement getMappingClass (String className)\n\t{\n\t\treturn getModel().getMappingClass(className, getClassLoader());\n\t}",
"public String getMapComponentClassName() {\n return m_mapComponentClassName;\n }",
"@Override\r\n\tpublic BaseMapper<T> getMapper() {\n\t\treturn comMessageMapper;\r\n\t}",
"public static Mapper<String> name() {\n return NAME;\n }",
"public Mapper newInstance() {\n Mapper mapper;\n\n mapper = new Mapper(name, parser.newInstance(), oag.newInstance());\n mapper.setLogging(logParsing, logAttribution);\n return mapper;\n }",
"public static ProfilMapper profilMapper() {\r\n\t\tif (profilMapper == null) {\r\n\t\t\tprofilMapper = new ProfilMapper();\r\n\t\t}\r\n\t\t\r\n\t\treturn profilMapper;\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic Object getMapper() {\n\t\treturn null;\r\n\t}",
"private TypeMapper getTypeMapper() {\n\t\tif (JjsUtils.closureStyleLiteralsNeeded(this.options)) {\n\t\t\treturn new ClosureUniqueIdTypeMapper(jprogram);\n\t\t}\n\t\tif (this.options.useDetailedTypeIds()) {\n\t\t\treturn new StringTypeMapper(jprogram);\n\t\t}\n\t\treturn this.options.isIncrementalCompileEnabled()\n\t\t\t\t? compilerContext.getMinimalRebuildCache().getTypeMapper()\n\t\t\t\t: new IntTypeMapper();\n\t}",
"private <T> T getMapper(Class<T> type) {\n SqlSession session = dbSessionHandler.getSqlSession();\n return session.getMapper(type);\n }",
"protected static Class<?> getMapping(byte messageId) {\n\t\treturn classMapping.get(messageId);\n\t}",
"@Override\n\tpublic Object getMapper() {\n\t\treturn null;\n\t}",
"public Map<String, Mapper> getMappers() {\n return new HashMap<String, Mapper>(this.mappers);\n }",
"public Class<? extends InputFormat> getInputFormatClass() {\n return inputFormatClass;\n }",
"@Override\r\n\tpublic Mapper<Keyword> getMapper() {\n\t\treturn null;\r\n\t}",
"public abstract String mapSingleClass(String classToMap);",
"public static Class get_CLASS()\n {\n return WrapperMap.KeySet.class;\n }",
"public static Class get_CLASS()\n {\n return WrapperMap.EntrySet.class;\n }",
"public IMapping getClassMapping(String name) {\n\n // check for class mapping defined at this level\n IMapping def = getMappingAtLevel(name);\n if (def == null && m_context != null) {\n\n // try finding definition at higher level\n def = m_context.getClassMapping(name);\n \n }\n return def;\n }",
"@Override\n\tpublic IBaseMapper<ZlnfCoopUser, ZlnfCoopUserExample, Integer> getMapper() {\n\t\treturn mapper;\n\t}",
"@Override\r\n\tpublic BaseMapper<T> getMapper() {\n\t\treturn orderMapper;\r\n\t}",
"public ObjectMapper getMapper() {\n return mapper;\n }",
"private Class getInputFormat(JobConf jobConf, MapWork mWork) throws HiveException {\n if (mWork.getInputformat() != null) {\n HiveConf.setVar(jobConf, HiveConf.ConfVars.HIVEINPUTFORMAT,\n mWork.getInputformat());\n }\n String inpFormat = HiveConf.getVar(jobConf,\n HiveConf.ConfVars.HIVEINPUTFORMAT);\n if ((inpFormat == null) || (StringUtils.isBlank(inpFormat))) {\n inpFormat = ShimLoader.getHadoopShims().getInputFormatClassName();\n }\n\n if (mWork.isUseBucketizedHiveInputFormat()) {\n inpFormat = BucketizedHiveInputFormat.class.getName();\n }\n\n Class inputFormatClass;\n try {\n inputFormatClass = Class.forName(inpFormat);\n } catch (ClassNotFoundException e) {\n String message = \"Failed to load specified input format class:\"\n + inpFormat;\n LOG.error(message, e);\n throw new HiveException(message, e);\n }\n\n return inputFormatClass;\n }",
"public static Class get_CLASS()\n {\n return WrapperMap.KeySet.Iterator.class;\n }",
"public static Class get_CLASS()\n {\n return WrapperMap.EntrySet.Entry.class;\n }",
"public final ClassMap getBaseClassMap()\n {\n return baseClassMap;\n }",
"public abstract Class<? extends AbstractMinigame<?, ?>> getMinigameClass();",
"public static Class get_CLASS()\n {\n return WrapperMap.Values.class;\n }",
"public static Class get_CLASS()\n {\n return WrapperMap.EntrySet.Iterator.class;\n }",
"public static BokMapper getInstance(){\r\n\t\treturn BokMapper;\r\n\t}",
"public MappingType getMappingType() {\n\t\treturn mappingType;\n\t}",
"Class<? extends JavaTypeMapping> getMappingType(String javaTypeName);",
"public static Class get_CLASS()\n {\n return WrapperMap.Values.Iterator.class;\n }",
"public static ObjectMapper getObjectMapper() {\n return defaultMapper;\n }",
"public String getWrapperManagerClassName();",
"public final ClassMap getUsedClassMap()\n {\n return useClassMap;\n }",
"public static MappingManager getInstance() {\n\t\tif(mappingManager == null) {\n\t\t\tmappingManager = new MappingManager();\n\t\t}\n\t\treturn mappingManager;\n\t}",
"public int getLOC_class() {\n\t\treturn this.LOC_class;\n\t}",
"FeatureMapper getFeatureMapper(\n String qualifiedClassName,\n FeatureMapper.Type type\n ) throws ServiceException;",
"public static ModuleMapper getInstance() {\n return singleton;\n }",
"public Class<? extends BaseContextModel> getContextModelClass() {\n\t\tif(map != null && !map.isEmpty() ){\n\t\t\treturn map.get(\"ContextModel\");\n\t\t}else {\n\t\t\ttry {\n\t\t\t\treturn Class.forName(simulationConfig\n\t\t\t\t\t\t.getString(\"models.contextmodel\"), true, classLoader).asSubclass(BaseContextModel.class);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t}",
"public static <T> T getMapper(Class<T> mapperClass) {\n\n return getMapper(mapperClass, Collections.EMPTY_LIST, Collections.EMPTY_LIST);\n }",
"JavaTypeMapping getMapping(Class javaType);",
"public interface Mapper {\n\n\t/**\n\t * A {@link Mapper} is uniquely identified with a {@link String}. This\n\t * helps differentiating mapping XMLs produced with different mappers.\n\t * \n\t * @return the unique identifier of this mapper\n\t */\n\tpublic abstract String getMapperId();\n\t\n\t/**\n\t * Maps the cores from the APCG to the nodes from the NoC.\n\t * \n\t * @see MappingType\n\t * \n\t * @return a array of Strings containing the mappings (specially for multi-objective case) XML\n\t * \n\t * @throws TooFewNocNodesException\n\t */\n\tpublic abstract String[] map() throws TooFewNocNodesException;\n\n}",
"public MapEntry getMapping(String imfInterfaceClass) throws SL_Exception\r\n {\r\n MapEntry rc = _AdapterFactory_map.get(imfInterfaceClass);\r\n if(rc==null)\r\n return super.getMapping(imfInterfaceClass);\r\n else {\r\n if(rc.semanticClass == null)\r\n {\r\n MapEntry rc1 = super.getMapping(imfInterfaceClass);\r\n rc.semanticClass = rc1.semanticClass;\r\n }\r\n return rc;\r\n }\r\n\r\n }",
"private static KeyStrokeMapProvider getGenerator() {\n if (generator == null) {\n try {\n String gname =\n System.getProperty(\"abbot.keystroke_map_generator\",\n \"abbot.tester.KeyStrokeMap\");\n if (gname != null) {\n generator = (KeyStrokeMapProvider)\n Class.forName(gname).newInstance();\n }\n }\n catch(Exception e) {\n Log.warn(e);\n }\n }\n return generator;\n }",
"@Override\n\tpublic java.lang.Class<io.cattle.platform.core.model.tables.records.InstanceLabelMapRecord> getRecordType() {\n\t\treturn io.cattle.platform.core.model.tables.records.InstanceLabelMapRecord.class;\n\t}",
"private ModuleMapper() {\n mapper = new HashMap<String, String>();\n mapper.put(\"accounts\", \"Accounts\");\n mapper.put(\"acl_actions\", \"ACLActions\");\n mapper.put(\"acl_roles\", \"ACLRoles\");\n mapper.put(\"bugs\", \"Bugs\");\n mapper.put(\"calls\", \"Calls\");\n mapper.put(\"campaign_log\", \"CampaignLog\");\n mapper.put(\"campaign_trkrs\", \"CampaignTrackers\");\n mapper.put(\"campaigns\", \"Campaigns\");\n mapper.put(\"cases\", \"Cases\");\n mapper.put(\"contacts\", \"Contacts\");\n mapper.put(\"currencies\", \"Currencies\");\n mapper.put(\"document_revisions\", \"DocumentRevisions\");\n mapper.put(\"documents\", \"Documents\");\n mapper.put(\"eapm\", \"EAPM\");\n mapper.put(\"email_addresses\", \"EmailAddresses\");\n mapper.put(\"email_marketing\", \"EmailMarketing\");\n mapper.put(\"email_templates\", \"EmailTemplates\");\n mapper.put(\"emailman\", \"EmailMan\");\n mapper.put(\"emails\", \"Emails\");\n mapper.put(\"inbound_email\", \"InboundEmail\");\n mapper.put(\"job_queue\", \"SchedulersJobs\");\n mapper.put(\"leads\", \"Leads\");\n mapper.put(\"meetings\", \"Meetings\");\n mapper.put(\"notes\", \"Notes\");\n mapper.put(\"oauth_consumer\", \"OAuthKeys\");\n mapper.put(\"oauth_tokens\", \"OAuthTokens\");\n mapper.put(\"opportunities\", \"Opportunities\");\n mapper.put(\"project\", \"Project\");\n mapper.put(\"project_task\", \"ProjectTask\");\n mapper.put(\"prospect_lists\", \"ProspectLists\");\n mapper.put(\"prospects\", \"Prospects\");\n mapper.put(\"releases\", \"Releases\");\n mapper.put(\"roles\", \"Roles\");\n mapper.put(\"saved_search\", \"SavedSearch\");\n mapper.put(\"schedulers\", \"Schedulers\");\n mapper.put(\"sugarfeed\", \"SugarFeed\");\n mapper.put(\"tasks\", \"Tasks\");\n mapper.put(\"users\", \"Users\");\n }",
"@Mapper\npublic interface SpiderMapper {\n \n}",
"public MappingType createMappingType() {\n\t\treturn mappingFactory.createMappingType();\n\t}",
"public Class getFieldDeclarerType() {\n String type = getFieldDeclarerName();\n if (type == null)\n return null;\n return Strings.toClass(type, getClassLoader());\n }",
"public final Caseless getMapping() {\n\t\treturn mappedto;\n\t}",
"public static TmxMapReader get() {\r\n if (instance == null)\r\n instance = new TmxMapReader();\r\n return instance;\r\n }",
"@SuppressWarnings({\"rawtypes\"})\n @Override\n public Class<? extends InputFormat> getInputFormatClass() {\n return OldAzureTableInputFormat.class;\n }",
"public static synchronized CommandMapper getInstance(String instanceName) {\n CommandMapper cm = (CommandMapper)instanceMap.get(instanceName);\n if (cm == null) {\n cm = new CommandMapper();\n cm.instanceName = instanceName;\n instanceMap.put(instanceName, cm);\n }\n return cm;\n }",
"public MapperBase() {\r\n }",
"protected SchemaTypeLoader getSchemaTypeLoader() {\n return Connector15DCBRoot.SCHEMA_TYPE_LOADER;\n }",
"public String getMapTyp() {\n\t\treturn this.mapTyp;\n\t}",
"public Mapper(String name) {\n this(name, null, null);\n }",
"public Class<IFieldSetAdaptor> getFieldSetAdaptorClass()\n\t{\n\t\treturn fieldSetAdaptorClass;\n\t}",
"public Mapping getMapping() {\n\t\t// FIXME Tranform list into mapping\n\t\treturn m;\n\t}",
"public interface MapperRegistry {\n <T> T getMapper(Class<T> type, SqlSession sqlSession);\n\n <T> boolean hasMapper(Class<T> type);\n\n <T> void addMapper(Class<T> type);\n\n void addMappers(String packageName, Class<?> superType);\n\n void addMappers(String packageName);\n\n Collection<Class<?>> getMappers();\n}",
"public Class<?> getAdaptorClazz() {\n if (adaptorClass == null) {\n return null;\n }\n\n try {\n return Class.forName(adaptorClass);\n } catch (final ClassNotFoundException e) {\n LOGGER.warn(\"class \\\"\" + adaptorClass + \"\\\" not found: \", e);\n return null;\n }\n }",
"public abstract <X extends OSHDBMapReducible> MapReducer<X> createMapReducer(Class<X> forClass);",
"public Class<?> getGeneratorClass() {\n return generatorClass;\n }",
"public Map<EntityMode,String> getTuplizerClassMap();",
"public ClassManager getClassManager()\n {\n return this.classManager;\n }",
"@SuppressWarnings(\"unchecked\")\n private Class<? extends BaseDataParserInterface> getDataParserClass(Integer baseType) {\n Class<? extends BaseDataParserInterface> c = null;\n\n if (baseDataParserClasses.get(baseType) == null) {\n String cname = context.getPackageName() + \".bases.b\" + baseType + \".BaseDataParser\";\n if (cname != null) {\n try {\n c = (Class<? extends BaseDataParserInterface>) Class.forName(cname);\n }\n catch (ClassNotFoundException e) {\n Log.e(TAG, \"Looking for BaseDataParser Class (\" + cname + \"), not found: \" + e.getMessage());\n }\n catch (Exception e) {\n Log.e(TAG, \"Looking for BaseDataParser Class Error: \" + e.getMessage());\n }\n }\n if (c != null) {\n baseDataParserClasses.put(baseType, c);\n }\n }\n else {\n c = baseDataParserClasses.get(baseType);\n }\n\n return c;\n }",
"Mapper<T, T2> to(Class<T2> target);",
"public static <T> T mapper(Class<T> mapperClass, Object source) {\n\n return getMapper(mapperClass, source, null);\n }",
"default String getClassName() {\n return declaringType().getClassName();\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate static Class<? extends OutputFormat<?, ?>> getNamedOutputFormatClass(\r\n\t\t\tJobContext job, String namedOutput) {\r\n\t\treturn (Class<? extends OutputFormat<?, ?>>)\r\n\t\tjob.getConfiguration().getClass(MO_PREFIX + namedOutput + FORMAT, null,\r\n\t\t\t\tOutputFormat.class);\r\n\t}",
"@Override\n public Loader getClassLoader() {\n\treturn this.classLoader;\n }",
"protected String getKeymapName() {\n String nm = getClass().getName();\n int index = nm.lastIndexOf('.');\n if (index >= 0) {\n nm = nm.substring(index+1);\n }\n return nm;\n }",
"private String processClassMapping(String line,\n MappingProcessor mappingProcessor)\n {\n // See if we can parse \"___ -> ___:\", containing the original\n // class name and the new class name.\n\n int arrowIndex = line.indexOf(\"->\");\n if (arrowIndex < 0)\n {\n return null;\n }\n\n int colonIndex = line.indexOf(':', arrowIndex + 2);\n if (colonIndex < 0)\n {\n return null;\n }\n\n // Extract the elements.\n String className = line.substring(0, arrowIndex).trim();\n String newClassName = line.substring(arrowIndex + 2, colonIndex).trim();\n\n // Process this class name mapping.\n boolean interested = mappingProcessor.processClassMapping(className, newClassName);\n\n return interested ? className : null;\n }",
"public String getDriverClass() {\n return driverClass;\n }",
"public LoginUserMapper getLoginUserMapper() {\n\t\treturn loginUserMapper;\n\t}",
"protected RowMapper<Project> getRowMapper() {\n\t\treturn new ProjectMapper();\n\t}",
"public String getMapNm() {\n\t\treturn this.mapNm;\n\t}",
"public static Class getDefaultIdentityMapClass() {\n return ClassConstants.SoftCacheWeakIdentityMap_Class;\n }",
"Type getForPersistentMapping_Type() {\n return type;\n }",
"public Job getHadoopJob() ;",
"public Class<?> getConnectorClass() {\n\t\t\treturn connectorClass;\n\t\t}",
"public String getAnnotationProcessor() {\n return null;\n }",
"public static Class get_CLASS()\n {\n Class clz;\n try\n {\n clz = Class.forName(\"com.tangosol.coherence/component/manageable/modelAdapter/ReporterMBean\".replace('/', '.'));\n }\n catch (ClassNotFoundException e)\n {\n throw new NoClassDefFoundError(e.getMessage());\n }\n return clz;\n }",
"public int getMapMode() {\r\n return MapMode;\r\n }",
"public int getMapMode() {\r\n return MapMode;\r\n }",
"public Mapper newMapper(PathResolver pathResolver, boolean useInvalidations) {\n return backend.newMapper(pathResolver, useInvalidations);\n }",
"private static Class<?> getNamedOutputKeyClass(JobContext job,\r\n\t\t\tString namedOutput) {\r\n\t\treturn job.getConfiguration().getClass(MO_PREFIX + namedOutput + KEY, null,\r\n\t\t\t\tWritableComparable.class);\r\n\t}",
"Atlantis.TransformationHelper transformationHelper() {\n String className = get(TRANSFORMATION_HELPER);\n if (isEmpty(className))\n return null;\n\n try {\n return (Atlantis.TransformationHelper) Class.forName(className).newInstance();\n } catch (Exception e) {\n info(e, \"Couldn't deserialize transformation helper\");\n return null;\n }\n }",
"public static Class<?> getNetworkManagerClass() {\n \t\treturn getMinecraftClass(\"NetworkManager\");\n \t}",
"public Class<? extends BaseAgentModel> getAgentModelClass() {\n\t\tif(map != null && !map.isEmpty() ){\n\t\t\treturn map.get(\"AgentModel\");\n\t\t}else {\n\t\t\ttry {\n\t\t\t\treturn Class.forName(simulationConfig\n\t\t\t\t\t\t.getString(\"models.agentmodel\"), true, classLoader).asSubclass(BaseAgentModel.class);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t}",
"public static MapsManager getMapsManager() {\n if (mapsManager == null)\n mapsManager = new MapsManager();\n return mapsManager;\n }",
"public String getExtractorClassName() {\n return extractorClassName;\n }",
"public static ElasticSearchMapper getInstance() {\n return ElasticSearchMapperHolder.instance;\n }",
"public Mapping getMapping() {\n return mapping;\n }",
"public ObjectMapper getObjectMapper()\n/* */ {\n/* 123 */ return this.objectMapper;\n/* */ }"
]
| [
"0.62849885",
"0.6187148",
"0.6153143",
"0.6006275",
"0.569327",
"0.5684075",
"0.5652422",
"0.563654",
"0.5627444",
"0.56118774",
"0.5580159",
"0.55770254",
"0.5561453",
"0.5536334",
"0.54891264",
"0.5480115",
"0.5456839",
"0.5394144",
"0.5376726",
"0.5367516",
"0.5364868",
"0.5361248",
"0.5322678",
"0.5318254",
"0.5318127",
"0.52375466",
"0.52324647",
"0.5225662",
"0.5194521",
"0.51630574",
"0.5161256",
"0.5160763",
"0.51323324",
"0.5122962",
"0.5113968",
"0.50888115",
"0.5085034",
"0.50377375",
"0.50109667",
"0.49749655",
"0.49597475",
"0.49526152",
"0.49149814",
"0.49096727",
"0.48944762",
"0.4878896",
"0.48698735",
"0.4864781",
"0.4850431",
"0.48317042",
"0.48278582",
"0.48274493",
"0.4796925",
"0.4790943",
"0.478478",
"0.4772516",
"0.4730719",
"0.47219548",
"0.4719147",
"0.47173634",
"0.4708375",
"0.4706184",
"0.47060147",
"0.47001058",
"0.46972635",
"0.46943232",
"0.4688564",
"0.46673906",
"0.46641663",
"0.46420884",
"0.46398976",
"0.463486",
"0.4632",
"0.46288934",
"0.46102738",
"0.4594523",
"0.4593488",
"0.45860904",
"0.45774275",
"0.4571098",
"0.45688465",
"0.45637223",
"0.45544568",
"0.45488772",
"0.45469928",
"0.45452005",
"0.45402062",
"0.4539654",
"0.4528982",
"0.4528982",
"0.45230907",
"0.45215765",
"0.45125753",
"0.45065564",
"0.45056024",
"0.4505533",
"0.4496537",
"0.44897506",
"0.44795078",
"0.44788086"
]
| 0.7513899 | 0 |
Retrieves the Schema to use for this split. | public Schema getSchema() {
return schema;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Schema getSchema();",
"public Schema getSchema() {\n\t\treturn _schema;\n\t}",
"public Schema getSchema() {\n return mSchema;\n }",
"public Schema getSchema() {\n return schema;\n }",
"public String getSchema()\n {\n return schema;\n }",
"public Schema getSchema()\n {\n return schema;\n }",
"public String getSchema() {\n return schema;\n }",
"public String getSchema() {\n return schema;\n }",
"public String getSchema() {\n return schema;\n }",
"public java.lang.String getSchema() {\r\n return schema;\r\n }",
"S getSchema();",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"public org.apache.avro.Schema getSchema() { return SCHEMA$; }",
"public TypeDescription getSchema() {\n return schema;\n }",
"public String getSchema()\n {\n String schema = \"\";\n if(this.props != null && !this.props.isEmpty())\n {\n schema = this.props.getProperty(\"db.schema\");\n }\n \n return schema;\n }",
"AstroSchema getSchema();",
"public String schema() {\n return schemaName;\n }",
"public String schema() {\n return schemaName;\n }",
"public List<String> getSchema() {\n\t\treturn schema;\n\t}",
"public org.w3c.dom.Document getSchema() {\r\n return schema;\r\n }",
"public static Schema getClassSchema() {\n return schema$;\n }",
"public static Schema getClassSchema() {\n return schema$;\n }",
"public static Schema getClassSchema() {\n return schema$;\n }",
"public static Schema getClassSchema() {\n return schema$;\n }",
"public SchemaDef getSourceSchema();",
"public Integer getSchema()\r\n\t{\r\n\t\tif(element instanceof Schema)\r\n\t\t\treturn ((Schema)element).getId();\r\n\t\treturn ((SchemaElement)element).getBase();\r\n\t}",
"public SchemaInfo getAssociatedSchema() {\n return lookupSchema(getTargetNamespace());\n }",
"SchemaManager getSchemaManager();",
"public SchemaInfo getSchema () throws Exception;",
"public String getSchemaLocation();",
"public String getObject_schema() {\n return object_schema;\n }",
"String getRemoteSchema();",
"@Override\n public Schema getXMLSchema() throws XMLPlatformException {\n return documentBuilderFactory.getSchema();\n }",
"public SchemaElement getDatabaseSchema() {\n return SchemaElement.forName(getDatabaseSchemaName());\n }",
"public AnnotatedBase getSchemaComponent() {\n return m_item.getSchemaComponent();\n }",
"public abstract SchemaClass getSchemaClass();",
"String getSchemaName();",
"String getSchemaName();",
"public String getSchemaLocation() {\r\n return schemaLocation;\r\n }",
"public String getSchemaName() { return schemaName; }",
"@Override\n public Schema getSchema () throws BlinkException\n {\n return schema;\n }",
"public SchemaType getResponseSchemaType()\n {\n return responseSchemaType;\n }",
"@Override\n public IMeasurementSchema getSchema() {\n return this.schema;\n }",
"abstract Pipe.Schema<T> getPipeSchema();",
"public String getSchemaLocation() {\r\n\t\treturn mSchemaLocation;\r\n\t}",
"public MetaSchema getMetaSchema(int iSchema);",
"public String schemaName() {\n return this.schemaName;\n }",
"public abstract String getSchemaURI();",
"public SchemaInfo readServerSchema() {\n String path = \"/schema\";\n Span span = this.tracer.buildSpan(\"Client.Schema\").start();\n try {\n try (CloseableHttpResponse response = clientExecute(\"GET\", path, null, null, \"Error while reading schema\",\n ReturnClientResponse.ERROR_CHECKED_RESPONSE, false)) {\n HttpEntity entity = response.getEntity();\n if (entity != null) {\n try (InputStream src = entity.getContent()) {\n return SchemaInfo.fromInputStream(src);\n }\n }\n throw new PilosaException(\"Server returned empty response\");\n }\n } catch (IOException ex) {\n throw new PilosaException(\"Error while reading response\", ex);\n } finally {\n span.finish();\n }\n }",
"@Override\r\n\t\tpublic String getSchema() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"List<GlobalSchema> schemas();",
"public SchemaType getRequestSchemaType()\n {\n return requestSchemaType;\n }",
"@Override\n public AbstractSchema getSchema(final String name) {\n if (name == null) {\n return getDefaultSchema();\n }\n\n return schemas.get(name);\n }",
"String handlerSchema();",
"public Schema readSchema() {\n Schema result = Schema.defaultSchema();\n SchemaInfo schema = readServerSchema();\n for (IndexInfo indexInfo : schema.getIndexes()) {\n Index index =\n result.index(indexInfo.getName(), indexInfo.getIndexOptions(), indexInfo.getShardWidth());\n List<FieldInfo> fields = indexInfo.getFields();\n if (fields != null) {\n for (IFieldInfo fieldInfo : indexInfo.getFields()) {\n // do not read system fields\n if (systemFields.contains(fieldInfo.getName())) {\n continue;\n }\n index.field(fieldInfo.getName(), fieldInfo.getOptions());\n }\n }\n }\n return result;\n }",
"public String getRawSchema() {\n return rawSchema;\n }",
"@NonNull\n public String getSchemaType() {\n return mBundle.getString(SCHEMA_TYPE_FIELD, \"\");\n }",
"public TapSchema findOneSchema(String schemaName);",
"public String getDatabaseSchemaName() {\n return databaseSchemaName;\n }",
"@Override\n public String getSchema() throws IOException, AutomationException {\n serverLog.addMessage(3, 200, \"Request received in Sample Object Interceptor for getSchema\");\n\n /*\n * Add code to manipulate schema requests here\n */\n\n IRESTRequestHandler restRequestHandler = soiHelper.findRestRequestHandlerDelegate(so);\n if (restRequestHandler != null) {\n return restRequestHandler.getSchema();\n }\n\n return null;\n }",
"public SchemaCustom getSchemaCustom() {\n return m_schemaCustom;\n }",
"public InputSchema inputSchema() {\n return this.inputSchema;\n }",
"String getSchemaFile();",
"public static Schema getSchema(JobConf conf) throws IOException\n {\n TableExpr expr = getInputExpr(conf);\n return expr.getSchema(conf);\n }",
"public FeatureFilter getSchema();",
"Schema createSchema();",
"@NonNull\n public String getSchemaType() {\n return Preconditions.checkNotNull(mBundle.getString(SCHEMA_TYPE_FIELD));\n }",
"public Schema getSchema() throws IOException {\n byte[] schemaBytes = jniWrapper.nativeGetSchema(nativeInstanceId);\n\n try (MessageChannelReader schemaReader = new MessageChannelReader(\n new ReadChannel(new ByteArrayReadableSeekableByteChannel(schemaBytes)),\n allocator)) {\n MessageResult result = schemaReader.readNext();\n if (result == null) {\n throw new IOException(\"Unexpected end of input. Missing schema.\");\n }\n\n return MessageSerializer.deserializeSchema(result.getMessage());\n }\n }",
"public static Schema loadSchema(Configuration conf) {\n SchemaWritable schema = new SchemaWritable();\n try {\n FileSystem fs = FileSystem.get(conf);\n Path schemaPath = getSchemaPath(conf);\n if (fs.isDirectory(schemaPath)) {\n for (FileStatus status : fs.listStatus(schemaPath)) {\n schemaPath = status.getPath();\n if (status.isFile() && status.getLen() > 0\n && !schemaPath.getName().startsWith(DEBUG_OUT)) {\n break;\n }\n }\n }\n SequenceFile.Reader in = new SequenceFile.Reader(conf,\n SequenceFile.Reader.file(schemaPath));\n NullWritable key = NullWritable.get();\n in.next(key, schema);\n in.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return schema;\n }",
"public String getStrDataSchema() {\n return strDataSchema;\n }",
"protected static final SchemaFactory getSchemaFactory() {\r\n if (schemaFactory == null) {\r\n\r\n // 1. Lookup a factory for the W3C XML Schema language\r\n schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\r\n\r\n // 2. Set the custom XML catalog resolver :\r\n schemaFactory.setResourceResolver(CustomXmlCatalogResolver.getInstance());\r\n }\r\n\r\n return schemaFactory;\r\n }",
"public SchemaType getHeaderSchemaType()\n {\n return headerSchemaType;\n }",
"SchemaDefinition createSchemaDefinition();",
"public Collection<Map<String, String>> getSchemas() {\n\t\treturn null;\r\n\t}",
"protected SchemaTypeLoader getSchemaTypeLoader() {\n return Connector15DCBRoot.SCHEMA_TYPE_LOADER;\n }",
"public String getSchemaName() {\r\n\t\treturn this.tableMetaDataContext.getSchemaName();\r\n\t}",
"@Override\n\tpublic ColumnSchema<?> getSchema() {\n\t\treturn aspect;\n\t}",
"public ArrayList<Column> getSchema();",
"public MetaSchema getMetaSchema(String sName);",
"public DataSchemaModel getDataSchemaModel()\n {\n return reportDesignerContext.getActiveContext().getReportDataSchemaModel();\n }",
"private static Schema schema(Properties props) {\n String schemaString = props.getProperty(InputFormatConfig.TABLE_SCHEMA);\n Preconditions.checkNotNull(schemaString, \"Table schema not set\");\n return SchemaParser.fromJson(props.getProperty(InputFormatConfig.TABLE_SCHEMA));\n }",
"public int getConstraintSchemaPart() {\n return schemaPart;\n }",
"public Collection<TapSchema> findAllSchemas();",
"protected SchemaInfo lookupSchema(String namespace) {\n if (\"\".equals(namespace)) {\n namespace = null;\n }\n\n return this.jaxbContext.getSchemas().get(namespace);\n }",
"public org.apache.spark.sql.catalyst.ScalaReflection.Schema schemaFor (org.apache.spark.sql.catalyst.ScalaReflection.universe tpe) ;",
"@ApiModelProperty(value = \"The schema describing each field present on the issue.\")\n public Map<String, JsonTypeBean> getSchema() {\n return schema;\n }",
"public YangTreeNode getSchemaTree() {\n\t\treturn schemaTree;\n\t}",
"public int getMetaSchemas();",
"public Map<String, BsonDocument> getLocalSchemaMap() {\n return localSchemaMap;\n }",
"private JsonSchema getDataUseInstance() {\n String schemaString = getDataUseSchemaV3();\n JsonSchemaFactory factory = JsonSchemaFactory.getInstance(VersionFlag.V7);\n return factory.getSchema(schemaString);\n }",
"public String getDataSetSchemaName() {\n\t\treturn this.datasetSchemaName;\n\t}",
"public FeatureTypeSchema_Impl() {\r\n schema = XMLTools.create();\r\n }",
"static Path getSchemaPath(Configuration conf) {\n int iteration = lastSchemaUpdate(conf);\n return getOutputPath(conf, SCHEMA_BASE + iteration);\n }",
"@Override\r\n\t\tpublic TypeInfo getSchemaTypeInfo()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public int getSchemaVersion() {\n return SCHEMA_VERSION;\n }",
"public static String getSchema( String url )\n\t{\n\t\tString db = url.split( \":\" )[ 1 ];\n\t\tString result = null;\n\t\tif( SCHEMAS.containsKey( db ) )\n\t\t{\n\t\t\tresult = SCHEMAS.get( db );\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif( MYSQL.equals( db ) )\n\t\t\t{\n//\t\t\t\tString dbNameAndProps = url.split( \"/\" )[ 3 ];\n//\t\t\t\tresult = dbNameAndProps.split( \"[?]\" )[ 0 ];\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public InputSchemaMapping inputSchemaMapping() {\n return this.inputSchemaMapping;\n }"
]
| [
"0.7716752",
"0.76803476",
"0.76346165",
"0.7631329",
"0.7539031",
"0.75347817",
"0.7520463",
"0.7520463",
"0.74568015",
"0.7408546",
"0.74054724",
"0.72902966",
"0.72902966",
"0.72902966",
"0.72902966",
"0.7199309",
"0.7078114",
"0.70729065",
"0.7009325",
"0.69706476",
"0.69706476",
"0.68868965",
"0.6854239",
"0.6795553",
"0.6795553",
"0.6795553",
"0.6795553",
"0.6748951",
"0.66578203",
"0.6643106",
"0.6626988",
"0.66267526",
"0.6606105",
"0.6597492",
"0.6576774",
"0.65595835",
"0.65579015",
"0.648991",
"0.64648396",
"0.641419",
"0.641419",
"0.6408608",
"0.6400024",
"0.6368575",
"0.63454777",
"0.6329055",
"0.6326943",
"0.6312854",
"0.6284867",
"0.6250001",
"0.6237833",
"0.6227046",
"0.62122774",
"0.6182775",
"0.6179271",
"0.6175535",
"0.6162114",
"0.6153552",
"0.61521286",
"0.6146873",
"0.6145273",
"0.6137203",
"0.6125252",
"0.6099246",
"0.60828286",
"0.6057421",
"0.6044669",
"0.6041359",
"0.6037027",
"0.60304695",
"0.6006652",
"0.5979499",
"0.5978956",
"0.59572554",
"0.5954436",
"0.59508896",
"0.5928498",
"0.59181726",
"0.5901981",
"0.58694476",
"0.58573675",
"0.58572924",
"0.58492917",
"0.5830588",
"0.58027613",
"0.5720147",
"0.5708513",
"0.5694337",
"0.5682918",
"0.5663529",
"0.56524116",
"0.5646186",
"0.56375957",
"0.5622388",
"0.56036234",
"0.55820245",
"0.55808884",
"0.5576507",
"0.55677277",
"0.55568147"
]
| 0.75306475 | 6 |
A consistency checks related to the NULL object | private static boolean verifyNullObject(LogManager pLogger, UnmodifiableSMG pSmg) {
SMGValue null_value = null;
// Find a null value in values
for (SMGValue value : pSmg.getValues()) {
if (pSmg.getObjectPointedBy(value) == SMGNullObject.INSTANCE) {
null_value = value;
break;
}
}
// Verify that one value pointing to NULL object is present in values
if (null_value == null) {
pLogger.log(Level.SEVERE, "SMG inconsistent: no value pointing to null object");
return false;
}
// Verify that NULL value returned by getNullValue() points to NULL object
if (pSmg.getObjectPointedBy(SMGZeroValue.INSTANCE) != SMGNullObject.INSTANCE) {
pLogger.log(Level.SEVERE, "SMG inconsistent: null value not pointing to null object");
return false;
}
// Verify that the value found in values is the one returned by getNullValue()
if (SMGZeroValue.INSTANCE != null_value) {
pLogger.log(
Level.SEVERE,
"SMG inconsistent: null value in values set not returned by getNullValue()");
return false;
}
// Verify that NULL object has no value
SMGEdgeHasValueFilterByObject filter =
SMGEdgeHasValueFilter.objectFilter(SMGNullObject.INSTANCE);
if (!pSmg.getHVEdges(filter).isEmpty()) {
pLogger.log(Level.SEVERE, "SMG inconsistent: null object has some value");
return false;
}
// Verify that the NULL object is invalid
if (pSmg.isObjectValid(SMGNullObject.INSTANCE)) {
pLogger.log(Level.SEVERE, "SMG inconsistent: null object is not invalid");
return false;
}
// Verify that the size of the NULL object is zero
if (SMGNullObject.INSTANCE.getSize() != 0) {
pLogger.log(Level.SEVERE, "SMG inconsistent: null object does not have zero size");
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean canProcessNull() {\n return false;\n }",
"boolean checkNull();",
"@Override\n public boolean isNull(){\n return (this.nativeHandle == 0L); \n }",
"@Test\n\tvoid testCheckNull3() {\n\t\tassertTrue(DataChecker.checkNull((Object)null));\n\t}",
"@Test\n\tvoid testCheckNull1() {\n\t\tassertFalse(DataChecker.checkNull(new Integer(42)));\n\t}",
"public final void testNullObjectEquals() {\n assertFalse(testTransaction1.equals(null)); // needed for test\n // pmd doesn't like either way\n }",
"public TestCase isNull( Object obj );",
"@Test\n\tvoid testCheckNulls1() {\n\t\tassertTrue(DataChecker.checkNulls(null));\n\t}",
"@Override\n public boolean isMaybeNull() {\n checkNotPolymorphicOrUnknown();\n return (flags & NULL) != 0;\n }",
"public boolean isNull(){\n return false;\n }",
"public boolean is_pure_nil() {return true;}",
"private void checkRep() {\n\t\tassert (this != null) : \"this Edge cannot be null\";\n\t\tassert (this.label != null) : \"this Edge's label cannot be null\";\n\t\tassert (this.child != null) : \"this Edge's child cannot be null\";\n\t}",
"private boolean isNull(Object anObject) {\n\t\tif(anObject == null) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"private void checkNull(T x) throws NullPointerException\n\t{\n\t\tif (x == null)\n\t\t{\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}",
"@Test\n\tvoid testCheckNulls4() {\n\t\tObject[] o = {2,5f,\"Test\",Duration.ZERO,new Station(0,0,\"Test\")};\n\t\tassertFalse(DataChecker.checkNulls(o));\n\t}",
"@Override\n\tpublic void flagNull() {\n\t\t\n\t}",
"@Test\n\tvoid testCheckNulls3() {\n\t\tObject[] o = {null,null,null,null,null};\n\t\tassertTrue(DataChecker.checkNulls(o));\n\t}",
"public boolean isNull() {\n return this.data == null;\n }",
"public void visitACONST_NULL(ACONST_NULL o){\n\t\t// Nothing needs to be done here.\n\t}",
"private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}",
"@Test\n\tvoid testCheckNull2() {\n\t\tassertTrue(DataChecker.checkNull(null));\n\t}",
"private static void assertObjectInGetInternalStateIsNotNull(Object object) {\n if (object == null) {\n throw new IllegalArgumentException(\"The object containing the field cannot be null\");\n }\n }",
"boolean isNull();",
"public TestCase notNull( Object obj );",
"boolean isNilValue();",
"@Test\n\tvoid testCheckNulls2() {\n\t\tObject[] o = {2,5f,\"Test\",null,\"Test2\"};\n\t\tassertTrue(DataChecker.checkNulls(o));\n\t}",
"public boolean isNull() {\n return false;\n }",
"public final boolean isNull()\n\t{\n\t\treturn (dataValue == null) && (stream == null) && (_blobValue == null);\n\t}",
"public boolean isNull() {\n return channel instanceof NullChannel;\n }",
"public void validate() throws org.apache.thrift.TException {\n if (is_null == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'is_null' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }",
"default boolean isNil(final SObjectWithoutFields obj) {\n return obj == Nil.nilObject;\n }",
"public void checkRep() {\n\t\tif (parent == null || child == null || l == null) {\n\t\t\tthrow new RuntimeException(\"Edge values can never be null.\");\n\t\t}\n\t}",
"@Test(expected = IllegalArgumentException.class)\r\n public void testCreationFromNullOrigin()\r\n {\r\n final Circle c = new Circle(null, 0);\r\n c.equals(null);\r\n }",
"public boolean isNull() {\n\t\treturn false;\n\t}",
"public boolean isNonNull() {\n return true;\n }",
"public boolean canBeNullObject() { // for future, nobody calls when first\n return _canBeNullObject;\n }",
"private static boolean isNotNull(Object object) {\n\t\tif (object != null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"boolean getActiveNull();",
"private boolean m16125a(Object obj) {\n return obj == null || obj.toString().equals(\"\") || obj.toString().trim().equals(\"null\");\n }",
"public static <T> void checkNull(T obj){\n if(obj == null){\n throw new IllegalArgumentException(\"Object is null\");\n }\n }",
"private boolean checkEmpty() {\n\t\treturn this.array[0] == null;\n\t}",
"boolean isNullOmittable();",
"public boolean anyNull () ;",
"@Override\n\t\tpublic void checkPreconditions() {\n\t\t}",
"public void testNormalPutNullValues()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkPutNullValues(pmf,\r\n HashMap1.class,\r\n ContainerItem.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }",
"public boolean isNullOrUndef() {\n checkNotPolymorphicOrUnknown();\n return (flags & (NULL | UNDEF)) != 0\n && (flags & (NUM | STR | BOOL)) == 0 && num == null && str == null && object_labels == null && getters == null && setters == null;\n }",
"public void testSun13AccuracyNull_Shallow() throws Exception {\n assertEquals(\"null memory size not correct\", 4,\n test.getShallowMemoryUsage(null).getUsedMemory());\n }",
"boolean isNilExchange();",
"public boolean isNullInstance()\n {\n return code == null;\n }",
"private static void checkNull(Object value, String name) throws LateDeliverablesProcessingException {\r\n if (value == null) {\r\n throw new LateDeliverablesProcessingException(\"The \" + name + \" should not be null.\");\r\n }\r\n }",
"protected void sequence_IS_NULL_NullCheck(ISerializationContext context, NullCheck semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"public boolean isNullRecord () {\n if ((latitude == FLOATNULL) &&\n (longitude == FLOATNULL) &&\n (depth == FLOATNULL) &&\n (temperatureMin == FLOATNULL) &&\n (temperatureMax == FLOATNULL) &&\n (salinityMin == FLOATNULL) &&\n (salinityMax == FLOATNULL) &&\n (oxygenMin == FLOATNULL) &&\n (oxygenMax == FLOATNULL) &&\n (nitrateMin == FLOATNULL) &&\n (nitrateMax == FLOATNULL) &&\n (phosphateMin == FLOATNULL) &&\n (phosphateMax == FLOATNULL) &&\n (silicateMin == FLOATNULL) &&\n (silicateMax == FLOATNULL) &&\n (chlorophyllMin == FLOATNULL) &&\n (chlorophyllMax == FLOATNULL)) {\n return true;\n } else {\n return false;\n } // if ...\n }",
"private static void checkArg(Object paramObject) {\n/* 687 */ if (paramObject == null)\n/* 688 */ throw new NullPointerException(\"Argument must not be null\"); \n/* */ }",
"boolean isNilObjectives();",
"private Item checkItemNotNull(Item item) throws NullPointerException {\n if (item == null) {\n throw new NullPointerException(\"The item must not be null\");\n }\n return item;\n }",
"@Test\n public void empty_diagnostic_info_should_not_be_null_when_read_from_db() {\n //given that an app has an \"empty\" diagnostic is saved to database\n String uuid = UUID.randomUUID().toString();\n ApplicationInfo info = ApplicationInfo.builder().uuid(uuid).build();\n assertThat(info.getDiagnosticInfo(), is(notNullValue()));\n applicationRepository.save(info);\n\n //when we retrieve it from db\n ApplicationInfo retrievedInfo = applicationRepository.findOne(uuid);\n\n //then the empty diagnosticInfo is not null\n assertThat(retrievedInfo.getDiagnosticInfo(), is(notNullValue()));\n }",
"private static boolean empty(Object object) {\n\t\treturn false;\n\t}",
"private void assertNullHandling(UMLMessageArgument msgArg) throws Exception\r\n\t{\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((UMLMessageArgument)null));\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((Object)null));\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((UMLSymbol)null));\r\n\t}",
"public void testCheckNull() {\n Util.checkNull(\"\", \"test\");\n }",
"public boolean isEmpty(){\n return thing == null;\n }",
"@Test(timeout = 4000)\n public void test051() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n jSONObject0.putOpt((String) null, (Object) null);\n Object object0 = JSONObject.NULL;\n assertNotNull(object0);\n }",
"@Test(timeout = 4000)\n public void test076() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Object object0 = new Object();\n boolean boolean0 = range0.equals((Object) null);\n assertFalse(boolean0);\n assertTrue(range0.isEmpty());\n }",
"public boolean isEmpty()\n {return data == null;}",
"void writeNullObject() throws SAXException {\n workAttrs.clear();\n addIdAttribute(workAttrs, \"0\");\n XmlElementName elemName = uimaTypeName2XmiElementName(\"uima.cas.NULL\");\n startElement(elemName, workAttrs, 0);\n endElement(elemName);\n }",
"boolean isIsNotNull();",
"@Test\r\n public void testEqualsNull() {\r\n SnakeSquare instance = new SnakeSquare(33, 21);\r\n try {\r\n assertEquals(false, instance.equals(null));\r\n } catch (NullPointerException e) { \r\n fail();\r\n }\r\n }",
"public Boolean isNull(){\n\t\treturn equals(NULL);\n\t}",
"public void createObject() throws NullPointerException{\n Object object1 = new Object();\r\n Object object2 = new Object();\r\n object2=null;\r\n if(object2!=null){\r\n object2.equals(object1);\r\n }\r\n else{\r\n //throw new NullPointerException(\"Exception handled by throws statement\");//throws an exception, is always followed by an object new.\r\n }\r\n }",
"private void checkReference()\r\n {\r\n if (myKeyRef.get() == null)\r\n {\r\n myValue = null;\r\n }\r\n }",
"@SuppressWarnings(\"UnusedDeclaration\")\n public IsNull() {\n super();\n }",
"private static boolean m4280b(Object obj, Object obj2) {\n if (obj != obj2) {\n if (obj == null || obj.equals(obj2) == null) {\n return null;\n }\n }\n return true;\n }",
"@Test\r\n void test_insert_null_vertex() {\r\n graph.addVertex(null);\r\n vertices = graph.getAllVertices();\r\n \r\n if(vertices.contains(null))\r\n fail();\r\n if(vertices.size() != 0 ||graph.order() != 0) {\r\n fail();\r\n }\r\n\r\n }",
"@Override\n public void setNull() {\n\n }",
"public static boolean isNull()\r\n {\r\n return (page == null);\r\n }",
"private static boolean nullOk(Schema schema) {\n if (Schema.Type.NULL == schema.getType()) {\n return true;\n } else if (Schema.Type.UNION == schema.getType()) {\n for (Schema possible : schema.getTypes()) {\n if (nullOk(possible)) {\n return true;\n }\n }\n }\n return false;\n }",
"public boolean isNull() {\r\n\t\treturn target == null;\r\n\t}",
"public static boolean isNull() {\r\n\t\tif(instance==null)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}",
"public boolean isNilZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n nc.vo.crd.bd.interf.zyhtvo.ZyhtVO target = null;\n target = (nc.vo.crd.bd.interf.zyhtvo.ZyhtVO)get_store().find_element_user(ZYHTVO$0, 0);\n if (target == null) return false;\n return target.isNil();\n }\n }",
"default Empty getEmptyObject() {\n return null;\n }",
"@Override\npublic Boolean isEmpty() {\n\treturn null;\n}",
"@Test\n public void testEmptyTaintContainsNullTaint() {\n Taint t = Taint.emptyTaint();\n assertTrue(t.containsLabel(null));\n }",
"@Test\n \tpublic void testWithNullValue() {\n \t\tAssert.assertFalse(f1.equals(fnull));\n \t}",
"public void nullstill();",
"@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }",
"public void testGetNullValue() {\n ValueString vs = new ValueString();\n\n assertNull(vs.getString());\n assertEquals(0.0D, vs.getNumber(), 0.0D);\n assertNull(vs.getDate());\n assertEquals(false, vs.getBoolean());\n assertEquals(0, vs.getInteger());\n assertEquals(null, vs.getBigNumber());\n assertNull(vs.getSerializable());\n }",
"@Test\r\n\t/* emptyTest\r\n\t * \r\n\t * checks: public boolean empty()\r\n\t * \r\n\t * This test checks:\r\n\t * \t\t- if the color instance variable in Car is equal null\r\n\t * \t\t- if the color instance variable is Car is not equal to null\r\n\t * \r\n\t * \r\n\t */\r\n\tpublic void emptyTest()\r\n\t{\n\t\tint x = 23;\r\n\t\tint y = 24;\r\n\t\tint speed = 6;\r\n\t\tColor colour = new Color (10,10,10);\r\n\t\t\r\n\t\tCar testCar = new Car(x,y,speed,colour);\r\n\t\t\r\n\t\tboolean colourValue = testCar.empty();\r\n\t\tassertFalse(colourValue);\r\n\t\t\r\n\t\t\r\n\t\t//Test the value of testCar.color is null \r\n\t\tx = 3;\r\n\t\ty = 74;\r\n\t\tspeed = 5;\r\n\t\tColor noColour = null;\r\n\t\t\r\n\t\tCar testCar2 = new Car(x,y,speed,noColour);\r\n\t\t\r\n\t\tcolourValue = testCar2.empty();\r\n\t\tassertTrue(colourValue);\r\n\t\t\r\n\t}",
"@Test\n public void equalsOtherTest3() {\n assertFalse(device.equals(null));\n }",
"public boolean hasObject(){\n return _object != null;\n }",
"public void visitIFNULL(IFNULL o){\n\t\tif (!(stack().peek() instanceof ReferenceType)){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of a ReferenceType, but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\treferenceTypeIsInitialized(o, (ReferenceType) (stack().peek()) );\t\n\t}",
"@Test\n public void testUpdateNegativeItemIsNull() throws Exception{\n Item item = null;\n itemDao.update(item);\n }",
"public boolean isNull() {\n return originalValue == null;\n }",
"public boolean isNotNullTid() {\n return genClient.cacheValueIsNotNull(CacheKey.tid);\n }",
"public void testCheckNull() {\n Util.checkNull(\" \", \"test\");\n }",
"public boolean isEmpty( Object object ){\n if( object == null ){\n return true;\n }\n return false;\n }",
"@Override\n\tpublic void visit(NullValue arg0) {\n\n\t}",
"@Test public void nullCoorinate(){\n body.setBodyCoordinate(null);\n assertEquals(\"testing to see if its empty\", body.getBodyCoordinate(), null);\n }",
"@Override\r\n\tpublic boolean validaObj() {\n\t\treturn false;\r\n\t}",
"public void testCreateNull() {\n System.out.println(\"createNull\");// NOI18N\n \n PropertyValue result = PropertyValue.createNull();\n \n assertNotNull(result);\n assertEquals(result.getKind(),PropertyValue.Kind.NULL);\n }",
"public void testValidNullPointerException() {\r\n assertNotNull(\"setup fails\", uploadRequestValidator);\r\n try {\r\n uploadRequestValidator.valid(null);\r\n fail(\"if argument is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n }",
"boolean isNilIsManaged();"
]
| [
"0.7068443",
"0.67871505",
"0.6769217",
"0.67060107",
"0.66589385",
"0.6633659",
"0.6621071",
"0.66199464",
"0.65772444",
"0.6576889",
"0.6543272",
"0.6487982",
"0.648415",
"0.6484118",
"0.6473081",
"0.6419824",
"0.6416796",
"0.64138305",
"0.6395301",
"0.63644665",
"0.63598424",
"0.6310012",
"0.6292912",
"0.62896353",
"0.62865925",
"0.6285433",
"0.62789214",
"0.625006",
"0.6237377",
"0.62255895",
"0.6224872",
"0.6215615",
"0.6212305",
"0.6210216",
"0.62085265",
"0.62021106",
"0.6200939",
"0.6195901",
"0.6182263",
"0.6180343",
"0.61639917",
"0.61602414",
"0.6134804",
"0.6122711",
"0.6099898",
"0.60995114",
"0.6082642",
"0.6077063",
"0.6076162",
"0.6071784",
"0.6069305",
"0.6065987",
"0.60656285",
"0.6042978",
"0.6039806",
"0.6037247",
"0.6036882",
"0.603662",
"0.6032309",
"0.603138",
"0.60276556",
"0.6015197",
"0.601456",
"0.59964496",
"0.59921366",
"0.59880495",
"0.59861636",
"0.597343",
"0.59698373",
"0.5965747",
"0.59632766",
"0.59627575",
"0.59491354",
"0.59446055",
"0.59416205",
"0.59363216",
"0.59328336",
"0.5924789",
"0.5918455",
"0.5909923",
"0.5906543",
"0.5897592",
"0.58914006",
"0.58863837",
"0.58854944",
"0.58632344",
"0.5862344",
"0.5848951",
"0.58443415",
"0.5831859",
"0.5829032",
"0.5825381",
"0.5814741",
"0.5810309",
"0.5807371",
"0.5805685",
"0.5801142",
"0.5797815",
"0.57926816",
"0.57926184"
]
| 0.6840515 | 1 |
Verifies that invalid regions do not have any HasValue edges, as this is forbidden in consistent SMGs | private static boolean verifyInvalidRegionsHaveNoHVEdges(
LogManager pLogger, UnmodifiableSMG pSmg) {
for (SMGObject obj : pSmg.getObjects()) {
if (pSmg.isObjectValid(obj) || pSmg.isObjectExternallyAllocated(obj)) {
continue;
}
// Verify that the HasValue edge set for this invalid object is empty
SMGEdgeHasValueFilterByObject filter = SMGEdgeHasValueFilter.objectFilter(obj);
if (!pSmg.getHVEdges(filter).isEmpty()) {
pLogger.log(Level.SEVERE, "SMG inconsistent: invalid object has a HVEdge");
return false;
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private final void verifyGhostRegionValues(ComputationalComposedBlock block) throws MPIException {\n\t\tBoundaryIterator boundaryIterator = block.getBoundaryIterator();\n\t\tBoundaryIterator expectedValuesIterator = block.getBoundaryIterator();\n\t\tBoundaryId boundary = new BoundaryId();\n\t\tfor (int d=0; d<2*DIMENSIONALITY; d++) {\n\t\t\tblock.receiveDoneAt(boundary);\n\t\t\tboundaryIterator.setBoundaryToIterate(boundary);\n\t\t\tBoundaryId oppositeBoundary = boundary.oppositeSide();\n\t\t\texpectedValuesIterator.setBoundaryToIterate(oppositeBoundary);\n\t\t\twhile (boundaryIterator.isInField()) {\n\t\t\t\t// Check the ghost values outside the current element.\n\t\t\t\tfor (int offset=1; offset<extent; offset++) {\n\t\t\t\t\tint neighborOffset = offset-1;\n\t\t\t\t\tint directedOffset = boundary.isLowerSide() ? -offset : offset;\n\t\t\t\t\tint directedNeighborOffset = boundary.isLowerSide() ? -neighborOffset : neighborOffset;\n\t\t\t\t\tdouble expected = expectedValuesIterator.currentNeighbor(boundary.getDimension(), directedNeighborOffset);\n\t\t\t\t\tdouble actual = boundaryIterator.currentNeighbor(boundary.getDimension(), directedOffset);\n\t\t\t\t\tassertEquals(expected, actual, 4*Math.ulp(expected));\n\t\t\t\t}\n\t\t\t\tboundaryIterator.next();\n\t\t\t\texpectedValuesIterator.next();\n\t\t\t}\n\t\t}\n\t}",
"private boolean hasValidBounds() {\n\n\n\n return false;\n }",
"@Test\n\tpublic void missingBoundaryValuesAreFilledWithBadQualityValues() {\n\t\tfinal FloatTimeSeries t0 = new FloatTreeTimeSeries();\n\t\tt0.addValues(TimeSeriesUtils.createStepFunction(10, 10, 10, 10, 0)); // constant function = 10\n\t\tfinal FloatTimeSeries t1 = new FloatTreeTimeSeries();\n\t\tt1.addValues(TimeSeriesUtils.createStepFunction(5, 20, 25, 20, 0)); // constant function = 20\n\t\tt1.addValue(new SampledValue(new FloatValue(234F), 60, Quality.BAD));\n\t\tt0.setInterpolationMode(InterpolationMode.STEPS);\n\t\tt1.setInterpolationMode(InterpolationMode.STEPS);\n\t\tfinal ReadOnlyTimeSeries avg = MultiTimeSeriesUtils.getAverageTimeSeries(Arrays.<ReadOnlyTimeSeries> asList(t0, t1), 0L, 130);\n\t\tAssert.assertEquals(\"Time series sum has wrong number of data points\", 14, avg.size());\n\t\tAssert.assertEquals(InterpolationMode.STEPS, avg.getInterpolationMode());\n\t\t// now we calculate it again, this time demanding boundary markers\n\t\tfinal ReadOnlyTimeSeries avg2 = MultiTimeSeriesUtils.getAverageTimeSeries(Arrays.<ReadOnlyTimeSeries> asList(t0, t1), 0L, 130, true, null, true);\n\t\tAssert.assertEquals(\"Time series sum has wrong number of data points\", 15, avg2.size());\n\t\tAssert.assertEquals(Quality.BAD, avg2.getValue(0).getQuality());\n\t\tAssert.assertEquals(Quality.BAD, avg2.getValue(9).getQuality());\n\t\tAssert.assertEquals(Quality.GOOD, avg2.getValue(10).getQuality());\n\t\tAssert.assertEquals(Quality.GOOD, avg2.getValue(11).getQuality());\n\t\tAssert.assertEquals(Quality.GOOD, avg2.getValue(130).getQuality());\n\t}",
"@Override\n public boolean hasValenceError() {\n String valenceCheck = atom.checkBadValence();\n//\n// System.out.println(\"valenceCheckBad \" + valenceCheck);\n// System.out.println(\"calling actual checkValence \" + atom.checkValence());\n// System.out.println(\"valenceCheckBad again \" + atom.checkBadValence());\n return !valenceCheck.isEmpty();\n }",
"private void checkGenomes() throws IOException {\n log.info(\"Validating genome pairs.\");\n Set<String> idSet = this.genomes.stream().flatMap(x -> x.getIDs().stream()).collect(Collectors.toSet());\n var errorSet = this.pairs.getIdSet().stream().filter(x -> ! idSet.contains(x)).collect(Collectors.toList());\n if (! errorSet.isEmpty())\n throw new IOException(\"The following genomes are missing from the sources: \" +\n StringUtils.join(errorSet, \", \"));\n }",
"private void assertValidity() {\n if (latitudes.size() != longitudes.size()) {\n throw new IllegalStateException(\"GIS location needs equal number of lat/lon points.\");\n }\n if (!(latitudes.size() == 1 || latitudes.size() >= 3)) {\n throw new IllegalStateException(\"GIS location needs either one point or more than two.\");\n }\n }",
"public boolean valid() {\n return start != null && ends != null && weavingRegion != null;\n }",
"private static boolean squaresAreInvalid(int[][] grid) {\n\t\tif(rowOfSquaresIsInvalid(Rows.TOP, grid))\treturn true;\n\t\tif(rowOfSquaresIsInvalid(Rows.MID, grid))\treturn true;\n\t\tif(rowOfSquaresIsInvalid(Rows.BOT, grid))\treturn true;\n\t\treturn false;\n\t}",
"@Test(timeout = 4000)\n public void test052() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n range1.intersects(range0);\n range0.equals(range1);\n Range.Comparators.values();\n range0.getBegin();\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }",
"private void checkRep() {\n assert (width <= Board.SIDELENGTH);\n assert (height <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.x() >= 0 && this.boundingBoxPosition.x() <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.y() >= 0 && this.boundingBoxPosition.y() <= Board.SIDELENGTH);\n }",
"private static boolean verifyEdgeConsistency(\n LogManager pLogger, UnmodifiableSMG pSmg, Iterable<? extends SMGEdge> pEdges) {\n Deque<SMGEdge> to_verify = Queues.newArrayDeque(pEdges);\n\n while (!to_verify.isEmpty()) {\n SMGEdge edge = to_verify.pop();\n\n // Verify that the object assigned to the edge exists in the SMG\n if (!pSmg.getObjects().contains(edge.getObject())) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: Edge from a nonexistent object:\", edge);\n return false;\n }\n\n // Verify that the value assigned to the edge exists in the SMG\n if (!pSmg.getValues().contains(edge.getValue())) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: Edge to a nonexistent value:\", edge);\n return false;\n }\n\n // Verify that the edge is consistent to all remaining edges\n // - edges of different type are inconsistent\n // - two Has-Value edges are inconsistent iff:\n // - leading from the same object AND\n // - have same type AND\n // - have same offset AND\n // - leading to DIFFERENT values\n // - two Points-To edges are inconsistent iff:\n // - different values point to same place (object, offset)\n // - same values do not point to the same place\n for (SMGEdge other_edge : to_verify) {\n if (!edge.isConsistentWith(other_edge)) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: inconsistent edges\");\n pLogger.log(Level.SEVERE, \"First edge: \", edge);\n pLogger.log(Level.SEVERE, \"Second edge: \", other_edge);\n return false;\n }\n }\n }\n return true;\n }",
"public boolean excludeVariantInvalid() {\n return mExcludeVariantInvalid;\n }",
"void checkBounds()\n {\n assertEquals(\"Bounds doesn't match\", boundsPair.getKey(),boundsPair.getValue());\n }",
"public void verifyValues() {\r\n // update the values view to the latest version, then proceed to verify\r\n // as usual. \r\n values = map.values();\r\n super.verifyValues();\r\n }",
"@Test(timeout = 4000)\n public void test00() throws Throwable {\n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.of(range_CoordinateSystem0, (-5250L), 2383L);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"private static boolean rowOfSquaresIsInvalid(Rows value, int[][] grid) {\n\t\tswitch(value) {\n\t\t\tcase TOP:\n\t\t\t\tif(squaresIsInvalid(0, 0, grid)) return true;\n\t\t\t\tif(squaresIsInvalid(0, 3, grid)) return true;\n\t\t\t\tif(squaresIsInvalid(0, 6, grid)) return true;\n\t\t\t\treturn false;\n\t\t\tcase MID:\n\t\t\t\tif(squaresIsInvalid(3, 0, grid)) return true;\n\t\t\t\tif(squaresIsInvalid(3, 3, grid)) return true;\n\t\t\t\tif(squaresIsInvalid(3, 6, grid)) return true;\n\t\t\t\treturn false;\n\t\t\tcase BOT:\n\t\t\t\tif(squaresIsInvalid(6, 0, grid)) return true;\n\t\t\t\tif(squaresIsInvalid(6, 3, grid)) return true;\n\t\t\t\tif(squaresIsInvalid(6, 6, grid)) return true;\n\t\t\t\treturn false;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t}",
"@Test (timeout=180000)\n public void testDegenerateRegions() throws Exception {\n TableName table = TableName.valueOf(\"tableDegenerateRegions\");\n try {\n setupTable(table);\n assertNoErrors(doFsck(conf,false));\n assertEquals(ROWKEYS.length, countRows());\n\n // Now let's mess it up, by adding a region with a duplicate startkey\n HRegionInfo hriDupe =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"B\"), Bytes.toBytes(\"B\"));\n TEST_UTIL.getHBaseCluster().getMaster().assignRegion(hriDupe);\n TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager()\n .waitForAssignment(hriDupe);\n ServerName server = regionStates.getRegionServerOfRegion(hriDupe);\n TEST_UTIL.assertRegionOnServer(hriDupe, server, REGION_ONLINE_TIMEOUT);\n\n HBaseFsck hbck = doFsck(conf,false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.DEGENERATE_REGION, ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS });\n assertEquals(2, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n\n // fix the degenerate region.\n doFsck(conf,true);\n\n // check that the degenerate region is gone and no data loss\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }",
"public boolean validateFullBounds() {\n\t\tcomparisonBounds = getUnionOfChildrenBounds(comparisonBounds);\n\t\n\t\tif (!cachedChildBounds.equals(comparisonBounds)) {\n\t\t\tsetPaintInvalid(true);\n\t\t}\n\t\treturn super.validateFullBounds();\t\n\t}",
"public boolean validateFullBounds() {\n\t\tcomparisonBounds = getUnionOfChildrenBounds(comparisonBounds);\n\t\n\t\tif (!cachedChildBounds.equals(comparisonBounds)) {\n\t\t\tsetPaintInvalid(true);\n\t\t}\n\t\treturn super.validateFullBounds();\t\n\t}",
"private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }",
"@Test\n\tpublic void testValidInvalidEstimtes() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(-1);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 1);\n\t}",
"@Test\n\tpublic void invalidOutsideSquare_2() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare square = new BlankSquare();\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertFalse(gameState.isOutside(location));\n\t}",
"@Override\n\t\tpublic boolean isInvalid() {\n\t\t\treturn false;\n\t\t}",
"public boolean isValid() {\n\t\tif (E.a6.isZero())\n\t\t\treturn false;\n\t\tif (G.isZero())\n\t\t\treturn false;\n\t\tif ((G.y.mul(G.y).add(G.x.mul(G.y)))\n\t\t\t.compareTo(\n\t\t\t\t(G.x.mul(G.x).mul(G.x).add(E.a4.mul(G.x).mul(G.x).add(E.a6))))\n\t\t\t!= 0)\n\t\t\treturn false;\n\t\tif (!E.mul(r, G).isZero())\n\t\t\treturn false;\n\t\tif (!MOV_Condition(m, r))\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"public static void validateGraph(final EnactmentGraph graph) {\n checkForDisconnectedDataNodes(graph);\n }",
"public boolean isValidated() throws Exception\r\n {\n return false;\r\n }",
"void vaildate() {\n final int n = snapshotRootIndex >= 0? snapshotRootIndex + 1: numNonNull; \r\n int i = 0;\r\n if (inodes[i] != null) {\r\n for(i++; i < n && inodes[i] != null; i++) {\r\n final INodeDirectory parent_i = inodes[i].getParent();\r\n final INodeDirectory parent_i_1 = inodes[i-1].getParent();\r\n if (parent_i != inodes[i-1] &&\r\n (parent_i_1 == null || !parent_i_1.isSnapshottable()\r\n || parent_i != parent_i_1)) {\r\n throw new AssertionError(\r\n \"inodes[\" + i + \"].getParent() != inodes[\" + (i-1)\r\n + \"]\\n inodes[\" + i + \"]=\" + inodes[i].toDetailString()\r\n + \"\\n inodes[\" + (i-1) + \"]=\" + inodes[i-1].toDetailString()\r\n + \"\\n this=\" + toString(false));\r\n }\r\n }\r\n }\r\n if (i != n) {\r\n throw new AssertionError(\"i = \" + i + \" != \" + n\r\n + \", this=\" + toString(false));\r\n }\r\n }",
"public void validateAttributes() {\n if ((totalNumBuckets <= 0)) {\n throw new IllegalStateException(\n String.format(\n \"TotalNumBuckets %s is an illegal value, please choose a value greater than 0\",\n totalNumBuckets));\n }\n if ((redundancy < 0) || (redundancy >= 4)) {\n throw new IllegalStateException(\n String.format(\n \"RedundantCopies %s is an illegal value, please choose a value between 0 and 3\",\n redundancy));\n }\n for (final Object value : getLocalProperties().keySet()) {\n String propName = (String) value;\n if (!PartitionAttributesFactory.LOCAL_MAX_MEMORY_PROPERTY.equals(propName)) {\n throw new IllegalStateException(\n String.format(\"Unknown local property: '%s'\",\n propName));\n }\n }\n for (final Object o : getGlobalProperties().keySet()) {\n String propName = (String) o;\n if (!PartitionAttributesFactory.GLOBAL_MAX_BUCKETS_PROPERTY.equals(propName)\n && !PartitionAttributesFactory.GLOBAL_MAX_MEMORY_PROPERTY.equals(propName)) {\n throw new IllegalStateException(\n String.format(\"Unknown global property: '%s'\",\n propName));\n }\n }\n if (recoveryDelay < -1) {\n throw new IllegalStateException(\"RecoveryDelay \" + recoveryDelay\n + \" is an illegal value, please choose a value that is greater than or equal to -1\");\n }\n if (startupRecoveryDelay < -1) {\n throw new IllegalStateException(\"StartupRecoveryDelay \" + startupRecoveryDelay\n + \" is an illegal value, please choose a value that is greater than or equal to -1\");\n }\n if (fixedPAttrs != null) {\n List<FixedPartitionAttributesImpl> duplicateFPAattrsList =\n new ArrayList<>();\n Set<FixedPartitionAttributes> fpAttrsSet = new HashSet<>();\n for (FixedPartitionAttributesImpl fpa : fixedPAttrs) {\n if (fpa == null || fpa.getPartitionName() == null) {\n throw new IllegalStateException(\n \"Fixed partition name cannot be null\");\n }\n if (fpAttrsSet.contains(fpa)) {\n duplicateFPAattrsList.add(fpa);\n } else {\n fpAttrsSet.add(fpa);\n }\n }\n if (duplicateFPAattrsList.size() != 0) {\n throw new IllegalStateException(\n String.format(\"Partition name %s can be added only once in FixedPartitionAttributes\",\n duplicateFPAattrsList));\n }\n }\n }",
"@Test\n\tpublic void testValidInvalidEstimtesFib() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(10);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 1);\n\t}",
"@Test\n\tvoid testEdgesNotNull() {\n\t\tmap.put(\"Boston\", new LinkedHashSet<String>());\n\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\n\t}",
"void verifyNoReferences(Node n) {\n if (returned.contains(n))\n Assert.UNREACHABLE(\"ERROR: returned set contains \"+n);\n if (thrown.contains(n))\n Assert.UNREACHABLE(\"ERROR: thrown set contains \"+n);\n if (false) {\n for (int i=0; i<this.params.length; ++i) {\n if (this.params[i] == n)\n Assert.UNREACHABLE(\"ERROR: param #\"+i+\" \"+n);\n }\n }\n for (Iterator i = nodeIterator(); i.hasNext(); ) {\n Node n2 = (Node) i.next();\n if (n2 instanceof UnknownTypeNode) continue;\n if (multiset_contains(n2.addedEdges, n)) {\n Assert.UNREACHABLE(\"ERROR: \"+n2+\" contains an edge to \"+n);\n }\n if (multiset_contains(n2.predecessors, n)) {\n Assert.UNREACHABLE(\"ERROR: \"+n2+\" contains predecessor \"+n);\n }\n if (multiset_contains(n2.accessPathEdges, n)) {\n Assert.UNREACHABLE(\"ERROR: \"+n2+\" contains access path edge to \"+n);\n }\n if (n2 instanceof FieldNode) {\n FieldNode fn = (FieldNode) n2;\n if (fn.field_predecessors != null &&\n fn.field_predecessors.contains(n)) {\n Assert.UNREACHABLE(\"ERROR: \"+fn+\" contains a field predecessor \"+n);\n }\n }\n }\n }",
"@Test\n public void testEqualsFalse() {\n Rectangle r5 = new Rectangle(7, 5, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 254),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(0, 4, new Color(255, 155, 255),\n new Position2D(-50, 75));\n Rectangle r8 = new Rectangle(0, 4, new Color(0, 255, 255),\n new Position2D(-50, 75));\n Rectangle r9 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, 75));\n Rectangle r10 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(51, -75));\n Rectangle r11 = new Rectangle(1, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n Rectangle r12 = new Rectangle(1, 100, new Color(199, 155, 13),\n new Position2D(50, 0));\n\n assertNotEquals(r1, r5);\n assertNotEquals(r2, r6);\n assertNotEquals(r2, r7);\n assertNotEquals(r2, r8);\n assertNotEquals(r3, r9);\n assertNotEquals(r3, r10);\n assertNotEquals(r4, r11);\n assertNotEquals(r4, r12);\n }",
"@Test(timeout = 4000)\n public void test077() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n range0.getBegin();\n range0.intersects(range0);\n range0.getEnd();\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }",
"@Test\n public void testGPSpingInvalid() {\n assertEquals(0.0, err1.getLat(), PRECISION);\n assertEquals(0.0, err1.getLon(), PRECISION);\n assertEquals(0.0, err2.getLon(), PRECISION);\n assertEquals(0,err1.getTime());\n assertEquals(0,err2.getTime());\n }",
"@Test\r\n public void validatingEstateWhenEstateIsValidShouldNotThrowException() throws InvalidEstateException {\n estateValidator.validate(estateDto);\r\n\r\n // Then no exception is thrown\r\n }",
"protected void checkState() {\n\t\tboolean valid = true;\n\t\tinvalidFieldEditor = null;\n\t\t// The state can only be set to true if all\n\t\t// field editors contain a valid value. So we must check them all\n\t\tif (fields != null) {\n\t\t\tint size = fields.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tFieldEditor editor = fields.get(i);\n\t\t\t\tvalid = valid && editor.isValid();\n\t\t\t\tif (!valid) {\n\t\t\t\t\tinvalidFieldEditor = editor;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsetValid(valid);\n\t}",
"private boolean validateOutOfRangeCoordinate() throws IOException {\n int maxValue = Integer.parseInt(Objects.requireNonNull(FileUtils.getProperty(\"max-coordinate-value\")));\n return (Math.abs(getX()) > maxValue) || (Math.abs(getY()) > maxValue);\n }",
"public void checkRep() {\n\t\tif (parent == null || child == null || l == null) {\n\t\t\tthrow new RuntimeException(\"Edge values can never be null.\");\n\t\t}\n\t}",
"public void validate() {\n\t\tthis.invalidated = false;\n\t}",
"@Test\n\tpublic void invalidOutsideSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tWalkableSquare square = new WalkableSquare(true, null, null, null, null);\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertFalse(gameState.isOutside(location));\n\t}",
"@Test\n public void invalidTableEgress() throws InterruptedException {\n for (int i = 100; i < 110; ++i) {\n this.sfcOfRendererDataListener.onDataTreeChanged(createSfcOfRendererConfig(100, i));\n Thread.sleep(SLEEP); // otherwise the failure is not detected\n verifySettersNotCalled();\n }\n }",
"private void canCreateRegion(JsonNode json) {\n removeDynamicValues(json);\n assertThat(json, matchesSnapshot());\n }",
"@Test\n\tvoid testVerticesAndEdgesIntanceVariableNotNull() {\n\t\tAssertions.assertNotNull(map);\n\n\t}",
"private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }",
"private static boolean rowAreInvalid(int[][] grid) {\n\t\tfor(int j = 0; j < BOUNDARY; j++) {\n\t\t\tList<Integer> row = new ArrayList<>();\n\t\t\tfor(int i = 0; i < BOUNDARY; i++) {\n\t\t\t\trow.add(grid[i][j]);\n\t\t\t}\n\t\t\tif(collectionHasRepeat(row)) return true;\n\t\t}\n\t\treturn false;\n\t}",
"@Test\n public void testIsValidonNotConnectedMap() {\n mapModel.removeLink(\"TerritoryD\", \"TerritoryC\");\n\n boolean expResult = false;\n boolean result = mapModel.isValid();\n assertEquals(expResult, result);\n }",
"private void validate() {\n for (DBRow row : rows) {\n for (DBColumn column : columns) {\n Cell cell = Cell.at(row, column);\n DBValue value = values.get(cell);\n notNull(value,\"Cell \" + cell);\n }\n }\n }",
"public void setInvalid();",
"@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}",
"final protected boolean isValid() {\n boolean valid = true;\n for (Hex h : hexagons)\n for (Vertex v : h.vertices)\n if (isAdjacent(v) && v.getBuilding() == null)\n valid = false;\n return valid;\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousCollapseEdges() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomPropertyGraphRequestModel();\n\t requestModel.setCollapseEdges(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"public boolean isInvalid() {\n\t\treturn Double.isNaN(x) || Double.isNaN(y) || Double.isNaN(z);\n\t}",
"@Test (timeout=180000)\n public void testHDFSRegioninfoMissing() throws Exception {\n TableName table = TableName.valueOf(\"tableHDFSRegioninfoMissing\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by leaving a hole in the meta data\n admin.disableTable(table);\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"B\"),\n Bytes.toBytes(\"C\"), true, true, false, true, HRegionInfo.DEFAULT_REPLICA_ID);\n TEST_UTIL.getHBaseAdmin().enableTable(table);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.ORPHAN_HDFS_REGION,\n ERROR_CODE.NOT_IN_META_OR_DEPLOYED,\n ERROR_CODE.HOLE_IN_REGION_CHAIN});\n // holes are separate from overlap groups\n assertEquals(0, hbck.getOverlapGroups(table).size());\n\n // fix hole\n doFsck(conf, true);\n\n // check that hole fixed\n assertNoErrors(doFsck(conf, false));\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }",
"@Override\r\n\tpublic boolean isValid() {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}",
"public boolean isInvalid() {\n\t\treturn invalid;\n\t}",
"boolean hasPossiblyBad();",
"boolean checkIfValidToCreate(int start, int end) {\n return myMarkerTree.processOverlappingWith(start, end, region->{\n int rStart = region.getStartOffset();\n int rEnd = region.getEndOffset();\n if (rStart < start) {\n if (region.isValid() && start < rEnd && rEnd < end) {\n return false;\n }\n }\n else if (rStart == start) {\n if (rEnd == end) {\n return false;\n }\n }\n else {\n if (rStart > end) {\n return true;\n }\n if (region.isValid() && rStart < end && end < rEnd) {\n return false;\n }\n }\n return true;\n });\n }",
"@Test\n public void testIsValidonContinentNotConnectedMap() {\n // Create a new continent ContinentC which is not connected\n mapModel.addContinent(\"ContinentC\", 3);\n mapModel.getGraphTerritories()\n .get(\"TerritoryA\").setContinentName(\"ContinentC\");\n mapModel.getGraphTerritories()\n .get(\"TerritoryE\").setContinentName(\"ContinentC\");\n\n boolean expResult = false;\n boolean result = mapModel.isValid();\n assertEquals(expResult, result);\n }",
"public void sanityCheck() {\n if ( bucket >= mNumBins ) bucket = mNumBins - 1;\n\n // Sanity check, should not happen.\n if ( bucket < 0 ) bucket = 0;\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousIndividualFillColor() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomIndividualGraphRequestModel();\n\t requestModel.setIndividualFillColor(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"private void warnNotAllRegionsSatisfied(final List<Region> regions) {\n String regionNames = regions.stream().map(Region::getName).collect(Collectors.joining(\", \"));\n warnDialogProvider.get().show(\"The following regions do not have their minimum squadron requirement satisfied: \" + regionNames + \".\");\n }",
"public boolean validateRegion_ExactlyOneInitialState(Region region,\r\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn true;\r\n\t}",
"@Test(timeout = 4000)\n public void test088() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2127L, 2127L);\n Object object0 = new Object();\n range0.equals(object0);\n Object object1 = new Object();\n range0.equals((Object) null);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }",
"@Test\r\n\tpublic void testMapValidation() {\r\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getContinents()));\r\n\t\t\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getTerritories()));\r\n\t}",
"protected void checkValidity(Epml epml) {\n\t}",
"public void checkInvariant() {\n\t\tif (!(getPositionX() >= 0 && getPositionX() < getEngine().getWidth()))\r\n\t\t\tthrow new InvariantError(\"Error checkInvariant: getPositionX() > 0 && getPositionX() < getEngine().getWidth()\");\r\n\r\n\t\t// inv: getPositionY() >= 0 && getPositionY() < Engine::getHeight()\r\n\t\tif (!(getPositionY() >= 0 && getPositionY() < getEngine().getHeight()))\r\n\t\t\tthrow new InvariantError(\"Error checkInvariant: getPositionY() > 0 && getPositionY() < getEngine().getHeight()\");\r\n\r\n\t\t// inv: isDead() == not (getLife() >= 0)\r\n\t\tif (!(isDead() == !(getLife() > 0)))\r\n\t\t\tthrow new InvariantError(\"Error checkInvariant: isDead() == !getLife() > 0\");\r\n\t\t\r\n\t}",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousIndDataFillColor() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomIndividualGraphRequestModel();\n\t requestModel.setDataFillColor(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"boolean isValidFor(TimeGrain grain);",
"private void coverExistingValues() \n {\n for(int i = 1; i <= gDim; i++)\n {\n for(int j = 1; j <= gDim; j++)\n {\n //If the board has a value at the current position, cover the satisfied rows and columns\n if(board[i - 1][j - 1] != null)\n {\n int rowIndex = rcvToMatrixRow(i, j, board[i - 1][j - 1]);\n coverSatisfiedColumns(ecmCoveredCols, rowIndex);\n coverSatisfiedRows(ecmCoveredRows, rowIndex);\n }\n }\n }\n }",
"private final void verifyInnerValues(ComputationalBlock block, double[] expectedValues) {\n\t\tFieldIterator iterator = block.getInnerIterator();\n\t\tfor (int i=0; i<totalSize; i++) {\n\t\t\tassertEquals(expectedValues[i], iterator.currentValue(), 4*Math.ulp(expectedValues[i]));\n\t\t\titerator.next();\n\t\t}\n\t}",
"@Test(timeout = 4000)\n public void test29() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n long long0 = 9223372036854775807L;\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 243L, 466L);\n range2.isSubRangeOf(range1);\n Range range3 = Range.of((-636L), (-636L));\n range3.complement(range2);\n range1.intersects(range3);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }",
"private void checkRep() {\n for (Ball ball : balls) {\n assert ball.getPosition().d1 >= 0\n && ball.getPosition().d1 <= WIDTH - 1;\n assert ball.getPosition().d2 >= 0\n && ball.getPosition().d2 <= HEIGHT - 1;\n }\n for (Gadget gadget : gadgets) {\n assert gadget.getPosition().d1 >= 0\n && gadget.getPosition().d1 <= WIDTH - 1;\n assert gadget.getPosition().d2 >= 0\n && gadget.getPosition().d2 <= HEIGHT - 1;\n }\n\n assert GRAVITY > 0 && MU2 > 0 && MU > 0;\n }",
"public void validate() throws LedgerException {\n Iterator<Map.Entry<Integer, Block>> blocks = listBlocks();\n\n while ( blocks.hasNext() ) {\n Block block = blocks.next().getValue();\n validateBlock(block);\n }\n\n return;\n }",
"protected final boolean rangeTestFailed(int value) {\n\tboolean test1 =\n\t (reqminSet && (reqminClosed? (value < reqmin): (value <= reqmin)))\n\t || (minSet && (minClosed? (value < min): (value <= min)));\n\tboolean test2 =\n\t (reqmaxSet && (reqmaxClosed? (value > reqmax): (value >= reqmax)))\n\t || (maxSet && (maxClosed? (value > max): (value >= max)));\n\treturn (test1 || test2);\n }",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n Range.CoordinateSystem.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, 0L, 0L);\n Range range0 = Range.ofLength(0L);\n range0.getBegin(range_CoordinateSystem0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.spliterator();\n range0.complementFrom(linkedList0);\n range_Builder0.contractBegin(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"\", range_CoordinateSystem1);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test25() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.complementFrom(linkedList0);\n range1.intersects(range0);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"TGa_,[\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.TGa_,[\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }",
"@Test\r\n\tpublic void testYOBInvalid() {\r\n\t\tassertFalse(Activity5Query.isYOBCorrect(1879));\r\n\t\tassertFalse(Activity5Query.isYOBCorrect(1878));\r\n\t\tassertFalse(Activity5Query.isYOBCorrect(2020));\r\n\t\tassertFalse(Activity5Query.isYOBCorrect(-1879));\r\n\t\tassertFalse(Activity5Query.isYOBCorrect(3000));\r\n\t\tassertFalse(Activity5Query.isYOBCorrect(0));\r\n\t}",
"public boolean isValid() {\n if (state.length != Board.dim*Board.dim) return false;\n if ((double)Board.dim != Math.sqrt((double)state.length)) return false;\n byte[] counts = new byte[state.length];\n try {\n for (int i = 0; i < counts.length; i++) counts[state[i]]++;\n } catch (ArrayIndexOutOfBoundsException e) { return false; }\n for (int i = 0; i < counts.length; i++) if (counts[i] != 1) return false;\n return true;\n }",
"private void checkAnnotation() {\n if (annotMin != -1)\n Assert.condition(annotMin >= 0, \"min isn't >= 0: '\" + annotMin + \"'\");\n if (annotMax != -1)\n Assert.condition(annotMax >= 0, \"max isn't >= 0: '\" + annotMax + \"'\");\n if ((annotMin != -1) && (annotMax != -1))\n Assert.condition(annotMin <= annotMax,\n \"min isn't <= max: '\" + annotMin + \"', '\" + annotMax + \"'\");\n }",
"public void validate(Region region) {\n // Get List of All indexes.\n Collection<Index> indexes = ((LocalRegion) region).getIndexManager().getIndexes();\n\n // validate each index one by one\n for (Index index : indexes) {\n if (region instanceof PartitionedRegion) {\n validateOnPR((PartitionedRegion) region, (PartitionedIndex) index);\n } else {\n validate(region, index);\n }\n }\n }",
"@Override\n\t\tpublic boolean isValid() {\n\t\t\treturn false;\n\t\t}",
"@Test\r\n\t@Ignore\r\n\tpublic void shouldReturnLisOfBrokenByRegion() {\n\t}",
"private static void mapCheck(){\n\t\tfor(int x = 0; x < Params.world_width; x = x + 1){\n\t\t\tfor(int y = 0; y < Params.world_height; y = y + 1){\n\t\t\t\tif(map[x][y] > 1){\n\t\t\t\t\t//System.out.println(\"Encounter Missing. Position: (\" + x + \",\" + y + \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private boolean isRangeValid() {\n\n\t\tboolean valid = true;\n\n\t\tif (getRange() == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tLong.parseLong(getRange());\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tvalid = false;\n\t\t}\n\n\t\tvalid = valid || getRange().compareToIgnoreCase(CCLConstants.INDIRECT_RANGE_ALL) == 0;\n\n\t\treturn valid;\n\t}",
"public boolean wasInvalid() {\n return this.invalid;\n }",
"public void checkRep()\n {\n assert (x>=0 && x<=19 && y >=0 && y<=19 && (orientation == 0 || orientation == 90 || orientation == 180 || orientation == 270));\n }",
"private static boolean colAreInvalid(int[][] grid) {\n\t\tfor(int i = 0; i < BOUNDARY; i++) {\n\t\t\tList<Integer> row = new ArrayList<>();\n\t\t\tfor(int j = 0; j < BOUNDARY; j++) {\n\t\t\t\trow.add(grid[i][j]);\n\t\t\t}\n\t\t\tif(collectionHasRepeat(row)) return true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isValid(Grid g){\t\t//temporary very basic validation\n\t\tfor (Row row: g.getRowList()){\n\t\t\tif (row.getSumVal() != 0){\n\t\t\t\tSystem.out.println(\"Row sum: \"+ row.getSumVal());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tfor (Column col: g.getColList()){\n\t\t\tif (col.getSumVal() != 0){\n\t\t\t\tSystem.out.println(\"Column sum: \" + col.getSumVal());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tfor (Box box: g.getBoxList()){\n\t\t\tif (box.getSumVal() != 0){\n\t\t\t\tSystem.out.println(\"Box sum: \" + box.getSumVal());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isValid() {\n boolean isvalid = true;\n\n if (java.lang.Double.isInfinite(x) || java.lang.Double.isNaN(x) || java.lang.Double.isInfinite(y) || java.lang.Double.isNaN(y) || java.lang.Double.isInfinite(width) || java.lang.Double.isNaN(width) || java.lang.Double.isInfinite(height)\n || java.lang.Double.isNaN(height)) {\n isvalid = false;\n }\n\n return isvalid;\n }",
"private void validateData() {\n }",
"@Test(timeout = 4000)\n public void test068() throws Throwable {\n Range range0 = Range.of((-81L));\n boolean boolean0 = range0.equals((Object) null);\n assertFalse(boolean0);\n }",
"private void validate(int[] seam) {\n if (width <= 1) throw new IllegalArgumentException(\"the width or height of the picture is <= 1\");\n if (seam == null) throw new IllegalArgumentException(\"argument can not be null\");\n if (seam.length != height) throw new IllegalArgumentException(\"argument array is of length\" + width);\n for (int i = 0; i < seam.length; i++) {\n validate(seam[i], width);\n if (i > 0 && Math.abs(seam[i] - seam[i - 1]) > 1) {\n throw new IllegalArgumentException(\"Two adjacent entries differ by more than 1\");\n }\n }\n }",
"private boolean isValid() {\n // If start is greater or equal to end then it's invalid\n return !(start.compareTo(end) >= 0);\n }",
"private void checkRep() {\n\t\tassert (this != null) : \"this Edge cannot be null\";\n\t\tassert (this.label != null) : \"this Edge's label cannot be null\";\n\t\tassert (this.child != null) : \"this Edge's child cannot be null\";\n\t}",
"@Test(timeout = 4000)\n public void test089() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 3253L, 3253L);\n range0.getLength();\n range0.toString();\n Object object0 = new Object();\n Range range1 = Range.ofLength(3253L);\n range1.intersects(range0);\n range0.equals(range1);\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"[ 3253 .. 3252 ]/0B\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.[ 3253 .. 3252 ]/0B\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }",
"public boolean istrianglevalid() {\n //if all of the sides are valid, then return true, else return false\n if (sideA > 0 && sideB > 0 && sideC > 0) {\n return true;\n } else {\n return false;\n }\n }",
"public Rectangle getInvalidatedRectangle() {\n return rect;\n }"
]
| [
"0.6873598",
"0.59251535",
"0.5857786",
"0.56740385",
"0.5633904",
"0.5620071",
"0.55745935",
"0.5554516",
"0.5554125",
"0.55486166",
"0.55019164",
"0.54988915",
"0.5487026",
"0.5486927",
"0.5480645",
"0.5478417",
"0.5461501",
"0.54474914",
"0.54474914",
"0.54445845",
"0.5432688",
"0.5430099",
"0.5429901",
"0.5422159",
"0.54148525",
"0.54113895",
"0.54084635",
"0.5401146",
"0.5389027",
"0.5374565",
"0.537389",
"0.5369263",
"0.5366872",
"0.53541493",
"0.53487545",
"0.5347865",
"0.5346624",
"0.5338309",
"0.53178406",
"0.5313498",
"0.53092384",
"0.5306669",
"0.53065807",
"0.53052574",
"0.5282615",
"0.52802926",
"0.52741736",
"0.52722585",
"0.5271085",
"0.5267419",
"0.52496016",
"0.52406585",
"0.52402776",
"0.52326053",
"0.522622",
"0.522622",
"0.522622",
"0.52260935",
"0.5224191",
"0.52237153",
"0.52228767",
"0.5221446",
"0.5219151",
"0.52120566",
"0.521125",
"0.5211075",
"0.5208376",
"0.51951325",
"0.51938355",
"0.5191915",
"0.5191721",
"0.5187572",
"0.5185901",
"0.518495",
"0.51811105",
"0.5178498",
"0.5178023",
"0.51591486",
"0.51574177",
"0.51389265",
"0.51369053",
"0.5133042",
"0.51327443",
"0.5130932",
"0.51256275",
"0.51235914",
"0.51202196",
"0.5114354",
"0.51133424",
"0.5113034",
"0.5109281",
"0.51063114",
"0.51033145",
"0.5101222",
"0.50911105",
"0.5089919",
"0.50889707",
"0.50731367",
"0.5070675",
"0.5070138"
]
| 0.75797606 | 0 |
Verifies that any fields (as designated by HasValue edges) do not exceed the boundary of the object. | private static boolean checkSingleFieldConsistency(
LogManager pLogger, SMGObject pObject, UnmodifiableSMG pSmg) {
// For all fields in the object, verify that sizeof(type)+field_offset < object_size
SMGEdgeHasValueFilterByObject filter = SMGEdgeHasValueFilter.objectFilter(pObject);
for (SMGEdgeHasValue hvEdge : pSmg.getHVEdges(filter)) {
if ((hvEdge.getOffset() + hvEdge.getSizeInBits()) > pObject.getSize()) {
pLogger.log(Level.SEVERE, "SMG inconistent: field exceedes boundary of the object");
pLogger.log(Level.SEVERE, "Object: ", pObject);
pLogger.log(Level.SEVERE, "Field: ", hvEdge);
return false;
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean hasValidBounds() {\n\n\n\n return false;\n }",
"void checkAndUpdateBoundary(Integer requiredChange);",
"void checkBounds()\n {\n assertEquals(\"Bounds doesn't match\", boundsPair.getKey(),boundsPair.getValue());\n }",
"public boolean validateFullBounds() {\n\t\tcomparisonBounds = getUnionOfChildrenBounds(comparisonBounds);\n\t\n\t\tif (!cachedChildBounds.equals(comparisonBounds)) {\n\t\t\tsetPaintInvalid(true);\n\t\t}\n\t\treturn super.validateFullBounds();\t\n\t}",
"public boolean validateFullBounds() {\n\t\tcomparisonBounds = getUnionOfChildrenBounds(comparisonBounds);\n\t\n\t\tif (!cachedChildBounds.equals(comparisonBounds)) {\n\t\t\tsetPaintInvalid(true);\n\t\t}\n\t\treturn super.validateFullBounds();\t\n\t}",
"@Override\n\tpublic void CheckBounds() {\n\t\t\n\t}",
"@Override\n\tpublic boolean checkBoundary(float x) {\n\t\tif (!(x >= MINRANGE && x <= MAXRANGE)) {\n\t\t\treturn false;\n\t\t}\n\t\t// if in the range [-512.03, 511.97]\n\t\treturn true;\n\t}",
"public void validatePropertyBoundary(Property property, RequestInfo requestInfo)\n\t\t\tthrows InvalidPropertyBoundaryException {\n\n\t\tList<String> fields = getAllBoundaries();\n\t\t//TODO location service gives provision to search by multiple ids, no need to do multiple calls for each boundary id\n\t\tfor (String field : fields) {\n\t\t\tvalidateBoundaryFields(property, field, requestInfo);\n\t\t}\n\t}",
"private final void verifyGhostRegionValues(ComputationalComposedBlock block) throws MPIException {\n\t\tBoundaryIterator boundaryIterator = block.getBoundaryIterator();\n\t\tBoundaryIterator expectedValuesIterator = block.getBoundaryIterator();\n\t\tBoundaryId boundary = new BoundaryId();\n\t\tfor (int d=0; d<2*DIMENSIONALITY; d++) {\n\t\t\tblock.receiveDoneAt(boundary);\n\t\t\tboundaryIterator.setBoundaryToIterate(boundary);\n\t\t\tBoundaryId oppositeBoundary = boundary.oppositeSide();\n\t\t\texpectedValuesIterator.setBoundaryToIterate(oppositeBoundary);\n\t\t\twhile (boundaryIterator.isInField()) {\n\t\t\t\t// Check the ghost values outside the current element.\n\t\t\t\tfor (int offset=1; offset<extent; offset++) {\n\t\t\t\t\tint neighborOffset = offset-1;\n\t\t\t\t\tint directedOffset = boundary.isLowerSide() ? -offset : offset;\n\t\t\t\t\tint directedNeighborOffset = boundary.isLowerSide() ? -neighborOffset : neighborOffset;\n\t\t\t\t\tdouble expected = expectedValuesIterator.currentNeighbor(boundary.getDimension(), directedNeighborOffset);\n\t\t\t\t\tdouble actual = boundaryIterator.currentNeighbor(boundary.getDimension(), directedOffset);\n\t\t\t\t\tassertEquals(expected, actual, 4*Math.ulp(expected));\n\t\t\t\t}\n\t\t\t\tboundaryIterator.next();\n\t\t\t\texpectedValuesIterator.next();\n\t\t\t}\n\t\t}\n\t}",
"private boolean verifyBounds() {\r\n\t if((x>RobotController.BOUNDS_X || y>RobotController.BOUNDS_Y)\r\n\t || x<0 || y<0){\r\n\t return false;\r\n\t }\r\n\t return true;\r\n\t }",
"private void checkRep() {\n assert (width <= Board.SIDELENGTH);\n assert (height <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.x() >= 0 && this.boundingBoxPosition.x() <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.y() >= 0 && this.boundingBoxPosition.y() <= Board.SIDELENGTH);\n }",
"private void checkAnnotation() {\n if (annotMin != -1)\n Assert.condition(annotMin >= 0, \"min isn't >= 0: '\" + annotMin + \"'\");\n if (annotMax != -1)\n Assert.condition(annotMax >= 0, \"max isn't >= 0: '\" + annotMax + \"'\");\n if ((annotMin != -1) && (annotMax != -1))\n Assert.condition(annotMin <= annotMax,\n \"min isn't <= max: '\" + annotMin + \"', '\" + annotMax + \"'\");\n }",
"public void boundsCheck(BigDecimal d) throws InvalidDatatypeValueException {\n boolean minOk = false;\n boolean maxOk = false;\n String upperBound = (fMaxExclusive != null )? ( fMaxExclusive.toString() ):\n ( ( fMaxInclusive != null )?fMaxInclusive.toString():\"\");\n \n String lowerBound = (fMinExclusive != null )? ( fMinExclusive.toString() ):\n (( fMinInclusive != null )?fMinInclusive.toString():\"\"); \n String lowerBoundIndicator = \"\";\n String upperBoundIndicator = \"\";\n \n \n if ( isMaxInclusiveDefined){\n maxOk = (d.compareTo(fMaxInclusive) <= 0);\n upperBound = fMaxInclusive.toString();\n if ( upperBound != null ){\n upperBoundIndicator = \"<=\"; \n } else {\n upperBound=\"\";\n }\n } else if ( isMaxExclusiveDefined){\n maxOk = (d.compareTo(fMaxExclusive) < 0);\n upperBound = fMaxExclusive.toString();\n if ( upperBound != null ){\n upperBoundIndicator = \"<\";\n } else {\n upperBound = \"\";\n }\n } else{\n maxOk = (!isMaxInclusiveDefined && ! isMaxExclusiveDefined);\n }\n \n \n if ( isMinInclusiveDefined){\n minOk = (d.compareTo(fMinInclusive) >= 0);\n lowerBound = fMinInclusive.toString();\n if( lowerBound != null ){\n lowerBoundIndicator = \"<=\";\n }else {\n lowerBound = \"\";\n }\n } else if ( isMinExclusiveDefined){\n minOk = (d.compareTo(fMinExclusive) > 0);\n lowerBound = fMinExclusive.toString();\n if( lowerBound != null ){\n lowerBoundIndicator = \"<\";\n } else {\n lowerBound = \"\";\n }\n } else{\n minOk = (!isMinInclusiveDefined && !isMinExclusiveDefined);\n }\n \n if (!(minOk && maxOk))\n throw new InvalidDatatypeValueException (\n getErrorString(DatatypeMessageProvider.OutOfBounds,\n DatatypeMessageProvider.MSG_NONE,\n new Object [] { d.toString() , lowerBound ,\n upperBound, lowerBoundIndicator, upperBoundIndicator}));\n \n }",
"@Override\n\tpublic boolean outOfBounds() {\n\t\treturn this.getY() < 0;\n\t}",
"protected void validateEntity()\n {\n super.validateEntity();\n \n Date startDate = getStartDate();\n Date endDate = getEndDate();\n \n validateStartDate(startDate);\n validateEndDate(endDate);\n\n // We validate the following here instead of from within an attribute because\n // we need to make sure that both values are set before we perform the test.\n\n if (endDate != null)\n {\n // Note that we want to truncate these values to allow for the possibility\n // that we're trying to set them to be the same day. Calling \n // dateValue( ) does not include time. Were we to want the time element,\n // we would call timestampValue(). Finally, whenever comparing jbo\n // Date objects, we have to convert to long values.\n \n long endDateLong = endDate.dateValue().getTime();\n\n // We can assume we have a Start Date or the validation of this \n // value would have thrown an exception.\n \n if (endDateLong < startDate.dateValue().getTime())\n {\n throw new OARowValException(OARowValException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(),\n getPrimaryKey(),\n \"AK\", // Message product short name\n \"FWK_TBX_T_START_END_BAD\"); // Message name\n } \n } \n \n }",
"private void validateValuesLength(BatchUpdate batchUpdate, \n HRegion region) throws IOException {\n HTableDescriptor desc = region.getTableDesc();\n for (Iterator<BatchOperation> iter = \n batchUpdate.iterator(); iter.hasNext();) {\n BatchOperation operation = iter.next();\n if (operation.getValue() != null) {\n HColumnDescriptor fam = \n desc.getFamily(HStoreKey.getFamily(operation.getColumn()));\n if (fam != null) {\n int maxLength = fam.getMaxValueLength();\n if (operation.getValue().length > maxLength) {\n throw new ValueOverMaxLengthException(\"Value in column \"\n + Bytes.toString(operation.getColumn()) + \" is too long. \"\n + operation.getValue().length + \" instead of \" + maxLength);\n }\n }\n }\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (is_null == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'is_null' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }",
"public void testBoundaryChangedEvent_1_Accuracy() {\n assertNotNull(\"Test method for 'BoundaryChangedEvent(BaseNode, Rectangle, Rectangle)' failed.\",\n new BoundaryChangedEvent(classNode, oldBoundary, newBoundary));\n }",
"public void validate() throws org.apache.thrift.TException {\n if (!is_set_inputs()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'inputs' is unset! Struct:\" + toString());\n }\n\n if (!is_set_streams()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'streams' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }",
"public void validate() throws org.apache.thrift.TException {\n if (partition_exprs == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_exprs' was not present! Struct: \" + toString());\n }\n if (partition_infos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_infos' was not present! Struct: \" + toString());\n }\n if (rollup_schemas == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'rollup_schemas' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }",
"public boolean isInBoundaries() {\n\t return Referee.playfield.isInBoundaries(this);\n }",
"@Override\r\n public boolean checkElements(SequenceConstructionExpression owner) {\r\n SequenceRange self = this.getSelf();\r\n Expression rangeLower = self.getRangeLower();\r\n Expression rangeUpper = self.getRangeUpper();\r\n ElementReference rangeLowerType = rangeLower == null? null: rangeLower.getType();\r\n ElementReference rangeUpperType = rangeUpper == null? null: rangeUpper.getType();\r\n return (rangeLowerType == null || rangeLowerType.getImpl().isInteger()) && \r\n (rangeUpperType == null || rangeUpperType.getImpl().isInteger());\r\n }",
"public void sanityCheck() {\n if ( bucket >= mNumBins ) bucket = mNumBins - 1;\n\n // Sanity check, should not happen.\n if ( bucket < 0 ) bucket = 0;\n }",
"@Test\n public void testOverboundsInside() {\n Coordinate a, b, c, d;\n a = new Coordinate2D(2, 2, 0);\n b = new Coordinate2D(3, 3, 0);\n c = new Coordinate2D(2, 0, 0);\n d = new Coordinate2D(4, 2, 0);\n\n int actual, expected;\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(a);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(b);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(c);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(d);\n assertEquals(expected, actual);\n }",
"@java.lang.Override\n public boolean hasRect() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"public void checkBounds() {\n for (int k = 0; k < numDataCols; k++) {\n DashDataType<?> dtype = dataTypes[k];\n\n if ( dtype instanceof StringDashDataType ) {\n StringDashDataType strtype = (StringDashDataType) dtype;\n for (int j = 0; j < numSamples; j++) {\n ADCMessage msg = strtype.boundsCheckStandardValue((String) stdObjects[j][k]);\n if ( msg != null ) {\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n }\n else if ( dtype instanceof IntDashDataType ) {\n IntDashDataType inttype = (IntDashDataType) dtype;\n for (int j = 0; j < numSamples; j++) {\n ADCMessage msg = inttype.boundsCheckStandardValue((Integer) stdObjects[j][k]);\n if ( msg != null ) {\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n }\n else if ( dtype instanceof DoubleDashDataType ) {\n DoubleDashDataType dbltype = (DoubleDashDataType) dtype;\n for (int j = 0; j < numSamples; j++) {\n ADCMessage msg = dbltype.boundsCheckStandardValue((Double) stdObjects[j][k]);\n if ( msg != null ) {\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n }\n else {\n throw new IllegalArgumentException(\n \"unexpected data type encountered in bounds checking: \" + dtype);\n }\n }\n }",
"private final void verifyInnerValues(ComputationalBlock block, double[] expectedValues) {\n\t\tFieldIterator iterator = block.getInnerIterator();\n\t\tfor (int i=0; i<totalSize; i++) {\n\t\t\tassertEquals(expectedValues[i], iterator.currentValue(), 4*Math.ulp(expectedValues[i]));\n\t\t\titerator.next();\n\t\t}\n\t}",
"public void checkRep() {\n assert(wall.p1().x() >= BOARD_MIN_BOUND && wall.p1().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p1 must be within in the board\";\n assert(wall.p2().x() >= BOARD_MIN_BOUND && wall.p2().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p2 must be within in the board\";\n assert(wall.p1().y() >= BOARD_MIN_BOUND && wall.p1().y() <= BOARD_MAX_BOUND) :\n \"y coordinate of p1 must be within in the board\";\n assert(wall.p2().y() >= BOARD_MIN_BOUND && wall.p2().y() <= BOARD_MAX_BOUND) :\n \"y coordinate of p2 must be within in the board\";\n }",
"void verifyIntProperties() throws IllegalStateException {\n if (mProperties.size() < 2) {\n return;\n }\n int last = getIntPropertyValue(0);\n for (int i = 1; i < mProperties.size(); i++) {\n int v = getIntPropertyValue(i);\n if (v < last) {\n throw new IllegalStateException(String.format(\"Parallax Property[%d]\\\"%s\\\" is\"\n + \" smaller than Property[%d]\\\"%s\\\"\",\n i, mProperties.get(i).getName(),\n i - 1, mProperties.get(i - 1).getName()));\n } else if (last == IntProperty.UNKNOWN_BEFORE && v == IntProperty.UNKNOWN_AFTER) {\n throw new IllegalStateException(String.format(\"Parallax Property[%d]\\\"%s\\\" is\"\n + \" UNKNOWN_BEFORE and Property[%d]\\\"%s\\\" is UNKNOWN_AFTER\",\n i - 1, mProperties.get(i - 1).getName(),\n i, mProperties.get(i).getName()));\n }\n last = v;\n }\n }",
"public boolean outOfBounds()\n {\n if((lastpowerUp.equals(\"BLUE\") || lastpowerUp.equals(\"RAINBOW\")) && powerupTimer > 0)\n {\n return false;\n }\n \n if(head.getA() < 150 || head.getA() >= 1260)\n return true;\n else if(head.getB() <150 || head.getB() >=630)\n return true;\n else \n return false;\n \n \n }",
"public boolean isBounded() {\n\t\treturn true;\n\t}",
"@Test(timeout = 4000)\n public void test076() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Object object0 = new Object();\n boolean boolean0 = range0.equals((Object) null);\n assertFalse(boolean0);\n assertTrue(range0.isEmpty());\n }",
"private boolean outOfBounds(long n) {\n return n < 0 || n >= getSize();\n }",
"public void testBoundaryChangedEvent_2_Accuracy() {\n assertNotNull(\"Test method for 'BoundaryChangedEvent(BaseNode, Rectangle, Rectangle, String)' failed.\", event);\n }",
"public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n if (am_handle == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'am_handle' was not present! Struct: \" + toString());\n }\n if (user == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'user' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'gang' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (am_handle != null) {\n am_handle.validate();\n }\n if (reservation_id != null) {\n reservation_id.validate();\n }\n }",
"@Test(timeout = 4000)\n public void test049() throws Throwable {\n Range range0 = Range.ofLength(127L);\n Object object0 = new Object();\n boolean boolean0 = range0.equals(object0);\n assertFalse(boolean0);\n assertFalse(range0.isEmpty());\n }",
"@Value.Check\n default void checkPreconditions()\n {\n final OptionalInt optimize = this.optimize();\n if (optimize.isPresent()) {\n final int size = optimize.getAsInt();\n final boolean nonzero_pow2 = size > 0 && size <= 64 && ((size & (size - 1)) == 0);\n if (!nonzero_pow2) {\n throw new IllegalArgumentException(\n \"Triangle sizes must be non-zero powers of two <= 64\");\n }\n }\n }",
"public boolean invariantHolds() {\n \t\t// Check that all bits will fit in byte array\n \t\tfinal int arrayLengthAsBits = value.length*8;\n \t\tif (lengthAsBits > arrayLengthAsBits) { return false; }\n \n \t\t// Check consistency of 'lengthAsBits' and 'bitsInLastByte'\n \t\tfinal int partialByteIndex = (lengthAsBits-1)/8;\n \t\tif (bitsInLastByte != (lengthAsBits - (8*partialByteIndex))) {\n \t\t\treturn false;\n \t\t}\n \t\t// Special case for empty bitsets since they will have\n \t\t// 'partialByteIndex'==0, but this isn't a legal index into\n \t\t// the byte array\n \t\tif (value.length==0) { return true; }\n \n \t\t// Check that the last used (possibly partial) byte doesn't\n \t\t// contain any unused bit positions that are set.\n \t\tbyte partialByte = value[partialByteIndex];\n \t\tpartialByte <<= bitsInLastByte; // must be zero after shift\n \n \t\t// Check the remaining completely unused bytes (if any)\n \t\tfor (int i = partialByteIndex+1; i < value.length; ++i) {\n \t\t\tpartialByte |= value[i];\n \t\t}\n \t\treturn (partialByte==0);\n \t}",
"public void validate() throws org.apache.thrift.TException {\n if (!is_set_destApp()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destApp' is unset! Struct:\" + toString());\n }\n\n if (!is_set_destPellet()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destPellet' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }",
"private boolean holds(int attrIndex, double value) {\n\t\n if (numAttributes() == 0)\n\treturn false;\n\t\n if(attribute(attrIndex).isNumeric())\n\treturn(m_MinBorder[attrIndex] <= value && value <= m_MaxBorder[attrIndex]);\n else\n\treturn m_Range[attrIndex][(int) value];\n }",
"public boolean ifFieldTooBig(){\n if (SphericalUtil.computeArea(mMapInterface.getPathFrame()) > MAX_FIELD_SIZE) { //if the field is too big\n Toast.makeText(getContext(), getString(R.string.field_too_big), Toast.LENGTH_LONG).show();\n return true;\n }\n return false;\n }",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"public void checkBounds() {\n\t\tfor (int k = 0; k < numDataCols; k++) {\n\t\t\tDashDataType<?> dtype = dataTypes[k];\n\n\t\t\tif ( dtype instanceof StringDashDataType ) {\n\t\t\t\tStringDashDataType strtype = (StringDashDataType) dtype;\n\t\t\t\tfor (int j = 0; j < numSamples; j++) {\n\t\t\t\t\tADCMessage msg = strtype.boundsCheckStandardValue(\n\t\t\t\t\t\t\t\t\t\t\t(String) stdObjects[j][k]);\n\t\t\t\t\tif ( msg != null ) {\n\t\t\t\t\t\tmsg.setRowNumber(j+1);\n\t\t\t\t\t\tmsg.setColNumber(k+1);\n\t\t\t\t\t\tmsg.setColName(userColNames[k]);\n\t\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ( dtype instanceof CharDashDataType ) {\n\t\t\t\tCharDashDataType chartype = (CharDashDataType) dtype;\n\t\t\t\tfor (int j = 0; j < numSamples; j++) {\n\t\t\t\t\tADCMessage msg = chartype.boundsCheckStandardValue(\n\t\t\t\t\t\t\t\t\t\t\t(Character) stdObjects[j][k]);\n\t\t\t\t\tif ( msg != null ) {\n\t\t\t\t\t\tmsg.setRowNumber(j+1);\n\t\t\t\t\t\tmsg.setColNumber(k+1);\n\t\t\t\t\t\tmsg.setColName(userColNames[k]);\n\t\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ( dtype instanceof IntDashDataType ) {\n\t\t\t\tIntDashDataType inttype = (IntDashDataType) dtype;\n\t\t\t\tfor (int j = 0; j < numSamples; j++) {\n\t\t\t\t\tADCMessage msg = inttype.boundsCheckStandardValue(\n\t\t\t\t\t\t\t\t\t\t\t(Integer) stdObjects[j][k]);\n\t\t\t\t\tif ( msg != null ) {\n\t\t\t\t\t\tmsg.setRowNumber(j+1);\n\t\t\t\t\t\tmsg.setColNumber(k+1);\n\t\t\t\t\t\tmsg.setColName(userColNames[k]);\n\t\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ( dtype instanceof DoubleDashDataType ) {\n\t\t\t\tDoubleDashDataType dbltype = (DoubleDashDataType) dtype;\n\t\t\t\tfor (int j = 0; j < numSamples; j++) {\n\t\t\t\t\tADCMessage msg = dbltype.boundsCheckStandardValue(\n\t\t\t\t\t\t\t\t\t\t\t(Double) stdObjects[j][k]);\n\t\t\t\t\tif ( msg != null ) {\n\t\t\t\t\t\tmsg.setRowNumber(j+1);\n\t\t\t\t\t\tmsg.setColNumber(k+1);\n\t\t\t\t\t\tmsg.setColName(userColNames[k]);\n\t\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new IllegalArgumentException(\"unexpected data type encountered \" + \n\t\t\t\t\t\t\"in bounds checking: \" + dtype);\n\t\t\t}\n\t\t}\n\t}",
"@Test(timeout = 4000)\n public void test079() throws Throwable {\n Range range0 = Range.of(4294967244L);\n Object object0 = new Object();\n boolean boolean0 = range0.equals((Object) null);\n assertFalse(boolean0);\n }",
"public boolean validate() {\n double ab = lengthSide(a, b);\n double ac = lengthSide(a, c);\n double bc = lengthSide(b, c);\n\n return ((ab < ac + bc)\n && (ac < ab + bc)\n && (bc < ab + ac));\n }",
"public void validateAttributes() {\n if ((totalNumBuckets <= 0)) {\n throw new IllegalStateException(\n String.format(\n \"TotalNumBuckets %s is an illegal value, please choose a value greater than 0\",\n totalNumBuckets));\n }\n if ((redundancy < 0) || (redundancy >= 4)) {\n throw new IllegalStateException(\n String.format(\n \"RedundantCopies %s is an illegal value, please choose a value between 0 and 3\",\n redundancy));\n }\n for (final Object value : getLocalProperties().keySet()) {\n String propName = (String) value;\n if (!PartitionAttributesFactory.LOCAL_MAX_MEMORY_PROPERTY.equals(propName)) {\n throw new IllegalStateException(\n String.format(\"Unknown local property: '%s'\",\n propName));\n }\n }\n for (final Object o : getGlobalProperties().keySet()) {\n String propName = (String) o;\n if (!PartitionAttributesFactory.GLOBAL_MAX_BUCKETS_PROPERTY.equals(propName)\n && !PartitionAttributesFactory.GLOBAL_MAX_MEMORY_PROPERTY.equals(propName)) {\n throw new IllegalStateException(\n String.format(\"Unknown global property: '%s'\",\n propName));\n }\n }\n if (recoveryDelay < -1) {\n throw new IllegalStateException(\"RecoveryDelay \" + recoveryDelay\n + \" is an illegal value, please choose a value that is greater than or equal to -1\");\n }\n if (startupRecoveryDelay < -1) {\n throw new IllegalStateException(\"StartupRecoveryDelay \" + startupRecoveryDelay\n + \" is an illegal value, please choose a value that is greater than or equal to -1\");\n }\n if (fixedPAttrs != null) {\n List<FixedPartitionAttributesImpl> duplicateFPAattrsList =\n new ArrayList<>();\n Set<FixedPartitionAttributes> fpAttrsSet = new HashSet<>();\n for (FixedPartitionAttributesImpl fpa : fixedPAttrs) {\n if (fpa == null || fpa.getPartitionName() == null) {\n throw new IllegalStateException(\n \"Fixed partition name cannot be null\");\n }\n if (fpAttrsSet.contains(fpa)) {\n duplicateFPAattrsList.add(fpa);\n } else {\n fpAttrsSet.add(fpa);\n }\n }\n if (duplicateFPAattrsList.size() != 0) {\n throw new IllegalStateException(\n String.format(\"Partition name %s can be added only once in FixedPartitionAttributes\",\n duplicateFPAattrsList));\n }\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }",
"protected void testLessThanMaxLots () throws OutsideMaxLotsException\n {\n if (lots.size() >= MAX_LOTS)\n throw new OutsideMaxLotsException();\n }",
"@Override\n\tprotected boolean verifyFields() {\n\t\treturn false;\n\t}",
"@Override\n\t\tpublic void validate() throws ValidationError {\n\t\t\tif (newValueOfPropertyToChange < 0) {\n\t\t\t\tthrow new TestFailure(\"propertyToChange is not ok\");\n\t\t\t}\n\t\t}",
"@Test(timeout = 4000)\n public void test020() throws Throwable {\n Range range0 = Range.of(4294967295L);\n Object object0 = new Object();\n range0.intersects(range0);\n // Undeclared exception!\n try { \n range0.isSubRangeOf((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // range can not be null\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"private boolean checkRange(final int actualVerticalSize,\n final int actualHorizontalSize) {\n return actualVerticalSize >= 0\n && actualVerticalSize < values.length\n && actualHorizontalSize >= 0\n && actualHorizontalSize < values[0].length;\n }",
"public void validate() throws org.apache.thrift.TException {\n if (institutionID == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'institutionID' was not present! Struct: \" + toString());\n }\n if (productids == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'productids' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }",
"private boolean isInsideValidRange (int value)\r\n\t{\r\n\t\treturn (value > m_lowerBounds && value <= m_upperBounds);\r\n\t}",
"public void validate() throws org.apache.thrift.TException {\n if (key_column_name == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_name' was not present! Struct: \" + toString());\n }\n if (key_column_type == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_type' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'is_preaggregation' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n }",
"public void validate() throws org.apache.thrift.TException {\n if (!isSetUserProfileId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'userProfileId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityType' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }",
"private static void verifyParameters(CollisionShape shape, float b) {\n boolean flag = (b > 0.15f && b < 0.45f);\n Assert.assertEquals(flag, shape.isContactFilterEnabled());\n }",
"public Boolean validateBoundaryFields(Property property, String field, RequestInfo requestInfo)\n\t\t\tthrows InvalidPropertyBoundaryException {\n\n\t\tPropertyLocation propertyLocation = property.getBoundary();\n\t\tLong id;\n if (field.equalsIgnoreCase(env.getProperty(\"revenue.boundary\"))) {\n\t\t\tid = propertyLocation.getRevenueBoundary().getId();\n\t\t} else if (field.equalsIgnoreCase(env.getProperty(\"location.boundary\"))) {\n\t\t\tid = propertyLocation.getLocationBoundary().getId();\n\t\t} else {\n\t\t\tid = propertyLocation.getAdminBoundary().getId();\n\t\t}\n return boundaryRepository.isBoundaryExists(property, requestInfo, id);\n\t\t\n\t}",
"private void checkRep() {\n\t\tassert (this != null) : \"this Edge cannot be null\";\n\t\tassert (this.label != null) : \"this Edge's label cannot be null\";\n\t\tassert (this.child != null) : \"this Edge's child cannot be null\";\n\t}",
"public boolean isWithinLimit() {\n return assumptionsFailed.get() < assumptionLimit;\n }",
"@Test(timeout = 4000)\n public void test070() throws Throwable {\n Range range0 = Range.ofLength(2147517148L);\n Object object0 = new Object();\n boolean boolean0 = range0.equals((Object) null);\n assertFalse(range0.isEmpty());\n assertFalse(boolean0);\n }",
"public void validate() throws org.apache.thrift.TException {\n if (limb == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'limb' was not present! Struct: \" + toString());\n }\n if (pos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'pos' was not present! Struct: \" + toString());\n }\n if (ori == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'ori' was not present! Struct: \" + toString());\n }\n if (speed == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'speed' was not present! Struct: \" + toString());\n }\n if (angls == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'angls' was not present! Struct: \" + toString());\n }\n if (mode == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'mode' was not present! Struct: \" + toString());\n }\n if (kin == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'kin' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n if (pos != null) {\n pos.validate();\n }\n if (ori != null) {\n ori.validate();\n }\n if (speed != null) {\n speed.validate();\n }\n if (angls != null) {\n angls.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (!isSetColName()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colName' is unset! Struct:\" + toString());\n }\n\n if (!isSetColType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colType' is unset! Struct:\" + toString());\n }\n\n if (!isSetStatsData()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'statsData' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }",
"@Test\n\tpublic void missingBoundaryValuesAreFilledWithBadQualityValues() {\n\t\tfinal FloatTimeSeries t0 = new FloatTreeTimeSeries();\n\t\tt0.addValues(TimeSeriesUtils.createStepFunction(10, 10, 10, 10, 0)); // constant function = 10\n\t\tfinal FloatTimeSeries t1 = new FloatTreeTimeSeries();\n\t\tt1.addValues(TimeSeriesUtils.createStepFunction(5, 20, 25, 20, 0)); // constant function = 20\n\t\tt1.addValue(new SampledValue(new FloatValue(234F), 60, Quality.BAD));\n\t\tt0.setInterpolationMode(InterpolationMode.STEPS);\n\t\tt1.setInterpolationMode(InterpolationMode.STEPS);\n\t\tfinal ReadOnlyTimeSeries avg = MultiTimeSeriesUtils.getAverageTimeSeries(Arrays.<ReadOnlyTimeSeries> asList(t0, t1), 0L, 130);\n\t\tAssert.assertEquals(\"Time series sum has wrong number of data points\", 14, avg.size());\n\t\tAssert.assertEquals(InterpolationMode.STEPS, avg.getInterpolationMode());\n\t\t// now we calculate it again, this time demanding boundary markers\n\t\tfinal ReadOnlyTimeSeries avg2 = MultiTimeSeriesUtils.getAverageTimeSeries(Arrays.<ReadOnlyTimeSeries> asList(t0, t1), 0L, 130, true, null, true);\n\t\tAssert.assertEquals(\"Time series sum has wrong number of data points\", 15, avg2.size());\n\t\tAssert.assertEquals(Quality.BAD, avg2.getValue(0).getQuality());\n\t\tAssert.assertEquals(Quality.BAD, avg2.getValue(9).getQuality());\n\t\tAssert.assertEquals(Quality.GOOD, avg2.getValue(10).getQuality());\n\t\tAssert.assertEquals(Quality.GOOD, avg2.getValue(11).getQuality());\n\t\tAssert.assertEquals(Quality.GOOD, avg2.getValue(130).getQuality());\n\t}",
"@Test(timeout = 4000)\n public void test009() throws Throwable {\n Range range0 = Range.of(32767L);\n Object object0 = new Object();\n boolean boolean0 = range0.equals(object0);\n assertFalse(boolean0);\n }",
"public void validate() throws org.apache.thrift.TException {\n if (!is_set_status()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'status' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n if (!is_set_feature()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'feature' is unset! Struct:\" + toString());\n }\n\n if (!is_set_predictResult()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'predictResult' is unset! Struct:\" + toString());\n }\n\n if (!is_set_msg()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'msg' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (feature != null) {\n feature.validate();\n }\n }",
"public boolean isValid(){\n\t\tif (bigstart != null && bigend != null){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void invalidRectangleHeightNotGreaterThan0() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(200, 200),\n new Color(1, 0, 0), 1, 0, 50, -100));\n }",
"public boolean checkInvariants() {\n\t\tRunningLengthWord rlw, prev;\n\n\t\ttry {\n\t\t\tEWAHIterator i =\n\t\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\t\t// test that actualsizeinwords complies with info in headers and\n\t\t\t// test that literal number is not > max\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tRunningLengthWord w = i.next();\n\t\t\t\tif (i.dirtyWords() > actualsizeinwords) {\n\t\t\t\t\tlog.error(i.dirtyWords() + \" larger than actual \"\n\t\t\t\t\t\t\t+ actualsizeinwords);\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (i.pointer > actualsizeinwords) {\n\t\t\t\t\tlog.error(\"pointer \" + i.pointer + \" larger than actual \"\n\t\t\t\t\t\t\t+ actualsizeinwords);\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (w.getNumberOfLiteralWords() > RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\tlog.error(\"larger than max literals\"\n\t\t\t\t\t\t\t+ w.getNumberOfLiteralWords());\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (w.getRunningLength() > RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\tlog.error(\"larger than max running length \"\n\t\t\t\t\t\t\t+ w.getRunningLength());\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// check adjacent words for errors\n\t\t\trlw = new RunningLengthWord(buffer, 0);\n\t\t\tprev = rlw;\n\t\t\trlw = rlw.getNext();\n\n\t\t\twhile (rlw.position < actualsizeinwords\n\t\t\t\t\t&& rlw.position + rlw.getNumberOfLiteralWords() < actualsizeinwords) {\n\t\t\t\t// case 1) second word has no running length -> first one should\n\t\t\t\t// have max literal count\n\t\t\t\tif (rlw.getRunningLength() == 0\n\t\t\t\t\t\t&& prev.getNumberOfLiteralWords() < RunningLengthWord.largestliteralcount) {\n\t\t\t\t\tlog.error(prev.getNumberOfLiteralWords()\n\t\t\t\t\t\t\t+ \" dirty words followed by \"\n\t\t\t\t\t\t\t+ rlw.getNumberOfLiteralWords()\n\t\t\t\t\t\t\t+ \" number of dirty words \" + \"\\n\\n\"\n\t\t\t\t\t\t\t+ toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t// case 2) both have running length for same bit and first one\n\t\t\t\t// has\n\t\t\t\t// no literals -> first one should have max running length\n\t\t\t\tif (prev.getRunningLength() > 0\n\t\t\t\t\t\t&& rlw.getRunningLength() > 0\n\t\t\t\t\t\t&& prev.getNumberOfLiteralWords() == 0\n\t\t\t\t\t\t&& prev.getRunningBit() == rlw.getRunningBit()\n\t\t\t\t\t\t&& prev.getRunningLength() < RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\tlog.error(\"Two running length for same bit of length \"\n\t\t\t\t\t\t\t+ prev.getRunningLength() + \" and \"\n\t\t\t\t\t\t\t+ rlw.getRunningLength() + \"\\n\\n\" + toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tprev = rlw;\n\t\t\t\trlw = rlw.getNext();\n\t\t\t}\n\n\t\t\tif (!prev.equals(this.rlw)) {\n\t\t\t\tlog.error(\"Last word should have been \" + prev.toString()\n\t\t\t\t\t\t+ \" but was \" + this.rlw.toString());\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// the largest bit set == sizeinbits\n\t\t\tIntIterator it = intIterator();\n\t\t\tint greatest = -1;\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tgreatest = it.next();\n\t\t\t}\n\t\t\tif (this.sizeinbits != greatest + 1) {\n\t\t\t\tlog.error(\"sizein bits \" + sizeinbits\n\t\t\t\t\t\t+ \" but largest value is \" + greatest + \"\\n\\n\"\n\t\t\t\t\t\t+ toDebugString());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLoggerUtil.logException(e, log);\n\t\t\tlog.error(bufferToString());\n\t\t}\n\n\t\treturn true;\n\t}",
"public static void validateValueObject(Object valueObject) {\n\t\tField[] fields = valueObject.getClass().getDeclaredFields();\n\t\tfor (Field field : fields) {\n\t\t\tvalidateField(valueObject, field);\n\t\t}\n\t}",
"void validateValue(long val) {\n\n if ((min != null && val < min) || (max != null && val > max)) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Value, \");\n sb.append(val);\n sb.append(\", is outside of the allowed range\");\n throw new IllegalArgumentException(sb.toString());\n }\n }",
"protected boolean isValidAvailableField(int x, int y) {\n\t\tif (x < 0 || x >= 8) return false;\n\t\tif (y < 0 || y >= 8) return false;\n\t\t\n\t\t// Is field enabled?\n\t\tif (! _board.isFieldEnabled(x, y)) return false;\n\t\t\n\t\t// If we cannot travel over the same cell, return\n\t\tif (_board.getGame().hasGameOption(Game.GAMEOPTION_TRACEMOVES) && _board.hasTraveled(x, y)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Cell free?\n\t\tPiece dst_piece = _board.getPieceFromXY(x, y);\n\t\tif (dst_piece == null) return true;\n\t\t\n\t\t// Same color in cell, \n\t\tif (dst_piece.getColor() == getColor()) return false;\n\t\t\n\t\t// We can overtake\n\t\tif (_board.getGame().hasGameOption(Game.GAMEOPTION_CANOVERTAKE)) return true;\n\t\t\n\t\treturn false;\n\t}",
"protected void checkSize()\n {\n // check if pruning is required\n if (m_cCurUnits > m_cMaxUnits)\n {\n synchronized (this)\n {\n // recheck so that only one thread prunes\n if (m_cCurUnits > m_cMaxUnits)\n {\n prune();\n }\n }\n }\n }",
"private void validateSortedData() {\n Preconditions.checkArgument(\n indices.length == values.length,\n \"Indices size and values size should be the same.\");\n if (this.indices.length > 0) {\n Preconditions.checkArgument(\n this.indices[0] >= 0 && this.indices[this.indices.length - 1] < this.n,\n \"Index out of bound.\");\n }\n for (int i = 1; i < this.indices.length; i++) {\n Preconditions.checkArgument(\n this.indices[i] > this.indices[i - 1], \"Indices duplicated.\");\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (classification == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'classification' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }",
"@Test\r\n\tpublic void testLength() {\r\n\t\tassertEquals(LENGTH, validRectangle.length());\r\n\t}",
"private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}",
"Boolean CheckForLimit(float xVal, float yVal) {\n double xCalc = Math.pow(xVal - this.oval.centerX(), 2) / Math.pow((this.oval.width() / 2), 2);\n double yCalc = Math.pow(yVal - this.oval.centerY(), 2) / Math.pow((this.oval.height() / 2), 2);\n xCalc += yCalc;\n if (xCalc <= 1) {\n return true;\n } else {\n return false;\n }\n }",
"@Test\n public void testCheckValidity_InvalidFields() throws Exception {\n expectCheckValidityFailure(msg -> msg.setSource(null));\n \n // null protocol\n expectCheckValidityFailure(msg -> msg.setProtocol(null));\n \n // null or empty topic\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setTopic(value));\n \n // null payload\n expectCheckValidityFailure(msg -> msg.setPayload(null));\n \n // empty payload should NOT throw an exception\n Forward forward = makeValidMessage();\n forward.setPayload(\"\");\n forward.checkValidity();\n \n // null or empty requestId\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setRequestId(value));\n \n // invalid hop count\n expectCheckValidityFailure(msg -> msg.setNumHops(-1));\n }",
"public void testBoundaryChangedEvent_1_null_2() {\n try {\n new BoundaryChangedEvent(classNode, null, newBoundary);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"boolean hasRect2Value();",
"private void checkRep() {\n for (Ball ball : balls) {\n assert ball.getPosition().d1 >= 0\n && ball.getPosition().d1 <= WIDTH - 1;\n assert ball.getPosition().d2 >= 0\n && ball.getPosition().d2 <= HEIGHT - 1;\n }\n for (Gadget gadget : gadgets) {\n assert gadget.getPosition().d1 >= 0\n && gadget.getPosition().d1 <= WIDTH - 1;\n assert gadget.getPosition().d2 >= 0\n && gadget.getPosition().d2 <= HEIGHT - 1;\n }\n\n assert GRAVITY > 0 && MU2 > 0 && MU > 0;\n }",
"@Override\n public boolean validCheckForObject(final AtlasObject object)\n {\n return object instanceof Edge\n // Make sure that the object has an iso_country_code\n && object.getTag(ISOCountryTag.KEY).isPresent()\n // Make sure that the edges are instances of roundabout\n && JunctionTag.isRoundabout(object)\n // And that the Edge has not already been marked as flagged\n && !this.isFlagged(object.getIdentifier())\n // Make sure that we are only looking at master edges\n && ((Edge) object).isMasterEdge()\n // Check for excluded highway types\n && !this.isExcludedHighway(object);\n }",
"public void validate() throws org.apache.thrift.TException {\n if (functionName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'functionName' was not present! Struct: \" + toString());\n }\n if (className == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'className' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }",
"@Test(expected = IllegalArgumentException.class)\n public void invalidRectangleWidthNotGreaterThan0() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(200, 200),\n new Color(1, 0, 0), 1, 0, -50, 100));\n }",
"private void checkSafety() {\n\t\tSet<VariableTerm> bindingVariables = new HashSet<>();\n\t\tSet<VariableTerm> nonbindingVariables = new HashSet<>();\n\n\t\t// Check that all negative variables occur in the positive body.\n\t\tfor (Atom posAtom : bodyAtomsPositive) {\n\t\t\tbindingVariables.addAll(posAtom.getBindingVariables());\n\t\t\tnonbindingVariables.addAll(posAtom.getNonBindingVariables());\n\t\t}\n\n\t\tfor (Atom negAtom : bodyAtomsNegative) {\n\t\t\t// No variables in a negated atom are binding.\n\t\t\tnonbindingVariables.addAll(negAtom.getBindingVariables());\n\t\t\tnonbindingVariables.addAll(negAtom.getNonBindingVariables());\n\t\t}\n\n\t\t// Rule heads must be safe, i.e., all their variables must be bound by the body.\n\t\tif (!isConstraint()) {\n\t\t\tnonbindingVariables.addAll(headAtom.getBindingVariables());\n\t\t\tnonbindingVariables.addAll(headAtom.getNonBindingVariables());\n\t\t}\n\n\t\t// Check that all non-binding variables are bound in this rule.\n\t\tnonbindingVariables.removeAll(bindingVariables);\n\n\t\tif (nonbindingVariables.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthrow new RuntimeException(\"Encountered unsafe variable \" + nonbindingVariables.iterator().next().toString() + \" in rule: \" + toString()\n\t\t\t\t+ System.lineSeparator() + \"Notice: A rule is considered safe if all variables occurring in negative literals, builtin atoms, and the head of the rule also occur in some positive literal.\");\n\t}",
"public boolean hasObjectSize() {\n return fieldSetFlags()[6];\n }",
"private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}",
"private boolean isInsideBounderies(double value, Double min, Double max) {\r\n \tif (min == null && max == null) {\r\n \t\treturn true;\r\n \t}\r\n \telse if (min != null && max == null) {\r\n \t\treturn min <= value;\r\n \t}\r\n \telse if (min == null && max != null) {\r\n \t\treturn value <= max;\r\n \t}\r\n \treturn min <= value && value <= max;\r\n }",
"@Test\n public void tc_VerifyMaxLengthMemorizedValue() throws Exception\n {\n EN.BeginTest( TestName );\n \n // Testscript in Schlüsselwort-Notation\n EN.SelectWindow( \"Rechner\" );\n \n // Soll/Ist-Vergleich: Ist das Richtige Fenster gesetzt?\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( \"NO VALUE\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n assertEquals( \"Rechner\", myClipBoard.getObjectName() );\n assertEquals( \"SelectWindow()\", myClipBoard.getMethod() );\n\n // Set Value in \"Memory\"\n OKW_Memorize_Sngltn.getInstance().set( \"Key1\", \"2\" );\n \n EN.SetValue( \"All_MethodsObj\", \"${Key1}\" );\n EN.VerifyMaxLength( \"All_MethodsObj\", \"${Key1}\" );\n \n // Check the Name, Called Method and Value of Actuel object\n // assertEquals( \"Wert 1\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n \n assertEquals( \"Rechner.All_MethodsObj\", myClipBoard.getObjectName() );\n assertEquals( \"VerifyMaxLength()\", myClipBoard.getMethod() );\n }",
"boolean isOverflow() {\r\n\r\n if (values.size() > branchingFactor - 1) {\r\n return true;\r\n }\r\n return false;\r\n }",
"private void assertValidity() {\n if (latitudes.size() != longitudes.size()) {\n throw new IllegalStateException(\"GIS location needs equal number of lat/lon points.\");\n }\n if (!(latitudes.size() == 1 || latitudes.size() >= 3)) {\n throw new IllegalStateException(\"GIS location needs either one point or more than two.\");\n }\n }",
"void checkRange(Long value) throws TdtTranslationException {\r\n\t\tif (hasRange) {\r\n\t\t\tif ((value.compareTo(minimum) < 0)\r\n\t\t\t\t\t|| (value.compareTo(maximum) > 0)) {\r\n\t\t\t\tthrow new TdtTranslationException(\"Value {\" + value\r\n\t\t\t\t\t\t+ \"} out of range [{\" + minimum + \"},{\" + maximum\r\n\t\t\t\t\t\t+ \"}] in field \" + getId());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void validate(Object obj) {\n try {\n getMonitorTags(obj);\n } catch (Exception e) {\n throw new IllegalArgumentException(\n \"invalid MonitorTags annotation on object \" + obj, e);\n }\n\n List<AnnotatedAttribute> attrs = getMonitoredAttributes(obj);\n if (attrs.isEmpty()) {\n throw new IllegalArgumentException(\n \"no Monitor annotations on object \" + obj);\n }\n String ctype = obj.getClass().getCanonicalName();\n for (AnnotatedAttribute attr : attrs) {\n Monitor m = attr.getAnnotation();\n Object value = null;\n try {\n value = attr.getValue();\n } catch (Exception e) {\n throw new IllegalArgumentException(\n \"failed to get value for \" + m + \" on \" + ctype, e);\n }\n\n if (m.type() != DataSourceType.INFORMATIONAL) {\n String vtype = (value == null)\n ? null\n : value.getClass().getCanonicalName();\n Number n = asNumber(value);\n if (n == null) {\n throw new IllegalArgumentException(\n \"expected java.lang.Number, but received \" + vtype +\n \" for \" + m + \" on \" + ctype);\n }\n }\n }\n }",
"private void checkBoundaries() {\n if (!isDestroyed()) {\n float upperEdge = screen.getGameCam().position.y + screen.getGameViewPort().getWorldHeight() / 2;\n float bottomEdge = screen.getGameCam().position.y - screen.getGameViewPort().getWorldHeight() / 2;\n if (bottomEdge <= getY() + getHeight() && getY() <= upperEdge) {\n b2body.setActive(true);\n currentState = b2body.getLinearVelocity().x > 0 ? State.MOVING_RIGHT : State.MOVING_LEFT;\n } else {\n if (b2body.isActive()) { // Was on camera...\n // It's outside bottom edge\n if (bottomEdge > getY() + getHeight()) {\n if(!world.isLocked()) {\n world.destroyBody(b2body);\n }\n currentState = State.FINISHED;\n }\n }\n }\n }\n }",
"public void testGetOldBoundary() {\n assertEquals(\"Old boundary should be got correctly.\", event.getOldBoundary(), oldBoundary);\n }",
"public boolean hasUnderflow() {\r\n\t\t\treturn (data.size() <= 0);\r\n\t\t}",
"public void testBoundaryChangedEvent_1_null_3() {\n try {\n new BoundaryChangedEvent(classNode, oldBoundary, null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }"
]
| [
"0.62100166",
"0.60695744",
"0.6064354",
"0.5905622",
"0.5905622",
"0.58710486",
"0.5808774",
"0.5779954",
"0.5757844",
"0.57513124",
"0.5751235",
"0.5702036",
"0.57000786",
"0.55765676",
"0.5575698",
"0.55580294",
"0.55443585",
"0.5526568",
"0.55256796",
"0.5511754",
"0.54865426",
"0.5479291",
"0.5471017",
"0.5456038",
"0.542958",
"0.54279006",
"0.5410853",
"0.5399115",
"0.53938377",
"0.53799796",
"0.5374482",
"0.5353207",
"0.53486615",
"0.53466517",
"0.53294593",
"0.53096825",
"0.5301104",
"0.5300479",
"0.5295828",
"0.5293147",
"0.52927375",
"0.52860355",
"0.52860355",
"0.52860355",
"0.52818453",
"0.5281144",
"0.52806824",
"0.527523",
"0.5270917",
"0.5270304",
"0.52680194",
"0.5266224",
"0.5252705",
"0.5250717",
"0.52456677",
"0.5235196",
"0.52320695",
"0.5232007",
"0.5225847",
"0.52257115",
"0.5225351",
"0.5223014",
"0.5221337",
"0.521717",
"0.52116156",
"0.51979244",
"0.51966137",
"0.5189442",
"0.5188455",
"0.5179409",
"0.5174645",
"0.5161753",
"0.51603496",
"0.5158699",
"0.5154139",
"0.5152188",
"0.5148076",
"0.5141237",
"0.5139198",
"0.51297194",
"0.51237136",
"0.51214385",
"0.51099116",
"0.51086396",
"0.51084626",
"0.5104506",
"0.5098409",
"0.5091618",
"0.50914615",
"0.50889003",
"0.5086503",
"0.5085266",
"0.50790095",
"0.50769466",
"0.50747466",
"0.50708944",
"0.5067371",
"0.5064733",
"0.5063469",
"0.5056074"
]
| 0.6420535 | 0 |
Verify all objects satisfy the Field Consistency criteria | private static boolean verifyFieldConsistency(LogManager pLogger, UnmodifiableSMG pSmg) {
for (SMGObject obj : pSmg.getObjects()) {
if (!checkSingleFieldConsistency(pLogger, obj, pSmg)) {
return false;
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void checkConsistency(List inconsistencies);",
"@Override\n\tvoid checkConsistency()\n\t{\n\t\t\n\t}",
"private void checkStructure() {\n for (DatabaseUpdateType updateType : DatabaseUpdateType.values()) {\n checkDatabaseStructure(updateType);\n }\n }",
"private static boolean checkSingleFieldConsistency(\n LogManager pLogger, SMGObject pObject, UnmodifiableSMG pSmg) {\n\n // For all fields in the object, verify that sizeof(type)+field_offset < object_size\n SMGEdgeHasValueFilterByObject filter = SMGEdgeHasValueFilter.objectFilter(pObject);\n\n for (SMGEdgeHasValue hvEdge : pSmg.getHVEdges(filter)) {\n if ((hvEdge.getOffset() + hvEdge.getSizeInBits()) > pObject.getSize()) {\n pLogger.log(Level.SEVERE, \"SMG inconistent: field exceedes boundary of the object\");\n pLogger.log(Level.SEVERE, \"Object: \", pObject);\n pLogger.log(Level.SEVERE, \"Field: \", hvEdge);\n return false;\n }\n }\n return true;\n }",
"@Override\n\tprotected boolean verifyFields() {\n\t\treturn false;\n\t}",
"public void checkFields(){\n }",
"private void verify(final Collection objects) {\n final HashSet originalIds = new HashSet();\n for (final Iterator i = objects.iterator(); i.hasNext();) {\n final ManagedObject mo = (ManagedObject) i.next();\n originalIds.add(mo.getID());\n }\n\n final Collection inMemoryIds = getAllObjectIDs();\n assertTrue(\"Wrong bits in memory were set\", originalIds.containsAll(inMemoryIds));\n\n // verify on disk object IDs\n final ObjectIDSet idSet = this.managedObjectPersistor.snapshotObjectIDs();\n assertTrue(\"Wrong object IDs on disk\", idSet.containsAll(inMemoryIds));\n assertTrue(\"Wrong object IDs on disk\", inMemoryIds.containsAll(idSet));\n }",
"@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}",
"@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}",
"@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}",
"@Override\r\n\tpublic void validateIntegrityConstraint() {\n\t\tvalidatorEngine.validate(entity);\r\n\t}",
"private void checkRep() {\n for (Ball ball : balls) {\n assert ball.getPosition().d1 >= 0\n && ball.getPosition().d1 <= WIDTH - 1;\n assert ball.getPosition().d2 >= 0\n && ball.getPosition().d2 <= HEIGHT - 1;\n }\n for (Gadget gadget : gadgets) {\n assert gadget.getPosition().d1 >= 0\n && gadget.getPosition().d1 <= WIDTH - 1;\n assert gadget.getPosition().d2 >= 0\n && gadget.getPosition().d2 <= HEIGHT - 1;\n }\n\n assert GRAVITY > 0 && MU2 > 0 && MU > 0;\n }",
"public void verifyBugerList()\n\t{\n\t\t\n\t}",
"ConsistencyLevel consistency();",
"private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}",
"private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}",
"void verifyConsistent(ImmutableClassesGiraphConfiguration conf);",
"@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingObjectsThatAreAlreadyPersistent() {\n }",
"@Override\r\n\tpublic boolean isConsistent(List<Constraint> constraints)\r\n\t\t\tthrows DomainSizeException {\r\n\t\treturn QXKCTools.isConsistent(constraints, this.numberOfConstraints);\r\n\t}",
"public void verifyEntrySet() {\n }",
"private void assertAll() {\n\t\t\n\t}",
"@Test\n public void checkUpdateCampaignTest() {\n ObjectIdentityData buyer = ObjectIdentityData.getAnyObjectFromList(buyers);\n // select any not own campaign\n ObjectIdentityData campaign = ObjectIdentityData.getAnyObjectFromList(campaigns);\n RequestData requestData = new CampaignRequestData(campaign, buyer, false);\n GrantsVerification.checkUpdateRequest(requestData, isAdmin());\n }",
"private void CheckStructureIntegrity() {\n int size = 0;\n for (Module mod : modules) {\n size += mod.getAddresses().size();\n logger.info(\"BBS : {} Module {}\", mod.getAddresses().size(), mod.getName());\n }\n logger.info(\"Total BBS : {}\", size);\n }",
"@Test\n public void collidableObjects() {\n radar.loop();\n assertTrue(radar.getObjectsSeenByRadar().stream().anyMatch(t -> t.getId().equals(\"roadsign_speed_40_1\")));\n assertFalse(radar.getObjectsSeenByRadar().stream().anyMatch(t -> t.getId().equals(\"parking_2\")));\n }",
"public void validate() {\n for (Map.Entry<Integer, List<Message>> messagesOneId : messagesMap.entrySet()) {\n //get bank client\n int clientId = messagesOneId.getKey();\n BankClient bankClient = bankDatabase.get(clientId);\n\n //loop for each message with this ID\n for (Message messageData : messagesOneId.getValue()) {\n //check if this message is verified\n boolean isVerified = SignatureVerification.checkIsVerified(bankClient, messageData);\n //check if the request amount exceed limitation\n boolean isValid = checkIsValid(bankClient, messageData);\n //set the corresponding fields of message\n messageData.setVerified(isVerified);\n messageData.setValid(isValid);\n }\n }\n }",
"@Test (priority = 2)\n\tpublic void TC2_CheckAllFields_Exisit ()\n\n\t{\n\t\tCreateUserPage UserObj = new CreateUserPage (driver);\n\n\t\t// This is to Validate If all fields of create user page are existing\n\t\tUserObj.Validate_AllFields_Exsist();\n\t\n\n\t}",
"@Test\n public void fsckMetricsInconsistentFwdNoDupes() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 3});\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(3, errors);\n }",
"@Test\n void testCreateAndUpdateOnlyReportErrorsIfItAddsNewInformation() {\n\n Setup setup =\n new Setup.Builder()\n .trackedEntity(\"xK7H53f4Hc2\")\n .isNotValid()\n .enrollment(\"t1zaUjKgT3p\")\n .isNotValid()\n .relationship(\"Te3IC6TpnBB\", trackedEntity(\"xK7H53f4Hc2\"), enrollment(\"t1zaUjKgT3p\"))\n .isNotValid()\n .build();\n\n PersistablesFilter.Result persistable =\n filter(setup.bundle, setup.invalidEntities, TrackerImportStrategy.CREATE_AND_UPDATE);\n\n assertAll(\n () -> assertIsEmpty(persistable.get(TrackedEntity.class)),\n () -> assertIsEmpty(persistable.get(Enrollment.class)),\n () -> assertIsEmpty(persistable.get(Relationship.class)),\n () -> assertIsEmpty(persistable.getErrors()));\n }",
"private void verifyChanges() {\n System.out.println(\"Verify changes\"); \n }",
"@Test\n public void fsckMetricsInconsistentFwdAndInconsistentRev() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, \n METRICS, \"foo\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(6, errors);\n }",
"private void checkDatabaseStructure(DatabaseUpdateType update) {\n }",
"@Test\n public void checkEquals() {\n EqualsVerifier.forClass(GenericMessageDto.class).usingGetClass()\n .suppress(Warning.NONFINAL_FIELDS).verify();\n }",
"@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNonPersistentFields() {\n }",
"private boolean CheckAllRequiredFields() {\n\t\tboolean res = true;\n\t\tres &= CheckParkSelection();\n\t\tres &= CheckDateSelection();\n\t\tres &= CheckVisitorHour();\n\t\tres &= CheckEmail();\n\t\tres &= CheckPhoneNumber();\n\t\treturn res;\n\t}",
"private boolean haveTwoObjsSameFields(Class classObjects, Object obj1, Object obj2, ArrayList<String> fieldsToExcludeFromCompare) {\n log.info(\"TEST: comparing two objects of class \"+classObjects.getName());\n if (obj1.getClass() != obj2.getClass()) {\n log.error(\"TEST: The two objects are instances of different classes, thus different\");\n return false;\n }\n\n try {\n PropertyDescriptor[] pds= Introspector.getBeanInfo(classObjects).getPropertyDescriptors();\n for(PropertyDescriptor pd: pds) {\n log.info(pd.getDisplayName());\n String methodName=pd.getReadMethod().getName();\n String fieldName = methodName.substring(3, methodName.length());\n\n if(fieldsToExcludeFromCompare.contains(fieldName)==true) {\n continue;\n }\n\n boolean areEqual=false;\n try {\n Object objReturned1 = pd.getReadMethod().invoke(obj1);\n Object objReturned2 =pd.getReadMethod().invoke(obj2);\n if(objReturned1!=null && objReturned2!=null) {\n areEqual=objReturned1.equals(objReturned2);\n if(objReturned1 instanceof List<?> && ((List) objReturned1).size()>0 && ((List) objReturned1).size()>0 && ((List) objReturned1).get(0) instanceof String) {\n String str1=String.valueOf(objReturned1);\n String str2=String.valueOf(objReturned2);\n areEqual=str1.equals(str2);\n\n }\n }\n else if(objReturned1==null && objReturned2==null) {\n log.info(\"TEST: Field with name \"+fieldName+\" null in both objects.\");\n areEqual=true;\n }\n else {\n //log.info(\"One of two objects is null\");\n //log.info(\"{}\",objReturned1);\n //log.info(\"{}\",objReturned2);\n }\n if(areEqual==false) {\n log.info(\"TEST: field with name \"+fieldName+\" has different values in objects. \");\n return false;\n }\n else{\n log.info(\"TEST: field with name \"+fieldName+\" has same value in both objects. \");\n }\n } catch (IllegalAccessException e) {\n\n e.printStackTrace();\n return false;\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n return false;\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n return false;\n }\n }\n } catch (IntrospectionException e) {\n e.printStackTrace();\n }\n return true;\n }",
"@Test\n public void checkValidEntity() {\n cleanEntity0();\n entity0 = EntityUtil.getSampleRole();\n final Set<ConstraintViolation<Object>> cv = PersistenceValidation.validate(entity0);\n assertTrue(cv.isEmpty());\n }",
"private void checkCollisionGroupInternal() {\n\t\tcheckInternalCollisions();\r\n\t\t\r\n\t\t// for every composite in this Group..\r\n\t\tint clen = _composites.size();\r\n\t\tfor (int j = 0; j < clen; j++) {\r\n\t\t\t\r\n\t\t\tComposite ca = _composites.get(j);\r\n\t\t\t\r\n\t\t\t// .. vs non composite particles and constraints in this group\r\n\t\t\tca.checkCollisionsVsCollection(this);\r\n\t\t\t\r\n\t\t\t// ...vs every other composite in this Group\r\n\t\t\tfor (int i = j + 1; i < clen; i++) {\r\n\t\t\t\tComposite cb = _composites.get(i);\r\n\t\t\t\tca.checkCollisionsVsCollection(cb);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void checkConsistency() {\n for (String word : dictionary) {\n assertEquals(words.contains(word), trie.contains(word));\n }\n }",
"private void verifyAllValues(AllValues allValues, int offset) {\n\t\tfor (int i = offset; i < allValues.size(); i++) {\n\t\t\tif (i % 2 == 0) {\n\t\t\t\tassertTrue(\"OneValue at index \" + i + \" should be of type OneResult\", allValues.get(i) instanceof OneResult);\n\t\t\t\tassertEquals(\"Value at index \" + i + \" should be equal to \" + i, i, allValues.get(i).getValue());\n\t\t\t} else {\n\t\t\t\tassertTrue(\"OneValue at index \" + i + \" should be of type OneReject\", allValues.get(i) instanceof OneReject);\n\t\t\t\tassertTrue(\"Value at index \" + i + \" should be of type IndexedRuntimeException\", allValues.get(i).getValue() instanceof IndexedRuntimeException);\n\t\t\t}\n\t\t}\n\t}",
"@Test\r\n\tpublic void testGetAllGuidances() {\n\t\tthis.checklistDAO.saveOrUpdateCheckList(this.checklist);\r\n\r\n\t\t// Look if this checklist is also into the database and look if the size\r\n\t\t// of the set is >= 1.\r\n\t\tList<CheckList> checklists = this.checklistDAO.getAllCheckList();\r\n\t\tassertNotNull(checklists);\r\n\t\tassertTrue(checklists.size() >= 1);\r\n\t}",
"public void testTwoFields() throws Exception {\n String key1 = 1 + randomAlphaOfLength(3);\n String key2 = 2 + randomAlphaOfLength(3);\n String key3 = 3 + randomAlphaOfLength(3);\n updateAndCheckSource(0, 1, fields(key1, \"foo\", key2, \"baz\"));\n updateAndCheckSource(0, 1, fields(key1, \"foo\", key2, \"baz\"));\n updateAndCheckSource(1, 2, fields(key1, \"foo\", key2, \"bir\"));\n updateAndCheckSource(1, 2, fields(key1, \"foo\", key2, \"bir\"));\n updateAndCheckSource(2, 3, fields(key1, \"foo\", key2, \"foo\"));\n updateAndCheckSource(3, 4, fields(key1, \"foo\", key2, null));\n updateAndCheckSource(3, 4, fields(key1, \"foo\", key2, null));\n updateAndCheckSource(4, 5, fields(key1, \"foo\", key2, \"foo\"));\n updateAndCheckSource(5, 6, fields(key1, null, key2, \"foo\"));\n updateAndCheckSource(5, 6, fields(key1, null, key2, \"foo\"));\n updateAndCheckSource(6, 7, fields(key1, null, key2, null));\n updateAndCheckSource(6, 7, fields(key1, null, key2, null));\n updateAndCheckSource(7, 8, fields(key1, null, key2, null, key3, null));\n\n assertEquals(5, totalNoopUpdates());\n }",
"protected void verify() {\n\t\tif (size(r) != n)\n\t\t\tthrow new IllegalArgumentException(\"size is incorrect\");\n\t\tverify(r);\n\t}",
"private void validate() {\n for (DBRow row : rows) {\n for (DBColumn column : columns) {\n Cell cell = Cell.at(row, column);\n DBValue value = values.get(cell);\n notNull(value,\"Cell \" + cell);\n }\n }\n }",
"@Test\n public void gettersAndSettersShouldWorkForEachProperty() {\n assertThat(AssignForceBatch.class, hasValidGettersAndSetters());\n }",
"public void validate() throws org.apache.thrift.TException {\n if (object != null) {\n object.validate();\n }\n }",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}",
"protected void verifyState() throws BOException {\n\t\t// No need to validate inactive objects\n\t\tif (isActive()) {\n\t\t\tif (children != null) {\n\t\t\t\tfor (BusinessObject child : children.values()) {\n\t\t\t\t\tif (child.independentProperty().getValue()) {\n\t\t\t\t\t\tchild.verifyState();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString err = doVerifyState();\n\t\t\tif (!StringUtil.isNullOrBlank(err)) {\n//\t\t\t\tthrow new BOException(\"Failed to verfy child with message '\" + err + \"'\", this);\n\t\t\t\tthrow new BOException(err, this);\n\t\t\t}\n\t\t\tif (children != null) {\n\t\t\t\tfor(BusinessObject child : children.values()) {\n\t\t\t\t\tif (!child.independentProperty().getValue()) {\n\t\t\t\t\t\tchild.verifyState();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void verifySelf(Object[] objects) throws Exception {\n assertFalse(\"Empty array\", objects.length == 0);\n verifySelf(objects, defineComparator(null, objects[0]));\n }",
"public void validate () throws ModelValidationException\n\t\t\t{\n\t\t\t\tif (MappingClassElement.VERSION_CONSISTENCY == \n\t\t\t\t\tmappingClass.getConsistencyLevel())\n\t\t\t\t{\n\t\t\t\t\tMappingFieldElement versionField =\n\t\t\t\t\t\t validateVersionFieldExistence();\n\t\t\t\t\tString className = mappingClass.getName();\n\t\t\t\t\tString fieldName = versionField.getName();\n\t\t\t\t\tString columnName = null;\n\t\t\t\t\tColumnElement column = null;\n\n\t\t\t\t\tif (versionField instanceof MappingRelationshipElement)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow constructFieldException(fieldName, \n\t\t\t\t\t\t\t\"util.validation.version_field_relationship_not_allowed\");//NOI18N\n\t\t\t\t\t}\n\t\t\t\t\telse if (MappingFieldElement.GROUP_DEFAULT != \n\t\t\t\t\t\tversionField.getFetchGroup()) // must be in DFG\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow constructFieldException(fieldName, \n\t\t\t\t\t\t\t\"util.validation.version_field_fetch_group_invalid\");//NOI18N\n\t\t\t\t\t}\n\n\t\t\t\t\tvalidatePersistenceFieldAttributes(className, fieldName);\n\t\t\t\t\tcolumnName = validateVersionFieldMapping(versionField);\n\t\t\t\t\tcolumn = validateTableMatch(className, fieldName, columnName);\n\t\t\t\t\tvalidateColumnAttributes(className, fieldName, column);\n\t\t\t\t}\n\t\t\t}",
"@Test\n public void fsckMetricsInconsistentFwdAndDupeRev() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(5, errors);\n }",
"void checkAndUpdateBoundary(Integer requiredChange);",
"private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}",
"@Override\r\n\tpublic void validateUpdate() throws Exception {\n\r\n\t}",
"@Test\n public void testGetAll() throws Exception {\n JumpCloneImplant existing;\n Map<Integer, Map<Integer, JumpCloneImplant>> listCheck = new HashMap<>();\n\n existing = new JumpCloneImplant(jumpCloneID, typeID);\n existing.setup(testAccount, 7777L);\n existing = CachedData.update(existing);\n listCheck.put(jumpCloneID, new HashMap<>());\n listCheck.get(jumpCloneID)\n .put(typeID, existing);\n\n existing = new JumpCloneImplant(jumpCloneID + 10, typeID + 10);\n existing.setup(testAccount, 7777L);\n existing = CachedData.update(existing);\n listCheck.put(jumpCloneID + 10, new HashMap<>());\n listCheck.get(jumpCloneID + 10)\n .put(typeID + 10, existing);\n\n // Associated with different account\n existing = new JumpCloneImplant(jumpCloneID, typeID);\n existing.setup(otherAccount, 7777L);\n CachedData.update(existing);\n\n // Not live at the given time\n existing = new JumpCloneImplant(jumpCloneID + 3, typeID + 3);\n existing.setup(testAccount, 9999L);\n CachedData.update(existing);\n\n // EOL before the given time\n existing = new JumpCloneImplant(jumpCloneID + 4, typeID + 4);\n existing.setup(testAccount, 7777L);\n existing.evolve(null, 7977L);\n CachedData.update(existing);\n\n List<JumpCloneImplant> result = CachedData.retrieveAll(8888L,\n (contid, at) -> JumpCloneImplant.accessQuery(testAccount,\n contid, 1000,\n false, at,\n AttributeSelector.any(),\n AttributeSelector.any()));\n Assert.assertEquals(listCheck.size(), result.size());\n for (JumpCloneImplant next : result) {\n int jumpCloneID = next.getJumpCloneID();\n int typeID = next.getTypeID();\n Assert.assertTrue(listCheck.containsKey(jumpCloneID));\n Assert.assertTrue(listCheck.get(jumpCloneID)\n .containsKey(typeID));\n Assert.assertEquals(listCheck.get(jumpCloneID)\n .get(typeID), next);\n }\n\n }",
"@Transactional(onUnits = {})\n public void assertAllEntitiesHaveBeenPersisted() {\n checkState(!storedEntities.isEmpty(), \"no entities to check\");\n for (TestEntity storedEntity : storedEntities) {\n assertNotNull(\"At least one entity which should have been persisted was NOT found in the DB. \" + tasks,\n emProvider.get()\n .find(TestEntity.class, storedEntity.getId()));\n }\n }",
"public void validateAttributes() {\n if ((totalNumBuckets <= 0)) {\n throw new IllegalStateException(\n String.format(\n \"TotalNumBuckets %s is an illegal value, please choose a value greater than 0\",\n totalNumBuckets));\n }\n if ((redundancy < 0) || (redundancy >= 4)) {\n throw new IllegalStateException(\n String.format(\n \"RedundantCopies %s is an illegal value, please choose a value between 0 and 3\",\n redundancy));\n }\n for (final Object value : getLocalProperties().keySet()) {\n String propName = (String) value;\n if (!PartitionAttributesFactory.LOCAL_MAX_MEMORY_PROPERTY.equals(propName)) {\n throw new IllegalStateException(\n String.format(\"Unknown local property: '%s'\",\n propName));\n }\n }\n for (final Object o : getGlobalProperties().keySet()) {\n String propName = (String) o;\n if (!PartitionAttributesFactory.GLOBAL_MAX_BUCKETS_PROPERTY.equals(propName)\n && !PartitionAttributesFactory.GLOBAL_MAX_MEMORY_PROPERTY.equals(propName)) {\n throw new IllegalStateException(\n String.format(\"Unknown global property: '%s'\",\n propName));\n }\n }\n if (recoveryDelay < -1) {\n throw new IllegalStateException(\"RecoveryDelay \" + recoveryDelay\n + \" is an illegal value, please choose a value that is greater than or equal to -1\");\n }\n if (startupRecoveryDelay < -1) {\n throw new IllegalStateException(\"StartupRecoveryDelay \" + startupRecoveryDelay\n + \" is an illegal value, please choose a value that is greater than or equal to -1\");\n }\n if (fixedPAttrs != null) {\n List<FixedPartitionAttributesImpl> duplicateFPAattrsList =\n new ArrayList<>();\n Set<FixedPartitionAttributes> fpAttrsSet = new HashSet<>();\n for (FixedPartitionAttributesImpl fpa : fixedPAttrs) {\n if (fpa == null || fpa.getPartitionName() == null) {\n throw new IllegalStateException(\n \"Fixed partition name cannot be null\");\n }\n if (fpAttrsSet.contains(fpa)) {\n duplicateFPAattrsList.add(fpa);\n } else {\n fpAttrsSet.add(fpa);\n }\n }\n if (duplicateFPAattrsList.size() != 0) {\n throw new IllegalStateException(\n String.format(\"Partition name %s can be added only once in FixedPartitionAttributes\",\n duplicateFPAattrsList));\n }\n }\n }",
"public static void checkUpdateProbabilityOnAtomicRelations()\r\n\t{\r\n\t\tint[] base_relations = {1,2,4,8,16,32,64,128};\r\n\t\tint r1,r2,r3;\r\n\t\tint total = 0;\r\n\t\tint update = 0;\r\n\t\tfor (int i = 0; i < 8; i++)\r\n\t\t{\r\n\t\t\t r1 = base_relations[i];\r\n\t\t\tfor(int j = 0; j < 8; j++)\r\n\t\t\t{\r\n\t\t\t\tr2 = base_relations[j];\r\n\t\t\t\r\n\t\t\t\tfor(int k = 0; k < 8; k++)\r\n\t\t\t\t{ \r\n\t\t\t\t\tr3 = base_relations[k];\r\n\t\t\t\t\ttotal++;\r\n\t\t\t\t\t//int new_r3 = CompositionTable.LookUpTable(r1, r2);\r\n\t\t\t\t\tint new_r3 = SetOperators.intersection(r3, \r\n\t\t\t\t\t\t\t\tCompositionTable.LookUpTable(r1, r2));\r\n\t\t\t\t\t//System.out.println(new_r3);\r\n\t\t\t\t\tif( new_r3 != r3 )\r\n\t\t\t\t\t{\t\r\n\t\t\t\t\t\tupdate++;\r\n\t\t\t\t\t\t//System.out.println(new_r3);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\tSystem.out.println(\" total \" + total + \" update \" + update);\r\n\t\tSystem.out.println((double)update/total);\r\n\t\t\t\t\r\n\t}",
"@Test\r\n public void testFindAll() throws Exception {\r\n List<MonitoriaEntity> totalEntidades = persistence.findAll();\r\n Assert.assertEquals(data.size(), totalEntidades.size());\r\n for(MonitoriaEntity ent: totalEntidades){\r\n boolean encontro = false;\r\n for(MonitoriaEntity entity: data){\r\n if(ent.equals(entity)){\r\n encontro = true;\r\n }\r\n }\r\n Assert.assertTrue(true);\r\n }\r\n }",
"private void validateTime()\n {\n List<Object> collisions = validateCollisions();\n\n for (Object object : collisions)\n {\n if (DietTreatmentBO.class.isAssignableFrom(object.getClass()))\n {\n _errors.add(String\n .format(\"Die Diätbehandlung '%s' überschneidet sich mit der Diätbehandlung '%s'\",\n _dietTreatment.getDisplayText(),\n ((DietTreatmentBO) object).getName()));\n }\n }\n }",
"@Test\n public void fsckMetricsInconsistentForward() throws Exception {\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(2, errors);\n }",
"@Override\n public void verifyDeterministic() throws NonDeterministicException {\n }",
"@Override\n\tpublic void check() throws Exception {\n\t}",
"@Test(timeout = TIMEOUT)\n public void testInstanceFields() {\n Class sortingClass = Sorting.class;\n Field[] fields = sortingClass.getDeclaredFields();\n Field[] validFields = new Field[0];\n assertArrayEquals(fields, validFields);\n }",
"public PDUsPage verifyAllFieldsReadOnly(){\n\t\tString[] Fields = { \"PDUs_ReadOnlyName_Xpath\",\n\t\t\t\t\"PDUs_ReadOnlyManufacturer_Xpath\",\n\t\t\t\t\"PDUs_ReadOnlyModelId_Xpath\",\n\t\t\t\t\"PDUs_ReadOnlySerialNumber_Xpath\",\n\t\t\t\t\"PDUs_ReadOnlyLocation_Xpath\",\n\t\t\t\t\"PDUs_ReadOnlyIPAddress_Xpath\",\n\t\t\t\t\"PDUs_ReadOnlyInputPower_Xpath\",\n\t\t\t\t\"PDUs_ReadOnlyGoLiveDate_Xpath\",\n\t\t\t\t\"PDUs_ReadOnlyShortDescription_Xpath\",\n\t\t\t\t\"PDUs_ReadOnlyOperationalStatus_Xpath\",\n\t\t\t\t\"PDUs_ReadOnlyOwnerGroup_Xpath\",\n\t\t\t\t\"PDUs_ReadOnlySystemManager_Xpath\",\n\t\t\t\t\"PDUs_ReadOnlySystemManagerMan_Xpath\"};\n\n\t\tString[] FieldsDesc = {\"Name\",\n\t\t\t\t\"Manufacturer\",\n\t\t\t\t\"Model Id\",\n\t\t\t\t\"Serial Number\",\n\t\t\t\t\"Location\",\n\t\t\t\t\"IP Address\",\n\t\t\t\t\"Input Power\",\n\t\t\t\t\"Go Live Date\",\n\t\t\t\t\"Short Description\",\n\t\t\t\t\"Operational Status\",\n\t\t\t\t\"CI Owner Group\",\n\t\t\t\t\"System Manager\",\n\t\t\t\t\"Secondary System Manager\"\n\t\t};\n\n\t\tverifyDisabledFieldsByXpath(Fields, FieldsDesc);\n\n\t\treturn this;\n\n\t}",
"@Test\n public void testGetAll() {\n List<Allocation> cc = allocationCollection.getAll();\n assertNotNull(cc);\n assertFalse(cc.isEmpty());\n }",
"public boolean isValid() {\n\n if (this.eTime == INFINITY) return false;\n\n int oldCountA = (a != null) ? a.getCount() : 0;\n int oldCountB = (b != null) ? b.getCount() : 0;\n\n if (countA != oldCountA || countB != oldCountB)\n return false;\n\n return true;\n }",
"@Override\r\n\tprotected void checkUpdate(Fingerprint entity) throws BusinessException {\n\t}",
"@Test\n public void size() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n assert repot.size()==1;\n assert repo.size() == 1;\n assert repon.size() == 1;\n }\n catch (ValidationException e){\n }\n }",
"protected void checkIntegrity(String text) {\n\t\tif (ExpressionTools.valuesAreDifferent(getText(), text)) {\n\t\t\tclearResolvedObjects();\n\t\t}\n\t}",
"public static void verifyGolden(TestCase test, Object[] objects) throws Exception {\n assertFalse(\"Empty array\", objects.length == 0);\n verifyGolden(test, objects, defineComparator(test, objects[0]));\n }",
"@Test(dataProvider = \"updateDirtyFieldsDataProvider\")\n public void updateDirtyFields(boolean updateDirtyFields) throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Give the document's built-in \"Author\" property value, and then display it with a field.\n doc.getBuiltInDocumentProperties().setAuthor(\"John Doe\");\n FieldAuthor field = (FieldAuthor) builder.insertField(FieldType.FIELD_AUTHOR, true);\n\n Assert.assertFalse(field.isDirty());\n Assert.assertEquals(\"John Doe\", field.getResult());\n\n // Update the property. The field still displays the old value.\n doc.getBuiltInDocumentProperties().setAuthor(\"John & Jane Doe\");\n\n Assert.assertEquals(\"John Doe\", field.getResult());\n\n // Since the field's value is out of date, we can mark it as \"dirty\".\n // This value will stay out of date until we update the field manually with the Field.Update() method.\n field.isDirty(true);\n\n // If we save without calling an update method,\n // the field will keep displaying the out of date value in the output document.\n doc.save(getArtifactsDir() + \"Filed.UpdateDirtyFields.docx\");\n\n // The LoadOptions object has an option to update all fields\n // marked as \"dirty\" when loading the document.\n LoadOptions options = new LoadOptions();\n options.setUpdateDirtyFields(updateDirtyFields);\n\n doc = new Document(getArtifactsDir() + \"Filed.UpdateDirtyFields.docx\", options);\n\n Assert.assertEquals(\"John & Jane Doe\", doc.getBuiltInDocumentProperties().getAuthor());\n\n field = (FieldAuthor) doc.getRange().getFields().get(0);\n\n // Updating dirty fields like this automatically set their \"IsDirty\" flag to false.\n if (updateDirtyFields) {\n Assert.assertEquals(\"John & Jane Doe\", field.getResult());\n Assert.assertFalse(field.isDirty());\n } else {\n Assert.assertEquals(\"John Doe\", field.getResult());\n Assert.assertTrue(field.isDirty());\n }\n //ExEnd\n }",
"private void checkCastleCollisions() {\n\t\t\n\t}",
"public boolean isConsistent()\n\t{\n\t\tfinal List<AbsoluteFeatureElement> checkedAbsolutes = new ArrayList<AbsoluteFeatureElement>();\n\t\tfinal List<RelativeFeatureElement> checkedRelatives = new ArrayList<RelativeFeatureElement>();\n\t\t\n\t\tfor (final FeatureElement element : featureElements)\n\t\t{\n\t\t\tif (element instanceof AbsoluteFeatureElement)\n\t\t\t{\n\t\t\t\tfinal AbsoluteFeatureElement abs = (AbsoluteFeatureElement) element;\n\t\t\t\t\n\t\t\t\tfor (final AbsoluteFeatureElement other : checkedAbsolutes)\n\t\t\t\t{\n\t\t\t\t\tif (abs.position() == other.position())\t// same positions, so need compatible elements\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!(abs.equals(other) || abs.isCompatibleWith(other) || abs.generalises(other) || other.generalises(abs)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcheckedAbsolutes.add(abs);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfinal RelativeFeatureElement rel = (RelativeFeatureElement) element;\n\t\t\t\t\n\t\t\t\tfor (final RelativeFeatureElement other : checkedRelatives)\n\t\t\t\t{\n\t\t\t\t\tif (rel.walk().equals(other.walk()))\t// equal Walks, so need compatible elements\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!(rel.equals(other) || rel.isCompatibleWith(other) || rel.generalises(other) || other.generalises(rel)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcheckedRelatives.add(rel);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"public void testCanApply() {\n\t\tthis.recordReturn(this.one, this.one.canApply(), true);\n\t\tthis.recordReturn(this.two, this.two.canApply(), true);\n\t\tthis.replayMockObjects();\n\t\tassertTrue(\"Should be able to apply if all changes can apply\", this.aggregate.canApply());\n\t\tthis.verifyMockObjects();\n\t}",
"@Test\n\tpublic void equalsContract()\n\t{\n\t\tEqualsVerifier.forClass(ExperienceChangedReport.class).verify();\n\t}",
"int getFieldViolationsCount();",
"@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFields() {\n }",
"public boolean isConsistent(Vertex v) {\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < v.getNeighbors().size(); j++) {\n if (!isSafe(v, i)) {\n return false;\n }\n }\n\n }\n\n return true;\n }",
"protected boolean haveDependingFields(EventType event1, EventType event2) {\r\n\t\treturn !getCommonFields(event1, event2).isEmpty();\r\n\t}",
"@Override\n\tpublic boolean verify(RowStruct row) {\n\t\treturn true;\n\t}",
"public synchronized boolean verifyDocCounts() {\n\t\tfinal int docCount = mInfo.getSegmentInfo().getDocCount();\n\t\t\n\t\tint count;\n\t\tif (mLiveDocs != null) {\n\t\t\tcount = 0;\n\t\t\tfor (int docID=0; docID < docCount; docID++) {\n\t\t\t\tif (mLiveDocs.get(docID)) \n\t\t\t\t\tcount ++;\n\t\t\t}\n\t\t} else {\n\t\t\tcount = docCount;\n\t\t}\n\n\t\tassert docCount - mInfo.getDelCount() - mPendingDeleteCount == count: \n\t\t\t\"info.docCount=\" + docCount + \" info.getDelCount()=\" + mInfo.getDelCount() + \n\t\t\t\" pendingDeleteCount=\" + mPendingDeleteCount + \" count=\" + count;\n\t\t\n\t\treturn true;\n\t}",
"@Override\r\n\tprotected void doVerify() {\n\t\t\r\n\t}",
"private void validator() throws Exception {\n if (getDBTable() == null) throw new Exception(\"getDBTable missing\");\n if (getColumnsString() == null) throw new Exception(\"getColumnsString missing\");\n if (getColumnsType() == null || getColumnsType().size() <= 0) throw new Exception(\"getColumnsType missing\");\n if (getDuplicateUpdateColumnString() == null) {\n if (getColumnsString().split(\",\").length != getColumnsType().size())\n throw new Exception(\"mismatch for type and columns\");\n\n } else {\n if (getColumnsString().split(\",\").length +\n getDuplicateUpdateColumnString().split(\",\").length != getColumnsType().size())\n throw new Exception(\"mismatch for type and columns\");\n }\n }",
"public void checkEdges()\n\tthrows InconsistencyException\n\t{\n\t\t// first check if edges is non-null\n\t\tif(edges == null)\n\t\t\tthrow new InconsistencyException(\"The ArrayList edges should be non-null, but is null.\");\n\n\t\t// check that all vertices are referenced at least three times, as each is the vertex of at least one simplex\n\t\t// and in each simplex three edges meet at each vertex\n\t\t\n\t\t// create an array of ints that will hold the number of references to each vertex in the list of edges...\n\t\tint[] vertexReferences = new int[vertices.size()];\n\t\t\n\t\t// ... and set all these reference counts initially to zero\n\t\tfor(int i=0; i<vertexReferences.length; i++) vertexReferences[i] = 0;\n\t\t\n\t\t// go through all edges...\n\t\tfor(Edge edge:edges)\n\t\t{\n\t\t\t// go through both vertices...\n\t\t\tfor(int i=0; i<2; i++)\n\t\t\t\t// ... and increase the reference count of the vertex by 1\n\t\t\t\tvertexReferences[edge.getVertexIndices()[i]]++;\n\t\t\t// note that any vertex indices that are out of bounds will throw up an error here!\n\t\t}\n\n\t\t// check that all reference counts are >= 3\n\t\tfor(int i=0; i<vertexReferences.length; i++)\n\t\t{\n\t\t\tif(vertexReferences[i] < 3)\n\t\t\t{\n\t\t\t\t// vertex i is referenced fewer than 3 times\n\t\t\t\t\n\t\t\t\t// throw an InconsistencyException\n\t\t\t\tthrow(new InconsistencyException(\"Vertex #\" + i + \" should be referenced in the list of edges >= 3 times, but is referenced only \" + vertexReferences[i] + \" times.\"));\n\t\t\t}\n\t\t}\n\t}",
"public void check() {\r\n logger.info(\"ADIT monitor - Checking database and application.\");\r\n\r\n checkApplication();\r\n\r\n checkDBConnection();\r\n checkDBRead(this.getMonitorConfiguration().getTestDocumentId());\r\n }",
"@Test\n\tpublic void testCheckForEmptyFields() {\n\t\t\n\t\t// Case 1: when all fields are present\n\t\tRequestData requestDataObj1 = new RequestData();\n\t\trequestDataObj1.setDomain(\"PBTV\");\n\t\trequestDataObj1.setOwningBusinessEntity(\"CH\");\n\t\trequestDataObj1.setSourceSystemName(\"CDI\");\n\t\tboolean expectedResponse1 = true;\n\t\tboolean response1 = tokenisationMainObj.checkForEmptyFields(requestDataObj1);\n\t\tassertEquals(response1, expectedResponse1);\n\n\t\t// Case 2: when any of them is empty\n\t\tRequestData requestDataObj2 = new RequestData();\n\t\trequestDataObj2.setDomain(\"PBTV\");\n\t\trequestDataObj2.setOwningBusinessEntity(\"CH\");\n\t\trequestDataObj2.setSourceSystemName(\"\");\n\t\tboolean expectedResponse2 = false;\n\t\tboolean response2 = tokenisationMainObj.checkForEmptyFields(requestDataObj2);\n\t\tassertEquals(response2, expectedResponse2);\n\t}",
"@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNullReferences() {\n }",
"private void verifyIndividualBatchColumns() {\n for (final String element : BATCH_COLUMNS) {\n Log.altVerify(true, lblBatchColumnName(element).exists(),\n \"Check that column '\" + element + \"' is exist\");\n }\n }",
"void checkReconstructible() throws InvalidObjectException {\n // subclasses can override\n }",
"private ValidationResult allCriteriaSatisfied(FormCheckerElement elem) {\n\t\tfor (Criterion criterion : elem.getCriteria()) {\n\t\t\tValidationResult vr = criterion.validate(elem);\n\t\t\tif (!vr.isValid()) {\n\t\t\t\treturn vr;\n\t\t\t}\n\t\t}\n\n\t\treturn ValidationResult.ok();\n\t}",
"public void validate() throws org.apache.thrift.TException {\n if (sourceCharged != null) {\n sourceCharged.validate();\n }\n if (targetDeposit != null) {\n targetDeposit.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (entity != null) {\r\n entity.validate();\r\n }\r\n }",
"default boolean checkDbObj(Object object) {\n return false;\n }",
"protected void updateValidity(){}",
"public static void verifySelf(Object object) throws Exception {\n verifySelf(object, defineComparator(null, object));\n }"
]
| [
"0.64891523",
"0.64877903",
"0.5938688",
"0.59312665",
"0.5817785",
"0.5748933",
"0.5734888",
"0.56758887",
"0.56758887",
"0.56758887",
"0.56515473",
"0.5620804",
"0.5603752",
"0.5581688",
"0.5493179",
"0.5486452",
"0.5461217",
"0.544372",
"0.5428327",
"0.54280835",
"0.54147416",
"0.5376365",
"0.53747946",
"0.53611326",
"0.5342749",
"0.5341307",
"0.53395754",
"0.53281045",
"0.53081536",
"0.5303347",
"0.5300875",
"0.5299318",
"0.529532",
"0.5288595",
"0.5274609",
"0.5266889",
"0.52641183",
"0.5262797",
"0.5252112",
"0.5240963",
"0.52402616",
"0.52392894",
"0.5229482",
"0.52226",
"0.5220823",
"0.51848626",
"0.51848626",
"0.5170132",
"0.5168482",
"0.515436",
"0.5124779",
"0.51050717",
"0.51045144",
"0.51003814",
"0.50994164",
"0.50933355",
"0.508764",
"0.5085722",
"0.50771683",
"0.507285",
"0.50721216",
"0.5067668",
"0.5052823",
"0.504795",
"0.5040021",
"0.50353295",
"0.50320596",
"0.50263655",
"0.5022578",
"0.5020535",
"0.5019118",
"0.5016014",
"0.50109476",
"0.5008827",
"0.5001128",
"0.49993563",
"0.49993563",
"0.49993563",
"0.49899375",
"0.49885005",
"0.49882412",
"0.4980864",
"0.49802598",
"0.49793777",
"0.49632126",
"0.49626112",
"0.49604017",
"0.49539903",
"0.49469122",
"0.49454525",
"0.49398786",
"0.49376148",
"0.49360698",
"0.49341583",
"0.49341178",
"0.4933757",
"0.49319363",
"0.49306914",
"0.49241528",
"0.4923307"
]
| 0.6554638 | 0 |
Verify that the edges are consistent in the SMG | private static boolean verifyEdgeConsistency(
LogManager pLogger, UnmodifiableSMG pSmg, Iterable<? extends SMGEdge> pEdges) {
Deque<SMGEdge> to_verify = Queues.newArrayDeque(pEdges);
while (!to_verify.isEmpty()) {
SMGEdge edge = to_verify.pop();
// Verify that the object assigned to the edge exists in the SMG
if (!pSmg.getObjects().contains(edge.getObject())) {
pLogger.log(Level.SEVERE, "SMG inconsistent: Edge from a nonexistent object:", edge);
return false;
}
// Verify that the value assigned to the edge exists in the SMG
if (!pSmg.getValues().contains(edge.getValue())) {
pLogger.log(Level.SEVERE, "SMG inconsistent: Edge to a nonexistent value:", edge);
return false;
}
// Verify that the edge is consistent to all remaining edges
// - edges of different type are inconsistent
// - two Has-Value edges are inconsistent iff:
// - leading from the same object AND
// - have same type AND
// - have same offset AND
// - leading to DIFFERENT values
// - two Points-To edges are inconsistent iff:
// - different values point to same place (object, offset)
// - same values do not point to the same place
for (SMGEdge other_edge : to_verify) {
if (!edge.isConsistentWith(other_edge)) {
pLogger.log(Level.SEVERE, "SMG inconsistent: inconsistent edges");
pLogger.log(Level.SEVERE, "First edge: ", edge);
pLogger.log(Level.SEVERE, "Second edge: ", other_edge);
return false;
}
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testContainsEdge() {\n System.out.println(\"containsEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n Assert.assertFalse(graph.containsEdge(new Integer(i), new Integer(j)));\n } else {\n Assert.assertTrue(graph.containsEdge(new Integer(i), new Integer(j)));\n }\n }\n }\n\n }",
"public void checkEdges()\n\tthrows InconsistencyException\n\t{\n\t\t// first check if edges is non-null\n\t\tif(edges == null)\n\t\t\tthrow new InconsistencyException(\"The ArrayList edges should be non-null, but is null.\");\n\n\t\t// check that all vertices are referenced at least three times, as each is the vertex of at least one simplex\n\t\t// and in each simplex three edges meet at each vertex\n\t\t\n\t\t// create an array of ints that will hold the number of references to each vertex in the list of edges...\n\t\tint[] vertexReferences = new int[vertices.size()];\n\t\t\n\t\t// ... and set all these reference counts initially to zero\n\t\tfor(int i=0; i<vertexReferences.length; i++) vertexReferences[i] = 0;\n\t\t\n\t\t// go through all edges...\n\t\tfor(Edge edge:edges)\n\t\t{\n\t\t\t// go through both vertices...\n\t\t\tfor(int i=0; i<2; i++)\n\t\t\t\t// ... and increase the reference count of the vertex by 1\n\t\t\t\tvertexReferences[edge.getVertexIndices()[i]]++;\n\t\t\t// note that any vertex indices that are out of bounds will throw up an error here!\n\t\t}\n\n\t\t// check that all reference counts are >= 3\n\t\tfor(int i=0; i<vertexReferences.length; i++)\n\t\t{\n\t\t\tif(vertexReferences[i] < 3)\n\t\t\t{\n\t\t\t\t// vertex i is referenced fewer than 3 times\n\t\t\t\t\n\t\t\t\t// throw an InconsistencyException\n\t\t\t\tthrow(new InconsistencyException(\"Vertex #\" + i + \" should be referenced in the list of edges >= 3 times, but is referenced only \" + vertexReferences[i] + \" times.\"));\n\t\t\t}\n\t\t}\n\t}",
"public static boolean verifyGraph(Graph<V, DefaultEdge> g)\n {\n V start = g.vertexSet().stream().filter(V -> V.getID().equals(\"0\")).findAny().orElse(null);\n Iterator<V> iterator = new DepthFirstIterator<>(g, start);\n while (iterator.hasNext()) {\n V v = iterator.next();\n if (v.color == -1)\n {\n System.out.println(\"Did not color vertex \" + v.getID());\n System.out.println(\"check neighbors of \" + v.getID());\n List<V> neighbors = Graphs.neighborListOf(g, v);\n System.out.println(\"Vertex \" + v.getID() + \" color: \" + v.color);\n for (V neighbor : neighbors)\n {\n System.out.println(\"neighbor \" + neighbor.getID() + \" color: \" + neighbor.color);\n }\n return false;\n }\n if (!verifyColor(g, v))\n {\n System.out.println(\"check neighbors of \" + v.getID());\n List<V> neighbors = Graphs.neighborListOf(g, v);\n for (V neighbor : neighbors)\n {\n if (v.color == neighbor.color)\n {\n System.out.println(\"Vertex \" + v.getID() + \" color: \" + v.color);\n System.out.println(\"neighbor \" + neighbor.getID() + \" color: \" + neighbor.color);\n }\n }\n return false;\n }\n }\n return true;\n }",
"@Test\n void test05_checkSize() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\");\n graph.addVertex(\"c\"); // adds three vertices\n graph.addEdge(\"a\", \"b\");\n graph.addEdge(\"b\", \"c\");\n graph.addEdge(\"c\", \"b\"); // add three edges\n if (graph.size() != 3) {\n fail(\"graph has counted incorrect number of edges\");\n }\n }",
"@Test \r\n void add_mutiple_edges_check_size(){\r\n for(int i = 0; i < 20; i++) {\r\n graph.addEdge(\"\" + i, \"\" + (i + 1));\r\n } \r\n List<String> adjacent;\r\n for(int i = 0; i < 20; i++) {\r\n adjacent = graph.getAdjacentVerticesOf(\"\"+i);\r\n if(!adjacent.contains(\"\" + (i+1))) {\r\n fail();\r\n }\r\n }\r\n if(graph.size() != 20 | graph.order() != 21) {\r\n fail();\r\n }\r\n \r\n }",
"@Test\n\tpublic void edgesTest() {\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(C);\n\t\tvertices.add(D);\n\t\tedge_0.addVertices(vertices);\n\t\tList<Vertex> vertices1 = new ArrayList<>();\n\t\tvertices.add(A);\n\t\tvertices.add(B);\n\t\tedge_1.addVertices(vertices1);\n\t\tgraph.addEdge(edge_0);\n\t\tgraph.addEdge(edge_1);\n\t\tassertEquals(2, graph.edges().size());\n\t\tassertTrue(graph.edges().contains(edge_0));\n\t\tassertTrue(graph.edges().contains(edge_1));\n\t}",
"public boolean isEqual(Edge e){\n if(v1.equals(e.v1) && v2.equals(e.v2)){\n return true;\n }\n else if(v1.equals(e.v2) && v2.equals(e.v1)){\n return true;\n }\n else{\n return false;\n }\n }",
"@Test\n void test08_getAllAdjacentVertices() {\n graph.addEdge(\"a\", \"b\");\n graph.addEdge(\"a\", \"c\"); // add two edges\n\n List<String> check = new ArrayList<>();\n check.add(\"b\");\n check.add(\"c\"); // create mock up adjacent list\n\n if (!check.equals(graph.getAdjacentVerticesOf(\"a\"))) { // checks if both are same\n fail(\"graph didn't record adjacent vertices correctly\");\n }\n }",
"public void testContainsEdgeEdge( ) {\n init( );\n\n //TODO Implement containsEdge().\n }",
"public void testEdgesSet_ofVertices() {\n System.out.println(\"edgesSet\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n Set<Edge<Integer>> set = graph.edgesSet(new Integer(i), new Integer(j));\n\n if ((i + j) % 2 == 0) {\n Assert.assertEquals(set.size(), 1);\n } else {\n Assert.assertEquals(set.size(), 0);\n }\n }\n }\n }",
"public void testContainsEdgeObjectObject( ) {\n init( );\n\n assertFalse( m_g1.containsEdge( m_v1, m_v2 ) );\n assertFalse( m_g1.containsEdge( m_v1, m_v1 ) );\n\n assertTrue( m_g2.containsEdge( m_v1, m_v2 ) );\n assertTrue( m_g2.containsEdge( m_v2, m_v1 ) );\n\n assertTrue( m_g3.containsEdge( m_v1, m_v2 ) );\n assertTrue( m_g3.containsEdge( m_v2, m_v1 ) );\n assertTrue( m_g3.containsEdge( m_v3, m_v2 ) );\n assertTrue( m_g3.containsEdge( m_v2, m_v3 ) );\n assertTrue( m_g3.containsEdge( m_v1, m_v3 ) );\n assertTrue( m_g3.containsEdge( m_v3, m_v1 ) );\n\n assertFalse( m_g4.containsEdge( m_v1, m_v4 ) );\n m_g4.addEdge( m_v1, m_v4 );\n assertTrue( m_g4.containsEdge( m_v1, m_v4 ) );\n\n assertFalse( m_g3.containsEdge( m_v4, m_v2 ) );\n assertFalse( m_g3.containsEdge( null, null ) );\n }",
"private boolean check(EdgeWeightedGraph G, int s) {\r\n\r\n // check that edge weights are nonnegative\r\n for (Edge e : G.edges()) {\r\n if (e.weight() < 0) {\r\n System.err.println(\"negative edge weight detected\");\r\n return false;\r\n }\r\n }\r\n\r\n // check that distTo[v] and edgeTo[v] are consistent\r\n if (distTo[s] != 0.0 || edgeTo[s] != null) {\r\n System.err.println(\"distTo[s] and edgeTo[s] inconsistent\");\r\n return false;\r\n }\r\n for (int v = 0; v < G.V(); v++) {\r\n if (v == s) continue;\r\n if (edgeTo[v] == null && distTo[v] != Double.POSITIVE_INFINITY) {\r\n System.err.println(\"distTo[] and edgeTo[] inconsistent\");\r\n return false;\r\n }\r\n }\r\n\r\n // check that all edges e = v-w satisfy distTo[w] <= distTo[v] + e.weight()\r\n for (int v = 0; v < G.V(); v++) {\r\n for (Edge e : G.adj(v)) {\r\n int w = e.other(v);\r\n if (distTo[v] + e.weight() < distTo[w]) {\r\n System.err.println(\"edge \" + e + \" not relaxed\");\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n // check that all edges e = v-w on SPT satisfy distTo[w] == distTo[v] + e.weight()\r\n for (int w = 0; w < G.V(); w++) {\r\n if (edgeTo[w] == null) continue;\r\n Edge e = edgeTo[w];\r\n if (w != e.either() && w != e.other(e.either())) return false;\r\n int v = e.other(w);\r\n if (distTo[v] + e.weight() != distTo[w]) {\r\n System.err.println(\"edge \" + e + \" on shortest path not tight\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"@Test\n void test03_addEdgeBetweenVerticesWhichDontExist() {\n graph.addEdge(\"a\", \"b\");\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\"); // creates mock up vertex list\n if (!graph.getAllVertices().equals(vertices)) { // compares vertices list\n fail(\"Graph didn't add the vertices correctly\");\n }\n List<String> adjOfA = new ArrayList<>();\n adjOfA.add(\"b\"); // creates mock up adjacent list\n if (!graph.getAdjacentVerticesOf(\"a\").equals(adjOfA)) { // compares adjacent lists\n fail(\"Graph didn't correctly place adjacent vertices\");\n }\n }",
"@Test\r\n void test_insert_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n }\r\n\r\n }",
"@Test\r\n void test_remove_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.removeEdge(\"A\", \"B\");\r\n graph.removeEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n } \r\n }",
"@Test\n void test06_removeEdge_checkSize() {\n graph.addVertex(\"c\");\n graph.addEdge(\"a\", \"b\");\n graph.addEdge(\"b\", \"c\"); // adds two edges\n graph.removeEdge(\"a\", \"b\"); // removes one of the edges\n if (graph.size() != 1) {\n fail(\"graph has counted incorrect number of edges\");\n }\n }",
"@Test\r\n void test_insert_edges_remove_edges_check_size() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.addEdge(\"A\", \"D\");\r\n graph.addEdge(\"A\", \"E\");\r\n\r\n // There are no more edges in the graph\r\n if(graph.size() != 4) {\r\n fail();\r\n }\r\n graph.removeEdge(\"A\", \"B\");\r\n graph.removeEdge(\"A\", \"C\");\r\n graph.removeEdge(\"A\", \"D\");\r\n graph.removeEdge(\"A\", \"E\");\r\n if(graph.size() != 0) {\r\n fail();\r\n }\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.addEdge(\"A\", \"D\");\r\n graph.addEdge(\"A\", \"E\");\r\n if(graph.size() != 4) {\r\n fail();\r\n }\r\n }",
"@Test\r\n void test_insert_two_vertice_with_one_edge_remove_non_existent_edge() {\r\n // Add three vertices with two edges\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n vertices = graph.getAllVertices();\r\n // B should be an adjacent vertex of A\r\n if(!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")){\r\n fail();\r\n }\r\n // C should be an adjacent vertex of B\r\n if(!graph.getAdjacentVerticesOf(\"B\").contains(\"C\")){\r\n fail();\r\n }\r\n //Check that A,B and C are in the graph\r\n if(!vertices.contains(\"A\") |!vertices.contains(\"B\")\r\n | !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n // There are two edges in the graph\r\n if(graph.size() != 2) {\r\n fail();\r\n }\r\n // Try are remove edge from A to C\r\n graph.removeEdge(\"A\", \"C\");\r\n graph.removeEdge(\"A\", \"D\");\r\n graph.removeEdge(\"E\", \"F\");\r\n graph.removeEdge(null, \"A\");\r\n graph.removeEdge(\"A\", null);\r\n //Graph should maintain its original shape\r\n if(!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")){\r\n fail();\r\n }\r\n // C should be an adjacent vertex of B\r\n if(!graph.getAdjacentVerticesOf(\"B\").contains(\"C\")){\r\n fail();\r\n }\r\n //Check that A,B and C are in the graph\r\n if(!vertices.contains(\"A\") |!vertices.contains(\"B\")\r\n | !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n // There are two edges in the graph\r\n if(graph.size() != 2) {\r\n fail();\r\n }\r\n }",
"@Test \r\n void create_edge_between_to_nonexisted_vertexes() {\r\n graph.addEdge(\"A\", \"B\");\r\n List<String> adjacentA = graph.getAdjacentVerticesOf(\"A\");\r\n List<String> adjacentB = graph.getAdjacentVerticesOf(\"B\");\r\n if(!adjacentA.contains(\"B\")) { \r\n fail();\r\n }\r\n if(adjacentB.contains(\"A\")) { \r\n fail();\r\n }\r\n }",
"@Override\n public boolean verify() {\n for (EdgeDraftImpl edge : new NullFilterIterable<EdgeDraftImpl>(edgeList)) {\n String id = edge.getId();\n if (edge.getWeight() < 0f) {\n report.logIssue(new Issue(NbBundle.getMessage(ImportContainerImpl.class, \"ImportContainerException_Negative_Weight\", id), Level.WARNING));\n } else if (edge.getWeight() == 0) {\n removeEdge(edge);\n report.logIssue(new Issue(NbBundle.getMessage(ImportContainerImpl.class, \"ImportContainerException_Weight_Zero_Ignored\", id), Level.SEVERE));\n }\n }\n\n //Graph EdgeDefault\n if (directedEdgesCount > 0 && undirectedEdgesCount == 0) {\n setEdgeDefault(EdgeDirectionDefault.DIRECTED);\n } else if (directedEdgesCount == 0 && undirectedEdgesCount > 0) {\n setEdgeDefault(EdgeDirectionDefault.UNDIRECTED);\n } else if (directedEdgesCount > 0 && undirectedEdgesCount > 0) {\n setEdgeDefault(EdgeDirectionDefault.MIXED);\n }\n\n //IdType\n if (elementIdType.equals(ElementIdType.INTEGER) || elementIdType.equals(ElementIdType.LONG)) {\n try {\n for (NodeDraftImpl node : nodeList) {\n if (elementIdType.equals(ElementIdType.INTEGER)) {\n Integer.parseInt(node.getId());\n } else if (elementIdType.equals(ElementIdType.LONG)) {\n Long.parseLong(node.getId());\n }\n }\n for (EdgeDraftImpl edge : edgeList) {\n if (elementIdType.equals(ElementIdType.INTEGER)) {\n Integer.parseInt(edge.getId());\n } else if (elementIdType.equals(ElementIdType.LONG)) {\n Long.parseLong(edge.getId());\n }\n }\n } catch (NumberFormatException e) {\n report.logIssue(new Issue(NbBundle.getMessage(ImportContainerImpl.class, \"ImportContainerException_ElementIdType_Parse_Error\", elementIdType), Level.WARNING));\n elementIdType = ElementIdType.STRING;\n }\n }\n\n //Is dynamic graph\n for (NodeDraftImpl node : nodeList) {\n if (node != null) {\n if (node.isDynamic()) {\n dynamicGraph = true;\n }\n if (node.hasDynamicAttributes()) {\n dynamicAttributes = true;\n }\n }\n }\n for (EdgeDraftImpl edge : edgeList) {\n if (edge != null) {\n if (edge.isDynamic()) {\n dynamicGraph = true;\n }\n if (edge.hasDynamicAttributes()) {\n dynamicAttributes = true;\n }\n }\n }\n\n //Print time interval values to report\n// if (timeIntervalMin != null || timeIntervalMax != null) {\n// if (timeFormat.equals(TimeFormat.DATE) || timeFormat.equals(TimeFormat.DATETIME)) {\n// try {\n// String message = \"[\" + (timeIntervalMin != null ? DynamicUtilities.getXMLDateStringFromDouble(timeIntervalMin) : \"-inf\") + \",\";\n// message += (timeIntervalMax != null ? DynamicUtilities.getXMLDateStringFromDouble(timeIntervalMax) : \"+inf\") + \"]\";\n// report.log(NbBundle.getMessage(ImportContainerImpl.class, \"ImportContainerLog.TimeInterval\", message));\n// } catch (Exception e) {\n// }\n// } else {\n// String message = \"[\" + (timeIntervalMin != null ? timeIntervalMin.toString() : \"-inf\") + \",\";\n// message += (timeIntervalMax != null ? timeIntervalMax.toString() : \"+inf\") + \"]\";\n// report.log(NbBundle.getMessage(ImportContainerImpl.class, \"ImportContainerLog.TimeInterval\", message));\n// }\n// }\n//\n //Print TimeFormat\n if (dynamicGraph) {\n report.log(NbBundle.getMessage(ImportContainerImpl.class, \"ImportContainerLog.TimeFormat\", timeFormat.toString()));\n report.log(NbBundle.getMessage(ImportContainerImpl.class, \"ImportContainerLog.TimeRepresentation\", timeRepresentation.toString()));\n report.log(NbBundle.getMessage(ImportContainerImpl.class, \"ImportContainerLog.TimeZone\", timeZone.toString()));\n }\n\n //Print edge label type\n if (lastEdgeType != null) {\n report.log(NbBundle.getMessage(ImportContainerImpl.class, \"ImportContainerLog.EdgeLabelType\", lastEdgeType.getSimpleName()));\n }\n\n //Print edge types\n if (isMultiGraph()) {\n report.log(NbBundle.getMessage(ImportContainerImpl.class, \"ImportContainerLog.MultiGraphCount\", edgeTypeMap.size() - 1));\n }\n\n return true;\n }",
"@Test\n public void testEdges() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n Vertex v4 = new Vertex(4, \"D\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 5);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 7);\n Edge<Vertex> e3 = new Edge<>(v1, v4, 9);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addVertex(v4);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n\n Set<Edge> expectedEdges = new HashSet<>();\n expectedEdges.add(e1);\n expectedEdges.add(e2);\n expectedEdges.add(e3);\n\n assertEquals(expectedEdges, g.allEdges());\n\n expectedEdges.remove(e2);\n assertEquals(expectedEdges, g.allEdges(v1));\n\n assertEquals(e3, g.getEdge(v1, v4));\n }",
"@Test\n public void testMST3() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n Vertex v4 = new Vertex(4, \"D\");\n Vertex v5 = new Vertex(5, \"E\");\n Vertex v6 = new Vertex(6, \"F\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v1, v3, 1);\n Edge<Vertex> e3 = new Edge<>(v3, v4, 1);\n Edge<Vertex> e4 = new Edge<>(v3, v5, 1);\n Edge<Vertex> e5 = new Edge<>(v3, v6, 1);\n Edge<Vertex> e6 = new Edge<>(v2, v4, 10);\n Edge<Vertex> e7 = new Edge<>(v1, v5, 10);\n Edge<Vertex> e8 = new Edge<>(v1, v5, 10);\n Edge<Vertex> e9 = new Edge<>(v5, v6, 10);\n\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addVertex(v4);\n g.addVertex(v5);\n g.addVertex(v6);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n g.addEdge(e4);\n g.addEdge(e5);\n g.addEdge(e6);\n g.addEdge(e7);\n g.addEdge(e8);\n g.addEdge(e9);\n\n List<Edge> expectedMST = new ArrayList<>();\n expectedMST.add(e1);\n expectedMST.add(e2);\n expectedMST.add(e3);\n expectedMST.add(e4);\n expectedMST.add(e5);\n\n List<Edge<Vertex>> actualMST = g.minimumSpanningTree();\n\n for (int i = 0; i < actualMST.size(); i++) {\n assertTrue(expectedMST.contains(actualMST.get(i)));\n }\n\n for (int i = 0; i < expectedMST.size(); i++) {\n assertTrue(actualMST.contains(expectedMST.get(i)));\n }\n }",
"public void testEdgesSet_ofVertex() {\n System.out.println(\"edgesSet\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n Set<Edge<Integer>> set = graph.edgesSet(new Integer(i));\n\n Assert.assertEquals(set.size(), i % 2 == 0 ? 25 : 23);\n for (Edge<Integer> edge : set) {\n Assert.assertTrue((edge.getTargetVertex() + i) % 2 == 0);\n }\n }\n }",
"@Test\n void testIsConnected(){\n weighted_graph g = new WGraph_DS();\n for(int i = 1; i <= 7; i++){\n g.addNode(i);\n }\n g.connect(1,2,20);\n g.connect(1,5,15);\n g.connect(2,3,20);\n g.connect(5,6,15);\n g.connect(3,4,20);\n g.connect(6,4,15);\n g.connect(1,7,2);\n g.connect(7,4,50);\n weighted_graph_algorithms ga = new WGraph_Algo();\n ga.init(g);\n assertTrue(ga.isConnected());\n g.removeEdge(7,4);\n g.removeEdge(6,4);\n g.removeEdge(3,4);\n assertFalse(ga.isConnected());\n }",
"@Test\n\tvoid testEdgesAreEqualForGivenVertice() {\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\n\t\tedges.add(\"Newark\");\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tedges = map.get(\"Boston\");\n\t\tString[] edgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertEquals(\"Newark\", edgesArray[0]);\n\t\tAssertions.assertEquals(\"New York\", edgesArray[1]);\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Philadelphia\");\n\t\tmap.put(\"Newark\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertEquals(\"Philadelphia\", edgesArray[0]);\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Albany\");\n\t\tmap.put(\"Trenton\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertEquals(\"Albany\", edgesArray[0]);\n\t}",
"public void testRemoveEdgeEdge( ) {\n init( );\n\n assertEquals( m_g4.edgeSet( ).size( ), 4 );\n m_g4.removeEdge( m_v1, m_v2 );\n assertEquals( m_g4.edgeSet( ).size( ), 3 );\n assertFalse( m_g4.removeEdge( m_eLoop ) );\n assertTrue( m_g4.removeEdge( m_g4.getEdge( m_v2, m_v3 ) ) );\n assertEquals( m_g4.edgeSet( ).size( ), 2 );\n }",
"private static boolean verifyInvalidRegionsHaveNoHVEdges(\n LogManager pLogger, UnmodifiableSMG pSmg) {\n for (SMGObject obj : pSmg.getObjects()) {\n if (pSmg.isObjectValid(obj) || pSmg.isObjectExternallyAllocated(obj)) {\n continue;\n }\n // Verify that the HasValue edge set for this invalid object is empty\n SMGEdgeHasValueFilterByObject filter = SMGEdgeHasValueFilter.objectFilter(obj);\n\n if (!pSmg.getHVEdges(filter).isEmpty()) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: invalid object has a HVEdge\");\n return false;\n }\n }\n\n return true;\n }",
"private ScheduleGrph initializeIdenticalTaskEdges(ScheduleGrph input) {\n\n\t\tScheduleGrph correctedInput = (ScheduleGrph) SerializationUtils.clone(input);\n\t\t// FORKS AND TODO JOINS\n\t\t/*\n\t\t * for (int vert : input.getVertices()) { TreeMap<Integer, List<Integer>> sorted\n\t\t * = new TreeMap<Integer, List<Integer>>(); for (int depend :\n\t\t * input.getOutNeighbors(vert)) { int edge = input.getSomeEdgeConnecting(vert,\n\t\t * depend); int weight = input.getEdgeWeightProperty().getValueAsInt(edge); if\n\t\t * (sorted.get(weight) != null) { sorted.get(weight).add(depend); } else {\n\t\t * ArrayList<Integer> a = new ArrayList(); a.add(depend); sorted.put(weight, a);\n\t\t * }\n\t\t * \n\t\t * } int curr = -1; for (List<Integer> l : sorted.values()) { for (int head : l)\n\t\t * {\n\t\t * \n\t\t * if (curr != -1) { correctedInput.addDirectedSimpleEdge(curr, head); } curr =\n\t\t * head; }\n\t\t * \n\t\t * } }\n\t\t */\n\n\t\tfor (int vert : input.getVertices()) {\n\t\t\tfor (int vert2 : input.getVertices()) {\n\t\t\t\tint vertWeight = input.getVertexWeightProperty().getValueAsInt(vert);\n\t\t\t\tint vert2Weight = input.getVertexWeightProperty().getValueAsInt(vert2);\n\n\t\t\t\tIntSet vertParents = input.getInNeighbors(vert);\n\t\t\t\tIntSet vert2Parents = input.getInNeighbors(vert2);\n\n\t\t\t\tIntSet vertChildren = input.getOutNeighbors(vert);\n\t\t\t\tIntSet vert2Children = input.getOutNeighbors(vert2);\n\n\t\t\t\tboolean childrenEqual = vertChildren.containsAll(vert2Children)\n\t\t\t\t\t\t&& vert2Children.containsAll(vertChildren);\n\n\t\t\t\tboolean parentEqual = vertParents.containsAll(vert2Parents) && vert2Parents.containsAll(vertParents);\n\n\t\t\t\tboolean inWeightsSame = true;\n\t\t\t\tfor (int parent : vertParents) {\n\t\t\t\t\tfor (int parent2 : vert2Parents) {\n\t\t\t\t\t\tif (parent == parent2 && input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(parent, vert)) == input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(parent2, vert2))) {\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tinWeightsSame = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!inWeightsSame) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tboolean outWeightsSame = true;\n\t\t\t\tfor (int child : vertChildren) {\n\t\t\t\t\tfor (int child2 : vert2Children) {\n\t\t\t\t\t\tif (child == child2 && input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(vert, child)) == input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(vert2, child2))) {\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\toutWeightsSame = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!outWeightsSame) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tboolean alreadyEdge = correctedInput.areVerticesAdjacent(vert, vert2)\n\t\t\t\t\t\t|| correctedInput.areVerticesAdjacent(vert2, vert);\n\n\t\t\t\tif (vert != vert2 && vertWeight == vert2Weight && parentEqual && childrenEqual && inWeightsSame\n\t\t\t\t\t\t&& outWeightsSame && !alreadyEdge) {\n\t\t\t\t\tint edge = correctedInput.addDirectedSimpleEdge(vert, vert2);\n\t\t\t\t\tcorrectedInput.getEdgeWeightProperty().setValue(edge, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn correctedInput;\n\t}",
"@Test \r\n void insert_two_vertexs_then_create_edge(){\r\n graph.addVertex(\"A\");\r\n graph.addVertex(\"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n List<String> adjacentA = graph.getAdjacentVerticesOf(\"A\");\r\n List<String> adjacentB = graph.getAdjacentVerticesOf(\"B\");\r\n if(!adjacentA.contains(\"B\")) { \r\n fail();\r\n }\r\n if(adjacentB.contains(\"A\")) { \r\n fail();\r\n }\r\n }",
"@Test\r\n void create_edge_between_null_vertexes() {\r\n graph.addEdge(null, \"B\");\r\n graph.addEdge(\"A\", null);\r\n graph.addEdge(null, null);\r\n vertices = graph.getAllVertices();\r\n List<String> adjacentA = graph.getAdjacentVerticesOf(\"A\");\r\n List<String> adjacentB = graph.getAdjacentVerticesOf(\"B\");\r\n if(!vertices.isEmpty() | !adjacentA.isEmpty() | !adjacentB.isEmpty()) {\r\n fail();\r\n } \r\n }",
"@Test\n public void verifyAllRules() throws EdgeRuleNotFoundException {\n for (SchemaVersion v : schemaVersions.getVersions()) {\n Multimap<String, EdgeRule> all = edgeIngestor.getAllRules(schemaVersions.getDefaultVersion());\n\n // this part verifies the default properties\n // 1) can have only at most 1 containment edge between same node type pair\n // 2) if there is at least 1 cousin edge, there must be exactly 1 cousin edge with default=true\n for (String key : all.keySet()) {\n\n Collection<EdgeRule> edgeRuleCollection = all.get(key);\n\n boolean foundContainment = false; // can have at most 1 containment rel btwn same pair of node types\n boolean foundCousin = false;\n boolean cousinDefault = false; // if there is a cousin edge there must be at least 1 default cousin\n // defined\n Set<String> labels = new HashSet<>(); // all edges between the same pair must have different labels\n int cousinCount = 0;\n\n for (EdgeRule rule : edgeRuleCollection) {\n EdgeRule match = rule;\n // check containment\n if (!(\"NONE\".equals(match.getContains()))) {\n if (foundContainment) {\n fail(\"more than one containment edge defined for \" + v.toString() + \" \" + key);\n } else {\n foundContainment = true;\n }\n } else { // check cousin stuff\n foundCousin = true;\n cousinCount++;\n if (match.isDefault()) {\n if (!cousinDefault) {\n cousinDefault = true;\n } else {\n fail(\"more than one cousin edge defined as default for \" + v.toString() + \" \" + key);\n }\n }\n }\n\n // check labels\n String label = match.getLabel();\n if (labels.contains(label)) {\n fail(\"same label found for multiple edges for \" + v.toString() + \" \" + key);\n } else {\n labels.add(label);\n }\n }\n if (foundCousin && !cousinDefault && cousinCount > 1) {\n fail(\"there is at least one cousin edge but none are designated the default for \" + v.toString()\n + \" \" + key);\n }\n }\n }\n }",
"public void testRemoveEdge_betweenVertices() {\n System.out.println(\"removeEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n continue;\n }\n\n Assert.assertNotNull(graph.removeEdge(new Integer(i), new Integer(j)));\n Assert.assertFalse(graph.containsEdge(new Integer(i), new Integer(j)));\n }\n }\n }",
"@Test\r\n public void testOutboundEdges() {\r\n System.out.println(\"outboundEdges\");\r\n MyDigraph instance = new MyDigraph();\r\n\r\n Object v1Element = 1;\r\n Object v2Element = 2;\r\n Object v3Element = 3;\r\n\r\n Vertex v1 = instance.insertVertex(v1Element);\r\n Vertex v2 = instance.insertVertex(v2Element);\r\n Vertex v3 = instance.insertVertex(v3Element);\r\n\r\n Object edgeElement = \"A\";\r\n Edge e1 = instance.insertEdge(v1, v2, edgeElement);\r\n Edge e2 = instance.insertEdge(v1, v3, edgeElement);\r\n Edge e3 = instance.insertEdge(v2, v3, edgeElement);\r\n\r\n Collection e1OutboundEdges = instance.outboundEdges(v2);\r\n Collection e2OutboundEdges = instance.outboundEdges(v3);\r\n Collection e3OutboundEdges = instance.outboundEdges(v3);\r\n\r\n boolean e1Result = e1OutboundEdges.contains(e1);\r\n boolean e2Result = e2OutboundEdges.contains(e2);\r\n boolean e3Result = e3OutboundEdges.contains(e3);\r\n\r\n Object expectedResult = true;\r\n assertEquals(expectedResult, e1Result);\r\n assertEquals(expectedResult, e2Result);\r\n assertEquals(expectedResult, e3Result);\r\n }",
"@Test\r\n public void edgesTest(){\r\n DirectedGraph test= new DirectedGraph();\r\n //create new shops \r\n Shop one=new Shop(1,new Location(10,10));\r\n Shop two =new Shop(2,new Location(20,20));\r\n Shop three=new Shop(3,new Location(30,30));\r\n Shop four=new Shop(4,new Location(40,40));\r\n\r\n //add them as nodes\r\n assertEquals(test.addNode(one),true);\r\n assertEquals(test.addNode(two),true);\r\n assertEquals(test.addNode(three),true);\r\n assertEquals(test.addNode(four),true);\r\n //create edges \r\n test.createEdges();\r\n\r\n //make sure everyone is connected properly \r\n assertEquals(test.getEdgeWeight(one,two),20);\r\n assertEquals(test.getEdgeWeight(one,three),40);\r\n assertEquals(test.getEdgeWeight(one,four),60);\r\n assertEquals(test.getEdgeWeight(two,one),20);\r\n assertEquals(test.getEdgeWeight(two,three),20);\r\n assertEquals(test.getEdgeWeight(two,four),40);\r\n assertEquals(test.getEdgeWeight(three,one),40);\r\n assertEquals(test.getEdgeWeight(three,two),20);\r\n assertEquals(test.getEdgeWeight(three,four),20);\r\n assertEquals(test.getEdgeWeight(four,one),60);\r\n assertEquals(test.getEdgeWeight(four,two),40);\r\n assertEquals(test.getEdgeWeight(four,three),20);\r\n }",
"private void checkEdges() {\n\n //Check for alive cells on right hand side\n for (int y = 0; y < height; y++) {\n if (getCell(this.width - 1, y).isAlive()) {\n grid = increaseWidthRight(grid);\n break;\n }\n }\n\n //Check for alive cells on left side\n for (int y = 0; y < height; y++) {\n if (getCell(0, y).isAlive()) {\n grid = increaseWidthLeft(grid);\n break;\n }\n }\n\n // Check for alive cells at bottom\n for (int x = 0; x < width; x++) {\n if (getCell(x, this.height - 1).isAlive()) {\n grid = increaseHeightBottom(grid);\n break;\n }\n }\n\n //Check for alive cells at top\n for (int x = 0; x < width; x++) {\n if (getCell(x, 0).isAlive()) {\n grid = increaseHeightTop(grid);\n break;\n }\n }\n\n }",
"private void checkRep() {\n\t\tassert (this != null) : \"this Edge cannot be null\";\n\t\tassert (this.label != null) : \"this Edge's label cannot be null\";\n\t\tassert (this.child != null) : \"this Edge's child cannot be null\";\n\t}",
"public abstract boolean hasEdge(int from, int to);",
"@DisplayName(\"Has edge\")\n @Test\n public void testHasEdge() {\n boolean directed1 = true;\n graph = new Graph(edges, directed1, 0, 5, GraphType.RANDOM);\n Assertions.assertTrue(graph.hasEdge(new Edge(0, 1)));\n }",
"@Test\n\tpublic void test() {\n\t\tAssert.assertNotEquals(null, vertex.getEdges());\n\t\t\n\t\t// Check no edges are initially connected\n\t\tAssert.assertEquals(0, vertex.degree());\n\t\t\n\t\t// Check an edge can be added correctly\n\t\ttEdge = new Edge(vertex, new Vertex(\"test2\"));\n\t\tAssert.assertEquals(1, vertex.degree());\n\t\t\n\t\t// Check no duplicates allowed using existing edge\n\t\tvertex.add(tEdge);\n\t\tAssert.assertEquals(1, vertex.degree());\n\t\t\n\t\t// Check no duplicates allowed using new edge\n\t\tvertex.add(new Edge(vertex, new Vertex(\"test2\")));\n\t\tAssert.assertEquals(1, vertex.degree());\n\t\t\n\t\t// Check edges can be removed correctly\n\t\tvertex.remove(\"test2\");\n\t\tAssert.assertEquals(0, vertex.degree());\n\t}",
"public void testGetEdge() {\n System.out.println(\"getEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n Assert.assertNull(graph.getEdge(new Integer(i), new Integer(j)));\n } else {\n Assert.assertNotNull(graph.getEdge(new Integer(i), new Integer(j)));\n }\n }\n }\n }",
"public static void compare () {\r\n for (int i = 0; i < dim; i++) {\r\n for (int j = 0; j < dim; j++) {\r\n if (d[i][j] != adjacencyMatrix[i][j])// here \r\n {\r\n System.out.println(\"Comparison failed\");\r\n \r\n return;\r\n }\r\n }\r\n }\r\n System.out.println(\"Comparison succeeded\");\r\n }",
"@Test\n void test07_tryToRemoveNonExistentEdge() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\");\n graph.addVertex(\"c\");\n graph.addEdge(\"a\", \"b\");\n graph.addEdge(\"b\", \"c\"); // adds two edges\n try {\n graph.removeEdge(\"e\", \"f\"); // remove non existent edge\n } catch (Exception e) {\n fail(\"Shouldn't have thrown exception\");\n }\n\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\");\n vertices.add(\"c\"); // creates mock up vertex list\n\n if (!graph.getAllVertices().equals(vertices)) { // checks if vertices weren't added or removed\n fail(\"wrong vertices are inserted into the graph\");\n }\n if (graph.size() != 2) {\n fail(\"wrong number of edges in the graph\");\n }\n\n }",
"@Test\n public void tae0()\n {\n Graph g = new Graph(2);\n g.addEdge(0, 1);\n System.out.println(g);\n assertEquals(g.toString(), \"numNodes: 2\\nedges: [[false, true], [false, false]]\");\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousCollapseEdges() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomPropertyGraphRequestModel();\n\t requestModel.setCollapseEdges(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"public void testEdgesSet_0args() {\n System.out.println(\"edgesSet\");\n\n Set<Edge<Integer>> set = generateGraph().edgesSet();\n\n Assert.assertEquals(set.size(), 313);\n for (Edge<Integer> edge : set) {\n int sum = edge.getSourceVertex().intValue() + edge.getTargetVertex().intValue();\n Assert.assertTrue(sum % 2 == 0);\n }\n }",
"public void checkRep() {\n\t\tif (parent == null || child == null || l == null) {\n\t\t\tthrow new RuntimeException(\"Edge values can never be null.\");\n\t\t}\n\t}",
"@Test\r\n void test_insert_two_vertice_with_one_edge_remove_edge() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n vertices = graph.getAllVertices();\r\n // B should be an adjacent vertex of A\r\n if(!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")){\r\n fail();\r\n }\r\n //Check that A and B are in the graph\r\n if(!vertices.contains(\"A\") |!vertices.contains(\"B\")) {\r\n fail();\r\n }\r\n //There's one edge in the graph\r\n if(graph.size() != 1) {\r\n fail();\r\n }\r\n //Remove edge from A to B\r\n graph.removeEdge(\"A\", \"B\");\r\n // Check that A and B are still in the graph\r\n if(!vertices.contains(\"A\") |!vertices.contains(\"B\")) {\r\n fail();\r\n }\r\n // B should not be an adjacent vertex of \r\n if(graph.getAdjacentVerticesOf(\"A\").contains(\"B\")){\r\n fail();\r\n }\r\n // There are no more edges in the graph\r\n if(graph.size() != 0) {\r\n fail();\r\n }\r\n }",
"@Test\n public void tae1()\n {\n Graph graph = new Graph(0);\n graph.addEdge(0,0);\n System.out.println(graph);\n assertEquals(\"Cannot add edges to a graph of size < 1\",\"Cannot add edges to a graph of size < 1\");\n }",
"@Test\n public void identicalLinearGraphsTest() throws Exception {\n // Create two a->b->c->d graphs\n String events[] = new String[] { \"a\", \"b\", \"c\", \"d\" };\n EventNode[] g1Nodes = getChainTraceGraphNodesInOrder(events);\n EventNode[] g2Nodes = getChainTraceGraphNodesInOrder(events);\n\n // Check that g1 and g2 are equivalent for all k at every corresponding\n // node, regardless of subsumption.\n\n // NOTE: both graphs have an additional INITIAL and TERMINAL nodes, thus\n // the +2 in the loop condition.\n EventNode e1, e2;\n for (int i = 0; i < (events.length + 2); i++) {\n e1 = g1Nodes[i];\n e2 = g2Nodes[i];\n for (int k = 1; k < 6; k++) {\n testKEqual(e1, e2, k);\n testKEqual(e1, e1, k);\n }\n }\n }",
"public boolean resetEdges();",
"@Test\n public void tae4()\n {\n Graph graph = new Graph(4);\n graph.addEdge(0,0);\n graph.addEdge(0,1);\n graph.addEdge(0,2);\n graph.addEdge(0,3);\n graph.addEdge(1,0);\n graph.addEdge(1,1);\n graph.addEdge(1,2);\n graph.addEdge(1,3);\n graph.addEdge(2,0);\n graph.addEdge(2,1);\n graph.addEdge(2,2);\n graph.addEdge(2,3);\n graph.addEdge(3,0);\n graph.addEdge(3,1);\n graph.addEdge(3,2);\n graph.addEdge(3,3);\n System.out.println(graph);\n assertEquals(graph.toString(), \"numNodes: 4\\nedges: [[true, true, true, true], [true, true, true, true], \" +\n \"[true, true, true, true], [true, true, true, true]]\");\n }",
"private final void verifyGhostRegionValues(ComputationalComposedBlock block) throws MPIException {\n\t\tBoundaryIterator boundaryIterator = block.getBoundaryIterator();\n\t\tBoundaryIterator expectedValuesIterator = block.getBoundaryIterator();\n\t\tBoundaryId boundary = new BoundaryId();\n\t\tfor (int d=0; d<2*DIMENSIONALITY; d++) {\n\t\t\tblock.receiveDoneAt(boundary);\n\t\t\tboundaryIterator.setBoundaryToIterate(boundary);\n\t\t\tBoundaryId oppositeBoundary = boundary.oppositeSide();\n\t\t\texpectedValuesIterator.setBoundaryToIterate(oppositeBoundary);\n\t\t\twhile (boundaryIterator.isInField()) {\n\t\t\t\t// Check the ghost values outside the current element.\n\t\t\t\tfor (int offset=1; offset<extent; offset++) {\n\t\t\t\t\tint neighborOffset = offset-1;\n\t\t\t\t\tint directedOffset = boundary.isLowerSide() ? -offset : offset;\n\t\t\t\t\tint directedNeighborOffset = boundary.isLowerSide() ? -neighborOffset : neighborOffset;\n\t\t\t\t\tdouble expected = expectedValuesIterator.currentNeighbor(boundary.getDimension(), directedNeighborOffset);\n\t\t\t\t\tdouble actual = boundaryIterator.currentNeighbor(boundary.getDimension(), directedOffset);\n\t\t\t\t\tassertEquals(expected, actual, 4*Math.ulp(expected));\n\t\t\t\t}\n\t\t\t\tboundaryIterator.next();\n\t\t\t\texpectedValuesIterator.next();\n\t\t\t}\n\t\t}\n\t}",
"@Test\r\n void test_insert_same_vertex_twice() {\r\n graph.addVertex(\"1\");\r\n graph.addVertex(\"1\"); \r\n graph.addVertex(\"1\"); \r\n vertices = graph.getAllVertices();\r\n if(vertices.size() != 1 ||graph.order() != 1) {\r\n fail();\r\n }\r\n }",
"@Test\r\n public void testEdges() {\r\n System.out.println(\"edges\");\r\n MyDigraph instance = new MyDigraph();\r\n\r\n Object v1Element = 1;\r\n Object v2Element = 2;\r\n\r\n Vertex v1 = instance.insertVertex(v1Element);\r\n Vertex v2 = instance.insertVertex(v2Element);\r\n\r\n Object edgeElement = \"A\";\r\n Edge e = instance.insertEdge(v1Element, v2Element, edgeElement);\r\n\r\n Collection colection = instance.edges();\r\n boolean result = colection.contains(e);\r\n boolean expectedResult = true;\r\n assertEquals(expectedResult, result);\r\n\r\n instance.removeEdge(e);\r\n result = colection.contains(e);\r\n expectedResult = false;\r\n assertEquals(expectedResult, result);\r\n }",
"public void testRemoveAllEdges() {\n System.out.println(\"removeAllEdges\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n Assert.assertTrue(graph.removeAllEdges());\n Assert.assertEquals(graph.edgesSet().size(), 0);\n }",
"private boolean checkSharedVertex(Segment s1, Segment s2){\n\t\tdouble wp1x = s1.w1.getX();\n\t\tdouble wp1y = s1.w1.getY();\n\t\tdouble wp2x = s1.w2.getX();\n\t\tdouble wp2y = s1.w2.getY();\n\t\tdouble wp3x = s2.w1.getX();\n\t\tdouble wp3y = s2.w1.getY();\n\t\tdouble wp4x = s2.w2.getX();\n\t\tdouble wp4y = s2.w2.getY();\n\n\t\tif (((wp1x == wp3x && wp1y == wp3y) || (wp1x == wp4x && wp1y == wp4y)) \n\t\t|| ((wp2x == wp3x && wp2y == wp3y) || (wp2x == wp4x && wp2y == wp4y)))\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}",
"public void testContainsVertex() {\n System.out.println(\"containsVertex\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n Assert.assertTrue(graph.containsVertex(new Integer(i)));\n }\n }",
"public void testRemoveEdge_edge() {\n System.out.println(\"removeEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n continue;\n }\n\n Assert.assertNotNull(\n graph.removeEdge(new UnweightedEdge(new Integer(i), new Integer(j))));\n Assert.assertFalse(graph.containsEdge(new Integer(i), new Integer(j)));\n }\n }\n }",
"public void assertEqualsSet(Set<Edge> expected, Set<Edge> actual) {\n assertEquals(expected.size(), actual.size());\n for (Edge e : expected) {\n assertTrue(actual.contains(e));\n }\n }",
"private static boolean compareEdges(S2Point a0, S2Point a1, S2Point b0, S2Point b1) {\n if (a1.lessThan(a0)) {\n S2Point temp = a0;\n a0 = a1;\n a1 = temp;\n }\n if (b1.lessThan(b0)) {\n S2Point temp = b0;\n b0 = b1;\n b1 = temp;\n }\n return a0.lessThan(b0) || (a0.equalsPoint(b0) && b0.lessThan(b1));\n }",
"private void checkConnection( SquareNode a , SquareNode b ) {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tSquareEdge edgeA = a.edges[i];\n\t\t\tif( edgeA == null )\n\t\t\t\tcontinue;\n\n\t\t\tSquareNode common = edgeA.destination(a);\n\t\t\tint commonToA = edgeA.destinationSide(a);\n\t\t\tint commonToB = CircularIndex.addOffset(commonToA,1,4);\n\n\t\t\tSquareEdge edgeB = common.edges[commonToB];\n\t\t\tif( edgeB != null && edgeB.destination(common) == b ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tfail(\"Failed\");\n\t}",
"private void checkEdgesToSearch() {\n if (edgesToSearch == null || edgesToSearch.length == 0) {\n Graph hg;\n if (Lookup.getDefault().lookup(DataTablesController.class).isShowOnlyVisible()) {\n hg = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraphVisible();\n } else {\n hg = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraph();\n }\n edgesToSearch = hg.getEdges().toArray();\n }\n }",
"@DisplayName(\"Has neighbours?\")\n @Test\n public void testGetNeighbours() {\n Assertions.assertTrue(graph.getNeighbours(0).size() > 1);\n }",
"@Test\n public void equalDagGraphsTest() throws Exception {\n // Generate two identical DAGs\n String traceStr = \"1,0 a\\n\" + \"2,1 b\\n\" + \"1,2 c\\n\" + \"2,3 d\\n\"\n + \"--\\n\" + \"1,0 a\\n\" + \"2,1 b\\n\" + \"1,2 c\\n\" + \"2,3 d\\n\";\n\n TraceParser parser = genParser();\n ArrayList<EventNode> parsedEvents = parser.parseTraceString(traceStr,\n testName.getMethodName(), -1);\n DAGsTraceGraph g1 = parser.generateDirectPORelation(parsedEvents);\n exportTestGraph(g1, 0);\n\n List<Transition<EventNode>> initNodeTransitions = g1\n .getDummyInitialNode().getAllTransitions();\n EventNode firstA = initNodeTransitions.get(0).getTarget();\n EventNode secondA = initNodeTransitions.get(1).getTarget();\n for (int k = 1; k < 4; k++) {\n testKEqual(firstA, secondA, k);\n }\n }",
"private void checkRep() {\n assert (width <= Board.SIDELENGTH);\n assert (height <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.x() >= 0 && this.boundingBoxPosition.x() <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.y() >= 0 && this.boundingBoxPosition.y() <= Board.SIDELENGTH);\n }",
"@Test\n public void testAddEdgesInvalidVertices() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeData(env),\n env);\n\n List<Edge<Long, Long>> edgesToBeAdded = new ArrayList<>();\n edgesToBeAdded.add(new Edge<>(6L, 1L, 61L));\n edgesToBeAdded.add(new Edge<>(7L, 1L, 71L));\n\n graph = graph.addEdges(edgesToBeAdded);\n\n DataSet<Edge<Long, Long>> data = graph.getEdges();\n List<Edge<Long, Long>> result = data.collect();\n\n expectedResult =\n \"1,2,12\\n\"\n + \"1,3,13\\n\"\n + \"2,3,23\\n\"\n + \"3,4,34\\n\"\n + \"3,5,35\\n\"\n + \"4,5,45\\n\"\n + \"5,1,51\\n\";\n\n compareResultAsTuples(result, expectedResult);\n }",
"@Test\n void test01_addVertex() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\"); // adds two vertices\n\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\"); // creates a check list to compare with\n\n if (!graph.getAllVertices().equals(vertices)) {\n fail(\"Graph didn't add the vertices correctly\");\n }\n }",
"@Test\n public void notConnectedDueToRestrictions() {\n int sourceNorth = graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 10).getEdge();\n int sourceSouth = graph.edge(0, 3).setDistance(2).set(speedEnc, 10, 10).getEdge();\n int targetNorth = graph.edge(1, 2).setDistance(3).set(speedEnc, 10, 10).getEdge();\n int targetSouth = graph.edge(3, 2).setDistance(4).set(speedEnc, 10, 10).getEdge();\n\n assertPath(calcPath(0, 2, sourceNorth, targetNorth), 0.4, 4, 400, nodes(0, 1, 2));\n assertNotFound(calcPath(0, 2, sourceNorth, targetSouth));\n assertNotFound(calcPath(0, 2, sourceSouth, targetNorth));\n assertPath(calcPath(0, 2, sourceSouth, targetSouth), 0.6, 6, 600, nodes(0, 3, 2));\n }",
"@Test\n void test04_checkOrder() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\");\n graph.addVertex(\"c\");\n graph.addVertex(\"d\");\n graph.addVertex(\"e\");\n graph.addVertex(\"f\"); // added 6 items\n if (graph.order() != 6) {\n fail(\"graph has counted incorrect number of vertices\");\n }\n }",
"public void testVerticesSet() {\n System.out.println(\"verticesSet\");\n\n Assert.assertTrue(generateGraph().verticesSet().size() == 25);\n }",
"@Test\n\tvoid testEdgesNotNull() {\n\t\tmap.put(\"Boston\", new LinkedHashSet<String>());\n\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\n\t}",
"@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}",
"@Test\n public void getVertexes() {\n\n for (int i = 0; i < 6; i++) {\n\n Vertex temp = new Vertex(i + \"\", \"Location number \" + i);\n assertTrue(temp.equals(testGraph.getVertices ().get(i)));\n\n }\n }",
"public static void testEdgeDetection()\n {\n Picture swan = new Picture(\"swan.jpg\");\n swan.edgeDetection();\n swan.explore();\n }",
"public boolean isSmaller(Edge e) {\n if(e.getValue() < value) {\n return true;\n } else if (e.getValue() > value) {\n return false;\n }\n //Values are equal\n if(e.getRow() < row) {\n return true;\n } else if(e.getRow() > row) {\n return false;\n }\n //Rows are equal\n if(e.getCol() < col) {\n return true;\n } else {\n return false;\n }\n }",
"@Test\n public void tr2()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n graph.addEdge(0,1);\n assertTrue(graph.reachable(sources, targets));\n\n\n }",
"@Test\n public void baseCaseTriviallyIdenticalGraphsTest() {\n Event a1 = new Event(\"label1\");\n Event a2 = new Event(\"label1\");\n\n EventNode e1 = new EventNode(a1);\n EventNode e2 = new EventNode(a2);\n // If k exceeds the depth of the graph, if they are equivalent to max\n // existing depth then they are equal. Regardless of subsumption.\n testKEqual(e1, e2, 100);\n // A node should always be k-equivalent to itself.\n testKEqual(e1, e1, 100);\n }",
"@Test\n public void tae3()\n {\n Graph graph = new Graph(3);\n graph.addEdge(0,0);\n graph.addEdge(0,1);\n graph.addEdge(1,1);\n System.out.println(graph);\n assertEquals(graph.toString(), \"numNodes: 3\\nedges: [[true, true, false], [false, true, false], \" +\n \"[false, false, false]]\");\n }",
"public static void validateGraph(final EnactmentGraph graph) {\n checkForDisconnectedDataNodes(graph);\n }",
"private boolean edgeExists() {\n for (int i = 1; i < parentMatrix[randomChild][0]; i++) {\n if (parentMatrix[randomChild][i] == randomParent) {\n return true;\n }\n }\n return false;\n }",
"@Test\r\n void insert_multiple_vertexes_and_edges_remove_vertex() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.addEdge(\"B\", \"D\");\r\n \r\n List<String> adjacent;\r\n vertices = graph.getAllVertices(); \r\n int numberOfEdges = graph.size();\r\n int numberOfVertices = graph.order();\r\n if(numberOfEdges != 4) {\r\n fail();\r\n }\r\n if(numberOfVertices != 4) {\r\n fail();\r\n }\r\n \r\n // Check that graph has all added vertexes\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"B\")|\r\n !vertices.contains(\"C\")|!vertices.contains(\"D\")) {\r\n fail();\r\n }\r\n \r\n // Check that A's outgoing edges are correct\r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (!adjacent.contains(\"B\") || !adjacent.contains(\"C\"))\r\n fail();\r\n // Check that B's outgoing edges are correct\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.contains(\"C\") | !adjacent.contains(\"D\"))\r\n fail(); \r\n // C and D have no out going edges \r\n adjacent = graph.getAdjacentVerticesOf(\"C\");\r\n if (!adjacent.isEmpty())\r\n fail(); \r\n adjacent = graph.getAdjacentVerticesOf(\"D\");\r\n if (!adjacent.isEmpty())\r\n fail(); \r\n // Remove B from the graph \r\n graph.removeVertex(\"B\");\r\n // Check that A's outgoing edges are correct\r\n // An edge to B should no exist any more \r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (adjacent.contains(\"B\") || !adjacent.contains(\"C\"))\r\n fail();\r\n // There should be no elements in the list of successors\r\n // of B since its deleted form the graph\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.isEmpty())\r\n fail(); \r\n // Check that graph has still has all vertexes not removed\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"C\")|\r\n !vertices.contains(\"D\")) {\r\n fail();\r\n }\r\n //Check that vertex B was removed from graph \r\n if(vertices.contains(\"B\")) {\r\n fail();\r\n }\r\n numberOfEdges = graph.size();\r\n numberOfVertices = graph.order();\r\n if(numberOfEdges != 1) {\r\n fail();\r\n }\r\n if(numberOfVertices != 3) {\r\n fail();\r\n }\r\n }",
"public void checkAll() {\n for (int i = 0; i < size * size; i++) {\r\n if (flowGrid[i]!=size*size) {\r\n if ((flowGrid[i] != flowGrid[flowGrid[i]]) || i != flowGrid[i]) {\r\n flowGrid[i] = flowGrid[flowGrid[i]];\r\n if (flowGrid[i] < size) {\r\n grid[i / size][i % size] = 2;\r\n }\r\n }\r\n }\r\n }\r\n\r\n }",
"public void testAddEdge() {\n System.out.println(\"addEdge\");\n\n Graph<Integer, Edge<Integer>> graph = newGraph();\n\n for (int i = 0; i < 25; i++) {\n graph.addVertex(new Integer(i));\n }\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n Assert\n .assertTrue(graph.addEdge(new UnweightedEdge(new Integer(i), new Integer(j))));\n }\n }\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n Assert\n .assertFalse(graph.addEdge(new UnweightedEdge(new Integer(i), new Integer(j))));\n }\n }\n }",
"private boolean isClosed(EdgeWeightedDigraph G, FlowEdge e, int V) {}",
"@Test\n public void differentLinearGraphsTest() throws Exception {\n EventNode[] g1Nodes = getChainTraceGraphNodesInOrder(new String[] {\n \"a\", \"b\", \"c\", \"d\" });\n\n EventNode[] g2Nodes = getChainTraceGraphNodesInOrder(new String[] {\n \"a\", \"b\", \"c\", \"e\" });\n\n // ///////////////////\n // g1 and g2 are k-equivalent at first three nodes for k=1,2,3\n // respectively, but no further. Subsumption follows the same pattern.\n\n // \"INITIAL\" not at root:\n testKEqual(g1Nodes[0], g2Nodes[0], 1);\n testKEqual(g1Nodes[0], g2Nodes[0], 2);\n testKEqual(g1Nodes[0], g2Nodes[0], 3);\n testKEqual(g1Nodes[0], g2Nodes[0], 4);\n testNotKEqual(g1Nodes[0], g2Nodes[0], 5);\n testNotKEqual(g1Nodes[0], g2Nodes[0], 6);\n\n // \"a\" node at root:\n testKEqual(g1Nodes[1], g2Nodes[1], 1);\n testKEqual(g1Nodes[1], g2Nodes[1], 2);\n testKEqual(g1Nodes[1], g2Nodes[1], 3);\n testNotKEqual(g1Nodes[1], g2Nodes[1], 4);\n testNotKEqual(g1Nodes[1], g2Nodes[1], 5);\n\n // \"b\" node at root:\n testKEqual(g1Nodes[2], g2Nodes[2], 1);\n testKEqual(g1Nodes[2], g2Nodes[2], 2);\n testNotKEqual(g1Nodes[2], g2Nodes[2], 3);\n\n // \"c\" node at root:\n testKEqual(g1Nodes[3], g2Nodes[3], 1);\n testNotKEqual(g1Nodes[3], g2Nodes[3], 2);\n\n // \"d\" and \"e\" nodes at root:\n testNotKEqual(g1Nodes[4], g2Nodes[4], 1);\n }",
"@Test public void testPublic12() {\n Graph<Integer> graph= new Graph<Integer>();\n int i;\n\n // note this adds the adjacent vertices in the process\n for (i= 0; i < 10; i++)\n graph.addEdge(i, i + 1, 1);\n graph.addEdge(10, 0, 1);\n\n for (Integer vertex : graph.getVertices())\n assertTrue(graph.isInCycle(vertex));\n }",
"@Test\n\t\tpublic void boardEdgeTests() {\n\t\t\t//Testing a walkway space that is on the top edge of the board and is next to a door that points in its direction (\n\t\t\tSet<BoardCell> testList = board.getAdjList(0, 17);\n\t\t\tassertEquals(3, testList.size());\n\t\t\tassertTrue(testList.contains(board.getCellAt(0, 16)));\n\t\t\tassertTrue(testList.contains(board.getCellAt(0, 18)));\n\t\t\tassertTrue(testList.contains(board.getCellAt(1, 17)));\n\t\t\t//Testing a walkway space on the bottom edge of the board that is near a room space\n\t\t\ttestList = board.getAdjList(20, 5);\n\t\t\tassertEquals(2, testList.size());\n\t\t\tassertTrue(testList.contains(board.getCellAt(19, 5)));\n\t\t\tassertTrue(testList.contains(board.getCellAt(20, 6)));\n\t\t\t//Testing walkway a space on the left edge of the board that is surrounded by 3 other walkway spaces\n\t\t\ttestList = board.getAdjList(5, 0);\n\t\t\tassertEquals(3, testList.size());\n\t\t\tassertTrue(testList.contains(board.getCellAt(4, 0)));\n\t\t\tassertTrue(testList.contains(board.getCellAt(6, 0)));\n\t\t\tassertTrue(testList.contains(board.getCellAt(5, 1)));\n\t\t\t//Testing a room space in the bottom right corner\n\t\t\ttestList = board.getAdjList(20, 21);\n\t\t\tassertEquals(0, testList.size());\n\n\t\t}",
"private void checkRep() {\n for (Ball ball : balls) {\n assert ball.getPosition().d1 >= 0\n && ball.getPosition().d1 <= WIDTH - 1;\n assert ball.getPosition().d2 >= 0\n && ball.getPosition().d2 <= HEIGHT - 1;\n }\n for (Gadget gadget : gadgets) {\n assert gadget.getPosition().d1 >= 0\n && gadget.getPosition().d1 <= WIDTH - 1;\n assert gadget.getPosition().d2 >= 0\n && gadget.getPosition().d2 <= HEIGHT - 1;\n }\n\n assert GRAVITY > 0 && MU2 > 0 && MU > 0;\n }",
"@DisplayName(\"Delete undirected edges\")\n @Test\n public void testDeleteEdgeUndirected() {\n graph.deleteEdge(new Edge(0, 1));\n Assertions.assertEquals(1, graph.getNeighbours(0).size());\n Assertions.assertEquals(1, graph.getNeighbours(1).size());\n }",
"@Test\n public void blockArea() {\n EdgeIteratorState edge1 = graph.edge(0, 1).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(1, 2).setDistance(10).set(speedEnc, 10, 10);\n EdgeIteratorState edge2 = graph.edge(2, 3).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(0, 4).setDistance(100).set(speedEnc, 10, 10);\n graph.edge(4, 5).setDistance(100).set(speedEnc, 10, 10);\n graph.edge(5, 6).setDistance(100).set(speedEnc, 10, 10);\n graph.edge(6, 3).setDistance(100).set(speedEnc, 10, 10);\n\n // usually we would take the direct route\n assertPath(calcPath(0, 3, ANY_EDGE, ANY_EDGE), 3, 30, 3000, nodes(0, 1, 2, 3));\n\n // with forced edges we might have to go around\n assertPath(calcPath(0, 3, 3, ANY_EDGE), 40, 400, 40000, nodes(0, 4, 5, 6, 3));\n assertPath(calcPath(0, 3, ANY_EDGE, 6), 40, 400, 40000, nodes(0, 4, 5, 6, 3));\n\n // with avoided edges we also have to take a longer route\n assertPath(calcPath(0, 3, ANY_EDGE, ANY_EDGE, createAvoidEdgeWeighting(edge1)), 40, 400, 40000, nodes(0, 4, 5, 6, 3));\n assertPath(calcPath(0, 3, ANY_EDGE, ANY_EDGE, createAvoidEdgeWeighting(edge2)), 40, 400, 40000, nodes(0, 4, 5, 6, 3));\n\n // enforcing forbidden start/target edges still does not allow using them\n assertNotFound(calcPath(0, 3, edge1.getEdge(), edge2.getEdge(), createAvoidEdgeWeighting(edge1)));\n assertNotFound(calcPath(0, 3, edge1.getEdge(), edge2.getEdge(), createAvoidEdgeWeighting(edge2)));\n\n // .. even when the nodes are just next to each other\n assertNotFound(calcPath(0, 1, edge1.getEdge(), ANY_EDGE, createAvoidEdgeWeighting(edge1)));\n assertNotFound(calcPath(0, 1, ANY_EDGE, edge2.getEdge(), createAvoidEdgeWeighting(edge2)));\n }",
"private static boolean checkSingleFieldConsistency(\n LogManager pLogger, SMGObject pObject, UnmodifiableSMG pSmg) {\n\n // For all fields in the object, verify that sizeof(type)+field_offset < object_size\n SMGEdgeHasValueFilterByObject filter = SMGEdgeHasValueFilter.objectFilter(pObject);\n\n for (SMGEdgeHasValue hvEdge : pSmg.getHVEdges(filter)) {\n if ((hvEdge.getOffset() + hvEdge.getSizeInBits()) > pObject.getSize()) {\n pLogger.log(Level.SEVERE, \"SMG inconistent: field exceedes boundary of the object\");\n pLogger.log(Level.SEVERE, \"Object: \", pObject);\n pLogger.log(Level.SEVERE, \"Field: \", hvEdge);\n return false;\n }\n }\n return true;\n }",
"private void testEdge(final ManagementEdge origEdge, final ManagementEdge copyEdge) {\n\n\t\tassertEquals(origEdge.getChannelType(), copyEdge.getChannelType());\n\t\tassertEquals(origEdge.getSourceIndex(), copyEdge.getSourceIndex());\n\t\tassertEquals(origEdge.getTargetIndex(), copyEdge.getTargetIndex());\n\t}",
"public boolean validateConnection(CellStorage from, CellStorage to) {\r\n\t\tHashMapConnectedNodes nodeFrom = null;\r\n\t\tHashMapConnectedNodes nodeTo = null;\r\n\t\tif (hshMConnectedNodes.size() == 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor (int counter = 0; counter < hshMConnectedNodes.size(); counter++) {\r\n\t\t\tif (hshMConnectedNodes.get(counter).searchNode(from))\r\n\t\t\t\tnodeFrom = hshMConnectedNodes.get(counter);\r\n\t\t\tif (hshMConnectedNodes.get(counter).searchNode(to))\r\n\t\t\t\tnodeTo = hshMConnectedNodes.get(counter);\r\n\t\t}\r\n\t\tif (nodeFrom == null || nodeTo == null)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}",
"@Test\n public void tr3()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n graph.addEdge(1,0);\n assertFalse(graph.reachable(sources, targets));\n }",
"@Test\n public void testVertices() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n Vertex v4 = new Vertex(4, \"D\");\n Vertex v4id = new Vertex (4, \"E\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 5);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 7);\n Edge<Vertex> e3 = new Edge<>(v1, v4, 9);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addVertex(v4);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n\n assertFalse(g.addVertex(v4id));\n\n Set<Vertex> expectedVertices = new HashSet<>();\n expectedVertices.add(v1);\n expectedVertices.add(v2);\n expectedVertices.add(v3);\n expectedVertices.add(v4);\n\n assertEquals(expectedVertices, g.allVertices());\n\n Assert.assertTrue(g.remove(v1));\n\n }",
"protected void validateEdge(int from, int to) {\n try {\n validateVertex(from);\n validateVertex(to);\n }\n catch (IllegalArgumentException e) {\n throw new IllegalArgumentException(INVALID_EDGE);\n }\n }",
"private void testBuildGraph() {\n\t\t// All test graphs have a node 8 with children [9, 10]\n\t\tSet<Node> expectedChildren = new HashSet<>();\n\t\texpectedChildren.add(new Node(9));\n\t\texpectedChildren.add(new Node(10));\n\n\t\tStudySetGraph disconnectedGraphWithoutCycle = new StudySetGraph(Edges.disconnectedGraphWithoutCycle);\n\t\tNode node = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t\t\n\t\tStudySetGraph disconnectedGraphWithCycle = new StudySetGraph(Edges.disconnectedGraphWithCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t\t\n\t\tStudySetGraph connectedGraphWithCycle = new StudySetGraph(Edges.connectedGraphWithCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\n\t\tStudySetGraph connectedGraphWithoutCycle = new StudySetGraph(Edges.connectedGraphWithoutCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t}",
"public boolean isSame(MoveEdge other) {\n if (other == this) {\n return true;\n }\n return Objects.equals(in, other.in) && Objects.equals(out, other.out);\n }",
"public boolean validTree(int n, int[][] edges) {\n int[] nums = new int[n];\r\n Arrays.fill(nums, -1);\r\n\r\n // perform union find\r\n for (int i = 0; i < edges.length; i++) {\r\n int x = find(nums, edges[i][0]);\r\n int y = find(nums, edges[i][1]);\r\n\r\n // if two vertices happen to be in the same set\r\n // then there's a cycle\r\n if (x == y) return false;\r\n\r\n // union\r\n nums[x] = y;\r\n }\r\n\r\n return edges.length == n - 1;\r\n }",
"@Test\r\n public void testIncidentEdges() {\r\n System.out.println(\"incidentEdges\");\r\n MyDigraph instance = new MyDigraph();\r\n\r\n Object v1Element = 44;\r\n Object v2Element = 55;\r\n Object v3Element = 66;\r\n\r\n Vertex v1 = instance.insertVertex(v1Element);\r\n Vertex v2 = instance.insertVertex(v2Element);\r\n Vertex v3 = instance.insertVertex(v3Element);\r\n\r\n int expectedResult = 0;\r\n int resultV1 = instance.incidentEdges(v1).size();\r\n int resultV2 = instance.incidentEdges(v2).size();\r\n int resultV3 = instance.incidentEdges(v3).size();\r\n\r\n assertEquals(expectedResult, resultV1);\r\n assertEquals(expectedResult, resultV2);\r\n assertEquals(expectedResult, resultV3);\r\n\r\n Object e1Element = \"A\";\r\n Object e2Element = \"B\";\r\n\r\n Edge e1 = instance.insertEdge(v1, v2, e1Element);\r\n Edge e2 = instance.insertEdge(v1, v3, e2Element);\r\n\r\n expectedResult = 2;\r\n\r\n resultV1 = instance.incidentEdges(v1).size();\r\n\r\n assertEquals(expectedResult, resultV1);\r\n\r\n expectedResult = 1;\r\n\r\n resultV2 = instance.incidentEdges(v2).size();\r\n resultV3 = instance.incidentEdges(v3).size();\r\n\r\n assertEquals(expectedResult, resultV2);\r\n assertEquals(expectedResult, resultV3);\r\n }"
]
| [
"0.6871801",
"0.6823528",
"0.6618701",
"0.6521192",
"0.65194875",
"0.64992803",
"0.64486766",
"0.641943",
"0.6406732",
"0.6377945",
"0.63508266",
"0.6320623",
"0.6310052",
"0.63074505",
"0.62920666",
"0.62888765",
"0.6275248",
"0.6253185",
"0.6219328",
"0.6175963",
"0.6161323",
"0.6107179",
"0.61050564",
"0.6101061",
"0.60888904",
"0.6081692",
"0.6077952",
"0.60775423",
"0.6069617",
"0.6055483",
"0.6051668",
"0.6027887",
"0.6020822",
"0.6011175",
"0.59995675",
"0.59970456",
"0.5985678",
"0.59828043",
"0.5973319",
"0.59698087",
"0.59681195",
"0.5956817",
"0.5944318",
"0.5928294",
"0.5925761",
"0.58945507",
"0.58483696",
"0.58432955",
"0.58278537",
"0.58276755",
"0.581292",
"0.5812751",
"0.5799614",
"0.57889485",
"0.5784158",
"0.57804906",
"0.57695043",
"0.5764552",
"0.57563484",
"0.5753593",
"0.57515144",
"0.57401645",
"0.5739079",
"0.572752",
"0.57247716",
"0.57115424",
"0.57107383",
"0.5696929",
"0.56964165",
"0.5677856",
"0.56764317",
"0.56751955",
"0.56731725",
"0.5658082",
"0.5635273",
"0.5633999",
"0.5632203",
"0.562931",
"0.5627395",
"0.5625207",
"0.5605257",
"0.56044877",
"0.559883",
"0.5597885",
"0.5583694",
"0.55800885",
"0.5579742",
"0.55753577",
"0.5570714",
"0.55671525",
"0.5564879",
"0.5544814",
"0.55447936",
"0.55433637",
"0.55419815",
"0.55414915",
"0.55411243",
"0.55257106",
"0.5523639",
"0.55218256"
]
| 0.77997273 | 0 |
TODO: NEQ CONSISTENCY Verify a single SMG if it meets all consistency criteria. | public static boolean verifySMG(LogManager pLogger, UnmodifiableSMG pSmg) {
boolean toReturn = true;
pLogger.log(Level.FINEST, "Starting constistency check of a SMG");
toReturn =
toReturn
&& verifySMGProperty(
verifyNullObject(pLogger, pSmg), pLogger, "null object invariants hold");
toReturn =
toReturn
&& verifySMGProperty(
verifyInvalidRegionsHaveNoHVEdges(pLogger, pSmg),
pLogger,
"invalid regions have no outgoing edges");
toReturn =
toReturn
&& verifySMGProperty(
verifyFieldConsistency(pLogger, pSmg), pLogger, "field consistency");
toReturn =
toReturn
&& verifySMGProperty(
verifyEdgeConsistency(pLogger, pSmg, pSmg.getHVEdges()),
pLogger,
"Has Value edge consistency");
toReturn =
toReturn
&& verifySMGProperty(
verifyEdgeConsistency(pLogger, pSmg, pSmg.getPTEdges()),
pLogger,
"Points To edge consistency");
toReturn =
toReturn
&& verifySMGProperty(
verifyObjectConsistency(pLogger, pSmg), pLogger, "Validity consistency");
pLogger.log(Level.FINEST, "Ending consistency check of a SMG");
return toReturn;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ConsistencyLevel consistency();",
"private static boolean verifyFieldConsistency(LogManager pLogger, UnmodifiableSMG pSmg) {\n for (SMGObject obj : pSmg.getObjects()) {\n if (!checkSingleFieldConsistency(pLogger, obj, pSmg)) {\n return false;\n }\n }\n\n return true;\n }",
"private static boolean verifyEdgeConsistency(\n LogManager pLogger, UnmodifiableSMG pSmg, Iterable<? extends SMGEdge> pEdges) {\n Deque<SMGEdge> to_verify = Queues.newArrayDeque(pEdges);\n\n while (!to_verify.isEmpty()) {\n SMGEdge edge = to_verify.pop();\n\n // Verify that the object assigned to the edge exists in the SMG\n if (!pSmg.getObjects().contains(edge.getObject())) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: Edge from a nonexistent object:\", edge);\n return false;\n }\n\n // Verify that the value assigned to the edge exists in the SMG\n if (!pSmg.getValues().contains(edge.getValue())) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: Edge to a nonexistent value:\", edge);\n return false;\n }\n\n // Verify that the edge is consistent to all remaining edges\n // - edges of different type are inconsistent\n // - two Has-Value edges are inconsistent iff:\n // - leading from the same object AND\n // - have same type AND\n // - have same offset AND\n // - leading to DIFFERENT values\n // - two Points-To edges are inconsistent iff:\n // - different values point to same place (object, offset)\n // - same values do not point to the same place\n for (SMGEdge other_edge : to_verify) {\n if (!edge.isConsistentWith(other_edge)) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: inconsistent edges\");\n pLogger.log(Level.SEVERE, \"First edge: \", edge);\n pLogger.log(Level.SEVERE, \"Second edge: \", other_edge);\n return false;\n }\n }\n }\n return true;\n }",
"@Override\n\tvoid checkConsistency()\n\t{\n\t\t\n\t}",
"private static boolean checkSingleFieldConsistency(\n LogManager pLogger, SMGObject pObject, UnmodifiableSMG pSmg) {\n\n // For all fields in the object, verify that sizeof(type)+field_offset < object_size\n SMGEdgeHasValueFilterByObject filter = SMGEdgeHasValueFilter.objectFilter(pObject);\n\n for (SMGEdgeHasValue hvEdge : pSmg.getHVEdges(filter)) {\n if ((hvEdge.getOffset() + hvEdge.getSizeInBits()) > pObject.getSize()) {\n pLogger.log(Level.SEVERE, \"SMG inconistent: field exceedes boundary of the object\");\n pLogger.log(Level.SEVERE, \"Object: \", pObject);\n pLogger.log(Level.SEVERE, \"Field: \", hvEdge);\n return false;\n }\n }\n return true;\n }",
"@Test\n public void isSameGrade() {\n assertTrue(MATHS_GRADE.isSameGrade(MATHS_GRADE));\n\n // null -> returns false\n assertFalse(MATHS_GRADE.isSameGrade(null));\n\n // same subject name and graded item, different grade -> returns true\n Grade editedMaths = new GradeBuilder(MATHS_GRADE)\n .withGrade(VALID_GRADE_SCIENCE).build();\n assertTrue(MATHS_GRADE.isSameGrade(editedMaths));\n\n // different subject name, all other attributes same -> returns false\n editedMaths = new GradeBuilder(MATHS_GRADE)\n .withSubject(VALID_SUBJECT_NAME_SCIENCE).build();\n assertFalse(MATHS_GRADE.isSameGrade(editedMaths));\n\n // different graded item, all other attributes same -> returns false\n editedMaths = new GradeBuilder(MATHS_GRADE)\n .withGradedItem(VALID_GRADED_ITEM_SCIENCE).build();\n assertFalse(MATHS_GRADE.isSameGrade(editedMaths));\n\n // subject differs in case, all other attributes same -> returns true\n Grade editedScience = new GradeBuilder(SCIENCE_GRADE)\n .withSubject(VALID_SUBJECT_NAME_SCIENCE.toLowerCase()).build();\n assertTrue(SCIENCE_GRADE.isSameGrade(editedScience));\n\n // graded item differs in case, all other attributes same -> returns true\n editedScience = new GradeBuilder(SCIENCE_GRADE)\n .withGradedItem(VALID_GRADED_ITEM_SCIENCE.toLowerCase()).build();\n assertTrue(SCIENCE_GRADE.isSameGrade(editedScience));\n\n // subject has trailing spaces, all other attributes same -> returns false\n String subjectWithTrailingSpaces = VALID_SUBJECT_NAME_SCIENCE + \" \";\n editedScience = new GradeBuilder(SCIENCE_GRADE)\n .withSubject(subjectWithTrailingSpaces).build();\n assertFalse(SCIENCE_GRADE.isSameGrade(editedScience));\n\n // graded item has trailing spaces, all other attributes same -> returns false\n String itemWithTrailingSpaces = VALID_GRADED_ITEM_SCIENCE + \" \";\n editedScience = new GradeBuilder(SCIENCE_GRADE)\n .withGradedItem(itemWithTrailingSpaces).build();\n assertFalse(SCIENCE_GRADE.isSameGrade(editedScience));\n }",
"@Test\n public void fsckMetricsInconsistentFwdNoDupes() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 3});\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(3, errors);\n }",
"private boolean check(EdgeWeightedGraph G, int s) {\r\n\r\n // check that edge weights are nonnegative\r\n for (Edge e : G.edges()) {\r\n if (e.weight() < 0) {\r\n System.err.println(\"negative edge weight detected\");\r\n return false;\r\n }\r\n }\r\n\r\n // check that distTo[v] and edgeTo[v] are consistent\r\n if (distTo[s] != 0.0 || edgeTo[s] != null) {\r\n System.err.println(\"distTo[s] and edgeTo[s] inconsistent\");\r\n return false;\r\n }\r\n for (int v = 0; v < G.V(); v++) {\r\n if (v == s) continue;\r\n if (edgeTo[v] == null && distTo[v] != Double.POSITIVE_INFINITY) {\r\n System.err.println(\"distTo[] and edgeTo[] inconsistent\");\r\n return false;\r\n }\r\n }\r\n\r\n // check that all edges e = v-w satisfy distTo[w] <= distTo[v] + e.weight()\r\n for (int v = 0; v < G.V(); v++) {\r\n for (Edge e : G.adj(v)) {\r\n int w = e.other(v);\r\n if (distTo[v] + e.weight() < distTo[w]) {\r\n System.err.println(\"edge \" + e + \" not relaxed\");\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n // check that all edges e = v-w on SPT satisfy distTo[w] == distTo[v] + e.weight()\r\n for (int w = 0; w < G.V(); w++) {\r\n if (edgeTo[w] == null) continue;\r\n Edge e = edgeTo[w];\r\n if (w != e.either() && w != e.other(e.either())) return false;\r\n int v = e.other(w);\r\n if (distTo[v] + e.weight() != distTo[w]) {\r\n System.err.println(\"edge \" + e + \" on shortest path not tight\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"@Test\n public void shouldCreateKnownBsmCoreData() {\n \n Integer testMsgCnt = 127;\n Integer expectedMsgCnt = 127;\n \n Integer testId = 0b11111111111111111111111111111111;\n String expectedId = \"FF\";\n \n Integer testSec = 65534;\n Integer expectedSec = 65534;\n \n Integer testLat = 900000000;\n BigDecimal expectedLat = BigDecimal.valueOf(90.0000000).setScale(7);\n \n Integer testLong = 1800000000;\n BigDecimal expectedLong = BigDecimal.valueOf(180.0000000).setScale(7);\n \n Integer testElev = 61439;\n BigDecimal expectedElev = BigDecimal.valueOf(6143.9);\n \n // Positional accuracy\n Integer testSemiMajorAxisAccuracy = 254;\n BigDecimal expectedSemiMajorAxisAccuracy = BigDecimal.valueOf(12.70).setScale(2);\n \n Integer testSemiMinorAxisAccuracy = 254;\n BigDecimal expectedSemiMinorAxisAccuracy = BigDecimal.valueOf(12.70).setScale(2);\n \n Integer testSemiMajorAxisOrientation = 65534;\n BigDecimal expectedSemiMajorAxisOrientation = BigDecimal.valueOf(359.9945078786);\n \n \n Integer testTransmissionState = 6;\n String expectedTransmissionState = \"reserved3\";\n \n Integer testSpeed = 8190;\n BigDecimal expectedSpeed = BigDecimal.valueOf(163.80).setScale(2);\n \n Integer testHeading = 28799;\n BigDecimal expectedHeading = BigDecimal.valueOf(359.9875);\n \n Integer testSteeringWheelAngle = 126;\n BigDecimal expectedSteeringWheelAngle = BigDecimal.valueOf(189.0).setScale(1);\n \n // Acceleration set \n Integer testAccelLong = 2000;\n BigDecimal expectedAccelLong = BigDecimal.valueOf(20.00).setScale(2);\n \n Integer testAccelLat = 2000;\n BigDecimal expectedAccelLat = BigDecimal.valueOf(20.00).setScale(2);\n \n Integer testAccelVert = 127;\n BigDecimal expectedAccelVert = BigDecimal.valueOf(2.54);\n \n Integer testAccelYaw = 32767;\n BigDecimal expectedAccelYaw = BigDecimal.valueOf(327.67);\n \n // Brake system status\n byte[] testWheelBrakesBytes = new byte[1];\n testWheelBrakesBytes[0] = (byte) 0b10000000;\n String expectedBrakeAppliedStatus = \"unavailable\";\n \n Integer testTractionControlStatus = 3;\n String expectedTractionControlStatus = \"engaged\";\n \n Integer testAntiLockBrakeStatus = 3;\n String expectedAntiLockBrakeStatus = \"engaged\";\n \n Integer testStabilityControlStatus = 3;\n String expectedStabilityControlStatus = \"engaged\";\n \n Integer testBrakeBoostApplied = 2;\n String expectedBrakeBoostApplied = \"on\";\n \n Integer testAuxiliaryBrakeStatus = 3;\n String expectedAuxiliaryBrakeStatus = \"reserved\";\n \n // Vehicle size\n Integer testVehicleWidth = 1023;\n Integer expectedVehicleWidth = 1023;\n \n Integer testVehicleLength = 4095;\n Integer expectedVehicleLength = 4095;\n \n BSMcoreData testcd = new BSMcoreData();\n testcd.msgCnt = new MsgCount(testMsgCnt);\n testcd.id = new TemporaryID(new byte[]{testId.byteValue()});\n testcd.secMark = new DSecond(testSec);\n testcd.lat = new Latitude(testLat);\n testcd._long = new Longitude(testLong);\n testcd.elev = new Elevation(testElev);\n testcd.accuracy = new PositionalAccuracy(\n new SemiMajorAxisAccuracy(testSemiMajorAxisAccuracy),\n new SemiMinorAxisAccuracy(testSemiMinorAxisAccuracy),\n new SemiMajorAxisOrientation(testSemiMajorAxisOrientation));\n testcd.transmission = new TransmissionState(testTransmissionState);\n testcd.speed = new Speed(testSpeed);\n testcd.heading = new Heading(testHeading);\n testcd.angle = new SteeringWheelAngle(testSteeringWheelAngle);\n testcd.accelSet = new AccelerationSet4Way(\n new Acceleration(testAccelLong),\n new Acceleration(testAccelLat),\n new VerticalAcceleration(testAccelVert),\n new YawRate(testAccelYaw));\n testcd.brakes = new BrakeSystemStatus(\n new BrakeAppliedStatus(testWheelBrakesBytes),\n new TractionControlStatus(testTractionControlStatus),\n new AntiLockBrakeStatus(testAntiLockBrakeStatus),\n new StabilityControlStatus(testStabilityControlStatus),\n new BrakeBoostApplied(testBrakeBoostApplied),\n new AuxiliaryBrakeStatus(testAuxiliaryBrakeStatus));\n testcd.size = new VehicleSize(\n new VehicleWidth(testVehicleWidth),\n new VehicleLength(testVehicleLength));\n \n BasicSafetyMessage testbsm = new BasicSafetyMessage();\n testbsm.coreData = testcd;\n \n J2735Bsm actualbsm = null;\n try {\n actualbsm = OssBsm.genericBsm(testbsm);\n \n if (actualbsm.coreData == null) {\n fail(\"Bsm core data failed to populate\");\n }\n \n } catch (OssBsmPart2Exception e) {\n fail(\"Unexpected exception: \" + e.getClass());\n }\n \n J2735BsmCoreData actualcd = actualbsm.coreData;\n \n assertEquals(\"Incorrect message count\", expectedMsgCnt, actualcd.msgCnt);\n assertEquals(\"Incorrect message id\", expectedId, actualcd.id);\n assertEquals(\"Incorrect second\", expectedSec, actualcd.secMark);\n assertEquals(\"Incorrect lat position\", expectedLat, actualcd.position.getLatitude());\n assertEquals(\"Incorrect long position\", expectedLong, actualcd.position.getLongitude());\n assertEquals(\"Incorrect elev position\", expectedElev, actualcd.position.getElevation());\n assertEquals(\"Incorrect semi major accuracy\", expectedSemiMajorAxisAccuracy, actualcd.accuracy.semiMajor);\n assertEquals(\"Incorrect semi minor accuracy\", expectedSemiMinorAxisAccuracy, actualcd.accuracy.semiMinor);\n assertEquals(\"Incorrect semi major orient\", expectedSemiMajorAxisOrientation, actualcd.accuracy.orientation);\n assertEquals(\"Incorrect transmission state\", expectedTransmissionState, actualcd.transmission.name());\n assertEquals(\"Incorrect speed\", expectedSpeed, actualcd.speed);\n assertEquals(\"Incorrect heading\", expectedHeading, actualcd.heading);\n assertEquals(\"Incorrect steering wheel angle\", expectedSteeringWheelAngle, actualcd.angle);\n assertEquals(\"Incorrect accel long\", expectedAccelLong, actualcd.accelSet.getAccelLong());\n assertEquals(\"Incorrect accel lat\", expectedAccelLat, actualcd.accelSet.getAccelLat());\n assertEquals(\"Incorrect accel vert\", expectedAccelVert, actualcd.accelSet.getAccelVert());\n assertEquals(\"Incorrect accel yaw\", expectedAccelYaw, actualcd.accelSet.getAccelYaw());\n for (Map.Entry<String, Boolean> curVal: actualcd.brakes.wheelBrakes.entrySet()) {\n if (curVal.getKey() == expectedBrakeAppliedStatus) {\n assertTrue(\"Incorrect brake applied status, expected \" + curVal.getKey() + \" to be true\", curVal.getValue());\n } else {\n assertFalse(\"Incorrect brake applied status, expected \" + curVal.getKey() + \" to be false\", curVal.getValue());\n }\n }\n assertEquals(\"Incorrect brake tcs status\", expectedTractionControlStatus, actualcd.brakes.traction);\n assertEquals(\"Incorrect brake abs status\", expectedAntiLockBrakeStatus, actualcd.brakes.abs);\n assertEquals(\"Incorrect brake scs status\", expectedStabilityControlStatus, actualcd.brakes.scs);\n assertEquals(\"Incorrect brake boost status\", expectedBrakeBoostApplied, actualcd.brakes.brakeBoost);\n assertEquals(\"Incorrect brake aux status\", expectedAuxiliaryBrakeStatus, actualcd.brakes.auxBrakes);\n assertEquals(\"Incorrect vehicle width\", expectedVehicleWidth, actualcd.size.getWidth());\n assertEquals(\"Incorrect vehicle length\", expectedVehicleLength, actualcd.size.getLength());\n }",
"public boolean isConsistent() throws Exception {\n Set<BucketMessage> unconfirmed = messageHandler.getUnconfirmedMessages(receivingPartyID);\n for (BucketMessage temp : unconfirmed) {\n Tuple2<byte[], BigInteger> result = contract.readMessage(sessionID, BigInteger.valueOf(sendingPartyID), BigInteger.valueOf(receivingPartyID),\n BigInteger.valueOf(temp.getMsgNum())).send();\n if (!result.component1().equals(temp.getMsg())) return false;\n if (!result.component2().equals(temp.getBlock()))\n messageHandler.storeMessage(result.component1(), temp.getMsgNum(), receivingPartyID, temp.getBlock()); //restore with the new block\n }\n\n return true;\n }",
"void verifyConsistent(ImmutableClassesGiraphConfiguration conf);",
"@Test\n\tpublic void testGpGGA_modelWillAcceptNewFixAfterPreviousFixRead_storesFix() throws SimulationException\n\t{\n\t\tm_simulation.acceptInput(\"$GPGGA,060932.448,2447.0959,S,12100.5204,W,1,08,1.1,108.7,M,,,,0000*0E\\n\\r\");\n\t\tm_simulation.setFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_NEW_POSITION, false);\n\t\t// This checksum is wrong. At time of writing the checksum was not checked.\n\t\tm_simulation.acceptInput(\"$GPGGA,184512.448,1234.5678,N,06012.9682,E,1,08,1.1,108.7,M,,,,0000*0E\\n\\r\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_TIME, \"184512\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LATITUDE_DEGMIN, \"1234\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LATITUDE_HUNDREDTHS, \"56\");\n\t\tm_simulation.assertFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_NORTH, true);\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LONGITUDE_DEGMIN, \"06012\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LONGITUDE_HUNDREDTHS, \"96\");\n\t\tm_simulation.assertFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_EAST, true);\n\t\tm_simulation.assertFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_NEW_POSITION, true);\t\t\n\t}",
"@Test\n public void fsckMetricsInconsistentForward() throws Exception {\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(2, errors);\n }",
"private void chkSTMST()\n\t{\n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Select count(*) from fg_stmst\";\n\t\t\tM_strSQLQRY += \" where st_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and st_wrhtp = '\"+strWRHTP+\"'\";\n\t\t\tM_strSQLQRY += \" and st_prdtp = '\"+strPRDTP+\"'\";\n\t\t\tM_strSQLQRY += \" and st_lotno = '\"+strLOTNO+\"'\";\n\t\t\tM_strSQLQRY += \" and st_rclno = '\"+strRCLNO+\"'\";\n\t\t\tM_strSQLQRY += \" and st_pkgtp = '\"+strPKGTP+\"'\";\n\t\t\tM_strSQLQRY += \" and st_mnlcd = '\"+strMNLCD+\"'\";\n\t\t\tif(cl_dat.getRECCNT(M_strSQLQRY) > 0)\n\t\t\t\tupdSTMST();\n\t\t\telse{\n\t\t\t\tsetMSG(\"Record does not exist in FG_STMST\",'E');\n\t\t\t\tcl_dat.M_flgLCUPD_pbst = false;\n\t\t\t\t}\n\t\t}\n\t\tcatch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"chkSTMST\");\n\t\t}\n\t}",
"@Test\n public void testGossipProtocol() throws Exception {\n List<GossipProtocolImpl> gossipProtocols = initGossipProtocols(membersNum, lossPercent, meanDelay);\n\n // Subscribe on gossips\n long disseminationTime = 0;\n LongSummaryStatistics messageSentStatsDissemination = null;\n LongSummaryStatistics messageLostStatsDissemination = null;\n LongSummaryStatistics messageSentStatsOverall = null;\n LongSummaryStatistics messageLostStatsOverall = null;\n long gossipTimeout = ClusterMath.gossipTimeoutToSweep(gossipRepeatMultiplier, membersNum, gossipInterval);\n try {\n final String gossipData = \"test gossip - \" + ThreadLocalRandom.current().nextLong();\n final CountDownLatch latch = new CountDownLatch(membersNum - 1);\n final Map<Member, Member> receivers = new ConcurrentHashMap<>();\n final AtomicBoolean doubleDelivery = new AtomicBoolean(false);\n for (final GossipProtocolImpl protocol : gossipProtocols) {\n protocol.listen().subscribe(gossip -> {\n if (gossipData.equals(gossip.data())) {\n boolean firstTimeAdded = receivers.put(protocol.getMember(), protocol.getMember()) == null;\n if (firstTimeAdded) {\n latch.countDown();\n } else {\n LOGGER.error(\"Delivered gossip twice to: {}\", protocol.getTransport().address());\n doubleDelivery.set(true);\n }\n }\n });\n }\n\n // Spread gossip, measure and verify delivery metrics\n long start = System.currentTimeMillis();\n gossipProtocols.get(0).spread(Message.fromData(gossipData));\n latch.await(2 * gossipTimeout, TimeUnit.MILLISECONDS); // Await for double gossip timeout\n disseminationTime = System.currentTimeMillis() - start;\n messageSentStatsDissemination = computeMessageSentStats(gossipProtocols);\n if (lossPercent > 0) {\n messageLostStatsDissemination = computeMessageLostStats(gossipProtocols);\n }\n Assert.assertEquals(\"Not all members received gossip\", membersNum - 1, receivers.size());\n Assert.assertTrue(\"Too long dissemination time \" + disseminationTime\n + \"ms (timeout \" + gossipTimeout + \"ms)\", disseminationTime < gossipTimeout);\n\n // Await gossip lifetime plus few gossip intervals too ensure gossip is fully spread\n if (awaitFullCompletion) {\n long awaitCompletionTime = gossipTimeout - disseminationTime + 3 * gossipInterval;\n Thread.sleep(awaitCompletionTime);\n\n messageSentStatsOverall = computeMessageSentStats(gossipProtocols);\n if (lossPercent > 0) {\n messageLostStatsOverall = computeMessageLostStats(gossipProtocols);\n }\n }\n Assert.assertFalse(\"Delivered gossip twice to same member\", doubleDelivery.get());\n } finally {\n // Print theoretical results\n LOGGER.info(\"Experiment params: N={}, Gfanout={}, Grepeat_mult={}, Tgossip={}ms Ploss={}%, Tmean={}ms\",\n membersNum, gossipFanout, gossipRepeatMultiplier, gossipInterval, lossPercent, meanDelay);\n double convergProb = gossipConvergencePercent(gossipFanout, gossipRepeatMultiplier, membersNum, lossPercent);\n long expDissemTime = gossipDisseminationTime(gossipRepeatMultiplier, membersNum, gossipInterval);\n int maxMsgPerNode = maxMessagesPerGossipPerNode(gossipFanout, gossipRepeatMultiplier, membersNum);\n int maxMsgTotal = maxMessagesPerGossipTotal(gossipFanout, gossipRepeatMultiplier, membersNum);\n LOGGER.info(\"Expected dissemination time is {}ms with probability {}%\", expDissemTime, convergProb);\n LOGGER.info(\"Max messages sent per node {} and total {}\", maxMsgPerNode, maxMsgTotal);\n\n // Print actual results\n LOGGER.info(\"Actual dissemination time: {}ms (timeout {}ms)\", disseminationTime, gossipTimeout);\n LOGGER.info(\"Messages sent stats (diss.): {}\", messageSentStatsDissemination);\n if (lossPercent > 0) {\n LOGGER.info(\"Messages lost stats (diss.): {}\", messageLostStatsDissemination);\n }\n if (awaitFullCompletion) {\n LOGGER.info(\"Messages sent stats (total): {}\", messageSentStatsOverall);\n if (lossPercent > 0) {\n LOGGER.info(\"Messages lost stats (total): {}\", messageLostStatsOverall);\n }\n }\n\n // Destroy gossip protocol instances\n destroyGossipProtocols(gossipProtocols);\n\n }\n }",
"public void checkConsistency(List inconsistencies);",
"@Test\n public void fsckMetricsInconsistentFwdAndInconsistentRev() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, \n METRICS, \"foo\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(6, errors);\n }",
"public Float getFirstGsmSucc() {\r\n return firstGsmSucc;\r\n }",
"@Override\n\tpublic boolean isConsistent() {\n\t\treturn true;\n\t}",
"private static boolean verifyInvalidRegionsHaveNoHVEdges(\n LogManager pLogger, UnmodifiableSMG pSmg) {\n for (SMGObject obj : pSmg.getObjects()) {\n if (pSmg.isObjectValid(obj) || pSmg.isObjectExternallyAllocated(obj)) {\n continue;\n }\n // Verify that the HasValue edge set for this invalid object is empty\n SMGEdgeHasValueFilterByObject filter = SMGEdgeHasValueFilter.objectFilter(obj);\n\n if (!pSmg.getHVEdges(filter).isEmpty()) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: invalid object has a HVEdge\");\n return false;\n }\n }\n\n return true;\n }",
"static void forceSync(DatasetGraphTDB dsg) {\n dsg.getTripleTable().getNodeTupleTable().getNodeTable().sync();\n dsg.getQuadTable().getNodeTupleTable().getNodeTable().sync();\n dsg.getQuadTable().getNodeTupleTable().getNodeTable().sync();\n dsg.getStoragePrefixes().getNodeTupleTable().getNodeTable().sync();\n // This is not enough -- modules check whether sync needed.\n dsg.sync();\n\n }",
"private boolean isSizeConsistent() { return isSizeConsistent(root); }",
"@Test\n public void fsckMetricsInconsistentFwdAndDupeRev() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(5, errors);\n }",
"@Test\n public void fsckMetricsDuplicateForward() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(2, errors);\n }",
"@Override\n public boolean expected(final ChaincodeMessage msg) {\n orgMsg = msg;\n org.hyperledger.fabric.protos.peer.PutStateMetadata psm;\n try {\n psm = org.hyperledger.fabric.protos.peer.PutStateMetadata.parseFrom(msg.getPayload());\n } catch (final InvalidProtocolBufferException e) {\n return false;\n }\n final StateBasedEndorsement msgSbe = StateBasedEndorsementFactory.getInstance().newStateBasedEndorsement(psm.getMetadata().getValue().toByteArray());\n return msg.getType() == ChaincodeMessage.Type.PUT_STATE_METADATA\n && MetaDataKeys.VALIDATION_PARAMETER.toString().equals(psm.getMetadata().getMetakey())\n && (msgSbe.listOrgs().size() == val.listOrgs().size());\n }",
"@Test\r\n void test_insert_same_vertex_twice() {\r\n graph.addVertex(\"1\");\r\n graph.addVertex(\"1\"); \r\n graph.addVertex(\"1\"); \r\n vertices = graph.getAllVertices();\r\n if(vertices.size() != 1 ||graph.order() != 1) {\r\n fail();\r\n }\r\n }",
"@Test\n public void equals() {\n Grade mathsCopy = new GradeBuilder(MATHS_GRADE).build();\n assertTrue(MATHS_GRADE.equals(mathsCopy));\n\n // same object -> returns true\n assertTrue(MATHS_GRADE.equals(MATHS_GRADE));\n\n // null -> returns false\n assertFalse(MATHS_GRADE.equals(null));\n\n // different type -> returns false\n assertFalse(MATHS_GRADE.equals(5));\n\n // different person -> returns false\n assertFalse(MATHS_GRADE.equals(SCIENCE_GRADE));\n\n // different subject name -> returns false\n Grade editedMaths = new GradeBuilder(MATHS_GRADE)\n .withSubject(VALID_SUBJECT_NAME_SCIENCE).build();\n assertFalse(MATHS_GRADE.equals(editedMaths));\n\n // different graded item -> returns false\n editedMaths = new GradeBuilder(MATHS_GRADE)\n .withGradedItem(VALID_GRADED_ITEM_SCIENCE).build();\n assertFalse(MATHS_GRADE.equals(editedMaths));\n\n // different grade -> returns false\n editedMaths = new GradeBuilder(MATHS_GRADE)\n .withGrade(VALID_GRADE_SCIENCE).build();\n assertFalse(MATHS_GRADE.equals(editedMaths));\n }",
"@Test\n public void testMST3() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n Vertex v4 = new Vertex(4, \"D\");\n Vertex v5 = new Vertex(5, \"E\");\n Vertex v6 = new Vertex(6, \"F\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v1, v3, 1);\n Edge<Vertex> e3 = new Edge<>(v3, v4, 1);\n Edge<Vertex> e4 = new Edge<>(v3, v5, 1);\n Edge<Vertex> e5 = new Edge<>(v3, v6, 1);\n Edge<Vertex> e6 = new Edge<>(v2, v4, 10);\n Edge<Vertex> e7 = new Edge<>(v1, v5, 10);\n Edge<Vertex> e8 = new Edge<>(v1, v5, 10);\n Edge<Vertex> e9 = new Edge<>(v5, v6, 10);\n\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addVertex(v4);\n g.addVertex(v5);\n g.addVertex(v6);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n g.addEdge(e4);\n g.addEdge(e5);\n g.addEdge(e6);\n g.addEdge(e7);\n g.addEdge(e8);\n g.addEdge(e9);\n\n List<Edge> expectedMST = new ArrayList<>();\n expectedMST.add(e1);\n expectedMST.add(e2);\n expectedMST.add(e3);\n expectedMST.add(e4);\n expectedMST.add(e5);\n\n List<Edge<Vertex>> actualMST = g.minimumSpanningTree();\n\n for (int i = 0; i < actualMST.size(); i++) {\n assertTrue(expectedMST.contains(actualMST.get(i)));\n }\n\n for (int i = 0; i < expectedMST.size(); i++) {\n assertTrue(actualMST.contains(expectedMST.get(i)));\n }\n }",
"@Test \r\n\tvoid testGenerateSquadsShouldPass() {\r\n\t\tModel dataModel = new Model();\r\n\t\t\r\n\t\tdataModel.generateSquads();\r\n\t\t\r\n\t\tArrayList<Squad> squads = dataModel.getSquads();\r\n\t\t\r\n\t\tint size = squads.size();\r\n\t\t\r\n\t\tassertNotEquals(0, size);\r\n\t}",
"private void validate (Message m) {\n\n try {\n //get message counter property\n int counter = m.getIntProperty(FailoverQSender.MESSAGE_COUNTER);\n //The counter is set sequentially and must be received in right order.\n //Each message is committed after validated.\n if (counter != (commitCounter + 1)) {\n\t\t\t\t this.printData();\n\t\t\t\t throw new RuntimeException(\"validation failed.\");\n\t\t\t }\n\n log (\"messages validated. ready to commit ...\");\n } catch (JMSException jmse) {\n log (jmse);\n \n \tprintData();\n \n throw new RuntimeException(\"Exception occurred during validation: \" + jmse);\n }\n }",
"boolean hasS2();",
"private boolean isSizeConsistent() {\n return isSizeConsistent(root);\n }",
"@Test\r\n public void testForCNSHIsFull() {\r\n createCNSHIsFull();\r\n this.sol = new Solution(this.studentList, this.schoolList, this.studentPreferences, this.schoolPreferences);\r\n assertEquals(solutionForCNSHIsFull(), sol.getSolution());\r\n }",
"public static void ensureEquivalent(Message m1, JBossMessage m2) throws JMSException\n {\n assertTrue(m1 != m2);\n \n //Can't compare message id since not set until send\n \n assertEquals(m1.getJMSTimestamp(), m2.getJMSTimestamp());\n \n byte[] corrIDBytes = null;\n String corrIDString = null;\n \n try\n {\n corrIDBytes = m1.getJMSCorrelationIDAsBytes();\n }\n catch(JMSException e)\n {\n // correlation ID specified as String\n corrIDString = m1.getJMSCorrelationID();\n }\n \n if (corrIDBytes != null)\n {\n assertTrue(Arrays.equals(corrIDBytes, m2.getJMSCorrelationIDAsBytes()));\n }\n else if (corrIDString != null)\n {\n assertEquals(corrIDString, m2.getJMSCorrelationID());\n }\n else\n {\n // no correlation id\n \n try\n {\n byte[] corrID2 = m2.getJMSCorrelationIDAsBytes();\n assertNull(corrID2);\n }\n catch(JMSException e)\n {\n // correlatin ID specified as String\n String corrID2 = m2.getJMSCorrelationID();\n assertNull(corrID2);\n }\n }\n assertEquals(m1.getJMSReplyTo(), m2.getJMSReplyTo());\n assertEquals(m1.getJMSDestination(), m2.getJMSDestination());\n assertEquals(m1.getJMSDeliveryMode(), m2.getJMSDeliveryMode());\n //We don't check redelivered since this is always dealt with on the proxy\n assertEquals(m1.getJMSType(), m2.getJMSType());\n assertEquals(m1.getJMSExpiration(), m2.getJMSExpiration());\n assertEquals(m1.getJMSPriority(), m2.getJMSPriority());\n \n int m1PropertyCount = 0, m2PropertyCount = 0;\n for(Enumeration p = m1.getPropertyNames(); p.hasMoreElements(); m1PropertyCount++)\n {\n p.nextElement();\n }\n for(Enumeration p = m2.getPropertyNames(); p.hasMoreElements(); m2PropertyCount++)\n {\n p.nextElement();\n }\n \n assertEquals(m1PropertyCount, m2PropertyCount);\n \n for(Enumeration props = m1.getPropertyNames(); props.hasMoreElements(); )\n {\n boolean found = false;\n \n String name = (String)props.nextElement();\n \n boolean booleanProperty = false;\n try\n {\n booleanProperty = m1.getBooleanProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a boolean\n }\n \n if (found)\n {\n assertEquals(booleanProperty, m2.getBooleanProperty(name));\n continue;\n }\n \n byte byteProperty = 0;\n try\n {\n byteProperty = m1.getByteProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a byte\n }\n \n if (found)\n {\n assertEquals(byteProperty, m2.getByteProperty(name));\n continue;\n }\n \n short shortProperty = 0;\n try\n {\n shortProperty = m1.getShortProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a short\n }\n \n if (found)\n {\n assertEquals(shortProperty, m2.getShortProperty(name));\n continue;\n }\n \n \n int intProperty = 0;\n try\n {\n intProperty = m1.getIntProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a int\n }\n \n if (found)\n {\n assertEquals(intProperty, m2.getIntProperty(name));\n continue;\n }\n \n \n long longProperty = 0;\n try\n {\n longProperty = m1.getLongProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a long\n }\n \n if (found)\n {\n assertEquals(longProperty, m2.getLongProperty(name));\n continue;\n }\n \n \n float floatProperty = 0;\n try\n {\n floatProperty = m1.getFloatProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a float\n }\n \n if (found)\n {\n assertTrue(floatProperty == m2.getFloatProperty(name));\n continue;\n }\n \n double doubleProperty = 0;\n try\n {\n doubleProperty = m1.getDoubleProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a double\n }\n \n if (found)\n {\n assertTrue(doubleProperty == m2.getDoubleProperty(name));\n continue;\n }\n \n String stringProperty = null;\n try\n {\n stringProperty = m1.getStringProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a String\n }\n \n if (found)\n {\n assertEquals(stringProperty, m2.getStringProperty(name));\n continue;\n }\n \n \n fail(\"Cannot identify property \" + name);\n }\n }",
"public VerifyAgreementResult checkAgreement(List<Message> store) {\n byte[] pubkey = null;\n String data = \"\";\n for (Message e : store){\n if (e instanceof PrevoteMessage) {\n data = new String(((PrevoteMessage) e).data);\n pubkey = ((PrevoteMessage) e).pubkey;\n } else if (e instanceof VoteMessage) {\n data = new String(((VoteMessage) e).data);\n pubkey = ((VoteMessage) e).pubkey;\n } else {\n logger.error(\"Needs type PrevoteMessage or VoteMessage.\");\n throw new IllegalArgumentException(\"Needs type PrevoteMessage or VoteMessage.\");\n }\n int count = 0;\n// logger.info(\"<<<< data: \" + data + \", \\n pubkey:\" + pubkey);\n for (Message i : store){\n if ( (i instanceof PrevoteMessage && data.equals(new String(((PrevoteMessage) i).data)))\n || (i instanceof VoteMessage && data.equals(new String(((VoteMessage) i).data))) ){\n count++;\n }\n }\n logger.info(\"need count more than \" + muchMoreThenHalf() + \", agreement count: \" + count);\n if (count > muchMoreThenHalf()){\n return new VerifyAgreementResult(true, data, pubkey);\n }\n }\n return new VerifyAgreementResult(false, data, pubkey);\n }",
"@Test\n\tpublic void testGpGGA_fixButFixAlreadyStored_doesNotStoreFix() throws SimulationException\n\t{\n\t\tm_simulation.acceptInput(\"$GPGGA,060932.448,2447.0959,S,12100.5204,W,1,08,1.1,108.7,M,,,,0000*0E\\n\\r\");\n\t\t// This checksum is wrong. At time of writing the checksum was not checked.\n\t\tm_simulation.acceptInput(\"$GPGGA,184512.448,1234.5678,N,06012.9682,E,1,08,1.1,108.7,M,,,,0000*0E\\n\\r\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_TIME, \"060932\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LATITUDE_DEGMIN, \"2447\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LATITUDE_HUNDREDTHS, \"09\");\n\t\tm_simulation.assertFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_NORTH, false);\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LONGITUDE_DEGMIN, \"12100\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LONGITUDE_HUNDREDTHS, \"52\");\n\t\tm_simulation.assertFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_EAST, false);\n\t\tm_simulation.assertFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_NEW_POSITION, true);\t\t\n\t}",
"boolean hasHasSCF();",
"private void checkCollisionVsGroup(Group g) {\n\t\tcheckCollisionsVsCollection(g);\r\n\t\t\r\n\t\tint clen = _composites.size();\r\n\t\tint gclen = g.getComposites().size();\r\n\t\t\r\n\t\t// for every composite in this group..\r\n\t\tfor (int i = 0; i < clen; i++) {\r\n\t\t\r\n\t\t\t// check vs the particles and constraints of g\r\n\t\t\tComposite c = _composites.get(i);\r\n\t\t\tc.checkCollisionsVsCollection(g);\r\n\t\t\t\r\n\t\t\t// check vs composites of g\r\n\t\t\tfor (int j = 0; j < gclen; j++) {\r\n\t\t\t\tComposite gc = g.getComposites().get(j);\r\n\t\t\t\tc.checkCollisionsVsCollection(gc);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// check particles and constraints of this group vs the composites of g\r\n\t\tfor (int j = 0; j < gclen; j++) {\r\n\t\t\tComposite gc = g.getComposites().get(j);\t\r\n\t\t\tcheckCollisionsVsCollection(gc);\r\n\t\t}\r\n\t}",
"@Test\n public void testGPSpingInvalid() {\n assertEquals(0.0, err1.getLat(), PRECISION);\n assertEquals(0.0, err1.getLon(), PRECISION);\n assertEquals(0.0, err2.getLon(), PRECISION);\n assertEquals(0,err1.getTime());\n assertEquals(0,err2.getTime());\n }",
"private static boolean verifyNullObject(LogManager pLogger, UnmodifiableSMG pSmg) {\n SMGValue null_value = null;\n\n // Find a null value in values\n for (SMGValue value : pSmg.getValues()) {\n if (pSmg.getObjectPointedBy(value) == SMGNullObject.INSTANCE) {\n null_value = value;\n break;\n }\n }\n\n // Verify that one value pointing to NULL object is present in values\n if (null_value == null) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: no value pointing to null object\");\n return false;\n }\n\n // Verify that NULL value returned by getNullValue() points to NULL object\n if (pSmg.getObjectPointedBy(SMGZeroValue.INSTANCE) != SMGNullObject.INSTANCE) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: null value not pointing to null object\");\n return false;\n }\n\n // Verify that the value found in values is the one returned by getNullValue()\n if (SMGZeroValue.INSTANCE != null_value) {\n pLogger.log(\n Level.SEVERE,\n \"SMG inconsistent: null value in values set not returned by getNullValue()\");\n return false;\n }\n\n // Verify that NULL object has no value\n SMGEdgeHasValueFilterByObject filter =\n SMGEdgeHasValueFilter.objectFilter(SMGNullObject.INSTANCE);\n\n if (!pSmg.getHVEdges(filter).isEmpty()) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: null object has some value\");\n return false;\n }\n\n // Verify that the NULL object is invalid\n if (pSmg.isObjectValid(SMGNullObject.INSTANCE)) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: null object is not invalid\");\n return false;\n }\n\n // Verify that the size of the NULL object is zero\n if (SMGNullObject.INSTANCE.getSize() != 0) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: null object does not have zero size\");\n return false;\n }\n\n return true;\n }",
"boolean getConsensus() { return this.consensus; }",
"private void verifySnapshotSessionIsForConsistencyGroup(BlockSnapshotSession snapSession,\n BlockConsistencyGroup consistencyGroup) {\n URI snapSessionCGURI = snapSession.getConsistencyGroup();\n if ((NullColumnValueGetter.isNullURI(snapSessionCGURI)) || (!snapSessionCGURI.equals(consistencyGroup.getId()))) {\n throw APIException.badRequests.snapshotSessionIsNotForConsistencyGroup(\n snapSession.getLabel(), consistencyGroup.getLabel());\n }\n }",
"public double checkModel() {\n\treturn (Weights[2] * Unigram.checkModel() + \n\t\tWeights[1] * Bigram.checkModel() +\n\t\tWeights[0] * Trigram.checkModel());\n }",
"boolean consistencyCheck(){\n\n String jbbInstdir = (String)typeToDir.get(\"jbbinst\");\n String simInstdir = (String)typeToDir.get(\"siminst\");\n String jbbColldir = (String)typeToDir.get(\"jbbcoll\");\n String simColldir = (String)typeToDir.get(\"simcoll\");\n if(simInstdir != null){\n simInstdir += \"/p01\";\n }\n if(simColldir != null){\n simColldir += \"/p01\";\n }\n return readAndCompare(jbbInstdir,simInstdir,jbbColldir,simColldir);\n }",
"private static boolean checkLikelyEqual(EquationSystem system, Map<Sort, List<Term>> smallTerms) {\n //int searchDepth = 0;\n //Term convergence = null;\n\n return true;\n /*\n\n for (int i = 0; i < 2; i++) {\n Set<Term> leftTerms = new HashSet<>();\n Set<Term> rightTerms = new HashSet<>();\n\n Term left = system.getGoal().getLeft();\n Term right = system.getGoal().getRight();\n\n for (Variable var : left.getVariables()) {\n left = left.substitute(var, smallTerms.get(var.getSort()).get(i));\n right = right.substitute(var, smallTerms.get(var.getSort()).get(i));\n }\n\n leftTerms.add(left);\n rightTerms.add(right);\n\n Logger.d(\"Checking convergence of \" + left.toString() + \" to \" + right.toString());\n\n while (convergence == null && searchDepth < 5) {\n leftTerms.addAll(Prover.rewriteAll(leftTerms, system.getEquations(), null, true, true));\n rightTerms.addAll(Prover.rewriteAll(rightTerms, system.getEquations(), null, true, true));\n\n searchDepth++;\n convergence = checkConvergence(leftTerms, rightTerms);\n }\n\n if (convergence == null) {\n return false;\n }\n }\n\n return true;*/\n }",
"public void testExplicitGcAnalsysisParallelSerialOld() {\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset56.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"Event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertTrue(JdkUtil.LogEventType.PARALLEL_SCAVENGE.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PARALLEL_SCAVENGE));\n Assert.assertTrue(JdkUtil.LogEventType.PARALLEL_SERIAL_OLD.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PARALLEL_SERIAL_OLD));\n Assert.assertTrue(Analysis.WARN_EXPLICIT_GC_SERIAL_PARALLEL + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_EXPLICIT_GC_SERIAL_PARALLEL));\n Assert.assertTrue(Analysis.ERROR_SERIAL_GC_PARALLEL + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_SERIAL_GC_PARALLEL));\n }",
"@Test\n public void consistencyTest() {\n Boolean isConsistent = instrSetup(new Callable<Boolean>() {\n\n /**\n * A {@link Callable} worker that generates accesses to an object\n * regularly fetching its id to check if it changes.\n *\n * @author Nikolay Pulev <[email protected]>\n */\n class ObjectAccessGenerator implements Callable<Long> {\n\n private Object ref;\n\n public ObjectAccessGenerator(Object ref) {\n this.ref = ref;\n }\n\n /**\n * Generates accesses to passed reference. Obtains id value,\n * checks it for consistency, and returns it as a result.\n *\n * @throws Exception\n */\n @Override\n public Long call() {\n long id0 = InstanceIdentifier.INSTANCE.getId(ref);\n ref.hashCode();\n long id1 = InstanceIdentifier.INSTANCE.getId(ref);\n ref.toString();\n long id2 = InstanceIdentifier.INSTANCE.getId(ref);\n ref.equals(ref);\n long id3 = InstanceIdentifier.INSTANCE.getId(ref);\n if (!(id0 == id1 && id1 == id2 && id2 == id3)) {\n\n return (long) -1;\n }\n\n return Long.valueOf(id0);\n }\n }\n\n @Override\n public Boolean call() throws Exception {\n Object ref = new MickeyMaus(5); /* Create object. */\n long initialId = InstanceIdentifier.INSTANCE.getId(ref);\n ExecutorService pool = Executors.newFixedThreadPool(100);\n ArrayList<Future<Long>> futures = new ArrayList<Future<Long>>();\n\n /* Create several access generators to query the object's id. */\n for (int i = 1; i < 1000; i++) {\n futures.add(pool.submit(new ObjectAccessGenerator(ref)));\n }\n\n /* Check results. */\n for (Future<Long> future : futures) {\n if (initialId != future.get().longValue()) {\n\n return Boolean.valueOf(false); /* Return false if inconsistency found. */\n }\n }\n\n return Boolean.valueOf(true);\n }\n });\n Assert.assertEquals(\"InstanceIdentifier.getId() provides consistent ids for references: \",\n true , isConsistent.booleanValue());\n }",
"@Test\n\tpublic void testChargesStudent() {\n\t\tAccount acc1 = new Account(00000, \"acc1\", true, 1000.00, 0, true);\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"acc1\", 00000, 0, \"\"));\n\t\ttransactions.add(1, new Transaction(01, \"acc1\", 00000, 50.00, \"\"));\n\t\ttransactions.add(2, new Transaction(00, \"acc1\", 00000, 0, \"\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (acc1.currentBalance == 949.95) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"can not withdraw transaction charge (student)\", testResult);\n\t}",
"public void testGetConformingStimulusLargeScale() throws Exception {\n long start = System.currentTimeMillis();\n Stimulus stimulus = new MockStimulus();\n message.setConformingStimulus(stimulus);\n for (int i = 0; i < TOTAL_ITERATION; i++) {\n message.getConformingStimulus();\n }\n System.out.println(\"Calling \" + TOTAL_ITERATION + \"times getConformingStimulus method\"\n + \" costs:\" + (System.currentTimeMillis() - start) + \" ms\");\n }",
"void checkConsumption()\n {\n assertEquals(\"Consumption doesn't match\", keyEventPair.getKey().isConsumed(), keyEventPair.getValue().isConsumed());\n }",
"boolean hasS1();",
"@Test\n public void testGiantComponent()\n {\n assertEquals(MarkovModel.util.giantComponent(P1), giant1);\n assertEquals(MarkovModel.util.giantComponent(P2), giant2);\n assertEquals(MarkovModel.util.giantComponent(P3), giant3);\n }",
"boolean isValidFor(TimeGrain grain);",
"@Test\r\n void test_insert_1_vertex_check() {\r\n graph.addVertex(\"1\");\r\n vertices = graph.getAllVertices();\r\n if (!vertices.contains(\"1\"))\r\n fail(\"Insert not working!!\");\r\n }",
"public boolean\n isReductionMatrix(List<GenPolynomial<C>> F, \n List<GenPolynomial<C>> G,\n List<List<GenPolynomial<C>>> Mf, \n List<List<GenPolynomial<C>>> Mg) { \n // no more check G and Mg: G * Mg[i] == 0\n // check F and Mg: F * Mg[i] == G[i]\n int k = 0;\n for ( List<GenPolynomial<C>> row : Mg ) {\n boolean t = red.isReductionNF( row, F, G.get( k ), null ); \n if ( ! t ) {\n logger.error(\"F isReductionMatrix s, k = \" + F.size() + \", \" + k);\n return false;\n }\n k++;\n }\n // check G and Mf: G * Mf[i] == F[i]\n k = 0;\n for ( List<GenPolynomial<C>> row : Mf ) {\n boolean t = red.isReductionNF( row, G, F.get( k ), null ); \n if ( ! t ) {\n logger.error(\"G isReductionMatrix s, k = \" + G.size() + \", \" + k);\n return false;\n }\n k++;\n }\n return true;\n }",
"public void test_ck_03() {\n // part A - surprising reification\n OntModel model1 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM, null);\n OntModel model2 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM_RULE_INF, null);\n \n Individual sub = model1.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n OntProperty pred = model1.createOntProperty(\"http://mytest#\");\n Individual obj = model1.createIndividual(\"http://mytest#i2\", model1.getProfile().CLASS());\n OntProperty probabilityP = model1.createOntProperty(\"http://mytest#prob\");\n \n Statement st = model1.createStatement(sub, pred, obj);\n model1.add(st);\n st.createReifiedStatement().addProperty(probabilityP, 0.9);\n assertTrue(\"st should be reified\", st.isReified());\n \n Statement st2 = model2.createStatement(sub, pred, obj);\n model2.add(st2);\n st2.createReifiedStatement().addProperty(probabilityP, 0.3);\n assertTrue(\"st2 should be reified\", st2.isReified());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP).addProperty(probabilityP, 0.3); //!!!\n // exception\n \n // Part B - exception in remove All\n Individual sub2 = model2.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP); //!!! exception\n \n sub2.addProperty(probabilityP, 0.3);\n sub2.removeAll(probabilityP); //!!! exception\n \n }",
"@Test\n\tpublic void testG(){\n\t\tSystem.out.println(\"Test G\");\n\t\tUUID aliceSecret = secretService.storeSecret(\"Alice\", new Secret());\n\t\tsecretService.shareSecret(\"Alice\", aliceSecret, \"Bob\");\n\t\tsecretService.shareSecret(\"Bob\", aliceSecret, \"Carl\");\n\t\tsecretService.unshareSecret(\"Bob\", aliceSecret, \"Carl\");\n\t\tsecretService.readSecret(\"Carl\", aliceSecret);\n\t}",
"private boolean check() {\n if (!isBST()) System.out.println(\"Not in symmetric order\");\n if (!isSizeConsistent()) System.out.println(\"Subtree counts not consistent\");\n if (!isRankConsistent()) System.out.println(\"Ranks not consistent\");\n return isBST() && isSizeConsistent() && isRankConsistent();\n }",
"@Test\n\tpublic void validateSignatureGenesisBlock()\n\t{\n\t\tLOGGER.info(\"getGeneratorSignature \" + gb.getSignature().length\n\t\t\t\t+ \" : \" + gb.getSignature());\n\n\t\tassertEquals(true, gb.isSignatureValid());\n\t\t\n\t\t//ADD TRANSACTION SIGNATURE\n\t\tLOGGER.info(\"getGeneratorSignature \" + gb.getSignature());\n\n\t\t//ADD a GENESIS TRANSACTION for invalid SIGNATURE\n\t\tList<Transaction> transactions = gb.getTransactions();\n\t\ttransactions.add( new GenesisTransferAssetTransaction(\n\t\t\t\tnew Account(\"7R2WUFaS7DF2As6NKz13Pgn9ij4sFw6ymZ\"), 1l, BigDecimal.valueOf(1).setScale(8)));\n\t\tgb.setTransactions(transactions);\n\t\t\n\t\t// SIGNATURE invalid\n\t\tassertEquals(false, gb.isSignatureValid());\t\t\n\n\t\tassertEquals(true, gb.isValid(db));\n\n\t}",
"@Test\n\tpublic void testGA() {\n\t\tGenetic ga = new Genetic(100, 500, 10, SelectionType.TOURNAMENT , 0.6, 0.1);\n\t\tOptimumSolution os = ga.run();\n\t\tSystem.out.println(os.getSolution());\n\t}",
"@Test\n public void testConvertHalCellInfoList_1_2ForGSMWithEmptyMccMnc() {\n ArrayList<CellInfo> ret = getCellInfoListForGSM(\n String.valueOf(Integer.MAX_VALUE), String.valueOf(Integer.MAX_VALUE),\n ALPHA_LONG, ALPHA_SHORT);\n\n assertEquals(1, ret.size());\n CellInfoGsm cellInfoGsm = (CellInfoGsm) ret.get(0);\n CellInfoGsm expected = new CellInfoGsm();\n expected.setRegistered(false);\n expected.setTimeStamp(TIMESTAMP);\n CellIdentityGsm ci = new CellIdentityGsm(\n LAC, CID, ARFCN, BSIC, null, null, ALPHA_LONG, ALPHA_SHORT,\n Collections.emptyList());\n CellSignalStrengthGsm cs = new CellSignalStrengthGsm(\n RSSI, BIT_ERROR_RATE, TIMING_ADVANCE);\n expected.setCellIdentity(ci);\n expected.setCellConnectionStatus(CellInfo.CONNECTION_NONE);\n expected.setCellSignalStrength(cs);\n cellInfoGsm.setTimeStamp(TIMESTAMP); // override the timestamp\n assertEquals(expected, cellInfoGsm);\n }",
"private void validt() {\n\t\t// -\n\t\tnmfkpinds.setPgmInd99(false);\n\t\tstateVariable.setZmsage(blanks(78));\n\t\tfor (int idxCntdo = 1; idxCntdo <= 1; idxCntdo++) {\n\t\t\tproductMaster.retrieve(stateVariable.getXwabcd());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00005 Product not found on Product_Master\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"OEM0003\", \"XWABCD\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// - If addition, pull the price from file:\n\t\t\tif (nmfkpinds.funKey06()) {\n\t\t\t\tstateVariable.setXwpric(stateVariable.getXwanpr());\n\t\t\t}\n\t\t\t// -\n\t\t\tstoreMaster.retrieve(stateVariable.getXwaacs());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00006 Store not found on Store_Master\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0369\", \"XWAACS\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstockBalances.retrieve(stateVariable.getXwabcd(), stateVariable.getXwaacs());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00007 Store not found on Stock_Balances or CONDET.Contract_Qty >\n\t\t\t// BR Onhand_Quantity\n\t\t\tif (nmfkpinds.pgmInd99() || (stateVariable.getXwa5qt() > stateVariable.getXwbhqt())) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0370\", \"XWAACS\", msgObjIdx, messages);\n\t\t\t\tnmfkpinds.setPgmInd99(true);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// - Transaction Type:\n\t\t\ttransactionTypeDescription.retrieve(stateVariable.getXwricd());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00008 Trn_Hst_Trn_Type not found on Transaction_type_description\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tstateVariable.setXwtdsc(all(\"-\", 20));\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0371\", \"XWRICD\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// - Unit of measure:\n\t\t\t// BR00009 U_M = 'EAC'\n\t\t\tif (equal(\"EAC\", stateVariable.getXwa2cd())) {\n\t\t\t\tstateVariable.setUmdes(replaceStr(stateVariable.getUmdes(), 1, 11, um[1]));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnmfkpinds.setPgmInd99(true);\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0372\", \"XWA2CD\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void computeSatisfaction() {\n\n }",
"@Test\n public void testGenerateStatistics() {\n Statistics me = new Statistics(0, numFishes, numSharks);\n Statistics prog = dataHandler.generateStatistics();\n //assertEquals(me, prog);\n if (me.getIterationStep() == prog.getIterationStep()\n && me.getFishAmount() == prog.getFishAmount()\n && me.getSharksAmount() == prog.getSharksAmount()) {\n assertTrue(true);\n } else {\n assertTrue(false);\n }\n }",
"private void catch_up(int regency) {\n\n logger.debug(\"Verifying STOPDATA info\");\n ObjectOutputStream out = null;\n ByteArrayOutputStream bos = null;\n\n CertifiedDecision lastHighestCID = lcManager.getHighestLastCID(regency);\n\n int currentCID = lastHighestCID.getCID() + 1;\n HashSet<SignedObject> signedCollects = null;\n byte[] propose = null;\n int batchSize = -1;\n\n // normalize the collects and apply to them the predicate \"sound\"\n if (lcManager.sound(lcManager.selectCollects(regency, currentCID))) {\n\n logger.debug(\"Sound predicate is true\");\n\n signedCollects = lcManager.getCollects(regency); // all original collects that the replica has received\n\n Decision dec = new Decision(-1); // the only purpose of this object is to obtain the batchsize,\n // using code inside of createPropose()\n\n propose = tom.createPropose(dec);\n batchSize = dec.batchSize;\n \n try { // serialization of the CATCH-UP message\n bos = new ByteArrayOutputStream();\n out = new ObjectOutputStream(bos);\n\n out.writeObject(lastHighestCID);\n\n\t\t//TODO: Missing: serialization of the proof?\n out.writeObject(signedCollects);\n out.writeObject(propose);\n out.writeInt(batchSize);\n\n out.flush();\n bos.flush();\n\n byte[] payload = bos.toByteArray();\n out.close();\n bos.close();\n\n logger.info(\"Sending SYNC message for regency \" + regency);\n\n // send the CATCH-UP message\n communication.send(this.controller.getCurrentViewOtherAcceptors(),\n new LCMessage(this.controller.getStaticConf().getProcessId(), TOMUtil.SYNC, regency, payload));\n\n finalise(regency, lastHighestCID, signedCollects, propose, batchSize, true);\n\n } catch (IOException ex) {\n logger.error(\"Could not serialize message\", ex);\n }\n }\n }",
"private boolean validateDiploidGenomes(ArrayList<DiploidGenome> genomes)\n\t{\n\t\tthis.logger.info(\"Testing validity of migrant population (ie. if migrant population has the same SNPs as the base popualtion)\");\n\n\t\tSNPCollection tocompare=genomes.get(0).getHaplotypeA().getSNPCollection();\n\n\t\tif(tocompare.size()!=this.controlCollection.size())throw new IllegalArgumentException(\"Invalid migrant population; Migrant population has different SNPs than the base population; size \"+tocompare.size()+\" vs \"+controlCollection.size());\n\t\tfor(int i=0; i<tocompare.size(); i++)\n\t\t{\n\t\t\tSNP valid=this.controlCollection.getSNPforIndex(i);\n\t\t\tSNP check=tocompare.getSNPforIndex(i);\n\t\t\tif(!valid.equals(check)) throw new IllegalArgumentException(\"Invalid migrant population; Migrant population has different SNPs than the base population \"+valid.toString()+ \" vs \"+check.toString());\n\n\t\t}\n\t\tthis.logger.info(\"Finished; Migrant population is valid\");\n\t\treturn true;\n\t}",
"public boolean verificationForduplicateData(String countryName, String stateName, String stateShortName,\n\t\t\tString gstCode, String expectedNotification) {\n\t\tboolean flag = false;\n\n\t\t// Create the object for the \"Common Functions\n\t\tcommonFunctions = createObject(DistricoConstant.COMMON_FUNCTIONS);\n\n\t\t// Create object for 'State' field.\n\t\tif (Objects.isNull(state)) {\n\t\t\tstate = createObject(DistricoConstant.STATE);\n\t\t}\n\t\t// Add data to mandatory fields of the State\n\t\tboolean addState = state.addState(countryName, stateName, stateShortName, gstCode);\n\t\tif (addState) {\n\t\t\tboolean notification = commonFunctions.verifyNotification(expectedNotification);\n\t\t\tif (notification) {\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t} else {\n\t\t\tRESULT.FAIL(\"Failed to add the data to Mandatory fields for State.\", true, ScreenshotType.browser);\n\t\t}\n\t\trefreshPage();\n\t\treturn flag;\n\t}",
"public boolean isConsistent(Vertex v) {\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < v.getNeighbors().size(); j++) {\n if (!isSafe(v, i)) {\n return false;\n }\n }\n\n }\n\n return true;\n }",
"private boolean hasConfigurationType1(Graph<V, E> g)\n {\n for (V v1 : g.vertexSet()) {\n Set<V> temp = new ConnectivityInspector<>(g).connectedSetOf(v1);\n for (V v2 : temp) {\n if (v1 == v2 || !g.containsEdge(v1, v2))\n continue;\n for (V v3 : temp) {\n if (v3 == v1 || v3 == v2 || !g.containsEdge(v2, v3) || g.containsEdge(v1, v3))\n continue;\n for (V v4 : temp) {\n if (v4 == v1 || v4 == v2 || v4 == v3 || g.containsEdge(v1, v4)\n || g.containsEdge(v2, v4) || !g.containsEdge(v3, v4))\n continue;\n for (V v5 : temp) {\n if (v5 == v1 || v5 == v2 || v5 == v3 || v5 == v4\n || g.containsEdge(v2, v5) || g.containsEdge(v3, v5)\n || !g.containsEdge(v1, v5) || !g.containsEdge(v4, v5))\n continue;\n if (certify) {\n List<E> edgeList = new LinkedList<>();\n edgeList.add(g.getEdge(v1, v2));\n edgeList.add(g.getEdge(v2, v3));\n edgeList.add(g.getEdge(v3, v4));\n edgeList.add(g.getEdge(v4, v5));\n edgeList.add(g.getEdge(v5, v1));\n\n double weight =\n edgeList.stream().mapToDouble(g::getEdgeWeight).sum();\n certificate = new GraphWalk<>(g, v1, v1, edgeList, weight);\n }\n return true;\n }\n }\n }\n }\n }\n\n return false;\n }",
"@Test\r\n\tpublic void testG() {\r\n\t\t\r\n\t\tObjectHandshake h = new ObjectHandshake();\r\n\t\th.setUuid( UuidTool.getOne() );\r\n\t\t\r\n\t\tRunProtocol run = null;\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_A);\r\n\t\tassertTrue(run.beginA());\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_A);\r\n\t\tassertTrue(run.commitA());\r\n\t\t\r\n\t\trun.reset();\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_B);\r\n\t\tassertFalse(run.beginB());\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_B);\r\n\t\tassertFalse(run.commitB());\r\n\t\t\r\n\t\t//analyze the reset\r\n\t\tLogAnalyzer aly = run.getCurrentAnalyzer();\r\n\t\t//The value, the reset occurs\r\n\t\tassertEquals( 200, aly.getCurrentPartValue() );\r\n\t\t//The part is not available\r\n\t\tassertEquals( LogAnalyzer.THE_PART_IS_NOT_KNOWN, aly.getPart() );\r\n\t\t\r\n\t\tassertFalse( aly.isAfterPart0() );\r\n\t\tassertFalse( aly.isAfterPart1() );\r\n\t\t//The parts 0 and 1 run properly\r\n\t\tassertTrue( aly.isAfterPart2() );\r\n\t\t//The part 3 is not reached, because of the reset\r\n\t\tassertFalse( aly.isAfterPart3() );\r\n\t\t\r\n\t\t//There is no part\r\n\t\tassertFalse( aly.isPart1() );\r\n\t\tassertFalse( aly.isPart2() );\r\n\t\tassertFalse( aly.isPart3() );\r\n\t\tassertFalse( aly.isPart4() );\r\n\t\t\r\n\t\t//There are 3 entries in the list.\r\n\t\tassertEquals( 3, aly.getList().size() );\r\n\t\t//The last entry has the RST_FLAG set\r\n\t\tassertEquals( IHandshake.RST_FLAG, aly.getCurrentPartType() );\r\n\t\t\r\n\t\tassertEquals(h.getLog(), \"1-1-100-1-1-101-1-4-200-\");\r\n\t}",
"public void testSuccessfulLastCommunicationSMS() {\n\t\t// Arrange\n\t\tPhoneNumberDTO sourceDTO = new PhoneNumberDTO(EXISTING_NUMBER);\n\t\tPhoneNumberDTO destinationDTO = new PhoneNumberDTO(EXISTING_NUMBER2);\n\t\tLastMadeCommunicationDTO lastCommunication = null;\n\t\tGetLastMadeCommunicationService sourceService\n\t\t\t= new GetLastMadeCommunicationService(sourceDTO);\n\t\tGetLastMadeCommunicationService destinationService\n\t\t\t= new GetLastMadeCommunicationService(destinationDTO);\n\t\tSendSMSDTO sendSMSDTO = new SendSMSDTO(\n\t\t\t\tMESSAGE,\n\t\t\t\tEXISTING_NUMBER,\n\t\t\t\tEXISTING_NUMBER2);\n\t\tSMSDTO responseDTO = null;\n\t\tSendSMSService sendService = new SendSMSService(sendSMSDTO);\n\t\tReceiveSMSService receiveService = null;\n\t\t\n\t\t// Act\n\t\tsendService.execute();\n\t\tresponseDTO = sendService.getSMSDTO();\n\t\treceiveService = new ReceiveSMSService(responseDTO);\n\t\treceiveService.execute();\n\t\tsourceService.execute();\n\t\tlastCommunication = sourceService.getLastCommunication();\n\t\ttry {\n\t\t\tdestinationService.execute();\n\t\t\tfail(\"There shouldn't be a last made communication in the \"\n\t\t\t\t\t+ \"destination Phone\");\n\t\t} catch(NoMadeCommunication nmc) { /* Nothing to do here */ }\n\t\t\n\t\t// Assert\n\t\tassertLastCommunication(\n\t\t\t\tlastCommunication,\n\t\t\t\tcommunicationRepresentation.getSMSCommunication(),\n\t\t\t\tEXISTING_NUMBER2,\n\t\t\t\tEXPECTED_SMS_COST,\n\t\t\t\tMESSAGE.length());\n\t}",
"@Test\n\tpublic void testGpGGA_garbledFollowedByCorrectInput_storesFix() throws SimulationException\n\t{\n\t\tm_simulation.acceptInput(\"$GPGGA,060932.448,2447.0959garbledgarbledgarbled\");\n\t\tm_simulation.acceptInput(\"$GPGGA,060934.448,2447.0959,S,12100.5204,W,1,08,1.1,108.7,M,,,,0000*0E\\n\\r\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_TIME, \"060934\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LATITUDE_DEGMIN, \"2447\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LATITUDE_HUNDREDTHS, \"09\");\n\t\tm_simulation.assertFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_NORTH, false);\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LONGITUDE_DEGMIN, \"12100\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LONGITUDE_HUNDREDTHS, \"52\");\n\t\tm_simulation.assertFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_EAST, false);\n\t\tm_simulation.assertFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_NEW_POSITION, true);\t\t\t\t\n\t}",
"private void checkGenomes() throws IOException {\n log.info(\"Validating genome pairs.\");\n Set<String> idSet = this.genomes.stream().flatMap(x -> x.getIDs().stream()).collect(Collectors.toSet());\n var errorSet = this.pairs.getIdSet().stream().filter(x -> ! idSet.contains(x)).collect(Collectors.toList());\n if (! errorSet.isEmpty())\n throw new IOException(\"The following genomes are missing from the sources: \" +\n StringUtils.join(errorSet, \", \"));\n }",
"private void processSYNC(byte[] payload, int regency) {\n \n CertifiedDecision lastHighestCID = null;\n int currentCID = -1;\n HashSet<SignedObject> signedCollects = null;\n byte[] propose = null;\n int batchSize = -1;\n\n ByteArrayInputStream bis;\n ObjectInputStream ois;\n\n try { // deserialization of the message content\n\n bis = new ByteArrayInputStream(payload);\n ois = new ObjectInputStream(bis);\n\n lastHighestCID = (CertifiedDecision) ois.readObject();\n signedCollects = (HashSet<SignedObject>) ois.readObject();\n propose = (byte[]) ois.readObject();\n batchSize = ois.readInt();\n\n lcManager.setCollects(regency, signedCollects);\n \n currentCID = lastHighestCID.getCID() + 1;\n\n // Is the predicate \"sound\" true? Is the certificate for LastCID valid?\n if (lcManager.sound(lcManager.selectCollects(regency, currentCID)) && (!controller.getStaticConf().isBFT() || lcManager.hasValidProof(lastHighestCID))) {\n\n finalise(regency, lastHighestCID, signedCollects, propose, batchSize, false);\n }\n\n ois.close();\n bis.close();\n\n } catch (IOException | ClassNotFoundException ex) {\n logger.error(\"Could not deserialize SYNC message\", ex);\n }\n }",
"public int checkGoals() {\n\t\tupdateUnsupportedPreconditionInconsistencies(maxLevel);\n\t\tcountInconsistencies();\n\t\tgraphQuality = calculateQuality();\n\t\treturn this.inconsistencyCount;\n\t}",
"public boolean isSetSldRg()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SLDRG$8) != 0;\n }\n }",
"private List<Volume> verifyCGForFullCopyRequest(URI cgURI) {\n // Query Consistency Group.\n BlockConsistencyGroup consistencyGroup = (BlockConsistencyGroup) queryResource(cgURI);\n\n // Ensure that the Consistency Group has been created on all of its\n // defined system types.\n if (!consistencyGroup.created()) {\n throw APIException.badRequests.consistencyGroupNotCreated();\n }\n\n // Get the block service implementation.\n BlockServiceApi blockServiceApiImpl = getBlockServiceImpl(consistencyGroup);\n\n // Get the volumes in the consistency group.\n List<Volume> cgVolumes = blockServiceApiImpl.getActiveCGVolumes(consistencyGroup);\n if (cgVolumes.isEmpty()) {\n throw APIException.badRequests\n .fullCopyOperationNotAllowedOnEmptyCG(consistencyGroup.getLabel());\n }\n\n return cgVolumes;\n }",
"private void computeSat(){\n addVertexVisitConstraint();\n //add clause for each vertex must be visited only once/ all vertices must be on path\n addVertexPositionConstraint();\n //add clause for every edge in graph to satisfy constraint of vertices not belonging to edge not part of successive positions\n addVertexNonEdgeConstraint();\n }",
"@Test public void buildManaged_persistentZone() {\n // Restart.\n Location loc = Location.create(ZONE_DIR);\n Zone zone = Zone.connect(loc);\n\n Quad q1 = SSE.parseQuad(\"(:g :s :p 1)\");\n Quad q2 = SSE.parseQuad(\"(:g :s :p 2)\");\n\n {\n DatasetGraph dsg = ManagedDatasetBuilder.create()\n .deltaLink(deltaLink)\n .logName(\"ABD\")\n .zone(zone)\n .syncPolicy(SyncPolicy.TXN_RW)\n .storageType(LocalStorageType.TDB2)\n .build();\n\n DeltaConnection conn = (DeltaConnection)(dsg.getContext().get(symDeltaConnection));\n Txn.executeWrite(dsg, ()->dsg.add(q1));\n Txn.executeRead( conn.getDatasetGraph(), ()->assertTrue(conn.getDatasetGraph().contains(q1)) );\n }\n\n // Same zone\n Zone.clearZoneCache();\n zone = Zone.connect(loc);\n // Storage should be recovered from the on-disk state.\n\n {\n DatasetGraph dsg1 = ManagedDatasetBuilder.create()\n .deltaLink(deltaLink)\n .logName(\"ABD\")\n .zone(zone)\n .syncPolicy(SyncPolicy.TXN_RW)\n //.storageType(LocalStorageType.TDB2) // Storage required. Should detect [FIXME]\n .build();\n DatasetGraph dsg2 = ManagedDatasetBuilder.create()\n .deltaLink(deltaLink)\n .logName(\"ABD\")\n .zone(zone)\n .syncPolicy(SyncPolicy.TXN_RW)\n //.storageType(LocalStorageType.TDB) // Wrong storage - does not matter; dsg1 setup choice applies\n .build();\n DeltaConnection conn1 = (DeltaConnection)(dsg1.getContext().get(symDeltaConnection));\n DeltaConnection conn2 = (DeltaConnection)(dsg2.getContext().get(symDeltaConnection));\n\n Txn.executeRead(conn1.getDatasetGraph(), ()->assertTrue(conn1.getDatasetGraph().contains(q1)) );\n Txn.executeWrite(conn2.getDatasetGraph(), ()->conn2.getDatasetGraph().add(q2));\n Txn.executeRead(conn1.getDatasetGraph(), ()->assertTrue(conn1.getDatasetGraph().contains(q2)) );\n }\n }",
"@Test\n\tpublic void checkAlreadyMinimal() {\n\n\t\tSet<FunctionalDependency> input = set(\n\t\t\t\tnew FunctionalDependency(set(\"A\"), set(\"B\")),\n\t\t\t\tnew FunctionalDependency(set(\"B\"), set(\"C\")),\n\t\t\t\tnew FunctionalDependency(set(\"B\"), set(\"D\")));\n\n\t\tSet<FunctionalDependency> output = minimalBasisSolver.findMinimal(input);\n\n\t\tassertEquals(input, output);\n\t}",
"public LinkedList<Integer> hasGiantConnectedComponent(Graph G)\r\n\t{\r\n\t\treturn new LinkedList<Integer>();\r\n\t}",
"private boolean checkSharedVertex(Segment s1, Segment s2){\n\t\tdouble wp1x = s1.w1.getX();\n\t\tdouble wp1y = s1.w1.getY();\n\t\tdouble wp2x = s1.w2.getX();\n\t\tdouble wp2y = s1.w2.getY();\n\t\tdouble wp3x = s2.w1.getX();\n\t\tdouble wp3y = s2.w1.getY();\n\t\tdouble wp4x = s2.w2.getX();\n\t\tdouble wp4y = s2.w2.getY();\n\n\t\tif (((wp1x == wp3x && wp1y == wp3y) || (wp1x == wp4x && wp1y == wp4y)) \n\t\t|| ((wp2x == wp3x && wp2y == wp3y) || (wp2x == wp4x && wp2y == wp4y)))\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}",
"@Test\n public void testGPSping() {\n assertEquals(-31.977484, csse.getLat(), PRECISION);\n assertEquals(115.859945, perth.getLon(), PRECISION);\n assertEquals(48.859741, paris.getLat(), PRECISION);\n assertEquals(1565063614,csse.getTime());\n }",
"void setConsensus(boolean consensus) { this.consensus = consensus; }",
"@Test\r\n void test_insert_50_vertex_check() {\r\n String str;\r\n for(int i = 0; i < 50; i++) {\r\n str = \"\" + i;\r\n graph.addVertex(str);\r\n }\r\n vertices = graph.getAllVertices();\r\n for(int j = 0; j < 50; j++) {\r\n str = \"\" + j;\r\n if (!vertices.contains(str))\r\n fail(\"Insert not working!!\");\r\n }\r\n }",
"@Test\n public void getGraph1() throws Exception {\n try (final Graph g1 = dataset.getGraph(graph1).get()) {\n assertEquals(4, g1.size());\n\n assertTrue(g1.contains(alice, name, aliceName));\n assertTrue(g1.contains(alice, knows, bob));\n assertTrue(g1.contains(alice, member, null));\n assertTrue(g1.contains(null, name, secretClubName));\n }\n }",
"public boolean isCompatibleSampleModel(SampleModel sm) {\n if (!(sm instanceof ComponentSampleModel)) {\n return false;\n }\n\n if (sm.getTransferType() != transferType) {\n return false;\n }\n \n return true;\n }",
"private static void calcSingleTms() {\n\t\tFloat avgLenInitial = 0f;\n\t\tFloat avgLenSc = 0f;\n\t\tInteger countSCsingle = 0;\n\t\t// get all the single TM proteins from the hash\n\t\t\n\t\t// for the initial set\n\t\tfor(int i =0;i<=singleTmProts.size()-1;i++){\n\t\t\tint id = singleTmProts.get(i);\n\t\t\tavgLenInitial = avgLenInitial + Sequences_length.get(id);\n\t\t}\n\t\tavgLenInitial = (avgLenInitial / singleTmProts.size());\n\t\t\n\t\tSystem.out.print(\"\\nNumber of Single TM proteins in initial Set \"+singleTmProts.size()+\"\\n\");\n\t\tSystem.out.print(\"\\nAvg Len of Single TM proteins in initial Set \"+avgLenInitial+\"\\n\");\n\t\t\n\t\t//for the SC\n\t\tgetSCset();\n\t\t// for all the proteins in SC_sequences\n\t\t\n\t\tfor(Integer key : SC_sequences.keySet()){\n\t\t\tif (singleTmProts.contains(key)){\n\t\t\t\t// is in SC and is single TM\n\t\t\t\tavgLenSc = avgLenSc + Sequences_length.get(key);\n\t\t\t\tcountSCsingle ++;\n\t\t\t}\n\t\t\tavgLenSc = (avgLenSc / countSCsingle); \n\t\t}\n\t\tSystem.out.print(\"\\nNumber of Single TM proteins in SC \"+countSCsingle+\"\\n\");\n\t\tSystem.out.print(\"\\nAvg Len of Single TM proteins in SC Set \"+avgLenSc+\"\\n\");\n\t\t\n\t\t\n\t\t\n\t}",
"@Test(expected=RuntimeException.class)\n\tpublic void testGrafoNoConexoBFS() {\n\t\tGrafo g = new Grafo(9);\n\t\tg.agregarArista(0, 1, 4F);\n\t\tg.agregarArista(0, 7, 8F);\n\t\tg.agregarArista(1, 2, 8F);\n\t\tg.agregarArista(1, 7, 12F);\n\t\tg.agregarArista(6, 5, 1F);\n\t\tKruskal ks = new Kruskal(g);\n\t\tks.arbolMinimoBFS();\n\t}",
"public static ArrayList<Integer> MCS (Graph<Integer,String> g) {\n\t\r\n\t\t\r\n\t\tArrayList<Integer> MCSOrder = new ArrayList<Integer>(0);\r\n\t\tIterator i = g.getVertices().iterator();\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"@Test\n\tpublic void testGpGGA_fix_storesFix() throws SimulationException\n\t{\n\t\tm_simulation.acceptInput(\"$GPGGA,060932.448,2447.0959,N,12100.5204,E,1,08,1.1,108.7,M,,,,0000*0E\\n\\r\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_TIME, \"060932\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LATITUDE_DEGMIN, \"2447\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LATITUDE_HUNDREDTHS, \"09\");\n\t\tm_simulation.assertFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_NORTH, true);\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LONGITUDE_DEGMIN, \"12100\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LONGITUDE_HUNDREDTHS, \"52\");\n\t\tm_simulation.assertFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_EAST, true);\n\t\tm_simulation.assertFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_NEW_POSITION, true);\n\t}",
"@Test\n void test05_checkSize() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\");\n graph.addVertex(\"c\"); // adds three vertices\n graph.addEdge(\"a\", \"b\");\n graph.addEdge(\"b\", \"c\");\n graph.addEdge(\"c\", \"b\"); // add three edges\n if (graph.size() != 3) {\n fail(\"graph has counted incorrect number of edges\");\n }\n }",
"@Test\n void test01_addVertex() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\"); // adds two vertices\n\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\"); // creates a check list to compare with\n\n if (!graph.getAllVertices().equals(vertices)) {\n fail(\"Graph didn't add the vertices correctly\");\n }\n }",
"@Test\n public void test_04_hgvs_upstream_negative_strand() {\n Log.debug(\"Test\");\n List<VcfEntry> list = snpEffect(\"testHg19Chr17\", path(\"hgvs_upstream_negative_strand.vcf\"), null);\n\n for (VcfEntry ve : list) {\n if (verbose) Log.info(ve);\n\n for (VcfEffect veff : ve.getVcfEffects()) {\n if (veff.getTranscriptId().equals(\"NM_000199.3\")) {\n if (verbose) {\n System.out.println(\"\\t\" + veff);\n System.out.println(\"\\t\\tHGVS.c: \" + veff.getHgvsC());\n }\n\n // Compare against expected result\n String expectedHgvsC = ve.getInfo(\"HGVSC\");\n String actualHgvsC = veff.getHgvsC();\n assertEquals(expectedHgvsC, actualHgvsC);\n }\n }\n }\n }",
"@Test\n\tpublic void testMultipleAddConsistency() {\n\n\t\tcontroller.addNewNodes(2);\n\t\tSignalNode first = controller.getNodesToTest().getFirst();\n\t\tSignalNode last = controller.getNodesToTest().getLast();\n\n\t\tcontroller.addSignalsToNode(first, 10000);\n\n\t\ttry {\n\t\t\tSignal sig = src.next();\n\t\t\tResult r1 = first.findSimilarTo(sig);\n\t\t\tResult r2 = last.findSimilarTo(sig);\n\t\t\tAssert.assertEquals(r1, r2);\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Test\n public void test_06_hgvs_upstream_negative_strand() {\n Log.debug(\"Test\");\n List<VcfEntry> list = snpEffect(\"testHg38Chr1\", path(\"hgvs_upstream_negative_strand_06.vcf\"), null);\n checkHgvscForTr(list, \"NM_016176.3\");\n }",
"int calculateMST();",
"public LPGInconsistency chooseInconsistency() {\n\t\t\n\t\tLPGInconsistency chosenInconsistency = null; \n\t\tint inconsistencyCounter;\n\t\t\n\t\t/* rare instances where inconsistency count is 0 */\n\t\tif (inconsistencyCount <= 0 ) {\n\t\t\tcountInconsistencies();\n\t\t\tif (inconsistencyCount <= 0)\n\t\t\t\treturn null;\n\t\t}\n\t\t\t\n\t\t/* check to see if we will prefer earlier inconsistencies or not */\n\t\tif (rand.nextFloat() <= INCONSISTENCY_WEIGHT) \n\t\t\tinconsistencyCounter = rand.nextInt((int) Math.ceil(inconsistencyCount*INCONSISTENCY_WEIGHT));\n\t\t\n\t\t/* choose a random number and iterate until we get to that inconsistency */\n\t\telse\n\t\t\tinconsistencyCounter = rand.nextInt(inconsistencyCount);\n\t\t\t\n\t\t\tfor(InconsistencyIterator iterator = this.new InconsistencyIterator(); iterator.hasNext();){\n\t\t\t\tif (inconsistencyCounter > 0 ) {\n\t\t\t\t\titerator.next();\n\t\t\t\t\tinconsistencyCounter--;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tchosenInconsistency = iterator.next();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(chosenInconsistency == null){\n\t\t\t\tchosenInconsistency = countInconsistencies();\n\t\t\t}\n\t\t\t\n\t\treturn chosenInconsistency;\n\t}",
"public void verificationForDuplicateState(String countryName, String stateName, String stateShortName,\n\t\t\tString gstCode) {\n\n\t\t// Create object for the 'Common Functions' class\n\t\tcommonFunctions = createObject(DistricoConstant.COMMON_FUNCTIONS);\n\n\t\t// Create the object of the State\n\t\tif (Objects.isNull(state)) {\n\t\t\tstate = createObject(DistricoConstant.STATE);\n\t\t}\n\n\t\tstate.addState(countryName, stateName, stateShortName, gstCode);\n\n\t\t// Verify Notification\n\t\tboolean flag = commonFunctions.verifyNotification(\"State Name and Short Name already exists !\");\n\n\t\tif (flag) {\n\t\t\tRESULT.PASS(\"Successfully verified that system is not allowed to add duplicate Sate.\", true,\n\t\t\t\t\tScreenshotType.browser);\n\t\t} else {\n\t\t\tRESULT.FAIL(\"Failed because system is allowing to add duplicate State.\", true, ScreenshotType.browser);\n\t\t}\n\t\t// Refresh page\n\t\trefreshPage();\n\t}",
"public boolean isSetGibbmt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GIBBMT$4) != 0;\r\n }\r\n }"
]
| [
"0.6155059",
"0.59396344",
"0.58437085",
"0.5380521",
"0.53785866",
"0.5353861",
"0.53132236",
"0.5292292",
"0.51337254",
"0.51315176",
"0.5128298",
"0.5108956",
"0.51052207",
"0.5044271",
"0.5034166",
"0.5016586",
"0.49710518",
"0.49521083",
"0.49314782",
"0.49225545",
"0.49111027",
"0.4848678",
"0.48284337",
"0.48147678",
"0.48027846",
"0.47844446",
"0.47832733",
"0.47825688",
"0.47817677",
"0.47729325",
"0.47574258",
"0.47569674",
"0.475636",
"0.47517434",
"0.47411352",
"0.47357085",
"0.47315517",
"0.47313458",
"0.4723978",
"0.47201505",
"0.47093904",
"0.4696249",
"0.4682997",
"0.4675497",
"0.46687946",
"0.4666199",
"0.46661565",
"0.46610028",
"0.46537143",
"0.4652559",
"0.46479797",
"0.46477598",
"0.46450326",
"0.464388",
"0.46325725",
"0.4625448",
"0.46240267",
"0.46123773",
"0.46050045",
"0.46002105",
"0.45995244",
"0.459837",
"0.4587609",
"0.45821744",
"0.45818466",
"0.4563741",
"0.45603353",
"0.45527726",
"0.4550498",
"0.45416027",
"0.45407706",
"0.45390183",
"0.45383465",
"0.45377904",
"0.45312184",
"0.45269585",
"0.45244884",
"0.45241684",
"0.45211774",
"0.45185608",
"0.45181066",
"0.4516903",
"0.4511663",
"0.45092502",
"0.45019478",
"0.45017856",
"0.4496823",
"0.44913182",
"0.44901496",
"0.44899505",
"0.44844174",
"0.44804996",
"0.44804972",
"0.44771087",
"0.44767785",
"0.44750506",
"0.44737566",
"0.4471028",
"0.44707817",
"0.4470777"
]
| 0.6581794 | 0 |
make a copy to keep the original safe | public synchronized Pair getPair() {
return new Pair(pair.getX(), pair.getY());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Prototype makeCopy();",
"static void setCopying(){isCopying=true;}",
"public void copy() {\n\n\t}",
"static void setNotCopying(){isCopying=false;}",
"T copy();",
"static void setNotAutoCopy(){isAutoCopying=false;}",
"Model copy();",
"Object clone();",
"Object clone();",
"protected Shingle copy() {\n return new Shingle(this);\n }",
"public Card makeCopy(){\n return new Card(vimage);\n }",
"public abstract INodo copy();",
"public SoPickedPoint \ncopy() \n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPickedPoint newCopy = new SoPickedPoint(this);\n return newCopy;\n}",
"public void copy(DataRequest original){\n\t\t//potential problems with object sharing\n\t\tfilters = \toriginal.get_filters();\n\t\tsort_by = \toriginal.get_sort_by();\n\t\tcount = \toriginal.get_count();\n\t\tstart = \toriginal.get_start();\n\t\tsource = \toriginal.get_source();\n\t\tfieldset =\toriginal.get_fieldset();\n\t\trelation = \toriginal.get_relation();\n\t}",
"@Override\r\n\tpublic Buffer copy() {\n\t\t\r\n\t\treturn null;\r\n\t}",
"private final State copy( State state)\n {\n State copy = new State();\n copy.index = counter++;\n copy.stackOps = Arrays.copyOf( state.stackOps, state.stackOps.length);\n copy.gotos = Arrays.copyOf( state.gotos, state.gotos.length);\n itemSetMap.put( copy, itemSetMap.get( state));\n return copy;\n }",
"public Game copy();",
"@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}",
"public Function clone();",
"Buffer copy();",
"public CopyBuilder copy() {\n return new CopyBuilder(this);\n }",
"public static void copyConstructor(){\n\t}",
"public CMObject copyOf();",
"public abstract B copy();",
"protected Factorization copy(){\n Factorization newFactor = new Factorization(this.mdc);\n //shallow copy\n newFactor.setRecipes(recipes);\n newFactor.setIngredients(ingredients);\n newFactor.setUserMap(userMap);\n newFactor.setUserMapReversed(userMap_r);\n newFactor.setRecipeMap(recipeMap);\n newFactor.setRecipeMapReversed(recipeMap_r);\n newFactor.setIngredientMap(ingredientMap);\n newFactor.setIngredientMapReversed(ingredientMap_r);\n \n //deep copy\n List<User> userCopy = new ArrayList<User>();\n for(User curr: this.users){\n userCopy.add(new User(curr.getId()));\n }\n newFactor.setUsers(userCopy);\n newFactor.setDataset(dataset.copy());\n newFactor.updateInitialSpace();\n return newFactor;\n }",
"@Override\n public FieldEntity copy()\n {\n return state.copy();\n }",
"public abstract SoftwareLight copy();",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public abstract Player freshCopy();",
"@Override\n public AbstractRelic makeCopy() {\n return new Compendium();\n }",
"public HttpParams copy() {\n/* 268 */ return (HttpParams)this;\n/* */ }",
"public void performCopy() {\n \t\ttext.copy();\n \t}",
"private Shop deepCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n List<Book> books = new ArrayList<>();\n Iterator<Book> iterator = this.getBooks().iterator();\n while(iterator.hasNext()){\n\n books.add((Book) iterator.next().clone());\n }\n obj.setBooks(books);\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }",
"@Override\n\tpublic SecuredRDFList copy();",
"@Override\n public MiniMover64RNG copy() {\n return new MiniMover64RNG(state);\n }",
"public Complex makeDeepCopy() {\r\n Complex complex2 = new Complex(this.getReal(), this.getImaginary());\r\n return complex2;\r\n }",
"private Board copy(Board board)\n {\n Board result = new Board(size);\n \n for (int i = 0; i < size; i++)\n for (int j = 0; j < size; j++)\n result.array[i][j] = board.array[i][j];\n \n return result;\n \n }",
"public abstract void copy(Result result, Object object);",
"public Object cloner() {\n return cloner((Sommet)origine.cloner(), (Sommet)destination.cloner());\n }",
"public T copy() {\n T ret = createLike();\n ret.getMatrix().setTo(this.getMatrix());\n return ret;\n }",
"Field getCopy();",
"@Override\n\tpublic Expression copy() {\n\t\treturn null;\n\t}",
"public JsonFactory copy()\n/* */ {\n/* 324 */ _checkInvalidCopy(JsonFactory.class);\n/* */ \n/* 326 */ return new JsonFactory(this, null);\n/* */ }",
"static <T> T clone(T in) throws IOException {\n\t\tByteArrayOutputStream bOut = new ByteArrayOutputStream();\n\t\tMap<Long, Object> smugglerCache = new HashMap<>();\n\t\ttry (ObjectOutputStream out = new LiveObjectOutputStream(bOut, smugglerCache)) {\n\t\t\tout.writeObject(in);\n\t\t}\n\t\ttry {\n\t\t\treturn (T) new LiveObjectInputStream(\n\t\t\t\t\tnew ByteArrayInputStream(bOut.toByteArray()),\n\t\t\t\t\tsmugglerCache)\n\t\t\t\t.readObject();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tthrow new AssertionError(\"We just serialized this object a minute ago. The class cannot be missing\", e);\n\t\t}\n\t}",
"private Shop shallowCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }",
"@Test\n public void testCopy_1() {\n LOGGER.info(\"testCopy_1\");\n final AtomString actual = new AtomString(\"Hej\");\n final AtomString expected = actual.copy();\n assertEquals(expected, actual);\n }",
"@Override\n\tpublic AbstractRelic makeCopy() {\n\t\treturn new NamelessWarRelicA();\n\t}",
"public ByteArray copy()\n\t{\n\t\treturn copy(bytes.length);\n\t}",
"@Override\n public UserProfile copy() {\n UserProfile userProfile = new UserProfile();\n copyTo(userProfile);\n return userProfile;\n }",
"private Object deepCopy(Object oldObj) throws MareException {\n UtilidadesLog.info(\"MONVariablesVentaBean.deepCopy(Object oldObj):Entrada\");\n ObjectOutputStream oos = null;\n ObjectInputStream ois = null;\n \n try {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n oos = new ObjectOutputStream(bos);\n \n oos.writeObject(oldObj);\n oos.flush();\n ByteArrayInputStream bin = new ByteArrayInputStream(bos.toByteArray());\n ois = new ObjectInputStream(bin);\n UtilidadesLog.info(\"MONVariablesVentaBean.deepCopy(Object oldObj):Salida\");\n return ois.readObject();\n } catch(Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n UtilidadesLog.debug(\"Exception en deepCopy = \" + e);\n throw new MareException(e);\n } finally {\n try {\n oos.close();\n ois.close();\n } catch(Exception ex) {\n UtilidadesLog.error(\"ERROR \", ex);\n UtilidadesLog.debug(\"Exception en deepCopy = \" + ex);\n throw new MareException(ex);\n }\n }\n }",
"public abstract Object clone();",
"public void Duplicate()\n {\n\n tacc2 = tacc.clone();\n px2 = px.clone();\n py2 = py.clone();\n pz2 = pz.clone();\n\n tgyro2 = tgyro.clone();\n\n accx2 = accx.clone();\n accy2 = accy.clone();\n accz2 = accz.clone();\n\n lng2 = lng.clone();\n lat2 = lat.clone();\n }",
"private Object[] deepCopy()\n {\n Object[] newList = new Object[size];\n\n int newListPosition = 0;\n for (int i =0; i < size; i++)\n {\n if (list[i] != null)\n {\n newList[newListPosition++] = list[i];\n }\n }\n\n return newList;\n }",
"public void setOptimizeCopy(boolean optimizeCopy)\n {\n this.optimizeCopy = optimizeCopy;\n }",
"private Object copy ( Object record )\n\t{\n\t try\n {\n ByteArrayOutputStream baos = new ByteArrayOutputStream ();\n ObjectOutputStream oos = new ObjectOutputStream (baos);\n oos.writeObject (record);\n \n ByteArrayInputStream bais = new ByteArrayInputStream ( baos.toByteArray () );\n ObjectInputStream ois = new ObjectInputStream (bais);\n return ois.readObject ();\n }\n catch (Exception e)\n {\n throw new RuntimeException (\"Cannot copy record \" + record.getClass() + \" via serialization \" );\n }\n\t}",
"default <S, D> D copy(S src, D dist) {\n BeanUtils.copyProperties(src, dist);\n return dist;\n }",
"@Override\n public Translate copy() {\n Translate copy = (Translate) SystemFunction.makeFunction(getFunctionName().getLocalPart(), getRetainedStaticContext(), getArity());\n copy.staticMap = staticMap;\n return copy;\n }",
"private Picture copy(Picture p) {\n\t\tif (p == null) {\n\t\t\tthrow new IllegalArgumentException(\"Cannot create a copy of a null Picture\");\n\t\t}\n\t\tPicture replica = new PictureImpl(p.getWidth(), p.getHeight());\n\n\t\tfor (int i = 0; i < p.getWidth(); i++) {\n\t\t\tfor (int j = 0; j < p.getHeight(); j++) {\n\t\t\t\treplica.setPixel(i, j, p.getPixel(i, j));\n\t\t\t}\n\t\t}\n\t\treturn replica;\n\t}",
"public abstract Object clone() ;",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}",
"@Override\n public Object clone() {\n return super.clone();\n }",
"public Record copy() {\n\t\treturn new Record(video, numOwned, numOut, numRentals);\n\t}",
"public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }",
"public Client copy() {\n\t\tClient clone = new Client(ID, Email, PostalAddress);\n\t\treturn(clone);\n\t}",
"Permanent copyPermanent(Permanent copyFromPermanent, UUID copyToPermanentId, Ability source, CopyApplier applier);",
"StoryState copy() {\r\n\t\tStoryState copy = new StoryState(story);\r\n\r\n\t\tcopy.getOutputStream().addAll(outputStream);\r\n\t\toutputStreamDirty();\r\n\t\tcopy.currentChoices.addAll(currentChoices);\r\n\r\n\t\tif (hasError()) {\r\n\t\t\tcopy.currentErrors = new ArrayList<String>();\r\n\t\t\tcopy.currentErrors.addAll(currentErrors);\r\n\t\t}\r\n\r\n\t\tcopy.callStack = new CallStack(callStack);\r\n\r\n\t\tcopy.variablesState = new VariablesState(copy.callStack, story.getListDefinitions());\r\n\t\tcopy.variablesState.copyFrom(variablesState);\r\n\r\n\t\tcopy.evaluationStack.addAll(evaluationStack);\r\n\r\n\t\tif (getDivertedTargetObject() != null)\r\n\t\t\tcopy.setDivertedTargetObject(divertedTargetObject);\r\n\r\n\t\tcopy.setPreviousContentObject(getPreviousContentObject());\r\n\r\n\t\tcopy.visitCounts = new HashMap<String, Integer>(visitCounts);\r\n\t\tcopy.turnIndices = new HashMap<String, Integer>(turnIndices);\r\n\t\tcopy.currentTurnIndex = currentTurnIndex;\r\n\t\tcopy.storySeed = storySeed;\r\n\t\tcopy.previousRandom = previousRandom;\r\n\r\n\t\tcopy.setDidSafeExit(didSafeExit);\r\n\r\n\t\treturn copy;\r\n\t}",
"@Test\n\tpublic void testCopy2() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tSLLSet copied = listObj2.copy();\n\t\tcopied.add(-1);\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tString expectedCopied = \"-1, 1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\t\tint expectedCopiedSize = 6;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t\tassertEquals(expectedCopiedSize, copied.getSize());\n\t\tassertEquals(expectedCopied, copied.toString());\n\n\t}",
"public Object clone()\n/* */ {\n/* 835 */ return super.clone();\n/* */ }",
"public Card copy(){\n return new Card(Suits, Value);\n }",
"@LargeTest\n public void testCopy() {\n TestAction ta = new TestAction(TestName.COPY);\n runTest(ta, TestName.COPY.name());\n }",
"public O copy() {\n return value();\n }",
"public Punch getShallowCopy(){\n Punch p = new Punch();\n p.id = id;\n p.time = time;\n //p.taskId = punchTask.getID();\n return p;\n }",
"protected T copy() {\n\n // Initialize.\n T copy = null;\n\n try {\n\n // Create an instance of this entity class.\n copy = this.entityClass.newInstance();\n\n // Create a copy.\n copy.setCreateTime(this.getCreateTime());\n copy.setId(this.getId());\n copy.setModifyTime(this.getModifyTime());\n }\n catch (IllegalAccessException e) {\n // Ignore.\n }\n catch (InstantiationException e) {\n // Ignore.\n }\n\n return copy;\n }",
"protected void copy(){\n\t\tthis.model.copy(this.color.getBackground());\n\t}",
"public static Expression getCopy(Expression exp) {\n\t\tExpression expcopy = (Expression) EcoreUtil.copy(exp);\t\n\t\treturn expcopy;\n\t}",
"private LinkgrabberFilterRule getCurrentCopy() {\r\n LinkgrabberFilterRule ret = this.rule.duplicate();\r\n save(ret);\r\n return ret;\r\n }",
"public MappingInfo copy()\r\n\t{\r\n\t\tArrayList<MappingCell> mappingCells = new ArrayList<MappingCell>();\r\n\t\tfor(MappingCell mappingCell : mappingCellHash.get())\r\n\t\t\tmappingCells.add(mappingCell);\r\n\t\treturn new MappingInfo(mapping.copy(),mappingCells);\r\n\t}",
"@Override\n public AbstractRelic makeCopy() {\n return new SpiritualRecovery();\n }",
"public State dup (State self)\n {\n if (self == null)\n return null;\n\n State copy = new State ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.address = self.address;\n copy.addressPort = self.addressPort;\n copy.generation = self.generation;\n copy.max_version = self.max_version;\n copy.extra = new VersionedMap (self.extra);\n return copy;\n }",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"IUnit copy();",
"@Override\n public LocalStore<V> copy() {\n return this;\n }",
"public void copy(){\n\t\tFileInputStream is = null;\n\t\tFileOutputStream os = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(source);\n\t\t\tos = new FileOutputStream(dest);\n\t\t\tif(dest.exists())\n\t\t\t\tdest.delete();\n\t\t\tint i = -1;\n\t\t\twhile((i = is.read()) != -1)\n\t\t\t\tos.write(i);\n\t\t\tsource.deleteOnExit();\n\t\t} catch (IOException e) {\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t} finally {\n\t\t\tif(is != null)\n\t\t\t\ttry {\n\t\t\t\t\tis.close();\n\t\t\t\t} catch (IOException ignored) {}\n\t\t\tif(os != null)\n\t\t\t\ttry {\n\t\t\t\t\tos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t\t\t}\n\t\t}\n\t}",
"public abstract Node copy();",
"RandomnessSource copy();",
"public abstract Pessoa clone();",
"public Picture(Picture copyPicture)\n {\n // let the parent class do the copy\n super(copyPicture);\n }",
"public Picture(Picture copyPicture)\n {\n // let the parent class do the copy\n super(copyPicture);\n }",
"@Override\n protected Workflow copy(CompoundWorkflow parent) {\n return copyImpl(new AssignmentWorkflow(getNode().clone(), parent, newTaskTemplate, newTaskClass, newTaskOutcomes));\n }",
"DataContext copy();",
"public Object clone() {\n FileTransfer ft = new FileTransfer();\n ft.mLogicalFile = new String(this.mLogicalFile);\n ft.mFlags = (BitSet) this.mFlags.clone();\n ft.mTransferFlag = this.mTransferFlag;\n ft.mSize = this.mSize;\n ft.mType = this.mType;\n ft.mJob = new String(this.mJob);\n ft.mPriority = this.mPriority;\n ft.mURLForRegistrationOnDestination = this.mURLForRegistrationOnDestination;\n ft.mMetadata = (Metadata) this.mMetadata.clone();\n ft.mVerifySymlinkSource = this.mVerifySymlinkSource;\n // the maps are not cloned underneath\n\n return ft;\n }",
"public Tree<K, V> copy() {\n\t\tTree<K, V> copy = EmptyTree.getInstance(), t = this;\n\t\treturn copy(t, copy);\n\t}",
"public Whisper dup (Whisper self)\n {\n if (self == null)\n return null;\n\n Whisper copy = new Whisper ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.content = self.content.duplicate ();\n return copy;\n }",
"private RootBlock copy(RootBlock sourceRootBlock) {\n\t\tCopier copier = new Copier(true);\n\t\tRootBlock result = (RootBlock) copier.copy(sourceRootBlock);\n\t\tcopier.copyReferences();\n\t\treturn result;\n\t}",
"public Object clone() {\n return this.copy();\n }",
"public Coordinates copy() {\n\t\treturn new Coordinates(this);\n\t}",
"org.omg.CORBA.Object _duplicate();",
"@Override\n\tpublic CanvasItem copy() {\n\t\treturn null;\n\t}"
]
| [
"0.8245952",
"0.7680696",
"0.7543851",
"0.73439854",
"0.71098554",
"0.68476695",
"0.68217516",
"0.6802575",
"0.6802575",
"0.67290586",
"0.6671039",
"0.666202",
"0.6559896",
"0.6530152",
"0.652497",
"0.65206957",
"0.651144",
"0.6507221",
"0.6504097",
"0.6476906",
"0.6470773",
"0.6457927",
"0.6451695",
"0.6446211",
"0.6438867",
"0.6423329",
"0.6408599",
"0.64028794",
"0.64028794",
"0.64028794",
"0.64028794",
"0.6368907",
"0.6333665",
"0.63301665",
"0.6310395",
"0.6308534",
"0.6303081",
"0.62862074",
"0.62841606",
"0.62765294",
"0.6254275",
"0.62536824",
"0.6246606",
"0.62418276",
"0.6240557",
"0.6225709",
"0.62236863",
"0.6197471",
"0.61966187",
"0.6171601",
"0.6169389",
"0.61606354",
"0.61591065",
"0.6147656",
"0.6147405",
"0.61366147",
"0.6128194",
"0.612768",
"0.61194396",
"0.6117929",
"0.6113175",
"0.6112858",
"0.6107873",
"0.6097571",
"0.6093352",
"0.6091114",
"0.6078607",
"0.60754514",
"0.6061057",
"0.60551697",
"0.6054573",
"0.6051868",
"0.60365784",
"0.60325193",
"0.6024544",
"0.6008969",
"0.5996955",
"0.5995706",
"0.5992239",
"0.59921116",
"0.599197",
"0.59915704",
"0.5985432",
"0.5980887",
"0.5978359",
"0.5966315",
"0.59491646",
"0.5948175",
"0.59382564",
"0.59374416",
"0.59374416",
"0.59317166",
"0.5925146",
"0.59230506",
"0.5920325",
"0.59142137",
"0.59094524",
"0.59079206",
"0.59074444",
"0.59032786",
"0.59013015"
]
| 0.0 | -1 |
make a copy to keep the original safe | @Override
public Pair getPair() {
lock.lock();
try {
return new Pair(pair.getX(), pair.getY());
} finally {
lock.unlock();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Prototype makeCopy();",
"static void setCopying(){isCopying=true;}",
"public void copy() {\n\n\t}",
"static void setNotCopying(){isCopying=false;}",
"T copy();",
"static void setNotAutoCopy(){isAutoCopying=false;}",
"Model copy();",
"Object clone();",
"Object clone();",
"protected Shingle copy() {\n return new Shingle(this);\n }",
"public Card makeCopy(){\n return new Card(vimage);\n }",
"public abstract INodo copy();",
"public SoPickedPoint \ncopy() \n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPickedPoint newCopy = new SoPickedPoint(this);\n return newCopy;\n}",
"public void copy(DataRequest original){\n\t\t//potential problems with object sharing\n\t\tfilters = \toriginal.get_filters();\n\t\tsort_by = \toriginal.get_sort_by();\n\t\tcount = \toriginal.get_count();\n\t\tstart = \toriginal.get_start();\n\t\tsource = \toriginal.get_source();\n\t\tfieldset =\toriginal.get_fieldset();\n\t\trelation = \toriginal.get_relation();\n\t}",
"@Override\r\n\tpublic Buffer copy() {\n\t\t\r\n\t\treturn null;\r\n\t}",
"private final State copy( State state)\n {\n State copy = new State();\n copy.index = counter++;\n copy.stackOps = Arrays.copyOf( state.stackOps, state.stackOps.length);\n copy.gotos = Arrays.copyOf( state.gotos, state.gotos.length);\n itemSetMap.put( copy, itemSetMap.get( state));\n return copy;\n }",
"public Game copy();",
"@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}",
"public Function clone();",
"Buffer copy();",
"public CopyBuilder copy() {\n return new CopyBuilder(this);\n }",
"public static void copyConstructor(){\n\t}",
"public CMObject copyOf();",
"public abstract B copy();",
"protected Factorization copy(){\n Factorization newFactor = new Factorization(this.mdc);\n //shallow copy\n newFactor.setRecipes(recipes);\n newFactor.setIngredients(ingredients);\n newFactor.setUserMap(userMap);\n newFactor.setUserMapReversed(userMap_r);\n newFactor.setRecipeMap(recipeMap);\n newFactor.setRecipeMapReversed(recipeMap_r);\n newFactor.setIngredientMap(ingredientMap);\n newFactor.setIngredientMapReversed(ingredientMap_r);\n \n //deep copy\n List<User> userCopy = new ArrayList<User>();\n for(User curr: this.users){\n userCopy.add(new User(curr.getId()));\n }\n newFactor.setUsers(userCopy);\n newFactor.setDataset(dataset.copy());\n newFactor.updateInitialSpace();\n return newFactor;\n }",
"@Override\n public FieldEntity copy()\n {\n return state.copy();\n }",
"public abstract SoftwareLight copy();",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public abstract Player freshCopy();",
"@Override\n public AbstractRelic makeCopy() {\n return new Compendium();\n }",
"public HttpParams copy() {\n/* 268 */ return (HttpParams)this;\n/* */ }",
"public void performCopy() {\n \t\ttext.copy();\n \t}",
"private Shop deepCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n List<Book> books = new ArrayList<>();\n Iterator<Book> iterator = this.getBooks().iterator();\n while(iterator.hasNext()){\n\n books.add((Book) iterator.next().clone());\n }\n obj.setBooks(books);\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }",
"@Override\n\tpublic SecuredRDFList copy();",
"@Override\n public MiniMover64RNG copy() {\n return new MiniMover64RNG(state);\n }",
"public Complex makeDeepCopy() {\r\n Complex complex2 = new Complex(this.getReal(), this.getImaginary());\r\n return complex2;\r\n }",
"private Board copy(Board board)\n {\n Board result = new Board(size);\n \n for (int i = 0; i < size; i++)\n for (int j = 0; j < size; j++)\n result.array[i][j] = board.array[i][j];\n \n return result;\n \n }",
"public abstract void copy(Result result, Object object);",
"public Object cloner() {\n return cloner((Sommet)origine.cloner(), (Sommet)destination.cloner());\n }",
"public T copy() {\n T ret = createLike();\n ret.getMatrix().setTo(this.getMatrix());\n return ret;\n }",
"Field getCopy();",
"@Override\n\tpublic Expression copy() {\n\t\treturn null;\n\t}",
"public JsonFactory copy()\n/* */ {\n/* 324 */ _checkInvalidCopy(JsonFactory.class);\n/* */ \n/* 326 */ return new JsonFactory(this, null);\n/* */ }",
"static <T> T clone(T in) throws IOException {\n\t\tByteArrayOutputStream bOut = new ByteArrayOutputStream();\n\t\tMap<Long, Object> smugglerCache = new HashMap<>();\n\t\ttry (ObjectOutputStream out = new LiveObjectOutputStream(bOut, smugglerCache)) {\n\t\t\tout.writeObject(in);\n\t\t}\n\t\ttry {\n\t\t\treturn (T) new LiveObjectInputStream(\n\t\t\t\t\tnew ByteArrayInputStream(bOut.toByteArray()),\n\t\t\t\t\tsmugglerCache)\n\t\t\t\t.readObject();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tthrow new AssertionError(\"We just serialized this object a minute ago. The class cannot be missing\", e);\n\t\t}\n\t}",
"private Shop shallowCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }",
"@Test\n public void testCopy_1() {\n LOGGER.info(\"testCopy_1\");\n final AtomString actual = new AtomString(\"Hej\");\n final AtomString expected = actual.copy();\n assertEquals(expected, actual);\n }",
"@Override\n\tpublic AbstractRelic makeCopy() {\n\t\treturn new NamelessWarRelicA();\n\t}",
"public ByteArray copy()\n\t{\n\t\treturn copy(bytes.length);\n\t}",
"@Override\n public UserProfile copy() {\n UserProfile userProfile = new UserProfile();\n copyTo(userProfile);\n return userProfile;\n }",
"private Object deepCopy(Object oldObj) throws MareException {\n UtilidadesLog.info(\"MONVariablesVentaBean.deepCopy(Object oldObj):Entrada\");\n ObjectOutputStream oos = null;\n ObjectInputStream ois = null;\n \n try {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n oos = new ObjectOutputStream(bos);\n \n oos.writeObject(oldObj);\n oos.flush();\n ByteArrayInputStream bin = new ByteArrayInputStream(bos.toByteArray());\n ois = new ObjectInputStream(bin);\n UtilidadesLog.info(\"MONVariablesVentaBean.deepCopy(Object oldObj):Salida\");\n return ois.readObject();\n } catch(Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n UtilidadesLog.debug(\"Exception en deepCopy = \" + e);\n throw new MareException(e);\n } finally {\n try {\n oos.close();\n ois.close();\n } catch(Exception ex) {\n UtilidadesLog.error(\"ERROR \", ex);\n UtilidadesLog.debug(\"Exception en deepCopy = \" + ex);\n throw new MareException(ex);\n }\n }\n }",
"public abstract Object clone();",
"public void Duplicate()\n {\n\n tacc2 = tacc.clone();\n px2 = px.clone();\n py2 = py.clone();\n pz2 = pz.clone();\n\n tgyro2 = tgyro.clone();\n\n accx2 = accx.clone();\n accy2 = accy.clone();\n accz2 = accz.clone();\n\n lng2 = lng.clone();\n lat2 = lat.clone();\n }",
"private Object[] deepCopy()\n {\n Object[] newList = new Object[size];\n\n int newListPosition = 0;\n for (int i =0; i < size; i++)\n {\n if (list[i] != null)\n {\n newList[newListPosition++] = list[i];\n }\n }\n\n return newList;\n }",
"public void setOptimizeCopy(boolean optimizeCopy)\n {\n this.optimizeCopy = optimizeCopy;\n }",
"private Object copy ( Object record )\n\t{\n\t try\n {\n ByteArrayOutputStream baos = new ByteArrayOutputStream ();\n ObjectOutputStream oos = new ObjectOutputStream (baos);\n oos.writeObject (record);\n \n ByteArrayInputStream bais = new ByteArrayInputStream ( baos.toByteArray () );\n ObjectInputStream ois = new ObjectInputStream (bais);\n return ois.readObject ();\n }\n catch (Exception e)\n {\n throw new RuntimeException (\"Cannot copy record \" + record.getClass() + \" via serialization \" );\n }\n\t}",
"default <S, D> D copy(S src, D dist) {\n BeanUtils.copyProperties(src, dist);\n return dist;\n }",
"@Override\n public Translate copy() {\n Translate copy = (Translate) SystemFunction.makeFunction(getFunctionName().getLocalPart(), getRetainedStaticContext(), getArity());\n copy.staticMap = staticMap;\n return copy;\n }",
"public abstract Object clone() ;",
"private Picture copy(Picture p) {\n\t\tif (p == null) {\n\t\t\tthrow new IllegalArgumentException(\"Cannot create a copy of a null Picture\");\n\t\t}\n\t\tPicture replica = new PictureImpl(p.getWidth(), p.getHeight());\n\n\t\tfor (int i = 0; i < p.getWidth(); i++) {\n\t\t\tfor (int j = 0; j < p.getHeight(); j++) {\n\t\t\t\treplica.setPixel(i, j, p.getPixel(i, j));\n\t\t\t}\n\t\t}\n\t\treturn replica;\n\t}",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}",
"@Override\n public Object clone() {\n return super.clone();\n }",
"public Record copy() {\n\t\treturn new Record(video, numOwned, numOut, numRentals);\n\t}",
"public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }",
"public Client copy() {\n\t\tClient clone = new Client(ID, Email, PostalAddress);\n\t\treturn(clone);\n\t}",
"Permanent copyPermanent(Permanent copyFromPermanent, UUID copyToPermanentId, Ability source, CopyApplier applier);",
"StoryState copy() {\r\n\t\tStoryState copy = new StoryState(story);\r\n\r\n\t\tcopy.getOutputStream().addAll(outputStream);\r\n\t\toutputStreamDirty();\r\n\t\tcopy.currentChoices.addAll(currentChoices);\r\n\r\n\t\tif (hasError()) {\r\n\t\t\tcopy.currentErrors = new ArrayList<String>();\r\n\t\t\tcopy.currentErrors.addAll(currentErrors);\r\n\t\t}\r\n\r\n\t\tcopy.callStack = new CallStack(callStack);\r\n\r\n\t\tcopy.variablesState = new VariablesState(copy.callStack, story.getListDefinitions());\r\n\t\tcopy.variablesState.copyFrom(variablesState);\r\n\r\n\t\tcopy.evaluationStack.addAll(evaluationStack);\r\n\r\n\t\tif (getDivertedTargetObject() != null)\r\n\t\t\tcopy.setDivertedTargetObject(divertedTargetObject);\r\n\r\n\t\tcopy.setPreviousContentObject(getPreviousContentObject());\r\n\r\n\t\tcopy.visitCounts = new HashMap<String, Integer>(visitCounts);\r\n\t\tcopy.turnIndices = new HashMap<String, Integer>(turnIndices);\r\n\t\tcopy.currentTurnIndex = currentTurnIndex;\r\n\t\tcopy.storySeed = storySeed;\r\n\t\tcopy.previousRandom = previousRandom;\r\n\r\n\t\tcopy.setDidSafeExit(didSafeExit);\r\n\r\n\t\treturn copy;\r\n\t}",
"@Test\n\tpublic void testCopy2() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tSLLSet copied = listObj2.copy();\n\t\tcopied.add(-1);\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tString expectedCopied = \"-1, 1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\t\tint expectedCopiedSize = 6;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t\tassertEquals(expectedCopiedSize, copied.getSize());\n\t\tassertEquals(expectedCopied, copied.toString());\n\n\t}",
"public Object clone()\n/* */ {\n/* 835 */ return super.clone();\n/* */ }",
"public Card copy(){\n return new Card(Suits, Value);\n }",
"@LargeTest\n public void testCopy() {\n TestAction ta = new TestAction(TestName.COPY);\n runTest(ta, TestName.COPY.name());\n }",
"public O copy() {\n return value();\n }",
"public Punch getShallowCopy(){\n Punch p = new Punch();\n p.id = id;\n p.time = time;\n //p.taskId = punchTask.getID();\n return p;\n }",
"protected T copy() {\n\n // Initialize.\n T copy = null;\n\n try {\n\n // Create an instance of this entity class.\n copy = this.entityClass.newInstance();\n\n // Create a copy.\n copy.setCreateTime(this.getCreateTime());\n copy.setId(this.getId());\n copy.setModifyTime(this.getModifyTime());\n }\n catch (IllegalAccessException e) {\n // Ignore.\n }\n catch (InstantiationException e) {\n // Ignore.\n }\n\n return copy;\n }",
"protected void copy(){\n\t\tthis.model.copy(this.color.getBackground());\n\t}",
"public static Expression getCopy(Expression exp) {\n\t\tExpression expcopy = (Expression) EcoreUtil.copy(exp);\t\n\t\treturn expcopy;\n\t}",
"public MappingInfo copy()\r\n\t{\r\n\t\tArrayList<MappingCell> mappingCells = new ArrayList<MappingCell>();\r\n\t\tfor(MappingCell mappingCell : mappingCellHash.get())\r\n\t\t\tmappingCells.add(mappingCell);\r\n\t\treturn new MappingInfo(mapping.copy(),mappingCells);\r\n\t}",
"private LinkgrabberFilterRule getCurrentCopy() {\r\n LinkgrabberFilterRule ret = this.rule.duplicate();\r\n save(ret);\r\n return ret;\r\n }",
"@Override\n public AbstractRelic makeCopy() {\n return new SpiritualRecovery();\n }",
"public State dup (State self)\n {\n if (self == null)\n return null;\n\n State copy = new State ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.address = self.address;\n copy.addressPort = self.addressPort;\n copy.generation = self.generation;\n copy.max_version = self.max_version;\n copy.extra = new VersionedMap (self.extra);\n return copy;\n }",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"IUnit copy();",
"@Override\n public LocalStore<V> copy() {\n return this;\n }",
"public void copy(){\n\t\tFileInputStream is = null;\n\t\tFileOutputStream os = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(source);\n\t\t\tos = new FileOutputStream(dest);\n\t\t\tif(dest.exists())\n\t\t\t\tdest.delete();\n\t\t\tint i = -1;\n\t\t\twhile((i = is.read()) != -1)\n\t\t\t\tos.write(i);\n\t\t\tsource.deleteOnExit();\n\t\t} catch (IOException e) {\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t} finally {\n\t\t\tif(is != null)\n\t\t\t\ttry {\n\t\t\t\t\tis.close();\n\t\t\t\t} catch (IOException ignored) {}\n\t\t\tif(os != null)\n\t\t\t\ttry {\n\t\t\t\t\tos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t\t\t}\n\t\t}\n\t}",
"public abstract Node copy();",
"RandomnessSource copy();",
"public abstract Pessoa clone();",
"public Picture(Picture copyPicture)\n {\n // let the parent class do the copy\n super(copyPicture);\n }",
"public Picture(Picture copyPicture)\n {\n // let the parent class do the copy\n super(copyPicture);\n }",
"@Override\n protected Workflow copy(CompoundWorkflow parent) {\n return copyImpl(new AssignmentWorkflow(getNode().clone(), parent, newTaskTemplate, newTaskClass, newTaskOutcomes));\n }",
"DataContext copy();",
"public Object clone() {\n FileTransfer ft = new FileTransfer();\n ft.mLogicalFile = new String(this.mLogicalFile);\n ft.mFlags = (BitSet) this.mFlags.clone();\n ft.mTransferFlag = this.mTransferFlag;\n ft.mSize = this.mSize;\n ft.mType = this.mType;\n ft.mJob = new String(this.mJob);\n ft.mPriority = this.mPriority;\n ft.mURLForRegistrationOnDestination = this.mURLForRegistrationOnDestination;\n ft.mMetadata = (Metadata) this.mMetadata.clone();\n ft.mVerifySymlinkSource = this.mVerifySymlinkSource;\n // the maps are not cloned underneath\n\n return ft;\n }",
"public Tree<K, V> copy() {\n\t\tTree<K, V> copy = EmptyTree.getInstance(), t = this;\n\t\treturn copy(t, copy);\n\t}",
"public Whisper dup (Whisper self)\n {\n if (self == null)\n return null;\n\n Whisper copy = new Whisper ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.content = self.content.duplicate ();\n return copy;\n }",
"private RootBlock copy(RootBlock sourceRootBlock) {\n\t\tCopier copier = new Copier(true);\n\t\tRootBlock result = (RootBlock) copier.copy(sourceRootBlock);\n\t\tcopier.copyReferences();\n\t\treturn result;\n\t}",
"public Object clone() {\n return this.copy();\n }",
"public Coordinates copy() {\n\t\treturn new Coordinates(this);\n\t}",
"org.omg.CORBA.Object _duplicate();",
"@Override\n\tpublic CanvasItem copy() {\n\t\treturn null;\n\t}"
]
| [
"0.82458824",
"0.76811635",
"0.75444335",
"0.734463",
"0.7109942",
"0.6848285",
"0.68223155",
"0.68026567",
"0.68026567",
"0.67294526",
"0.66709733",
"0.6662423",
"0.65602815",
"0.6530671",
"0.6525577",
"0.6521109",
"0.65115917",
"0.6508043",
"0.65042496",
"0.647662",
"0.6471226",
"0.645829",
"0.6451962",
"0.64468485",
"0.6438627",
"0.6424171",
"0.6409042",
"0.64032394",
"0.64032394",
"0.64032394",
"0.64032394",
"0.6369129",
"0.6333798",
"0.63305897",
"0.63109493",
"0.6308899",
"0.6303255",
"0.6286804",
"0.62845755",
"0.6276475",
"0.625456",
"0.62544346",
"0.6247011",
"0.62422425",
"0.6241719",
"0.6226112",
"0.6223968",
"0.6197935",
"0.6196991",
"0.6171996",
"0.6169862",
"0.61609447",
"0.6159465",
"0.61481243",
"0.6147983",
"0.6137035",
"0.61286426",
"0.6128115",
"0.61197305",
"0.61184794",
"0.6113357",
"0.6112816",
"0.61092615",
"0.60987926",
"0.60938936",
"0.6091802",
"0.60787266",
"0.6075164",
"0.60619164",
"0.6056211",
"0.60555285",
"0.6052223",
"0.60370004",
"0.603328",
"0.60245335",
"0.60092545",
"0.5998044",
"0.5996286",
"0.59928435",
"0.59928036",
"0.59923023",
"0.5992142",
"0.5985679",
"0.5981389",
"0.5979169",
"0.5966544",
"0.5949315",
"0.5948237",
"0.5938471",
"0.5937549",
"0.5937549",
"0.59325707",
"0.59250534",
"0.59236866",
"0.5920532",
"0.59145695",
"0.5909519",
"0.59086794",
"0.5907925",
"0.5903865",
"0.59024197"
]
| 0.0 | -1 |
Makes the grid, buttons and actions for iPanel | void gridMaker() {
this.setLayout(new GridBagLayout());
GridBagConstraints instrumentC = new GridBagConstraints();
String fs = File.separator;
instrumentIcons[0] = ".." + fs + "icons" + fs + "guitar.png";
instrumentIcons[1] = ".." + fs + "icons" + fs + "saxophone.png";
instrumentIcons[2] = ".." + fs + "icons" + fs + "drums.png";
instrumentIcons[3] = ".." + fs + "icons" + fs + "bass.png";
instrumentIcons[4] = ".." + fs + "icons" + fs + "piano.png";
instrumentIcons[5] = ".." + fs + "icons" + fs + "misc.png";
instrumentIcons[6] = ".." + fs + "icons" + fs + "misc2.png";
instrumentIcons[7] = ".." + fs + "icons" + fs + "misc3.png";
iconsFocused[0] = ".." + fs + "icons" + fs + "guitar_focus.png";
iconsFocused[1] = ".." + fs + "icons" + fs + "saxophone_focus.png";
iconsFocused[2] = ".." + fs + "icons" + fs + "drums_focus.png";
iconsFocused[3] = ".." + fs + "icons" + fs + "bass_focus.png";
iconsFocused[4] = ".." + fs + "icons" + fs + "piano_focus.png";
iconsFocused[5] = ".." + fs + "icons" + fs + "misc_focus.png";
iconsFocused[6] = ".." + fs + "icons" + fs + "misc2_focus.png";
iconsFocused[7] = ".." + fs + "icons" + fs + "misc3_focus.png";
instrumentID[0] = "Guitar";
instrumentID[1] = "Saxophone";
instrumentID[2] = "Drums";
instrumentID[3] = "Bass";
instrumentID[4] = "Piano";
instrumentID[5] = "Misc";
instrumentID[6] = "Misc 2";
instrumentID[7] = "Misc 3";
/**
* The for loop goes through the list with the instruments and adds the matching icon to that button
* and.
*/
int columnIndex = 0;
int rowIndex = 0;
for (int i = 0; i < buttonList.length; i++) {
buttonList[i] = new JButton();
try {
Image img = ImageIO.read(getClass().getResource(instrumentIcons[i]));
buttonList[i].setIcon(new ImageIcon(img));
} catch (IOException ignored) {
System.out.println("Icon error");
}
buttonList[i].setBackground(BUTTON_BACKGROUND);
instrumentC.fill = GridBagConstraints.BOTH;
instrumentC.ipady = BUTTON_PADDING_Y;
instrumentC.ipadx = BUTTON_PADDING_X;
instrumentC.gridx = columnIndex;
instrumentC.gridy = rowIndex;
this.add(buttonList[i], instrumentC);
columnIndex = (columnIndex < 1 ? columnIndex + 1 : 0);
if (columnIndex == 0) {
rowIndex += 1;
}
}
setInstrumentPanelListeners();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setupGUI(){\r\n\t\t\r\n\t\tfinal GUIFactory guifactory = GUIFactory.instance();\r\n\t\tfinal MTApplication app = (MTApplication)item.getView().getRenderer();\r\n\t\tfinal float leftiness = app.getWidth()*5/6;\r\n\t\tfinal float xPos = leftiness + 5;\r\n\t\t\r\n\t\t\r\n\t\toverlay = new MTOverlayContainer( app);\r\n\t\titem.getView().getRoot().addChild( overlay);\r\n\t\t\r\n\t\t// _THE_ PANEL \r\n\t\t\r\n\t\tpnlPanel = guifactory.createPanel( leftiness, 0, app.getWidth()-leftiness, app.getHeight(),\"pnlPanel\", overlay);\t\t\t\r\n\t\t\r\n\t\t// INTERACTION PANEL\r\n\t\t\r\n\t\tpnlInteraction = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlInteraction\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlInteraction.setNoFill( true);\r\n\t\t\r\n\t\t// EDIT PANEL\r\n\t\t\r\n\t\tpnlEdit = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlEdit\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlEdit.setVisible( false);\r\n\t\tpnlEdit.setNoFill( true);\r\n\t\t\r\n\t\t\r\n\t\t// ITEM NAME TEXTAREA\r\n\t\t\r\n\t\tString itemName = item.getName();\r\n\t\tif(itemName == null || itemName.equals( \"\"))\r\n\t\t\titemName = item.getID();\r\n\t\ttxtItemName = guifactory.createTextArea(itemName, \"txtItemName\", pnlPanel);\r\n\t\ttxtItemName.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getY() + 10\t\r\n\t\t\t\t));\r\n\r\n\r\n\t\t// PANEL PICTURE\r\n\r\n\t\tVector3D pnlInteractionPos = pnlInteraction.getPosition( TransformSpace.GLOBAL);\r\n\t\tpnlPicture = guifactory.createPanel( pnlInteractionPos.getX()+50, pnlInteractionPos.getY()+50, 100, 100, \"pnlPicture\", pnlInteraction);\r\n\t\tpnlPicture.setAnchor( PositionAnchor.CENTER);\r\n\t\tpnlPicture.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\tpnlInteractionPos.getX() + pnlInteraction.getWidthXY( TransformSpace.GLOBAL)/2,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 50 + pnlPicture.getHeightXY( TransformSpace.GLOBAL)/2\r\n\t\t\t\t));\r\n\t\tpnlPicture.setTexture( GUITextures.instance().getByDevice( DeviceType.getDeviceType( device)));\r\n\t\t\r\n\t\t\r\n\t\t// POWER USAGE TEXTAREA\r\n\t\t\r\n\t\tString powerUsage = \"n/a\";\r\n\t\tif( device.getPowerUsage() != null && device.getPowerUsage().getValue() != null){\r\n\t\t\tpowerUsage = device.getPowerUsage().getValue().toString();\r\n\t\t}\r\n\t\t\r\n\t\ttxtPowerUsage = guifactory.createTextArea( \"Power usage: \" + powerUsage + \" Watts\", \"txtPowerUsage\", pnlInteraction);\r\n\t\ttxtPowerUsage.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 140\t\t\r\n\t\t\t\t\t\t));\r\n\t\ttxtPowerUsage.setVisible( false);\r\n\t\t\r\n\t\t\r\n\t\t// ON/OFF BUTTON\r\n\t\t\r\n\t\tbtnOnOff = guifactory.createButton( \"Turn device On/Off\", \"btnOnOff\", pnlInteraction);\r\n\t\tbtnOnOff.setPosition( txtPowerUsage.getPosition( TransformSpace.GLOBAL));\r\n\t\tbtnOnOff.addGestureListener( TapProcessor.class, new BtnOnOffListener());\r\n\t\t\r\n\t\t\r\n\t\t// SUBDEVICE BUTTON PANEL\r\n\t\t\r\n\t\tpnlSubDeviceButtons = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getX(),\r\n\t\t\t\tbtnOnOff.getVectorNextToComponent( 10, false).getY(),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tdevice.getSubDevice().size() * (btnOnOff.getHeight()+10),\r\n\t\t\t\t\"pnlSubDeviceButtons\",\r\n\t\t\t\tpnlInteraction);\r\n\t\t\r\n\t\t// SUB DEVICE BUTTONS\r\n\t\t\r\n\t\tsubDeviceButtons = new LinkedList<MTButton>();\r\n\t\tfor( int i = 0; i < device.getSubDevice().size(); i++){\r\n\t\t\t\r\n\t\t\tPhysicalDevice subDevice = device.getSubDevice().get( i);\r\n\t\t\t\r\n\t\t\t// get button's caption\r\n\t\t\tString caption = subDevice.getName();\r\n\t\t\tif(caption == null || caption.equals( \"\"))\r\n\t\t\t\tcaption = subDevice.getId();\r\n\t\t\t\r\n\t\t\tMTButton btnSubDevice = guifactory.createButton( caption, \"btnSubDevice_\" + subDevice.getId(), pnlSubDeviceButtons);\r\n\t\t\tbtnSubDevice.setPosition(\r\n\t\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\t\r\n\t\t\t\t\t\tpnlSubDeviceButtons.getPosition( TransformSpace.GLOBAL).getY() + i*(btnSubDevice.getHeight() + 10)\r\n\t\t\t\t\t));\r\n\t\t\t\r\n\t\t\tsubDeviceButtons.add( btnSubDevice);\r\n\t\t\tbtnSubDevice.addGestureListener( TapProcessor.class, new BtnSubDeviceListener( subDevice));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// EDIT BUTTON\r\n\t\t\r\n\t\tbtnEdit = guifactory.createButton( \"Edit\", \"btnEdit\", pnlInteraction);\r\n\t\tbtnEdit.setPosition( new Vector3D( xPos, app.getHeight() - 2*btnEdit.getHeight() - 30));\r\n\t\tbtnEdit.addGestureListener( TapProcessor.class, new BtnEditListener());\r\n\t\t\r\n\t\t\r\n\t\t// BUTTON HIDE\r\n\t\t\r\n\t\tbtnHide = guifactory.createButton( \"Hide menu\", \"btnHide\", pnlPanel);\r\n\t\tbtnHide.setPosition( new Vector3D( xPos, app.getHeight() - btnHide.getHeight() - 20));\r\n\t\tbtnHide.addGestureListener( TapProcessor.class, new BtnHideListener());\r\n\t\t\r\n\t\t\r\n\t\t///// EDIT-ELEMENTS /////\r\n\r\n\t\tchkMovePlanar = guifactory.createCheckButton( \"Move planar\", \"chkMovePlanar\", pnlEdit);\r\n\t\tchkMovePlanar.setPosition(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\ttxtItemName.getPosition( TransformSpace.GLOBAL).getY() + txtItemName.getHeightXY( TransformSpace.GLOBAL)+ 20\t\r\n\t\t\t\t));\r\n\t\tchkMovePlanar.addGestureListener( TapProcessor.class, new ChkMovePlanarListener());\r\n\r\n\t\t\r\n\t\tchkMoveY = guifactory.createCheckButton( \"Move up/down\", \"chkMoveY\", pnlEdit);\r\n\t\tchkMoveY.setPosition( chkMovePlanar.getVectorNextToComponent( 10, false));\r\n\t\tchkMoveY.addGestureListener( TapProcessor.class, new ChkMoveYListener());\r\n\r\n\t\t\r\n\t\tchkRotate = guifactory.createCheckButton( \"Rotate\", \"chkRotate\", pnlEdit);\r\n\t\tchkRotate.setPosition( chkMoveY.getVectorNextToComponent( 10, false));\r\n\t\tchkRotate.addGestureListener( TapProcessor.class, new ChkRotateListener());\r\n\r\n\t\t\r\n\t\tchkScale = guifactory.createCheckButton( \"Scale\", \"chkScale\", pnlEdit);\r\n\t\tchkScale.setPosition( chkRotate.getVectorNextToComponent( 10, false));\r\n\t\tchkScale.addGestureListener( TapProcessor.class, new ChkScaleListener());\r\n\r\n\t\t\r\n\t\tbtnChangeVisualisation = guifactory.createButton( \"Change Style\", \"btnChangeVisualisation\", pnlEdit);\r\n\t\tbtnChangeVisualisation.setPosition( chkScale.getVectorNextToComponent( 10, false));\r\n\t\tbtnChangeVisualisation.addGestureListener( TapProcessor.class, new BtnChangeVisualisationListener());\r\n\t\t\r\n\t\t\r\n\t\tbtnSave = guifactory.createButton( \"Save\", \"btnSave\", pnlEdit);\r\n\t\tbtnSave.setPosition( btnEdit.getPosition());\r\n\t\tbtnSave.addGestureListener( TapProcessor.class, new BtnSaveListener());\r\n\t}",
"private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n scrollPane1.setViewportView(table);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonRegister = new JButton();\n buttonRegister.setText(\"Track\");\n panel1.add(buttonRegister, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonMenu = new JButton();\n buttonMenu.setText(\"Menu\");\n panel1.add(buttonMenu, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }",
"private void $$$setupUI$$$() {\r\n EmployerPanel = new JPanel();\r\n EmployerPanel.setLayout(new GridLayoutManager(7, 5, new Insets(10, 10, 10, 10), -1, -1));\r\n saveButton = new JButton();\r\n saveButton.setBackground(new Color(-13793741));\r\n saveButton.setForeground(new Color(-2631721));\r\n saveButton.setIcon(new ImageIcon(getClass().getResource(\"/com/sun/deploy/resources/image/installapp24-d.png\")));\r\n saveButton.setText(\"Save\");\r\n EmployerPanel.add(saveButton, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer1 = new Spacer();\r\n EmployerPanel.add(spacer1, new GridConstraints(6, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n final Spacer spacer2 = new Spacer();\r\n EmployerPanel.add(spacer2, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n cancelButton = new JButton();\r\n cancelButton.setBackground(new Color(-5621447));\r\n cancelButton.setForeground(new Color(-2631721));\r\n cancelButton.setIcon(new ImageIcon(getClass().getResource(\"/com/sun/deploy/resources/image/delete24-d.png\")));\r\n cancelButton.setText(\"Cancel\");\r\n EmployerPanel.add(cancelButton, new GridConstraints(6, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label1 = new JLabel();\r\n label1.setText(\"Name:\");\r\n EmployerPanel.add(label1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label2 = new JLabel();\r\n label2.setText(\"Last name:\");\r\n EmployerPanel.add(label2, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label3 = new JLabel();\r\n label3.setText(\"IC:\");\r\n EmployerPanel.add(label3, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label4 = new JLabel();\r\n label4.setText(\"Phone:\");\r\n EmployerPanel.add(label4, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n NametextField = new JTextField();\r\n EmployerPanel.add(NametextField, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n LNametextField = new JTextField();\r\n EmployerPanel.add(LNametextField, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n ICtextField = new JTextField();\r\n EmployerPanel.add(ICtextField, new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n PhonetextField = new JTextField();\r\n EmployerPanel.add(PhonetextField, new GridConstraints(4, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n final Spacer spacer3 = new Spacer();\r\n EmployerPanel.add(spacer3, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer4 = new Spacer();\r\n EmployerPanel.add(spacer4, new GridConstraints(6, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer5 = new Spacer();\r\n EmployerPanel.add(spacer5, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n }",
"private DisplayPanel(){\r\n\t\t\t\tControlActionListenter cal = new ControlActionListenter();\r\n\t\t\t\tsetLayout(new BorderLayout());\r\n\t\t\t\tfinal JButton btn1 = new JButton(\"First\");\r\n\t\t\t\tbtn1.setFocusable(false);\r\n \t \tbtn1.addActionListener(cal);\r\n \t\t\tfinal JButton btn2 = new JButton(\"Next\");\r\n \t\t\tbtn2.addActionListener(cal);\r\n \t\t\t\tfinal JButton btn3 = new JButton(\"Previous\");\r\n \t\t \tbtn3.addActionListener(cal);\r\n \t\t final JButton btn4 = new JButton(\"Last\");\r\n \t\tbtn4.addActionListener(cal);\r\n \t\tbtn2.setFocusable(false);\r\n \t\tbtn3.setFocusable(false);\r\n \t\tbtn4.setFocusable(false);\r\n \t\t \tJPanel controlButtons = new JPanel(new GridLayout(2,2,5,5));\r\n \t\t \tcontrolButtons.add(btn3);\r\n \t\t \tcontrolButtons.add(btn2);\r\n \t\t \tcontrolButtons.add(btn1);\r\n \t\tcontrolButtons.add(btn4);\r\n \t\tcontrolButtons.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\r\n \t\tadd(controlButtons, BorderLayout.PAGE_END);\r\n\t\t\t}",
"public void addPanelControls() {\n\t\tlist_sort = new JComboBox<>(new String[] { \"MSSV\", \"HoTen\", \"NTNS\" });\r\n\t\tbtn_sapxep = new JButton(\"Sap xep\");\r\n\t\tbtn_them = new JButton(\"Them\");\r\n\t\tbtn_xoa = new JButton(\"Xoa\");\r\n\t\tbtn_save = new JButton(\"Save\");\r\n\t\tbtn_load = new JButton(\"Load\");\r\n\r\n\t\tJPanel mControlPanel = new JPanel(new GridLayout(5, 1));\r\n\t\tmControlPanel.add(btn_them);\r\n\t\tmControlPanel.add(btn_xoa);\r\n\t\tJPanel sapxepPanel = new JPanel();\r\n\t\tsapxepPanel.add(list_sort);\r\n\t\tsapxepPanel.add(btn_sapxep);\r\n\t\tmControlPanel.add(sapxepPanel);\r\n\t\tmControlPanel.add(btn_save);\r\n\t\tmControlPanel.add(btn_load);\r\n\r\n\t\tmControlPanel.setPreferredSize(new Dimension(380, 200));\r\n\t\tmControlPanel.setBorder(new TitledBorder(\"Controls\"));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.weightx = 0.5;\r\n\t\tc.gridx = 1;\r\n\t\tc.gridy = 0;\r\n\t\tpanel.add(mControlPanel,c);\r\n\t}",
"private JPanel makeControlPanel() {\n\n final JPanel panel = new JPanel(new FlowLayout(3));\n final JButton refreshButton = new JButton(new ImageIcon(iconMaker(\"refreshREAL.png\")));\n refreshButton.setFocusPainted(false);\n refreshButton.addActionListener(this::refreshButtonClicked);\n refreshButton.setToolTipText(\"Refresh Item Price(s)\");\n //checkButton.setPreferredSize(new Dimension(25,25));\n JButton viewLink = new JButton(new ImageIcon(iconMaker(\"visitSite.png\")));\n viewLink.setToolTipText(\"Visit Item Website\");\n JButton deleteItem = new JButton(new ImageIcon(iconMaker(\"delete.png\")));\n deleteItem.setToolTipText(\"Remove Item\");\n JButton addItem = buttonMaker(\"additem.png\");\n addItem.setToolTipText(\"Add Item to Price Watcher\");\n JButton editItem = buttonMaker(\"edititem.png\");\n editItem.setToolTipText(\"Edit Item Details\");\n\n\n viewLink.setFocusPainted(false);\n deleteItem.setFocusPainted(false);\n\n viewLink.addActionListener(this::viewPageClicked);\n panel.add(refreshButton);\n panel.add(viewLink);\n panel.add(deleteItem);\n panel.add(addItem);\n panel.add(editItem);\n\n return panel;\n }",
"private void createButtonsPanel() {\r\n Composite buttonsPanel = new Composite(this, SWT.NONE);\r\n buttonsPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));\r\n buttonsPanel.setLayout(new GridLayout(4, true));\r\n\r\n getButtonFromAction(buttonsPanel, \"New\", new NewAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Save\", new SaveAction());\r\n getButtonFromAction(buttonsPanel, \"Delete\", new DeleteAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Cancel\", new CancelAction());\r\n }",
"public JButtonsPanel() {\r\n setBorder(BorderFactory.createEtchedBorder(Color.GREEN, new Color(148, 145, 140)));\r\n\r\n jOpen.setText(BTN_OPEN);\r\n jOpen.setToolTipText(MSG_OPEN);\r\n jOpen.setBounds(new Rectangle(BTN_LEFT, BTN_VSPACE, BTN_WIDTH, BTN_HEIGHT));\r\n add(jOpen);\r\n\r\n jCheckHealth.setText(BTN_CHECK_HEALTH);\r\n jCheckHealth.setToolTipText(MSG_CHECK_HEALTH);\r\n jCheckHealth.setBounds(new Rectangle(BTN_LEFT, (int) (jOpen.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jCheckHealth);\r\n\r\n jClose.setText(BTN_CLOSE);\r\n jClose.setToolTipText(MSG_CLOSE);\r\n jClose.setBounds(new Rectangle(BTN_LEFT, (int) (jCheckHealth.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jClose);\r\n\r\n jClaim.setText(BTN_CLAIM);\r\n jClaim.setToolTipText(MSG_CLAIM);\r\n jClaim.setBounds(new Rectangle(BTN_LEFT, (int) (jClose.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jClaim);\r\n\r\n jRelease.setText(BTN_RELEASE);\r\n jRelease.setToolTipText(MSG_RELEASE);\r\n jRelease.setBounds(new Rectangle(BTN_LEFT, (int) (jClaim.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jRelease);\r\n\r\n jDeviceEnable.setText(BTN_DEVICE_ENABLE);\r\n jDeviceEnable.setToolTipText(MSG_DEVICE_ENABLE);\r\n jDeviceEnable.setBounds(new Rectangle(BTN_LEFT, (int) (jRelease.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jDeviceEnable);\r\n\r\n jDeviceDisable.setText(BTN_DEVICE_DISABLE);\r\n jDeviceDisable.setToolTipText(MSG_DEVICE_DISABLE);\r\n jDeviceDisable.setBounds(new Rectangle(BTN_LEFT, (int) (jDeviceEnable.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jDeviceDisable);\r\n\r\n jClearData.setText(BTN_CLEAR_DATA);\r\n jClearData.setToolTipText(MSG_CLEAR_DATA);\r\n jClearData.setBounds(new Rectangle(BTN_LEFT, (int) (jDeviceDisable.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jClearData);\r\n\r\n jBeginEnrollCapture.setText(BTN_BEGIN_ENROLL_CAPTURE);\r\n jBeginEnrollCapture.setToolTipText(MSG_BEGIN_ENROLL_CAPTURE);\r\n jBeginEnrollCapture.setBounds(new Rectangle(BTN_LEFT, (int) (jClearData.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jBeginEnrollCapture);\r\n\r\n jEndCapture.setText(BTN_END_CAPTURE);\r\n jEndCapture.setToolTipText(MSG_END_CAPTURE);\r\n jEndCapture.setBounds(new Rectangle(BTN_LEFT, (int) (jBeginEnrollCapture.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jEndCapture);\r\n\r\n jBeginVerifyCapture.setText(BTN_BEGIN_VERIFY_CAPTURE);\r\n jBeginVerifyCapture.setToolTipText(MSG_BEGIN_VERIFY_CAPTURE);\r\n jBeginVerifyCapture.setBounds(new Rectangle(BTN_LEFT, (int) (jEndCapture.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jBeginVerifyCapture);\r\n\r\n jIdentifyMatch.setText(BTN_IDENTIFY_MATCH);\r\n jIdentifyMatch.setToolTipText(MSG_IDENTIFY_MATCH);\r\n jIdentifyMatch.setBounds(new Rectangle(BTN_LEFT, (int) (jBeginVerifyCapture.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jIdentifyMatch);\r\n\r\n jVerifyMatch.setText(BTN_VERIFY_MATCH);\r\n jVerifyMatch.setToolTipText(MSG_VERIFY_MATCH);\r\n jVerifyMatch.setBounds(new Rectangle(BTN_LEFT, (int) (jIdentifyMatch.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jVerifyMatch);\r\n\r\n jIdentify.setText(BTN_IDENTIFY);\r\n jIdentify.setToolTipText(MSG_IDENTIFY);\r\n jIdentify.setBounds(new Rectangle(BTN_LEFT, (int) (jVerifyMatch.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jIdentify);\r\n\r\n jVerify.setText(BTN_VERIFY);\r\n jVerify.setToolTipText(MSG_VERIFY);\r\n jVerify.setBounds(new Rectangle(BTN_LEFT, (int) (jIdentify.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jVerify);\r\n }",
"private void createContents()\n\t{\n\t\tGridLayout clayout = new GridLayout();\n\t\tclayout.marginHeight = 2;\n\t\tclayout.marginWidth = 2;\n\t\tclayout.marginTop = 2;\n\t\tclayout.marginBottom = 2;\n\t\tclayout.marginLeft = 2;\n\t\tclayout.marginRight = 2;\n\t\tclayout.numColumns = 1;\n\t\tsetLayout(clayout);\n\t\t\n\t\t\n\t\tm_executorsTable = new ExecutorsTable(this);\n\t\tGridData tableLayoutData = new GridData(GridData.FILL_BOTH);\n\t\ttableLayoutData.grabExcessHorizontalSpace = true;\n\t\ttableLayoutData.widthHint = 700;\n\t\ttableLayoutData.heightHint = 200;\n\t\tm_executorsTable.getGrid().setLayoutData(tableLayoutData);\n\t\tm_executorsTable.addDoubleClickListener(this);\n\t\tm_executorsTable.addSelectionChangedListener( new ISelectionChangedListener(){\n\n\t\t\t@Override\n public void selectionChanged(SelectionChangedEvent arg0)\n {\n\t\t\t\tupdateButtons();\n }\n\t\t\t\n\t\t});\n\n\t\tComposite buttonBar = new Composite(this, SWT.BORDER);\n\t\tbuttonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\tbuttonBar.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\t\t\n\t\tm_btnTakeControl = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnTakeControl.setText(BTN_TAKE_CONTROL);\n\t\tm_btnTakeControl.addSelectionListener(this);\n\t\t\n\t\tm_btnReleaseControl = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnReleaseControl.setText(BTN_RELEASE_CONTROL);\n\t\tm_btnReleaseControl.addSelectionListener(this);\n\t\t\n\t\tm_btnBackground = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnBackground.setText(BTN_BACKGROUND);\n\t\tm_btnBackground.addSelectionListener(this);\n\n\t\tm_btnStartMonitor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnStartMonitor.setText(BTN_START_MONITOR);\n\t\tm_btnStartMonitor.addSelectionListener(this);\n\t\t\n\t\tm_btnStopMonitor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnStopMonitor.setText(BTN_STOP_MONITOR);\n\t\tm_btnStopMonitor.addSelectionListener(this);\n\t\t\n\t\tm_btnStopExecutor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnStopExecutor.setText(BTN_STOP_EXECUTOR);\n\t\tm_btnStopExecutor.addSelectionListener(this);\n\n\t\tm_btnKillExecutor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnKillExecutor.setText(BTN_KILL_EXECUTOR);\n\t\tm_btnKillExecutor.addSelectionListener(this);\n\t\t\n\t\tm_btnRefresh = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnRefresh.setText(BTN_REFRESH);\n\t\tm_btnRefresh.addSelectionListener(this);\n\t\t\n\t\tapplyFonts();\n\t\tdisableButtons();\n\t}",
"private void populateControlPanel() {\n \n ControlListener control = new ControlListener();\n startStopButton = new JButton(\"Start/Stop\");\n startStopButton.addActionListener(control);\n \n saveButton = new JButton(\"Save\");\n saveButton.addActionListener(control);\n \n loadButton = new JButton(\"Load\");\n loadButton.addActionListener(control);\n \n resetButton = new JButton(\"Reset\");\n resetButton.addActionListener(control);\n \n add(startStopButton);\n add(saveButton);\n add(loadButton);\n add(resetButton);\n }",
"@Override\n public void setupPanel()\n {\n\n }",
"private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(3, 1, new Insets(10, 10, 10, 10), -1, -1));\n btnPanel = new JPanel();\n btnPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(btnPanel, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n btnPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n btnPanel2 = new JPanel();\n btnPanel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n btnPanel.add(btnPanel2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n btnPanel2.add(buttonOK, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPanel = new JPanel();\n contentPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(contentPanel, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n content = new JTextArea();\n content.setBackground(new Color(-1118482));\n content.setEditable(false);\n contentPanel.add(content, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n title = new JLabel();\n Font titleFont = this.$$$getFont$$$(null, -1, 20, title.getFont());\n if (titleFont != null) title.setFont(titleFont);\n title.setText(\"Invalid Number of Players\");\n contentPane.add(title, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"public GUI(){\n\t\tsuper(\"Simori\");\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tthis.getContentPane().setBackground(new Color(215,215,215));\n\t\tthis.setLayout(null);\n\t\t\n\t\t\n\t\tJPanel central = new JPanel();\n\t\tcentral.setSize(690,690);\n\t\tcentral.setLayout(new GridLayout(16,16));\n\t\tcentral.setBackground(new Color(215,215,215));\n\t\t\t\t\n\t\tActionListener modeListener = new ChangeModeListener();\n\t\tActionListener gridListener = new GridListener();\n\n\t\t\n\t\tfor(int i = 0; i < display.length; i++){\n\t\t\tfor(int j = 0; j < display[i].length; j++){\n\t\t\t\tJToggleButton button = new JToggleButton();\n\t\t\t\t\t\t\t\t\n\t\t\t\tbutton.setOpaque(true);\n\t\t\t\tbutton.setContentAreaFilled(true);\n\t\t\t\tbutton.setBorderPainted(false);\n\t\t\t\tbutton.setSelectedIcon(SCANNED);\n\t\t\t\tbutton.setIcon(DEFAULT);\n\t\t\t\t\n\t\t\t\tdisplay[i][j] = button;\t\t\t\t\t\t\t\n\t\t\t\tbutton.addActionListener(gridListener);\t\t\t\t\t\t\n\t\t\t\tcentral.add(button);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<36;i++){\n\t\t\tkeyboardIconArray[i] = new ImageIcon(\"imgs//\"+keyboardArray[i]+\".jpg\");\n\t\t\tkeyboardSelectedArray[i] = new ImageIcon(\"imgs//\"+keyboardArray[i]+\"s.jpg\");\n\t\t}\n\t\tthis.add(central);\n\t\tcentral.setBounds(110, 70, 690, 690);\n\t\t\n\t\tChangeLayer.Layers = new Layer[16];\n\t\tfor(int i = 0; i < ChangeLayer.Layers.length; i++){\n\t\t\tChangeLayer.Layers[i] = new Layer();\n\t\t}\n\n\t\t\n\t\tJToggleButton ON = new JToggleButton();\n\t\tON.setToolTipText(\"ON\");;\n\t\tmenuButtons[0] = ON;\n\t\t\n\t\tJToggleButton L1 = new JToggleButton();\n\t\tL1.setToolTipText(\"L1\");\n\t\tmenuButtons[1] = L1;\n\t\tJToggleButton L2 = new JToggleButton();\n\t\tL2.setToolTipText(\"L2\");\n\t\tmenuButtons[2] = L2;\n\t\tJToggleButton L3 = new JToggleButton();\n\t\tL3.setToolTipText(\"L3\");\n\t\tmenuButtons[3] = L3;\n\t\tJToggleButton L4 = new JToggleButton();\n\t\tL4.setToolTipText(\"L4\");\n\t\tmenuButtons[4] = L4;\n\t\t\n\t\tJToggleButton R1 = new JToggleButton();\n\t\tR1.setToolTipText(\"R1\");\n\t\tmenuButtons[5] = R1;\n\t\tJToggleButton R2 = new JToggleButton();\n\t\tR2.setToolTipText(\"R2\");\n\t\tmenuButtons[6] = R2;\n\t\tJToggleButton R3 = new JToggleButton();\n\t\tR3.setToolTipText(\"R3\");\n\t\tmenuButtons[7] = R3;\n\t\tJToggleButton R4 = new JToggleButton();\n\t\tR4.setToolTipText(\"R4\");\n\t\tmenuButtons[8] = R4;\n\t\t\n\t\tJToggleButton OK = new JToggleButton();\n\t\tOK.setToolTipText(\"OK\");\n\t\tmenuButtons[9] = OK;\n\t\t\t\t\t\n\t\t\t\t\n\t\tthis.add(ON);\n\t\tON.setBounds(400, 5, 60, 60);\n\t\tON.setIcon(new ImageIcon(\"imgs//ON.jpg\"));\n\t\tON.setSelectedIcon(new ImageIcon(\"imgs//ONs.jpg\"));\n\t\tON.setBorderPainted(false);\n\t\tON.addActionListener(modeListener);\n\t\t\n\t\tthis.add(L1);\n\t\tL1.setBounds(20, 100, 70, 70);\n\t\tL1.setIcon(new ImageIcon(\"imgs//L1.jpg\"));\n\t\tL1.setSelectedIcon(new ImageIcon(\"imgs//L1s.jpg\"));\n\t\tL1.setBorderPainted(false);\n\t\tL1.addActionListener(modeListener);\n\t\tthis.add(L2);\n\t\tL2.setBounds(20, 250, 70, 70);\n\t\tL2.setIcon(new ImageIcon(\"imgs//L2.jpg\"));\n\t\tL2.setSelectedIcon(new ImageIcon(\"imgs//L2s.jpg\"));\n\t\tL2.setBorderPainted(false);\n\t\tL2.addActionListener(modeListener);\n\t\tthis.add(L3);\n\t\tL3.setBounds(20, 400, 70, 70);\n\t\tL3.setIcon(new ImageIcon(\"imgs//L3.jpg\"));\n\t\tL3.setSelectedIcon(new ImageIcon(\"imgs//L3s.jpg\"));\n\t\tL3.setBorderPainted(false);\n\t\tL3.addActionListener(modeListener);\n\t\tthis.add(L4);\n\t\tL4.setBounds(20, 550, 70, 70);\n\t\tL4.setIcon(new ImageIcon(\"imgs//L4.jpg\"));\n\t\tL4.setSelectedIcon(new ImageIcon(\"imgs//L4s.jpg\"));\n\t\tL4.setBorderPainted(false);\n\t\tL4.addActionListener(modeListener);\n\t\t\n\t\tthis.add(R1);\n\t\tR1.setBounds(820, 100, 70, 70);\n\t\tR1.setIcon(new ImageIcon(\"imgs//R1.jpg\"));\n\t\tR1.setSelectedIcon(new ImageIcon(\"imgs//R1s.jpg\"));\n\t\tR1.setBorderPainted(false);\n\t\tR1.addActionListener(modeListener);\n\t\tthis.add(R2);\n\t\tR2.setBounds(820, 250, 70, 70);\n\t\tR2.setIcon(new ImageIcon(\"imgs//R2.jpg\"));\n\t\tR2.setSelectedIcon(new ImageIcon(\"imgs//R2s.jpg\"));\n\t\tR2.setBorderPainted(false);\n\t\tR2.addActionListener(modeListener);\n\t\tthis.add(R3);\n\t\tR3.setBounds(820, 400, 70, 70);\n\t\tR3.setIcon(new ImageIcon(\"imgs//R3.jpg\"));\n\t\tR3.setSelectedIcon(new ImageIcon(\"imgs//R3s.jpg\"));\n\t\tR3.setBorderPainted(false);\n\t\tR3.addActionListener(modeListener);\n\t\tthis.add(R4);\n\t\tR4.setBounds(820, 550, 70, 70);\n\t\tR4.setIcon(new ImageIcon(\"imgs//R4.jpg\"));\n\t\tR4.setSelectedIcon(new ImageIcon(\"imgs//R4s.jpg\"));\n\t\tR4.setBorderPainted(false);\n\t\tR4.addActionListener(modeListener);\n\t\t\n\t\tthis.add(OK);\n\t\tOK.setBounds(550, 770, 70, 70);\n\t\tOK.setIcon(new ImageIcon(\"imgs//OK.jpg\"));\n\t\tOK.setSelectedIcon(new ImageIcon(\"imgs//OKs.jpg\"));\n\t\tOK.setBorderPainted(false);\n\t\tOK.addActionListener(modeListener);\n\t\t\n\t\tthis.add(textField);\n\t\ttextField.setEditable(false);\n\t\ttextField.setText(\"LCD\");\n\t\ttextField.setBounds(120, 770, 280, 70);\n\t\t\n\n\t\t//sets the initial behaviour\n\t\tOnOff.disableMenuButtons();\n\t\tOnOff.disableGridButtons();\n\t\t\n\t\tthis.setSize(915, 890);\n\t\tthis.setResizable(false);\n\t\tthis.setVisible(true);\n\t\t\n\t}",
"private void makeButtonPanel()\n {\n \n this.buttonPanel.setLayout(new GridLayout(10, 2, 30, 10));\n \n \n this.buttonPanel.add(this.fLabel);\n this.fName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.fName);\n\n this.buttonPanel.add(this.lLabel);\n this.lName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.lName);\n\n this.buttonPanel.add(this.idLabel);\n this.iD.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.iD);\n\n this.buttonPanel.add(this.courseLabel);\n this.course.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.course);\n\n this.buttonPanel.add(this.instructorLabel);\n this.instructor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.instructor);\n\n this.buttonPanel.add(this.tutorLabel);\n this.tutor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.tutor);\n \n this.buttonPanel.add(this.commentsLable);\n this.comments.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.comments);\n //Removed for appointment tabel\n //this.buttonPanel.add(this.appointmentLable);\n //this.buttonPanel.add(this.appointment);\n this.buttonPanel.add(this.sessionLenLabel);\n this.sessionLength.setColumns(COL_WIDTH);\n this.sessionLength.setText(\"30\");\n this.buttonPanel.add(this.sessionLength);\n\n this.ADD_BUTTON.addActionListener(new AddButtonListener());\n //buttonPanel.add(ADD_BUTTON);\n \n \n this.addSessionPlaceHolder.add(this.buttonPanel);\n }",
"private void setUpPanel() {\n\n this.add(nameLabel);\n this.add(showMetadataButton);\n this.add(compressFilesButton);\n this.add(decompressFilesButton);\n this.add(compressionResultLabel);\n this.add(messageShorteningButton);\n this.add(messageShorteningResultLabel);\n }",
"private void $$$setupUI$$$()\n {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(6, 1, new Insets(20, 20, 20, 20), -1, -1));\n panel.setAutoscrolls(true);\n buttonSettings = new JButton();\n buttonSettings.setEnabled(true);\n buttonSettings.setText(\"Open Application Settings\");\n panel.add(buttonSettings,\n new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonStartGit = new JButton();\n buttonStartGit.setEnabled(true);\n buttonStartGit.setText(\"Start Git Management\");\n panel.add(buttonStartGit,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n null, new Dimension(500, 500), null, 0, false));\n textPaneConsole = new JTextPane();\n textPaneConsole.setEditable(false);\n scrollPane1.setViewportView(textPaneConsole);\n buttonOpenBenchmarkDialog = new JButton();\n buttonOpenBenchmarkDialog.setText(\"Open YCSB Benchmark Dialog\");\n panel.add(buttonOpenBenchmarkDialog,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonShowGitSettings = new JButton();\n buttonShowGitSettings.setEnabled(true);\n buttonShowGitSettings.setText(\"Open Git Management\");\n panel.add(buttonShowGitSettings,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Console Output\");\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null,\n null, null, 0, false));\n }",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(5, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n servicesButton = new JButton();\n servicesButton.setText(\"Services management\");\n panel1.add(servicesButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n surveysManagementButton = new JButton();\n surveysManagementButton.setText(\"Surveys management\");\n panel1.add(surveysManagementButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n connectingAndResultsButton = new JButton();\n connectingAndResultsButton.setText(\"Conecting surveys to services\");\n panel1.add(connectingAndResultsButton, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Choose option below\");\n panel1.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n results = new JButton();\n results.setText(\"Browse the results\");\n panel1.add(results, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"public ControlPanel(TileGrid grid){\n\t\tsetSize(WIDTH, HEIGHT);\n\t\t\n\t\t/*itrLabel = new JLabel(\"Number of iterations to run:\");\n\t\tadd(itrLabel);\n\t\titerations = new JTextField(\"50\", 5);\n\t\tadd(iterations);*/\n\t\t\n\t\tstart = new JButton(\"Start game\");\n\t\tstart.addActionListener(this);\n\t\tadd(start);\n\t\treset = new JButton(\"Reset\");\n\t\treset.addActionListener(this);\n\t\tadd(reset);\n\t\tresume = new JButton(\"Resume\");\n\t\tresume.addActionListener(this);\n\t\tadd(resume);\n\t\tstop = new JButton(\"Stop\");\n\t\tstop.addActionListener(this);\n\t\tadd(stop);\n\t\t\n\t\tpresetLabel = new JLabel(\"Preset configurations:\");\n\t\tadd(presetLabel);\n\t\tString[] presetList = {\"Select a preset\", \"Glider\", \"Small Explosion\", \"Gosper Glider Gun\"};\n\t\tpresets = new JComboBox<String>(presetList);\n\t\tpresets.addItemListener(this);\n\t\tadd(presets);\n\t\t\n\t\tthis.grid = grid;\n\t}",
"public void mainGUIComponents() {\n JLabel label = new JLabel(\"The Brant-Bargain Store\"); // creates header for main view\n label.setFont(new Font(\"Courier\", Font.BOLD, 25)); // sets the font of the header\n \n titlePanel = new JPanel(new GridLayout(1, 2)); // rows, columns\n Icon cartIcon = new ImageIcon(getClass().getResource(\"shoppingCartIconSmall.png\"));\n JButton cartButton = new JButton(cartIcon);\n cartButton.setToolTipText(\"Opens cart !\"); // when the cart button is hovered over, \"Opens cart !\" messge pops up to user indicating what that button does\n cartButton.addActionListener(event -> controller.cartButtonPressed());\n\n\n // ADDING TO PANELS\n titlePanel.add(label);\n titlePanel.add(cartButton);\n centerPanel = new JPanel(new GridLayout(2, 3));\n animalPanel1 = new JPanel(new GridLayout(3, 1));\n animalPanel2 = new JPanel(new GridLayout(3, 1));\n animalPanel3 = new JPanel(new GridLayout(3, 1));\n animalPanel4 = new JPanel(new GridLayout(3, 1));\n animalPanel5 = new JPanel(new GridLayout(3, 1));\n animalPanel6 = new JPanel(new GridLayout(3, 1));\n \n Icon lionCat = new ImageIcon(getClass().getResource(\"SuperSaiyanLionCat.png\"));\n JTextField name1 = new JTextField(25);\n name1.setText(\"Randy\");\n name1.setEditable(false);\n JTextField price1 = new JTextField(25);\n price1.setText(\"$5,000.99\");\n price1.setEditable(false);\n JButton lionCatButton = new JButton(lionCat);\n lionCatButton.addActionListener(event -> controller.addToCart(new Cat(5000.99, \"Randy\", 100, 850.00, 10.00, 01)));\n lionCatButton.addActionListener(event -> JOptionPane.showMessageDialog(new JFrame(), \"Randy the Lion Cat Added to Cart !!!\"));\n animalPanel1.add(lionCatButton);\n animalPanel1.add(name1);\n animalPanel1.add(price1);\n\n Icon godzillaDragon = new ImageIcon(getClass().getResource(\"godzillaDragon.png\"));\n JTextField name2 = new JTextField(25);\n name2.setText(\"Oscar\");\n name2.setEditable(false);\n JTextField price2 = new JTextField(25);\n price2.setText(\"$3,300,000.75\");\n price2.setEditable(false);\n JButton dragonButton = new JButton(godzillaDragon);\n dragonButton.addActionListener(event -> controller.addToCart(new Dragon(3300000.75, \"Oscar\", 1000, 15000.00, 500.00, 02)));\n dragonButton.addActionListener(event -> JOptionPane.showMessageDialog(new JFrame(), \"Oscar the Dragon Added to Cart !!!\"));\n animalPanel2.add(dragonButton);\n animalPanel2.add(name2);\n animalPanel2.add(price2);\n\n Icon bird = new ImageIcon(getClass().getResource(\"ThisisdefinitelyabirdNOTabat.png\"));\n JTextField name3 = new JTextField(25);\n name3.setText(\"Bruce\");\n name3.setEditable(false);\n JTextField price3 = new JTextField(25);\n price3.setText(\"$5,500,000,000.50\");\n price3.setEditable(false);\n JButton birdButton = new JButton(bird);\n birdButton.addActionListener(event -> controller.addToCart(new Bird(5500000000.50, \"Bruce\", 21, 220.00, 6.10, 03)));\n birdButton.addActionListener(event -> JOptionPane.showMessageDialog(new JFrame(), \"Bruce Wayne Added to Cart !!!\"));\n animalPanel3.add(birdButton);\n animalPanel3.add(name3);\n animalPanel3.add(price3);\n\n Icon unicorns = new ImageIcon(getClass().getResource(\"unicornCats.png\"));\n JTextField name4 = new JTextField(25);\n name4.setText(\"Beth\");\n name4.setEditable(false);\n JTextField price4 = new JTextField(25);\n price4.setText(\"$7,557,822.23\");\n price4.setEditable(false);\n JButton unicornButton = new JButton(unicorns);\n unicornButton.addActionListener(event -> controller.addToCart(new Unicorn(7557822.23, \"Beth\", 900, 600.00, 6.00, 04)));\n unicornButton.addActionListener(event -> JOptionPane.showMessageDialog(new JFrame(), \"Beth the Unicorn Added to Cart !!!\"));\n animalPanel4.add(unicornButton);\n animalPanel4.add(name4);\n animalPanel4.add(price4);\n \n Icon dog = new ImageIcon(getClass().getResource(\"NiaDogO.png\"));\n JTextField name5 = new JTextField(25);\n name5.setText(\"Alfalfa\");\n name5.setEditable(false);\n JTextField price5 = new JTextField(25);\n price5.setText(\"$22.19\");\n price5.setEditable(false);\n JButton dogButton = new JButton(dog);\n dogButton.addActionListener(event -> controller.addToCart(new Dog(22.19, \"Alfalfa\", 1, 20, 1.0, 05)));\n dogButton.addActionListener(event -> JOptionPane.showMessageDialog(new JFrame(), \"Alfalfa the good Doggo Added to Cart !!!\"));\n animalPanel5.add(dogButton);\n animalPanel5.add(name5);\n animalPanel5.add(price5);\n \n Icon russell = new ImageIcon(getClass().getResource(\"russell.png\"));\n JTextField name6 = new JTextField(25);\n name6.setText(\"Russell\");\n name6.setEditable(false);\n JTextField price6 = new JTextField(25);\n price6.setText(\"$999,999.99\");\n price6.setEditable(false);\n JButton russellButton = new JButton(russell);\n russellButton.addActionListener(event -> controller.addToCart(new Dragon(999999.99, \"Russell\", 1000, 15000.00, 500.00, 06)));\n russellButton.addActionListener(event -> JOptionPane.showMessageDialog(new JFrame(), \"CAUTION: A WILD RUSSEL HAS BEEN ADDED TO YOUR CART !!!\"));\n animalPanel6.add(russellButton);\n animalPanel6.add(name6);\n animalPanel6.add(price6);\n \n centerPanel.add(animalPanel1);\n centerPanel.add(animalPanel2);\n centerPanel.add(animalPanel3);\n centerPanel.add(animalPanel4);\n centerPanel.add(animalPanel5);\n centerPanel.add(animalPanel6);\n\n // ADDING TO MAIN GUI\n this.setTitle(\"Home Screen\"); // title of MainGUI \"Home Screen\" is a placeholder 'this' refers to MainGUI JFrame\n this.setSize(1100, 800); //width,height of MainGUI frame, size is placeholder\n this.setLocationRelativeTo(null); // centers the panel on the screen\n this.setContentPane(new JPanel(new BorderLayout())); // sets main pane to be a border layout\n this.getContentPane().add(centerPanel, BorderLayout.CENTER);\n this.getContentPane().add(titlePanel, BorderLayout.NORTH); // title panel added to top of JFrame\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //when 'x' is clicked on window, program terminates\n\n }",
"public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }",
"private void createOperationsPanel() {\n\t\toperationsPanel = new JPanel(new GridLayout(5, 1));\n\n\t\tspanningTreeButton = new JButton(\"Árvore de cobertura\");\n\t\tspanningTreeButton.addActionListener(new SpanningTreeHandler());\n\n\t\tblockingStatesButton = new JButton(\"Estados bloqueantes\");\n\t\tblockingStatesButton.addActionListener(new BlockingStatesHandler());\n\n\t\tnonLimitedStatesButton = new JButton(\"Estados não-limitados\");\n\t\tnonLimitedStatesButton.addActionListener(new NonLimitedStatesHandler());\n\n\t\tnetworkConservationButton = new JButton(\"Conservação da rede\");\n\t\tnetworkConservationButton.addActionListener(new NetworkConservationHandler());\n\n\t\treachabelStateButton = new JButton(\"Estado alcançável\");\n\t\treachabelStateButton.addActionListener(new ReachableStateHandler());\n\n\t\toperationsPanel.add(spanningTreeButton);\n\t\toperationsPanel.add(blockingStatesButton);\n\t\toperationsPanel.add(nonLimitedStatesButton);\n\t\toperationsPanel.add(networkConservationButton);\n\t\toperationsPanel.add(reachabelStateButton);\n\n\t\tthis.add(operationsPanel, BorderLayout.WEST);\n\t}",
"private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, new Dimension(100, 20), new Dimension(100, 20), new Dimension(100, 20), 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonClose = new JButton();\n buttonClose.setText(\"Close\");\n panel2.add(buttonClose, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n messageLabel = new JLabel();\n messageLabel.setText(\"\");\n panel3.add(messageLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tqueryButton = new JButton(\"query\");\n\t\tthis.add(queryButton);\n\t\tthis.add(displayPane);\n\t\tdisplayArea = new JTextArea(10,30);\n\t\tadd(displayArea);\n\t\t\n\t\t\n\t}",
"private void $$$setupUI$$$() {\n myContentPanel = new JPanel();\n myContentPanel.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));\n myContentPanel.add(panel1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n myAcceptYoursButton = new JButton();\n myAcceptYoursButton.setEnabled(false);\n myAcceptYoursButton.setText(\"Accept Yours\");\n myAcceptYoursButton.setMnemonic('Y');\n myAcceptYoursButton.setDisplayedMnemonicIndex(7);\n panel1.add(myAcceptYoursButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n myAcceptTheirsButton = new JButton();\n myAcceptTheirsButton.setEnabled(false);\n myAcceptTheirsButton.setText(\"Accept Theirs\");\n myAcceptTheirsButton.setMnemonic('T');\n myAcceptTheirsButton.setDisplayedMnemonicIndex(7);\n panel1.add(myAcceptTheirsButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myMergeButton = new JButton();\n myMergeButton.setEnabled(false);\n myMergeButton.setText(\"Merge\");\n myMergeButton.setMnemonic('M');\n myMergeButton.setDisplayedMnemonicIndex(0);\n panel1.add(myMergeButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JBScrollPane jBScrollPane1 = new JBScrollPane();\n myContentPanel.add(jBScrollPane1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n myItemsTable = new JBTable();\n myItemsTable.putClientProperty(\"Table.isFileList\", Boolean.FALSE);\n jBScrollPane1.setViewportView(myItemsTable);\n }",
"private void initializePanels() {\n queueInfoPanel.setBackground(new Color(236, 125, 51));\n queueButtonsPanel.setBackground(new Color(93, 118, 161));\n createLabelForPanel(queueInfoPanel);\n createButtonsForPanel(queueButtonsPanel);\n }",
"private void $$$setupUI$$$() {\n rootPanel = new JPanel();\n rootPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(11, 3, new Insets(0, 0, 0, 0), -1, -1));\n bKillSession = new JButton();\n bKillSession.setText(\"Убить сессии\");\n rootPanel.add(bKillSession, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bGetAll = new JButton();\n bGetAll.setText(\"Получить график\");\n rootPanel.add(bGetAll, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bStartBS = new JButton();\n bStartBS.setText(\"Старт БС\");\n rootPanel.add(bStartBS, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bSetFreq = new JButton();\n bSetFreq.setText(\"Установить частоту\");\n rootPanel.add(bSetFreq, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n tfFreq = new JTextField();\n rootPanel.add(tfFreq, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n cbDefaultBS = new JCheckBox();\n cbDefaultBS.setSelected(true);\n cbDefaultBS.setText(\"Использовать БС из конфига\");\n rootPanel.add(cbDefaultBS, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n rootPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(7, 2, 4, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n cbListMethods = new JComboBox();\n rootPanel.add(cbListMethods, new com.intellij.uiDesigner.core.GridConstraints(5, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Запускаемый метод:\");\n rootPanel.add(label1, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n rootPanel.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 4, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n lblParams = new JLabel();\n lblParams.setText(\"Label\");\n rootPanel.add(lblParams, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n rootPanel.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n bPause = new JButton();\n bPause.setText(\"Пауза\");\n panel1.add(bPause, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bStart = new JButton();\n bStart.setText(\"Старт\");\n panel1.add(bStart, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JSeparator separator1 = new JSeparator();\n rootPanel.add(separator1, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }",
"public static void MainMenuComponents(){\n\t\tInterface.menu = new JPanel(new GridBagLayout()) {\n\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\tpublic void paintComponent(Graphics g) {\n\n\t\t\t\tg.drawImage(Interface.img, 0, 0, null);\n\t\t\t}\n\t\t};\n\t\tInterface.single.setPreferredSize(Interface.dim);\n\t\tInterface.single.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.single.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.single.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.single.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.multi.setPreferredSize(Interface.dim);\n\t\tInterface.multi.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.multi.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.multi.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.multi.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.options.setPreferredSize(Interface.dim);\n\t\tInterface.options.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.options.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.options.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.options.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.exit.setPreferredSize(Interface.dim);\n\t\tInterface.exit.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.exit.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.exit.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.exit.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.game.setFocusable(true);\n\t\tInterface.menu.setFocusable(true);\n\t\t\n\t\t\n\t\tInterface.backtosingle.setPreferredSize(Interface.dim);\n\t\tInterface.backtosingle.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtosingle.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtosingle.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtosingle.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtomulti.setPreferredSize(Interface.dim);\n\t\tInterface.backtomulti.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtomulti.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtomulti.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtomulti.setForeground(Color.white);\n\t}",
"public void addPanelActionListeners() {\n\n iconBase = new IconFactory();\n\n JButton[] iconsArray = LeftPanel.getIconsArray();\n for (JButton button : iconsArray) {\n button.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n super.mouseClicked(e);\n selectedIconText = button.getText();\n }\n });\n\n button.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseReleased(MouseEvent e) {\n super.mouseReleased(e);\n int tabIndex = jTabbedPane.getSelectedIndex();\n WorkingPanel tab = (WorkingPanel) jTabbedPane.getComponent(tabIndex);\n if (tab.getMousePosition() != null) {\n addIconToTab(tab, button.getText());\n tab.repaint();\n }\n\n }\n });\n\n button.addMouseMotionListener(new MouseAdapter() {\n @Override\n public void mouseDragged(MouseEvent e) {\n super.mouseDragged(e);\n selectedIconText = button.getText();\n\n int tabIndex = jTabbedPane.getSelectedIndex();\n WorkingPanel tab = (WorkingPanel) jTabbedPane.getComponent(tabIndex);\n\n icon = iconBase.getIconObject(button.getText(), tab);\n if (icon != null) {\n icon.draw(getGraphics(), (int) (MouseInfo.getPointerInfo().getLocation().getX() - button.getWidth() / 3),\n (int) (MouseInfo.getPointerInfo().getLocation().getY() - button.getHeight() / 3));\n }\n repaint();\n }\n });\n }\n }",
"private void createUI() throws FactoryException {\n assert theGame != null;\n assert ghostController != null;\n\n buttonPanel = new ButtonPanel(this);\n buttonPanel.initialize();\n\n pi = new PacmanInteraction(this, theGame);\n pi.addController(ghostController);\n buttonPanel.setListener(pi);\n this.addKeyListener(new PacmanKeyListener(pi));\n\n boardView = createBoardView();\n animator = new Animator(boardView);\n pi.addController(animator);\n\n points = new PointsPanel();\n points.initialize(theGame.getPointManager());\n theGame.attach(points);\n\n JPanel mainGrid = new JPanel();\n mainGrid.setLayout(new BorderLayout());\n mainGrid.setName(\"jpacman.topdown\");\n mainGrid.add(points, BorderLayout.NORTH);\n mainGrid.add(boardView, BorderLayout.CENTER);\n mainGrid.add(buttonPanel, BorderLayout.SOUTH);\n\n getContentPane().add(mainGrid);\n\n int width = Math.max(boardView.windowWidth(), buttonPanel.getWidth());\n int height = boardView.windowHeight() + buttonPanel.getHeight();\n setSize(width, height);\n setGridSize();\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n setName(\"jpacman.main\");\n setTitle(\"JPacman\");\n }",
"private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 2, new Insets(10, 10, 10, 10), -1, -1));\n contentPane.setBackground(new Color(-16316665));\n contentPane.setMinimumSize(new Dimension(450, 500));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 5, new Insets(0, 0, 0, 0), 0, 0));\n panel1.setAlignmentY(0.0f);\n panel1.setAutoscrolls(true);\n panel1.setBackground(new Color(-16316665));\n contentPane.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 4, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_NORTH, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n stopButton = new JButton();\n stopButton.setBackground(new Color(-16316665));\n stopButton.setForeground(new Color(-1041));\n stopButton.setText(\"Stop\");\n panel1.add(stopButton, new com.intellij.uiDesigner.core.GridConstraints(0, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n pauseButton = new JButton();\n pauseButton.setBackground(new Color(-16316665));\n pauseButton.setForeground(new Color(-1041));\n pauseButton.setText(\"Pause\");\n panel1.add(pauseButton, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n startButton = new JButton();\n startButton.setBackground(new Color(-16316665));\n startButton.setForeground(new Color(-1041));\n startButton.setText(\"Start\");\n panel1.add(startButton, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n textArea1 = new JTextArea();\n textArea1.setBackground(new Color(-16316665));\n textArea1.setDisabledTextColor(new Color(-1041));\n textArea1.setEditable(false);\n textArea1.setForeground(new Color(-1041));\n panel1.add(textArea1, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n board = new JPanel();\n board.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n board.setBackground(new Color(-16316665));\n contentPane.add(board, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n board.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(new Color(-1041)), null, TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, new Color(-16777216)));\n textArea2 = new JTextArea();\n textArea2.setBackground(new Color(-16316665));\n textArea2.setFont(new Font(textArea2.getFont().getName(), textArea2.getFont().getStyle(), 22));\n board.add(textArea2, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n }",
"public RepalyPanel() {\n\t\t\ttry {\n//\t\t\t\tthis.addMouseListener(new MouseAdapter() {\n//\t\t\t\t\t@Override\n//\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n//\t\t\t\t\t\tSystem.out.println(e.getX() + \" \" + e.getY());\n//\t\t\t\t\t}\n//\t\t\t\t});\n\n\t\t\t\tsetLayout(null);\n\n\t\t\t\t// 退出按键\n\t\t\t\tjbRestart = MyButton.makeButton(restart, restart_down,\n\t\t\t\t\t\trestart_hover);\n\t\t\t\tadd(jbRestart);\n\t\t\t\tjbRestart.setBounds(540, 355, 140, 56);\n\t\t\t\tjbRestart.addActionListener(this);\n\n\t\t\t\t// 确认退出按键\n\t\t\t\tjbContinue = MyButton.makeButton(continue_pic, continue_down,\n\t\t\t\t\t\tcontinue_hover);\n\t\t\t\tadd(jbContinue);\n\t\t\t\tjbContinue.setBounds(345, 355, 140, 56);\n\t\t\t\tjbContinue.addActionListener(this);\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(panel2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel2.add(buttonCancel, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n pan1 = new JPanel();\n pan1.setLayout(new GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(pan1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Название номера\");\n pan1.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Дата регистрации\");\n pan1.add(label2, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Дата истечения\");\n pan1.add(label3, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_VERTICAL, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n pan1.add(spacer2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(0, 25), new Dimension(0, 25), new Dimension(0, 25), 0, false));\n number = new JTextField();\n pan1.add(number, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n pan1.add(creationDatePanel, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n pan1.add(expirationDatePanel, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n }",
"private void initUI() {\n\t\tPanel p = new Panel();\n\t\tp.setLayout(new BorderLayout());\n\t\t\n\t\tPanel flowLayoutPanel = new Panel();\n\t\tflowLayoutPanel.setLayout(new FlowLayout());\n\t\t\n\t\ttextArea = new JTextArea();\n\t\t\n\t\tMyCloseButton exitButton = new MyCloseButton(\"Exit\");\n\t\t/*\n\t\texit.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t\t\t\n\t\t});\n\t\t*/\n\t\tMyOpenButton saveButton = new MyOpenButton(\"Open\");\n\t\t/*\n\t\tsaveButton.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\n\t\t});\n\t\t*/\n\t\tMySaveButton mySaveButton =new MySaveButton(\"Save\");\n\t\t//setVisible(mb);\n\t\tp.add(flowLayoutPanel, BorderLayout.SOUTH);\n\t\tflowLayoutPanel.add(exitButton);\n\t\tflowLayoutPanel.add(saveButton);\n\t\tflowLayoutPanel.add(mySaveButton);\n\t\tp.add(textArea, BorderLayout.CENTER); \n\t\tadd(p);\n\t\t\n\t\tcreateMenu();\n\t\t\n\t\tsetTitle(\"Text Editor\");\n\t\tsetSize(600, 600);\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\n\t}",
"private void initPanelButtons() {\r\n\t\tthis.panelButtons = new JPanel(new GridBagLayout());\r\n\t\tthis.panelButtons.setBorder(BorderFactory.createEmptyBorder(10, 5, 0, 5));\r\n\t\tthis.panelButtons.setOpaque(false);\r\n\t\tGridBagConstraints gbc = new GridBagConstraints();\r\n\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 0;\r\n\t\tgbc.gridwidth = 1;\r\n\t\tgbc.gridheight = 1;\r\n\t\tgbc.weightx = 1;\r\n\t\tgbc.weighty = 1;\r\n\t\tthis.returnButton.setBackground(ConstantView.COLOR_BUTTON_LOGIN);\r\n\t\tthis.returnButton.setForeground(Color.WHITE);\r\n\t\tthis.returnButton.setFocusable(false);\r\n\t\tthis.returnButton.setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n\t\tthis.returnButton.setFont(ConstantView.FONT_PRINCIPAL_LABELS);\r\n\t\tthis.panelButtons.add(returnButton, gbc);\r\n\r\n\t\tgbc.gridx = 7;\r\n\t\tthis.okButton.setBackground(ConstantView.COLOR_BUTTON_LOGIN);\r\n\t\tthis.okButton.setForeground(Color.WHITE);\r\n\t\tthis.okButton.setFocusable(false);\r\n\t\tthis.okButton.setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n\t\tthis.okButton.setFont(ConstantView.FONT_PRINCIPAL_LABELS);\r\n\t\tthis.okButton.addActionListener(ControlClient.getInstance());\r\n\t\tthis.okButton.setActionCommand(ClientCommands.OK_SIGN_IN.toString());\r\n\t\tthis.panelButtons.add(okButton, gbc);\r\n\t}",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n toolBarPanel = new JPanel();\n toolBarPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(toolBarPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n containerPanel = new JPanel();\n containerPanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(containerPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n errorPanel = new JPanel();\n errorPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(errorPanel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n valuePanel = new JPanel();\n valuePanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(valuePanel, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"view as\");\n mainPanel.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboBox1 = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"UTF-8String\");\n comboBox1.setModel(defaultComboBoxModel1);\n mainPanel.add(comboBox1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private void $$$setupUI$$$() {\n createUIComponents();\n wrapperPanel = new JPanel();\n wrapperPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n wrapperPanel.setMinimumSize(new Dimension(640, 480));\n wrapperPanel.setPreferredSize(new Dimension(800, 600));\n boringPanel = new JPanel();\n boringPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1));\n boringPanel.setInheritsPopupMenu(false);\n boringPanel.setMaximumSize(new Dimension(200, 2147483647));\n boringPanel.setMinimumSize(new Dimension(100, 174));\n boringPanel.setOpaque(false);\n boringPanel.setPreferredSize(new Dimension(150, 228));\n boringPanel.setRequestFocusEnabled(true);\n wrapperPanel.add(boringPanel, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, new Dimension(100, -1), new Dimension(150, -1), new Dimension(200, -1), 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n boringPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n captionLabel = new JLabel();\n captionLabel.setText(\"Label\");\n boringPanel.add(captionLabel, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n numberOfLayersCaptionLabel = new JLabel();\n numberOfLayersCaptionLabel.setText(\"Label\");\n boringPanel.add(numberOfLayersCaptionLabel, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(82, 14), null, 0, false));\n numberOfLayersLabel = new JLabel();\n numberOfLayersLabel.setText(\"\");\n boringPanel.add(numberOfLayersLabel, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n matrixTextArea = new JTextArea();\n boringPanel.add(matrixTextArea, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(82, 50), null, 0, false));\n commitButton = new JButton();\n commitButton.setText(\"Button\");\n boringPanel.add(commitButton, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n graphPanel.setBackground(new Color(-1));\n graphPanel.setMinimumSize(new Dimension(530, 24));\n graphPanel.setOpaque(true);\n wrapperPanel.add(graphPanel, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JToolBar toolBar1 = new JToolBar();\n toolBar1.setFloatable(false);\n wrapperPanel.add(toolBar1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 20), null, 0, false));\n loadButton = new JButton();\n loadButton.setText(\"Button\");\n toolBar1.add(loadButton);\n }",
"private void initBoardPanel()\r\n {\r\n for(int i = 0; i < 3; i++)\r\n {\r\n for(int j = 0; j < 3; j++)\r\n {\r\n buttons[i][j] = new JButton(\" \");\r\n buttons[i][j].addActionListener(bh);\r\n buttons[i][j].setEnabled(false);\r\n boardpanel.add(buttons[i][j]);\r\n }\r\n }\r\n }",
"public ActionButtonPanel() {\n\t\tthis.setBackground(new Color(33, 162, 246));\n\t\tthis.setLayout(new FlowLayout());\n\t\t\n\t\tmoveShepherdButton = new ActionButton(new ImageIcon(Default.moveShepherdButtonUrl));\n\t\tmoveSheepButton = new ActionButton(new ImageIcon(Default.moveSheepButtonUrl));\n\t\tcoupleButton = new ActionButton(new ImageIcon(Default.coupleButtonUrl));\n\t\tcoupleSheepsButton = new ActionButton(new ImageIcon(Default.coupleSheepsButtonUrl));\n\t\tkillButton = new ActionButton(new ImageIcon(Default.killButtonUrl));\n\t\tbuyCardButton = new ActionButton(new ImageIcon(Default.buyCardButtonUrl));\n\t\t\n\t\tthis.add(moveShepherdButton);\n\t\tthis.add(moveSheepButton);\n\t\tthis.add(coupleButton);\n\t\tthis.add(coupleSheepsButton);\n\t\tthis.add(killButton);\n\t\tthis.add(buyCardButton);\n\t\t\n\t\tmoveShepherdButton.setEnabled(false);\n\t\tmoveSheepButton.setEnabled(false);\n\t\tcoupleButton.setEnabled(false);\n\t\tcoupleSheepsButton.setEnabled(false);\n\t\tkillButton.setEnabled(false);\n\t\tbuyCardButton.setEnabled(false);\n\t}",
"private void setupUI() {\r\n\t\tWindow.setTitle(\"Battle\");\r\n\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\tpanel.addStyleName(NAME);\r\n\t\tinitWidget(panel);\r\n\t\t\r\n\t\tlabelTitle = new Label(\"Battle\");\r\n\t\tlabelTitle.addStyleName(Styles.page_title);\r\n\t\tpanel.add(labelTitle);\r\n\t\t\r\n\t\tLabel instructions = new Label(\"Click to go!\");\r\n\t\tpanel.add(instructions);\r\n\r\n\t\tHorizontalPanel hPanel = new HorizontalPanel();\r\n\t\tpanel.add(hPanel);\r\n\t\t\r\n\t\tCanvas canvas = Canvas.createIfSupported();\r\n\t\thPanel.add(canvas);\r\n\r\n\t\tVerticalPanel vPanelInfo = new VerticalPanel();\r\n\t\thPanel.add(vPanelInfo);\r\n\t\t\r\n\t\tlabelInfo = new Label();\r\n\t\tlabelInfo.addStyleName(Styles.battle_info);\r\n\t\tvPanelInfo.add(labelInfo);\r\n\t\t\r\n\t\tvPanelInfoHistory = new VerticalPanel();\r\n\t\tvPanelInfoHistory.addStyleName(Styles.battle_info_history);\r\n\t\tvPanelInfo.add(vPanelInfoHistory);\r\n\r\n\t\t\r\n\t\tcanvas.setWidth(width + \"px\");\r\n\t\tcanvas.setHeight(height + \"px\");\r\n\t\tcanvas.setCoordinateSpaceWidth(width);\r\n\t\tcanvas.setCoordinateSpaceHeight(height);\r\n\r\n\t\t//Adding handlers seems to create a performance issue in Java\r\n\t\t//mode, but likely not in javascript\r\n\t\tcanvas.addMouseDownHandler(this);\r\n//\t\tcanvas.addMouseUpHandler(this);\r\n//\t\tcanvas.addMouseMoveHandler(this);\r\n\r\n\t\tcontext2d = canvas.getContext2d();\r\n\r\n\t\tlastUpdate = System.currentTimeMillis();\r\n\t\ttimer = new Timer() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tlong now = System.currentTimeMillis();\r\n\t\t\t\tupdate(now - lastUpdate);\r\n\t\t\t\tlastUpdate = now;\r\n\r\n\t\t\t\tdraw();\r\n\t\t\t}\r\n\t\t};\r\n\t\ttimer.scheduleRepeating(1000 / 60);\r\n\t}",
"public void iniciarComponentes(){\n\n crearPanel();\n colocarBotones();\n \n }",
"private void $$$setupUI$$$() {\n ST = new JPanel();\n ST.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(6, 7, new Insets(0, 0, 0, 0), -1, -1));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 4, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(1, 6, 4, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n enrereButton = new JButton();\n enrereButton.setText(\"Enrere\");\n ST.add(enrereButton, new com.intellij.uiDesigner.core.GridConstraints(4, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 7, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer5 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer5, new com.intellij.uiDesigner.core.GridConstraints(4, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer6 = new com.intellij.uiDesigner.core.Spacer();\n ST.add(spacer6, new com.intellij.uiDesigner.core.GridConstraints(4, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n okButton = new JButton();\n okButton.setText(\"Ok\");\n ST.add(okButton, new com.intellij.uiDesigner.core.GridConstraints(4, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n SP = new JScrollPane();\n ST.add(SP, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 2, 5, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n list1 = new JList();\n SP.setViewportView(list1);\n TriaDiff = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"Tria una dificultat...\");\n defaultComboBoxModel1.addElement(\"Fàcil\");\n defaultComboBoxModel1.addElement(\"Mitjà\");\n defaultComboBoxModel1.addElement(\"Dificil\");\n TriaDiff.setModel(defaultComboBoxModel1);\n ST.add(TriaDiff, new com.intellij.uiDesigner.core.GridConstraints(0, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private void $$$setupUI$$$() {\r\n panel1 = new BackGroundPanel();\r\n panel1.setOpaque(false);\r\n panel1.setLayout(new GridLayoutManager(4, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n final Spacer spacer1 = new Spacer();\r\n panel1.add(spacer1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n textPane1 = new JTextArea();\r\n textPane1.setFont(new Font(\"HGMinchoL\", textPane1.getFont().getStyle(), 22));\r\n textPane1.setText(\"\");\r\n textPane1.setEditable(false);\r\n textPane1.setOpaque(false);\r\n panel1.add(textPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\r\n final JLabel label1 = new JLabel();\r\n label1.setText(\"Answer:\");\r\n panel1.add(label1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n textField1 = new JTextField();\r\n panel1.add(textField1, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n SWINGButton = createButton(\"bat\", \"SWING!\");\r\n //SWINGButton.setText(\"SWING\");\r\n panel1.add(SWINGButton, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n formattedTextField1 = new JFormattedTextField();\r\n formattedTextField1.setEditable(false);\r\n formattedTextField1.setFont(new Font(\"HGMinchol\", formattedTextField1.getFont().getStyle(), 22));\r\n panel1.add(formattedTextField1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n }",
"private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n this.$$$loadButtonText$$$(buttonCancel, ResourceBundle.getBundle(\"strings\").getString(\"cancel\"));\n panel2.add(buttonCancel, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n this.$$$loadLabelText$$$(label1, ResourceBundle.getBundle(\"strings\").getString(\"resource-name\"));\n panel3.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n nameField = new JTextField();\n panel3.add(nameField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label2 = new JLabel();\n this.$$$loadLabelText$$$(label2, ResourceBundle.getBundle(\"strings\").getString(\"resource-availability\"));\n panel3.add(label2, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel3.add(scrollPane1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n scrollPane1.setViewportView(availabilitiesList);\n label1.setLabelFor(nameField);\n }",
"private void setUpPanel() { \n this.setPreferredSize(new Dimension(myWidth, myHeight)); \n // Set this panel as a grid panel with 1 column, 6 rows. \n this.setLayout(new GridLayout(NUM_ROWS, 1)); \n // Create the next piece panel.\n this.myNextPiece = new TetrisNextPiecePanel();\n this.add(myNextPiece); \n // Add another panel which will show game instruction.\n final HowToPlayPanel instructionsPanel = new HowToPlayPanel();\n this.add(instructionsPanel);\n // add the last panel which will show the scores, level, game state etc.\n this.setUpLastPanel();\n }",
"public void initializeButtons() {\n\t\tif(null!=itemPanel)\n\t\t\tremove(itemPanel);\n\t\t\n\t\titemPanel = new JPanel();\n\t\titemPanel.setLayout(new FlowLayout());\n\t\tList<Item> allItems = itemDao.readAll();\n\t\t\n\t\t//Sort list of items based on item code.\n\t\tCollections.sort(allItems, new Comparator<Item>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Item o1, Item o2) {\n\t\t\t\tCharacter c1 = o1.getCode();\n\t\t\t\tCharacter c2 = o2.getCode();\n\t\t\t\treturn c1.compareTo(c2);\n\t\t\t}\n\t\t});\n\t\t\n\t\tfor(final Item item : allItems){\n\t\t\tJButton addButton = new JButton(item.getName());\n\t\t\tDeal deal = item.getDeal();\n\t\t\tString dealName = deal == null ? \"\" : \"<br>\" + deal.getName();\n\t\t\t//Set tool tip as description and deal if available\n\t\t\taddButton.setToolTipText(\"<html>\"+item.getDescription()+\"<br>Price: $\"+item.getPrice()\n\t\t\t\t\t+ dealName+\"</html>\");\n\t\t\t//Add item to cart when pressed, also update cartLabel.\n\t\t\taddButton.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tcart.addItem(item.getCode());\n\t\t\t\t\tcartLabel.setText(cart.size()+ \" items in your cart\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t//addButton.setBounds(10, frameHeight, 75, 20);\n\t\t\taddButton.setSize(new Dimension(75, 20));\n\t\t\titemPanel.add(addButton);\n\t\t}\n\t\t\n\t\titemPanel.setBounds(10, 30, 280, 150);\n\t\tadd(itemPanel);\n\t\tMain.getFrame().setVisible(true);;\n\t}",
"private void createActionsPanel() {\n DefaultActionGroup group = new DefaultActionGroup();\n group.add(new CloseAction());\n ActionManager actionManager = ActionManager.getInstance();\n JComponent actionsToolbar = actionManager\n .createActionToolbar(ActionPlaces.CODE_INSPECTION, group, false)\n .getComponent();\n JPanel actionsPanel = new JPanel(new BorderLayout());\n actionsPanel.add(actionsToolbar, BorderLayout.WEST);\n add(actionsPanel, BorderLayout.WEST);\n }",
"public void createPanelEdit() {\n setBackground(new Color(245, 245, 245));\n setBorder(BorderFactory.createEmptyBorder(0, 300, 0, 300));\n\n setLayout(new BorderLayout());\n JPanel editPanel = new JPanel(new GridBagLayout());\n\n GridBagConstraints g = new GridBagConstraints();\n g.insets = new Insets(0, 20, 40, 8);\n Border border = BorderFactory.createLineBorder(Color.lightGray, 1, true);\n editPanel.setBorder(border);\n\n Border margin1 = new EmptyBorder(50, 50, 50, 50);\n editPanel.setBorder(new CompoundBorder(editPanel.getBorder(), margin1));\n editPanel.setBackground(Color.white);\n\n JPanel contentPanel = new JPanel(new GridBagLayout());\n contentPanel.setBackground(Color.WHITE);\n GridBagConstraints gbc = new GridBagConstraints();\n\n\n backButton = new JButton(\"BACK\");\n ImageIcon backImg = new ImageIcon(\"./images/backarrow.png\");\n Image scaledEditImg = backImg.getImage().getScaledInstance(15, 15,\n Image.SCALE_AREA_AVERAGING);\n backButton.setIcon(new ImageIcon(scaledEditImg));\n backButton.setFont(new Font(\"Arial\", Font.BOLD, 10));\n backButton.setBackground(Color.white);\n backButton.setFocusPainted(false);\n backButton.addActionListener(this);\n\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n gbc.weighty = 2;\n gbc.anchor = GridBagConstraints.FIRST_LINE_START;\n contentPanel.add(backButton, gbc);\n\n saveButton = new JButton();\n\n saveButton.setPreferredSize(new Dimension(275,30));\n saveButton.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n saveButton.setPreferredSize(new Dimension(70, 25));\n saveButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n ImageIcon saveImg = new ImageIcon(\"./images/save-icon.png\");\n Image scaledEditImage = saveImg.getImage().getScaledInstance(25, 20,\n Image.SCALE_AREA_AVERAGING);\n\n saveButton.setLayout(new FlowLayout(FlowLayout.LEADING));\n JLabel iconLabel = new JLabel(new ImageIcon(scaledEditImage));\n JLabel textLabel = new JLabel(\"SAVE\");\n saveButton.add(iconLabel);\n saveButton.add(textLabel);\n textLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 5));\n\n saveButton.setBackground(Color.white);\n saveButton.addActionListener(this);\n gbc.gridx = 3;\n gbc.gridy = 40;\n gbc.weighty = 0;\n gbc.weightx = 0;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n gbc.anchor = GridBagConstraints.CENTER;\n contentPanel.add(saveButton, gbc);\n\n\n JLabel title = new JLabel(\"ENTER PLANT DETAILS\");\n title.setFont(new Font(\"Calibri light\", Font.BOLD, 25));\n gbc.gridy = 3;\n gbc.gridx = 3;\n gbc.weighty = 5;\n gbc.gridheight = 1;\n contentPanel.add(title, gbc);\n\n\n JLabel nicknameLabel = new JLabel(\"Nickname (optional): \");\n nicknameLabel.setFont(new Font(\"Calibri light\", Font.PLAIN, 18));\n gbc.gridx = 0;\n gbc.gridy = 13;\n gbc.weighty = 15;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.anchor = GridBagConstraints.WEST;\n contentPanel.add(nicknameLabel, gbc);\n\n nicknameTF = new JTextField();\n nicknameTF.setPreferredSize(new Dimension(275, 30));\n nicknameTF.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n nicknameTF.setText(\"\");\n }\n });\n gbc.gridx = 4;\n gbc.gridy = 13;\n gbc.weighty = 15;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n gbc.anchor = GridBagConstraints.EAST;\n contentPanel.add(nicknameTF, gbc);\n\n\n JLabel picLabel = new JLabel(\"Change picture (optional): \");\n picLabel.setFont(new Font(\"Calibri light\", Font.PLAIN, 18));\n gbc.gridx = 0;\n gbc.gridy = 14;\n gbc.weighty = 15;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.anchor = GridBagConstraints.WEST;\n contentPanel.add(picLabel, gbc);\n\n changeImageBtn = new JButton();\n ImageIcon changeImg = new ImageIcon(\"./images/jpg.png\");\n Image scaledChangeImg = changeImg.getImage().getScaledInstance(50, 50,\n Image.SCALE_AREA_AVERAGING);\n changeImageBtn.setIcon(new ImageIcon(scaledChangeImg));\n changeImageBtn.setBackground(null);\n changeImageBtn.setBorder(BorderFactory.createLineBorder(null));\n changeImageBtn.addActionListener(this);\n changeImageBtn.setToolTipText(\"Update the picture of the plant\");\n changeImageBtn.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n changeImageBtn.setBorder(BorderFactory.createLineBorder(Color.white));\n gbc.gridx = 4;\n gbc.gridy = 14;\n gbc.weighty = 12;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n gbc.anchor = GridBagConstraints.EAST;\n\n\n contentPanel.add(changeImageBtn, gbc);\n\n\n JLabel climateLabel = new JLabel(\"Climate: \");\n climateLabel.setFont(new Font(\"Calibri light\", Font.PLAIN, 18));\n gbc.gridx = 0;\n gbc.gridy = 15;\n gbc.weighty = 15;\n gbc.weightx = 2;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n gbc.anchor = GridBagConstraints.WEST;\n contentPanel.add(climateLabel, gbc);\n\n String[] choices = {\"Inside\", \"Outside\"};\n JComboBox<String> climateMenu = new JComboBox<>(choices);\n climateMenu.setBackground(Color.white);\n climateMenu.setPreferredSize(new Dimension(275, 30));\n gbc.gridx = 4;\n gbc.gridy = 15;\n gbc.weighty = 5;\n gbc.weightx = 2;\n gbc.weighty = 15;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n gbc.anchor = GridBagConstraints.EAST;\n contentPanel.add(climateMenu, gbc);\n\n JLabel waterLabel = new JLabel(\"Interval Between Watering: \");\n waterLabel.setFont(new Font(\"Calibri light\", Font.PLAIN, 18));\n gbc.gridx = 0;\n gbc.gridy = 16;\n gbc.weighty = 15;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n gbc.anchor = GridBagConstraints.WEST;\n contentPanel.add(waterLabel, gbc);\n\n waterTF = new JTextField();\n waterTF.setPreferredSize(new Dimension(275, 30));\n waterTF.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n waterTF.setText(\"\");\n }\n });\n gbc.gridx = 4;\n gbc.gridy = 16;\n gbc.weighty = 15;\n gbc.weightx = 2;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n gbc.anchor = GridBagConstraints.EAST;\n contentPanel.add(waterTF, gbc);\n\n JLabel sizeLabel = new JLabel(\"Size (optional): \");\n sizeLabel.setToolTipText(\"This is used for our remaining days between watering estimation.\");\n sizeLabel.setFont(new Font(\"Calibri light\", Font.PLAIN, 18));\n gbc.gridx = 0;\n gbc.gridy = 17;\n gbc.weighty = 15;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n gbc.anchor = GridBagConstraints.WEST;\n contentPanel.add(sizeLabel, gbc);\n\n\n DefaultListModel model = new DefaultListModel();\n\n Image img1 = new ImageIcon(\"images/flower_small.png\").getImage().getScaledInstance(70, 110, Image.SCALE_SMOOTH);\n Image img2 = new ImageIcon(\"images/flower_medium.png\").getImage().getScaledInstance(80, 120, Image.SCALE_SMOOTH);\n Image img3 = new ImageIcon(\"images/flower_big.png\").getImage().getScaledInstance(90, 130, Image.SCALE_SMOOTH);\n\n model.addElement(new ImageIcon(img1));\n model.addElement(new ImageIcon(img2));\n model.addElement(new ImageIcon(img3));\n\n JList list = new JList(model);\n list.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n list.setToolTipText(\"Select an image that represents the plant size best.\");\n DefaultListCellRenderer renderer = (DefaultListCellRenderer) list.getCellRenderer();\n renderer.setHorizontalAlignment(SwingConstants.CENTER);\n\n list.setVisibleRowCount(1);\n list.setLayoutOrientation(JList.HORIZONTAL_WRAP);\n\n gbc.gridx = 4;\n gbc.gridy = 17;\n gbc.weighty = 0;\n gbc.weightx = 0;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n gbc.anchor = GridBagConstraints.LINE_END;\n contentPanel.add(list, gbc);\n\n gbc.gridx = 4;\n gbc.gridy = 18;\n gbc.weighty = 0;\n gbc.weightx = 0;\n gbc.gridwidth = 1;\n\n JTextPane tPane = new JTextPane();\n tPane.setText(\"This is used for our remaining days between watering estimation. Plants in smaller pots have less soil and will dry out faster than plants with larger pots.\");\n tPane.setEditable(false);\n StyledDocument styledDocument = tPane.getStyledDocument();\n SimpleAttributeSet center = new SimpleAttributeSet();\n StyleConstants.setAlignment(center, StyleConstants.ALIGN_CENTER);\n styledDocument.setParagraphAttributes(0, styledDocument.getLength(), center, false);\n contentPanel.add(tPane, gbc);\n\n JButton linkBtn = new JButton(\"(source)\");\n linkBtn.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n linkBtn.addActionListener(e -> {\n try {\n URI url = new URI(\"https://www.thesill.com/blogs/plants-101/drink-up\");\n Desktop.getDesktop().browse(url);\n } catch (URISyntaxException | IOException exception) {\n }\n });\n gbc.gridx = 4;\n gbc.gridy = 19;\n gbc.weighty = 0;\n gbc.weightx = 0;\n linkBtn.setBackground(null);\n linkBtn.setBorder(null);\n linkBtn.setForeground(new Color(26, 122, 169));\n contentPanel.add(linkBtn, gbc);\n\n contentPanel.setPreferredSize(new Dimension(750, 500));\n g.fill = GridBagConstraints.HORIZONTAL;\n editPanel.add(contentPanel, g);\n\n JScrollPane scrollPane = new JScrollPane(editPanel);\n add(scrollPane);\n\n }",
"public void addComponentsToPanel() {\n\t\tpanel.add(backBtn);\n\t\tpanel.add(forgotPassword);\n\t\tpanel.add(txtPass);\n\t\tpanel.add(txtSendEmail);\n\t\tpanel.add(remindMeBtn);\n\n\t\tpanel.add(backgroundLabel);\n\t}",
"public abstract void createContents(Panel mainPanel);",
"private void constructButtonPanel() {\n //boolean manualAdvance = true;\n \n buttonPanel = new JPanel();\n buttonPanel.setBorder(BorderFactory.createTitledBorder(\"Admin Actions\"));\n buttonPanel.setLayout(new GridLayout(2, 2, 20, 15));\n \n JPanel startExpPanel = new JPanel();\n startExpButton = new JButton(\"Start Experiment\");\n startExpButton.setEnabled(false);\n startExpButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n if (allConnected || JOptionPane.showConfirmDialog(null, \"<html>Start the game even though all clients are not yet connected?</html>\", \"Premature Start\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)\n startExperiment();\n }\n });\n startExpPanel.add(startExpButton);\n \n JPanel startPeriodPanel = new JPanel();\n startPeriodButton = new JButton(\"Start Period\");\n startPeriodButton.setEnabled(false);\n startPeriodPanel.add(startPeriodButton);\n startPeriodButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n if (JOptionPane.showConfirmDialog(null, \"<html>Start this period?</html>\", \"Confirm Exit\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)\n startPeriod();\n }\n });\n \n JPanel switchButtonPanel = new JPanel();\n switchButton = new JButton(autoSwitchString);\n switchButton.setEnabled(true);\n switchButtonPanel.add(switchButton);\n switchButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n manualAdvance = !manualAdvance;\n setSwitchStatus();\n }\n });\n \n JPanel stopExpPanel = new JPanel();\n stopExpButton = new JButton(\"Stop Experiment\");\n stopExpButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n if (JOptionPane.showConfirmDialog(null, \"<html>Terminate the current experiment?<br>(This will exit this interface)</html>\", \"Confirm Exit\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)\n stopExperiment();\n }\n });\n stopExpButton.setEnabled(false);\n stopExpPanel.add(stopExpButton);\n \n buttonPanel.add(startExpPanel);\n buttonPanel.add(startPeriodPanel);\n buttonPanel.add(stopExpPanel);\n buttonPanel.add(switchButtonPanel);\n \n buttonPanel.setPreferredSize(relativeSize(0.25f, 0.15f));\n }",
"private void $$$setupUI$$$() {\n adminSelectFunctionPanel = new JPanel();\n adminSelectFunctionPanel.setLayout(new GridLayoutManager(4, 3, new Insets(30, 30, 30, 30), 10, 30, true, false));\n adminSelectFunctionPanel.setBackground(new Color(-1));\n adminSelectFunctionPanel.setForeground(new Color(-1));\n adminSelectFunctionPanel.setMinimumSize(new Dimension(800, 600));\n adminSelectFunctionPanel.setPreferredSize(new Dimension(800, 600));\n changeATMBalanceButton = new JButton();\n changeATMBalanceButton.setBackground(new Color(-10592674));\n Font changeATMBalanceButtonFont = this.$$$getFont$$$(null, -1, 20, changeATMBalanceButton.getFont());\n if (changeATMBalanceButtonFont != null) changeATMBalanceButton.setFont(changeATMBalanceButtonFont);\n changeATMBalanceButton.setForeground(new Color(-1));\n changeATMBalanceButton.setText(\"Change ATM Balance\");\n adminSelectFunctionPanel.add(changeATMBalanceButton, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n changeLocaleButton = new JButton();\n changeLocaleButton.setBackground(new Color(-10592674));\n Font changeLocaleButtonFont = this.$$$getFont$$$(null, -1, 20, changeLocaleButton.getFont());\n if (changeLocaleButtonFont != null) changeLocaleButton.setFont(changeLocaleButtonFont);\n changeLocaleButton.setForeground(new Color(-1));\n changeLocaleButton.setText(\"Change Locale\");\n adminSelectFunctionPanel.add(changeLocaleButton, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n addAdminButton = new JButton();\n addAdminButton.setBackground(new Color(-10592674));\n Font addAdminButtonFont = this.$$$getFont$$$(null, -1, 20, addAdminButton.getFont());\n if (addAdminButtonFont != null) addAdminButton.setFont(addAdminButtonFont);\n addAdminButton.setForeground(new Color(-1));\n addAdminButton.setText(\"Add Admin\");\n adminSelectFunctionPanel.add(addAdminButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n atmStateLabel = new JLabel();\n atmStateLabel.setBackground(new Color(-15024996));\n Font atmStateLabelFont = this.$$$getFont$$$(null, -1, 24, atmStateLabel.getFont());\n if (atmStateLabelFont != null) atmStateLabel.setFont(atmStateLabelFont);\n atmStateLabel.setForeground(new Color(-1));\n atmStateLabel.setHorizontalAlignment(0);\n atmStateLabel.setHorizontalTextPosition(0);\n atmStateLabel.setOpaque(true);\n atmStateLabel.setText(\"\");\n adminSelectFunctionPanel.add(atmStateLabel, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(100, -1), null, 0, false));\n removeAdminButton = new JButton();\n removeAdminButton.setBackground(new Color(-10592674));\n Font removeAdminButtonFont = this.$$$getFont$$$(null, -1, 20, removeAdminButton.getFont());\n if (removeAdminButtonFont != null) removeAdminButton.setFont(removeAdminButtonFont);\n removeAdminButton.setForeground(new Color(-1));\n removeAdminButton.setText(\"Remove Admin\");\n adminSelectFunctionPanel.add(removeAdminButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n queryATMBalanceButton = new JButton();\n queryATMBalanceButton.setBackground(new Color(-10592674));\n Font queryATMBalanceButtonFont = this.$$$getFont$$$(null, -1, 20, queryATMBalanceButton.getFont());\n if (queryATMBalanceButtonFont != null) queryATMBalanceButton.setFont(queryATMBalanceButtonFont);\n queryATMBalanceButton.setForeground(new Color(-1));\n queryATMBalanceButton.setText(\"Query ATM Balance\");\n adminSelectFunctionPanel.add(queryATMBalanceButton, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n toggleStateButton = new JButton();\n toggleStateButton.setBackground(new Color(-10592674));\n Font toggleStateButtonFont = this.$$$getFont$$$(null, -1, 20, toggleStateButton.getFont());\n if (toggleStateButtonFont != null) toggleStateButton.setFont(toggleStateButtonFont);\n toggleStateButton.setForeground(new Color(-1));\n toggleStateButton.setText(\"Toggle State\");\n adminSelectFunctionPanel.add(toggleStateButton, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n logoutButton = new JButton();\n logoutButton.setBackground(new Color(-10592674));\n Font logoutButtonFont = this.$$$getFont$$$(null, -1, 20, logoutButton.getFont());\n if (logoutButtonFont != null) logoutButton.setFont(logoutButtonFont);\n logoutButton.setForeground(new Color(-1));\n logoutButton.setText(\"Logout\");\n adminSelectFunctionPanel.add(logoutButton, new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(150, 50), null, 0, false));\n }",
"private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}",
"public HomePanel()\n\t{\n\t\tbCol = new Color(51, 204, 255);\n\t\tcl = new CardLayout();\n\t\t\n\t\t//Initiating sciIm JLabel and adding image onto it\n\t\tsciIm = new JLabel();\n\t\tsciIm.setHorizontalAlignment(JLabel.CENTER);\n\t\tsciIm.setVerticalAlignment(JLabel.CENTER);\n\t\tImageIcon sci = new ImageIcon(\"Science.jpg\");\n\t\tsciIm.setIcon(sci);\n\n\t\t//Initiating JButtons, adding ActionListener, setting colors, setting Fonts\n\t\tFont jbFont = new Font(\"Serif\", Font.PLAIN, 20);\n\n\t\tplay = new JButton(\"Play\");\n\t\tplay.setOpaque(true);\n\t\tplay.setBackground(bCol);\n\t\tplay.setFont(jbFont);\n\t\tplay.addActionListener(this);\n\t\t\n\t\tinst = new JButton(\"Instructions\");\n\t\tinst.setBackground(bCol);\n\t\tinst.setOpaque(true);\n\t\tinst.setFont(jbFont);\n\t\tinst.addActionListener(this);\n\n\t\ths = new JButton(\"High Scores\");\n\t\ths.setBackground(bCol);\n\t\ths.setOpaque(true);\n\t\ths.setFont(jbFont);\n\t\ths.addActionListener(this);\n\t\t\n\t\ttePan = new JButton(\"All Science Terms\");\n\t\ttePan.setBackground(bCol);\n\t\ttePan.setOpaque(true);\n\t\ttePan.setFont(jbFont);\n\t\ttePan.addActionListener(this);\n\t\t\n\t\t//Initiating JPanel, setting color and BorderLayout,\n\t\t//and adding JLabel with image and buttons panel\n\t\tbase = new JPanel();\n\t\tbase.setBackground(bCol);\n\t\tbase.setLayout(new BorderLayout());\n\t\tbase.add(sciIm, BorderLayout.CENTER);\n\t\tBasePanel bp = new BasePanel();\n\t\tbase.add(bp, BorderLayout.SOUTH);\n\n\t\t//Setting cardLayout to entire panel and adding instances\n\t\t//of other panels to cardLayout.\n\t\tsetLayout(cl);\n\t\tip = new InstructPanel();\n\t\thsp = new HigScoPanel();\n\t\t//gp = new GamePanel();\n\t\tfp = new InfoPanel();\n\t\ttp = new TermsPanel();\n\t\tadd(\"Info\", fp);\n\t\tadd(\"Base\", base);\n\t\tadd(\"Instructions\", ip);\n\t\tadd(\"High Scores\", hsp);\n\t\t//add(\"Game\", gp);\n\t\tadd(\"Terms\", tp);\n\t\tcl.show(this, \"Base\");\n\t}",
"private void setButtonPanelComponents(){\n\t\tJPanel buttonPane = new JPanel();\n\t\tbuttonPane.setPreferredSize(new Dimension(-1,32));\n\t\tbuttonPane.setBackground(Constant.DIALOG_BOX_COLOR_BG);\n\t\tbuttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tgetContentPane().add(buttonPane, BorderLayout.SOUTH);\n\t\t\n\t\tsaveButton = Utilities.getInstance().initializeNewButton(\n\t\t\t-1, -1, -1, -1,\n\t\t\tImages.getInstance().saveBtnDialogImg,\n\t\t\tImages.getInstance().saveBtnDialogImgHover\n\t\t);\n\t\tbuttonPane.add(saveButton);\n\t\n\n\t\n\t}",
"private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tthis.add(firstButton);\n\t\tthis.add(firstField);\n\t}",
"public BoardPanel() {\n\t\t\tfinal Dimension size = new Dimension(600, 600);\n\t\t\tsetSize(size);\n\t\t\tsetPreferredSize(size);\n\t\t\t\n\t\t\taddMouseListener(new ClickHandler());\n\t\t}",
"private void initComponent() {\n\t\taddGrid();\n\t\taddToolBars();\n\t}",
"public void actionPerformed(ActionEvent e){\n grid.layoutContainer(compsToExperiment);\n \n Crear.metodos.abrir();\n frame.dispose();\n }",
"private void $$$setupUI$$$() {\n createUIComponents();\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(2, 4, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setBackground(new Color(-1973532));\n panel1.setMaximumSize(new Dimension(1200, 800));\n panel1.setMinimumSize(new Dimension(1200, 800));\n panel1.setPreferredSize(new Dimension(1200, 800));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(11, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel2.setBackground(new Color(-1973532));\n panel2.setOpaque(false);\n panel1.add(panel2, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n question = new JLabel();\n question.setForeground(new Color(-16777216));\n question.setText(\"¿Desea continuar alguna partida?\");\n panel2.add(question, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel3.setOpaque(false);\n panel2.add(panel3, new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n loadButton = new JButton();\n loadButton.setBackground(new Color(-16777216));\n loadButton.setBorderPainted(false);\n loadButton.setContentAreaFilled(false);\n loadButton.setFocusPainted(false);\n loadButton.setOpaque(false);\n loadButton.setText(\"Cargar\");\n panel3.add(loadButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(100, 40), new Dimension(100, 40), new Dimension(100, 40), 0, false));\n newButton = new JButton();\n newButton.setBorderPainted(false);\n newButton.setContentAreaFilled(false);\n newButton.setFocusPainted(false);\n newButton.setOpaque(false);\n newButton.setText(\"Nueva\");\n panel3.add(newButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(100, 40), new Dimension(100, 40), new Dimension(100, 40), 0, false));\n volverButton = new JButton();\n volverButton.setBorderPainted(false);\n volverButton.setContentAreaFilled(false);\n volverButton.setFocusPainted(false);\n volverButton.setOpaque(false);\n volverButton.setText(\"Volver\");\n panel2.add(volverButton, new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(252, 40), new Dimension(252, 40), new Dimension(252, 40), 0, false));\n final Spacer spacer1 = new Spacer();\n panel2.add(spacer1, new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(-1, 80), new Dimension(-1, 80), new Dimension(-1, 80), 0, false));\n final Spacer spacer2 = new Spacer();\n panel2.add(spacer2, new GridConstraints(10, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_FIXED, new Dimension(-1, 70), new Dimension(-1, 70), new Dimension(-1, 70), 0, false));\n final Spacer spacer3 = new Spacer();\n panel2.add(spacer3, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_FIXED, new Dimension(-1, 80), new Dimension(-1, 80), new Dimension(-1, 80), 0, false));\n final Spacer spacer4 = new Spacer();\n panel2.add(spacer4, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_FIXED, new Dimension(-1, 15), new Dimension(-1, 15), new Dimension(-1, 15), 0, false));\n final Spacer spacer5 = new Spacer();\n panel2.add(spacer5, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_FIXED, new Dimension(-1, 35), new Dimension(-1, 35), null, 0, false));\n training = new JButton();\n training.setBorderPainted(false);\n training.setContentAreaFilled(false);\n training.setFocusPainted(false);\n training.setText(\"Modo Entrenamiento\");\n panel2.add(training, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer6 = new Spacer();\n panel2.add(spacer6, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_FIXED, new Dimension(-1, 50), new Dimension(-1, 50), new Dimension(-1, 50), 0, false));\n logo = new JLabel();\n logo.setText(\"\");\n panel2.add(logo, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(252, 200), new Dimension(252, 200), new Dimension(252, 200), 1, false));\n final Spacer spacer7 = new Spacer();\n panel1.add(spacer7, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(42, -1), new Dimension(42, -1), null, 0, false));\n photo.setAlignmentY(0.5f);\n photo.setText(\"\");\n panel1.add(photo, new GridConstraints(0, 0, 2, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(800, 800), new Dimension(800, 800), new Dimension(800, 800), 0, false));\n final Spacer spacer8 = new Spacer();\n panel1.add(spacer8, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_FIXED, 1, new Dimension(50, -1), new Dimension(50, -1), null, 0, false));\n config = new JButton();\n config.setBorderPainted(false);\n config.setContentAreaFilled(false);\n config.setFocusPainted(false);\n config.setHorizontalAlignment(0);\n config.setHorizontalTextPosition(0);\n config.setText(\"\\uF013\");\n panel1.add(config, new GridConstraints(0, 2, 1, 2, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(40, 40), null, 0, false));\n }",
"private ButtonJPanel(){\n GridLayout layout = new GridLayout(0, 1);//creates a grid layout with 1 column and unlimited rows, for the buttons\n setLayout(layout);//sets the JPanel layout\n layout.setVgap(5);//sets the vertical gap between the buttons\n setBackground(Color.WHITE);//sets the color of the panel to WHITE\n \n fillrecimg = new ImageIcon(\"src/fillrec.png\");//assigns a png image to the ImageIcon\n fillovalimg = new ImageIcon(\"src/filloval.png\");\n emptyrecimg = new ImageIcon(\"src/emptyrec.png\");\n emptyovalimg = new ImageIcon(\"src/emptyoval.png\");\n linedrawimg = new ImageIcon(\"src/linedraw.png\");\n \n clear = new JButton(\"Clear\");//initializes the buttons, either with text or an icon\n (fillrec = new JButton(fillrecimg)).setActionCommand(\"Filled Rectangle\");//icon buttons are assigned a string ActionCommand\n (filloval = new JButton(fillovalimg)).setActionCommand(\"Filled Oval\");\n (emptyrec = new JButton(emptyrecimg)).setActionCommand(\"Empty Rectangle\");\n (emptyoval = new JButton(emptyovalimg)).setActionCommand(\"Empty Oval\");\n (linedraw = new JButton(linedrawimg)).setActionCommand(\"Line Drawing\");\n opencolor = new JButton(\"Color Chooser\");\n \n JButton[] buttons = {clear, fillrec, filloval, emptyrec, emptyoval, linedraw, opencolor};//an array of all the buttons\n \n for(JButton button : buttons){//for each button...\n button.addActionListener(this);//add a listener\n add(button);//add the button to the panel\n button.setOpaque(true);//make the color visable\n button.setBackground(Color.BLACK);//set background to black\n button.setFont(new Font(Font.DIALOG, Font.PLAIN, 13));//sets the font, style, and size\n }\n }",
"public ButtonGrid()\n {\n \t//Sets the dimensions for the ButtonGrid\n \tframe.setLayout(new GridLayout(10, 10));\n JMenuBar menuBar = new JMenuBar();\n frame.setJMenuBar(menuBar);\n \n \n \n //Adds a file and puzzle drop down to the menu bar\n JMenu fileMenu = new JMenu(\"File\");\n JMenu puzzleMenu = new JMenu(\"Puzzle\");\n menuBar.add(fileMenu);\n menuBar.add(puzzleMenu);\n \n //Creates menu items and adds actionlisteners to them\n JMenuItem openAction = new JMenuItem(\"Open\");\n JMenuItem exitAction = new JMenuItem(\"Exit\");\n JMenuItem solveAction = new JMenuItem(\"Solve\");\n JMenuItem newStartAction = new JMenuItem(\"New Start\");\n JMenuItem newFinishAction = new JMenuItem(\"New Finish\");\n openAction.addActionListener(new MenuActionListener(this));\n exitAction.addActionListener(new MenuActionListener(this));\n solveAction.addActionListener(new MenuActionListener(this));\n newStartAction.addActionListener(new MenuActionListener(this));\n newFinishAction.addActionListener(new MenuActionListener(this));\n \n //Adds menu items to the drop-down menus\n fileMenu.add(openAction);\n fileMenu.addSeparator();\n fileMenu.add(exitAction);\n puzzleMenu.add(solveAction);\n puzzleMenu.add(newStartAction);\n puzzleMenu.add(newFinishAction);\n \n //Creates the grid of buttons with the default size being 10 by 10\n grid = new JButton[10][10];\n for(int y = 0; y < 10; y++)\n {\n \tfor(int x = 0; x < 10; x++)\n {\n \t\tgrid[y][x] = new JButton(\"\"); \n frame.add(grid[y][x]);\n }\n } \n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.pack(); \n frame.setBounds(new Rectangle(330, 360));\n centerOnScreen();\n frame.setVisible(true); \n }",
"@Override\r\n\tpublic void createContents(Panel mainPanel) {\n\t\t\r\n\t\t\r\nsetTitle(\"¿Dónde invierto?\");\r\n\t\t\r\n\t\tmainPanel.setLayout(new VerticalLayout());\r\n\t\tnew Label(mainPanel).setText(\"Menú Principal\").setFontSize(15).setForeground(Color.RED);\r\n\t\tnew Label(mainPanel).setText(\"Seleccionar la opción deseada\").setFontSize(13).setForeground(Color.BLACK);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Carga Correcta de las Empresas!\").setFontSize(9).setForeground(Color.GREEN).bindVisibleToProperty(\"bloq\");\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Mostrar el valor de una cuenta predefinida\");\r\n\t\tButton bot_MostrarCuentas= new Button(mainPanel);\r\n\t\t\r\n\t\tbot_MostrarCuentas.setCaption(\"Mostrar valores de la Empresa\");//.bindEnabledToProperty(\"bloq\");\r\n\t\tbot_MostrarCuentas.onClick(() -> new mostrarValoresDeEmpresas(this,new mostrarValoresDeEmpresasViewModel()).open());\r\n\t\t\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Crear un nuevo indicador\");\r\n\t\tnew Button(mainPanel).setCaption(\"Escribir formula\").onClick(() -> new crearIndicadores(this,new crearIndicadoresViewModel()).open());\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Menu de Metodologias\");\r\n\t\t\r\n\t\tPanel parte1 =new Panel(mainPanel);\r\n\t\tparte1.setLayout(new ColumnLayout(2));\t\r\n\t\tButton bot_evaluarEmpresas= new Button(parte1);\r\n\t\tbot_evaluarEmpresas.setCaption(\"Evaluar una empresa\");\r\n\t\tbot_evaluarEmpresas.setWidth(125);\r\n\t\tbot_evaluarEmpresas.onClick(() -> new evaluarEmpresas(this, new evaluarEmpresasViewModel()).open());\r\n\t\r\n\t\tButton bot_configurarMetodologia= new Button(parte1);\r\n\t\tbot_configurarMetodologia.setCaption(\"Crear Metodologia\");\r\n\t\tbot_configurarMetodologia.setWidth(125);\r\n\t\tbot_configurarMetodologia.onClick(() ->crearNuevaMetodologia());\t\r\n\t\t\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t/*\tnew Label(mainPanel).setText(\"Importar/Exportar archivos\");\r\n\t\t\r\n\t\tButton bot_impExpArchivos = new Button(mainPanel);\r\n\t\tbot_impExpArchivos.setCaption(\"Importar Archivos o exportar\");\r\n\t\tbot_impExpArchivos.setWidth(125);\r\n\t\tbot_impExpArchivos.onClick(() -> new importarExportarArchivos(this, new importarExportarArchivosViewModel()).open());\r\n\t\t\r\n\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\"Desde aca abajo vuela todo y va a otra ventana \\\\|/\").setFontSize(8);\r\n\t */\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Cargar un archivo de empresas\");\r\n\t\tPanel panel2 = new Panel(mainPanel);\r\n\t\tpanel2.setLayout(new ColumnLayout(2));\r\n\t\t\r\n\t\tFileSelector fileSelector = new FileSelector(panel2);\r\n\t\tfileSelector.extensions(\"*.txt\");\r\n\t\tfileSelector.setCaption(\"Seleccionar archivo\");\r\n\t\tfileSelector.setWidth(125);\r\n\t\tfileSelector.bindValueToProperty(\"rutaArchivo\");\r\n\t\tfileSelector.onClick(() -> this.cargarArchivo());\r\n\t\t\r\n\t\tnew TextBox(panel2).setWidth(125).bindValueToProperty(\"rutaArchivo\");\r\n\t\t\r\n\t\t\r\n\t\tnew Button(mainPanel).setCaption(\"Procesar archivo\").onClick(() -> this.cargarArchivo());\r\n\r\n\t\tIOs.leerIndicadoresDeArchivo(\"archivoIndicadores.txt\");\r\n\t\t\r\n\t\tRepositorioDeEmpresas.traerEmpresasDeLaDB();\r\n\t}",
"private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}",
"public void buildButtons() {\r\n\t\tImage temp1= display_img.getImage();\r\n\t\tImageIcon img=new ImageIcon(temp1.getScaledInstance(800, 800, Image.SCALE_SMOOTH));\r\n\t\timg1 = img.getImage();\r\n\t\tfor(int y=0;y<10;y++) {\r\n\t\t\tfor(int x=0; x<10; x++) {\r\n\t\t\t\tImage image = Toolkit.getDefaultToolkit().createImage(new FilteredImageSource(img1.getSource(), new CropImageFilter(x * 800 / 10, y * 800 / 10, 100, 100)));\r\n\t\t\t\tImageIcon icon = new ImageIcon(image);\r\n\t\t\t\tJButton temp = new JButton(icon);\r\n\t\t\t\ttemp.putClientProperty(\"position\", new Point(y,x));\r\n\t\t\t\tsolutions.add(new Point(y,x));\r\n\t\t\t\ttemp.putClientProperty(\"isLocked\", false);\r\n\t\t\t\ttemp.addMouseListener(new DragMouseAdapter());\r\n\t\t\t\tgrid[x][y]=temp;\r\n\r\n\t\t\t\tbuttons.add(temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"GridPanel create(GridDataModel model);",
"public BaseDualControlMainPanel(DualControlEditorState dualControlEditorState) {\n\t\toutmostPanel = new FlowPanel(); \n\t\tgridContainerPanel = new VerticalPanel(); \n\t\tinitWidget(outmostPanel);\n\t\t\n\t\toutmostPanel.add(gridContainerPanel);\n\t\tgridContainerPanel.setSpacing(5);\n\t\t\n\t\t\n\t\t// header + grid + footer\n\t\theaderPanel = this.instantiateHeaderAndSearchFilter(); \n\t\tdataGrid = instantiateGrid(\n\t\t\t\tnew DataProcessWorker<DATA>() {\n\t\t\t\t\tpublic void runProccess(DATA data) {\n\t\t\t\t\t\thandleEditDataForApproval(data);\n\t\t\t\t\t\t\n\t\t\t\t\t};\n\t\t\t\t} , \n\t\t\t\t\n\t\t\t\tnew DataProcessWorker<DATA>() {\n\t\t\t\t\tpublic void runProccess(DATA data) {\n\t\t\t\t\t\tGWT.log(\"Triggering view data\");\n\t\t\t\t\t\thandleViewData(data);\n\t\t\t\t\t};\n\t\t\t\t} \n\t\t\t\t\n\t\t\t);\n\t\t\n\t\tString swap = getGridCaption() ; \n\t\tif ( swap!= null && !swap.isEmpty()){\n\t\t\tdataGrid.setCaption(swap);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tif ( getGridHeight()!= null ){\n\t\t\tdataGrid.setHeight(getGridHeight());\n\t\t\t\n\t\t}else {\n\t\t\tGWT.log(\"grid height utnuk class : \" + getClass().getName() + \", height tidak di set\");\n\t\t}\n\t\t\n\t\tif ( headerPanel!= null){\n\t\t\tgridContainerPanel.add((Widget)headerPanel);\n\t\t\theaderPanel.setSearchFilterHandler(new SimpleSearchFilterHandler() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onResetRequested() {\n\t\t\t\t\tdataGrid.onResetRequested();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void applyFilter(SimpleQueryFilter[] filters) {\n\t\t\t\t\tdataGrid.applyFilter(filters);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void applyFilter(SimpleQueryFilter[] filters,\n\t\t\t\t\t\tSimpleSortArgument[] sorts) {\n\t\t\t\t\tdataGrid.applyFilter(filters , sorts);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\t\n\t\tgridContainerPanel.add(dataGrid);\n\t\tif ( gridFooterPanel!= null)\n\t\t\tgridContainerPanel.add(gridFooterPanel);\n\t\t// bind handler grid\n\t\t dataGrid.setDualControlEditorState(dualControlEditorState);\n\t\t \n\t\tif ( DualControlEditorState.CREATE_FOR_APPROVAL.equals(dualControlEditorState)){\n\t\t\trenderAddNewDataButton(); \n\t\t\t\n\t\t}\n\t\t\n\t}",
"protected void createButtons(Panel panel) {\n panel.add(new Filler(24,20));\n\n Choice drawingChoice = new Choice();\n drawingChoice.addItem(fgUntitled);\n\n\t String param = getParameter(\"DRAWINGS\");\n\t if (param == null)\n\t param = \"\";\n \tStringTokenizer st = new StringTokenizer(param);\n while (st.hasMoreTokens())\n drawingChoice.addItem(st.nextToken());\n // offer choice only if more than one\n if (drawingChoice.getItemCount() > 1)\n panel.add(drawingChoice);\n else\n panel.add(new Label(fgUntitled));\n\n\t\tdrawingChoice.addItemListener(\n\t\t new ItemListener() {\n\t\t public void itemStateChanged(ItemEvent e) {\n\t\t if (e.getStateChange() == ItemEvent.SELECTED) {\n\t\t loadDrawing((String)e.getItem());\n\t\t }\n\t\t }\n\t\t }\n\t\t);\n\n panel.add(new Filler(6,20));\n\n Button button;\n button = new CommandButton(new DeleteCommand(\"Delete\", fView));\n panel.add(button);\n\n button = new CommandButton(new DuplicateCommand(\"Duplicate\", fView));\n panel.add(button);\n\n button = new CommandButton(new GroupCommand(\"Group\", fView));\n panel.add(button);\n\n button = new CommandButton(new UngroupCommand(\"Ungroup\", fView));\n panel.add(button);\n\n button = new Button(\"Help\");\n\t\tbutton.addActionListener(\n\t\t new ActionListener() {\n\t\t public void actionPerformed(ActionEvent event) {\n\t\t showHelp();\n\t\t }\n\t\t }\n\t\t);\n panel.add(button);\n\n fUpdateButton = new Button(\"Simple Update\");\n\t\tfUpdateButton.addActionListener(\n\t\t new ActionListener() {\n\t\t public void actionPerformed(ActionEvent event) {\n if (fSimpleUpdate)\n setBufferedDisplayUpdate();\n else\n setSimpleDisplayUpdate();\n\t\t }\n\t\t }\n\t\t);\n\n // panel.add(fUpdateButton); // not shown currently\n }",
"public ButtonGrid(Grid p, String[] s) \n { \t\n \tpuzzle = p;\n \t\n //Sets the dimensions for the ButtonGrid according to the puzzle size\n frame.setLayout(new GridLayout(s.length, s[0].length()));\n JMenuBar menuBar = new JMenuBar();\n frame.setJMenuBar(menuBar);\n \n //Creates menu items\n JMenu fileMenu = new JMenu(\"File\");\n JMenu puzzleMenu = new JMenu(\"Puzzle\");\n menuBar.add(fileMenu);\n menuBar.add(puzzleMenu);\n \n //Creates menu items and adds actionlisteners to them\n JMenuItem openAction = new JMenuItem(\"Open\");\n JMenuItem exitAction = new JMenuItem(\"Exit\");\n JMenuItem solveAction = new JMenuItem(\"Solve\");\n JMenuItem newStartAction = new JMenuItem(\"New Start\");\n JMenuItem newFinishAction = new JMenuItem(\"New Finish\");\n openAction.addActionListener(new MenuActionListener(this));\n exitAction.addActionListener(new MenuActionListener(this));\n solveAction.addActionListener(new MenuActionListener(this));\n newStartAction.addActionListener(new MenuActionListener(this));\n newFinishAction.addActionListener(new MenuActionListener(this));\n \n //Adds menu items to the drop-down menus\t\n fileMenu.add(openAction);\n fileMenu.addSeparator();\n fileMenu.add(exitAction);\n puzzleMenu.add(solveAction);\n puzzleMenu.add(newStartAction);\n puzzleMenu.add(newFinishAction);\n \n //Create the button matrix and size it according to the puzzle\n grid = new JButton[s.length][s[0].length()];\n for(int y = 0; y < s.length; y++)\n {\n \tfor(int x = 0; x < s[0].length(); x++)\n {\n \t\tgrid[y][x] = new JButton(\"\");\n frame.add(grid[y][x]); \n }\n }\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.pack(); \n frame.setVisible(true); \n }",
"public PanelIconos() {\n initComponents();\n }",
"private void initComponents() {\n\n dataScrollPane = new javax.swing.JScrollPane();\n dataTable = new com.cosmos.acacia.gui.AcaciaTable();\n buttonsPanel = new com.cosmos.swingb.JBPanel();\n closeButton = new com.cosmos.swingb.JBButton();\n refreshButton = new com.cosmos.swingb.JBButton();\n deleteButton = new com.cosmos.swingb.JBButton();\n modifyButton = new com.cosmos.swingb.JBButton();\n newButton = new com.cosmos.swingb.JBButton();\n selectButton = new com.cosmos.swingb.JBButton();\n unselectButton = new com.cosmos.swingb.JBButton();\n classifyButton = new com.cosmos.swingb.JBButton();\n specialFunctionalityButton = new com.cosmos.swingb.JBButton();\n filterButton = new com.cosmos.swingb.JBButton();\n\n setName(\"Form\"); // NOI18N\n addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n onKeyPressed(evt);\n }\n });\n setLayout(new java.awt.BorderLayout());\n\n dataScrollPane.setName(\"dataScrollPane\"); // NOI18N\n\n dataTable.setName(\"dataTable\"); // NOI18N\n dataTable.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n onKeyPressed(evt);\n }\n });\n dataScrollPane.setViewportView(dataTable);\n\n add(dataScrollPane, java.awt.BorderLayout.CENTER);\n\n buttonsPanel.setName(\"buttonsPanel\"); // NOI18N\n\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(com.cosmos.acacia.crm.gui.AcaciaApplication.class).getContext().getActionMap(AbstractTablePanel.class, this);\n closeButton.setAction(actionMap.get(\"closeAction\")); // NOI18N\n closeButton.setName(\"closeButton\"); // NOI18N\n\n refreshButton.setAction(actionMap.get(\"refreshAction\")); // NOI18N\n refreshButton.setName(\"refreshButton\"); // NOI18N\n\n deleteButton.setAction(actionMap.get(\"deleteAction\")); // NOI18N\n deleteButton.setName(\"deleteButton\"); // NOI18N\n\n modifyButton.setAction(actionMap.get(\"modifyAction\")); // NOI18N\n modifyButton.setName(\"modifyButton\"); // NOI18N\n\n newButton.setAction(actionMap.get(\"newAction\")); // NOI18N\n newButton.setName(\"newButton\"); // NOI18N\n\n selectButton.setAction(actionMap.get(\"selectAction\")); // NOI18N\n selectButton.setName(\"selectButton\"); // NOI18N\n\n unselectButton.setAction(actionMap.get(\"unselectAction\")); // NOI18N\n unselectButton.setName(\"unselectButton\"); // NOI18N\n\n classifyButton.setAction(actionMap.get(\"classifyAction\")); // NOI18N\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(com.cosmos.acacia.crm.gui.AcaciaApplication.class).getContext().getResourceMap(AbstractTablePanel.class);\n classifyButton.setText(resourceMap.getString(\"classifyButton.text\")); // NOI18N\n classifyButton.setName(\"classifyButton\"); // NOI18N\n\n specialFunctionalityButton.setAction(actionMap.get(\"specialAction\")); // NOI18N\n specialFunctionalityButton.setName(\"specialFunctionalityButton\"); // NOI18N\n\n filterButton.setAction(actionMap.get(\"filter\")); // NOI18N\n filterButton.setName(\"filterButton\"); // NOI18N\n\n javax.swing.GroupLayout buttonsPanelLayout = new javax.swing.GroupLayout(buttonsPanel);\n buttonsPanel.setLayout(buttonsPanelLayout);\n buttonsPanelLayout.setHorizontalGroup(\n buttonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttonsPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(unselectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 51, Short.MAX_VALUE)\n .addComponent(specialFunctionalityButton, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(filterButton, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(classifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(newButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(modifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(deleteButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(refreshButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(closeButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n buttonsPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {closeButton, deleteButton, modifyButton, newButton, refreshButton, selectButton});\n\n buttonsPanelLayout.setVerticalGroup(\n buttonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttonsPanelLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(buttonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(closeButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(refreshButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(deleteButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(modifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(newButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(unselectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(classifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(filterButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(specialFunctionalityButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n buttonsPanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {closeButton, deleteButton, modifyButton, newButton, refreshButton, selectButton, unselectButton});\n\n add(buttonsPanel, java.awt.BorderLayout.PAGE_END);\n }",
"private void $$$setupUI$$$() {\n RG = new JPanel();\n RG.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(6, 6, new Insets(0, 0, 0, 0), -1, -1));\n RG.setOpaque(true);\n RG.setPreferredSize(new Dimension(348, 136));\n enrereButton = new JButton();\n enrereButton.setText(\"Enrere\");\n RG.add(enrereButton, new com.intellij.uiDesigner.core.GridConstraints(4, 2, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Nombre d'usuaris registrats:\");\n RG.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Nombre de partides jugades totals:\");\n RG.add(label2, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Jocs = new JLabel();\n Jocs.setText(\"Label\");\n RG.add(Jocs, new com.intellij.uiDesigner.core.GridConstraints(2, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Eljoc = new JLabel();\n Eljoc.setText(\"Label\");\n RG.add(Eljoc, new com.intellij.uiDesigner.core.GridConstraints(3, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Partides = new JLabel();\n Partides.setText(\"Label\");\n RG.add(Partides, new com.intellij.uiDesigner.core.GridConstraints(1, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Usuaris = new JLabel();\n Usuaris.setText(\"Label\");\n RG.add(Usuaris, new com.intellij.uiDesigner.core.GridConstraints(0, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Joc més popular:\");\n RG.add(label3, new com.intellij.uiDesigner.core.GridConstraints(3, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Nombre de jocs totals:\");\n RG.add(label4, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(4, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(1, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(0, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer5 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer5, new com.intellij.uiDesigner.core.GridConstraints(2, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer6 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer6, new com.intellij.uiDesigner.core.GridConstraints(3, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer7 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer7, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer8 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer8, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer9 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer9, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer10 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer10, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer11 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer11, new com.intellij.uiDesigner.core.GridConstraints(3, 5, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer12 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer12, new com.intellij.uiDesigner.core.GridConstraints(2, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer13 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer13, new com.intellij.uiDesigner.core.GridConstraints(1, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer14 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer14, new com.intellij.uiDesigner.core.GridConstraints(0, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer15 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer15, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer16 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer16, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer17 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer17, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer18 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer18, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer19 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer19, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 6, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }",
"private void setPanel()\r\n\t{\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(5, 2));\r\n\t\t\r\n\t\tpanel.add(bubbleL);\r\n\t\tpanel.add(bubblePB);\r\n\t\t\r\n\t\tpanel.add(insertionL);\r\n\t\tpanel.add(insertionPB);\r\n\t\t\r\n\t\tpanel.add(mergeL);\r\n\t\tpanel.add(mergePB);\r\n\t\t\r\n\t\tpanel.add(quickL);\r\n\t\tpanel.add(quickPB);\r\n\t\t\r\n\t\tpanel.add(radixL);\r\n\t\tpanel.add(radixPB);\r\n\t}",
"private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n \n btnOneToMany = new javax.swing.JToggleButton();\n jtbAttrSync = new javax.swing.JToggleButton();\n \n setLayout(new java.awt.BorderLayout());\n \n panCenter.setBorder(javax.swing.BorderFactory.createTitledBorder(\n org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.panCenter.border.title\"))); // NOI18N\n panCenter.setLayout(new java.awt.BorderLayout());\n \n panAttr.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));\n panAttr.setLayout(new java.awt.BorderLayout());\n \n scpTableAttr.setPreferredSize(new java.awt.Dimension(300, 200));\n scpTableAttr.setViewportView(tblAttr);\n \n panAttr.add(scpTableAttr, java.awt.BorderLayout.CENTER);\n \n jToolBar1.setFloatable(false);\n \n cmdRemove.setIcon(new javax.swing.ImageIcon(\n getClass().getResource(\"/de/cismet/cids/abf/domainserver/images/remove_row.png\"))); // NOI18N\n cmdRemove.addActionListener(new java.awt.event.ActionListener() {\n \n @Override\n public void actionPerformed(final java.awt.event.ActionEvent evt) {\n cmdRemoveActionPerformed(evt);\n }\n });\n jToolBar1.add(cmdRemove);\n \n cmdUp.setIcon(new javax.swing.ImageIcon(\n getClass().getResource(\"/de/cismet/cids/abf/domainserver/images/up.png\"))); // NOI18N\n cmdUp.addActionListener(new java.awt.event.ActionListener() {\n \n @Override\n public void actionPerformed(final java.awt.event.ActionEvent evt) {\n cmdUpActionPerformed(evt);\n }\n });\n jToolBar1.add(cmdUp);\n \n cmdDown.setIcon(new javax.swing.ImageIcon(\n getClass().getResource(\"/de/cismet/cids/abf/domainserver/images/down.png\"))); // NOI18N\n cmdDown.addActionListener(new java.awt.event.ActionListener() {\n \n @Override\n public void actionPerformed(final java.awt.event.ActionEvent evt) {\n cmdDownActionPerformed(evt);\n }\n });\n jToolBar1.add(cmdDown);\n \n org.openide.awt.Mnemonics.setLocalizedText(btnOneToMany, \"1:N\");\n btnOneToMany.setFocusable(false);\n btnOneToMany.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnOneToMany.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(btnOneToMany);\n \n jtbAttrSync.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(\n jtbAttrSync,\n NbBundle.getMessage(NewCidsClassVisualPanel1.class, \"NewCidsClassVisualPanel1.jtbAttrSync.text\")); // NOI18N\n jtbAttrSync.setFocusable(false);\n jtbAttrSync.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jtbAttrSync.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jtbAttrSync.addActionListener(new java.awt.event.ActionListener() {\n \n @Override\n public void actionPerformed(final java.awt.event.ActionEvent evt) {\n jtbAttrSyncActionPerformed(evt);\n }\n });\n jToolBar1.add(jtbAttrSync);\n \n org.openide.awt.Mnemonics.setLocalizedText(lblSpace1, \" \");\n jToolBar1.add(lblSpace1);\n \n org.openide.awt.Mnemonics.setLocalizedText(\n lblAttrPolicy,\n org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.lblAttrPolicy.text\")); // NOI18N\n jToolBar1.add(lblAttrPolicy);\n jToolBar1.add(cboAttrPolicy);\n \n panAttr.add(jToolBar1, java.awt.BorderLayout.PAGE_START);\n \n panCenter.add(panAttr, java.awt.BorderLayout.CENTER);\n \n panTypes.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));\n panTypes.setLayout(new java.awt.BorderLayout());\n \n scpTypes.setBorder(javax.swing.BorderFactory.createTitledBorder(\n org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.scpTypes.border.title\"))); // NOI18N\n \n scpTypes.setViewportView(lstTypes);\n \n panTypes.add(scpTypes, java.awt.BorderLayout.CENTER);\n \n jToolBar2.setFloatable(false);\n \n org.openide.awt.Mnemonics.setLocalizedText(\n lblSortAndFilter,\n org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.lblSortAndFilter.text\")); // NOI18N\n jToolBar2.add(lblSortAndFilter);\n \n togOnlyUserTypes.setIcon(new javax.swing.ImageIcon(\n getClass().getResource(\"/de/cismet/cids/abf/domainserver/images/datatype.png\"))); // NOI18N\n togOnlyUserTypes.setSelected(true);\n togOnlyUserTypes.setToolTipText(org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.togOnlyUserTypes.tooltip\")); // NOI18N\n togOnlyUserTypes.setFocusPainted(false);\n togOnlyUserTypes.setPreferredSize(new java.awt.Dimension(50, 25));\n togOnlyUserTypes.addActionListener(new java.awt.event.ActionListener() {\n \n @Override\n public void actionPerformed(final java.awt.event.ActionEvent evt) {\n togOnlyUserTypesActionPerformed(evt);\n }\n });\n jToolBar2.add(togOnlyUserTypes);\n \n togOnlyDbTypes.setIcon(new javax.swing.ImageIcon(\n getClass().getResource(\"/de/cismet/cids/abf/domainserver/images/db_types.png\"))); // NOI18N\n togOnlyDbTypes.setSelected(true);\n togOnlyDbTypes.setToolTipText(org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.togOnlyDbTypes.tooltip\")); // NOI18N\n togOnlyDbTypes.setFocusPainted(false);\n togOnlyDbTypes.addActionListener(new java.awt.event.ActionListener() {\n \n @Override\n public void actionPerformed(final java.awt.event.ActionEvent evt) {\n togOnlyDbTypesActionPerformed(evt);\n }\n });\n jToolBar2.add(togOnlyDbTypes);\n \n grpTypeSort.add(togSortedAlpha);\n togSortedAlpha.setIcon(new javax.swing.ImageIcon(\n getClass().getResource(\"/de/cismet/cids/abf/domainserver/images/sort_alph.png\"))); // NOI18N\n togSortedAlpha.setToolTipText(org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.togSortedAlpha.tooltip\")); // NOI18N\n togSortedAlpha.setFocusPainted(false);\n togSortedAlpha.addActionListener(new java.awt.event.ActionListener() {\n \n @Override\n public void actionPerformed(final java.awt.event.ActionEvent evt) {\n togSortedAlphaActionPerformed(evt);\n }\n });\n jToolBar2.add(togSortedAlpha);\n \n grpTypeSort.add(togSortedLinks);\n togSortedLinks.setIcon(new javax.swing.ImageIcon(\n getClass().getResource(\"/de/cismet/cids/abf/domainserver/images/sort_links.png\"))); // NOI18N\n togSortedLinks.setSelected(true);\n togSortedLinks.setToolTipText(org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.togSortedLinks.tooltip\")); // NOI18N\n togSortedLinks.setFocusPainted(false);\n togSortedLinks.addActionListener(new java.awt.event.ActionListener() {\n \n @Override\n public void actionPerformed(final java.awt.event.ActionEvent evt) {\n togSortedLinksActionPerformed(evt);\n }\n });\n jToolBar2.add(togSortedLinks);\n \n togArrayTables.setIcon(new javax.swing.ImageIcon(\n getClass().getResource(\"/de/cismet/cids/abf/domainserver/images/array.png\"))); // NOI18N\n togArrayTables.setToolTipText(org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.togArrayTables.tooltip\")); // NOI18N\n togArrayTables.setFocusPainted(false);\n togArrayTables.addActionListener(new java.awt.event.ActionListener() {\n \n @Override\n public void actionPerformed(final java.awt.event.ActionEvent evt) {\n togArrayTablesActionPerformed(evt);\n }\n });\n jToolBar2.add(togArrayTables);\n \n panTypes.add(jToolBar2, java.awt.BorderLayout.NORTH);\n \n panCenter.add(panTypes, java.awt.BorderLayout.EAST);\n \n add(panCenter, java.awt.BorderLayout.CENTER);\n \n panhead.setLayout(new java.awt.GridBagLayout());\n \n panClass1.setLayout(new java.awt.GridBagLayout());\n \n org.openide.awt.Mnemonics.setLocalizedText(\n lblClassName,\n org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.lblClassName.text\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n panClass1.add(lblClassName, gridBagConstraints);\n \n org.openide.awt.Mnemonics.setLocalizedText(\n lblTableName,\n org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.lblTableName.text\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n panClass1.add(lblTableName, gridBagConstraints);\n \n org.openide.awt.Mnemonics.setLocalizedText(\n lblDesc,\n org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.lblDesc.text\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n panClass1.add(lblDesc, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.gridwidth = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n panClass1.add(txtDescription, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n panClass1.add(txtTablename, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.gridwidth = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n panClass1.add(txtClassname, gridBagConstraints);\n \n chkSync.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(\n chkSync,\n org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.chkSync.text\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n panClass1.add(chkSync, gridBagConstraints);\n \n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n gridBagConstraints.weightx = 1.0;\n panhead.add(panClass1, gridBagConstraints);\n \n org.openide.awt.Mnemonics.setLocalizedText(\n lblClassIcon,\n org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.lblClassIcon.text\")); // NOI18N\n \n org.openide.awt.Mnemonics.setLocalizedText(\n lblObjectIcon,\n org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.lblObjectIcon.text\")); // NOI18N\n \n org.openide.awt.Mnemonics.setLocalizedText(\n lblPrimKey,\n org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.lblPrimKey.text\")); // NOI18N\n \n final org.jdesktop.layout.GroupLayout panClass2Layout = new org.jdesktop.layout.GroupLayout(panClass2);\n panClass2.setLayout(panClass2Layout);\n panClass2Layout.setHorizontalGroup(\n panClass2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(\n panClass2Layout.createSequentialGroup().addContainerGap().add(\n panClass2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(lblPrimKey).add(\n lblClassIcon).add(lblObjectIcon)).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(\n panClass2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false).add(\n cboObjectIcons,\n 0,\n org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\n Short.MAX_VALUE).add(\n org.jdesktop.layout.GroupLayout.TRAILING,\n cboClassIcons,\n 0,\n org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\n Short.MAX_VALUE).add(\n org.jdesktop.layout.GroupLayout.TRAILING,\n txtPrimaryKeyfield,\n org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\n 105,\n Short.MAX_VALUE)).addContainerGap(\n org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\n Short.MAX_VALUE)));\n panClass2Layout.setVerticalGroup(\n panClass2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(\n panClass2Layout.createSequentialGroup().addContainerGap().add(\n panClass2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(lblPrimKey).add(\n txtPrimaryKeyfield,\n org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,\n org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\n org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)).addPreferredGap(\n org.jdesktop.layout.LayoutStyle.RELATED).add(\n panClass2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(\n cboClassIcons,\n org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,\n org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\n org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(lblClassIcon)).addPreferredGap(\n org.jdesktop.layout.LayoutStyle.RELATED).add(\n panClass2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(\n cboObjectIcons,\n org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,\n org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,\n org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(lblObjectIcon)).addContainerGap()));\n \n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;\n panhead.add(panClass2, gridBagConstraints);\n \n final org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(0, 0, Short.MAX_VALUE));\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(0, 0, Short.MAX_VALUE));\n \n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.weightx = 1.0;\n panhead.add(jPanel1, gridBagConstraints);\n \n add(panhead, java.awt.BorderLayout.PAGE_START);\n \n panClass3.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));\n \n org.openide.awt.Mnemonics.setLocalizedText(\n chkType,\n org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.chkType.text\")); // NOI18N\n panClass3.add(chkType);\n \n org.openide.awt.Mnemonics.setLocalizedText(\n chkIndexed,\n org.openide.util.NbBundle.getMessage(\n NewCidsClassVisualPanel1.class,\n \"NewCidsClassVisualPanel1.chkIndexed.text\")); // NOI18N\n panClass3.add(chkIndexed);\n \n add(panClass3, java.awt.BorderLayout.PAGE_END);\n }",
"private void $$$setupUI$$$() {\n topPanel = new JPanel();\n topPanel.setLayout(new GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));\n headerLabel = new JLabel();\n headerLabel.setText(\"Header\");\n topPanel.add(headerLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPanel = new JPanel();\n contentPanel.setLayout(new BorderLayout(0, 0));\n topPanel.add(contentPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n buttonBack = new JButton();\n buttonBack.setText(\"Back\");\n panel1.add(buttonBack, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonNext = new JButton();\n buttonNext.setText(\"Next\");\n panel1.add(buttonNext, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel1.add(buttonCancel, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n statusLabel = new JLabel();\n statusLabel.setText(\"Status\");\n panel2.add(statusLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private void createpanel4() {\r\n\t\tpanels[3].setLayout(new FlowLayout(FlowLayout.CENTER, 20, 0));\r\n\r\n\t\texecute = new JButton(\"Login\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\texecute.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\texecute.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\texecute.setForeground(Color.BLACK);\r\n\t\texecute.setBorderPainted(true);\r\n\t\texecute.setContentAreaFilled(false);\r\n\t\texecute.setFont(customFont.deriveFont(15f));\r\n\r\n\t\tcancel = new JButton(\"Cancel\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tcancel.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tcancel.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tcancel.setForeground(Color.BLACK);\r\n\t\tcancel.setBorderPainted(true);\r\n\t\tcancel.setContentAreaFilled(false);\r\n\t\tcancel.setFont(customFont.deriveFont(15f));\r\n\r\n\t\tcreateAccount = new JButton(\"New Account\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tcreateAccount.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tcreateAccount.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tcreateAccount.setForeground(Color.BLACK);\r\n\t\tcreateAccount.setBorderPainted(true);\r\n\t\tcreateAccount.setContentAreaFilled(false);\r\n\t\tcreateAccount.setFont(customFont.deriveFont(10f));\r\n\r\n\t\tcancel.setPreferredSize(new Dimension(120, 30));\r\n\t\tcreateAccount.setPreferredSize(new Dimension(120, 30));\r\n\t\texecute.setPreferredSize(new Dimension(120, 30));\r\n\r\n\t\tpanels[3].add(execute);\r\n\t\tpanels[3].add(createAccount);\r\n\t\tpanels[3].add(cancel);\r\n\t\tpanels[3].setOpaque(false);\r\n\t\tallComponents.add(panels[3]);\r\n\t\tthis.backPanel.add(allComponents);\r\n\t\tthis.getContentPane().add(backPanel);\r\n\t\tpanels[3].revalidate();\r\n\r\n\t\tcreateAccount.addMouseListener(\r\n\t\t\t\tnew LoginListener(createAccount, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t\tcancel.addMouseListener(new LoginListener(cancel, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t\texecute.addMouseListener(\r\n\t\t\t\tnew LoginListener(execute, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t}",
"public void createButtonGrid() {\n\t\tbuttonPanel.setOpaque(false);\n\t\t\n\t\t// designs array of buttons\n\t\tfor (int counter = 1; counter <= 20; counter++) {\n\t\t\tbuttonArray[counter] = new JButton();\n\t\t\tbuttonArray[counter].setOpaque(false);\n\t\t\tbuttonArray[counter].setVisible(true);\n\t\t\tbuttonArray[counter].setBorderPainted(false);\n\t\t\tbuttonArray[counter].setHorizontalTextPosition(JButton.CENTER);\n\t\t\tbuttonArray[counter].setVerticalTextPosition(SwingConstants.CENTER);\n\t\t\tbuttonArray[counter].setFont(new Font(\"Courier\", Font.PLAIN, 15));\n\t\t\tbuttonArray[counter].setText(\"<html><font color = white>\" + Integer.toString(counter) + \"</font></html>\");\n\t\t\t// add action listener to each button\n\t\t\tbuttonArray[counter].addActionListener(eventsMain);\n\t\t\t// add each button to the container\n\t\t\tbuttonPanel.add(buttonArray[counter]);\n\t\t}\n\t\t\n\t\t// set colour for ach row of buttons\n\t\tfor (int counter = 1; counter <= 20; counter++) {\n\t\t\tif (counter >= 1 && counter < 6) {\n\t\t\t\tbuttonArray[counter].setIcon(btnBlue);\n\t\t\t} else if (counter > 5 && counter < 11) {\n\t\t\t\tbuttonArray[counter].setIcon(btnGreen);\n\t\t\t} else if (counter > 10 && counter < 16) {\n\t\t\t\tbuttonArray[counter].setIcon(btnRed);\n\t\t\t} else if (counter > 15 && counter < 21) {\n\t\t\t\tbuttonArray[counter].setIcon(btnGray);\n\t\t\t}\n\t\t}\n\t}",
"private CellPanel defineUI()\n\t{\n\t\t//TODO define all UI Stuff here - not needed if GWT Designer is used as it will do the work for us.\n\n\t\tcellPanelContainer = new VerticalPanel();\t\t\n\t cellPanelContainer.setSize(\"598px\", \"530px\");\n\t\treturn cellPanelContainer;\n\t}",
"private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n content = new JPanel();\n content.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(content, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n tabbedPane1 = new JTabbedPane();\n content.add(tabbedPane1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n Gesture = new JPanel();\n Gesture.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n tabbedPane1.addTab(\"Gesture\", Gesture);\n final JLabel label1 = new JLabel();\n label1.setIcon(new ImageIcon(getClass().getResource(\"/reference/by_gesture.png\")));\n label1.setText(\"\");\n Gesture.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private void addComponents(){\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.anchor = GridBagConstraints.WEST;\n constraints.insets = new Insets(5, 5, 5, 5);\n constraints.fill = GridBagConstraints.BOTH;\n \n // Add components to the panel\n // Note>> the constraints are applied to both panels\n constraints.gridx = 0;\n constraints.gridy = 0; \n subPanel1.add(onDo1, constraints); // Add button to pane 1\n\n constraints.gridx = 1;\n subPanel1.add(onDo2, constraints); // Add button to pane 1\n \n constraints.gridx = 0;\n constraints.gridy = 1; \n subPanel1.add(onDo3, constraints); // Add button to pane 1\n subPanel2.add(l1, constraints); // Add button to pane 2\n \n constraints.gridx = 1;\n constraints.gridy = 1;\n subPanel1.add(onDo4, constraints); // Add button to pane 1\n \n\n // Set border for sub panel 1 \n subPanel1.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createEtchedBorder(), \"Events\"));\n \n // Set border for sub panel 2 \n subPanel2.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createEtchedBorder(), \"Debug\"));\n }",
"private Component doInit() {\n\t\tJXPanel panel = new JXPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\n\t\t// create a label\n\t\tfinal JXLabel label = new JXLabel();\n\t\tlabel.setFont(new Font(\"Segoe UI\", Font.BOLD, 14));\n\t\tlabel.setText(\"task pane item 1 : a label\");\n\t\tlabel.setIcon(Images.NetworkDisconnected.getIcon(32, 32));\n\t\tlabel.setHorizontalAlignment(JXLabel.LEFT);\n\t\tlabel.setBackgroundPainter(getPainter());\n\n\t\t// tweak with the UI defaults for the taskpane and taskpanecontainer\n\t\tchangeUIdefaults();\n\n\t\t// create a taskpanecontainer\n\t\tJXTaskPaneContainer taskpanecontainer = new JXTaskPaneContainer();\n\n\t\t// create a taskpane, and set it's title and icon\n\t\tJXTaskPane taskpane = new JXTaskPane();\n\t\ttaskpane.setTitle(\"My Tasks\");\n\t\ttaskpane.setIcon(Images.Quit.getIcon(24, 24));\n\n\t\t// add various actions and components to the taskpane\n\t\ttaskpane.add(label);\n\t\ttaskpane.add(new AbstractAction() {\n\t\t\tprivate static final long serialVersionUID = -7314920635669764914L;\n\t\t\t{\n\t\t\t\tputValue(Action.NAME, \"task pane item 2 : an action\");\n\t\t\t\tputValue(Action.SHORT_DESCRIPTION, \"perform an action\");\n\t\t\t\tputValue(Action.SMALL_ICON,\n\t\t\t\t\t\tImages.NetworkConnected.getIcon(32, 32));\n\t\t\t}\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlabel.setText(\"an action performed\");\n\t\t\t}\n\t\t});\n\n\t\t// add the task pane to the taskpanecontainer\n\t\ttaskpanecontainer.add(taskpane);\n\n\t\t// set the transparency of the JXPanel to 50% transparent\n\t\tpanel.setAlpha(0.7f);\n\n\t\tpanel.add(taskpanecontainer, BorderLayout.CENTER);\n\t\tpanel.setPreferredSize(new Dimension(250, 200));\n\n\t\treturn panel;\n\t}",
"public void prepareTheTable() {\n setHiddenPiece();\n BGrave = new JButton[12];\n RGrave = new JButton[12];\n for(int i = 0; i < 12; i++) {\n RGrave[i] = new JButton(controller.getPlayer(2).getMyCollection().getPiece(i).getIcon());\n controller.getPlayer(2).getMyCollection().setPiece(i);\n RGrave[i].setToolTipText(\"0/\" + (new Collection('R')).getQuantity(i));\n \n BGrave[i] = new JButton(controller.getPlayer(1).getMyCollection().getPiece(i).getIcon());\n controller.getPlayer(1).getMyCollection().setPiece(i);\n BGrave[i].setToolTipText(\"0/\" + (new Collection('B')).getQuantity(i));\n }\n NJPanel.removeAll();\n NJPanel.setLayout(new GridLayout(10, 12));\n for(int i = 1; i < 9; i++) {\n for(int j = 1; j < 11; j++) {\n if(controller.getBoard().getPiece(i, j) instanceof MovablePiece) {\n MovablePiece tmp = (MovablePiece) controller.getBoard().getPiece(i, j);\n if(tmp.isMoving(controller.getBoard().getTable(), i, j) == false) { \n Cell[i][j].setEnabled(false);\n } else {\n Cell[i][j].setEnabled(true);\n }\n }\n }\n } \n for(int j = 0; j < 12; j++) {\n NJPanel.add(BGrave[j]);\n }\n JButton tmp;\n for(int i = 1; i < 9; i++) {\n tmp = new JButton();\n tmp.setVisible(false);\n NJPanel.add(tmp);\n for(int j = 1; j < 11; j++) {\n if(i < 4) {\n Cell[i][j].setIcon(new ImageIcon(\"pieces\\\\blueHidden.png\"));\n Cell[i][j].setEnabled(false);\n }\n if(!(controller.getBoard().getPiece(i, j) instanceof Trap) && !(controller.getBoard().getPiece(i, j) instanceof Flag)) {\n Cell[i][j].removeActionListener(mixSorting);\n Cell[i][j].removeActionListener(setSorting);\n Cell[i][j].addActionListener(handler);\n } else {\n Cell[i][j].setEnabled(false);\n }\n NJPanel.add(Cell[i][j]);\n }\n tmp = new JButton();\n tmp.setVisible(false);\n NJPanel.add(tmp);\n }\n for(int j = 0; j < 12; j++) {\n NJPanel.add(RGrave[j]);\n }\n add(NJPanel);\n }",
"public MenuPanel(ActionListener addCreature1, ActionListener addCreature2,\n ActionListener addCreature3, ActionListener placePortal,\n String name, int winCondition) {\n\n setLayout(new GridLayout(9,0));\n setPreferredSize(new Dimension(200,700));\n Font f = new Font(\"Courier New\", Font.PLAIN, 15);\n Font f2 = new Font(\"Courier New\", Font.PLAIN, 25);\n this.winCondition = winCondition;\n JLabel mapName = new JLabel(name,SwingConstants.CENTER);\n mapName.setFont(f2);\n add(mapName);\n\n JButton button = new JButton();\n button.setHorizontalAlignment(SwingConstants.LEFT);\n button.setFont(f);\n button.setText(\"<html><b>Speed Demon</b><br>Cost: \" +\n SpeedDemon.COST + \"<br>Speed: \"+SpeedDemon.SPEED+\"<br>HP: \"+\n SpeedDemon.MAXHEALTH+\"</html>\");\n button.setIcon(new ImageIcon(SpeedDemon.image));\n button.addActionListener(addCreature1);\n add(button);\n\n button = new JButton();\n button.setHorizontalAlignment(SwingConstants.LEFT);\n button.setFont(f);\n button.setText(\"<html><b>Grunt</b><br>Cost: \" +\n Grunt.COST + \"<br>Speed: \"+Grunt.SPEED+\"<br>HP: \"+\n Grunt.MAXHEALTH+\"</html>\");\n button.setIcon(new ImageIcon(Grunt.image));\n button.addActionListener(addCreature2);\n add(button);\n\n button = new JButton();\n button.setHorizontalAlignment(SwingConstants.LEFT);\n button.setFont(f);\n button.setText(\"<html><b>PortalusTotalus</b><br>Cost: \" +\n PortalusTotalus.COST + \"<br>Speed: \"+ PortalusTotalus.SPEED +\n \"<br>HP: \"+ PortalusTotalus.MAXHEALTH +\"</html>\");\n button.setIcon(new ImageIcon(PortalusTotalus.image));\n button.addActionListener(addCreature3);\n add(button);\n\n button = new JButton();\n button.setFont(f);\n button.setHorizontalAlignment(SwingConstants.LEFT);\n button.setIcon(new ImageIcon(ImageLoader.getImageLoader().getImage(\n \"portal.png\")));\n button.setText(\"<html><b>Place Portal</b></html>\");\n button.addActionListener(placePortal);\n add(button);\n\n winProgressLabel = new JLabel(\"\",SwingConstants.LEFT);\n winProgressLabel.setFont(f);\n\n creditLabel = new JLabel(\"\",SwingConstants.LEFT);\n creditLabel.setFont(f);\n\n scoreLabel = new JLabel(\"\",SwingConstants.LEFT);\n scoreLabel.setFont(f);\n\n updateStats(0,0,0);\n add(winProgressLabel);\n add(creditLabel);\n add(scoreLabel);\n\n }",
"private void initButton() {\r\n\t\tthis.panelButton = new JPanel();\r\n\t\tthis.panelButton.setLayout(new BoxLayout(this.panelButton,\r\n\t\t\t\tBoxLayout.LINE_AXIS));\r\n\t\tthis.modifyButton = new JButton(\"Modify\");\r\n\t\tthis.buttonSize(this.modifyButton);\r\n\t\tthis.deleteButton = new JButton(\"Delete\");\r\n\t\tthis.buttonSize(this.deleteButton);\r\n\t\tthis.cancelButton = new JButton(\"Cancel\");\r\n\t\tthis.buttonSize(this.cancelButton);\r\n\r\n\t\tthis.modifyButton.addActionListener(this.editWeaponControl);\r\n\t\tthis.deleteButton.addActionListener(this.editWeaponControl);\r\n\t\tthis.cancelButton.addActionListener(this.editWeaponControl);\r\n\r\n\t\tthis.panelButton.add(this.modifyButton);\r\n\t\tthis.panelButton.add(Box.createRigidArea(new Dimension(15, 0)));\r\n\t\tthis.panelButton.add(this.deleteButton);\r\n\t\tthis.panelButton.add(Box.createRigidArea(new Dimension(15, 0)));\r\n\t\tthis.panelButton.add(this.cancelButton);\r\n\t}",
"private void buildElements() {\n JPanel mainPanel = new JPanel(new BorderLayout());\n\n String[] columnNames = {\n \"Id\",\n \"Number of transaction\",\n \"Transaction price\",\n \"Paid type\",\n \"Buyer\",\n \"Amazon SKU\",\n \"Action\",\n };\n\n Object[][] emptyData = {};\n\n providerTableModel = new DefaultTableModel(emptyData, columnNames);\n\n providerTable = new JTable(providerTableModel) {\n public TableCellRenderer getCellRenderer(int row, int column) {\n return new ProviderTableCellRenderer();\n }\n };\n\n providerTable.addMouseListener(new ProviderTableMouseListener());\n\n providerTable.getTableHeader().setReorderingAllowed(false);\n\n /*providerTable.getColumnModel().getColumn(6).setMinWidth(100);\n providerTable.getColumnModel().getColumn(6).setMaxWidth(100);\n providerTable.getColumnModel().getColumn(6).setPreferredWidth(100);*/\n\n // Set rows height for providerTable (for all rows).\n providerTable.setRowHeight(40);\n\n // Set 'Actions' column width. All buttons normally see.\n //TableColumnModel columnModel = providerTable.getColumnModel();\n //columnModel.getColumn(5).setPreferredWidth(120);\n\n JScrollPane tableScrollPane = new JScrollPane(providerTable);\n\n mainPanel.add(tableScrollPane, BorderLayout.CENTER);\n\n this.add(mainPanel);\n }",
"private void buttonPanel() {\n totalButton = new JButton(\"Calculate Total\");\r\n totalButton.setPreferredSize(new Dimension(150, 60));\r\n\r\n //add an action listener to the total.\r\n totalButton.addActionListener(new TotalButtonListener());\r\n\r\n //create a button to Submit Order.\r\n orderButton = new JButton(\"Submit Order\");\r\n orderButton.setPreferredSize(new Dimension(150, 60));\r\n orderButton.setEnabled(false);\r\n\r\n //add an action listener to the button.\r\n orderButton.addActionListener(new OrderButtonListener());\r\n\r\n //create a button to reset the checkboxes.\r\n resetButton = new JButton(\"Reset\");\r\n resetButton.setPreferredSize(new Dimension(150, 60));\r\n\r\n //add an action listener to the button.\r\n resetButton.addActionListener(new ResetButtonListener());\r\n\r\n //create a button to exit the application.\r\n exitButton = new JButton(\"Exit\");\r\n exitButton.setPreferredSize(new Dimension(150, 60));\r\n\r\n //add an action listener to the button.\r\n exitButton.addActionListener(new ExitButtonListener());\r\n\r\n //put the buttons in their own panel.\r\n buttonPanel = new JPanel();\r\n buttonPanel.setLayout(new GridLayout(1, 4));\r\n buttonPanel.add(totalButton);\r\n buttonPanel.add(orderButton);\r\n buttonPanel.add(resetButton);\r\n buttonPanel.add(exitButton);\r\n }",
"private void initComponents(MinesweeperView frame, int[] gridef, Checkerboard panGrid, Score panScore) {\r\n frame.add(new JButton());\r\n String[] table = {\"Retour et sauvegarder\", \"Quitter et sauvegarder\", \"Rejouer\"};\r\n for (int i = 0 ; i < 3 ; i++) {\r\n JButton btn = new JButton(table[i]);\r\n btn.setSize(200, 50);\r\n btn.setLocation(953, 470+60*i);\r\n btn.addActionListener(new ListenerGame(frame, panGrid, panScore, table, gridef));\r\n frame.add(btn);\r\n }\r\n }",
"public void buildGUI() {\r\n\t\t//Top menu\r\n\t\tHStack menuHStack= new HStack();\r\n\t\tmenuHStack.setHeight(25);\r\n\t\tmenuHStack.setWidth(200);\r\n\t\tmenuHStack.addMember(createLoginLogoutPanel());\r\n\t\t \r\n\t\t//The rest\r\n\t\tVStack swagItemsVStack = new VStack();\r\n\t\tswagItemsVStack.addMember(createSearchBox());\r\n\t\tswagItemsVStack.addMember(createSortDropDown());\r\n\t\tswagItemsVStack.addMember(createItemsTileGrid());\r\n\t\t\r\n\t\t//hide app until data has loaded\r\n\t\tDOM.setStyleAttribute(RootPanel.get(\"gwtApp\").getElement(), \"display\", \"none\");\r\n\t\titemsTileGrid.fetchData(null, new DSCallback() {\r\n\t\t\tpublic void execute(DSResponse response, Object rawData, DSRequest request) {\r\n\t\t\t\t//hide loading div and it's border\r\n\t\t\t\tDOM.setInnerHTML(RootPanel.get(\"loading\").getElement(),\"\");\r\n\t\t\t\tDOM.setStyleAttribute(DOM.getElementById(\"loading\"), \"border\", \"0\");\r\n\t\t\t\t//show app\r\n\t\t\t\tDOM.setStyleAttribute(RootPanel.get(\"gwtApp\").getElement(), \"display\", \"block\");\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tswagItemsVStack.setWidth(350);\r\n\t\tswagItemsVStack.setHeight(552);\r\n\t\tswagItemsVStack.setBorder(\"1px solid #C0C3C7\"); //blue like the rest of the app\r\n\t\tswagItemsVStack.setShowEdges(false);\r\n\t\tswagItemsVStack.setCanDragResize(true);\r\n\t\tswagItemsVStack.setShowResizeBar(true);\r\n\t\t\r\n\t\t//Put itemsTileGrid next to createEditComments\r\n\t\tHStack itemsEditCommentsHStack = new HStack();\r\n\t\titemsEditCommentsHStack.addMember(swagItemsVStack);\r\n//\t\taddImageUpload(itemsAndEditHStack);\r\n\t\titemsEditCommentsHStack.addMember(createEditForm());\r\n\t\titemsEditCommentsHStack.setHeight(720);\r\n\t\t\r\n\t\tVStack mainStack = new VStack();\r\n\t\t//vertical scrolling if browser window is too small\r\n\t\tmainStack.setOverflow(Overflow.AUTO); \r\n\t\tmainStack.setWidth100();\r\n\t\tmainStack.setHeight100();\r\n\t\tmainStack.addMember(menuHStack);\r\n\t\tmainStack.addMember(itemsEditCommentsHStack);\r\n\t\t\r\n\t\tRootPanel.get(\"gwtApp\").add(mainStack); //anchored on GWT html page\r\n\r\n\t\tmainStack.draw();\r\n\t}",
"public void begin() {\r\n\t\t//Declaring GUI objects\r\n\t\tthis.openDialog();\r\n\t\tjf=new JFrame (\"JavaPuzzle\");\r\n\t\tgridPanel = new JPanel();\r\n\t\tjf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tJPanel buttonBar= new JPanel();\r\n\t\tJPanel textArea = new JPanel();\r\n\t\tJPanel wrapper = new JPanel();\r\n\r\n\t\t//Button area handling\r\n\t\tJButton load = new JButton(\"Load Another Image\");\r\n\t\tload.addActionListener(new LoadListener());\r\n\t\tJButton showImage = new JButton(\"Show Orginal Image\");\r\n\t\tshowImage.addActionListener(new showImage());\r\n\t\tJButton exit=new JButton(\"Exit\");\r\n\t\texit.addActionListener(new exitClass());\r\n\t\tbuttonBar.add(load);\r\n\t\tbuttonBar.add(showImage);\r\n\t\tbuttonBar.add(exit);\r\n\r\n\t\t//text area handling\r\n\t\ttext = new JTextArea();\r\n\r\n\t\ttext.setLineWrap(true);\r\n\t\tJScrollPane scroller = new JScrollPane(text);\r\n\t\tscroller.setPreferredSize(new Dimension(750, 50));\r\n\t\tscroller.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\tscroller.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\r\n\t\ttext.setText(\"Game started!\");\r\n\t\ttextArea.add(scroller);\r\n\r\n\t\twrapper.add(textArea);\r\n\t\twrapper.add(buttonBar);\r\n\t\twrapper.setLayout(new BoxLayout(wrapper, BoxLayout.Y_AXIS));\r\n\r\n\t\t//Image/Play Area handling\r\n\r\n\r\n\t\tImage temp1= display_img.getImage();\r\n\t\tImageIcon img=new ImageIcon(temp1.getScaledInstance(800, 800, Image.SCALE_SMOOTH));\r\n\t\timg1 = img.getImage();\r\n\r\n\t\tgridPanel.setLayout(new GridLayout (10,10));\r\n\t\tgrid = new JButton[10][10];\r\n\t\tfor(int y=0;y<10;y++) {\r\n\t\t\tfor(int x=0; x<10; x++) {\r\n\t\t\t\tImage image = Toolkit.getDefaultToolkit().createImage(new FilteredImageSource(img1.getSource(), new CropImageFilter(x * 800 / 10, y * 800 / 10, 100, 100)));\r\n\t\t\t\tImageIcon icon = new ImageIcon(image);\r\n\t\t\t\tJButton temp = new JButton(icon);\r\n\t\t\t\ttemp.putClientProperty(\"position\", new Point(y,x));\r\n\t\t\t\tsolutions.add(new Point(y,x));\r\n\t\t\t\ttemp.putClientProperty(\"isLocked\", false);\r\n\t\t\t\ttemp.addMouseListener(new DragMouseAdapter());\r\n\t\t\t\tgrid[x][y]=temp;\r\n\t\t\t\t//gridPanel.add(grid[x][y]);\r\n\t\t\t\tbuttons.add(temp);\r\n\t\t\t}\r\n\t\t}\r\n\t\tCollections.shuffle(buttons);\r\n\t\tfor(JButton j: buttons) {\r\n\t\t\tgridPanel.add(j);\r\n\t\t}\r\n\r\n\t\tjf.getContentPane().add(BorderLayout.SOUTH, wrapper);\r\n\r\n\r\n\t\tjf.add(gridPanel);\r\n\t\tjf.pack();\r\n\t\tjf.setSize(800, 1200);\r\n\t\tjf.setVisible(true);\r\n\t}",
"private void setupPanels() {\n\t\tsplitPanel.addEast(east, Window.getClientWidth() / 5);\n\t\tsplitPanel.add(battleMatCanvasPanel);\n\t\tpanelsSetup = true;\n\t}",
"private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n panel1.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(panel2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel2.add(buttonCancel, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n contentPane.add(scrollPane1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(3, 4, new Insets(0, 0, 0, 0), 5, 5));\n scrollPane1.setViewportView(panel3);\n final JLabel label1 = new JLabel();\n label1.setFont(new Font(label1.getFont().getName(), Font.BOLD, label1.getFont().getSize()));\n label1.setText(\"mlocarna:\");\n panel3.add(label1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n panel3.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 4, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setBackground(new Color(-65485));\n label2.setFont(new Font(label2.getFont().getName(), Font.BOLD, label2.getFont().getSize()));\n label2.setOpaque(false);\n label2.setText(\"RNAsubopt:\");\n panel3.add(label2, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n random_sample = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"5\");\n defaultComboBoxModel1.addElement(\"10\");\n defaultComboBoxModel1.addElement(\"15\");\n defaultComboBoxModel1.addElement(\"20\");\n random_sample.setModel(defaultComboBoxModel1);\n panel3.add(random_sample, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n useMlocarna = new JCheckBox();\n useMlocarna.setSelected(true);\n useMlocarna.setText(\"\");\n panel3.add(useMlocarna, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"suboptimal structures computed\");\n panel3.add(label3, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"use to compute the folding landscape \");\n panel3.add(label4, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n panel3.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(0, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n panel3.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(1, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }",
"private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel1.add(scrollPane1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n table1.setAutoscrolls(true);\n table1.setColumnSelectionAllowed(false);\n scrollPane1.setViewportView(table1);\n }",
"public static void IngameMenuComponents() {\n\t\tInterface.continueGame.setPreferredSize(Interface.dim);\n\t\tInterface.continueGame.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.continueGame.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.continueGame.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.continueGame.setForeground(Color.white);\n\t\t\n\t\tInterface.saveGame.setPreferredSize(Interface.dim);\n\t\tInterface.saveGame.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.saveGame.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.saveGame.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.saveGame.setForeground(Color.white);\n\t\t\n\t\tInterface.saveAs.setForeground(Color.red);\n\t\tInterface.wrongName.setForeground(Color.red);\n\t\tInterface.saveName.setPreferredSize(Interface.dim);\n\t\t\n\t\tInterface.restart.setPreferredSize(Interface.dim);\n\t\tInterface.restart.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.restart.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.restart.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.restart.setForeground(Color.white);\n\t\t\n\t\t\n\t}",
"public void createContents(){\n\t\t// Creates control for ScrolledCompositeController controlItemSCSCLC\n\t\tcontrolItemSCSCLC = new ScrolledCompositeController(\"controlItemSC\", coreController, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tsetDirtyManagement(false);\n\t\t\t\t\tgetComposite().setLayout(new MigLayout(\"wrap 2\",\"[align right]10[fill,grow]\",\"[]\"));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t// Creates control for LabelController background$1LBL\n\t\tbackground$1LBL = new LabelController(\"background$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"background\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateBackground(this);\n\t\t// Creates control for LabelController backgroundImage$1LBL\n\t\tbackgroundImage$1LBL = new LabelController(\"backgroundImage$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"backgroundImage\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateBackgroundImage(this);\n\t\t// Creates control for LabelController bounds$1LBL\n\t\tbounds$1LBL = new LabelController(\"bounds$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"bounds\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateBounds(this);\n\t\t// Creates control for LabelController capture$1LBL\n\t\tcapture$1LBL = new LabelController(\"capture$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"capture\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateCapture(this);\n\t\t// Creates control for LabelController containerBackground$1LBL\n\t\tcontainerBackground$1LBL = new LabelController(\"containerBackground$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerBackground\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerBackground(this);\n\t\t// Creates control for LabelController containerBackgroundImage$1LBL\n\t\tcontainerBackgroundImage$1LBL = new LabelController(\"containerBackgroundImage$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerBackgroundImage\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerBackgroundImage(this);\n\t\t// Creates control for LabelController containerBounds$1LBL\n\t\tcontainerBounds$1LBL = new LabelController(\"containerBounds$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerBounds\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerBounds(this);\n\t\t// Creates control for LabelController containerCapture$1LBL\n\t\tcontainerCapture$1LBL = new LabelController(\"containerCapture$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerCapture\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerCapture(this);\n\t\t// Creates control for LabelController containerFocus$1LBL\n\t\tcontainerFocus$1LBL = new LabelController(\"containerFocus$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerFocus\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerFocus(this);\n\t\t// Creates control for LabelController containerFont$1LBL\n\t\tcontainerFont$1LBL = new LabelController(\"containerFont$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerFont\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerFont(this);\n\t\t// Creates control for LabelController containerForeground$1LBL\n\t\tcontainerForeground$1LBL = new LabelController(\"containerForeground$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerForeground\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerForeground(this);\n\t\t// Creates control for LabelController containerLayoutData$1LBL\n\t\tcontainerLayoutData$1LBL = new LabelController(\"containerLayoutData$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerLayoutData\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerLayoutData(this);\n\t\t// Creates control for LabelController containerLocation$1LBL\n\t\tcontainerLocation$1LBL = new LabelController(\"containerLocation$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerLocation\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerLocation(this);\n\t\t// Creates control for LabelController containerMenu$1LBL\n\t\tcontainerMenu$1LBL = new LabelController(\"containerMenu$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerMenu\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerMenu(this);\n\t\t// Creates control for LabelController containerRedraw$1LBL\n\t\tcontainerRedraw$1LBL = new LabelController(\"containerRedraw$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerRedraw\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerRedraw(this);\n\t\t// Creates control for LabelController containerSize$1LBL\n\t\tcontainerSize$1LBL = new LabelController(\"containerSize$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerSize\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerSize(this);\n\t\t// Creates control for LabelController containerStyle$1LBL\n\t\tcontainerStyle$1LBL = new LabelController(\"containerStyle$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerStyle\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerStyle(this);\n\t\t// Creates control for LabelController editable$1LBL\n\t\teditable$1LBL = new LabelController(\"editable$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"editable\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateEditable(this);\n\t\t// Creates control for LabelController enabled$1LBL\n\t\tenabled$1LBL = new LabelController(\"enabled$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"widget\", \"enabled\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateEnabled(this);\n\t\t// Creates control for LabelController focus$1LBL\n\t\tfocus$1LBL = new LabelController(\"focus$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"focus\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateFocus(this);\n\t\t// Creates control for LabelController font$1LBL\n\t\tfont$1LBL = new LabelController(\"font$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"font\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateFont(this);\n\t\t// Creates control for LabelController foreground$1LBL\n\t\tforeground$1LBL = new LabelController(\"foreground$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"foreground\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateForeground(this);\n\t\t// Creates control for LabelController layoutData$1LBL\n\t\tlayoutData$1LBL = new LabelController(\"layoutData$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"layoutData\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateLayoutData(this);\n\t\t// Creates control for LabelController location$1LBL\n\t\tlocation$1LBL = new LabelController(\"location$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"location\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateLocation(this);\n\t\t// Creates control for LabelController menu$1LBL\n\t\tmenu$1LBL = new LabelController(\"menu$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"menu\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateMenu(this);\n\t\t// Creates control for LabelController orientation$1LBL\n\t\torientation$1LBL = new LabelController(\"orientation$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"orientation\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateOrientation(this);\n\t\t// Creates control for LabelController redraw$1LBL\n\t\tredraw$1LBL = new LabelController(\"redraw$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"redraw\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateRedraw(this);\n\t\t// Creates control for LabelController size$1LBL\n\t\tsize$1LBL = new LabelController(\"size$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"size\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateSize(this);\n\t\t// Creates control for LabelController style$1LBL\n\t\tstyle$1LBL = new LabelController(\"style$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"widget\", \"style\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateStyle(this);\n\t\t// Creates control for LabelController tabs$1LBL\n\t\ttabs$1LBL = new LabelController(\"tabs$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"tabs\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateTabs(this);\n\t\t// Creates control for LabelController text$1LBL\n\t\ttext$1LBL = new LabelController(\"text$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"text\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateText(this);\n\t\t// Creates control for LabelController textLimit$1LBL\n\t\ttextLimit$1LBL = new LabelController(\"textLimit$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"textLimit\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateTextLimit(this);\n\t\t// Creates control for LabelController toolTipText$1LBL\n\t\ttoolTipText$1LBL = new LabelController(\"toolTipText$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"widget\", \"toolTipText\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateToolTipText(this);\n\t\t// Creates control for LabelController visible$1LBL\n\t\tvisible$1LBL = new LabelController(\"visible$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"visible\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateVisible(this);\n\t}",
"private void createComponents() {\n\n add(createSetDataPanel(), BorderLayout.NORTH);\n add(createResourcesListAndButtonsPanel(), BorderLayout.CENTER);\n }",
"public JPanel emptyGameControllerView(){\n JPanel p_globalControls = new JPanel(new GridBagLayout());\n p_globalControls.setOpaque(false);\n \n GridBagConstraints c = new GridBagConstraints();\n\n //init\n JButton b_roll = new JButton();\n JButton b_bet5 = new JButton();\n JButton b_bet10 = new JButton();\n JButton b_deposit = new JButton();\n \n //format\n b_roll.setOpaque(false);\n b_roll.setMargin(new Insets(0, 0, 0, 0));\n b_roll.setBorder(new EmptyBorder(0, 0, 0, 0));\n try {\n Image img = ImageIO.read(getClass().getResource(\"./graphics/button_Roll.png\"));\n Image newimg = img.getScaledInstance(100,50,java.awt.Image.SCALE_SMOOTH ); \n b_roll.setIcon(new ImageIcon(newimg));\n }catch (IOException ex) {\n //do nothing...\n }\n b_bet5.setOpaque(false);\n b_bet5.setMargin(new Insets(0, 0, 0, 0));\n b_bet5.setBorder(new EmptyBorder(0, 0, 0, 0));\n try {\n Image img = ImageIO.read(getClass().getResource(\"./graphics/button_Bet5.png\"));\n Image newimg = img.getScaledInstance(100,50,java.awt.Image.SCALE_SMOOTH ); \n b_bet5.setIcon(new ImageIcon(newimg));\n }catch (IOException ex) {\n //do nothing...\n }\n b_bet10.setOpaque(false);\n b_bet10.setMargin(new Insets(0, 0, 0, 0));\n b_bet10.setBorder(new EmptyBorder(0, 0, 0, 0));\n try {\n Image img = ImageIO.read(getClass().getResource(\"./graphics/button_Bet10.png\"));\n Image newimg = img.getScaledInstance(100,50,java.awt.Image.SCALE_SMOOTH ); \n b_bet10.setIcon(new ImageIcon(newimg));\n }catch (IOException ex) {\n //do nothing...\n }\n b_deposit.setOpaque(false);\n b_deposit.setMargin(new Insets(0, 0, 0, 0));\n b_deposit.setBorder(new EmptyBorder(0, 0, 0, 0));\n try {\n Image img = ImageIO.read(getClass().getResource(\"./graphics/button_Deposit.png\"));\n Image newimg = img.getScaledInstance(145,30,java.awt.Image.SCALE_SMOOTH ); \n b_deposit.setIcon(new ImageIcon(newimg));\n }catch (IOException ex) {\n //do nothing...\n }\n \n //add to parent container\n c.anchor = GridBagConstraints.NORTHEAST;\n c.weightx = 1.0;\n c.weighty = 1.0;\n c.insets = new Insets(0,0,0,0);\n c.gridx = 0;\n c.gridx = 0;\n p_globalControls.add(b_bet5,c);\n c.gridx = 1;\n p_globalControls.add(b_bet10,c);\n c.insets = new Insets(0,60,0,5);\n c.gridx = 2;\n p_globalControls.add(b_roll,c);\n c.insets = new Insets(15,0,0,0);\n c.gridx = 3;\n p_globalControls.add(b_deposit,c);\n \n return p_globalControls;\n }",
"private void setupToDoPanel() {\n\t\tpnlToDo = new JPanel(new GridBagLayout());\n\t\tgc.fill = GridBagConstraints.HORIZONTAL;\n\t\tgc.anchor = GridBagConstraints.CENTER;\n\t\tgc.insets = new Insets(10, 10, 10, 10);\n\t\tgc.gridx = 0;\n\t\tfor (int i = 0; i < txtTodo.size(); i++) {\n\t\t\tgc.gridy = i;\n\t\t\tpnlToDo.add(txtTodo.get(i), gc);\n\t\t}\n\t\tgc.gridx = 1;\n\t\tfor (int i = 0; i < check.size(); i++) {\n\t\t\tgc.gridy = i;\n\t\t\tpnlToDo.add(check.get(i), gc);\n\t\t}\n\t\tscroll = new JScrollPane(pnlToDo);\n\n\t\tpnlButton = new JPanel();\n\t\tpnlButton.setLayout(new BoxLayout(pnlButton, BoxLayout.X_AXIS));\n\t\tpnlButton.add(Box.createHorizontalGlue());\n\t\tpnlButton.add(btnAddTask);\n\t\tpnlButton.add(Box.createRigidArea(new Dimension(5, 0)));\n\t\tpnlButton.add(btnSave);\n\t\tpnlButton.add(Box.createHorizontalGlue());\n\t}",
"private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {\n\n initPanel();\n }",
"ButtonPanel() {\n setLayout(new GridLayout(0,3));\n setPreferredSize(new Dimension(1000,100));\n setVisible(true);\n setMaximumSize(new Dimension(1000,250));\n reservationButton = new JButton(\"Reservation View\");\n bookingButton = new JButton(\"Booking View\");\n searchButton = new JButton(\"Search View\");\n add(reservationButton);\n add(bookingButton);\n add(searchButton);\n \n }",
"private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel.setMinimumSize(new Dimension(-1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n nodeList.setSelectionMode(1);\n scrollPane1.setViewportView(nodeList);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel.add(panel1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n addNodeButton = new JButton();\n this.$$$loadButtonText$$$(addNodeButton, ResourceBundle.getBundle(\"language\").getString(\"button_addNode\"));\n panel1.add(addNodeButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n removeNodeButton = new JButton();\n this.$$$loadButtonText$$$(removeNodeButton, ResourceBundle.getBundle(\"language\").getString(\"button_removeNode\"));\n panel1.add(removeNodeButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n Font label1Font = this.$$$getFont$$$(\"Droid Sans Mono\", Font.BOLD, 16, label1.getFont());\n if (label1Font != null) label1.setFont(label1Font);\n this.$$$loadLabelText$$$(label1, ResourceBundle.getBundle(\"language\").getString(\"title_nodes\"));\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setBackground(new Color(-1184275));\n panel1.setForeground(new Color(-4473925));\n mainPanel.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setBackground(new Color(-12828863));\n Font label1Font = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 16, label1.getFont());\n if (label1Font != null) label1.setFont(label1Font);\n label1.setForeground(new Color(-12828863));\n label1.setText(\"Scheduler\");\n panel1.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n Font label2Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label2.getFont());\n if (label2Font != null) label2.setFont(label2Font);\n label2.setText(\"Select the Type of Scheduler \");\n panel1.add(label2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n dropDown = new JComboBox();\n Font dropDownFont = this.$$$getFont$$$(\"Georgia\", -1, 14, dropDown.getFont());\n if (dropDownFont != null) dropDown.setFont(dropDownFont);\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"Shortest Remaining Process Time\");\n defaultComboBoxModel1.addElement(\"Earliest Deadline First\");\n defaultComboBoxModel1.addElement(\"Deadline Monotonic\");\n dropDown.setModel(defaultComboBoxModel1);\n panel1.add(dropDown, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n Font label3Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label3.getFont());\n if (label3Font != null) label3.setFont(label3Font);\n label3.setText(\"Current Task\");\n panel1.add(label3, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n currentField = new JTextField();\n currentField.setBackground(new Color(-3873281));\n currentField.setEditable(false);\n Font currentFieldFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, currentField.getFont());\n if (currentFieldFont != null) currentField.setFont(currentFieldFont);\n panel1.add(currentField, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel2, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n Font label4Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label4.getFont());\n if (label4Font != null) label4.setFont(label4Font);\n label4.setText(\"Current Task Progress \");\n panel2.add(label4, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n progressBar1 = new JProgressBar();\n panel2.add(progressBar1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n taskList = new JList();\n taskList.setBackground(new Color(-5186305));\n Font taskListFont = this.$$$getFont$$$(\"Georgia\", -1, 14, taskList.getFont());\n if (taskListFont != null) taskList.setFont(taskListFont);\n final DefaultListModel defaultListModel1 = new DefaultListModel();\n taskList.setModel(defaultListModel1);\n taskList.setSelectionBackground(new Color(-13220097));\n taskList.setSelectionForeground(new Color(-1));\n taskList.setSelectionMode(0);\n panel2.add(taskList, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n tickButton = new JButton();\n Font tickButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, tickButton.getFont());\n if (tickButtonFont != null) tickButton.setFont(tickButtonFont);\n tickButton.setText(\"Tick\");\n panel2.add(tickButton, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n switchButton = new JButton();\n Font switchButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, switchButton.getFont());\n if (switchButtonFont != null) switchButton.setFont(switchButtonFont);\n switchButton.setText(\"Switch\");\n panel2.add(switchButton, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n delButton = new JButton();\n Font delButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, delButton.getFont());\n if (delButtonFont != null) delButton.setFont(delButtonFont);\n delButton.setText(\"Delete\");\n panel2.add(delButton, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(8, 2, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel3, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n Font label5Font = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, label5.getFont());\n if (label5Font != null) label5.setFont(label5Font);\n label5.setText(\"Add New Tasks\");\n panel3.add(label5, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n Font label6Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label6.getFont());\n if (label6Font != null) label6.setFont(label6Font);\n label6.setText(\"Task\");\n panel3.add(label6, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n taskName = new JTextField();\n Font taskNameFont = this.$$$getFont$$$(\"Georgia\", -1, 14, taskName.getFont());\n if (taskNameFont != null) taskName.setFont(taskNameFont);\n panel3.add(taskName, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label7 = new JLabel();\n Font label7Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label7.getFont());\n if (label7Font != null) label7.setFont(label7Font);\n label7.setText(\"Estimated Completion Time (hours) \");\n panel3.add(label7, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n RemTime = new JTextField();\n Font RemTimeFont = this.$$$getFont$$$(\"Georgia\", -1, 14, RemTime.getFont());\n if (RemTimeFont != null) RemTime.setFont(RemTimeFont);\n panel3.add(RemTime, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label8 = new JLabel();\n Font label8Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label8.getFont());\n if (label8Font != null) label8.setFont(label8Font);\n label8.setText(\"Time Till Task is Due (hours)\");\n panel3.add(label8, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n relDeadline = new JTextField();\n Font relDeadlineFont = this.$$$getFont$$$(\"Georgia\", -1, 14, relDeadline.getFont());\n if (relDeadlineFont != null) relDeadline.setFont(relDeadlineFont);\n panel3.add(relDeadline, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n saveNewButton = new JButton();\n Font saveNewButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, saveNewButton.getFont());\n if (saveNewButtonFont != null) saveNewButton.setFont(saveNewButtonFont);\n saveNewButton.setText(\"Save New\");\n panel3.add(saveNewButton, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n saveExistingButton = new JButton();\n Font saveExistingButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, saveExistingButton.getFont());\n if (saveExistingButtonFont != null) saveExistingButton.setFont(saveExistingButtonFont);\n saveExistingButton.setText(\"Save Existing\");\n panel3.add(saveExistingButton, new com.intellij.uiDesigner.core.GridConstraints(7, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearButton = new JButton();\n Font clearButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, clearButton.getFont());\n if (clearButtonFont != null) clearButton.setFont(clearButtonFont);\n clearButton.setText(\"Clear Form\");\n panel3.add(clearButton, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"public GUI(){\n\t\tSIZE = promptSIZE();\n\t\tframe = new JFrame(\"Five in a row developed by Wonjohn Choi in G.Y.G.D.\");\n\t\tframe.setLayout(new GridLayout(SIZE, SIZE));\n\t\t\n\t\tbuttonGrid = new JButton[SIZE][SIZE];\n\t\t\n\t\tfor(int row=0;row<SIZE;row++){\n\t\t\tfor(int col=0;col<SIZE;col++){\n\t\t\t\tbuttonGrid[row][col] = new JButton();\n\t\t\t\tframe.add(buttonGrid[row][col]);\n\t\t\t\tbuttonGrid[row][col].addActionListener(this);\n\t\t\t}\n\t\t}\n\t\t\n\t\tframe.setSize(50*SIZE, 50*SIZE);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t\t\n\t\tengine = new Engine(SIZE);\n\t}"
]
| [
"0.7196643",
"0.70762616",
"0.70548654",
"0.7054531",
"0.6979849",
"0.6957118",
"0.6937785",
"0.6888458",
"0.6854458",
"0.68445486",
"0.68406904",
"0.68199116",
"0.68019736",
"0.6750167",
"0.67483807",
"0.67378116",
"0.6726796",
"0.67242414",
"0.6709278",
"0.67063665",
"0.6705523",
"0.6691184",
"0.66877115",
"0.66810995",
"0.66783786",
"0.6672457",
"0.66703415",
"0.66533154",
"0.6652084",
"0.66468495",
"0.6645084",
"0.6629414",
"0.6619063",
"0.66125256",
"0.66040426",
"0.6603523",
"0.65969473",
"0.6595112",
"0.65892565",
"0.6585474",
"0.6585005",
"0.65666455",
"0.65566903",
"0.655316",
"0.65509856",
"0.65501225",
"0.6549497",
"0.65337586",
"0.65251553",
"0.6521837",
"0.6517341",
"0.6514679",
"0.6502432",
"0.65008587",
"0.64984983",
"0.64801645",
"0.64789736",
"0.6475505",
"0.6474956",
"0.6472916",
"0.646264",
"0.6457129",
"0.6456597",
"0.6440842",
"0.6440244",
"0.6436174",
"0.64348686",
"0.6433197",
"0.6428247",
"0.64280796",
"0.64270765",
"0.64020115",
"0.64001596",
"0.63913155",
"0.63872576",
"0.6384586",
"0.6383868",
"0.63828474",
"0.63722754",
"0.6369161",
"0.6363225",
"0.63624436",
"0.6362377",
"0.6356942",
"0.63556135",
"0.63525105",
"0.63473177",
"0.6346069",
"0.6344773",
"0.63418186",
"0.6337563",
"0.63303715",
"0.63299537",
"0.63296455",
"0.63260233",
"0.6321958",
"0.6321905",
"0.631103",
"0.63100344",
"0.63093394",
"0.6301308"
]
| 0.0 | -1 |
Goes through the list of instruments and sets the string which will be passed to the InstrumentPopupFactory when the button is pressed. That string is what the InstrumentPopupFactory reads and returns the matching type of popupwindow for that instrument. | private void setInstrumentPanelListeners() {
for (int i = 0; i < INSTRUMENT_LIST_SIZE; i++) {
/**
* The ActionListener is here set to clear the selected element in the DirectoryPanels saveList.
* For some reason this produces a 'ArrayIndexOutOfBoundsException: -1', but the .clearListSelection
* method in the DirectoryPanel class does find the right index and deletes it as it should.
* We have google:d the issue and found that many have the same issue but there has been no solution
* that has worked for us to remove the exception.
*/
final int index = i;
buttonList[i].addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if (instrumentID[index].equals("Drums")) {
DrumPopup drumPopup = new DrumPopup(soundGrabber, rectangleGrabber, DRUMS_COLOR);
System.out.println(drumPopup.getTitle() + "Popup created.");
try {
mainFrame.clearDirectoryList();
} catch (IndexOutOfBoundsException ex) {
System.out.println("clearListSelection(); gives " + ex.toString());
System.out.println("Everything works though..");
}
} else {
InstrumentPopup instrumentPopup =
popupFactory.makeInstrumentPopup(instrumentID[index], soundGrabber, rectangleGrabber);
System.out.println(instrumentPopup.getTitle() + "Popup created.");
try {
mainFrame.clearDirectoryList();
} catch (IndexOutOfBoundsException ex) {
System.out.println("clearListSelection(); gives " + ex.toString());
System.out.println("Everything works though..");
}
}
}
});
buttonList[i].addMouseListener(new MouseListener() {
@Override
public void mouseClicked(MouseEvent e) {
}
@Override
public void mousePressed(MouseEvent e) {
}
@Override
public void mouseReleased(MouseEvent e) {
}
@Override
public void mouseEntered(MouseEvent e) {
try {
Image img = ImageIO.read(getClass().getResource(iconsFocused[index]));
buttonList[index].setIcon(new ImageIcon(img));
} catch (IOException ignored) {
System.out.println("Icon error");
}
}
@Override
public void mouseExited(MouseEvent e) {
try {
Image img = ImageIO.read(getClass().getResource(instrumentIcons[index]));
buttonList[index].setIcon(new ImageIcon(img));
} catch (IOException ignored) {
System.out.println("Icon error");
}
}
});
/**
* The mouse listener clears the selected element in the DirectoryPanels saveList. For some reason
* this produces a 'ArrayIndexOutOfBoundsException: -1', but the .clearListSelection method in the
* DirectoryPanel class does find the right index and deletes it as it should. We have google:d the issue and found
* that many have the same issue but there has been no solution that has worked for us to remove the exception.
*/
this.addMouseListener(new MouseListener() {
@Override
public void mouseClicked(MouseEvent e) {
try {
mainFrame.clearDirectoryList();
} catch (IndexOutOfBoundsException ex) {
System.out.println("clearListSelection(); gives " + ex.toString());
System.out.println("Everything works though..");
}
}
@Override
public void mousePressed(MouseEvent e) {
}
@Override
public void mouseReleased(MouseEvent e) {
}
@Override
public void mouseEntered(MouseEvent e) {
}
@Override
public void mouseExited(MouseEvent e) {
}
});
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@FXML\n\tpublic void onAddInstrumentClick(MouseEvent e) {\n\t\t// Get the current instrument count\n\t\tint instrumentCount = synth.getInstrumentCount();\n\n\t\t// If there are 4 instruments or more, move on\n\t\tif(instrumentCount < 4) {\n\t\t\t//Increment the count\n\t\t\tinstrumentCount++;\n\n\t\t\t// Create a new Instrument button and add the necessary functionality\n\t\t\tButton newInstrument = new Button(\"Instrument \" + instrumentCount);\n\n\t\t\t//Set the instrument number in the user data (0 based)\n\t\t\tnewInstrument.setUserData(instrumentCount - 1);\n\n\t\t\t//Set the instruments id based on the instrument count (1 based)\n\t\t\tnewInstrument.setId(\"instrument\" + instrumentCount);\n\n\t\t\t//Set the instruments on click event\n\t\t\tnewInstrument.setOnMouseClicked(event -> {\n\t\t\t\tonInstrumentButtonClick(event);\n\t\t\t});\n\n\t\t\t//Set the new instruments max height and width, based on the pre-existing add instrument button\n\t\t\tnewInstrument.setMaxHeight(btnAddInstrument.getMaxHeight());\n\t\t\tnewInstrument.setMaxWidth(btnAddInstrument.getMaxWidth());\n\n\t\t\t//Add the instrument-button class to the instruments style class list\n\t\t\tnewInstrument.getStyleClass().add(\"instrument-button\");\n\n\t\t\t//Attempt to add this action to the action log (using the InstrumentButton class for the old/new values)\n\t\t\ttry {\n\t\t\t\tInstrumentButton oldInstrumentButton = new InstrumentButton(), newInstrumentButton = new InstrumentButton();\n\n\t\t\t\t//Set the old instrument button fields\n\t\t\t\toldInstrumentButton.setInstrumentButton(newInstrument);\n\t\t\t\toldInstrumentButton.setExists(false);\n\n\t\t\t\t//Set the new instrument button fields\n\t\t\t\tnewInstrumentButton.setInstrumentButton(newInstrument);\n\t\t\t\tnewInstrumentButton.setExists(true);\n\n\t\t\t\t//Add the action\n\t\t\t\tactionLog.AddAction(\n\t\t\t\t\t\toldInstrumentButton,\n\t\t\t\t\t\tnewInstrumentButton,\n\t\t\t\t\t\tnewInstrument,\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\tthis.getClass().getMethod(\"alterInstrument\", InstrumentButton.class));\n\t\t\t} catch (NoSuchMethodException | SecurityException e1) {\n\t\t\t\tSystem.out.println(\"An unexpected error has occured.\");\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\t//Add the instrument\n\t\t\taddInstrument(newInstrument);\n\t\t} else {\n\t\t\tSystem.out.println(\"Max number of instruments created.\");\n\t\t}\n\t}",
"@Override\n public void showLorenzoActionPopUp(String string) {\n\n }",
"@FXML\n\tpublic void onInstrumentButtonClick(MouseEvent e) {\n\t\t// Get the button object of the current instrument\n\t\tObject node = e.getSource();\n\t\tButton instrument = (Button)node;\n\n\t\t// Disconnect current waveform before connected new one\n\t\tsynth.disconnectInstrument();\n\n\t\t// Get the ID associated with the button\n\t\tselectedInstrumentID = Integer.parseInt(instrument.getUserData().toString());\n\t\tsynth.setSelectedInstrument(selectedInstrumentID);\n\n\t\t// Connect waveform of current instrument\n\t\tsynth.connectInstrument();\n\n\t\t// Get the waveform of the selected instrument and set the RadioButton of the waveform\n\t\tint waveformId = synth.getSelectedInstrument().getWaveformId();\n\t\tif(waveformId == 0) {\n\t\t\tsineButton.setSelected(true);\n\t\t} else if (waveformId == 1) {\n\t\t\tsquareButton.setSelected(true);\n\t\t} else if (waveformId == 2) {\n\t\t\ttriangleButton.setSelected(true);\n\t\t} else if (waveformId == 3) {\n\t\t\tsawButton.setSelected(true);\n\t\t}\n\n\t\t// Get the envelope data of the selected instrument and set the values of the sliders to reflect the values\n\t\tdouble[] envelopeData = synth.getSelectedInstrument().getEnvelopeData();\n\t\tattackSlider.setValue(envelopeData[Instrument.ATTACK_VALUE]);\n\t\tdecaySlider.setValue(envelopeData[Instrument.DECAY_VALUE]);\n\t\tsustainSlider.setValue(envelopeData[Instrument.SUSTAIN_VALUE]);\n\t\treleaseSlider.setValue(envelopeData[Instrument.RELEASE_VALUE]);\n\t}",
"public void showGenPopup() {\n\t\ttv_popupTitle.setText(R.string.title3);\n\t\ttv_popupInfo.setText(R.string.description3);\n\t\t\n\t\t// The code below assumes that the root container has an id called 'main'\n\t\t popup.showAtLocation(findViewById(R.id.anchor), Gravity.CENTER, 0, 0);\n\t}",
"public void updateRoom(){\n for(Instrument ins : room.getInstruments()){\n String ext = \"\";\n if(!ins.getStatus()){\n ext = \"_1\";\n }\n JLabel tmp = new JLabel();\n tmp.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/gui/instruments/\"+ins.getType()+ext+\".png\"))); // NOI18N\n pnlGym.add(tmp);\n \n Instrument tmpins = ins;\n tmp.setToolTipText(ins.getType().toString());\n if(ins.getStatus() && customer!=null)\n tmp.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n \n \n \n AddInstrumentToWorkout add = new AddInstrumentToWorkout(customer, tmpins, workoutNum);\n iWindow.openWin(add);\n }\n \n });\n \n }\n }",
"public void triggerPopup();",
"public void getPopup() {\n\t\t\tglobal.btnClick(popup);\n\t\t}",
"@Override\r\n\t\t\tpublic void setOnItemClick(AdapterView<?> arg0, View view,\r\n\t\t\t\t\tint position, long arg3) {\n\t\t\t\txbet.setText(jfscSpTypeList.get(position).getName());\r\n\t\t\t\txb_popup.dimissPopupwindow();\r\n\t\t\t}",
"public void buttonPress(ActionEvent event) {\r\n Button clickedButton = (Button) event.getSource();\r\n String selectedButton = clickedButton.getId();\r\n System.out.print(selectedButton);\r\n \r\n // If the user correctly guesses the winning button\r\n if (correctButtonName.equals(selectedButton)) {\r\n \r\n //Displays a popup alerting the user that they won the game.\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"You Win!\");\r\n alert.setHeaderText(\"Congratulations, you found the treasure!\");\r\n alert.setContentText(\"Would you like to play again?\");\r\n ButtonType okButton = new ButtonType(\"Play again\");\r\n ButtonType noThanksButton = new ButtonType(\"No Thanks!\");\r\n alert.getButtonTypes().setAll(okButton, noThanksButton);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n \r\n //If the user selects \"Play again\" a new button will be randomly selected\r\n if (result.get() == okButton ){\r\n //Chooses a random button from the list of buttons\r\n correctButtonName = buttonList[(int)(Math.random() * buttonList.length)];\r\n }\r\n //If the user does not select \"Play again\", the application will be closed\r\n else {System.exit(0);}\r\n \r\n }\r\n \r\n //If the user chooses any button except for the winning button\r\n else if (!selectedButton.equals(correctButtonName)) {\r\n \r\n //Displays a popup alerting the user that they did not find the treasure.\r\n Alert alert2 = new Alert(Alert.AlertType.INFORMATION);\r\n alert2.setTitle(\"No treasure!\");\r\n alert2.setHeaderText(\"There was no treasure found on that island\");\r\n alert2.setContentText(\"Would you like to continue searching for treasure?\");\r\n ButtonType ayeCaptain = new ButtonType (\"Continue Searching\");\r\n ButtonType noCaptain = new ButtonType (\"Quit\");\r\n alert2.getButtonTypes().setAll(ayeCaptain,noCaptain);\r\n Optional<ButtonType> result2 = alert2.showAndWait();\r\n \r\n if (result2.get() == ayeCaptain){\r\n //The search for treasure continues!\r\n }\r\n else{ \r\n System.exit(0);\r\n }\r\n }\r\n }",
"public void popup(String a){\n pop.setLayout(null);\n ControlAction c = new ControlAction();\n pop.setBounds(420, 320, 460, 160);\n pop.setBorder(new LineBorder(Color.BLACK, 2));\n //condition for showing popup message\n if(a.startsWith(\"1\")){\n mas.setText(\"Selamat Anda Telah Melakukan Peminjaman\");\n nolocker.setText(\"No. Locker Anda Yaitu 17\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(true);\n }else if(a.equals(WARN1)){\n mas.setText(\"Maaf Anda Telah Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.equals(WARN2)){\n mas.setText(\"Maaf Anda Belum Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.contains(\"BUKA\")){\n mas.setText(\"Anda Ingin Mengakhiri Peminjaman ?\");\n yes.setVisible(true);\n String key = a.substring(4);\n yes.setActionCommand(\"YES\"+key);\n no.setVisible(true);\n nolocker.setVisible(false);\n }else if(a.equals(NO)){\n mas.setText(\"Loker Anda Telah Terbuka\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n } \n mas.setFont(new Font(\"arial\", Font.BOLD, 20));\n mas.setOpaque(false);\n mas.setForeground(Color.BLACK);\n Dimension si1 = mas.getPreferredSize();\n mas.setBounds(10, 40, si1.width, si1.height);\n nolocker.setFont(new Font(\"arial\", Font.BOLD, 20));\n nolocker.setOpaque(false);\n nolocker.setForeground(Color.BLACK);\n Dimension si3 = nolocker.getPreferredSize();\n nolocker.setBounds(10, 70, si3.width, si3.height);\n //close button handling\n close.addActionListener(c);\n close.setActionCommand(EXIT);\n Dimension si2 = close.getPreferredSize();\n close.setBounds(420, 10, si2.width, si2.height);\n close.setBorder(BorderFactory.createEmptyBorder());\n close.setContentAreaFilled(false);\n //yes button handling\n yes.addActionListener(c);\n Dimension si4 = yes.getPreferredSize();\n yes.setBounds(100, 100, si4.width, si4.height);\n yes.setBorder(BorderFactory.createEmptyBorder());\n yes.setContentAreaFilled(false);\n //no button handling\n no.addActionListener(c);\n no.setActionCommand(NO);\n Dimension si5 = no.getPreferredSize();\n no.setBounds(250, 100, si5.width, si5.height);\n no.setBorder(BorderFactory.createEmptyBorder());\n no.setContentAreaFilled(false);\n //add to card3 top most layer\n card3.add(pop,6,0);\n }",
"public void ShowPopup(View v) {\n TextView txtclose;\n Button btnOrder;\n myDialog.setContentView(R.layout.custompopup);\n txtclose = (TextView) myDialog.findViewById(R.id.txtclose);\n btnOrder = (Button) myDialog.findViewById(R.id.btnorder);\n txtclose.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n myDialog.dismiss();\n }\n });\n\n\n myDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n myDialog.show();\n\n\n TextView DrinkNameText;\n DrinkNameText = (TextView) myDialog.findViewById(R.id.DrinkNameText);\n DrinkNameText.setText(DrinkName);\n\n TextView DrinkTypeText;\n DrinkTypeText = (TextView) myDialog.findViewById(R.id.DrinkNameTypeText);\n DrinkTypeText.setText(DrinkType);\n\n /**\n TextView SetDrinkNameText = (TextView) findViewById(R.id.DrinkNameText);\n SetDrinkNameText.setText(DrinkName);\n TextView SetDrinkTypeText = (TextView) findViewById(R.id.DrinkNameTypeText);\n SetDrinkTypeText.setText(DrinkType);\n **/\n LinearLayout SetDrinkSizeSmall;\n SetDrinkSizeSmall = (LinearLayout) myDialog.findViewById(R.id.SetDrinkSize_Small);\n SetDrinkSizeSmall.setOnClickListener(new View.OnClickListener() {\n//SETTING THE SIZE OF THE DRINK USING THE 3 BUTTONS IN THE POP UP! THIS IS ONE VALUE OF THE DRINK ORDER\n @Override\n public void onClick(View v) {\n DrinkSize = 1;\n DrinkSizeText = \"Small\";\n Toast Small = Toast.makeText(getApplicationContext(),\n \"Drink Size Set To Small\",\n Toast.LENGTH_SHORT);\n\n Small.show();\n }\n\n });\n\n\n LinearLayout SetDrinkSizeMedium;\n SetDrinkSizeMedium = (LinearLayout) myDialog.findViewById(R.id.SetDrinkSize_Medium);\n SetDrinkSizeMedium.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n DrinkSize = 2;\n DrinkSizeText = \"Medium\";\n Toast Medium = Toast.makeText(getApplicationContext(),\n \"Drink Size Set To Medium\",\n Toast.LENGTH_SHORT);\n\n Medium.show();\n }\n\n });\n\n\n\n LinearLayout SetDrinkSizeLarge;\n SetDrinkSizeLarge = (LinearLayout) myDialog.findViewById(R.id.SetDrinkSize_Large);\n SetDrinkSizeLarge.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n DrinkSize = 3;\n DrinkSizeText = \"Large\";\n Toast Large = Toast.makeText(getApplicationContext(),\n \"Drink Size Set To Large\",\n Toast.LENGTH_SHORT);\n\n Large.show();\n }\n\n });\n\n }",
"@Override\n\tpublic void onPreferenceClick(long simid) {\n\t\t\n\t\tBundle extras = new Bundle();\n\t\textras.putLong(GeminiUtils.EXTRA_SIMID, simid);\n\t\tstartFragment(this, SimInfoEditor.class.getCanonicalName(), -1, extras, R.string.gemini_sim_info_title);\n\t\tXlog.i(TAG, \"startFragment \"+ SimInfoEditor.class.getCanonicalName());\n\t}",
"public void setTitlePopup(String t) {\n/* 147 */ getCOSObject().setString(COSName.T, t);\n/* */ }",
"@Override\n public void onClick(View v) {\n popup.setOnMenuItemClickListener (new PopupMenu.OnMenuItemClickListener () {\n public boolean onMenuItemClick(MenuItem item) {\n GlobalVariables.indexCityChosen = GlobalVariables.popUpIDToCityIndex.get (item.getItemId ());\n GlobalVariables.CURRENT_CITY_NAME = item.getTitle ().toString ();\n if (GlobalVariables.CITY_GPS != null &&\n item.getTitle ().equals (GlobalVariables.CITY_GPS) &&\n GPSMethods.getCityIndexFromName (GlobalVariables.CITY_GPS) >= 0) {\n currentCityButton.setText (item.getTitle () + \"(GPS)\");\n } else {\n currentCityButton.setText (item.getTitle ());\n }\n ArrayList<EventInfo> tempEventsList =\n FilterMethods.filterByCityAndFilterName (\n GlobalVariables.namesCity[GlobalVariables.indexCityChosen],\n GlobalVariables.CURRENT_FILTER_NAME,\n GlobalVariables.CURRENT_SUB_FILTER,\n GlobalVariables.CURRENT_DATE_FILTER,\n GlobalVariables.CURRENT_PRICE_FILTER,\n GlobalVariables.ALL_EVENTS_DATA);\n filtered_events_data.clear ();\n filtered_events_data.addAll (tempEventsList);\n eventsListAdapter.notifyDataSetChanged ();\n GlobalVariables.USER_CHOSEN_CITY_MANUALLY = true;\n return true;\n }\n });\n popup.show ();//showing popup menu\n }",
"@Override\n public void onClick(View v) {\n PopupMenu popup = new PopupMenu(DogAddInfoActivity.this, button1);\n //Inflating the Popup using xml file\n popup.getMenuInflater()\n .inflate(R.menu.popup_menu, popup.getMenu());\n\n //registering popup with OnMenuItemClickListener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n public boolean onMenuItemClick(MenuItem item) {\n Toast.makeText(\n DogAddInfoActivity.this,\n \"You Clicked : \" + item.getTitle(),\n Toast.LENGTH_SHORT\n ).show();\n breedtext.setText(item.toString());\n return true;\n }\n });\n popup.show();\n }",
"public static void showInstr(Activity a) {\n\n // Get instructions layout\n LayoutInflater inflater = a.getLayoutInflater();\n View layout = inflater.inflate(R.layout.instructions,\n (ViewGroup) a.findViewById(R.id.instructions1));\n\n // initialize popup window\n final PopupWindow pw = new PopupWindow(layout,\n LinearLayout.LayoutParams.WRAP_CONTENT,\n LinearLayout.LayoutParams.WRAP_CONTENT, true);\n\n pw.showAtLocation(layout, Gravity.CENTER | Gravity.TOP, 0, 500);\n\n // Set click event to close popup\n layout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // do anything when popupWindow was clicked\n pw.dismiss(); // dismiss the window\n }\n });\n }",
"public void createPopupWindow() {\r\n \t//\r\n }",
"@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}",
"@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}",
"private void populateUI(Sandwich sandwich) {\n TextView labelAlsoKnownAs = (TextView) findViewById(R.id.label_also_known);\n TextView mAlsoKnownAs = (TextView) findViewById(R.id.also_known_tv);\n TextView labelDescription = (TextView) findViewById(R.id.label_description);\n TextView mDescription = (TextView) findViewById(R.id.description_tv);\n TextView labelOrigin = (TextView) findViewById(R.id.label_origin);\n TextView mOrigin = (TextView) findViewById(R.id.origin_tv);\n TextView labelIngredients = (TextView) findViewById(R.id.label_ingredients);\n TextView mIngredients = (TextView) findViewById(R.id.ingredients_tv);\n\n //establish the list of alternative names for the selected sandwich\n List<String> listAlsoKnownAs = sandwich.getAlsoKnownAs();\n //convert the list to a comma separated string\n String strAlsoKnownAs = listToString(listAlsoKnownAs);\n //hide the known as label and text views if there are no alternative names\n if (strAlsoKnownAs.trim().equals(\"\")) {\n labelAlsoKnownAs.setVisibility(View.GONE);\n mAlsoKnownAs.setVisibility(View.GONE);\n } else {\n //show the known as label and text views if there are alternative names\n labelAlsoKnownAs.setVisibility(View.VISIBLE);\n mAlsoKnownAs.setVisibility(View.VISIBLE);\n //populate the also known as textview\n mAlsoKnownAs.setText(strAlsoKnownAs);\n }\n\n //establish the description for the selected sandwich\n String strDescription = sandwich.getDescription();\n //hide the description label and text views if there are no alternative names\n if (strDescription.trim().equals(\"\")) {\n labelDescription.setVisibility(View.GONE);\n mDescription.setVisibility(View.GONE);\n } else {\n //show the description label and text views if the description is available\n labelDescription.setVisibility(View.VISIBLE);\n mDescription.setVisibility(View.VISIBLE);\n //populate the description textview\n mDescription.setText(strDescription);\n }\n //establish the place of origin for the selected sandwich\n String strPlaceOfOrigin = sandwich.getPlaceOfOrigin();\n //hide the place of origin label and text views if there are no alternative names\n if (strPlaceOfOrigin.trim().equals(\"\")) {\n labelOrigin.setVisibility(View.GONE);\n mOrigin.setVisibility(View.GONE);\n } else {\n //show the place of origin label and text views if the place of origin is available\n labelOrigin.setVisibility(View.VISIBLE);\n mOrigin.setVisibility(View.VISIBLE);\n //populate the place of origin textview\n mOrigin.setText(strPlaceOfOrigin);\n }\n\n //establish the list of ingredients for the selected sandwich\n List<String> listIngredients = sandwich.getIngredients();\n //convert the list to a comma separated string\n String strIngredients = listToString(listIngredients);\n //hide the ingredients label and text views if there are none available\n if (strIngredients.trim().equals(\"\")) {\n labelIngredients.setVisibility(View.GONE);\n mIngredients.setVisibility(View.GONE);\n } else {\n //show the ingredients label and text views if they are available\n labelIngredients.setVisibility(View.VISIBLE);\n mIngredients.setVisibility(View.VISIBLE);\n //populate the ingredients textview\n mIngredients.setText(strIngredients);\n }\n }",
"protected void resultPopup(final String name, int x, int y) {\n final String selectedName = name;\n JPopupMenu resultListMenu = new JPopupMenu();\n \n JMenuItem showMainBuff = new JMenuItem(\"View in main window\");\n if (selectedName != null) {\n showMainBuff.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n m_history.setSingle(selectedName);\n updateMainTabs(selectedName);\n }\n });\n } else {\n showMainBuff.setEnabled(false);\n }\n resultListMenu.add(showMainBuff);\n \n JMenuItem showSepBuff = new JMenuItem(\"View in separate window\");\n if (selectedName != null) {\n showSepBuff.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n openResultFrame(selectedName);\n }\n });\n } else {\n showSepBuff.setEnabled(false);\n }\n resultListMenu.add(showSepBuff); \n \n JMenuItem deleteResultBuff = new JMenuItem(\"Delete result\");\n if (selectedName != null && m_runThread == null) {\n deleteResultBuff.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n m_history.removeResult(selectedName);\n }\n });\n } else {\n deleteResultBuff.setEnabled(false);\n }\n\n \n resultListMenu.add(deleteResultBuff);\n \n resultListMenu.addSeparator();\n List<Object> resultList = null;\n if (selectedName != null) { \n resultList = (List<Object>)m_history.getNamedObject(name);\n }\n \n WekaForecaster saveForecaster = null;\n Instances saveForecasterStructure = null;\n if (resultList != null) {\n for (Object o : resultList) {\n if (o instanceof WekaForecaster){\n saveForecaster = (WekaForecaster)o;\n } else if (o instanceof Instances) {\n saveForecasterStructure = (Instances)o;\n }\n }\n }\n \n final WekaForecaster toSave = saveForecaster;\n final Instances structureToSave = saveForecasterStructure;\n JMenuItem saveForecasterMenuItem = new JMenuItem(\"Save forecasting model\");\n if (saveForecaster != null) {\n saveForecasterMenuItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n saveForecaster(name, toSave, structureToSave); \n }\n });\n } else {\n saveForecasterMenuItem.setEnabled(false);\n }\n resultListMenu.add(saveForecasterMenuItem);\n \n JMenuItem loadForecasterMenuItem = new JMenuItem(\"Load forecasting model\");\n resultListMenu.add(loadForecasterMenuItem);\n loadForecasterMenuItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n loadForecaster();\n }\n });\n \n if (m_isRunningAsPerspective) {\n JMenuItem copyToKFClipboardMenuItem = \n new JMenuItem(\"Copy model to Knowledge Flow clipboard\");\n resultListMenu.add(copyToKFClipboardMenuItem);\n copyToKFClipboardMenuItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n try {\n KnowledgeFlowApp singleton = KnowledgeFlowApp.getSingleton();\n String encoded = \n TimeSeriesForecasting.encodeForecasterToBase64(toSave, structureToSave);\n \n TimeSeriesForecasting component = new TimeSeriesForecasting();\n component.setEncodedForecaster(encoded); \n\n TimeSeriesForecastingKFPerspective.setClipboard(component);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n });\n }\n \n \n JMenuItem reevaluateModelItem = new JMenuItem(\"Re-evaluate model\");\n if (selectedName != null && m_runThread == null) {\n \n reevaluateModelItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n reevaluateForecaster(selectedName, toSave, structureToSave);\n }\n });\n \n reevaluateModelItem.\n setEnabled((m_advancedConfigPanel.m_trainingCheckBox.isSelected() ||\n m_advancedConfigPanel.m_holdoutCheckBox.isSelected()) &&\n m_instances != null);\n } else {\n reevaluateModelItem.setEnabled(false);\n } \n \n resultListMenu.add(reevaluateModelItem);\n \n resultListMenu.show(m_history.getList(), x, y);\n }",
"@FXML\n public final void buttonListener() {\n final String str = GameContext.instance().toStringUniverse();\n Dialogs.create()\n .title(\"Planet list\")\n .message(str)\n .showInformation();\n }",
"public void setTemplateButtons() {\r\n\t\tbtnSetBirth.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getSource() == btnSetBirth) {\r\n\t\t\t\t\tlblTemplateBirthday.setText(\"Using Template: \" + comboEmails.getSelectedItem());\r\n\t\t\t\t\ttemplateBirthday = (String) comboEmails.getSelectedItem();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSetAnniv.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getSource() == btnSetAnniv) {\r\n\t\t\t\t\tlblTemplateAnniv.setText(\"Using Template: \" + comboEmails.getSelectedItem());\r\n\t\t\t\t\ttemplateAnniv = (String) comboEmails.getSelectedItem();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSetPromo.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getSource() == btnSetPromo) {\r\n\t\t\t\t\tlblPromoTemplate.setText(\"Using Template: \" + comboEmails.getSelectedItem());\r\n\t\t\t\t\ttemplatePromo = (String) comboEmails.getSelectedItem();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\r\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource() == managerButton){\n\t\t\tmanagerWin = new ManagerWindow(user, manage);\t\t\t\n\t\t} else if (e.getSource() == coinButton) {\n\t\t\tInsertCoinWin = new InsertCoinWindow(user, coin, this);\n\t\t} else if (e.getSource() == cokeButton) {\n\t\t\tproductWin = new ProductWindow(1, user, manage, coin, this);\n\t\t} else if (e.getSource() == spriteButton) {\n\t\t\tproductWin = new ProductWindow(2, user, manage, coin, this);\n\t\t} else if (e.getSource() == sportsDrinkButton) {\n\t\t\tproductWin = new ProductWindow(3, user, manage, coin, this);\n\t\t} else if (e.getSource() == juiceButton) {\n\t\t\tproductWin = new ProductWindow(4, user, manage, coin, this);\n\t\t} else if (e.getSource() == coffeeButton) {\n\t\t\tproductWin = new ProductWindow(5, user, manage, coin, this);\n\t\t} else if (e.getSource() == waterButton) {\n\t\t\tproductWin = new ProductWindow(6, user, manage, coin, this);\n\t\t} else if (e.getSource() == beerButton) {\n\t\t\tproductWin = new ProductWindow(7, user, manage, coin, this);\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t int returnVal = fc.showOpenDialog(GenerateWindow.this);\n\n\t\t if (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t File goodsoundfile = fc.getSelectedFile();\n\t\t goodSoundTF.setText(\"sounds/\"+goodsoundfile.getName());\n\t\t }}",
"public void setButtonText(String str){\r\n SWINGButton.setText(str);\r\n }",
"public void createChooseGameUI()\n {\n \tHashMap<InventoryRunnable, InventoryItem> inventoryStuff = new HashMap<InventoryRunnable, InventoryItem>();\n \t\n \tInventoryRunnable gladiatorJoinRunnable = new GladiatorJoinInventoryRunnable(plugin);\n \t\n \tArrayList<String> gladiatorLore = new ArrayList<String>();\n \tgladiatorLore.add(\"FIGHT TO THE DEATH AND WIN YOUR FREEDOM\");\n \tgladiatorLore.add(\"GOOD LUCK WARRIOR!\");\n \tInventoryItem gladiatorItem = new InventoryItem(plugin, Material.SHIELD, \"GLADIATOR\", gladiatorLore, 1, true, 1);\n \tinventoryStuff.put(gladiatorJoinRunnable, gladiatorItem);\n \t\n \tchooseGameUI = new GUIInventory(plugin, \"MINIGAMES\", inventoryStuff, 3);\n }",
"@Override\n public void onClick(View v) {\n LayoutInflater layoutInflater =\n (LayoutInflater) getBaseContext().getSystemService(LAYOUT_INFLATER_SERVICE);\n View popupView =\n layoutInflater.inflate(R.layout.activity_popup_ok_cancel, null);\n popupWindow = new PopupWindow(popupView,\n ViewGroup.LayoutParams.MATCH_PARENT,\n ViewGroup.LayoutParams.MATCH_PARENT);\n\n popupWindowIsOn = true;\n\n // Catch the elements of the pop-up Window\n TextView txtQuestion = (TextView) popupView.findViewById(R.id.txtQuestion);\n Button buttonOk = (Button) popupView.findViewById(R.id.buttonOk);\n Button buttonCancel = (Button) popupView.findViewById(R.id.buttonCancel);\n\n // Set actions to the elements of the pop up window\n txtQuestion.setText(R.string.suppress_product_are_you_sure);\n buttonOk.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // suppress all stocks linked with the product\n for (ObjectStock s : product.getStocks()) {\n stockDataSource.deleteStock(s);\n }\n\n productDataSource.deleteProduct(product);\n popupWindowIsOn = false;\n popupWindow.dismiss();\n Toast toast = Toast.makeText(getBaseContext(),\n R.string.product_deleted, Toast.LENGTH_LONG);\n\n toast.show();\n\n finish();\n Intent i = new Intent(getBaseContext(), MyProducts.class);\n startActivity(i);\n }\n });\n\n buttonCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n popupWindowIsOn = false;\n popupWindow.dismiss();\n }\n });\n\n buttonSuppress.post(new Runnable() {\n @Override\n public void run() {\n popupWindow.showAsDropDown(txtQuantityStorage, 0, -100);\n }\n });\n\n\n }",
"public void popup(String s, String id){\n\t\t\n\t\t// call to a db function -> what kind if exercises was carried out during this training?\n\t\tExerciseForTrainingFetch eftf = new ExerciseForTrainingFetch();\n\t\ttry {\n\t\t\teftf.readDataBase(id);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tArrayList<ArrayList> allOvelser = eftf.getExForTraining();\n\t\t\n\t\tStringBuilder bStr = new StringBuilder();\n\t\tfor (int i=0;i<allOvelser.get(0).size();i++){\n\t\t\tbStr.append(\"Ovelse: \" + allOvelser.get(0).get(i) + \" Belastning: \" +allOvelser.get(1).get(i) +\n\t\t\t\t\t\" Sett: \" + allOvelser.get(2).get(i) + \" Repetisjoner: \" + allOvelser.get(3).get(i) + \" Beskrivelse: \" + allOvelser.get(4).get(i) + \n\t\t\t\t\t\" Kategori: \" + allOvelser.get(5).get(i) + \"\\n\" + \"-----------------\\n\");\n\t\t}\n\t\t\n\t\tGroup root = new Group();\n\t\tScene dialogScene = new Scene(root, 400, 300);\n\t\tLabel label3 = new Label(bStr.toString());\n\t\tlabel3.setWrapText(true);\n\t\tlabel3.setFont(new Font(\"Arial\", 12));\n\t\tlabel3.setMaxSize(380, 300);\n\t\t\n final Stage dialog = new Stage();\n dialog.initModality(Modality.APPLICATION_MODAL);\n dialog.initOwner(UserApplication.primaryStage);\n\n Button cancel = new Button(\"Cancel\");\n cancel.setCancelButton(true);\n cancel.setOnAction((actionEvent) -> dialog.close());\n GridPane gridpane = new GridPane();\n gridpane.setMaxSize(400, 300);\n gridpane.setHgap(10); //horizontal gap in pixels => that's what you are asking for\n gridpane.setVgap(10); //vertical gap in pixels\n gridpane.setPadding(new Insets(10, 10, 10, 10)); //margins around the whole grid\n //(top/right/bottom/left)\n ScrollPane s1 = new ScrollPane();\n s1.setPrefSize(380, 300);\n s1.setHbarPolicy(ScrollBarPolicy.NEVER);\n s1.setContent(label3);\n gridpane.add(cancel, 0, 3); // column=0 row=3\n gridpane.add(s1, 0, 1); // column=0 row=1\n gridpane.setMaxSize(400, 300);\n root.getChildren().addAll(gridpane);\n \n dialog.setScene(dialogScene);\n dialog.show(); \n \n\t}",
"private JButton getJButton_spect() {\n\t\tif (jButton_spect == null) {\n\t\t\tjButton_spect = new JButton();\n\t\t\tjButton_spect.setText(\"Spectialist Records\");\n\t\t\tjButton_spect.setPreferredSize(new Dimension(173, 28));\n\t\t\t\n\t\t\t// Add listener to the Specialist Records\n\t\t\tjButton_spect.addMouseListener(new MouseAdapter(){\n\t\t\n\t\t\t\tpublic void mouseClicked(MouseEvent e){\n\t\t\t\t\tc.first(jPanel_table);\n\t\t\t\t\t//Display booking information\n\t\t\t\t\t\n\t\t\t\t\tVector<Appointment> tempApp = UserInterface.getCurrentApp();\n\t\t\t\t\t\n\t\t\t\t\tspectRow.clear();\n\t\t\t\t\t\n\t\t\t\t\tVector<Appointment> tempP = new Vector<Appointment>();\n\t\t\t\t\tVector<Appointment> tempN = new Vector<Appointment>();\n\t\t\t\t\tVector<Appointment> tempT = new Vector<Appointment>();\n\t\t\t\t\t\n\t\t\t\t\tfor (int i=0; i < tempApp.size(); i++){\t\t\n\t\t\t\t\t\tif(tempApp.get(i).getSpectID().charAt(0)=='P'){\t\t\n\t\t\t\t\t\t\t//Store all the Physiotherapist book to the Vector\t\t\t\n\t\t\t\t\t\t\ttempP.add(tempApp.get(i));\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\telse if(tempApp.get(i).getSpectID().charAt(0)=='N'){\t\t\n\t\t\t\t\t\t\ttempN.add(tempApp.get(i));\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \t\t\n\t\t\t\t\t\t\ttempT.add(tempApp.get(i));\t\n\t\t\t\t\t}\n\t\t\t\t\tfor(int j1 = 0; j1 < new StaffAccount().getPhyNum(); j1++){\t\n\t\t\t\t\t\tfor(int m1 = 0; m1 < tempP.size(); m1++){\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t Vector<String> temp1 = new Vector<String>();\t\n\t\t\t\t\t\t\t\tif(Integer.parseInt(tempP.get(m1).getSpectID().substring(1))== (j1+1)){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tStaff tempSpect = new Staff(tempP.get(m1).getSpectID());\n\t\t\t\n\t\t\t\t\t\t\t\t\ttemp1.add(tempSpect.getStaffName());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\ttemp1.add(tempSpect.getSpectType());\n\t\t\t\t\t\t\t\t\ttemp1.add(tempP.get(m1).getData());\n\t\t\t\t\t\t\t\t\ttemp1.add(tempP.get(m1).getTimePeriod());\n\t\t\t\t\t\t\t\t\tif(tempP.get(m1).getMemberID().equals(\"000\")){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\ttemp1.add(\"Leave\");\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\ttemp1.add(tempP.get(m1).getMemberID());\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\ttemp1.add(tempP.get(m1).getRoomNo());\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tspectRow.add(temp1);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tSwingUtilities.updateComponentTreeUI(jTable_spect);\t\t\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\t\n\n\t\t\t\t\tfor(int j2 = 0; j2 < new StaffAccount().getNutrNum(); j2++){\n\t\t\t\t\t\tfor(int m2 = 0; m2 < tempN.size(); m2++){\n\t\t\t\t\t\t\t\tVector<String> temp1 = new Vector<String>();\n\t\t\t\t\t\t\t\tif(Integer.parseInt(tempN.get(m2).getSpectID().substring(1))==(j2+1)){\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tStaff tempSpect = new Staff(tempN.get(m2).getSpectID());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\ttemp1.add(tempSpect.getStaffName());\n\t\t\t\t\t\t\t\t\ttemp1.add(tempSpect.getSpectType());\n\t\t\t\t\t\t\t\t\ttemp1.add(tempN.get(m2).getData());\n\t\t\t\t\t\t\t\t\ttemp1.add(tempN.get(m2).getTimePeriod());\n\t\t\t\t\t\t\t\t\tif(tempN.get(m2).getMemberID().equals(\"000\"))\n\t\t\t\t\t\t\t\t\t\ttemp1.add(\"Leave\");\n\t\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\t\ttemp1.add(tempN.get(m2).getMemberID());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\ttemp1.add(tempN.get(m2).getRoomNo());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tspectRow.add(temp1);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tSwingUtilities.updateComponentTreeUI(jTable_spect);\t\n\t\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\t\n\t\t\t\n\t\t\t\t\tfor(int j3 = 0; j3 < new StaffAccount().getTraNum(); j3++){\t\n\t\t\t\t\t\tfor(int m3 = 0; m3 < tempT.size(); m3++){\n\t\t\t\t\t\t\t\tVector<String> temp1 = new Vector<String>();\t\n\t\t\t\t\t\t\t\tif(Integer.parseInt(tempT.get(m3).getSpectID().substring(1))== (j3+1)){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tStaff tempSpect = new Staff(tempT.get(m3).getSpectID());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\ttemp1.add(tempSpect.getStaffName());\n\t\t\t\t\t\t\t\t\ttemp1.add(tempSpect.getSpectType());\n\t\t\t\t\t\t\t\t\ttemp1.add(tempT.get(m3).getData());\n\t\t\t\t\t\t\t\t\ttemp1.add(tempT.get(m3).getTimePeriod());\n\t\t\t\t\t\t\t\t\tif(tempT.get(m3).getMemberID().equals(\"000\"))\n\t\t\t\t\t\t\t\t\t\ttemp1.add(\"Leave\");\n\t\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\t\ttemp1.add(tempT.get(m3).getMemberID());\n\t\t\t\t\t\t\t\t\ttemp1.add(tempT.get(m3).getRoomNo());\n\t\n\t\t\t\t\t\t\t\t\tspectRow.add(temp1);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tSwingUtilities.updateComponentTreeUI(jTable_spect);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButton_spect;\n\t}",
"public void showOxPopup() {\n\t\ttv_popupTitle.setText(R.string.title1);\n\t\ttv_popupInfo.setText(R.string.description1);\n\t\t\n\t\t// The code below assumes that the root container has an id called 'main'\n\t\t popup.showAtLocation(findViewById(R.id.anchor), Gravity.CENTER, 0, 0);\n\t}",
"public String showInstrument() {\n\t\treturn \"Pearl Drum\";\n\t}",
"private void popUp() {\n\tpop = new RoomPopUp(this);\n\tnoPopUp = false;\n }",
"public void pickSandwhich() {\n includedIngredients.clear();\n if(selectSandwhich.getValue().equals(\"Chicken\")){\n includedIngredients.appendText(\"Fried Chicken\\nSpicy Sauce\\nPickles\");\n sandwhich = new Chicken();\n\n }\n\n if(selectSandwhich.getValue().equals(\"Fish\")){\n includedIngredients.appendText(\"Grilled Snapper\\nCilantro\\nLime\");\n sandwhich = new Fish();\n }\n\n if(selectSandwhich.getValue().equals(\"Beef\")){\n includedIngredients.appendText(\"Roast Beef\\nProvolone Cheese\\nMustard\");\n sandwhich = new Beef();\n }\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n }",
"public void handleSmartPopup(int type) {\n if(type == 2 && itemFocused != UISettings.RENAMETEXTBOX)\n return;\n iCustomPopup.handleSmartPopup(type);\n }",
"public interface MySandBoxDisplay extends SandBoxDisplay {\n\n public ListGrid getPendingGrid();\n\n public ToolStripButton getRevertSelectionButton();\n\n public void setRevertSelectionButton(ToolStripButton revertSelectionButton);\n\n public ToolStrip getPendingToolBar();\n\n public void setPendingToolBar(ToolStrip pendingToolBar);\n\n public ToolStripButton getReclaimSelectionButton();\n\n public void setReclaimSelectionButton(ToolStripButton reclaimSelectionButton);\n\n public ToolStripButton getReclaimAllButton();\n\n public void setReclaimAllButton(ToolStripButton reclaimAllButton);\n\n public ToolStripButton getReleaseSelectionButton();\n\n public void setReleaseSelectionButton(ToolStripButton releaseSelectionButton);\n\n public ToolStripButton getReleaseAllButton();\n\n public void setReleaseAllButton(ToolStripButton releaseAllButton);\n\n public ToolStripButton getPendingRefreshButton();\n\n public void setPendingRefreshButton(ToolStripButton pendingRefreshButton);\n\n public ToolStripButton getPendingPreviewButton();\n\n public void setPendingPreviewButton(ToolStripButton pendingPreviewButton);\n \n}",
"private void displaySelectedItemPopin(final Entity item) {\n\t\tif (selectedItemPopin == null) {\n\t\t\tselectedItemPopin = new Table();\n//\t\t\tselectedItemPopin.setDebug(true);\n\n\t\t\t// Add an empty click listener to capture the click so that the InputSingleton doesn't handle it\n\t\t\tselectedItemPopin.setTouchable(Touchable.enabled);\n\t\t\tselectedItemPopin.addListener(new ClickListener() {});\n\t\t\t\n\t\t\t// Place the popin and add the background texture\n\t\t\tselectedItemPopin.setPosition(GameScreen.SCREEN_W/2, GameScreen.SCREEN_H/2);\n\t\t\tNinePatchDrawable ninePatchDrawable = new NinePatchDrawable(SceneAssets.popinNinePatch);\n\t\t\tselectedItemPopin.setBackground(ninePatchDrawable);\n\t\t\t\n\t\t\tselectedItemPopin.align(Align.top);\n\t\t\t\n\t\t\t// 1 - Title\n\t\t\titemTitle = new Label(\"Title\", PopinService.hudStyle());\n\t\t\tselectedItemPopin.add(itemTitle).top().align(Align.top).pad(20, 0, 20, 0);\n\t\t\tselectedItemPopin.row().align(Align.center);\n\t\t\t\n\t\t\t// 2 - Description\n\t\t\titemDesc = new Label(\"Description\", PopinService.hudStyle());\n\t\t\titemDesc.setWrap(true);\n\t\t\tselectedItemPopin.add(itemDesc).growY().width(900).left().pad(0, 20, 0, 20);\n\t\t\tselectedItemPopin.row();\n\t\t\t\n\t\t\t// 3 - Action buttons\n\t\t\tTable buttonTable = new Table();\n\t\t\t\n\t\t\t// 3.1 - Close button\n\t\t\tfinal TextButton closeBtn = new TextButton(\"Close\",PopinService.buttonStyle());\t\t\t\n\t\t\t// continueButton listener\n\t\t\tcloseBtn.addListener(new ChangeListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t\t\thideSelectedItemPopin();\n\t\t\t\t}\n\t\t\t});\n\t\t\tbuttonTable.add(closeBtn).pad(0, 20,0,20);\n\t\t\t\n\t\t\tselectedItemPopin.add(buttonTable).pad(20, 0, 20, 0);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfinal ItemComponent itemComponent = Mappers.itemComponent.get(item);\n\t\t\n\t\t// Update the content\n\t\titemTitle.setText(itemComponent.getItemLabel());\n\t\titemDesc.setText(itemComponent.getItemDescription());\n\t\t\n\t\t// Place the popin properly\n\t\tselectedItemPopin.pack();\n\t\tselectedItemPopin.setPosition(GameScreen.SCREEN_W/2 - selectedItemPopin.getWidth()/2, GameScreen.SCREEN_H/2 - selectedItemPopin.getHeight()/2);\n\t\n\t\tthis.stage.addActor(selectedItemPopin);\n\t}",
"public void select_details(int icon, String text);",
"public void listAction() {\n TextWin newWindow = new TextWin(getSelectedCell());\n WindowUtils.avoidParent(newWindow, parentFrame);\n watchers.add(newWindow);\n }",
"private void popupLogic(int[] idList) {\n int markerId;\n\n if (idList.length == 0) {\n //startupFlag\n if (startupFlag) { //mostra messaggio di benvenuto\n showDialog(9999, false); //trova ID1\n startupFlag = false; //non viene piu mostrato\n }\n return; //non fa nulla\n } else {\n markerId = idList[0]; //controlla solo il primo marker tra tutti i rilevati nel frame.\n }\n\n switch (markerId) {\n case ID1: { //23\n if (!foundID1) { //non ancora stato trovato\n showDialog(ID1, true); //OK, vai a ID2\n foundID1 = true;\n break;\n }\n break;\n }\n case ID2: { //3\n if (!foundID2) {\n if (foundID1) { //Se ID1 è già stato trovato\n showDialog(ID2, true); //OK, vai a ID3\n foundID2 = true;\n break;\n } else { //devi trovare prima ID1\n showDialog(ID1, false); //NO, cerca ID1 prima.\n foundID1 = false;\n break;\n }\n }\n break;\n }\n case ID3: { //5\n if (!foundID3) { //se ID3 non è ancora stato trovato\n if (foundID1 && foundID2) { //se ID1 e ID2 sono già stati trovati\n showDialog(ID3, true); //congrats\n foundID3 = true;\n break;\n } else {\n if (!foundID2) { //ID2 non è stato trovato\n if (!foundID1) { // ID1 non è stato trovato\n showDialog(ID1, false);\n foundID1 = false; //trova ID1\n break;\n } else { // ID1 trovato\n showDialog(ID2, false); //trova ID2\n foundID2 = false;\n break;\n }\n }\n break;\n }\n }\n break;\n }\n }\n\n\n }",
"public void popUp(ArrayList<Integer> list){\n\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n\n alert.setTitle(\"You Have Won The Game!\");\n alert.setHeaderText(\"Your Score: \" + animal.getPoints() + \"!\");\n alert.setContentText(Integer.toString(list.get(0)));\n\n String highScoreContent = String.format(\"Highscore\\n1. \" + list.get(0) + \"\\n2. \" + list.get(1) + \"\\n3. \" + list.get(2) + \"\\n4. \" + list.get(3) + \"\\n5. \" + list.get(4));\n alert.setContentText(highScoreContent);\n\n ButtonType backToMainMenu = new ButtonType(\"Back to Main Menu\");\n ButtonType quit = new ButtonType(\"Quit Game\");\n alert.getButtonTypes().setAll(backToMainMenu,quit);\n\n alert.setOnCloseRequest(e -> {\n ButtonType result = alert.getResult();\n if(result!= null && result == quit){\n primaryStage.close();\n } else {\n sceneManager sm = new sceneManager(primaryStage);\n sm.toMenuScene();\n }\n });\n\n alert.show();\n }",
"public void actionButton(String text);",
"public void initGui() {\r\n\t\tSpieler sieger = dasSpiel.getSieger();\r\n\t\tPopupGUI siegerAnzeigen = new PopupGUI(dasSpiel);\r\n\t\tString anzeige = sieger.getName() + \", hat das Spiel gewonnen! Du kannst nun keine Aktionen mehr durchfuehren ausser dir die Karte anzuschauen.\";\r\n\t\tfor (int i = 0; i < dasSpiel.getSpielerListe().size(); i++) {\r\n\t\t\tsiegerAnzeigen.textAnzeigen(anzeige, dasSpiel.getSpielerListe().get(i));\r\n\t\t}\r\n\t}",
"private void resourceActionWindow (ButtonImage button){\n JPopupMenu depositList = new JPopupMenu(\"Deposits\");\n DepositMenu subMenu = new DepositMenu(gui, \"Send to\", selectedResource, Command.SEND_DEPOSIT_ID, 0);\n depositList.add(subMenu);\n button.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent e) {\n depositList.show(button , e.getX(), e.getY());\n }\n });\n }",
"public void showPickUPTutorial() {\n\n String tutorialText = getResources().getString(R.string.tutorial_pick_up);\n if (SharedPref.getInstance().getBooleanValue(getActivity(), isbussiness)) {\n tutorialText = getResources().getString(R.string.tutorial_pick_up_business);\n }\n\n ShowcaseView mShowcaseViewCreatePickup = new ShowcaseView.Builder(getActivity())\n .setTarget(new ViewTarget(btn_pickup))\n .hideOnTouchOutside()\n .setContentText(tutorialText)\n .setContentTextPaint(Utility.getTextPaint(getActivity()))\n .singleShot(AppConstants.TUTORIAL_PICK_UP_ID)\n .setShowcaseEventListener(new OnShowcaseEventListener() {\n @Override\n public void onShowcaseViewHide(ShowcaseView showcaseView) {\n\n }\n\n @Override\n public void onShowcaseViewDidHide(ShowcaseView showcaseView) {\n showCreatePickUPTutorial();\n }\n\n @Override\n public void onShowcaseViewShow(ShowcaseView showcaseView) {\n\n }\n\n @Override\n public void onShowcaseViewTouchBlocked(MotionEvent motionEvent) {\n\n }\n })\n .setStyle(R.style.CustomShowcaseTheme2)\n .build();\n mShowcaseViewCreatePickup.setButtonText(getResources().getString(R.string.tutorial_got_it));\n }",
"private void populateUI(Sandwich sandwich) {\n tv_origin.setText(sandwich.getPlaceOfOrigin());\n // set the description textview to the sandwich description\n tv_description.setText(sandwich.getDescription());\n // using string builder to get rid of the brackets and commas in the textview\n StringBuilder mIngredientBuilder = new StringBuilder();\n // getting list of ingredients from the sandwich to parse\n List<String> mIngredients = sandwich.getIngredients();\n //iterates thru each item and adds it the string with a carriage return at the end of each item\n for(String ingredient:mIngredients )\n {\n mIngredientBuilder.append(ingredient+\"\\n\");\n }\n //gets rid of last return\n // get length of stringbuilder\n int length= mIngredientBuilder.length();\n // delete the last character to get rid of empty line below ingredients\n mIngredientBuilder.deleteCharAt(length-1);\n // sets the ingredients textview to the ingredients string builder\n tv_ingredients.setText(mIngredientBuilder.toString());\n // using string builder to get rid of the brackets and commas in the textview\n StringBuilder mAkaListBuilder = new StringBuilder();\n // getting list of aka names from the sandwich to parse\n List<String > mAkaList = sandwich.getAlsoKnownAs();\n //iterates thru each item and adds it the string with a carriage return at the end of each item\n for(String aka :mAkaList )\n {\n mAkaListBuilder.append(aka+\"\\n\");\n }\n // sets the aka textview to the aka string builder\n tv_akaList.setText(mAkaListBuilder.toString());\n }",
"public void clickedPresentationNew() {\n\t\t\n\t}",
"public static String getInputTypeString(int i){\n switch(i){\n case 0:\n return \"Manual Entry\";\n case 1:\n return \"GPS\";\n case 2:\n return \"Automatic\";\n\n }\n return null;\n }",
"private void resultsConfigButton(){\n if(!resultsOpened){\n resultsUI = new ResultsUI(this, false);\n resultsOpened = true;\n } \n }",
"public static void fillEditWindow (int index)\n {\n EditSongWindow.songName =listSongs.getSongAtIndex(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()).getSongName();\n EditSongWindow.artistEdit =listSongs.getSongAtIndex(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()).getArtist();\n EditSongWindow.albumEdit =listSongs.getSongAtIndex(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()).getAlbum();\n EditSongWindow.genderEdit=(findGender(listSongs.getSongAtIndex(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()).getSongName()));\n EditSongWindow.index = JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex();\n EditSongWindow.list = listSongs;\n }",
"public void buttonFunctions(){\n runSim.addActionListener((ActionEvent q) -> {\n simulation = new Secretary();\n setNewValues();\n simulation.runSim();\n showDetails.setEnabled(true);\n showResults(); \n });\n showDetails.addActionListener((ActionEvent e) -> {\n resultDisplay.setText(simulation.getResults());\n resultFrame.setVisible(true); \n });\n changeSimProp.addActionListener((ActionEvent ch) ->{\n changeFrame.setVisible(true);\n });\n okay.addActionListener((ActionEvent ok) ->{ \n changeFrame.setVisible(false);\n });\n programDescription.addActionListener((ActionEvent d)->{\n descriptionDisplay.setText(programD());\n dFrame.setVisible(true);\n });\n }",
"public void setNewButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_newButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_newButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_newButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setNewButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\r\n\t\tObject source = e.getSource();\r\n\t\tif(source == button_note) {\r\n\t\t\tNotatkaAddFrame frame = new NotatkaAddFrame();\r\n frame.setVisible(true);\r\n\t\t}\r\n\t\telse if(source == button_edit) {\r\n\t\t\tNotatkaEditFrame frame = new NotatkaEditFrame();\r\n\t\t\tframe.setVisible(true);\r\n\t\t}\r\n\t\telse if(source == button_plan) {\r\n\t\t\tPlanAddFrame frame = new PlanAddFrame();\r\n\t\t\tframe.setVisible(true);\r\n\t\t}\r\n\t\telse if(source == button_read) {\r\n\t\t\tReadPlanFrame frame = new ReadPlanFrame();\r\n\t\t\tframe.setVisible(true);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n public void onClick(View view) {\n\n LayoutInflater inflater = (LayoutInflater)\n getSystemService(LAYOUT_INFLATER_SERVICE);\n final View popupView = inflater.inflate(R.layout.item_add_popup, null);\n\n // create the popup window\n int width = LinearLayout.LayoutParams.WRAP_CONTENT;\n int height = LinearLayout.LayoutParams.WRAP_CONTENT;\n boolean focusable = true; // lets taps outside the popup also dismiss it\n final PopupWindow popupWindow = new PopupWindow(popupView, width, height, focusable);\n\n // show the popup window\n // which view you pass in doesn't matter, it is only used for the window tolken\n popupWindow.showAtLocation(view, Gravity.CENTER, 0, 0);\n\n // dismiss the popup window when touched\n popupView.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n popupWindow.dismiss();\n popupView.performClick();\n return true;\n }\n });\n\n\n //Handle the Ok button\n final EditText enterItemNameTextBox = (EditText) popupView.findViewById(R.id.enterItemNameTextBox);\n final Button popupOkButton = (Button) popupView.findViewById(R.id.item_popupOkButton);\n popupOkButton.setOnClickListener(new Button.OnClickListener(){\n\n @Override\n public void onClick(View view) {\n\n String new_item_name = enterItemNameTextBox.getText().toString().trim();\n\n if(!new_item_name.isEmpty()){\n db.insertItemToGroup(group_id, new_item_name);\n adapter.add_data_item(new MyListData(new_item_name, 0,0,0,0,0));\n\n items = db.groupItemsToHashmap(group_id);\n drawbars();\n\n popupWindow.dismiss();\n popupView.performClick();\n }\n else{\n enterItemNameTextBox.setError(\"Please enter an item name!\");\n }\n\n\n }\n });\n }",
"public void inspectBugPopUp() {\n\t\tJPanel bugPanel = new JPanel();\n\t\tif (buglist.isSelectionEmpty())\n\t\t\treturn;\n\n\t\t// Separate bug id from the rest of the string\n\t\tint bugID = Integer.parseInt(buglist.getSelectedValue().split(\" \")[0]);\n\n\t\tArrayList<Bug> bugs = uiController_.BrowseBugs();\n\t\tfor (Bug b : bugs) {\n\t\t\tif (b.getBugId_() == bugID) {\n\t\t\t\tJLabel title = new JLabel(\"<HTML><U>Bug</U></HTML>\");\n\t\t\t\tJLabel bugTitle = new JLabel(\"Name: \" + b.getBugTitle_());\n\t\t\t\tJLabel bugid = new JLabel(\"ID: \" + b.getBugId_());\n\t\t\t\tJLabel bugDescription = new JLabel(\"Description: \" + b.getDescription_());\n\t\t\t\tJLabel bugState = new JLabel(\"Status: \" + b.getState_().toString());\n\t\t\t\tArrayList<Product> productlist = uiController_.BrowseProducts();\n\n\t\t\t\tfor (Product p : productlist) {\n\t\t\t\t\tif (p.getProductId_() == b.getProductId_()) {\n\t\t\t\t\t\tJLabel productTitle = new JLabel(\"<HTML><U>Product Information</U></HTML>\");\n\t\t\t\t\t\tJLabel productID = new JLabel(\"ID: \" + p.getProductId_());\n\t\t\t\t\t\tJLabel productName = new JLabel(\"Name: \" + p.getProductName_());\n\t\t\t\t\t\tJLabel productDescription = new JLabel(\"Description: \" + p.getProductDescription());\n\n\t\t\t\t\t\t// Set Font\n\t\t\t\t\t\tFont font = new Font(\"Calibri\", Font.PLAIN, 20);\n\t\t\t\t\t\tFont big_underline_font = new Font(\"Calibri\", Font.PLAIN, 30);\n\t\t\t\t\t\ttitle.setFont(big_underline_font);\n\t\t\t\t\t\tbugid.setFont(font);\n\t\t\t\t\t\tbugTitle.setFont(font);\n\t\t\t\t\t\tproductTitle.setFont(big_underline_font);\n\t\t\t\t\t\tproductID.setFont(font);\n\t\t\t\t\t\tproductName.setFont(font);\n\t\t\t\t\t\tbugDescription.setFont(font);\n\t\t\t\t\t\tproductDescription.setFont(font);\n\t\t\t\t\t\tbugState.setFont(font);\n\n\t\t\t\t\t\t// Add textfields to parent component\n\t\t\t\t\t\tBox vBox = Box.createVerticalBox();\n\t\t\t\t\t\tvBox.add(title);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(bugTitle);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(bugid);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(bugDescription);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(bugState);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(productTitle);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(productID);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(productName);\n\t\t\t\t\t\tvBox.add(Box.createVerticalStrut(15));\n\t\t\t\t\t\tvBox.add(productDescription);\n\t\t\t\t\t\tbugPanel.add(vBox);\n\n\t\t\t\t\t\tObject options[] = { \"OK\" };\n\t\t\t\t\t\tJOptionPane.showOptionDialog(null, bugPanel, \"Inspect Bug\", JOptionPane.OK_OPTION,\n\t\t\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, options, options[0]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"private void btnSpeaker2ActionPerformed(java.awt.event.ActionEvent evt) {\n txtSpeaker2.setText(Dialog());\n \n }",
"public void createSwitchButtonPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n helpPopUp();\n }",
"@Override\n public void onClick(View v) {\n AlertDialog.Builder builder = new AlertDialog.Builder(TunerActivity.this);\n // 2. Chain together various setter methods to set the dialog characteristics\n builder.setTitle(\"Choose a tuner...\")\n .setItems(tunersArray, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n if (which == 1) {\n tuner1 = 3;\n tunersSetUp(tuner1);\n } else if (which == 0) {\n tuner1 = 1;\n tunersSetUp(tuner1);\n }\n }\n });\n // 3. Get the <code><a href=\"/reference/android/app/AlertDialog.html\">AlertDialog</a></code> from <code><a href=\"/reference/android/app/AlertDialog.Builder.html#create()\">create()</a></code>\n AlertDialog dialog = builder.create();\n dialog.show();\n }",
"public void setText(String st){\n\t\tbutton.setText(st);\n\t}",
"public void setInstrumentType(String instrumentType) {\n this.instrumentType = instrumentType;\n }",
"public void showItext() {\n\n\t\tFormUtil.dlg.setText(\"Opening...\");\n\t\tFormUtil.dlg.show();\n\n\n\t\t\n\t\tScheduler.get().scheduleDeferred(new Command() {\n\t\t\tpublic void execute() {\n\n\t\t\t\ttry {\n\n\t\t\t\t\tif (formDef == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\ttabs.selectTab(TAB_INDEX_DESIGN);\n\t\t\t\t\t\n\t\t\t\t\t//update the itext map\n\t\t\t\t\tcontroller.updateLanguage(Context.getLocale(), Context.getLocale(), formDef);\n\t\t\t\t\tFormDef form = controller.getSelectedForm();\n\t\t\t\t\t\n\t\t\t\t\t//clear the itext list\n\t\t\t\t\tContext.getItextList().removeAll();\n\t\t\t\t\t//copy over the map to the list\n\t\t\t\t\tSet<String> keys = form.getITextMap().keySet();\n\t\t\t\t\tfor(String key : keys)\n\t\t\t\t\t{\n\t\t\t\t\t\tItextModel itext = form.getITextMap().get(key);\n\t\t\t\t\t\tContext.getItextList().add(itext);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\titextWidget.loadItext(Context.getItextList());\n\t\t\t\t\titextWidget.showWindow();\n\n\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tFormUtil.displayException(ex);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void populateUI(Sandwich sandwich) {\n\n mDetailBinding.alsoKnownTv.setText(sandwich.getAlsoKnownAsString());\n mDetailBinding.descriptionTv.setText(sandwich.getDescription());\n mDetailBinding.ingredientsTv.setText(sandwich.getIngredientString());\n mDetailBinding.originTv.setText(sandwich.getPlaceOfOrigin());\n\n Picasso.with(this)\n .load(sandwich.getImage())\n .into(mDetailBinding.imageIv);\n\n setTitle(sandwich.getMainName());\n\n }",
"public void setResultsWindow(JFrame rsw) {\r\n \t\tthis.resultsWindow = rsw;\r\n \t\tif (rsw instanceof ResultsWindow) {\r\n \t\t\t// Sets action for toolbar buttons\r\n \t\t\t((ResultsWindow) rsw).addButtonActions(simulate, pauseSimulation, stopSimulation);\r\n \t\t} else {\r\n \t\t\tshowResults.setEnabled(true);\r\n \t\t}\r\n \t\t// Adds a listener that will unselect Show results button upon results\r\n \t\t// window closing\r\n \t\trsw.addWindowListener(new WindowAdapter() {\r\n \t\t\tpublic void windowClosing(WindowEvent e) {\r\n \t\t\t\tshowResults.setSelected(false);\r\n \t\t\t}\r\n \t\t});\r\n \t}",
"public void openItemGui(ItemStack debug1, InteractionHand debug2) {}",
"private void enterButtonActionPerformed(ActionEvent evt) {\n switch(currentCommand) {\n case \"Check out customer\":\n CheckOutFrame checkOutFrame = new CheckOutFrame(this);\n setVisible(false);\n checkOutFrame.run();\n break;\n case \"Change quantity of items in stock\":\n ChangeQuantityFrame changeQuantityFrame = new ChangeQuantityFrame(this);\n setVisible(false);\n changeQuantityFrame.run();\n break;\n case \"Daily totals\":\n store.newGUIFrame.print(store.dailySalesManager.displayTotals());\n break;\n case \"Daily sales\":\n store.dailySalesManager.printDailySales();\n break;\n case \"Pending orders\":\n store.orderManager.printPendingOrders();\n break;\n case \"Order history\":\n store.orderManager.printOrderHistory();\n break;\n case \"Order history of specific product by upc\": case \"Product cost\":\n case \"Product current price\": case \"Product current quantity\": case \"Product location\":\n case \"Product price history\": case \"Check sale price and dates\": case \"Refund product\":\n case \"Scan existing item\": case \"Sell item\": case \"Change product price (regular)\":\n case \"Change product price (sale)\": case \"Scan in one\": case \"Change product location\":\n ProductFrame productFrame = new ProductFrame(this);\n setVisible(false);\n productFrame.run();\n break;\n case \"Print on sale items\":\n store.priceManager.printOnSaleItems();\n break;\n case \"Print upcoming sale items\":\n store.priceManager.printUpcomingSaleItems();\n break;\n case \"Print in stock items\":\n store.stockManager.printInStockItems();\n break;\n case \"Print out of stock items\":\n store.stockManager.printOutOfStockItems();\n break;\n case \"Scan new item\":\n NewItemFrame newItemFrame = new NewItemFrame(this);\n setVisible(false);\n newItemFrame.run();\n break;\n case \"All commands\":\n ArrayList<String> allCommands = store.currentUser.returnAllCommandsList();\n String[] allCommandsList = new String[allCommands.size()];\n\n for(int i = 0; i < allCommandsList.length; i++) {\n allCommandsList[i] = allCommands.get(i);\n }\n availableCommands = new JComboBox<>(allCommandsList);\n availableCommands.setEditable(false);\n newGUI.setButtonFontSize(availableCommands, fontSize);\n availableCommands.addActionListener(this);\n currentCommand = availableCommands.getItemAt(0);\n addComponents(getContentPane());\n setVisible(true);\n break;\n case \"Log out\":\n store.run();\n setVisible(false);\n break;\n }\n }",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tgameType = \"Quick Play\"; \n\t\t\t\t\t\n\t\t\t\t}",
"public void actionPerformed(ActionEvent evt) {\r\n\t\tString ac = evt.getActionCommand();\r\n\t\tif (ac == OK) {\r\n\t\t\ttry {\r\n\t\t\t\tchangeInstruments();\r\n\t\t\t} catch (MidiUnavailableException e) {\r\n\t\t\t\ttheFrame.midiUnavailable();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// close window if OK or Cancel was pressed\r\n\t\tdispose();\r\n\t}",
"@Override\n\t\t\tpublic void onClickedPopup(int arg0) {\n\t\t\t\t\n\t\t\t}",
"public void anotherNew(ActionEvent event) {\n\t\tnewChampBtn.setText(\"Another Pick\");\n\n\t\tif (newRecommendList.size() != 0) {\n\t\t\tString champ = newRecommendList.remove(0);\n\t\t\tint count = 0;\n\t\t\tString[] mostPlayed = new String[2];\n\t\t\tfor (Entry<String, Integer> entry : ChampionFrequency.tagFreq.entrySet()) {\n\t\t\t\tmostPlayed[count++] = entry.getKey();\n\t\t\t\tif (count == 2)\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tnewLable.setText(\"Most play tag: \\n\" + mostPlayed[0] + \"\\n\" + mostPlayed[1]);\n\t\t\tnewChamp.setText(champ);\n\t\t\tnewChamp.setDisable(true);\n\t\t\tString url = \"http://ddragon.leagueoflegends.com/cdn/6.24.1/img/champion/\" + champ + \".png\";\n\t\t\tImage icon = new Image(url);\n\t\t\tnewchampIcon.setImage(icon);\n\t\t\tnewchampIcon.setSmooth(true);\n\t\t\tnewchampIcon.setCache(true);\n\t\t}\n\t}",
"public void performButton(int i){\n\t\tif(ClientWindow.retButtons()[i].getIcon()!=null){\n\t\t\tresetSelected();\n\t\t\tClientWindow.retButtons()[i].setBackground(Color.BLACK);\n\t\t\tClientWindow.currentlySelected=ClientWindow.rPackage.getInventory().get(i);\n\t\t}\n\t\telse{\n\t\t\tresetSelected();\n\t\t\tClientWindow.currentlySelected=null;\n\t\t}\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t if (e.getActionCommand().startsWith(\"show\")) {\r\n\t System.out.println(e.getActionCommand());\r\n\t String mystring = e.getActionCommand().substring(9);\r\n\t System.out.println(mystring);\r\n\t \r\n\t }\r\n\r\n\t}",
"@Test\n\tpublic void testProducesOpenOn() {\n\t\tnew DefaultStyledText().selectText(\"s:Produces\");\n\t\tKeyboardFactory.getKeyboard().invokeKeyCombination(SWT.F3);\n\t\tnew DefaultEditor(\"Produces.class\");\n\n\t\t/* test opened object */\n\t\tassertExpectedOpenedClass(\"javax.enterprise.inject.Produces\");\n\n\t}",
"public void setMurderInfo(String murder, String weapon, String scene){\n\t\tmord.setPadding(new Insets(0,4,4,4));\n\t\tString scenePred;\n\t\tString weaponPred;\n\t\t\n\t\tif(scene.equals(\"hall\") || scene.equals(\"kitchen\") || scene.equals(\"library\")){\n\t\t\tscenePred = \" in der \";\n\t\t} else {\n\t\t\tscenePred = \" im \";\n\t\t}\n\t\t\n\t\tif(weapon.equals(\"spanner\")){\n\t\t\tweaponPred = \" mit der \";\n\t\t} else {\n\t\t\tweaponPred = \" mit dem \";\n\t\t}\n\t\t\n\t\tswitch(murder){\n\t\tcase \"blue\":\n\t\t\tmurder = \"Baronin von Porz\";\n\t\t\tbreak;\n\t\tcase \"yellow\":\n\t\t\tmurder = \"Oberst von Gatow\";\n\t\t\tbreak;\n\t\tcase \"red\":\n\t\t\tmurder = \"Fräulein Gloria\";\n\t\t\tbreak;\n\t\tcase \"green\":\n\t\t\tmurder = \"Reverend Grün\";\n\t\t\tbreak;\n\t\tcase \"white\":\n\t\t\tmurder = \"Frau Weiß\";\n\t\t\tbreak;\n\t\tcase \"purple\":\n\t\t\tmurder = \"Professor Bloom\";\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tswitch(scene){\n\t\tcase \"hall\":\n\t\t\tscene = \"Eingangshalle\";\n\t\t\tbreak;\n\t\tcase \"ballroom\":\n\t\t\tscene = \"Musikzimmer\";\n\t\t\tbreak;\n\t\tcase \"billiard\":\n\t\t\tscene = \"Schachzimmer\";\n\t\t\tbreak;\n\t\tcase \"conservatory\":\n\t\t\tscene = \"Wintergarten\";\n\t\t\tbreak;\n\t\tcase \"diningroom\":\n\t\t\tscene = \"Speisezimmer\";\n\t\t\tbreak;\n\t\tcase \"kitchen\":\n\t\t\tscene = \"Küche\";\n\t\t\tbreak;\n\t\tcase \"library\":\n\t\t\tscene = \"Bibliothek\";\n\t\t\tbreak;\n\t\tcase \"lounge\":\n\t\t\tscene = \"Salon\";\n\t\t\tbreak;\t\n\t\tcase \"study\":\n\t\t\tscene = \"Arbeitszimmer\";\n\t\t\tbreak;\t\n\t\t}\n\t\t\n\t\tswitch(weapon){\n\t\tcase \"candlestick\":\n\t\t\tweapon = \"Kerzenständer\";\n\t\t\tbreak;\n\t\tcase \"dagger\":\n\t\t\tweapon = \"Dolch\";\n\t\t\tbreak;\n\t\tcase \"pipe\":\n\t\t\tweapon = \"Heizungsrohr\";\n\t\t\tbreak;\n\t\tcase \"revolver\":\n\t\t\tweapon = \"Revolver\";\n\t\t\tbreak;\n\t\tcase \"rope\":\n\t\t\tweapon = \"Seil\";\n\t\t\tbreak;\n\t\tcase \"spanner\":\n\t\t\tweapon = \"Rohrzange\";\n\t\t\tbreak;\t\n\t\t}\n\t\t\n\t\tmord.setText(\"Es war \"+ murder + scenePred + scene + weaponPred + weapon + \".\");\n\t\tmord.setStyle(\"-fx-text-fill:white\");\n\t\tmord.setFont(Font.font(15));\n\t}",
"public void actionPerformed(ActionEvent event){\n\t\tObject source = event.getSource();\n\t\t//System.out.println(source);\n\t\tif(source == open){\n\t\t\t//If the Open menu item is pressed, then open an image and then display it (display is temporary)\n\t\t\t//BufferedImage img = ImageFileIO.OpenImage();\n\t\t\tnImage image = ImageFileIO.OpenImageIM();\n\t\t\t//String tempName = IUtils.NameFromFile(image.getFile());\n\t\t\t//imageNamesVector.add(tempName);\n\t\t\t//imageMap.put(image, tempName);\n\t\t\t//imageList.setListData(imageNamesVector);\n\t\t\t\n\t\t\t//ImageFileIO.DisplayImage(image.getImage());\n\t\t\tImageInternalFrame currentFrame = ImageFileIO.ReturnDisplayImage(image);\n\t\t\tSystem.out.println(currentFrame.toString());\n\t\t\tdesktop.add(currentFrame);\n\t\t\tinternalFrameList.add(currentFrame);\n\t\t\t//System.out.println(internalFrameList.toString());\n\t\t\t\n\t\t\t//Testing some stuff. Will not remain in the program.\n\t\t\t\n\t\t\t//TestFilter filter = new TestFilter(image.getImage(), new iKernel(3,3));\n\t\t\t//System.out.println(img.getColorModel().toString());\n\t\t\t/*currentFrame = ImageFileIO.ReturnDisplayImage(new nImage(IUtils.mirrorImage(image.getImage(), new iKernel(3,3))));\n\t\t\tdesktop.add(currentFrame);\n\t\t\tinternalFrameList.add(currentFrame);*/\n\t\t\t\n\t\t}else if(source == about){//Display information about the software in a popup\n\t\t\t//JPanel aboutPane = new JPanel();\n\t\t\tString aboutString = \t\"Texas A&M Texarkana Computer Science Major's Software Engineering project 2012\\n\"+\n\t\t\t\t\t\t\t\t\t\"Authors: Dalton Holley, Willis Ellis, Hiroyuki Plumlee, Micheal C., Glen Wallace\\n\\n\" +\n\t\t\t\t\t\t\t\t\t\"Hiroyuki Plumlee: Rank EV programmer\\n\"+\n\t\t\t\t\t\t\t\t\t\"Micheal C.: Median filter programmer\\n\" +\n\t\t\t\t\t\t\t\t\t\"Willis Ellis: Unsharp mask filter programmer\\n\" +\n\t\t\t\t\t\t\t\t\t\"Dalton Holley: Color ultilities programmer\\n\" +\n\t\t\t\t\t\t\t\t\t\"Glen Wallace: Graphical User Interface programmer\\n\" +\n\t\t\t\t\t\t\t\t\t\"--General Utility programmer\\n\" +\n\t\t\t\t\t\t\t\t\t\"--Project Manager\\n\" +\n\t\t\t\t\t\t\t\t\t\"--Mod. Rank Median filter programmer\";\n\t\t\tJOptionPane.showMessageDialog(this, aboutString);\n\t\t}\n\t\t\n\t}",
"public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}",
"public abstract String getManipulatorButtonLabel();",
"@FXML\n\tpublic void onWaveformClick(MouseEvent e) {\n\t\t// Get the button object of the current instrument\n\t\tToggleButton waveform = (ToggleButton)e.getSource();\n\n\t\t//Instantiate an empty toggle button\n\t\tToggleButton oldWaveform = null;\n\n\t\t//Switch conditional for the current instruments waveform\n\t\t//Sets the oldWaveform toggle button based on the waveformID\n\t\tswitch(synth.getSelectedInstrument().getWaveformId()) {\n\t\tcase Instrument.SINE_WAVE:\n\t\t\toldWaveform = sineButton;\n\t\t\tbreak;\n\t\tcase Instrument.SQUARE_WAVE:\n\t\t\toldWaveform = squareButton;\n\t\t\tbreak;\n\t\tcase Instrument.TRIANGLE_WAVE:\n\t\t\toldWaveform = triangleButton;\n\t\t\tbreak;\n\t\tcase Instrument.SAW_WAVE:\n\t\t\toldWaveform = sawButton;\n\t\t\tbreak;\n\t\t}\n\n\t\t//Conditional to prevent action from being added for certain cases\n\t\tif(oldWaveform != null && !oldWaveform.equals(waveform)) {\n\t\t\ttry {\n\t\t\t\t//Add the action\n\t\t\t\tactionLog.AddAction(\n\t\t\t\t\t\toldWaveform,\n\t\t\t\t\t\twaveform,\n\t\t\t\t\t\twaveformGroup,\n\t\t\t\t\t\twaveformGroup.getClass().getMethod(\"selectToggle\", Toggle.class),\n\t\t\t\t\t\tthis.getClass().getMethod(\"changeWaveform\", Toggle.class));\n\t\t\t} catch (NoSuchMethodException | SecurityException e1) {\n\t\t\t\tSystem.out.println(\"An unexpected error has occured.\");\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t//Change the wave form\n\t\tchangeWaveform(waveform);\n\t}",
"public void actionPerformed(ActionEvent ae) {\r\n JDesktopPane desktop = mdiForm.getDeskTopPane();\r\n Object menuItem = ae.getSource();\r\n try {\r\n if (menuItem.equals(exit)) {\r\n showExit();\r\n } else if (menuItem.equals(unitHierarchy)) {\r\n showUnitHierarchy();\r\n } else if (menuItem.equals(rolodex)) {\r\n showRolodex();\r\n } else if (menuItem.equals(sponsor)) {\r\n showSponsor();\r\n } else if (menuItem.equals(proposalDevelopment)) {\r\n showProposalDevelopment();\r\n } else if (menuItem.equals(personnal)) {\r\n showDepartmentalPerson();\r\n \r\n /*Added Icons are Committe,Protocol,Shedule - Chandrashekar*/\r\n /* JM 05-02-2013\r\n }else if(menuItem.equals(irbProtocol)){\r\n showIRBProtocol();\r\n }else if(menuItem.equals(schedule)){\r\n showSchedule();\r\n }else if (menuItem.equals(committee)){\r\n showCommittee();\r\n */\r\n }else if( menuItem.equals( cascade ) ){\r\n DesktopUtils.cascadeAll( desktop );\r\n }else if( menuItem.equals( tileHorizontal ) ){\r\n DesktopUtils.tileHorizontal( desktop );\r\n }else if( menuItem.equals( tileVertical ) ){\r\n DesktopUtils.tileVertical( desktop );\r\n }else if( menuItem.equals( layer ) ){\r\n DesktopUtils.layer( desktop );\r\n }\r\n else if(menuItem.equals(users)) {\r\n showUserMaintenance();\r\n }\r\n else if(menuItem.equals(map)) {\r\n showMaps(); //Added by Shiji to display the Map Maintainance window\r\n }\r\n /* JM 05-02-2013\r\n else if(menuItem.equals(irbProtocolSubmission)){\r\n showIRBSubmissionDetails();\r\n }//Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n else if(menuItem.equals(iacucProtocol)){\r\n showIACUCProtocol();\r\n }\r\n else if(menuItem.equals(iacucProtocolSubmission)){\r\n showIACUCSubmissionDetails();\r\n } */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n else if(menuItem.equals(inbox)){\r\n showInboxDetails();\r\n }else if(menuItem.equals(awards)) {\r\n showAwards();\r\n }else if(menuItem.equals(proposal)){\r\n showProposal();\r\n }else if(menuItem.equals(negotiations)){\r\n showNegotiation();\r\n }else if(menuItem.equals(subContract)){\r\n showSubcontract();\r\n }else if(menuItem.equals(buisnessRules)){\r\n showBusinessRules();\r\n }\r\n /* JM 4-25-2016 added Contact Coeus Help button */\r\n\t else if(menuItem.equals(contactCoeusHelp)){\r\n\t \tToolFunctions tools = new ToolFunctions();\r\n\t \ttools.contactCoeusHelp();\r\n\t }\r\n\t /* JM END */\r\n }\r\n catch(Exception e) {\r\n //Commented by Ajay - Modification done for Exception Handling \r\n //Since the Code was changed in AppletServletCommunicator to \r\n //show Server down message, the below code is commented.\r\n \r\n //CoeusOptionPane.showInfoDialog(e.getMessage());\r\n \r\n //Added to display Stack Trace\r\n e.printStackTrace();\r\n }\r\n \r\n }",
"public void displayEditSpecies(List<Species> currentSpecies, String selectedSpeciesId){\r\n\t\t\t\tfor(Species theSpecies: currentSpecies){\r\n\t\t\t\t\t//check if the user click is the correct\r\n\t\t\t\t\tif(theSpecies.getSpeciesId().equals(selectedSpeciesId)){\r\n\t\t\t\t\t\tHorizontalPanel userButtonsPane = new HorizontalPanel();\r\n\t\t\t\t\t\tVerticalPanel labelsPanel = new VerticalPanel();\r\n\t\t\t\t\t\tVerticalPanel textBoxesPanel = new VerticalPanel();\r\n\t\t\t\t\t\tHorizontalPanel formPanel = new HorizontalPanel(); \r\n\t\t\t\t\t\t//styling\r\n\t\t\t\t\t\ttextBoxesPanel.setStyleName(\"formTextBoxesPanel\");labelsPanel.setSpacing(6);userButtonsPane.setSpacing(10);\r\n\t\t\t\t\t\t//populate the textBox\r\n\t\t\t\t\t\tspeciesIdTxtBx.setText(theSpecies.getSpeciesId());\r\n\t\t\t\t\t\tspeciesNameTxtBx.setText(theSpecies.getSpeciesName());\r\n\t\t\t\t\t\tspeciesDescTxtBx.setText(theSpecies.getSpeciesDescription());\r\n\t\t\t\t\t\tspeciesSimilar1TxtBx.setText(theSpecies.getSpeciesLooklike1());\r\n\t\t\t\t\t\tspeciesSimilar2TxtBx.setText(theSpecies.getSpeciesLooklike2());\r\n\t\t\t\t\t\tspeciesSimilar3TxtBx.setText(theSpecies.getSpeciesLooklike3());\r\n\t\t\t\t\t\t//Styling textBoxes\r\n\t\t\t\t\t\tspeciesIdTxtBx.setStyleName(\"input\");speciesNameTxtBx.setStyleName(\"input\");speciesDescTxtBx.setStyleName(\"input\");speciesSimilar1TxtBx.setStyleName(\"input\");speciesSimilar2TxtBx.setStyleName(\"input\");\r\n\t\t\t\t\t\tspeciesSimilar3TxtBx.setStyleName(\"input\");\r\n\t\t\t\t\t\tLabel speciesIdLbl = new Label(\"Species ID: \");\r\n\t\t\t\t\t\tLabel speciesNameLbl= new Label(\"Species Name \");\r\n\t\t\t\t\t\tLabel speciesDescLbl = new Label(\"Species Description: \");\r\n\t\t\t\t\t\tLabel speciesLookslike1Lbl = new Label(\"Similar species 1: \");\r\n\t\t\t\t\t\tLabel speciesLookslike2Lbl = new Label(\"Similar species 2: \");\r\n\t\t\t\t\t\tLabel speciesLookslike3Lbl = new Label(\"Similar species 3: \");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tlabelsPanel.add(speciesIdLbl); textBoxesPanel.add(speciesIdTxtBx);\r\n\t\t\t\t\t\tlabelsPanel.add(speciesNameLbl);textBoxesPanel.add(speciesNameTxtBx);\r\n\t\t\t\t\t\tlabelsPanel.add(speciesLookslike1Lbl);textBoxesPanel.add(speciesSimilar1TxtBx);\r\n\t\t\t\t\t\tlabelsPanel.add(speciesLookslike2Lbl);textBoxesPanel.add(speciesSimilar2TxtBx);\r\n\t\t\t\t\t\tlabelsPanel.add(speciesLookslike3Lbl);textBoxesPanel.add(speciesSimilar3TxtBx);\r\n\t\t\t\t\t\tlabelsPanel.add(speciesDescLbl);textBoxesPanel.add(speciesDescTxtBx);\r\n\t\t\t\t\t\tformPanel.add(labelsPanel);formPanel.add(textBoxesPanel);\r\n\t\t\t\t\t\t//buttons for this user\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tmainSpeciesPanel.add(saveResultLbl);\r\n\t\t\t\t\t\tformPanel.add(saveBtn);\r\n\t\t\t\t\t\tformPanel.add(cancelBtn);\r\n\t\t\t\t\t\tmainSpeciesPanel.add(formPanel);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t}",
"public void chooseCurentInstructuon(Event event) {\n InstructionsModel selectProject = lvInstructions.getSelectionModel().getSelectedItem();\n labelInstructions.setText(selectProject.getContent());\n }",
"public void stringPresentation () {\n System.out.println ( \"****** String Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n bookArrayList = new Request().postRequestBook();\n for (Book book: bookArrayList) {\n System.out.println(book.toString());\n }\n ClientEntry.showMenu ( );\n\n }",
"private void openPickAlert(int i) {\n String[] name = {\"TAKE A PHOTO\", \"CHOOSE FROM GALLERY\"};\n int[] icons = {R.drawable.ic_menu_camera, R.drawable.ic_menu_gallery};\n CommonUtils.getInstance(ProfileScreenActivity.this).openDialog(this, name, icons, new OnBottomDialogItemListener() {\n @Override\n public void onItemClick(View view, int position, int type, Object t) {\n switch (type) {\n case GlobalValues.ClickOperations.APAPTER_BOTTOM_DIALOG_CLICK:\n switch (position) {\n case 0:\n openCamera();\n break;\n case 1:\n openGallerypicker();\n break;\n }\n break;\n }\n }\n });\n\n }",
"public void actionPerformed(ActionEvent e) {\r\n\t\t\t\tpopup.show(mainpanel , 660, 40);\r\n\t\t\t}",
"@Override\r\n\t\t\t\t\t\t\tpublic void buttonClick(ClickEvent event) {\n\r\n\t\t\t\t\t\t\t\tObject data = event.getButton().getData();\r\n\t\t\t\t\t\t\t\ttablePacks.select(data);\r\n\t\t\t\t\t\t\t\tItem itemClickEvent = tablePacks.getItem(data);\r\n\t\t\t\t\t\t\t\tvenEditarPacks.init(\"UPDATE\",itemClickEvent );\r\n\t\t\t\t\t\t\t\tUI.getCurrent().addWindow(venEditarPacks);\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t\t\t\t\t\t}",
"public InformationPoint(java.awt.Frame parent, boolean modal, String elementstring) {\r\n\t\tsuper(parent, modal);\r\n\t\tthis.elementstring = elementstring;\r\n\t\tinitComponents();\r\n\t}",
"private void display(String string) {\n JOptionPane.showMessageDialog(null, string);\n }",
"void JButtonPush_actionPerformed(java.awt.event.ActionEvent event) {\n\t\tpushstring = \"\";\n\t\tPushDialog dialog = new PushDialog(this); // ask the user what to push\n\t\tdialog.setVisible(true);\n\n\t\tif (!pushstring.equals(\"\")) { // after the dialog is closed,\n\t\t\tpushCommand = new PushCommand(stack, pushstring);\n\t\t\tinvoker.executeCommand(pushCommand);\n\t\t}else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the data\");\n\t\t\tdialog.setVisible(true);\n\t\t}\n\t\tJList1.setListData(stack.getStackVector()); // refresh the JList\n\t\tthis.repaint();\n\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t int returnVal = fc.showOpenDialog(GenerateWindow.this);\n\n\t\t if (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t File badsoundfile = fc.getSelectedFile();\n\t\t badSoundTF.setText(\"sounds/\"+badsoundfile.getName());\n\t\t }}",
"public void removeInstrument(Button buttonToRemove) {\n\t\tint instrumentCount = synth.getInstrumentCount();\n\n\t\t// If there are at least 2 instruments, move on\n\t\tif(instrumentCount > 0) {\n\t\t\t// Create the instrument and increment the count\n\t\t\tsynth.removeInstrument();\n\t\t\tinstrumentList.getChildren().remove(buttonToRemove);\n\n\t\t\t// Make sure the add instrument is re-added to the list correctly\n\t\t\tinstrumentList.getChildren().remove(btnAddInstrument);\n\t\t\tinstrumentList.add(btnAddInstrument, 0, --instrumentCount);\n\t\t}\n\t}",
"public void SEITE() {\n //<< new strExec\n mVar strExec = m$.var(\"strExec\");\n m$.newVar(strExec);\n //<< \n //<< set strExec = \"document.WWW.target=''; document.WWW.YINSEITE.value=''; document.WWW.YSEITE.value='\"_$$$WWW124ChangeoversWithOnClick(YA)_\"'; SAVENOW(2);\"\n strExec.set(mOp.Concat(mOp.Concat(\"document.WWW.target=''; document.WWW.YINSEITE.value=''; document.WWW.YSEITE.value='\",include.WWWConst.$$$WWW124ChangeoversWithOnClick(m$,m$.var(\"YA\"))),\"'; SAVENOW(2);\"));\n //<< do Button(strExec)\n m$.Cmd.Do(\"Button\",strExec.get());\n //<< \n //<< QUIT\n return;\n }",
"private void setDetectedInstrument()\n {\n int detectedInstrument = midiFileCreator.getInitialInstrument();\n int selectedIndex;\n switch (detectedInstrument) {\n case 41:\n selectedIndex = 0;\n break;\n case 7:\n selectedIndex = 1;\n break;\n case 26:\n selectedIndex = 2;\n break;\n case 1:\n selectedIndex = 3;\n break;\n case 74:\n selectedIndex = 4;\n break;\n case 79:\n selectedIndex = 5;\n break;\n default:\n //set piano as the instrument\n selectedIndex = 1;\n }\n }",
"@Given(\"click menu button {string}\")\n public void clickMenuButton(String string) {\n $(MenuButtons.ProfileMenuButton).click();\n $(MenuButtons.AdminPopupItem).click();\n }",
"public void setPopup(PDAnnotationPopup popup) {\n/* 175 */ getCOSObject().setItem(\"Popup\", popup);\n/* */ }",
"@Override\r\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\tMyFrame.teampanel.showOne(name2.getText());\r\n\t\t}",
"private void itemTextBlockNameActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"public interface PopupsInter {\n\n void closeOtherPopup();\n\n}",
"@Override\n public void onSureClick(final String pwd) {\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, pwd);\n }\n });\n numPadPopWindow.show();\n\n\n }",
"@Override\r\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\r\n\t\t\t\tvenEditarPacks.init(\"NEW\",null);\r\n\t\t\t\tUI.getCurrent().addWindow(venEditarPacks);\r\n\t\t\t\t\r\n\t\t\t}",
"public void open(Plugin plugin, SpoutPlayer splayer) {\n\n GenericPopup popup = new GenericPopup();\n int width = splayer.getMainScreen().getMaxWidth();\n int height = splayer.getMainScreen().getMaxHeight();\n pluginLeg.log(\"aight\" + width + \"\" + height);\n\n// int width = splayer.getCurrentScreen().getWidth();\n// int height = splayer.getCurrentScreen().getHeight();\n\n //title of the screen\n GenericLabel topLabel = new GenericLabel(\"Clan-Invitation\");\n topLabel.setScale(1);\n\n topLabel.setWidth(topLabel.getText().length() * 8 * (int) topLabel.getScale()).setHeight((int) topLabel.getScale() * 15);\n\n topLabel.setX(width / 2 - topLabel.getWidth() / 2);\n topLabel.setY(topLabel.getHeight() / 2 + 5);\n popup.attachWidget(plugin, topLabel);\n\n //title of the screen\n String questionString = \"&2You are invited to \"+clan.getName()+\". Do you want to join?\";\n GenericLabel questionLabel = new GenericLabel(LegendaryClans.parseColor(questionString));\n questionLabel.setScale(1);\n questionLabel.setWidth(questionLabel.getText().length() * 5 * (int) questionLabel.getScale());\n questionLabel.setHeight((int) questionLabel.getScale() * 15);\n\n questionLabel.setX(width / 2 - questionLabel.getWidth() / 2);\n questionLabel.setY(height / 2 - questionLabel.getHeight() / 2);\n popup.attachWidget(plugin, questionLabel);\n\n //Accept Button\n LegendaryButton acceptButton = new LegendaryButton(LegendaryClans.parseColor(\"&2Accept!\"), popup) {\n\n @Override\n public void onButtonClick(ButtonClickEvent event) {\n if (pluginLeg.getClanManager().getClanByPlayer(clan.getLeaders().get(0)) != null && askedPlayer != null) {\n clan.addMember(askedPlayer);\n } \n getPopup().close();\n }\n };\n\n\n acceptButton.setWidth(acceptButton.getText().length() * 8 * (int) acceptButton.getScale()).setHeight((int) acceptButton.getScale() * 15);;\n acceptButton.setX(width / 2 + width / 4 - acceptButton.getWidth() / 2).setY(height / 2 + height / 4 - acceptButton.getHeight() / 2);\n\n\n popup.attachWidget(plugin, acceptButton);\n //deny button\n LegendaryButton denieButton = new LegendaryButton(LegendaryClans.parseColor(\"&4Deny!\"), popup) {\n\n @Override\n public void onButtonClick(ButtonClickEvent event) {\n clan.broadcastMessage(\"&4\" + askedPlayer.getName() + \" denied invitation!\");\n getPopup().close();\n }\n };\n\n denieButton.setWidth(acceptButton.getText().length() * 8 * (int) acceptButton.getScale());\n denieButton.setHeight((int) denieButton.getScale() * 15);\n// \n// ((LegendaryClans)plugin).log(\"\"+width+\",\"+height);\n// denieButton.setX(denieButton.getX()+denieButton.getWidth()/2 +10);\n\n denieButton.setX(width / 4 - denieButton.getWidth() / 2);\n denieButton.setY(height / 2 + height / 4 - denieButton.getHeight() / 2);\n popup.attachWidget(plugin, denieButton);\n\n splayer.closeActiveWindow();\n splayer.getMainScreen().attachPopupScreen(popup);\n }"
]
| [
"0.5562756",
"0.54831564",
"0.54380196",
"0.5241335",
"0.5081956",
"0.50798124",
"0.5077688",
"0.50587857",
"0.49134672",
"0.4800927",
"0.47965845",
"0.47838393",
"0.47808108",
"0.4780189",
"0.47682738",
"0.4759319",
"0.47382912",
"0.46970996",
"0.46970996",
"0.4690628",
"0.4686249",
"0.46827516",
"0.46739593",
"0.46652392",
"0.46615896",
"0.4657722",
"0.46205178",
"0.4611862",
"0.4607752",
"0.46061122",
"0.46021572",
"0.45830265",
"0.45764413",
"0.45675063",
"0.45640537",
"0.4552008",
"0.4551957",
"0.45391142",
"0.45327434",
"0.45322248",
"0.4529535",
"0.45261773",
"0.45234782",
"0.4522871",
"0.45185626",
"0.45068184",
"0.4506433",
"0.45044988",
"0.4503081",
"0.44952235",
"0.44902337",
"0.44882903",
"0.44815966",
"0.44731092",
"0.44688994",
"0.44612497",
"0.44583377",
"0.4445008",
"0.4441155",
"0.44343555",
"0.44327608",
"0.44325468",
"0.44306687",
"0.44205865",
"0.44204122",
"0.44181278",
"0.4412669",
"0.44072646",
"0.44063282",
"0.44058084",
"0.44054517",
"0.44024616",
"0.4401729",
"0.44001853",
"0.4398732",
"0.43937543",
"0.43932948",
"0.43836492",
"0.43835014",
"0.437857",
"0.43766195",
"0.4368047",
"0.43609795",
"0.43607125",
"0.43550813",
"0.43506485",
"0.43486434",
"0.43448728",
"0.4341804",
"0.43388367",
"0.433636",
"0.4332487",
"0.43307358",
"0.43303052",
"0.43274766",
"0.43235266",
"0.43196344",
"0.43141174",
"0.43134737",
"0.43097007"
]
| 0.5060612 | 7 |
TODO Autogenerated method stub requestWindowFeature(Window.FEATURE_NO_TITLE); | @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tab_news_layout_holder);
initFragment();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void noTitle() {\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tgetWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, \n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);\n\t}",
"@Override\n protected void onCreate(Bundle arg0) {\n super.onCreate(arg0);\n // 去掉标题栏\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n }",
"@Override\n protected void doBeforeSetContent() {\n \tsuper.doBeforeSetContent();\n \trequestWindowFeature(Window.FEATURE_NO_TITLE);\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\tsetupLayout();\n\t}",
"public static void removeTitle(Activity activity) {\r\n activity.requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n Dialog dialog = super.onCreateDialog(savedInstanceState);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n return dialog;\n }",
"private void hideTheWindowTitle() {\n\t\tgetWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(new Panel(this));\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tthis.requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_help);\r\n\t\tinitView();\r\n\t\tgetData();\r\n\r\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tthis.requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_myinfo);\r\n\t\tinit();\r\n\t}",
"@Override\n public void onItemClick(View view, Medal obj, int position) {\n TextView txt;\n final Dialog dialog = new Dialog(getContext());\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); // before\n dialog.setContentView(R.layout.popup_medals);\n txt = dialog.findViewById(R.id.titlePop);\n txt.setText(obj.title);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));\n dialog.setCancelable(true);\n dialog.show();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t// 去标题\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.goods_detail_info);\n\t\tinit();\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t//requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\taddPreferencesFromResource(R.xml.setting_preference);\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\tsetContentView(R.layout.address);\r\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t//this.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsupportRequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.chef_dashboard);\n\t\tuserInfo = Sharepreferences.getSharePreferance(this);\n\n\n\t\tsetWidget();\n\n\t}",
"private void makeFullScreen(){\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n // Make it full Screen\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);\n }",
"@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\r\n // The only reason you might override this method when using onCreateView() is\r\n // to modify any dialog characteristics. For example, the dialog includes a\r\n // title by default, but your custom layout might not need it. So here you can\r\n // remove the dialog title, but you must call the superclass to get the Dialog.\r\n Dialog dialog = super.onCreateDialog(savedInstanceState);\r\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n return dialog;\r\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t super.onCreate(savedInstanceState);\r\n\t //Set full screen\r\n requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);\r\n setContentView(R.layout.creditlayout);\r\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR);\r\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // The only reason you might override this method when using onCreateView() is\n // to modify any dialog characteristics. For example, the dialog includes a\n // title by default, but your custom layout might not need it. So here you can\n // remove the dialog title, but you must call the superclass to get the Dialog.\n Dialog dialog = super.onCreateDialog(savedInstanceState);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n return dialog;\n }",
"private void applyCustomTitle() {\r\n\t\tgetWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,\r\n\t\t\t\tR.layout.title_layout);\r\n\t\tmTitle = (TextView) findViewById(R.id.title);\r\n\t\ticon = (ImageView) findViewById(R.id.icon);\r\n\t}",
"@Override\n public boolean isNoTitle() {\n return true;\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tshezhi.getInstance().addActivity(this);//退出时杀死所有activity\r\n\t\tsetContentView(R.layout.procurementlistdetails);\r\n\t\tinitview();\r\n\t\tinitPopupWindow();\r\n\t\t//\t\tgetcaigoujihualist();\r\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.config_input_layout);\n\t}",
"@Override\n\tpublic CharSequence getTitle() {\n\t\treturn null;\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState)\n\t{\n\t\t\n\t\t\n\t\tsuper.onCreate(savedInstanceState);\n\t\tthis.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tthis.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);\n setContentView(new FightSurfaceView(this));\n\t}",
"@Override\n\tprotected String getTitle()\n\t{\n\t\treturn null;\n\t}",
"private void showCustomDialog() {\n final Dialog dialog = new Dialog(getContext());\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); //before\n // Include dialog.xml file\n dialog.setContentView(R.layout.success_dialog);\n TextView btn_home = dialog.findViewById(R.id.btn_home);\n dialog.setCanceledOnTouchOutside(false);\n dialog.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n startActivity(new Intent(getContext(), MainActivity.class));\n getActivity().finish();\n }\n });\n btn_home.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startActivity(new Intent(getContext(), MainActivity.class));\n getActivity().finish();\n }\n });\n // Set dialog title\n\n dialog.show();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.welcome_first);\n\t\n\t init();\n\t\n\t}",
"private void hideStatusBar(){\n try {\n View decorView = getWindow().getDecorView();\n// Hide the status bar.\n int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;\n decorView.setSystemUiVisibility(uiOptions);\n }catch (NullPointerException e){}\n }",
"public void hideSystemUI() {\r\n if (PhotoViewActivity.this != null)\r\n PhotoViewActivity.this.runOnUiThread(new Runnable() {\r\n public void run() {\r\n toolbar.animate().translationY(-toolbar.getHeight()).setInterpolator(new AccelerateInterpolator())\r\n .setDuration(240).start();\r\n photoViewActivity.setSystemUiVisibility(\r\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\r\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar\r\n | View.SYSTEM_UI_FLAG_FULLSCREEN // hide status bar\r\n | View.SYSTEM_UI_FLAG_IMMERSIVE);\r\n fullScreenMode = true;\r\n }\r\n });\r\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);// 隐藏头部\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.province_layout);\n\t\tintent = this.getIntent();\n\t\tinitView();\n\t\tclickOn();\n\t}",
"@Override\n public CharSequence getPageTitle(int position) {\n return null;\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n return null;\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n return null;\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n \n \n setContentView(R.layout.main);\n registerForContextMenu(findViewById(R.id.mainView));\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n super.onCreate(savedInstanceState);\n\n addPreferencesFromResource(R.xml.preferences);\n\n // Intent intent = getIntent();\n }",
"public void FullScreencall() {\n View decorView = getWindow().getDecorView();\n int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;\n decorView.setSystemUiVisibility(uiOptions);\n }",
"public void setFullScreen(){\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tgetWindow().setFlags(LayoutParams.FLAG_FULLSCREEN, LayoutParams.FLAG_FULLSCREEN);\n\t}",
"@Override\r\n public String getTitle()\r\n {\n return null;\r\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n//\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\t\r\n\t\tsetContentView(R.layout.multiroom_list);\r\n\t\tinitial();\r\n\t}",
"private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |\n View.SYSTEM_UI_FLAG_FULLSCREEN |\n View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n \n // Fullscreen\n requestWindowFeature(Window.FEATURE_NO_TITLE); \n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, \n WindowManager.LayoutParams.FLAG_FULLSCREEN); \n \n setContentView(R.layout.main);\n \n setClickListeners();\n \n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tthis.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.layout_wallpaper_manage);\n\t\tinitData();\n\t\tinitViews();\n\n\t}",
"public void showNoNotifications(){\n noNotificationsTitle.setVisibility(View.VISIBLE);\n noNotificationsText.setVisibility(View.VISIBLE);\n noNotificationsImage.setVisibility(View.VISIBLE);\n }",
"public void hideNoNotifications(){\n noNotificationsTitle.setVisibility(View.GONE);\n noNotificationsText.setVisibility(View.GONE);\n noNotificationsImage.setVisibility(View.GONE);\n }",
"private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }",
"@Override\n public void onCloseWindow(WebView window) {\n window.setVisibility(View.GONE);\n webview.removeView(window);\n }",
"@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}",
"@Override\n public void onCreate(final Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n //Teurastetaan otsikkopalkki pois:\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n //Teurastetaan status-palkki pois (full screen):\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n final View v = getLayoutInflater().inflate(R.layout.instructions, null);\n v.setKeepScreenOn(true);\n setContentView(v); \n \n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t super.onCreate(savedInstanceState);\r\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\tsetContentView(R.layout.activity_setting);\t\r\n\t\tinitView();\r\n\t\tregistEvent();\r\n\t}",
"@Override\n\tprotected void setTitleViews() {\n\t\ttitleIvRight.setVisibility(View.INVISIBLE);\n\t\ttitleText.setText(\"历史记录\");\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.activity_server_main);\n\n\t\tfindViewById();\n\t}",
"@Override\n\tpublic void InitTitle(Activity activity, TitleBarListener titleBarListener) {\n\t\tImageButton sendBtn = (ImageButton) zActivity.findViewById(R.id.thirdbtn);\n\t\tsendBtn.setVisibility(android.view.View.INVISIBLE);\n\t\t\n\t\tButton closeBtn = (Button) zActivity.findViewById(R.id.CancelBtn);\n\t\tcloseBtn.setOnClickListener(new OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(android.view.View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tzActivity.finish();\n\t\t\t}});\n\t}",
"public void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tgetWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);\n\t\tgetWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetupViews();\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tthis.requestWindowFeature(Window.FEATURE_NO_TITLE); \r\n\t\tsetContentView(R.layout.account);\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tfindView();\r\n\t\tinitData();\r\n\t\tsetListener();\r\n\t\tsetData();\r\n\t}",
"@Override\n\tprotected void titleBtnBack() {\n\t\tsuper.titleBtnBack();\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t super.onCreate(savedInstanceState);\n\t setRetainInstance(true);\n\t setHasOptionsMenu(false);\n\t}",
"@Override\r\n\tpublic String getTitle() {\n\t\treturn null;\r\n\t}",
"public void resetTitle();",
"private void hideActionBar(){\n try {getSupportActionBar().hide();}\n catch (NullPointerException e){ Log.e(\"Exception\",\"null\");}\n }",
"@Override\n public WindowFactory getWindowFactory() {\n return null;\n }",
"private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }",
"private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }",
"private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }",
"private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }",
"private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }",
"private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }",
"private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView. setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize *'hen the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.activity_jiaxipiao);\n\n\t\tinitView();\n\t\tinitData();\n\t}",
"@Override\nprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tgetWindow().setBackgroundDrawableResource(R.color.white);\n\t\trequestWindowFeature(Window.FEATURE_CUSTOM_TITLE); // 注意顺序\n\t\tview = this.getLayoutInflater().inflate(R.layout.more_detail, null);\n\t\tsetContentView(view);\n\t\tgetWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, // 注意顺序\n R.layout.title);\n\t\ttitle=(TextView)findViewById(R.id.title);\n\t\tcontent=(TextView)findViewById(R.id.content);\n\t\tdelete=(Button)findViewById(R.id.delete);\n\t\ttype=(TextView)findViewById(R.id.type);\n\t\ttime=(TextView)findViewById(R.id.time);\n\t\tname=(TextView)findViewById(R.id.name);\n\t\tdelete.setOnClickListener(new OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tpulllist();\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tnew MyThread().start();\n\t\tcreatDialog();\n\t}",
"public void usePreviewWindow(boolean yesno);",
"private void hideActionBar() {\n View decorView = getWindow().getDecorView();\n // Hide the status bar.\n int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;\n decorView.setSystemUiVisibility(uiOptions);\n // Hide the action bar\n getSupportActionBar().hide();\n }",
"@Override\r\npublic void setTitle(String title) {\n\tsuper.setTitle(title);\r\n}",
"private void switchToNoContentView() {\n no_content.setVisibility(View.VISIBLE);\n mRecyclerView.setVisibility(View.GONE);\n }",
"@Override\n\tpublic void setTopView() {\n\t\ttitle.setText(getResources().getString(R.string.mode));\n\t}",
"protected void removeTitle(){\n canvas.remove(titleBorder);\n canvas.remove(titleBox);\n canvas.remove(title);\n canvas.remove(startBorder);\n canvas.remove(startBox);\n canvas.remove(startText);\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\tsetContentView(R.layout.register);\r\n\t\tintviews();\r\n\t\taddlisteners();\r\n\t}",
"@Override\r\n\t\tpublic String getTitle()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Override\r\npublic boolean isOnScreen() {\nreturn false;\r\n}",
"protected boolean titlePageNeeded(){\n return true;\n }",
"public static void hideSystemUI(Window window) {\n \n window.addFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE\n | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL);\n \n //View.Invisible\n window.getDecorView().setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tthis.initUi();\n\t\tsaveContactButton.setOnClickListener(saveButtonOnClickListener);\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n //Show and hide navigation bar (Immersive mode)\n View showAndHideBars = findViewById(R.id.mylayout);\n showAndHideBars.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n //Show and hide navigation bar (Immersive mode)\n View showAndHideBars = findViewById(R.id.mylayout);\n showAndHideBars.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }",
"@Override\n\tprotected String getHeaderTitle() {\n\t\treturn \"\";\n\t}",
"@Override\n\tprotected void initTitle() {\n\t\tsetTitleContent(R.string.tocash);\n\t\tsetBtnBack();\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.activity_bannerweb);\n\n\t\tinitView();\n\t\tinitdata();\n\t}",
"@Override\n protected void onResume() {\n super.onResume();\n hideBottomUIMenu();\n }",
"public void removeNow() {\n if (mView != null) {\n WindowManager wm = (WindowManager) getSystemService(WINDOW_SERVICE);\n wm.removeView(mView);\n }\n }",
"@Override\n public boolean onCreate() {\n return false;\n }",
"private void init_titlebar() {\n\t\tbackBtn = (Button) findViewById(R.id.titlebar_back);\n\t\ttitleTv = (TextView) findViewById(R.id.titlebar_title);\n\t\totherBtn = (Button) findViewById(R.id.titlebar_other);\n\n\t\tbackBtn.setOnClickListener(this);\n\t\ttitleTv.setText(R.string.WXYT);\n\t\totherBtn.setVisibility(View.GONE);\n\t\tprogressBar = (ProgressBar) findViewById(R.id.progressbar);\n\t\tprogressBar\n\t\t\t\t.setScrollBarStyle(android.R.attr.progressBarStyleHorizontal);\n\t}",
"private void initview() {\n\t\tmtvWorkerListTitle=(MyTitleView) findViewById(R.id.worker_list_title);\n\t\tzlvWorkerList=(ZListView) findViewById(R.id.worker_list_zlistview);\n\t\t\n\t\tmtvWorkerListTitle.setOnLeftClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\t\n\t}",
"@Override\n public void setTitleBar(TitleBar titleBar) {\n super.setTitleBar(titleBar);\n titleBar.hideButtons();\n titleBar.showBackButton();\n titleBar.setSubHeading(getString(R.string.signup));\n }",
"@Override\n\t\tpublic CharSequence getPageTitle(int position)\n\t\t{\n\t\t\treturn null;\n\t\t}",
"@Override\n public void onReceivedTitle(WebView view, String title) {\n getSupportActionBar().setTitle(title);\n }",
"@Override\n\tprotected void onCreate(Bundle arg0) {\n\t\t if (arg0 != null) {\n\t\t\t arg0.putParcelable(\"android:support:fragments\",null);\n\t }\n\t\t super.onCreate(arg0);\n\t\t requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t setLayout();\n\t\t // 注入控件\n\t ViewUtils.inject(this);\n\t\t init(arg0);\n\t}",
"@Override\n public void setDefaultActivityTitle() {\n getActivity().setTitle(R.string.app_name);\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n return \"\";\n }",
"private void disableFullscreen() {\n mainContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\r\n isFullscreen = false;\r\n\r\n // Schedule a runnable to display UI elements after a delay\r\n fullscreenHandler.removeCallbacks(enableFullscreenRunnable);\r\n fullscreenHandler.postDelayed(disableFullscreenRunnable, UI_ANIMATION_DELAY);\r\n }"
]
| [
"0.84637934",
"0.8209263",
"0.8169145",
"0.7708419",
"0.76476645",
"0.74311817",
"0.7408527",
"0.6909541",
"0.68226814",
"0.6749424",
"0.66786546",
"0.6651435",
"0.65262187",
"0.6523875",
"0.6506468",
"0.64350003",
"0.640804",
"0.63574946",
"0.63191134",
"0.6260563",
"0.62600243",
"0.6242525",
"0.62307894",
"0.61760724",
"0.61350965",
"0.612324",
"0.61184263",
"0.610485",
"0.60782576",
"0.6035509",
"0.6034375",
"0.60118365",
"0.60118365",
"0.60118365",
"0.5998753",
"0.59968746",
"0.5934966",
"0.58895266",
"0.58755696",
"0.58722466",
"0.5863304",
"0.58502376",
"0.5835527",
"0.582774",
"0.58193797",
"0.5807885",
"0.5798166",
"0.5772726",
"0.5772726",
"0.5772726",
"0.5770001",
"0.5758867",
"0.57360023",
"0.57136744",
"0.57128257",
"0.5703894",
"0.56984854",
"0.5696813",
"0.56779313",
"0.56762576",
"0.5664765",
"0.56541115",
"0.5642947",
"0.5641353",
"0.5641353",
"0.5641353",
"0.5641353",
"0.5641353",
"0.5641353",
"0.5639539",
"0.56357944",
"0.56310743",
"0.56266207",
"0.5624617",
"0.5622924",
"0.5622587",
"0.56209373",
"0.56022173",
"0.55906045",
"0.558993",
"0.55898577",
"0.5589467",
"0.55735165",
"0.55727667",
"0.55648243",
"0.55648243",
"0.5560207",
"0.5559766",
"0.5549095",
"0.55490744",
"0.55448437",
"0.55302954",
"0.5528478",
"0.5526271",
"0.5513091",
"0.5507342",
"0.5502845",
"0.5502571",
"0.54950505",
"0.5494063",
"0.54865795"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onPause() {
super.onPause();
onPause = true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState);
if (savedInstanceState != null) {
if (savedInstanceState.containsKey(NewsBean.KEY_NEWS)) {
news = savedInstanceState
.getParcelableArrayList(NewsBean.KEY_NEWS);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onResume() {
super.onResume();
if (onPause) {
stack.setCurrentPhase(TracePhase.NEWS);
Bundle args = new Bundle();
args.putParcelableArrayList(NewsBean.KEY_NEWS, news);
Command.forwardTab((BaseFragment) getFragmentManager()
.findFragmentById(R.id.TabNewsLayoutHolderId), getNews(),
args);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.