query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
sequencelengths 3
101
| negative_scores
sequencelengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Getter for property validatorMessage. | public String getValidatorMessage() {
return this.validatorMessage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getValidatorProperty() {\n return _validatorProperty;\n }",
"@JSProperty\n String getValidationMessage();",
"public String getMessage() {\n\t\treturn mErrorMessageString;\n\t}",
"public String getErrorMessage() {\n\t\treturn this.message;\n\t}",
"@Accessor(qualifier = \"message\", type = Accessor.Type.GETTER)\n\tpublic String getMessage()\n\t{\n\t\treturn getMessage(null);\n\t}",
"String getInvalidMessage();",
"public String getValidationMessage(String validationMessageCode) {\n\n\t\treturn validationMessageSource.getMessage(validationMessageCode, null, new Locale(\"en\"));\n\n\t}",
"public java.lang.String getErrorMessage() {\r\n return errorMessage;\r\n }",
"@java.lang.Override\n public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n }\n }",
"public java.lang.String getErrorMessage() {\n return errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n }\n return s;\n }\n }",
"public final String getMessage() {\n return this.message;\n }",
"public String getMessageString() {\n return this.message_string;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\r\n\t\treturn this.message;\r\n\t}",
"public V getMessage() {\n return this.message;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getErrorMessageBytes() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getErrorMessageBytes() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getErrorMessageBytes() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getErrorMessageBytes() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getErrorMessageBytes() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getErrorMessageBytes() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getErrorMessageBytes() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getErrorMessageBytes() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getErrorMessageBytes() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getErrorMessageBytes() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@ApiModelProperty(example = \"String content\", required = true, value = \"Custom message to display to participants\")\n @JsonProperty(JSON_PROPERTY_MESSAGE_FIELD)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public String getMessageField() {\n return messageField;\n }",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getMessage() {\n\t\treturn this.message;\n\t}",
"public String getMessage() {\n\t\treturn this.message;\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public String getMessage(){\n\t\treturn this.message;\n\t}",
"public String getMessage() {\r\n return message;\r\n }",
"public String getMessage() {\r\n return message;\r\n }",
"@JsonGetter(\"restrictionMessage\")\r\n public String getRestrictionMessage ( ) { \r\n return this.restrictionMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public PagerMessage getMessage() {\r\n\t\treturn message;\r\n\t}",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\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 errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getMessage () {\n return message;\n }",
"public String getMessage(){\n return this.message;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Optional<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 }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public String getMessage() {\r\n return mContext.getString(mErrorMessageRes);\r\n }",
"public String getMessage() {\n return super.getString(Constants.Properties.MESSAGE);\n }",
"public String getMessage() {\r\n\t\treturn message;\r\n\t}",
"public String getMessage() {\r\n\t\treturn message;\r\n\t}",
"public String getMessage() {\r\n\t\treturn message;\r\n\t}",
"public String getMessage() {\r\n\t\treturn message;\r\n\t}",
"public String getMessage()\r\n {\r\n return myMessage;\r\n }",
"public String getMessage()\n {\n return fMessage;\n }",
"@JsonGetter(\"message\")\r\n public String getMessage ( ) { \r\n return this.message;\r\n }",
"public String getMessage()\n\t{\n\t\treturn this.message;\n\t}",
"@Pure\n @NonNull\n public String getMessage() {\n return this.message;\n }",
"public String getConverterMessage() {\n \n return this.converterMessage;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }"
] | [
"0.7378946",
"0.69835055",
"0.6960597",
"0.67948216",
"0.67277884",
"0.67245835",
"0.66869044",
"0.66766965",
"0.66656786",
"0.66656786",
"0.66656786",
"0.66656786",
"0.66656786",
"0.66656786",
"0.66656786",
"0.6664859",
"0.6664859",
"0.6664859",
"0.6644588",
"0.6643205",
"0.66219306",
"0.66214216",
"0.66093236",
"0.66093236",
"0.66093236",
"0.66093236",
"0.66093236",
"0.66093236",
"0.66093236",
"0.6588916",
"0.65765053",
"0.6569396",
"0.6569396",
"0.6568911",
"0.6568911",
"0.6568911",
"0.6568911",
"0.6568911",
"0.6568911",
"0.6568911",
"0.6568911",
"0.65683293",
"0.6548546",
"0.65371615",
"0.65371615",
"0.65371615",
"0.65355986",
"0.65355986",
"0.65189946",
"0.65158516",
"0.65059805",
"0.65059805",
"0.6502817",
"0.6499344",
"0.64951736",
"0.6491673",
"0.6490032",
"0.6490032",
"0.6490032",
"0.6490019",
"0.6490019",
"0.6490019",
"0.6490019",
"0.6490019",
"0.6490019",
"0.6490019",
"0.64862776",
"0.6485553",
"0.6481704",
"0.64806354",
"0.64799637",
"0.6474744",
"0.6474744",
"0.6473371",
"0.6461808",
"0.6461493",
"0.6460055",
"0.6449853",
"0.6449853",
"0.6449853",
"0.6449853",
"0.64450645",
"0.6441015",
"0.64352643",
"0.64303195",
"0.6429577",
"0.64287055",
"0.64269626",
"0.64269626",
"0.64269626",
"0.64269626",
"0.64269626",
"0.64269626",
"0.64269626",
"0.64269626",
"0.64269626",
"0.64269626",
"0.64269626",
"0.64269626",
"0.64269626"
] | 0.8517767 | 0 |
Getter for property converterMessage. | public String getConverterMessage() {
return this.converterMessage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected MessageConverter getMessageConverter() {\n\t\treturn this.messageConverter;\n\t}",
"private MessageConverter getMessageConverter() throws SClientException {\n if (messageConverter == null) {\n messageConverter = getDefaultMessageConverter();\n }\n return messageConverter;\n }",
"public ObjectProperty<StringConverter<T>> converterProperty() {\n\n return this.converterProperty;\n }",
"public StringConverter<T> getConverter() {\n\n return this.converterProperty.get();\n }",
"public StringConvert getConverter() {\n return converter;\n }",
"public Converter getConverter() {\n return converter;\n }",
"public Converter getConverter() {\n return converter;\n }",
"@SuppressWarnings({\"unused\", \"RedundantSuppression\"})\n @Override\n public Converter<D> getConverter() {\n return mConverter;\n }",
"@JsonGetter(\"message\")\r\n public String getMessage ( ) { \r\n return this.message;\r\n }",
"@Nonnull\n Converter<T> getConverter() {\n return converter;\n }",
"public V getMessage() {\n return this.message;\n }",
"public Message getMessage(){\n return message;\n }",
"@Accessor(qualifier = \"message\", type = Accessor.Type.GETTER)\n\tpublic String getMessage()\n\t{\n\t\treturn getMessage(null);\n\t}",
"public PagerMessage getMessage() {\r\n\t\treturn message;\r\n\t}",
"public Object getMessage() {\n return m_message;\n }",
"@ApiModelProperty(example = \"String content\", required = true, value = \"Custom message to display to participants\")\n @JsonProperty(JSON_PROPERTY_MESSAGE_FIELD)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public String getMessageField() {\n return messageField;\n }",
"@Bean\n public MessageConverter messageConverter() {\n return new Jackson2JsonMessageConverter();\n }",
"public String getValidatorMessage() {\n \n return this.validatorMessage;\n }",
"public final String getMessage() {\n return this.message;\n }",
"public String getMessage(){\n\t\treturn this.message;\n\t}",
"public String getMessage() {\r\n\t\treturn this.message;\r\n\t}",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage(){\n return this.message;\n }",
"public String getMessageString() {\n return this.message_string;\n }",
"public String getMessage() {\n\t\treturn this.message;\n\t}",
"public String getMessage() {\n\t\treturn this.message;\n\t}",
"public SimpleStringProperty getChatMessageProperty() {\r\n\t\treturn this.chatMessage;\r\n\t}",
"public String getConvertedValue() {\r\n return convertedValue;\r\n }",
"public String getMessage() {\r\n\t\treturn mMessage;\r\n\t}",
"public ProcessorMessage getMessage() {\n\t\tProcessorMessage obj = reader.getMessage();\n\t\treturn obj;\n\t}",
"public String getMessage() {\n\t\treturn adaptee.getMessage();\n\t}",
"public FixedFormatDoubleConverter getConverter() {\n return converter;\n }",
"public String getMessage() {\r\n return messageKind.getMessage();\r\n }",
"public String getMessageInJsonFormat(){\n return messageInJsonFormat;\n }",
"public String getMessage() {\n return super.getString(Constants.Properties.MESSAGE);\n }",
"public Map getMessageProperties()\r\n\t{\r\n\t\treturn this.properties;\r\n\t}",
"public String getMessage()\n {\n return fMessage;\n }",
"public String getMessage()\r\n {\r\n return myMessage;\r\n }",
"public java.lang.String getMessage() {\n java.lang.Object ref = message_;\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 if (bs.isValidUtf8()) {\n message_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getMessage() {\n java.lang.Object ref = message_;\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 if (bs.isValidUtf8()) {\n message_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getMessage() {\n java.lang.Object ref = message_;\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 if (bs.isValidUtf8()) {\n message_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getMessage() {\n java.lang.Object ref = message_;\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 if (bs.isValidUtf8()) {\n message_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getMessage() {\n java.lang.Object ref = message_;\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 if (bs.isValidUtf8()) {\n message_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getMessage() {\n java.lang.Object ref = message_;\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 if (bs.isValidUtf8()) {\n message_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getMessage()\n\t{\n\t\treturn this.message;\n\t}",
"public java.lang.String getMessage()\r\n {\r\n return message;\r\n }",
"public String getMessage() {\r\n\t\treturn m_message;\r\n\t}",
"@Pure\n @NonNull\n public String getMessage() {\n return this.message;\n }",
"public java.lang.String getMessage() {\n java.lang.Object ref = message_;\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 message_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getMessage() {\n java.lang.Object ref = message_;\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 message_ = s;\n }\n return s;\n }\n }",
"protected Object extractMessage(Message message) {\n\t\tMessageConverter converter = getMessageConverter();\n\t\tif (converter != null) {\n\t\t\treturn converter.fromMessage(message);\n\t\t}\n\t\treturn message;\n\t}",
"@Override\r\n\tpublic String getMessage() {\n\t\treturn this.message;\r\n\t}",
"public java.lang.String getMessage() {\n java.lang.Object ref = message_;\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 message_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getMessage() {\n java.lang.Object ref = message_;\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 message_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getMessage() {\n java.lang.Object ref = message_;\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 message_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getMessage() {\n java.lang.Object ref = message_;\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 message_ = s;\n }\n return s;\n }\n }",
"public String getMessage(){\r\n\t\treturn message;\r\n\t}",
"@JsonProperty(\"messageId\")\n public String getMessageId() {\n return messageId;\n }",
"public String getMessage() {\r\n return message;\r\n }",
"public String getMessage() {\r\n return message;\r\n }",
"public String getMessage(){\r\n return message;\r\n }",
"public String getMessage(){\r\n return message;\r\n }",
"public SimpleStringProperty getPointMessage() {\r\n\t\treturn this.pointMessage;\r\n\t}",
"public Optional<String> getMessage() {\n return _message;\n }",
"@Accessor(qualifier = \"converterClass\", type = Accessor.Type.GETTER)\n\tpublic ExportConverterEnum getConverterClass()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CONVERTERCLASS);\n\t}",
"public String getMessageId() {\n return this.messageId;\n }",
"@Bean\n public MessageConverter messageConverter(){\n MappingJackson2MessageConverter converter = new MappingJackson2MessageConverter();\n\n // convert the (JSON) message to a JMS text message and then to an object\n converter.setTargetType(MessageType.TEXT);\n converter.setTypeIdPropertyName(\"_type\");\n\n return converter;\n }",
"public String getMessage() {\r\n\t\treturn message;\r\n\t}",
"public String getMessage() {\r\n\t\treturn message;\r\n\t}",
"public String getMessage() {\r\n\t\treturn message;\r\n\t}",
"public String getMessage() {\r\n\t\treturn message;\r\n\t}",
"public java.lang.String getMessage() {\n java.lang.Object ref = message_;\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 message_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getMessage() {\n java.lang.Object ref = message_;\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 message_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getMessage() {\n return message;\n }",
"public String getMessage () {\n return message;\n }",
"public String getMessage(){\n return(message);\n }",
"public String getMessage() {\n\n\t\treturn message;\n\n\t}",
"public String getMessage() {\n \t\treturn message;\n \t}",
"public String getMessage() {\n\t\treturn message;\n\t}",
"public String getMessage() {\n\t\treturn message;\n\t}",
"public String getMessage() {\n\t\treturn message;\n\t}",
"public com.google.protobuf.ByteString\n getMessageBytes() {\n java.lang.Object ref = message_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n message_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getMessageBytes() {\n java.lang.Object ref = message_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n message_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getMessageBytes() {\n java.lang.Object ref = message_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n message_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getMessageBytes() {\n java.lang.Object ref = message_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n message_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getMessageBytes() {\n java.lang.Object ref = message_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n message_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getMessageBytes() {\n java.lang.Object ref = message_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n message_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getMessageBytes() {\n java.lang.Object ref = message_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n message_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getMessageBytes() {\n java.lang.Object ref = message_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n message_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getMessage(){\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }"
] | [
"0.7965747",
"0.7177597",
"0.71773326",
"0.6848559",
"0.6692126",
"0.6594675",
"0.6594675",
"0.6387219",
"0.62800115",
"0.62386215",
"0.6199076",
"0.61905074",
"0.61765075",
"0.6165992",
"0.6115586",
"0.60710055",
"0.60384095",
"0.60258883",
"0.59765995",
"0.5964707",
"0.5952855",
"0.595272",
"0.595272",
"0.595272",
"0.595272",
"0.595272",
"0.595272",
"0.595272",
"0.5947784",
"0.5922233",
"0.59110904",
"0.59110904",
"0.5906808",
"0.58701974",
"0.5851463",
"0.58472645",
"0.58408993",
"0.584019",
"0.5836144",
"0.583601",
"0.582909",
"0.57911617",
"0.5790062",
"0.5789175",
"0.57708347",
"0.57708347",
"0.57708347",
"0.57708347",
"0.57705677",
"0.57705677",
"0.57638294",
"0.5761746",
"0.5759237",
"0.57377464",
"0.5733465",
"0.5733465",
"0.5733282",
"0.5733168",
"0.5732974",
"0.5732974",
"0.5732974",
"0.5732974",
"0.5731352",
"0.57280535",
"0.5725927",
"0.5725927",
"0.57236123",
"0.57236123",
"0.5717478",
"0.5717197",
"0.5712305",
"0.57036656",
"0.5702119",
"0.57002354",
"0.57002354",
"0.57002354",
"0.57002354",
"0.56999075",
"0.56999075",
"0.569237",
"0.56919736",
"0.568049",
"0.5678684",
"0.56771106",
"0.5674702",
"0.5674702",
"0.5674702",
"0.5674354",
"0.5674354",
"0.5673485",
"0.5673485",
"0.5673485",
"0.5673485",
"0.5673485",
"0.5673485",
"0.56734216",
"0.56732553",
"0.56732553",
"0.56732553",
"0.56732553"
] | 0.86474264 | 0 |
Getter for property postConstructCalled. | public boolean isPostConstructCalled() {
return this.postConstructCalled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPostConstructCalled(boolean postConstructCalled) {\n \n this.postConstructCalled = postConstructCalled;\n appendStatusMessage(\"bean: \" + getStringProperty() +\n \" postConstructCalled: \" + postConstructCalled);\n \n }",
"@PostConstruct\n public void postConstructFn (){\n LOOGER.info(\" ==== post constructor of the bean ====> {}:\");\n }",
"public void afterInit(){\n System.out.println(\"## afterInit() - After Init - called by Bean Post Processor\");\n }",
"public void postInit() {\n }",
"@PostConstruct\n public void postConstruct() {\n \n }",
"public abstract void postInit();",
"@PostConstruct\n private void postConstruct() {\n if (customValue == null) {\n throw new RuntimeException(\"[customValue] property is not set \");\n }\n if (customSecondValue == null) {\n throw new RuntimeException(\"[customSecondValue] property is not set \");\n }\n }",
"@Override\n\tpublic void postInit() {\n\t\t\n\t}",
"@Override public void postInit()\n\t\t{\n\t\t}",
"@PostConstruct\n\tpublic void postConstruct() throws Exception {\n\t\t\n\t}",
"public void setPreDestroyCalled(boolean preDestroyCalled) {\n this.preDestroyCalled = preDestroyCalled;\n appendStatusMessage(\"bean: \" + getStringProperty() +\n \" preDestroyCalled: \" + preDestroyCalled);\n }",
"@Override\n public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }",
"void postInit();",
"void postInit();",
"@PostConstruct\r\n\tpublic void doMyInitStuff() {\r\n\t\tSystem.out.println(\"init method\");\r\n\t}",
"@Override\n public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }",
"@Override\n public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }",
"public void postConstruct() {\n if(jc != null && jc.getJvmOptions() != null) {\n oldProps = new ArrayList<String>(jc.getJvmOptions()); //defensive copy\n \n oldAttrs = collectAttrs(jc);\n }\n }",
"public void beforeInit(){\n System.out.println(\"## beforeInit() - Before Init - Called by Bean Post Processor\");\n }",
"private void processPostConstructAnnotations ()\n throws Exception\n {\n for (Method m:_finder.getMethodsForAnnotation(PostConstruct.class))\n {\n if (!isServletType(m.getDeclaringClass()))\n {\n Log.debug(\"Ignoring \"+m.getName()+\" as non-servlet type\");\n continue;\n }\n if (m.getParameterTypes().length != 0)\n throw new IllegalStateException(m+\" has parameters\");\n if (m.getReturnType() != Void.TYPE)\n throw new IllegalStateException(m+\" is not void\");\n if (m.getExceptionTypes().length != 0)\n throw new IllegalStateException(m+\" throws checked exceptions\");\n if (Modifier.isStatic(m.getModifiers()))\n throw new IllegalStateException(m+\" is static\");\n \n PostConstructCallback callback = new PostConstructCallback();\n callback.setTargetClass(m.getDeclaringClass());\n callback.setTarget(m);\n _callbacks.add(callback);\n }\n }",
"public boolean isPreDestroyCalled() {\n \n return this.preDestroyCalled;\n }",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t\tSystem.out.println(\"Bean Initialization is completed from class!!\");\n\t\t\n\t}",
"@PostConstruct\n private void init() {\n\n log.info(\"Singleton initialized; properties are: {}\", propertiesToString());\n }",
"@Override\n\tpublic Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {\n\t\tSystem.out.println(\"Step8:执行 postProcessAfterInitialization 方法\");\n\t\treturn bean;\n\t}",
"@Override\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"InitializingBean.afterPropertiesSet\");\r\n\t}",
"protected void postInstantiate() {}",
"public InterceptorType<T> removeAllPostConstruct()\n {\n childNode.remove(\"post-construct\");\n return this;\n }",
"@PostConstruct\n\tpublic void init() {\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(new ClassPathResource(\"/META-INF/build-info.properties\"));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to load build.properties\", e);\n\t\t\tprops = new Properties();\n\t\t}\n\t}",
"@Override\r\n\t//InitializingBean 인터페이스 메소드 <= 스프링에서 제공하는 초기화 메소드\r\n\t//스프링컨테이너에 의해서 빈 객체가 생성되고, 빈 객체에 프로퍼티에 의존하는 객체, 혹은 값의 주입이 완료된 후 수행된다.\r\n\t//따라서, 프로퍼티에 값들이 제대로 주입되었는지 확인할 목적으로 사용할 수 있다.\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"afterPropertiesSet() 실행...\");\r\n\t}",
"public interface BeanPostProcessor {\n\n Object postProcessBeforeInitialization(Object bean, String beanName);\n\n Object postProcessAfterInitialization(Object bean, String beanName);\n}",
"@PostConstruct\n public void init() {\n }",
"@PostConstruct\r\n\tpublic void init()\r\n\t{\n\t}",
"public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }",
"@DoDelegate\n default boolean isInitialized() {\n return true;\n }",
"public void afterPropertiesSet() {\r\n\t}",
"public <T extends Component> T postConstruct(T component)\r\n {\r\n // do nothing.\r\n return component;\r\n }",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@PostConstruct\n\tpublic void init() {\n\t}",
"@PostConstruct\n\tpublic void init() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"@PostConstruct\r\n\tvoid init() {\n\t}",
"@PostConstruct\n\tpublic void myInit() throws Exception {\n\t\tSystem.out.println(\"Init Method Using Annotation Approach \");\n\t}",
"@PostConstruct\n\tpublic void init() {\n\n\t}",
"@PostConstruct\n\tpublic void init() {\n\n\t}",
"@Override\n public void afterPropertiesSet() {\n }",
"protected void afterPropertiesSetInternal() {\n\t\t// override this method\n\t}",
"@PostConstruct\r\n public void init(){\n\r\n }",
"@Mod.EventHandler\n public void postInit(FMLPostInitializationEvent e) {\n proxy.postInit(e);\n }",
"@Mod.EventHandler\n public void postInit(FMLPostInitializationEvent e) {\n proxy.postInit(e);\n }",
"public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }",
"@Override\n public void onPostInit()\n {\n\n }",
"@EventHandler \n\tpublic void postInit(FMLPostInitializationEvent event) {\n\t}",
"protected void onFinalInit() {\n\n }",
"public boolean wasInitialized()\n {\n return this.isInitialized;\n }",
"@Before(order=0)\n\tpublic void getProperty() {\n\t\tconfigReader = new ConfigReaders();\n\t\tprop = configReader.init_prop();\n\t\t\n\t}",
"void afterInit(Object bean, Class<?> clazz) throws Exception;",
"public void afterPropertiesSet() throws Exception {\n\t\t// this methods is called when the bean is initialized\n\t\tSystem.out.println(\"Initializing beans afterPropertiesSet method() for triangle\");\n\t}",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"After Properties Set\");\n\t\t\n\t}",
"public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {\n\t\tif ( bean instanceof HelloWorld ) {\n\t\t\tSystem.out.println(\"postProcessAfterInitialization = > start!\");\n\t\t\t((HelloWorld)bean).showMesssage();\n\t\t\tSystem.out.println(\"postProcessAfterInitialization = > end!\");\t\t\t\n\t\t}\t\t\n\t\treturn bean;\n\t}",
"@Override\n public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {\n if (bean instanceof DataSource && !(bean instanceof DataSourceProxy)) {\n if (LOGGER.isInfoEnabled()) {\n LOGGER.info(\"Auto proxy of [{}]\", beanName);\n }\n return proxyDataSource(bean);\n }\n return bean;\n }",
"public static void postInit(FMLPostInitializationEvent event) {\n }",
"public void postInit(FMLPostInitializationEvent event) {\n\n }",
"public Date getAfterCt() {\r\n return afterCt;\r\n }",
"public interface BeanPostProcessor {\n\n default Object postProcessBeforeInitialization(Object bean, String beanName) throws Exception {\n return bean;\n }\n\n default Object postProcessAfterInitialization(Object bean, String beanName) throws Exception {\n return bean;\n }\n}",
"@PostConstruct\n\tpublic void inicializar() {\n\t}",
"@java.lang.Override\n public boolean getDidSetup() {\n return didSetup_;\n }",
"protected void __listenPostConstruct__() {\n\t\tif(__destinationClass__ == null) {\n\t\t\tClassNameBuilder classNameBuilder = DependencyInjection.inject(ClassNameBuilder.class).setKlass(getClass());\n\t\t\tclassNameBuilder.getSourceNamingModel(Boolean.TRUE).client().controller().entities().setSuffix(\"MapperImpl\");\n\t\t\tclassNameBuilder.getDestinationNamingModel(Boolean.TRUE).server().representation().entities().setSuffix(\"Dto\");\n\t\t\t__destinationClass__ = ValueHelper.returnOrThrowIfBlank(\"representation entity class\"\n\t\t\t\t\t,(Class<DESTINATION>) ClassHelper.getByName(classNameBuilder.execute().getOutput()));\n\t\t}\n }",
"public boolean getInit() {\r\n\t\treturn init;\r\n\t}",
"public Object getInitValue()\r\n\t{\r\n\t\treturn initValue;\r\n\t}",
"private ReadProperty()\r\n {\r\n\r\n }",
"@java.lang.Override\n public boolean getDidSetup() {\n return didSetup_;\n }",
"public void postInit(FMLPostInitializationEvent event)\n\t{\n\t\tif (config.hasChanged())\n\t\t{\n\t\t\tconfig.save();\n\t\t}\n\t}",
"public Method getInitMethod() {\n return initMethod;\n }",
"@PostConstruct\n public void init() {\n prevBatchTime = transients.now();\n }",
"public boolean getConstructDn()\n {\n return this.constructDn;\n }",
"public boolean getConstructDn()\n {\n return this.constructDn;\n }",
"public boolean getConstructDn()\n {\n return this.constructDn;\n }",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t}",
"public PostLetter build() {\r\n return postLetter;\r\n }",
"public void afterPropertiesSet() {\n super.afterPropertiesSet();\n\n debug(\"Plugin validated\");\n\n }",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tinit();\n\t}",
"public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactoryObj) throws BeansException{\n\t\t//System.out.println(\"BeanFactoryPostProcessor ==> following bean post processor is called\");\n\t}",
"@PostConstruct\r\n/* 76: */ public void init()\r\n/* 77: */ {\r\n/* 78:101 */ getDimensionPresupuesto();\r\n/* 79: */ }",
"@Override\n public boolean isInitialized(){\n return isInitialized;\n }",
"protected PropertyInstance getFixture() {\n\t\treturn fixture;\n\t}",
"@Override\n public boolean needsToRunAfterFinalized() {\n return false;\n }",
"@PostConstruct\r\n\tpublic void afterPropertiesSet() throws Exception\r\n\t{\r\n\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(getDateFormat());\r\n\t\tSerializationConfig serialConfig = getSerializationConfig().withDateFormat(sdf);\r\n\t\tsetSerializationConfig(serialConfig);\r\n\r\n\t\tDeserializationConfig deserializationConfig = getDeserializationConfig().withDateFormat(sdf);\r\n\t\tsetDeserializationConfig(deserializationConfig);\r\n\r\n\t}",
"public boolean isInitialized()\n {\n return isInit;\n }",
"public static DoubleProperty stateOfEecution(){\n return collumsCalculatedProperty;\n }",
"protected void onInit() {\n super.onInit();\n ruleManager = getBean(RuleManager.BEAN_NAME);\n }"
] | [
"0.74572045",
"0.6835979",
"0.6334139",
"0.616746",
"0.60948795",
"0.6063328",
"0.59573025",
"0.59051687",
"0.5868422",
"0.58478427",
"0.5771814",
"0.5754617",
"0.5702039",
"0.5702039",
"0.5683904",
"0.56525904",
"0.5549876",
"0.55327225",
"0.5487955",
"0.5478842",
"0.54366773",
"0.54021263",
"0.5388131",
"0.5363375",
"0.53625613",
"0.5349588",
"0.5313619",
"0.53081983",
"0.53070575",
"0.522949",
"0.5227345",
"0.5215561",
"0.52002287",
"0.51847976",
"0.51846087",
"0.51750755",
"0.5172537",
"0.5172537",
"0.51673776",
"0.51673776",
"0.5158069",
"0.5158069",
"0.5158069",
"0.5158069",
"0.5158069",
"0.5158069",
"0.5158069",
"0.5158069",
"0.51508534",
"0.51507366",
"0.51431656",
"0.51431656",
"0.5131111",
"0.51270217",
"0.512203",
"0.51070124",
"0.51070124",
"0.51065314",
"0.5034264",
"0.49945533",
"0.49888232",
"0.4985718",
"0.49824485",
"0.4968742",
"0.49627066",
"0.49415568",
"0.49402988",
"0.49231213",
"0.49211484",
"0.49041033",
"0.48858652",
"0.48812467",
"0.48667398",
"0.4854957",
"0.48512256",
"0.484834",
"0.4844779",
"0.48411343",
"0.48356575",
"0.48225063",
"0.47982067",
"0.47914937",
"0.47890866",
"0.47890866",
"0.47890866",
"0.4781092",
"0.4781092",
"0.4781092",
"0.47750035",
"0.47738573",
"0.47660023",
"0.4763503",
"0.47622007",
"0.47483853",
"0.47438395",
"0.47434098",
"0.47426733",
"0.4740456",
"0.47129932",
"0.46977624"
] | 0.7554015 | 0 |
Setter for property postConstructCalled. | public void setPostConstructCalled(boolean postConstructCalled) {
this.postConstructCalled = postConstructCalled;
appendStatusMessage("bean: " + getStringProperty() +
" postConstructCalled: " + postConstructCalled);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isPostConstructCalled() {\n \n return this.postConstructCalled;\n }",
"@PostConstruct\n public void postConstructFn (){\n LOOGER.info(\" ==== post constructor of the bean ====> {}:\");\n }",
"public void afterInit(){\n System.out.println(\"## afterInit() - After Init - called by Bean Post Processor\");\n }",
"public void postInit() {\n }",
"@PostConstruct\n public void postConstruct() {\n \n }",
"@Override public void postInit()\n\t\t{\n\t\t}",
"public abstract void postInit();",
"@Override\n\tpublic void postInit() {\n\t\t\n\t}",
"@PostConstruct\n\tpublic void postConstruct() throws Exception {\n\t\t\n\t}",
"@PostConstruct\n private void postConstruct() {\n if (customValue == null) {\n throw new RuntimeException(\"[customValue] property is not set \");\n }\n if (customSecondValue == null) {\n throw new RuntimeException(\"[customSecondValue] property is not set \");\n }\n }",
"public void postConstruct() {\n if(jc != null && jc.getJvmOptions() != null) {\n oldProps = new ArrayList<String>(jc.getJvmOptions()); //defensive copy\n \n oldAttrs = collectAttrs(jc);\n }\n }",
"void postInit();",
"void postInit();",
"public void setPreDestroyCalled(boolean preDestroyCalled) {\n this.preDestroyCalled = preDestroyCalled;\n appendStatusMessage(\"bean: \" + getStringProperty() +\n \" preDestroyCalled: \" + preDestroyCalled);\n }",
"public void afterPropertiesSet() {\r\n\t}",
"private void processPostConstructAnnotations ()\n throws Exception\n {\n for (Method m:_finder.getMethodsForAnnotation(PostConstruct.class))\n {\n if (!isServletType(m.getDeclaringClass()))\n {\n Log.debug(\"Ignoring \"+m.getName()+\" as non-servlet type\");\n continue;\n }\n if (m.getParameterTypes().length != 0)\n throw new IllegalStateException(m+\" has parameters\");\n if (m.getReturnType() != Void.TYPE)\n throw new IllegalStateException(m+\" is not void\");\n if (m.getExceptionTypes().length != 0)\n throw new IllegalStateException(m+\" throws checked exceptions\");\n if (Modifier.isStatic(m.getModifiers()))\n throw new IllegalStateException(m+\" is static\");\n \n PostConstructCallback callback = new PostConstructCallback();\n callback.setTargetClass(m.getDeclaringClass());\n callback.setTarget(m);\n _callbacks.add(callback);\n }\n }",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t\tSystem.out.println(\"Bean Initialization is completed from class!!\");\n\t\t\n\t}",
"protected void afterPropertiesSetInternal() {\n\t\t// override this method\n\t}",
"@Override\r\n\t//InitializingBean 인터페이스 메소드 <= 스프링에서 제공하는 초기화 메소드\r\n\t//스프링컨테이너에 의해서 빈 객체가 생성되고, 빈 객체에 프로퍼티에 의존하는 객체, 혹은 값의 주입이 완료된 후 수행된다.\r\n\t//따라서, 프로퍼티에 값들이 제대로 주입되었는지 확인할 목적으로 사용할 수 있다.\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"afterPropertiesSet() 실행...\");\r\n\t}",
"@PostConstruct\r\n\tpublic void doMyInitStuff() {\r\n\t\tSystem.out.println(\"init method\");\r\n\t}",
"@Override\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"InitializingBean.afterPropertiesSet\");\r\n\t}",
"@Mod.EventHandler\n public void postInit(FMLPostInitializationEvent e) {\n proxy.postInit(e);\n }",
"@Mod.EventHandler\n public void postInit(FMLPostInitializationEvent e) {\n proxy.postInit(e);\n }",
"@Override\n public void afterPropertiesSet() {\n }",
"public InterceptorType<T> removeAllPostConstruct()\n {\n childNode.remove(\"post-construct\");\n return this;\n }",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@EventHandler \n\tpublic void postInit(FMLPostInitializationEvent event) {\n\t}",
"public void beforeInit(){\n System.out.println(\"## beforeInit() - Before Init - Called by Bean Post Processor\");\n }",
"protected void postInstantiate() {}",
"@Override\n public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }",
"@PostConstruct\r\n\tpublic void init()\r\n\t{\n\t}",
"public static void postInit(FMLPostInitializationEvent event) {\n }",
"@PostConstruct\n\tpublic void myInit() throws Exception {\n\t\tSystem.out.println(\"Init Method Using Annotation Approach \");\n\t}",
"@PostConstruct\n public void init() {\n }",
"@PostConstruct\n\tpublic void init() {\n\t}",
"@PostConstruct\n\tpublic void init() {\n\t}",
"@PostConstruct\n\tpublic void init() {\n\n\t}",
"@PostConstruct\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"After Properties Set\");\n\t\t\n\t}",
"public void postInit(FMLPostInitializationEvent event)\n\t{\n\t\tif (config.hasChanged())\n\t\t{\n\t\t\tconfig.save();\n\t\t}\n\t}",
"@PostConstruct\r\n\tvoid init() {\n\t}",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t}",
"@PostConstruct\n private void init() {\n\n log.info(\"Singleton initialized; properties are: {}\", propertiesToString());\n }",
"public void postInit(FMLPostInitializationEvent event) {\n\n }",
"@Override\n\tpublic Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {\n\t\tSystem.out.println(\"Step8:执行 postProcessAfterInitialization 方法\");\n\t\treturn bean;\n\t}",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tinit();\n\t}",
"@Override\n public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }",
"@Override\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\r\n\t}",
"@PostConstruct\r\n public void init(){\n\r\n }",
"@PostConstruct\n\tpublic void init() {\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(new ClassPathResource(\"/META-INF/build-info.properties\"));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to load build.properties\", e);\n\t\t\tprops = new Properties();\n\t\t}\n\t}",
"public void afterPropertiesSet() throws Exception {\n\t\t// this methods is called when the bean is initialized\n\t\tSystem.out.println(\"Initializing beans afterPropertiesSet method() for triangle\");\n\t}",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\n\t}",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\n\t}",
"public void afterPropertiesSet() throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void postRun() {\n\t}",
"@Override\n public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }",
"@PostConstruct\n\tpublic void inicializar() {\n\t}",
"public <T extends Component> T postConstruct(T component)\r\n {\r\n // do nothing.\r\n return component;\r\n }",
"public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactoryObj) throws BeansException{\n\t\t//System.out.println(\"BeanFactoryPostProcessor ==> following bean post processor is called\");\n\t}",
"@PostConstruct\r\n\tpublic void afterPropertiesSet() throws Exception\r\n\t{\r\n\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(getDateFormat());\r\n\t\tSerializationConfig serialConfig = getSerializationConfig().withDateFormat(sdf);\r\n\t\tsetSerializationConfig(serialConfig);\r\n\r\n\t\tDeserializationConfig deserializationConfig = getDeserializationConfig().withDateFormat(sdf);\r\n\t\tsetDeserializationConfig(deserializationConfig);\r\n\r\n\t}",
"@Override\r\n public void afterPropertiesSet() throws Exception {\n }",
"void afterInit(Object bean, Class<?> clazz) throws Exception;",
"public void afterPropertiesSet() {\n super.afterPropertiesSet();\n\n debug(\"Plugin validated\");\n\n }",
"@Override\n public void onPostInit()\n {\n\n }",
"protected void onFinalInit() {\n\n }",
"@Override\n public void afterPropertiesSet() throws Exception {\n }",
"@Override\n\tprotected void postRun() {\n\n\t}",
"public void afterPropertiesSet() throws Exception {\n\t}",
"public void afterPropertiesSet() throws Exception {\n\t}",
"protected void __listenPostConstruct__() {\n\t\tif(__destinationClass__ == null) {\n\t\t\tClassNameBuilder classNameBuilder = DependencyInjection.inject(ClassNameBuilder.class).setKlass(getClass());\n\t\t\tclassNameBuilder.getSourceNamingModel(Boolean.TRUE).client().controller().entities().setSuffix(\"MapperImpl\");\n\t\t\tclassNameBuilder.getDestinationNamingModel(Boolean.TRUE).server().representation().entities().setSuffix(\"Dto\");\n\t\t\t__destinationClass__ = ValueHelper.returnOrThrowIfBlank(\"representation entity class\"\n\t\t\t\t\t,(Class<DESTINATION>) ClassHelper.getByName(classNameBuilder.execute().getOutput()));\n\t\t}\n }",
"@Override\n public void postBootSetup() {\n }",
"protected void childInit()\n {\n }",
"@Override\n public void postEnvCall() {\n shutdown(this.getEnvironment());\n }",
"public void onAfterLoad()\n\t{\n\t\tJLog.info(\" --- POSTINIT --- \");\n\n\t}",
"public void afterPropertiesSet() throws Exception {\r\n // let us register this instance with\r\n // event dispatcher\r\n eventDispatcher.registerListener(this);\r\n }",
"@Override\n protected void onPostCreate(Bundle savedState) {\n super.onPostCreate(savedState);\n }",
"void PostRun() {\n }",
"@PostConstruct //code will execute after the constructor and injection of dependencies\r\n \tpublic void doMyStatrupStuff()\r\n\t{\r\n\t\tSystem.out.println(\"TennisCoach: inside doMyStatrupStuff method\");\r\n\t}",
"@Override\n\tpublic void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {\n\t\tSystem.out.println(\"MyBeanFactoryPostProcessor的postProcessBeanFactory开始执行了啦啦啦!!!!\");\n\t}",
"public boolean isPreDestroyCalled() {\n \n return this.preDestroyCalled;\n }",
"@Override\n public void afterPropertiesSet() {\n validateProperties();\n }",
"@PreDestroy\n void destroy() {\n firedPreDestroy = true;\n }",
"@Override\n public boolean needsToRunAfterFinalized() {\n return false;\n }",
"@PostConstruct\n public void init() {\n prevBatchTime = transients.now();\n }",
"@Override\n\tpublic void onModPostInit2(FMLPostInitializationEvent aEvent) {\n\t}",
"public void afterPropertiesSet() throws Exception {\n\t\t System.out.println(\"Log Bean is going through init method using Interfaces.\");\n\t\t\n\t}",
"void setupPropertiesPostDeserialization() {\n initLayout();\n List<NamedThing> properties = getProperties();\n for (NamedThing prop : properties) {\n if (prop instanceof Properties) {\n ((Properties) prop).setupPropertiesPostDeserialization();\n } else {\n prop.setI18nMessageFormater(getI18nMessageFormater());\n }\n }\n\n }",
"public interface BeanPostProcessor {\n\n Object postProcessBeforeInitialization(Object bean, String beanName);\n\n Object postProcessAfterInitialization(Object bean, String beanName);\n}",
"public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }"
] | [
"0.7110909",
"0.6984225",
"0.64841026",
"0.64768577",
"0.64115953",
"0.63204163",
"0.6308292",
"0.6265826",
"0.624908",
"0.6118199",
"0.6069903",
"0.59653413",
"0.59653413",
"0.59269404",
"0.5726265",
"0.5720599",
"0.5700218",
"0.5700218",
"0.5700218",
"0.5700218",
"0.5700218",
"0.5700218",
"0.5700218",
"0.5700218",
"0.56761813",
"0.5671451",
"0.5657823",
"0.56501657",
"0.5591915",
"0.5591441",
"0.5591441",
"0.5589762",
"0.5532843",
"0.54702187",
"0.54702187",
"0.5457403",
"0.5434996",
"0.54336464",
"0.53981847",
"0.53873956",
"0.5366386",
"0.53623563",
"0.53614277",
"0.53431106",
"0.53431106",
"0.53262717",
"0.53262717",
"0.5305969",
"0.5294202",
"0.5290926",
"0.52897555",
"0.52897555",
"0.52897555",
"0.5281516",
"0.52660453",
"0.52566934",
"0.5240968",
"0.5215105",
"0.5207665",
"0.5194245",
"0.51646405",
"0.5163339",
"0.5121689",
"0.5121689",
"0.5112988",
"0.5090077",
"0.508786",
"0.5075815",
"0.5070158",
"0.5048482",
"0.5041398",
"0.50351036",
"0.5020628",
"0.50073737",
"0.50066406",
"0.49851272",
"0.49570006",
"0.49549073",
"0.4917041",
"0.4917041",
"0.48979986",
"0.48955613",
"0.48851836",
"0.48766634",
"0.48733708",
"0.48731288",
"0.48722616",
"0.4855212",
"0.4847207",
"0.4836869",
"0.4828391",
"0.48236197",
"0.48082766",
"0.47889918",
"0.47831964",
"0.47598422",
"0.4757208",
"0.47560015",
"0.4736729",
"0.47325414"
] | 0.7924892 | 0 |
Getter for property preDestroyCalled. | public boolean isPreDestroyCalled() {
return this.preDestroyCalled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPreDestroyCalled(boolean preDestroyCalled) {\n this.preDestroyCalled = preDestroyCalled;\n appendStatusMessage(\"bean: \" + getStringProperty() +\n \" preDestroyCalled: \" + preDestroyCalled);\n }",
"@PreDestroy\n void destroy() {\n firedPreDestroy = true;\n }",
"public boolean getDestroy() {\n\t\treturn destroy;\n\t}",
"public boolean getIsDestroyed(){\r\n\t\treturn isDestroyed;\r\n\t}",
"@PreDestroy\n public void perDestroyFn (){\n LOOGER.info(\" ==== pre destroy the bean ====> {}:\");\n }",
"@PreRemove\r\n public void preRemove(){\r\n this.isDeleted=true;\r\n }",
"boolean isDestroyed() {\n return destroyed;\n }",
"@PreDestroy\r\n\tpublic void doMyStuff() {\r\n\t\tSystem.out.println(\"destroy method\");\r\n\t}",
"public boolean isSetBefore() {\n return this.before != null;\n }",
"public boolean isDestroyed(){\n return destroyed;\n }",
"public boolean isDestroyable()\n\t{\n\t\treturn destroyable;\n\t}",
"public InterceptorType<T> removeAllPreDestroy()\n {\n childNode.remove(\"pre-destroy\");\n return this;\n }",
"@PreDestroy\n\tpublic void myDestroy() throws Exception {\n\t\tSystem.out.println(\"Destroy Method Using Annotation\");\n\t}",
"public boolean isPostConstructCalled() {\n \n return this.postConstructCalled;\n }",
"public boolean isPreFreeze() {\r\n return preFreezeCheck;\r\n }",
"@PreDestroy\n public void destroy() {\n LOG.debug(\"destroy\");\n }",
"public boolean isDestroyed() {\n\t\treturn isDestroyed;\n\t}",
"public float timeBeforeDestruction(){\n\t\tif(destroyTime < Float.MAX_VALUE){\n\t\t\treturn destroyTime - Main.time;\n\t\t}else{\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\t}",
"public boolean isDestroyed()\n\t\t{\n\t\t\treturn destroyed;\n\t\t}",
"boolean isDestroyed();",
"boolean isDestroyed();",
"@Override\n\tprotected void onDestroy() {\n\t\tflag=false;\n\t\tsuper.onDestroy();\n\t}",
"public boolean isDestroyed();",
"public void processPreDestroyAnnotations ()\n throws Exception\n {\n \n for (Method m: _finder.getMethodsForAnnotation(PreDestroy.class))\n {\n if (!isServletType(m.getDeclaringClass()))\n {\n Log.debug(\"Ignoring \"+m.getName()+\" as non-servlet type\");\n continue;\n }\n if (m.getParameterTypes().length != 0)\n throw new IllegalStateException(m+\" has parameters\");\n if (m.getReturnType() != Void.TYPE)\n throw new IllegalStateException(m+\" is not void\");\n if (m.getExceptionTypes().length != 0)\n throw new IllegalStateException(m+\" throws checked exceptions\");\n if (Modifier.isStatic(m.getModifiers()))\n throw new IllegalStateException(m+\" is static\");\n \n PreDestroyCallback callback = new PreDestroyCallback(); \n callback.setTargetClass(m.getDeclaringClass());\n callback.setTarget(m);\n _callbacks.add(callback);\n }\n }",
"@PreDestroy\n public void preDestroy() {\n scheduledFuture.cancel(true);\n execService.shutdown();\n }",
"public abstract boolean isDestroyed();",
"public boolean isDestroyed(){\n\t\treturn System.currentTimeMillis() > creationTime + this.visibleTime ;\n\t}",
"public boolean getWasCreated(){\n return wasCreated;\n }",
"@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)\n public void onDestroy() {\n if (PatchProxy.isSupport(new Object[0], this, f3104a, false, 39324, new Class[0], Void.TYPE)) {\n PatchProxy.accessDispatch(new Object[0], this, f3104a, false, 39324, new Class[0], Void.TYPE);\n return;\n }\n this.f3106c.clear();\n }",
"public void beforeInit(){\n System.out.println(\"## beforeInit() - Before Init - Called by Bean Post Processor\");\n }",
"protected boolean beforeRemove() {\n return true;\n }",
"public boolean destroyed() {\r\n\t\treturn destroyed;\r\n\t}",
"@Override\n public Object preProcess() {\n return null;\n }",
"@Override\n\tpublic boolean preDelete() {\n\t\treturn false;\n\t}",
"public final boolean isColdStarted()\n\t{\n\t\treturn this.coldstart;\n\t}",
"public void notDestroyable()\n\t{\n\t\tdestroyable = false;\n\t}",
"synchronized void destroy() {\n destroyed = true;\n }",
"public Optional<Instant> getBefore() {\n\t\t\treturn before;\n\t\t}",
"public boolean hasCreated() {\n return fieldSetFlags()[4];\n }",
"public boolean isBeforeImage()\n\t{\n\t\treturn beforeImage;\n\t}",
"public Optional<Instant> getBefore() {\n\t\treturn before;\n\t}",
"@PreDestroy\n\tpublic void destroy()\n\t{\n\t\tSystem.out.println(\"Circle Destruction\");\n\t}",
"@PreRemove\r\n public void preRemove() {\r\n\r\n }",
"public Method getDestroyMethod() {\n return destroyMethod;\n }",
"@PreDestroy //code will execute before the bean is destroyed \r\n\tpublic void doMyCleanupStuff()\r\n\t{\r\n\t\tSystem.out.println(\"TennisCoach: inside doMyCleanupStuff method\");\r\n\t}",
"public boolean isDestroyed() {\n return hitCounter >= metaObject.getMaxHits();\n }",
"public boolean isDestroyed() {\n\t\treturn gone;\n\t}",
"public boolean isDestroyingActivity() {\n return isFinishing() || Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 && isDestroyed();\n }",
"public void setIsDestroyed(boolean isDestroyed){\r\n\t\tthis.isDestroyed = isDestroyed;\r\n\t}",
"@Override\n public void onPre() {\n }",
"public void setPostConstructCalled(boolean postConstructCalled) {\n \n this.postConstructCalled = postConstructCalled;\n appendStatusMessage(\"bean: \" + getStringProperty() +\n \" postConstructCalled: \" + postConstructCalled);\n \n }",
"public boolean isDestroyed(){\n\t\treturn entState == EntState.Destroyed;\n\t}",
"public Vertice<E> getPredecesor(){\r\n\t\treturn pre;\r\n\t}",
"@Override\n public boolean getCalledOnNullInput() {\n return calledOnNullInput_;\n }",
"public boolean isClientsidecreated() {\n return clientsidecreated.get();\n }",
"@PreDestroy\r\n\tpublic void doMyCleaupStuff() {\r\n\t\t\r\n\t\tSystem.out.println(\"TennisCoach : -> Inside of doMyCleaupStuff()\");\r\n\t}",
"@Override\n public boolean getCalledOnNullInput() {\n return calledOnNullInput_;\n }",
"public boolean isCreateDateInitialized() {\n return createDate_is_initialized; \n }",
"public boolean getInit() {\r\n\t\treturn init;\r\n\t}",
"@java.lang.Override\n public boolean getDidSetup() {\n return didSetup_;\n }",
"@java.lang.Override\n public boolean getDidSetup() {\n return didSetup_;\n }",
"public boolean isKilled() {\n return killed;\n }",
"public void destroy(){\n destroyed = true;\n }",
"@Override\n\tpublic boolean preDelete() {\n\t\teliminarCuentasHijas(instance);\n\t\treturn true;\n\t}",
"public boolean getFront()\n {\n return m_bFrontLock;\n }",
"public java.lang.Boolean getSupportsPreauthOverage() {\n return genClient.cacheGet(CacheKey.supportsPreauthOverage);\n }",
"public Body getDestroyablePlatform() {\n return destroyablePlatform;\n }",
"@PreDestroy\r\n\tpublic void doMyCleanupStuff() {\r\n\t\tSystem.out.println(\">> TennisCoach: inside of doMyCleanupStuff()\");\r\n\t}",
"public boolean hasPlayedBefore ( ) {\n\t\treturn extract ( handle -> handle.hasPlayedBefore ( ) );\n\t}",
"public boolean shouldHaveStarted() {\n return mCameraStarted.get();\n }",
"@java.lang.Override\n public boolean getDeleted() {\n return deleted_;\n }",
"@java.lang.Override\n public boolean getFenced() {\n return fenced_;\n }",
"@java.lang.Override\n public boolean getDeleted() {\n return deleted_;\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n Log.i(\"Lifecycle\", \"onDestroy is called\");\n }",
"@PreDestroy\n void destroy(InvocationContext ctx) throws Exception {\n SuperclassInterceptorMethodsTest.LIFECYCLE_CALLBACKS.add(\"c\");\n ctx.proceed();\n }",
"public boolean hasCrashed() {\n return crashed;\n }",
"public boolean getMayUseCache () {\n\treturn mayUseCache;\n }",
"public Boolean getIsDeleted() {\r\n return isDeleted;\r\n }",
"public boolean getMayCache () {\n\treturn mayCache;\n }",
"public void setDestroy() {\n\t\tdisparos--;\n\t\tif(disparos<=0) {\n\t\t\tdestroy=true;\n\t\t}\n\t}",
"@java.lang.Override\n public boolean getFenced() {\n return fenced_;\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tSystem.out.println(\"onDestroy\");\n\t}",
"@Override\r\n\tpublic void onCustomDestroy() {\n\t\t\r\n\t}",
"protected abstract void postDestroy();",
"abstract void onDestroy();",
"public Boolean getIsDeleted() {\n return isDeleted;\n }",
"public boolean isDeleted() {\r\n\treturn isDeleted;\r\n}",
"@Override\n public void onStart() {\n Log.e(TAG, \"detect the lifecycleowner--- started\");\n }",
"@Override\r\n\tprotected void prepareForDestroy() {\r\n\t\tmyTarget.removePropertyChangeListener(Property.BOUNDS_CHANGED, this);\r\n\r\n\t\tsuper.prepareForDestroy();\r\n\t}",
"public void setPreFreeze(boolean isPreFreeze) {\r\n this.preFreezeCheck = isPreFreeze;\r\n }",
"public boolean wasInitialized()\n {\n return this.isInitialized;\n }",
"public LifecycleState getLifecycleState() {\n\t\treturn null;\n\t}",
"public boolean getResetTimeOnStop() { return _resetTimeOnStop; }",
"public int getBeforeCost() {\n return beforeCost;\n }",
"public int getBeforeCost() {\n return beforeCost;\n }",
"private native void simpleOnDestroy();",
"void preInit();",
"void preInit();",
"public boolean isInit() {\r\n\t\treturn isInit;\r\n\t}",
"public boolean isSetCreated()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(CREATED$0) != 0;\n }\n }"
] | [
"0.7930019",
"0.6873936",
"0.6392981",
"0.5986675",
"0.58675987",
"0.57389396",
"0.5731099",
"0.5696944",
"0.5670848",
"0.56679785",
"0.55991685",
"0.54753447",
"0.5465943",
"0.5461508",
"0.54530674",
"0.5435605",
"0.5418129",
"0.53912383",
"0.5360604",
"0.53203696",
"0.53203696",
"0.5318642",
"0.52810836",
"0.51772076",
"0.5159124",
"0.51575243",
"0.51510453",
"0.51089865",
"0.5086691",
"0.5072972",
"0.50457764",
"0.5039773",
"0.5029647",
"0.5019706",
"0.5018526",
"0.5018439",
"0.5005511",
"0.5003416",
"0.49964076",
"0.49838278",
"0.49733022",
"0.49722478",
"0.49687555",
"0.496338",
"0.49212864",
"0.49147162",
"0.4890081",
"0.4879374",
"0.48715204",
"0.48628688",
"0.4857052",
"0.48365864",
"0.47742426",
"0.4769647",
"0.476637",
"0.4759527",
"0.47454506",
"0.47404355",
"0.4737059",
"0.47335204",
"0.47315413",
"0.4730981",
"0.47300807",
"0.47206175",
"0.47070637",
"0.47006103",
"0.46977302",
"0.46957344",
"0.46951756",
"0.46868664",
"0.46837395",
"0.4680962",
"0.46807322",
"0.46743625",
"0.46509922",
"0.46475324",
"0.46414164",
"0.4630849",
"0.4622426",
"0.4621355",
"0.4615981",
"0.46148098",
"0.46113643",
"0.4609713",
"0.4594774",
"0.4592281",
"0.4592208",
"0.4581634",
"0.45783225",
"0.45771182",
"0.4570897",
"0.4569436",
"0.45691547",
"0.4564514",
"0.4564514",
"0.4562553",
"0.4556472",
"0.4556472",
"0.45533466",
"0.4547342"
] | 0.8548733 | 0 |
Setter for property preDestroyCalled. | public void setPreDestroyCalled(boolean preDestroyCalled) {
this.preDestroyCalled = preDestroyCalled;
appendStatusMessage("bean: " + getStringProperty() +
" preDestroyCalled: " + preDestroyCalled);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isPreDestroyCalled() {\n \n return this.preDestroyCalled;\n }",
"@PreDestroy\n void destroy() {\n firedPreDestroy = true;\n }",
"@PreRemove\r\n public void preRemove(){\r\n this.isDeleted=true;\r\n }",
"@PreDestroy\r\n\tpublic void doMyStuff() {\r\n\t\tSystem.out.println(\"destroy method\");\r\n\t}",
"@PreDestroy\n public void perDestroyFn (){\n LOOGER.info(\" ==== pre destroy the bean ====> {}:\");\n }",
"@PreDestroy\n public void destroy() {\n LOG.debug(\"destroy\");\n }",
"@PreDestroy\n\tpublic void myDestroy() throws Exception {\n\t\tSystem.out.println(\"Destroy Method Using Annotation\");\n\t}",
"@Override\n\tprotected void onDestroy() {\n\t\tflag=false;\n\t\tsuper.onDestroy();\n\t}",
"@PreDestroy\n public void preDestroy() {\n scheduledFuture.cancel(true);\n execService.shutdown();\n }",
"public void processPreDestroyAnnotations ()\n throws Exception\n {\n \n for (Method m: _finder.getMethodsForAnnotation(PreDestroy.class))\n {\n if (!isServletType(m.getDeclaringClass()))\n {\n Log.debug(\"Ignoring \"+m.getName()+\" as non-servlet type\");\n continue;\n }\n if (m.getParameterTypes().length != 0)\n throw new IllegalStateException(m+\" has parameters\");\n if (m.getReturnType() != Void.TYPE)\n throw new IllegalStateException(m+\" is not void\");\n if (m.getExceptionTypes().length != 0)\n throw new IllegalStateException(m+\" throws checked exceptions\");\n if (Modifier.isStatic(m.getModifiers()))\n throw new IllegalStateException(m+\" is static\");\n \n PreDestroyCallback callback = new PreDestroyCallback(); \n callback.setTargetClass(m.getDeclaringClass());\n callback.setTarget(m);\n _callbacks.add(callback);\n }\n }",
"public boolean getDestroy() {\n\t\treturn destroy;\n\t}",
"public InterceptorType<T> removeAllPreDestroy()\n {\n childNode.remove(\"pre-destroy\");\n return this;\n }",
"public boolean isSetBefore() {\n return this.before != null;\n }",
"synchronized void destroy() {\n destroyed = true;\n }",
"public void setDestroyed(boolean destroyed)\n\t\t{\n\t\t\tthis.destroyed=destroyed;\n\t\t}",
"public void setIsDestroyed(boolean isDestroyed){\r\n\t\tthis.isDestroyed = isDestroyed;\r\n\t}",
"public void beforeInit(){\n System.out.println(\"## beforeInit() - Before Init - Called by Bean Post Processor\");\n }",
"public void setPreFreeze(boolean isPreFreeze) {\r\n this.preFreezeCheck = isPreFreeze;\r\n }",
"public void notDestroyable()\n\t{\n\t\tdestroyable = false;\n\t}",
"@PreRemove\r\n public void preRemove() {\r\n\r\n }",
"@Override\n\tpublic boolean preDelete() {\n\t\treturn false;\n\t}",
"public boolean getIsDestroyed(){\r\n\t\treturn isDestroyed;\r\n\t}",
"public void setDestroy() {\n\t\tdisparos--;\n\t\tif(disparos<=0) {\n\t\t\tdestroy=true;\n\t\t}\n\t}",
"@PreDestroy\n\tpublic void destroy()\n\t{\n\t\tSystem.out.println(\"Circle Destruction\");\n\t}",
"@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)\n public void onDestroy() {\n if (PatchProxy.isSupport(new Object[0], this, f3104a, false, 39324, new Class[0], Void.TYPE)) {\n PatchProxy.accessDispatch(new Object[0], this, f3104a, false, 39324, new Class[0], Void.TYPE);\n return;\n }\n this.f3106c.clear();\n }",
"public void setPostConstructCalled(boolean postConstructCalled) {\n \n this.postConstructCalled = postConstructCalled;\n appendStatusMessage(\"bean: \" + getStringProperty() +\n \" postConstructCalled: \" + postConstructCalled);\n \n }",
"public void destroy(){\n destroyed = true;\n }",
"@Override\n public void onPre() {\n }",
"protected boolean beforeRemove() {\n return true;\n }",
"@Override\r\n\tprotected void prepareForDestroy() {\r\n\t\tmyTarget.removePropertyChangeListener(Property.BOUNDS_CHANGED, this);\r\n\r\n\t\tsuper.prepareForDestroy();\r\n\t}",
"public boolean isPreFreeze() {\r\n return preFreezeCheck;\r\n }",
"public boolean isDestroyed(){\n return destroyed;\n }",
"public void setBeforeImage(boolean beforeImage)\n\t{\n\t\tthis.beforeImage = beforeImage;\n\t}",
"public boolean isDestroyable()\n\t{\n\t\treturn destroyable;\n\t}",
"protected void beforeParentInit() {\n // by default do nothing\n }",
"boolean isDestroyed() {\n return destroyed;\n }",
"@Override\n public void onPreInflationStartup() {\n mActivity.supportRequestWindowFeature(Window.FEATURE_ACTION_MODE_OVERLAY);\n\n if (mSavedInstanceStateSupplier.get() == null && mConnection.hasWarmUpBeenFinished()) {\n mTabModelInitializer.initializeTabModels();\n\n // Hidden tabs shouldn't be used in incognito, since they are always created with\n // regular profile.\n if (mIntentDataProvider.isIncognito()) {\n mTabProvider.setInitialTab(createTab(), TabCreationMode.EARLY);\n return;\n }\n\n Tab tab = getHiddenTab();\n if (tab == null) {\n tab = createTab();\n mTabProvider.setInitialTab(tab, TabCreationMode.EARLY);\n } else {\n mTabProvider.setInitialTab(tab, TabCreationMode.HIDDEN);\n }\n }\n }",
"@PreDestroy\r\n\tpublic void doMyCleaupStuff() {\r\n\t\t\r\n\t\tSystem.out.println(\"TennisCoach : -> Inside of doMyCleaupStuff()\");\r\n\t}",
"public void setClientsidecreated(boolean value) {\n clientsidecreated.set(value);\n }",
"@Override\n\tpublic boolean preDelete() {\n\t\teliminarCuentasHijas(instance);\n\t\treturn true;\n\t}",
"private void setReadyPre() {\n\t\tint preIndex=getPreIndex();\r\n\t\tLog.d(TAG, \"setReadyPre: \"+preIndex);\r\n\t\tmApplications.get(preIndex).resetToFrontPlace();\r\n\t\tif(mApplications.get(preIndex).getReady() ==-1)\r\n\t\t\tsetTexId(preIndex);\r\n\t}",
"public void destroy() {\n destroying = true;\n }",
"void preInit();",
"void preInit();",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tSystem.gc();\n\t\tthis.init();\n\t}",
"@Override\n public Object preProcess() {\n return null;\n }",
"@PreDestroy\n void destroy(InvocationContext ctx) throws Exception {\n SuperclassInterceptorMethodsTest.LIFECYCLE_CALLBACKS.add(\"c\");\n ctx.proceed();\n }",
"public float timeBeforeDestruction(){\n\t\tif(destroyTime < Float.MAX_VALUE){\n\t\t\treturn destroyTime - Main.time;\n\t\t}else{\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\t}",
"public boolean isPostConstructCalled() {\n \n return this.postConstructCalled;\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\ttActivityDisplay.setText(\"On Destroy called\");\n\t}",
"public boolean isDestroyed()\n\t\t{\n\t\t\treturn destroyed;\n\t\t}",
"@Override\n protected void onResume() {\n super.onResume();\n justAfterPause = false;\n }",
"public boolean isBeforeImage()\n\t{\n\t\treturn beforeImage;\n\t}",
"boolean isDestroyed();",
"boolean isDestroyed();",
"@PreDestroy\r\n\tpublic void doMyCleanupStuff() {\r\n\t\tSystem.out.println(\">> TennisCoach: inside of doMyCleanupStuff()\");\r\n\t}",
"@Override\n public void preStart() {\n Reaper.watchWithDefaultReaper(this);\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n protected void onDestroy() {\n super.onDestroy();\n isPaused = true;\n }",
"@PreDestroy //code will execute before the bean is destroyed \r\n\tpublic void doMyCleanupStuff()\r\n\t{\r\n\t\tSystem.out.println(\"TennisCoach: inside doMyCleanupStuff method\");\r\n\t}",
"public boolean isDestroyed();",
"public boolean isDestroyed() {\n\t\treturn isDestroyed;\n\t}",
"protected void preUpdate() {\n freeX = true;\n freeY = true;\n }",
"@Override\n\tpublic void pre()\n\t{\n\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tmPaused=false;\n\t\tsynchronized (obj) {\n\t\t\t\n\t\t\tobj.notify();\n\t\t}\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tSystem.out.println(\"destroy\");\n\t\t unregisterReceiver(KER);\n\t\t if(PosccalmRunnable!=null)\n\t\t PosccalmRunnable.destroy();\n\t}",
"protected abstract void postDestroy();",
"@Override\n public void preRun() {\n super.preRun();\n }",
"@Override\n public void onStart() {\n Log.e(TAG, \"detect the lifecycleowner--- started\");\n }",
"@PreDestroy\n\tpublic void doMyCleanupStfff() {\n\t\tSystem.out.println(\">> TennisCoach: inside of doMyCleanupStuff\");\n\t}",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n Log.i(\"Lifecycle\", \"onDestroy is called\");\n }",
"protected void onResume() {\n super.onResume();\n sensorManager.registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_NORMAL);\n start = false;\n }",
"@Override\r\n\tpublic void onCustomDestroy() {\n\t\t\r\n\t}",
"@Override\n\tprotected void onPause()\n\t{\n\t super.onPause();\n\t isFront = false;\n\t \n\t}",
"@Override\r\n public void onResume() {\r\n NexLog.d(LOG_TAG, \"onResume called\");\r\n activityPaused = false;\r\n }",
"public abstract boolean isDestroyed();",
"@Override\r\n\t\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\t\tIsRunning = false;\r\n\t\t}",
"@Override\n protected void onDestroy() {\n \tsuper.onDestroy();\n \ttry {\n\t\t\tm.unRegisteredPropListener(mMyPropListener);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }",
"protected void processDestroy()\n {\n }",
"public void setPreOperation(OperationConf oc) {\n preOperation = oc;\n }",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif (DEBUG>=2) Log.d(TAG, \"onResumed'd\");\n\t\tIS_PAUSING = NO;\n\t\twl.acquire();\n\t\tpreview.onResume();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tisFlag = false;\n\t}",
"@Override\n\tprotected void onDestroy() {\n\t\tSystem.out.println(\"onDestroy\");\n\t}",
"public boolean destroyed() {\r\n\t\treturn destroyed;\r\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tLog.v(TAG, \"onCreate\");\n\t}",
"public boolean isDestroyed(){\n\t\treturn System.currentTimeMillis() > creationTime + this.visibleTime ;\n\t}",
"abstract void onDestroy();",
"public final void \n onResume() {\n \t\n \tthis.isPaused = false;\n \tthis.isResumed = true;\n \tthis.mLastTextureId = 0;\n \tsuper.onResume();\n }",
"@Override\r\n\tprotected boolean isNeedInitBack() {\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\trunFlag = false;\n\t}",
"private native void simpleOnDestroy();",
"@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}",
"@PreDestroy\n public void foo()\n {\n for (int i = 0; i < 10; i++)\n {\n for (int k = 0; k < 20; i++)\n {\n }\n }\n }",
"@Override\n\tpublic void onDestroy() {\n\t\t\n\t\tLog.d(TAG,\"onDestroy\");\n\t\tif(mCameraDevices!=null){\n\t\t\tmCameraDevices.release();\n\t\t}\n\t\tshowFloatTool(false);\n\t\tsuper.onDestroy();\n\t}",
"public void onDestroy();",
"public void onDestroy();",
"public void before() {\n process = Thread.currentThread();\n }",
"@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\trunActivity = 0;\r\n\t}",
"public void destroy(boolean destroy) {\n this.destroy = destroy;\n }",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tourSurfaceView.onResume();\n\t}",
"public Builder setCalledOnNullInput(boolean value) {\n\n calledOnNullInput_ = value;\n onChanged();\n return this;\n }"
] | [
"0.8004619",
"0.69994664",
"0.59196347",
"0.56520087",
"0.56296086",
"0.5577732",
"0.545939",
"0.5450239",
"0.54489446",
"0.5358168",
"0.53448623",
"0.5299165",
"0.52323765",
"0.5182489",
"0.51806736",
"0.51550037",
"0.51546866",
"0.51274997",
"0.511753",
"0.5111468",
"0.50820833",
"0.50808007",
"0.506895",
"0.50636834",
"0.50203097",
"0.50085264",
"0.49931008",
"0.49906114",
"0.4987656",
"0.4957025",
"0.4947816",
"0.49123207",
"0.48554826",
"0.485209",
"0.48410097",
"0.482417",
"0.4793322",
"0.47896245",
"0.4767539",
"0.47512597",
"0.475094",
"0.47481734",
"0.47450772",
"0.47450772",
"0.47300917",
"0.4729652",
"0.47276083",
"0.4711883",
"0.4700987",
"0.46752122",
"0.4657102",
"0.4648007",
"0.46306422",
"0.46269518",
"0.46269518",
"0.4611675",
"0.4610245",
"0.4599507",
"0.45991617",
"0.4582897",
"0.4582551",
"0.45774373",
"0.4570635",
"0.45607266",
"0.4557006",
"0.4546013",
"0.45274663",
"0.4499258",
"0.44985935",
"0.44975853",
"0.44960782",
"0.4495697",
"0.44894242",
"0.44834983",
"0.44766325",
"0.44669876",
"0.44632462",
"0.44572094",
"0.44539216",
"0.44414836",
"0.44356778",
"0.44282213",
"0.44270378",
"0.4414686",
"0.44111884",
"0.44107443",
"0.44087803",
"0.44051856",
"0.43993598",
"0.43837905",
"0.43832356",
"0.43829733",
"0.4380743",
"0.4378208",
"0.4378208",
"0.43780905",
"0.43740776",
"0.4373511",
"0.43710154",
"0.4370643"
] | 0.8268687 | 0 |
Getter for property suit. | public Suit getSuit() {
return this.suit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSuit(){\n return suit;\n }",
"public String getSuit()\r\n { return suit; }",
"public int getSuit()\n {\n return suit;\n }",
"public String getSuit(){ return this.suit; }",
"public int getSuit()\n {\n return suit;\n }",
"public int getSuit() {\r\n return suit;\r\n }",
"public String getSuit()\r\n {\r\n return suit;\r\n }",
"public String suit() {\r\n return suit;\r\n }",
"public int getSuit(){\n\t\treturn suit; \n\t}",
"public int getSuit() {\n return suit;\n }",
"public int getSuit() {\n return suit;\n }",
"public String getSuit() {\r\n return suit;\r\n }",
"public String getSuit() {\n return suit;\n }",
"public int getSuit() {\n return this.suit;\n }",
"public Suit getSuit() {\n return suit;\n }",
"public String getSuit()\r\n\t{\r\n\t\treturn suit;\r\n\t}",
"public String getSuit() {\n return this.suit;\n }",
"public String getSuit()\n\t{\n\t\treturn suit;\n\t}",
"public int getSuit() {\n\t\treturn suit;\n\t}",
"public String getSuit() {\n\t\treturn suit;\n\t}",
"public String getSuit() {\n\t\treturn suit;\n\t}",
"public Suit getSuit() {\n return this.suit;\n }",
"public Suit getSuit() {\n\t\treturn suit;\n\t}",
"public Suits getSuit() {\n\t\treturn suit;\n\t}",
"public String getSuit() {\r\n return suitStr;\r\n }",
"Property getProperty();",
"Property getProperty();",
"public Suit getSuit() {\r\n\t\treturn this.suit;\r\n\t}",
"public int getSuitInt() {\n return this.suit;\n }",
"public String getCardSuit() {\n return Csuit;\n }",
"String getProperty();",
"String getProperty();",
"String getProperty();",
"java.lang.String getProperty();",
"public String getSuit()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************** Start getSuit Method *****************/\n\n\t// Return suit of card\n return suit;\n\n }",
"public Suit getSuit() {\n return cardSuit;\n }",
"public final Suit getSuit() {\n\t\treturn this.suit;\n\t}",
"public String getProperty();",
"public int suitNum() {\r\n return this.i;\r\n }",
"public char getSuit(){\n return Suits;\n }",
"public int getSuit ()\n {\n return this.suits; \n }",
"public String toString()\n {\n return value + \" \" + suit;\n }",
"private String getPropertyValue() {\n return EmfPropertyHelper.getValue(itemPropertyDescriptor, eObject);\n }",
"public interface Property {\n\n\t/**\n\t * Returns the name of the property.\n\t * @return property name\n */\n\tString getName();\n\n\t/**\n\t * Returns the cost to buy the property if it is unowned.\n\t * @return cost in dollars\n */\n\tint getCost();\n\n\t/**\n\t * Returns true if the property is mortgaged.\n\t * @return true if mortgaged\n */\n\tboolean getMortgaged();\n\n\t/**\n\t * Controls whether the property is mortgaged or not.\n\t * @param mortgaged whether or not the property is mortgaged\n */\n\tvoid setMortgaged(boolean mortgaged);\n\n\t/**\n\t * Returns the mortgage rate of the property.\n\t * @return mortgage rate in dollars\n */\n\tint getMortgageRate();\n\n\t/**\n\t * Returns the rent the given player should pay.\n\t * @param owner player that owns the property\n\t * @param tenantDiceRoll the roll the tenant made to get to this space\n\t * @return rent cost in dollars\n */\n\tint getRent(Player owner, int tenantDiceRoll);\n\n}",
"int getProperty0();",
"int getProperty1();",
"private String getSuitName() {\n String result;\n if (this.suit == 0) {\n result = \"Clubs\";\n } else if (this.suit == 1) {\n result = \"Diamonds\";\n } else if (this.suit == 2) {\n result = \"Hearts\";\n } else {\n result = \"Spades\";\n }\n return result;\n }",
"public char getSuit(){\n\t\treturn this.farge;\n\t}",
"Object getPropertytrue();",
"int getProperty2();",
"public String toString() {\n return \"The \" + value + \" of \" + suit;\n }",
"int getShirt();",
"public void setSuit(Suit suit) {\n this.suit = suit;\n }",
"String getProperty(String property);",
"ObjectProperty<Piece> getPieceProperty();",
"String getProperty(String name);",
"public String prop(String name);",
"public ChessPiece getPiece(){return piece;}",
"public String getProperty(String name);",
"public String getPropertyPart() {\n return this.PROPERTY_PART;\n }",
"String getValueOfCssProperty(String propertyName);",
"String getProperty(String key);",
"String getProperty(String key);",
"String getProperty(String key);",
"@Override\n public Object getProperty(String name) {\n name = name.toLowerCase();\n return this.properties.get(name);\n }",
"public void setSuit(String suit)\r\n {\r\n this.suit = suit;\r\n }",
"public Object getProperty (String index) ;",
"private PropertyPagePropertyDescriptor getPropertyDescriptor() {\n \t\treturn propertyDescriptor;\n \t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn (\"Suit: \"+this.suit+\"\\nValue: \"+this.value);\r\n\t}",
"@SuppressWarnings(\"rawtypes\")\n public static String getProp(String varName) {\n if (varName == null)\n return \"\";\n varName = varName.toUpperCase().trim();\n for (Class<? extends Enum> c : CMProps.PROP_CLASSES) {\n if (CMath.s_valueOf(c, varName) != null) {\n if (c == Str.class)\n return p().getStr((Str) CMath.s_valueOf(c, varName));\n else if (c == Int.class)\n return \"\" + p().getInt((Int) CMath.s_valueOf(c, varName));\n else if (c == Bool.class)\n return \"\" + p().getBool((Bool) CMath.s_valueOf(c, varName));\n else if (c == ListFile.class)\n return \"\" + CMParms.toListString(CMProps.getListFileStringList((ListFile) CMath.s_valueOf(c, varName)));\n else if (c == StrList.class)\n return \"\" + CMParms.toListString(CMProps.getListVar((StrList) CMath.s_valueOf(c, varName)));\n else if (c == WhiteList.class)\n return \"\" + CMParms.toListString(p().whiteLists.get(CMath.s_valueOf(c, varName)));\n }\n }\n return p().getStr(varName, \"\");\n }",
"public int getShirt() {\n return shirt_;\n }",
"Object getProperty(String name);",
"public int getPropertyInt(String key);",
"@Override\r\n\tpublic Integer getPropensity_smallpur_decile() {\n\t\treturn super.getPropensity_smallpur_decile();\r\n\t}",
"public abstract String GetProperty(Slice property);",
"private static int suitAsInt(Card card) {\n return card.getSuit().ordinal();\n }",
"public String getPropValue(String propertyName){\n\n return pro.getProperty(propertyName);\n\n }",
"public String getProp(String key) {\n\t\treturn prop.getProperty(key);\n\t}",
"Object getProperty(String key);",
"public String getProperty(Class type, String key);",
"@Override\n public java.lang.Object getProperty(int propertyIndex) {\n if(propertyIndex==0)\n {\n return P;\n }\n if(propertyIndex==1)\n {\n return Q;\n }\n if(propertyIndex==2)\n {\n return G!=null?G:SoapPrimitive.NullSkip;\n }\n if(propertyIndex==3)\n {\n return Y;\n }\n if(propertyIndex==4)\n {\n return J!=null?J:SoapPrimitive.NullSkip;\n }\n if(propertyIndex==5)\n {\n return Seed;\n }\n if(propertyIndex==6)\n {\n return PgenCounter;\n }\n return null;\n }",
"@Override\n\tpublic double getCost() {\n\t\tcost = roll.getCost();\n\t\tif(roll.getType().equals(\"egg\")) {\n\t\t\tcost+=0.40;\n\t\t}else if(roll.getType().equals(\"jelly\")) {\n\t\t\tcost+=0.20;\n\t\t}else if(roll.getType().equals(\"pastry\")) {\n\t\t\tcost+=1.20;\n\t\t}else if(roll.getType().equals(\"sausage\")) {\n\t\t\tcost+=0.75;\n\t\t}else {\n\t\t\tcost+=0.10;\n\t\t}\n\t\t\n\t\t\t\n\t\treturn cost;\n\t\t\n\t}",
"public int getProperty1() {\n return property1_;\n }",
"public int getPiece() {\n return piece;\n }",
"public Property getProperty() {\n\treturn commonproperty;\r\n}",
"public int getClase() {return clase;}",
"public Property getProperty() {\n\t\treturn _property;\n\t}",
"Object getProperty(String requestedProperty) {\n return properties.getProperty(requestedProperty);\n }",
"public DatatypeProp getProperty() {\n return property;\n }",
"public int getPropertyFade()\n {\n return iPropertyFade.getValue();\n }",
"public int getHp(){\r\n return hp;\r\n }",
"public int getShirt() {\n return shirt_;\n }",
"@Test\n public void cardHasSuit(){\n assertEquals(Suit.CLUBS, this.card.getSuit());\n // Suit.Clubs expected, referencing this.card instance from method getSuit in in Card class\n }",
"public void setSuit(String value) {\n suit = value;\n }",
"@Override\r\n\tpublic Integer getPropensity_credit_decile() {\n\t\treturn super.getPropensity_credit_decile();\r\n\t}",
"public String getProperty() {\n return \"\";\n }",
"public int getShoes() {\n return shoes_;\n }",
"private String getPropertyValue(CtrlItemVO vo, String propName) {\n\n\t\tif (vo != null && propName != null) {\n\t\t\tArrayList<CtrlPropVO> props = vo.getPropList();\n\t\t\tif (props != null && props.size() > 0) {\n\t\t\t\tfor (CtrlPropVO prop : props) {\n\t\t\t\t\tif (propName.equals(prop.getPropNm())) {\n\t\t\t\t\t\treturn prop.getPropValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn \"\";\n\t}",
"public Integer getProperty() {\n\t\t\treturn null;\n\t\t}",
"@Override\r\n\tpublic Double getPropensity_pension_score() {\n\t\treturn super.getPropensity_pension_score();\r\n\t}"
] | [
"0.6943151",
"0.6875344",
"0.68388206",
"0.6802488",
"0.6798425",
"0.6794302",
"0.67650145",
"0.6744268",
"0.6743938",
"0.6737367",
"0.6737367",
"0.672839",
"0.6662097",
"0.66540194",
"0.6645123",
"0.6617788",
"0.65923715",
"0.65425974",
"0.65055674",
"0.6489754",
"0.6489754",
"0.64433825",
"0.643312",
"0.63330626",
"0.6315409",
"0.6261527",
"0.6261527",
"0.6185277",
"0.61292565",
"0.6091012",
"0.60599273",
"0.60599273",
"0.60599273",
"0.60195816",
"0.60153943",
"0.601226",
"0.5949395",
"0.59436995",
"0.5901175",
"0.5894904",
"0.5812581",
"0.5685206",
"0.5683046",
"0.5659895",
"0.55965304",
"0.5587666",
"0.55825937",
"0.55560803",
"0.5554226",
"0.5547059",
"0.55470014",
"0.55249894",
"0.5520918",
"0.54941314",
"0.5469785",
"0.5469611",
"0.5469149",
"0.5448074",
"0.5421013",
"0.5419488",
"0.5415862",
"0.5397118",
"0.5397118",
"0.5397118",
"0.53955054",
"0.53939354",
"0.5390931",
"0.5386062",
"0.5376033",
"0.53546876",
"0.53409356",
"0.5337734",
"0.533015",
"0.5318291",
"0.53181297",
"0.5315768",
"0.53113014",
"0.53000057",
"0.52987856",
"0.5293295",
"0.5282192",
"0.52705956",
"0.5268824",
"0.5259808",
"0.5259054",
"0.5259028",
"0.5256329",
"0.5254434",
"0.5247305",
"0.5246347",
"0.5244698",
"0.5232545",
"0.5230787",
"0.52192587",
"0.52102107",
"0.52022237",
"0.51954025",
"0.51911265",
"0.51909274",
"0.5187352"
] | 0.65855265 | 17 |
Setter for property suit. | public void setSuit(Suit suit) {
this.suit = suit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSuit(String suit)\r\n {\r\n this.suit = suit;\r\n }",
"public void setSuit(Suit suit) {\r\n\t\tthis.suit = suit;\r\n\t}",
"public void setSuit(String suit) {\n\t\tthis.suit = suit;\n\t}",
"public void setSuit(String value) {\n suit = value;\n }",
"public void setCardSuit(String suit) {\n this.Csuit = suit;\n }",
"public String suit() {\r\n return suit;\r\n }",
"public void setSuit(int suit) throws Exception{\n\t\tif (suit < 0 || suit > 3)\n\t\t\tthrow new Exception();\n\t\tthis.suit = suit;\n\t}",
"public void setSuit (int aSuit)\n {\n this.suits = aSuit;\n }",
"public String getSuit()\r\n { return suit; }",
"public String getSuit(){ return this.suit; }",
"public String getSuit() {\r\n return suit;\r\n }",
"public int getSuit(){\n\t\treturn suit; \n\t}",
"public Suit getSuit() {\n return suit;\n }",
"public void setSuitOfCard(int suitOfCard) {\n this.suitOfCard = suitOfCard;\n }",
"public int getSuit() {\r\n return suit;\r\n }",
"public String getSuit() {\n return suit;\n }",
"public String getSuit() {\n return this.suit;\n }",
"public String getSuit()\r\n {\r\n return suit;\r\n }",
"public int getSuit(){\n return suit;\n }",
"public int getSuit() {\n return suit;\n }",
"public int getSuit() {\n return suit;\n }",
"public int getSuit()\n {\n return suit;\n }",
"public String getSuit() {\n\t\treturn suit;\n\t}",
"public String getSuit() {\n\t\treturn suit;\n\t}",
"public String getSuit()\r\n\t{\r\n\t\treturn suit;\r\n\t}",
"public Suit getSuit() {\n return this.suit;\n }",
"public Suit getSuit() {\n\t\treturn suit;\n\t}",
"public int getSuit() {\n return this.suit;\n }",
"public int getSuit() {\n\t\treturn suit;\n\t}",
"public Suit getSuit() {\n return this.suit;\n }",
"public int getSuit()\n {\n return suit;\n }",
"public String getSuit()\n\t{\n\t\treturn suit;\n\t}",
"public Suits getSuit() {\n\t\treturn suit;\n\t}",
"public Suit getSuit() {\r\n\t\treturn this.suit;\r\n\t}",
"public String getSuit() {\r\n return suitStr;\r\n }",
"public int getSuitInt() {\n return this.suit;\n }",
"public Card(String suit, int value)\n {\n this.suit = suit;\n this.value = value;\n \n }",
"public int suitNum() {\r\n return this.i;\r\n }",
"public boolean setSuit(char inSuit) {\r\n\t\tinSuit = Character.toUpperCase(inSuit);\r\n\t\tboolean status = false;\r\n\t\t\r\n\t\tswitch (inSuit) {\r\n\t\tcase 'S':\r\n\t\tcase 'H':\r\n\t\tcase 'C':\r\n\t\tcase 'D':\r\n\t\tcase 'T':\r\n\t\tcase '1':\r\n\t\tcase '2':\r\n\t\tcase '3':\r\n\t\t\tsuit = inSuit;\r\n\t\t\tstatus = true;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tsuit = DEFAULT_SUIT;\r\n\t\t\tstatus = false;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn status;\r\n\t}",
"public Suit getSuit() {\n return cardSuit;\n }",
"public String getCardSuit() {\n return Csuit;\n }",
"public boolean set(char value, Suit suit) {\n if (Card.isValid(value, suit)) {\n this.errorFlag = false;\n this.value = value;\n this.suit = suit;\n return true;\n } else {\n this.errorFlag = true;\n return false;\n }\n }",
"public void setSuitArr(char[] suitArr) {\r\n this.suitArr = suitArr;\r\n }",
"@Override\r\n\tpublic void setHealth(int strike) {\n\t\t\r\n\t}",
"public Card(char value, Suit suit) {\n this.set(value, suit);\n }",
"public Card(String suit, int value) {\n this.value = value;\n this.suit = suit;\n }",
"public Card(String suit,int value)\n\t{\n\t\tthis.suit=suit;\n\t\tthis.value=value;\n\t}",
"public Card(String value, String suit) {\n this.value = value;\n this.suit = suit;\n }",
"public final Suit getSuit() {\n\t\treturn this.suit;\n\t}",
"public Card() {\n this.set('A', Suit.spades);\n }",
"public Card(Suit suit, Value value){\n this.value = value;\n this.suit = suit;\n }",
"public char getSuit(){\n return Suits;\n }",
"public void setReferencedSuit(Suit referencedSuit) {\n this.referencedSuit = referencedSuit;\n }",
"@Override\n public void setSuitNum(int total, int normal, int taobao, int imgs) {\n }",
"public Card(int value, int suit) {\n if (value <= 13 && value >= 1 && suit <= 4 && suit >= 1) {\n this.faceUp = false;\n this.value = value;\n this.suit = suit;\n if (suit == 1 || suit == 4) {\n this.color = CardColor.BLACK;\n } else {\n this.color = CardColor.RED;\n }\n } else {\n throw new IllegalArgumentException(\"Invalid Card\");\n }\n }",
"private static int suitAsInt(Card card) {\n return card.getSuit().ordinal();\n }",
"public String getSuit()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************** Start getSuit Method *****************/\n\n\t// Return suit of card\n return suit;\n\n }",
"public abstract void setInChI(String inchi);",
"public void setHp(int hp){\r\n this.hp = hp;\r\n }",
"@Override\n public void setHp(int hp){\n this.hp = hp;\n }",
"public String toString()\n {\n return value + \" \" + suit;\n }",
"public BlackjackCard(Suit suit, int value){\r\n\t\tthis.suit = suit;\r\n\t\tthis.value = value;\r\n\t}",
"Card(int num,String suit){\n this.number = num;\n this.suits = suit;\n }",
"public Card(Suit suit, CardValue value) {\n this.suit = suit;\n this.cardValue = value;\n isFaceDown = true;\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn (\"Suit: \"+this.suit+\"\\nValue: \"+this.value);\r\n\t}",
"public Card (Suit s, int v) {\n suit = s;\n val = v;\n }",
"public void setHP(int hp) {\r\n\t\tthis.hp += hp;\r\n\t}",
"void set( couple ch)\r\n { \r\n \r\n //couple ch = itr.next();\r\n ch.g1.sethappy(ch.bucket);\r\n ch.b1.sethappy(ch.bucket);\r\n ch.happiness = ch.b1.happy + ch.g1.happy;\r\n ch.compatibility = (ch.b1.budget - ch.g1.getmaint()) + Math.abs(ch.b1.getintg() - ch.g1.getiq()) + Math.abs(ch.b1.getattr() - ch.g1.getb());\r\n // this sets the happiness n compatibility of the co \r\n \r\n }",
"public Card(int type, int suit) {\n var allTypes = Type.values();\n var allSuits = Suit.values();\n this.type = allTypes[type];\n this.suit = allSuits[suit];\n }",
"public void setHp(byte hp){\n this.hp = hp;\n }",
"void setCit(java.lang.String cit);",
"void setPassedHabit(Habit passedHabit);",
"private void suitRule(Player p){\n if(((p.getPlayCard().getSuit() == trump.getSuit()) && (winner.getPlayCard().getSuit() == trump.getSuit()) )|| (winner.getPlayCard().getSuit() == p.getPlayCard().getSuit())){\n numberRule(p);\n }\nif(p.getPlayCard().getSuit() == trump.getSuit() && winner.getPlayCard().getSuit() != p.getPlayCard().getSuit()){\n setWinner(p);\n }\n\n }",
"public void setCh(char ch) {\r\n\t\tthis.ch = ch;\r\n\t}",
"public Card(int value, int suit)\n {\n cardValue = value;\n cardSuit = suit;\n }",
"public Card(String theSuite, int theValue){\r\n value = theValue;\r\n suite = theSuite;\r\n used = false;\r\n }",
"public Card(int v, Suit s) {\n this.value = v;\n this.suit = s;\n //this.specialTypeOfCard = NOT_FACE_NOT_ACE;\n\n }",
"public void setChiave(int val) {\n\t\tchiave = val;\n\t}",
"void setCurrentHP(final int newHP);",
"@Override\n public void setTestUnit() {\n hero = new Hero(50, 2, field.getCell(0, 0));\n }",
"public Card(int tempNum, int tempSuit)\n {\n num = tempNum;\n suit = tempSuit;\n }",
"@Test\r\n public void testSetWinner() {\r\n System.out.println(\"setWinner\");\r\n String name = \"brandon\";\r\n int money = 40;\r\n int properties = 9;\r\n WinnerScreen instance = new WinnerScreen();\r\n instance.setWinner(name, money, properties);\r\n }",
"public void setSiegeWeaponDamage(short siegeWeaponDamage);",
"public void setTrangthaiChiTiet(int trangthaiChiTiet);",
"public Card(Card card) {\n this.set(card.value, card.suit);\n }",
"public Card (char inSuit, int inFace) {\r\n\t\tif (!setSuit(inSuit)) {\r\n\t\t\tSystem.out.println(\"Card class reports incorrect suit: \" + inSuit);\r\n\t\t\tSystem.out.println(\"Setting suit to: \" + DEFAULT_SUIT);\r\n\t\t}\r\n\t\t\r\n\t\tif (!setFace(inFace)) {\r\n\t\t\tSystem.out.println(\"Card class reports incorrect face: \" + inFace);\r\n\t\t\tSystem.out.println(\"Setting face to: \" + DEFAULT_FACE);\r\n\t\t}\r\n\t\t\r\n\t\t// not a wildcard by default\r\n\t\twildcard = false;\r\n\t}",
"public Card(Rank rank, Suit suit) {\r\n\t\tthis.rank = rank;\r\n\t\tthis.suit = suit;\r\n\t\tfaceUp = true;\r\n\t}",
"public void setAuctionProperty(BoardPiece prop) {\n auctionProperty = (Property) prop;\n }",
"@Override\n\tpublic String toString() {\n\t\tString strSuit = suit.toString().substring(0, 1);\n\t\tstrSuit += suit.toString().toLowerCase()\n\t\t\t\t.substring(1, suit.toString().length());\n\n\t\treturn strSuit + value;\t\n\t}",
"public Card(Suit suit, Face face) {\n\t\tthis.suit = suit;\n\t\tthis.face = face;\n\t}",
"private String getSuitName() {\n String result;\n if (this.suit == 0) {\n result = \"Clubs\";\n } else if (this.suit == 1) {\n result = \"Diamonds\";\n } else if (this.suit == 2) {\n result = \"Hearts\";\n } else {\n result = \"Spades\";\n }\n return result;\n }",
"void setCard(Card card) {\n this.card = card;\n }",
"public void SetHealth(int h)\n{\n\thealth=h;\n}",
"public char getSuit(){\n\t\treturn this.farge;\n\t}",
"void setCap(int cap);",
"public void setShiftValue(int wert) {\r\n\t\tString sAlph = \"abcdefghijklmnopqrstuvwxyzäöüß\";\r\n\t\tString nAlph = \"\";\r\n\t\twert %= 30;\r\n\t\tif (wert ==0) return;\r\n\t\tif (wert > 0) {\r\n\t\t\tnAlph = sAlph.substring(wert);\r\n\t\t\tnAlph = nAlph + sAlph.substring(0, wert);\r\n\t\t\tsuper.setSecretAlphabet(nAlph);\r\n\t\t} else {\r\n\t\t\tnAlph = sAlph.substring(29 + wert);\r\n\t\t\tnAlph = sAlph.substring(0, 29 + wert);\r\n\t\t\tsuper.setSecretAlphabet(nAlph);\r\n\t\t}\r\n\t}",
"public String toString() {\n return \"The \" + value + \" of \" + suit;\n }",
"@Test\n public void testSetCnh() {\n System.out.println(\"setCnh\");\n String cnh = \"\";\n Motorista instance = new Motorista();\n instance.setCnh(cnh);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public void setChest(double chest) {\n this.chest = chest;\n }",
"public void setPiece(Piece piece){\n this.piece = piece;\n this.pieceName = piece.pieceName;\n this.pieceColor = piece.pieceColor;\n this.firstMove = piece.firstMove;\n this.Enpassant = piece.Enpassant;\n }"
] | [
"0.7712339",
"0.7550089",
"0.74029434",
"0.72589475",
"0.7127285",
"0.68314415",
"0.6769434",
"0.6712902",
"0.66126734",
"0.6554836",
"0.65321004",
"0.64773124",
"0.6470967",
"0.64613664",
"0.6447828",
"0.64460576",
"0.64223117",
"0.64210176",
"0.6394631",
"0.63943404",
"0.63943404",
"0.63852614",
"0.63480705",
"0.63480705",
"0.6324011",
"0.6317485",
"0.6312184",
"0.62756854",
"0.62646514",
"0.62609106",
"0.62408495",
"0.62377924",
"0.6195095",
"0.6071567",
"0.6018388",
"0.5840335",
"0.57924485",
"0.5782588",
"0.5719161",
"0.57046425",
"0.564142",
"0.5639562",
"0.5632519",
"0.5594033",
"0.5555312",
"0.55409014",
"0.5529495",
"0.5521794",
"0.55148786",
"0.54941344",
"0.5493036",
"0.54471636",
"0.54118747",
"0.54028785",
"0.5379858",
"0.53304994",
"0.5316192",
"0.529534",
"0.5294962",
"0.5277737",
"0.52734554",
"0.5271678",
"0.5262787",
"0.52513313",
"0.52434266",
"0.51728535",
"0.51688755",
"0.5137494",
"0.5134151",
"0.5110802",
"0.5108966",
"0.5098881",
"0.5094864",
"0.5076547",
"0.50754195",
"0.50692225",
"0.5047673",
"0.5046912",
"0.5031181",
"0.50287384",
"0.50251967",
"0.5014317",
"0.5009287",
"0.49952826",
"0.49944633",
"0.49939874",
"0.49929225",
"0.49913737",
"0.49819428",
"0.4977496",
"0.49703732",
"0.4959741",
"0.49579644",
"0.49573663",
"0.49514994",
"0.49307463",
"0.49264285",
"0.4925813",
"0.4919578",
"0.49102378"
] | 0.7871992 | 0 |
Getter for property referencedSuit. | public Suit getReferencedSuit() {
return this.referencedSuit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setReferencedSuit(Suit referencedSuit) {\n this.referencedSuit = referencedSuit;\n }",
"public Suit getSuit() {\n return this.suit;\n }",
"public Suit getSuit() {\n return this.suit;\n }",
"public Suit getSuit() {\r\n\t\treturn this.suit;\r\n\t}",
"public Suit getSuit() {\n return suit;\n }",
"public final Suit getSuit() {\n\t\treturn this.suit;\n\t}",
"public Suit getSuit() {\n\t\treturn suit;\n\t}",
"public int getSuit() {\n return this.suit;\n }",
"public String getSuit() {\n return this.suit;\n }",
"public Suit getSuit() {\n return cardSuit;\n }",
"public Suits getSuit() {\n\t\treturn suit;\n\t}",
"public int getSuitInt() {\n return this.suit;\n }",
"public String getSuit()\r\n { return suit; }",
"public String getSuit()\n\t{\n\t\treturn suit;\n\t}",
"public String getSuit()\r\n {\r\n return suit;\r\n }",
"public int getSuit ()\n {\n return this.suits; \n }",
"public String getSuit() {\r\n return suit;\r\n }",
"public String getSuit(){ return this.suit; }",
"public int getSuit() {\r\n return suit;\r\n }",
"public String getSuit() {\n return suit;\n }",
"public String getSuit()\r\n\t{\r\n\t\treturn suit;\r\n\t}",
"public String getSuit() {\n\t\treturn suit;\n\t}",
"public String getSuit() {\n\t\treturn suit;\n\t}",
"public int getSuit() {\n return suit;\n }",
"public int getSuit() {\n return suit;\n }",
"public int getSuit() {\n\t\treturn suit;\n\t}",
"public int getSuit()\n {\n return suit;\n }",
"public int getSuit()\n {\n return suit;\n }",
"public int getSuit(){\n\t\treturn suit; \n\t}",
"public int getSuit(){\n return suit;\n }",
"public short getSuit(){\n\t\treturn srtSuit;\r\n\t}",
"public String getSuit() {\r\n return suitStr;\r\n }",
"public String getSuit()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************** Start getSuit Method *****************/\n\n\t// Return suit of card\n return suit;\n\n }",
"public String getCardSuit() {\n return Csuit;\n }",
"public String getReference();",
"public String getReference();",
"@Test\n public void cardHasSuit(){\n assertEquals(Suit.CLUBS, this.card.getSuit());\n // Suit.Clubs expected, referencing this.card instance from method getSuit in in Card class\n }",
"public char getSuit(){\n\t\treturn this.farge;\n\t}",
"public String getReference() {\n return reference;\n }",
"public String getReference() {\n return reference;\n }",
"public String getReference() {\n return reference;\n }",
"public String getReference() {\n return reference;\n }",
"public java.lang.String getReference() {\n return reference;\n }",
"String getReference();",
"String getReference();",
"public char getSuit(){\n return Suits;\n }",
"public ReferenceFactElements getReferenceFactAccess() {\n\t\treturn pReferenceFact;\n\t}",
"public final String getReference() {\n return reference;\n }",
"@Override\r\n\tpublic Ref getRef() {\n\t\treturn ref;\r\n\t}",
"public String suit() {\r\n return suit;\r\n }",
"public IDatatype getReference() { \n\t\treturn myReference;\n\t}",
"public String getReferenceAccession() {\n return referenceProteinAccession;\n }",
"public SoftReference getReference ()\r\n {\r\n return _reference;\r\n }",
"public String getRef() {\n return ref;\n }",
"@JsonGetter(\"reference\")\r\n public String getReference ( ) { \r\n return this.reference;\r\n }",
"public AtomicReference<LocatableInquiry> getReferenceGroundItemInquiry();",
"@Nullable\n String getRef();",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn (\"Suit: \"+this.suit+\"\\nValue: \"+this.value);\r\n\t}",
"public void setSuit(Suit suit) {\n this.suit = suit;\n }",
"public String getREFERENCE() {\r\n return REFERENCE;\r\n }",
"public void setSuit (int aSuit)\n {\n this.suits = aSuit;\n }",
"public javax.xml.namespace.QName getReference()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFERENCE$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getQNameValue();\n }\n }",
"public String getRef(){\r\n\t\treturn this.getAttribute(\"ref\").getValue();\r\n\t}",
"public int getUniqueReference ()\n\t{\n\t\treturn uniqueReference;\n\t}",
"@Override\n public Object getReferenced(Optional<?> reference) {\n return reference.orElse(null);\n }",
"public int getSuit() {\n\t\tif (!this.isCard()) {\n\t\t\tSystem.out.println(\"Error! \" + id + \" isn't a card!\");\n\t\t\treturn 0;\n\t\t} else if (id < 14)\n\t\t\treturn 1;\n\t\telse if (id >= 14 && id < 27)\n\t\t\treturn 2;\n\t\telse if (id >= 27 && id < 40)\n\t\t\treturn 3;\n\t\telse\n\t\t\treturn 4;\n\t}",
"private String getSuitName() {\n String result;\n if (this.suit == 0) {\n result = \"Clubs\";\n } else if (this.suit == 1) {\n result = \"Diamonds\";\n } else if (this.suit == 2) {\n result = \"Hearts\";\n } else {\n result = \"Spades\";\n }\n return result;\n }",
"java.lang.String getRef();",
"public Node getReference() {\n return this.reference;\n }",
"public String getStudyUid()\n {\n return studyUid;\n }",
"public String getSuitString()\n {\n switch (suit)\n {\n case SPADES: return \"SPADES\";\n case CLUBS: return \"CLUBS\";\n case DIAMONDS: return \"DIAMONDS\";\n case HEARTS: return \"HEARTS\";\n default: return \"Invalid\";\n }\n \n }",
"public java.lang.String getScenicId() {\n return scenicId;\n }",
"@JsonIgnore\r\n public String getReferenceId() {\r\n return OptionalNullable.getFrom(referenceId);\r\n }",
"public java.lang.String getSucursal() {\n return sucursal;\n }",
"public String getReferenceId() {\n return refid;\n }",
"public abstract Value getReferenceValue();",
"public String getResearchknot() {\r\n\t\treturn researchknot;\r\n\t}",
"public Study getStudy() {\r\n\t\treturn study;\r\n\t}",
"public ChessPiece getPiece(){return piece;}",
"public int getItineraryReference() {\n return itineraryReference;\n }",
"public int getShirt() {\n return shirt_;\n }",
"public String getSupSelfSettle() {\n return supSelfSettle;\n }",
"public int getQualite() {\n return qualite;\n }",
"public int getStueck() {\r\n\t\treturn stueck;\r\n\t}",
"public String reference(Object obj) {\n return null;\n }",
"public char[] getSuitArr() {\r\n return suitArr;\r\n }",
"public int suitNum() {\r\n return this.i;\r\n }",
"String getContainmentReference();",
"public String getSupEntDeal() {\n return supEntDeal;\n }",
"public String getSuits() {\n return suits;\n }",
"public String getSuitAsString(){\n\t\tString str = \"\";\n\t\tif (suit == 0)\n\t\t\tstr = new String(\"Clubs\");\n\t\telse if (suit == 1)\n\t\t\tstr = new String(\"Diamonds\");\n\t\telse if (suit == 2)\n\t\t\tstr = new String(\"Hearts\");\n\t\telse if (suit == 3)\n\t\t\tstr = new String(\"Spades\");\n\t\treturn str;\n\t}",
"@Override\n public String getTag() {\n return this.reference;\n }",
"public int getIdSucursal()\r\n/* 104: */ {\r\n/* 105:169 */ return this.idSucursal;\r\n/* 106: */ }",
"public E getReferenceId() {\n return referenceId;\n }",
"public int getIdSucursal()\r\n/* 93: */ {\r\n/* 94:166 */ return this.idSucursal;\r\n/* 95: */ }",
"public int getShirt() {\n return shirt_;\n }",
"public String getReferenceId();",
"public Fact[] getFact() {\r\n return localFact;\r\n }",
"public void niveauSuivant() {\n niveau = niveau.suivant();\n }",
"public String getReference(){\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver,REFERENCE_INPUT).getAttribute(\"value\");\r\n\t}"
] | [
"0.72546583",
"0.6569212",
"0.65632004",
"0.6473931",
"0.6440275",
"0.64159447",
"0.6381406",
"0.634355",
"0.6331734",
"0.6262362",
"0.62604314",
"0.61651915",
"0.61546576",
"0.610352",
"0.6103182",
"0.61024714",
"0.610126",
"0.60901934",
"0.60882324",
"0.6086858",
"0.6084523",
"0.60774505",
"0.60774505",
"0.60760474",
"0.60760474",
"0.6054989",
"0.6054847",
"0.605262",
"0.6046406",
"0.60390335",
"0.6026539",
"0.60182816",
"0.5763691",
"0.5737475",
"0.55018723",
"0.55018723",
"0.5501058",
"0.54757154",
"0.5432645",
"0.5418897",
"0.5418897",
"0.5418897",
"0.5409569",
"0.5365588",
"0.5365588",
"0.53529215",
"0.5344096",
"0.5324868",
"0.52616006",
"0.52486193",
"0.5238777",
"0.523797",
"0.521145",
"0.5208134",
"0.5182184",
"0.5143764",
"0.513647",
"0.51229644",
"0.51049316",
"0.5104623",
"0.5099669",
"0.50950515",
"0.5093385",
"0.5080133",
"0.5061641",
"0.5038845",
"0.5037193",
"0.50356895",
"0.5021516",
"0.50191414",
"0.49946758",
"0.4973773",
"0.49690726",
"0.49610433",
"0.49507746",
"0.494439",
"0.4936591",
"0.4906436",
"0.49018127",
"0.48877552",
"0.48778802",
"0.48774013",
"0.4873096",
"0.48688993",
"0.48671654",
"0.48590067",
"0.48580694",
"0.48507363",
"0.48498124",
"0.48256347",
"0.4817321",
"0.48124376",
"0.480001",
"0.47953346",
"0.4794907",
"0.47923082",
"0.47903574",
"0.47898835",
"0.47859457",
"0.4784477"
] | 0.836467 | 0 |
Setter for property referencedSuit. | public void setReferencedSuit(Suit referencedSuit) {
this.referencedSuit = referencedSuit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Suit getReferencedSuit() {\n return this.referencedSuit;\n }",
"public void setSuit(Suit suit) {\n this.suit = suit;\n }",
"public void setSuit (int aSuit)\n {\n this.suits = aSuit;\n }",
"public void setSuit(Suit suit) {\r\n\t\tthis.suit = suit;\r\n\t}",
"public void setSuit(String suit)\r\n {\r\n this.suit = suit;\r\n }",
"public void setSuit(String suit) {\n\t\tthis.suit = suit;\n\t}",
"public void setSuit(String value) {\n suit = value;\n }",
"public Suit getSuit() {\n return this.suit;\n }",
"public void setCardSuit(String suit) {\n this.Csuit = suit;\n }",
"public Suit getSuit() {\n return this.suit;\n }",
"public Suit getSuit() {\r\n\t\treturn this.suit;\r\n\t}",
"public void setReference(String reference);",
"public Suit getSuit() {\n return suit;\n }",
"public String getSuit() {\n return this.suit;\n }",
"public Suit getSuit() {\n\t\treturn suit;\n\t}",
"void setReference(String reference);",
"public Suit getSuit() {\n return cardSuit;\n }",
"public String getSuit(){ return this.suit; }",
"public int getSuit() {\n return this.suit;\n }",
"public void setSuitOfCard(int suitOfCard) {\n this.suitOfCard = suitOfCard;\n }",
"public Suits getSuit() {\n\t\treturn suit;\n\t}",
"public int getSuitInt() {\n return this.suit;\n }",
"public String getSuit()\r\n { return suit; }",
"public short getSuit(){\n\t\treturn srtSuit;\r\n\t}",
"public final Suit getSuit() {\n\t\treturn this.suit;\n\t}",
"public void setReference(Reference ref)\n {\n this.ref = ref;\n }",
"public String getSuit() {\r\n return suit;\r\n }",
"public String getSuit() {\n\t\treturn suit;\n\t}",
"public String getSuit() {\n\t\treturn suit;\n\t}",
"public void setItineraryReference(int value) {\n this.itineraryReference = value;\n }",
"public String getSuit() {\n return suit;\n }",
"public void setReference(javax.xml.namespace.QName reference)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFERENCE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REFERENCE$0);\n }\n target.setQNameValue(reference);\n }\n }",
"@Test\r\n public void testSetCheque() {\r\n System.out.println(\"setCheque\");\r\n Cheque cheque = null;\r\n chequeBeans instance = new chequeBeans();\r\n instance.setCheque(cheque);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"public int getSuit(){\n\t\treturn suit; \n\t}",
"void setRef(java.lang.String ref);",
"public String getSuit()\n\t{\n\t\treturn suit;\n\t}",
"public String getSuit()\r\n {\r\n return suit;\r\n }",
"public String getSuit()\r\n\t{\r\n\t\treturn suit;\r\n\t}",
"public int getSuit() {\n\t\treturn suit;\n\t}",
"public int getSuit() {\r\n return suit;\r\n }",
"public int getSuit() {\n return suit;\n }",
"public int getSuit() {\n return suit;\n }",
"public String getSuit() {\r\n return suitStr;\r\n }",
"public void setSuit(int suit) throws Exception{\n\t\tif (suit < 0 || suit > 3)\n\t\t\tthrow new Exception();\n\t\tthis.suit = suit;\n\t}",
"@Test\r\n public void testSetMontntcheque() {\r\n System.out.println(\"setMontntcheque\");\r\n int montntcheque = 0;\r\n chequeBeans instance = new chequeBeans();\r\n instance.setMontntcheque(montntcheque);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"public int getSuit()\n {\n return suit;\n }",
"public int getSuit(){\n return suit;\n }",
"public void hiliteByReference(String ref) {\n\t}",
"public boolean setSuit(char inSuit) {\r\n\t\tinSuit = Character.toUpperCase(inSuit);\r\n\t\tboolean status = false;\r\n\t\t\r\n\t\tswitch (inSuit) {\r\n\t\tcase 'S':\r\n\t\tcase 'H':\r\n\t\tcase 'C':\r\n\t\tcase 'D':\r\n\t\tcase 'T':\r\n\t\tcase '1':\r\n\t\tcase '2':\r\n\t\tcase '3':\r\n\t\t\tsuit = inSuit;\r\n\t\t\tstatus = true;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tsuit = DEFAULT_SUIT;\r\n\t\t\tstatus = false;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn status;\r\n\t}",
"void setPassedHabit(Habit passedHabit);",
"@Test\n public void cardHasSuit(){\n assertEquals(Suit.CLUBS, this.card.getSuit());\n // Suit.Clubs expected, referencing this.card instance from method getSuit in in Card class\n }",
"public void setReference (SoftReference ref)\r\n {\r\n _reference = ref;\r\n }",
"public void niveauSuivant() {\n niveau = niveau.suivant();\n }",
"public int getSuit()\n {\n return suit;\n }",
"public void setReference(String value, String narrativeText) {\n\t\tthis.getMdht().setText(Util.createReference(value, narrativeText));\n\t}",
"@Override\n public void setSuitNum(int total, int normal, int taobao, int imgs) {\n }",
"void set( couple ch)\r\n { \r\n \r\n //couple ch = itr.next();\r\n ch.g1.sethappy(ch.bucket);\r\n ch.b1.sethappy(ch.bucket);\r\n ch.happiness = ch.b1.happy + ch.g1.happy;\r\n ch.compatibility = (ch.b1.budget - ch.g1.getmaint()) + Math.abs(ch.b1.getintg() - ch.g1.getiq()) + Math.abs(ch.b1.getattr() - ch.g1.getb());\r\n // this sets the happiness n compatibility of the co \r\n \r\n }",
"public void setIdSucursal(int idSucursal)\r\n/* 105: */ {\r\n/* 106:134 */ this.idSucursal = idSucursal;\r\n/* 107: */ }",
"public void setIdSucursal(int idSucursal)\r\n/* 98: */ {\r\n/* 99:176 */ this.idSucursal = idSucursal;\r\n/* 100: */ }",
"public void analyzeSetReference(AnalyzeInfo info)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n\n // php/3a6f\n objGen.analyzeSetReference(info);\n }",
"@NoProxy\n @NoWrap\n @NoDump\n @Override\n public void setCategoryHrefs(final Set<String> val) {\n categoryUids = val;\n }",
"void setRef(int index, Ref value) throws SQLException;",
"public void setIdSucursal(int idSucursal)\r\n/* 109: */ {\r\n/* 110:179 */ this.idSucursal = idSucursal;\r\n/* 111: */ }",
"@Test\r\n public void testSetJRC() {\r\n System.out.println(\"setJRC\");\r\n String JRC = null;\r\n Interviewee instance = new Interviewee();\r\n instance.setJRC(JRC);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }",
"void setCit(java.lang.String cit);",
"public void setSkill(com.transerainc.aha.gen.agent.SkillDocument.Skill skill)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.transerainc.aha.gen.agent.SkillDocument.Skill target = null;\n target = (com.transerainc.aha.gen.agent.SkillDocument.Skill)get_store().find_element_user(SKILL$0, 0);\n if (target == null)\n {\n target = (com.transerainc.aha.gen.agent.SkillDocument.Skill)get_store().add_element_user(SKILL$0);\n }\n target.set(skill);\n }\n }",
"public void setUniqueReference (int aUniqueReference)\n\t{\n\t\tuniqueReference = aUniqueReference;\n\t}",
"public void setIdSucursal(int idSucursal)\r\n/* 123: */ {\r\n/* 124:135 */ this.idSucursal = idSucursal;\r\n/* 125: */ }",
"@PropertySetter(\"problem\")\r\n \tpublic static void setProblem(Problem problem, Object value) {\r\n \t\tproblem.setProblem(Context.getConceptService().getConceptByUuid((String) value));\r\n \t}",
"public int getSuit ()\n {\n return this.suits; \n }",
"private void setReference(String ref) {\n Set<String> allRefs = getAllReferenceNames();\n if (!allRefs.contains(ref) && allRefs.contains(\"chr\" + ref)) {\n ref = \"chr\" + ref;\n }\n currentReference = ref;\n Genome loadedGenome = GenomeController.getInstance().getGenome();\n setMaxRange(new Range(1, loadedGenome.getLength()));\n setRange(1, Math.min(1000, loadedGenome.getLength()));\n }",
"public void setReferencedTable(Table referencedTable) throws MappingException {\n\t\t\n\t\tthis.referencedTable = referencedTable;\n\t}",
"public void setSuitArr(char[] suitArr) {\r\n this.suitArr = suitArr;\r\n }",
"@JsonSetter(\"reference\")\r\n public void setReference (String value) { \r\n this.reference = value;\r\n }",
"public void setFixed(entity.LocationNamedInsured value);",
"public void setReference(String reference) {\n this.reference = reference;\n }",
"public void setReference(String reference) {\n this.reference = reference;\n }",
"public void setSuspect(String suspect) {\n mSuspect = suspect;\n }",
"public void setUnit(Unit newUnit){\r\n tacUnit = newUnit;\r\n }",
"public void setTargetPos(boolean scared, boolean foundPacman, DiscreteCoordinates cible)\n {\n if(!scared && foundPacman)\n {\n setNewValueForTargetPos(cible);\n }\n else\n {\n setNewValueForTargetPos(coordinatesDependingOnStatus(scared, foundPacman, cible));\n }\n }",
"public String getCardSuit() {\n return Csuit;\n }",
"public void setPiece(Tetrimino piece)\n {\n this.piece = piece;\n }",
"public void xsetReference(org.apache.xmlbeans.XmlQName reference)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlQName target = null;\n target = (org.apache.xmlbeans.XmlQName)get_store().find_element_user(REFERENCE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlQName)get_store().add_element_user(REFERENCE$0);\n }\n target.set(reference);\n }\n }",
"@Test\r\n public void testSetIdcheque() {\r\n System.out.println(\"setIdcheque\");\r\n int idcheque = 0;\r\n chequeBeans instance = new chequeBeans();\r\n instance.setIdcheque(idcheque);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"public String suit() {\r\n return suit;\r\n }",
"public void set(final Object ref) {\n synchronized (lock) {\n if (set) { throw new IllegalStateException(\"Reference has already been set\"); }\n\n if ((!allowsNull()) && (ref == null)) { throw new IllegalArgumentException(\n \"This instance cannot hold a null reference value\"); }\n\n set = true;\n this.ref = ref;\n }\n }",
"public final void setHullUpgrade(int hullUp){ hullUpgrade = hullUp;}",
"public void setStueck(int stueckNeu) {\r\n\t\tstueck = stueckNeu;\r\n\t}",
"public void setSeRef(String seRef) {\n this.seRef = seRef;\n }",
"public void setReference(java.lang.String reference) {\n this.reference = reference;\n }",
"public Binding setReference(IDatatype theValue) {\n\t\tmyReference = theValue;\n\t\treturn this;\n\t}",
"public void setSwissprot(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Swissprot swissprot)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Swissprot target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Swissprot)get_store().find_element_user(SWISSPROT$14, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Swissprot)get_store().add_element_user(SWISSPROT$14);\r\n }\r\n target.set(swissprot);\r\n }\r\n }",
"public void setCuentaContableCierre(CuentaContable cuentaContableCierre)\r\n/* 103: */ {\r\n/* 104:119 */ this.cuentaContableCierre = cuentaContableCierre;\r\n/* 105: */ }",
"public void setGoal(GoalComponent goal) {\n \tthis.goal = goal;\n }",
"public void setUsable(Usable usable) {\r\n\t\tthis.usable = usable;\r\n\t}",
"public void setCuentaContable(CuentaContable cuentaContable)\r\n/* 304: */ {\r\n/* 305:371 */ this.cuentaContable = cuentaContable;\r\n/* 306: */ }",
"public void setSoul(int soul) {\n \t\tthis.soul = soul;\n \t}",
"protected void setReducedChiSquare(double reducedChiSq) {\n\tthis.reducedChiSq = reducedChiSq;\n }",
"public char getSuit(){\n\t\treturn this.farge;\n\t}",
"void setSpecimen(org.hl7.fhir.ResourceReference specimen);"
] | [
"0.7139115",
"0.646985",
"0.63247633",
"0.6256635",
"0.59503216",
"0.58444095",
"0.5687174",
"0.55338144",
"0.552697",
"0.5506769",
"0.5480044",
"0.5438078",
"0.5400477",
"0.53745013",
"0.5364623",
"0.53030336",
"0.5242065",
"0.5237551",
"0.52194995",
"0.5214364",
"0.51874846",
"0.5130501",
"0.51295793",
"0.5129279",
"0.5123337",
"0.50989705",
"0.50821084",
"0.5079291",
"0.5079291",
"0.50740165",
"0.5050258",
"0.50478584",
"0.50169384",
"0.5014016",
"0.49876046",
"0.49865755",
"0.49855644",
"0.49854195",
"0.49822906",
"0.4963307",
"0.49483877",
"0.49483877",
"0.49403116",
"0.4918407",
"0.49043742",
"0.48738685",
"0.48701984",
"0.4856247",
"0.4832026",
"0.48204312",
"0.4801766",
"0.47956422",
"0.47926074",
"0.47877932",
"0.4775685",
"0.47750115",
"0.4751357",
"0.47473732",
"0.47433087",
"0.47409564",
"0.47180718",
"0.4705134",
"0.47046435",
"0.47036773",
"0.46949756",
"0.46922317",
"0.46840465",
"0.46810913",
"0.4678328",
"0.4674708",
"0.46730056",
"0.46706897",
"0.46530136",
"0.46488965",
"0.46459693",
"0.46382415",
"0.46382415",
"0.46260324",
"0.46013176",
"0.45926192",
"0.45846206",
"0.45560336",
"0.4550082",
"0.45475763",
"0.45402315",
"0.45223615",
"0.45212334",
"0.4520087",
"0.45076102",
"0.45046628",
"0.45031402",
"0.4492121",
"0.44912562",
"0.44837442",
"0.44804257",
"0.44659823",
"0.4458584",
"0.4455997",
"0.44402537",
"0.44399178"
] | 0.8678245 | 0 |
Getter for property color. | public Color getColor() {
return this.color;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Color getColor() { return color.get(); }",
"public Color getColor() {\n return this.color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\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() {\r\n return color;\r\n }",
"@Nullable\n public ColorProp getColor() {\n if (mImpl.hasColor()) {\n return ColorProp.fromProto(mImpl.getColor());\n } else {\n return null;\n }\n }",
"@Nullable\n public ColorProp getColor() {\n if (mImpl.hasColor()) {\n return ColorProp.fromProto(mImpl.getColor());\n } else {\n return null;\n }\n }",
"public Color getColor() {\r\n return this.color;\r\n }",
"public final 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() {\n return 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 Color getColor()\n {\n return color;\n }",
"public Color getColor() {\r\n\t\treturn color;\r\n\t}",
"public Color getColor() {\r\n\t\treturn color;\r\n\t}",
"public final Color getColor() {\r\n return color;\r\n }",
"public String getColor() {\n return this.color;\n }",
"public Color getColor() {\n \t\treturn color;\n \t}",
"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 String getColor()\n {\n return this.color;\n }",
"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 String getColor() {\r\n return color;\r\n }",
"public Color getColor() \n\t{\n\t\treturn color;\n\t}",
"public String getColor(){\n return this._color;\n }",
"public Color getColor() {\n\t\treturn this.color;\n\t}",
"public Color getColor() {\n\treturn 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 Color getColor() { return color; }",
"@NoProxy\n @NoWrap\n @NoDump\n public String getColor() {\n return color;\n }",
"public String getColor() {\r\n\t\treturn color;\r\n\t}",
"public Color getColor() {\n\t\treturn _color;\n\t}",
"public Color getColor()\n { \n return color;\n }",
"public String getColor(){\n\t\treturn color;\n\t}",
"public String getColor()\n {\n return color;\n }",
"public String getColor()\n {\n return color;\n }",
"public String getColor() {\n\t\treturn color;\n\t}",
"public String getColor() {\n\t\treturn color;\n\t}",
"public Color getColor(){\n return color;\n }",
"public final Color getColor() {\n\t\treturn color;\n\t}",
"public String obtenColor() {\r\n return color;\r\n }",
"public ObjectProperty<Color> colorProperty() { return color; }",
"public java.awt.Color getColor() {\r\n return color;\r\n }",
"public int getColor() {\n return this.color;\n }",
"public\n Color getProperty_Color(String key)\n {\n if (key == null)\n return Color.black;\n\n String val = getProperty(key);\n\n if (val == null)\n return Color.black;\n\n Color ret_Color = convertStringToColor(val);\n\n return ret_Color;\n }",
"public String getColor(){\r\n return color;\r\n }",
"public Color getColor()\n {\n return color;\n }",
"public Color color() {\n return this.color;\n }",
"public String getColor() { \n return color; \n }",
"public RGBColor getColor(){\r\n return this._color;\r\n }",
"public String getColor(){\n return this.color;\n }",
"public static Color getColor() {\n return myColor;\n }",
"public ColorRoom getColor() {\n return color;\n }",
"public Integer getColor() {\n\t\treturn color;\n\t}",
"public IsColor getColor() {\n\t\treturn ColorBuilder.parse(getColorAsString());\n\t}",
"public int getColor() {\n return color;\n }",
"public Color color() {\n return color;\n }",
"public Color color() {\n return color;\n }",
"public java.awt.Color getColor() {\r\n return this.color;\r\n }",
"public java.awt.Color getColor() {\n return this.color;\n }",
"public java.awt.Color getColor() {\n return this.color;\n }",
"public Color get_color() {return this.color;}",
"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 int getColor() {\n \t\treturn color;\n \t}",
"@ColorInt\n public int getColor() {\n return mColor;\n }",
"@Override\n public String getColor() {\n return this.color;\n }",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"public DiceColor getColor() {\n return color;\n }",
"@Override\n public String getColor() {\n return this.color.name();\n }",
"public String getColor() {\n return colorID;\n }",
"@Override\r\n public Llama.Color getColor() {\r\n return color;\r\n }",
"public GraphColor getColor( ) {\n return color;\n }",
"public int getColor()\r\n {\r\n return m_iColor;\r\n }",
"public String getColor() {\n return (String)getAttributeInternal(COLOR);\n }",
"public Color getColor();"
] | [
"0.822815",
"0.80778414",
"0.8062474",
"0.8056103",
"0.8054539",
"0.8054539",
"0.8054539",
"0.8045425",
"0.8045425",
"0.804348",
"0.8028478",
"0.8024997",
"0.8024997",
"0.8024997",
"0.8024997",
"0.8024997",
"0.8024997",
"0.80156004",
"0.80156004",
"0.80156004",
"0.80072933",
"0.7981634",
"0.7981634",
"0.7980733",
"0.7972292",
"0.7963785",
"0.7960705",
"0.7960705",
"0.7960705",
"0.7956444",
"0.79266375",
"0.79266375",
"0.79266375",
"0.79266375",
"0.7924729",
"0.7921701",
"0.7909591",
"0.7906853",
"0.7894534",
"0.7888368",
"0.7888368",
"0.7888368",
"0.7888368",
"0.7888368",
"0.7888368",
"0.7888368",
"0.7888368",
"0.78863",
"0.78860277",
"0.788104",
"0.7861994",
"0.78572965",
"0.7852818",
"0.7850894",
"0.7850894",
"0.78508264",
"0.78508264",
"0.7850444",
"0.78465486",
"0.78082216",
"0.7802771",
"0.77895176",
"0.7787865",
"0.7764103",
"0.77576476",
"0.77502555",
"0.7748974",
"0.7739961",
"0.77347386",
"0.77306986",
"0.7725602",
"0.7714265",
"0.7712947",
"0.77126783",
"0.77074254",
"0.7700518",
"0.7700518",
"0.7682624",
"0.76608175",
"0.76608175",
"0.7626081",
"0.7606334",
"0.7606334",
"0.7603263",
"0.75998634",
"0.7557367",
"0.75550103",
"0.75428677",
"0.75428677",
"0.75428677",
"0.75428677",
"0.75428677",
"0.7525682",
"0.7509194",
"0.748524",
"0.74747163",
"0.7454319",
"0.74414104",
"0.74391",
"0.7426242"
] | 0.7928413 | 30 |
Setter for property color. | public void setColor(Color color) {
this.color = color;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setColor(Color c) { color.set(c); }",
"public void setColor(Color color) {\n this.color = color;\r\n }",
"public void setColor(Color c) {\n color = c;\n }",
"public void setColor(Color color) {\n this.color = color;\n }",
"@Override\n public void setColor(Color color) {\n this.color = color;\n }",
"public void setColor(Color color);",
"public void setColor(Color c);",
"@NoProxy\n @NoWrap\n public void setColor(final String val) {\n color = val;\n }",
"public void setColor(Color c) {\n this.color = c;\n }",
"public void setColor(Color color_) {\r\n\t\tcolor = color_;\r\n\t}",
"void setColor(final java.awt.Color color);",
"protected void setColor(Color color) {\r\n\t\tthis.color = color;\r\n\t}",
"public void setColor(Color color) {\n\t\t_color = color;\n\t\tnotifyObs(this);\n\t}",
"public void setColor(Color color) \n\t{\n\t\tthis.color = color;\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}",
"public void setColor(Color clr){\n color = clr;\n }",
"public void setColor(int color){\n this.color = color;\n }",
"public void setColor(Color newColor) ;",
"@Override\r\n public void setColor(Llama.Color color) {\r\n this.color = color;\r\n }",
"public void setColor(int color) {\n this.color = color;\n }",
"public void setColor(String color) {\r\n this.color = color;\r\n }",
"public void setColor(int color);",
"public void setColor(int color);",
"public void setColor(Color c) {\n\t\tthis.color = c;\n\t}",
"public void setColor(int color) {\r\n\t\tthis.color = color;\r\n\t}",
"public void setColor(Color c)\n\t{\n\t\tthis.color = c;\n\t}",
"public void setColor(String color){\n this.color = color;\n }",
"public void setColor(String color) {\r\n this.color = color;\r\n }",
"public void setColor(Color color) {\n\t\tthis.color = color;\n\t\tfireListenerSignal();\n\t}",
"public void setColor(int color){\r\n\t\tthis.color=color;\r\n\t}",
"public void setColor(int color){\n\t\tthis.color = color;\n\t}",
"public void setColor(String color) {\n this.color = color;\n }",
"public void setColor(String color) {\n this.color = color;\n }",
"public void setColor(String color) {\n this.color = color;\n }",
"public void setColor(String color) {\n this.color = color;\n }",
"public void setColor(String color) {\n this.color = color;\n }",
"public void setColor(String color) {\n this.color = color;\n }",
"public void setColor(int value);",
"public void setColor(String color) {\r\n\t\tthis.color = color;\r\n\t}",
"@Override\n\tpublic void setColor(String color) {\n\t\tthis.color = color;\n\t}",
"public void setColor(String c);",
"public void setColor(String color){\n\t\tcolor = this.color;\n\t}",
"@Override\n\tpublic void setColor(String color) {\n\t\tthis.color=color;\n\t}",
"public void setColor( GraphColor newVal ) {\n color = newVal;\n }",
"public void setColor(final Color theColor) {\n myColor = theColor;\n }",
"public void setColorTo(String color) {\n\t\tsetValue(Property.COLOR_TO, color);\n\t}",
"public void setColor(String color) {\n\t\tthis.color = color;\n\t}",
"public void setColor(String color) {\n\t\tthis.color = color;\n\t}",
"public void setColor (Color color)\n {\n this.color = color;\n repaint();\n }",
"public void setColor(String color) \n\t{\n\t\tthis.color = color;\n\t}",
"public void setColor(RGBColor color){\r\n this._color = new RGBColor(color);\r\n }",
"public void setColor(String pColor){\n this._color=pColor;\n }",
"public void setColor(String color) {\n\t\tString oldColor = this.color;\n\t\tthis.color = color;\n\t\tlisteners.firePropertyChange(PROP_COLOR, oldColor, color);\n\t}",
"public void setColor(Integer color) {\n\t\tthis.color = color;\n\t}",
"public void setColor(Color color) {\r\n\t\tthis.color = ColorUtil.convertColorToColorRGBA(color);\r\n\t}",
"public void setColor(Color color) {\n if (color == null) {\n throw new IllegalArgumentException(\"color cannot be null\");\n }\n this.color = color;\n }",
"public abstract void setColor(Color color);",
"public abstract void setColor(Color color);",
"public void setColor(IsColor color) {\n\t\tsetColor(IsColor.checkAndGetValue(color));\n\t}",
"public void setColor(Long color) {\n\t\tthis.color = color;\n\t}",
"public void changeColor(Color color) {\n this.color = color;\n }",
"@NonNull\n public Builder setColor(@NonNull ColorProp color) {\n mImpl.setColor(color.toProto());\n mFingerprint.recordPropertyUpdate(\n 2, checkNotNull(color.getFingerprint()).aggregateValueAsInt());\n return this;\n }",
"@NonNull\n public Builder setColor(@NonNull ColorProp color) {\n mImpl.setColor(color.toProto());\n mFingerprint.recordPropertyUpdate(\n 1, checkNotNull(color.getFingerprint()).aggregateValueAsInt());\n return this;\n }",
"void setColor(@ColorInt int color);",
"public void set_color(String color){ color_ = GralColor.getColor(color.trim()); }",
"public void setColor(String color) {\n this.color=color; //el this se coloca a la propiedad de la clase \n // para diferenciarla del parametro\n }",
"public void setColor(Color newColor) {\n\tcolor = newColor;\n }",
"public void setColor( Color color ) {\n\t\tgraphics.setColor( color );\n\t}",
"public void setColor(String color) {\n if (color.equals(\"blanc\") ||\r\n color.equals(\"blue\")) {\r\n this.color = color;\r\n } else {\r\n System.err.println(\"bad color\");\r\n }\r\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}",
"void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }",
"public void setColor(int color) {\n mColor = color;\n mPaint.setColor(mColor);\n }",
"public Color setColor(String color){\n\t\tColor oldColor = this.routeColor;\n\t\trouteColor = Color.web(color);\n\n\t\tnotifyObservers(\"color\");\n\n\t\treturn oldColor;\n\t}",
"public boolean setColor(Color c)\n {\n color = c;\n return true;\n }",
"public void setColor(String color) {\n this.color = color == null ? null : color.trim();\n }",
"public void setColor(Color c){\n\t\t//do nothing\n\t}",
"public void setColor(int color) {\n/* 77 */ this.color = color;\n/* 78 */ this.paint.setColor(this.color);\n/* */ }",
"public void setColor(String value) {\n setAttributeInternal(COLOR, value);\n }",
"public void setColorTo(IsColor color) {\n\t\tsetColorTo(IsColor.checkAndGetValue(color));\n\t}",
"public void setColor(String color) {\n if (color == null) {\n this.color = Color.black;\n } try {\n this.color = Color.decode(color);\n } catch (NumberFormatException nfe) {\n try {\n final Field f = Color.class.getField(color);\n this.color = (Color) f.get(null);\n } catch (Exception e) {\n this.color = Color.black;\n }\n }\n }",
"public void setValue(Color value) {\n _color = value;\n _updateField(value);\n }",
"public void setColor(int r, int g, int b);",
"public void setColor(String color) {\n\t\t// resets callback\n\t\tsetColor((ColorCallback<DatasetContext>) null);\n\t\t// stores value\n\t\tsetValueAndAddToParent(CommonProperty.COLOR, color);\n\t}",
"@Override\r\n\tpublic void setColor(String color) {\n\t\tthis.color=color;\r\n\t\tSystem.out.println(\"我用\"+color+\"颜色进行填充。\");\r\n\t}",
"void setColor(Vector color);",
"public void setColor (String color)\n\t{\n\t\ttry {\n\t\t\tField f = Color.class.getField(color);\n\t\t\tthis.setColor((Color)f.get(null));\n\t\t}\n\t\tcatch (Exception e1)\n\t\t{\n\t\t\ttry {\n\t\t\t\tthis.color = Color.decode(color);\n\t\t\t}\n\t\t\tcatch (Exception e2) {\n\t\t\t\te1.printStackTrace();\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void setColor(Color newColor) {\n\t\tcolor = newColor;\n\t}",
"public void setColor(short color) {\n\t\tthis.color = color;\n\t}",
"public void setColor(Color newColor)\n {\n this.color = newColor;\n conditionallyRepaint();\n }",
"public void setColor(String c)\n { \n color = c;\n draw();\n }",
"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 setRrColor(Color value) {\n rrColor = value;\n }",
"public void setColor(GrayColor color){\n this.color = color;\n }",
"public void setColor(String color) {\r\n color = color.toLowerCase();\r\n switch (color) {\r\n case \"red\":\r\n this.c = Color.RED;\r\n break;\r\n case \"blue\":\r\n this.c = Color.BLUE;\r\n break;\r\n case \"green\":\r\n this.c = Color.GREEN;\r\n break;\r\n case \"yellow\":\r\n this.c = Color.YELLOW;\r\n break;\r\n default:\r\n this.c = Color.COLORLESS;\r\n break;\r\n }\r\n }",
"public void setColour(Colour colour);",
"public void setCurrentColor(Color color) {\n super.setColor(color);\n }",
"public void setColor(java.awt.Color color1) {\r\n this.color = color1;\r\n }",
"public void setColor(boolean color) {\r\n\t\tthis.color = color;\r\n\t}",
"public void setColor(int gnum, Color col);"
] | [
"0.81891274",
"0.8145846",
"0.808063",
"0.8064828",
"0.8046191",
"0.8034251",
"0.7961491",
"0.79576916",
"0.79475355",
"0.7935849",
"0.7901912",
"0.78990513",
"0.7899026",
"0.7895754",
"0.7888137",
"0.7888137",
"0.7856121",
"0.77983606",
"0.77916527",
"0.7780874",
"0.77729917",
"0.774512",
"0.7731306",
"0.7731306",
"0.7710976",
"0.7687566",
"0.76764774",
"0.76741034",
"0.76676136",
"0.76485115",
"0.76417255",
"0.7638618",
"0.76106906",
"0.76106906",
"0.76106906",
"0.76106906",
"0.76106906",
"0.76106906",
"0.7587595",
"0.7586476",
"0.75713366",
"0.7533339",
"0.75269383",
"0.7515358",
"0.75152487",
"0.7495598",
"0.7486648",
"0.748228",
"0.748228",
"0.74660164",
"0.7464994",
"0.74605775",
"0.7455018",
"0.74379057",
"0.74241894",
"0.7414313",
"0.74113864",
"0.74098027",
"0.74098027",
"0.7408939",
"0.736566",
"0.7361684",
"0.73342663",
"0.7315132",
"0.72720057",
"0.72548777",
"0.7250492",
"0.723113",
"0.7208789",
"0.71566457",
"0.71473515",
"0.7146178",
"0.71427554",
"0.71419656",
"0.7121548",
"0.711249",
"0.7087672",
"0.70816237",
"0.70796835",
"0.7075418",
"0.7035031",
"0.70239335",
"0.70225996",
"0.70160294",
"0.70138353",
"0.70008105",
"0.6990105",
"0.6985011",
"0.69634587",
"0.6960766",
"0.69542193",
"0.6921045",
"0.69206285",
"0.6867111",
"0.6838454",
"0.6835042",
"0.68334013",
"0.68295586",
"0.6819329",
"0.6811041"
] | 0.8105209 | 2 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int num = scanner.nextInt();
int i;
int result = 1;
for (i = 1; i <= num; i++) {
result = result * i;
if (i == num) {
System.out.println(result);
}
}
} | {
"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 |
Based on the discount type of the item this method return the discount service. | public DiscountService getDiscountServive(DiscountType discountType) {
switch (discountType) {
case ONE4ONE:
return one4OneDiscount;
case PROMOTIONAL:
return promotionalPriceDiscount;
case NONE:
default:
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Optional<Discount> findById(Long id) throws ServiceException;",
"public Descuento getDiscount() {\n\t\tDescuento discount = null;\n\t\tCalendar c = Calendar.getInstance();\n\t\tint month = c.get(Calendar.MONTH);\n\t\tif (month == Calendar.APRIL)\n\t\t\tdiscount = new D2();\n\t\telse {\n\t\t\tint total = 0;\n\t\t\tfor (int msgId : currentUser.getContacts().stream().map(Contacto::getMsgId).collect(Collectors.toList()))\n\t\t\t\tfor (Mensaje msg : messageDAO.getMessageList(msgId))\n\t\t\t\t\tif (msg.getSpeaker() == currentUser.getId())\n\t\t\t\t\t\ttotal++;\n\t\t\tif (total >= 100)\n\t\t\t\tdiscount = new D1();\n\t\t}\n\t\treturn discount;\n\t}",
"public String getDiscount() {\n return discount;\n }",
"public double getDiscount();",
"public DiscountTypes getDiscountTypes() {\n return discountTypes;\n }",
"public double getDiscountedPrice(double itemPrice);",
"public java.math.BigDecimal getDiscount () {\n\t\treturn discount;\n\t}",
"public BigDecimal getDiscountPrice() {\n return discountPrice;\n }",
"public int getDiscount() {\n\t\treturn discount;\n\t}",
"@Override\n\tpublic void get(Discount discount) {\n\t\t\n\t}",
"float getDiscount();",
"public interface DiscountStrategy {\r\n \r\n /**\r\n * returns the discount type\r\n * @return \r\n */\r\n public double getDiscount();\r\n \r\n /**\r\n * returns the discounted price\r\n * @param itemPrice the items normal price\r\n * @return the discounted price\r\n */\r\n public double getDiscountedPrice(double itemPrice);\r\n}",
"@Override\n\tpublic double calcDiscount() {\n\t\treturn discount;\n\t}",
"public interface DiscountService extends IBaseService<SysDiscount, Long> {\n\n\t/**\n\t * 根据条件查询\n\t * @param searchCond\n\t * @return\n\t */\n\tpublic List<SysDiscount> searchDiscount(String searchCond);\n\t\n /** \n \t* @Title: insertDiscount \n \t* @Description: 增加 \n \t* @param @param discount\n \t* @param @return \n \t* @return int 返回类型 \n \t* @throws \n */\n public int insertDiscount(SysDiscount discount);\n \n /**\n * 修改\n * @param discount\n * @return\n */\n public int updateDiscount(SysDiscount discount);\n \n /**\n * 删除\n * @param discountId\n * @return\n */\n public int deleteDiscount(long discountId);\n\n /** \n \t* @Title: findAllDiscount\n \t* @Description: 查询 \n \t* @param @param pageNum\n \t* @param @param pageSize\n \t* @param @return \n \t* @return PageInfo<UserDomain> 返回类型 \n \t* @throws \n */\n PageInfo<SysDiscount> findAllDiscount(int pageNum, int pageSize);\n \n \n\n \n \n}",
"BigDecimal getDiscount();",
"Money getDiscountValue();",
"public abstract double getDepositDiscount();",
"public double applyDiscount(){\n SaleDTO saleDTO = sale.createSaleDTO();\n List<DiscountDTO> itemDiscounts=dc.findDiscounts(saleDTO,new ItemDiscount());\n List<DiscountDTO> saleDiscounts=dc.findDiscounts(saleDTO,new SaleDiscount());\n \n sale.applyItemDiscounts(itemDiscounts);\n sale.applyDiscounts(saleDiscounts);\n return sale.getTotalPrice();\n }",
"public abstract double getDiscountRate();",
"public Float getDiscountPrice() {\n return this.DiscountPrice;\n }",
"public char getDiscountType() {\r\n return discountType;\r\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}",
"@Override\n public ServiceItem getServiceItem() {\n\tif (serviceItem instanceof ServiceItem){\n\t return ((ServiceItem) serviceItem).clone();\n\t} else if (serviceItem instanceof Item) {\n\t bootstrap = ((Item)serviceItem).getProxy();\n\t serviceItem = ((Item)serviceItem).get();\n\t return ((ServiceItem) serviceItem).clone();\n\t} \n\treturn null;\n }",
"public abstract double getDiscount(int qty, double price);",
"public double getDiscount(){\n\t\tdouble sub_tot = getSubTotal();\n\t\tdouble discount_rate = getDiscountRate();\n\t\tdouble discount = sub_tot * discount_rate;\n\t\t//this should round the discount to 2 decimal places\n\t\tdouble rounded_discount = Math.round(discount * 100.0) / 100.0;\n\t\treturn rounded_discount;\n\t}",
"public MMDecimal getDiscountAmount() {\r\n return this.discountAmount;\r\n }",
"public DiscountDTO tryDiscountOnSale(CustomerDTO customerInformaton) {\n if (saleState == null)\n throw new IllegalStateException(\"startDiscount(SaleDTO \" + \n \"saleState) must be called before calling \" + \n \"tryDiscountOnSale(CustomerDTO customerInformaton).\");\n SaleDTO saleAfterDiscount = \n tryAvailableDiscountsOnSale(customerInformaton);\n Amount discountAmount = \n calculateDiscountAmount(saleAfterDiscount);\n double discountPercent = \n calculateDiscountPercent(discountAmount);\n DiscountDTO discountInformation = \n new DiscountDTO(\n saleState, \n saleAfterDiscount, \n discountAmount, \n discountPercent);\n return discountInformation;\n \n }",
"List<Discount> findAll() throws ServiceException;",
"@Override\n\tpublic double getDiscount(double price) {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic void makeDiscount() {\n\t\t\r\n\t}",
"public static CouponIborCompoundedDiscountingMethod getInstance() {\n return INSTANCE;\n }",
"public String getProductDiscountPriceId() {\n return productDiscountPriceId;\n }",
"public interface Discountable {\n\n String discount();\n\n\n}",
"public double discountRate () {\n return discountRate;\n }",
"@Override\r\n\tpublic int discountsearch(FoodshopVO vo) {\n\t\treturn 0;\r\n\t}",
"public double getDiscountRate() {\n\t return discountRate;\n\t}",
"public int getPaymentDiscountID() {\n return paymentDiscountID_;\n }",
"void create(Discount discount) throws ServiceException;",
"@Override\n\tpublic double getDiscount() {\n\t\treturn 0.0;\n\t}",
"public interface DiscountService extends ServiceInterface<DiscountEntity>{\n}",
"public double discountPrice() {\n double tot = 0;\n for (Equipment e : equipments) {\n tot += e.discountPrice();\n }\n\n return tot;\n }",
"public int getPaymentDiscountID() {\n return paymentDiscountID_;\n }",
"public double discountedPrice (){\n return basePrice - basePrice * discountRate;\n }",
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service consulterService(Integer idService) {\n\t\tService service= (Service) serviceRepository.findOne(idService);\r\n\t\tif(service==null) throw new RuntimeException(\"Service introuvable\");\r\n\t\treturn (sn.ucad.master.assurance.bo.Service) service;\r\n\t}",
"DiscountingContext apply(DiscountingContext context);",
"public double getDiscount()\n\t{\n\t\tif(customerPurchase >= 2000)\n\t\t\treturn 0.1;\n\t\telse if(customerPurchase >= 1500)\n\t\t\treturn 0.07;\n\t\telse if(customerPurchase >= 1000)\n\t\t\treturn 0.06;\n\t\telse if(customerPurchase >= 500)\n\t\t\treturn 0.05;\n\t\telse\n\t\t\treturn 0;\n\t}",
"public RatingService getRatingService()\r\n {\r\n if (ratingsService == null && RepositoryVersionHelper.isAlfrescoProduct(session))\r\n {\r\n this.ratingsService = new CustomRatingsServiceImpl((RepositorySession) session);\r\n }\r\n return ratingsService;\r\n }",
"public static int calculateDiscount(ItemType type, int quantity) {\n int discount = 0;\n switch (type) {\n case NEW:\n return 0;\n case SECOND_FREE:\n if (quantity > 1)\n discount = 50;\n break;\n case SALE:\n discount = 70;\n break;\n }\n discount += quantity / 10;\n if (discount > 80)\n discount = 80;\n return discount;\n }",
"private SaleDTO tryAvailableDiscountsOnSale(\n CustomerDTO customerInformaton) {\n SaleDTO saleAfterDiscount = saleState;\n boolean isDiscountRuleApplicable = \n compositeDiscountRule.isRuleApplicable(\n saleAfterDiscount, customerInformaton);\n if (isDiscountRuleApplicable) {\n saleAfterDiscount = compositeDiscountRule.applyRule();\n }\n return saleAfterDiscount;\n }",
"private static double getDiscount() {\n System.out.print(\"Fill your coupon code: \");\n String code = sc.nextLine();\n for (String aDiscount : SKERestaurant.discount) {\n System.out.println(aDiscount);\n if (code.equalsIgnoreCase(aDiscount.split(\";\")[0])) {\n return Double.parseDouble(aDiscount.split(\";\")[2].replaceAll(\" \", \"\"));\n }\n }\n System.out.println(\"Coupon not found, Proceed to checkout\");\n return 0;\n }",
"public static IMarryService getInstance(ApplicationContext context) {\r\n\t\treturn (IMarryService) context.getBean(SERVICE_BEAN_ID);\r\n\t}",
"@Override\n\tpublic float getDiscount() {\n\t\treturn 0.0f;\n\t}",
"public Discount getDiscountByCode( String discountCode ) throws WrongItemFormatException\n\t{\n\t\tDiscount result = null;\n\t\tArrayList<Discount> discounts = getDiscountList();\n\t\t\n\t\tfor( Discount discount : discounts )\n\t\t{\n\t\t\tif( discount.getDiscountCode().equals(discountCode) )\n\t\t\t{\n\t\t\t\tresult = discount;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"private ServiceType getServiceType(String serviceTypeName){\n for(ServiceType serviceType: servicesFromSP)\n if(serviceTypeName.equals(serviceType.getServiceName() + \" / \" + serviceType.getHourlyRate() + \" $/H\"))\n return(serviceType);\n return(new ServiceType());\n }",
"public amdocs.iam.pd.webservices.offer.discountofferlistoutput.DiscountOffers getDiscountOffers()\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.offer.discountofferlistoutput.DiscountOffers target = null;\n target = (amdocs.iam.pd.webservices.offer.discountofferlistoutput.DiscountOffers)get_store().find_element_user(DISCOUNTOFFERS$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public amdocs.iam.pd.webservices.offer.billdiscountofferlistoutput.DiscountOffers getDiscountOffers()\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.offer.billdiscountofferlistoutput.DiscountOffers target = null;\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutput.DiscountOffers)get_store().find_element_user(DISCOUNTOFFERS$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public Discount stringToDiscount( String[] itemValues )\n\t{\n\t\tDiscount discount = null;\n\t\t\n\t\tif( itemValues[0].equals(Discount.FIRST_PURCHASE_CODE) )\n\t\t{\n\t\t\tdiscount = new FirstPurchaseDiscount(itemValues[0], itemValues[1], Integer.parseInt(itemValues[4]));\n\t\t}\n\t\telse if( itemValues[0].equals(Discount.SUBSEQUENT_PURCHASE_CODE) )\n\t\t{\n\t\t\tdiscount = new SubsequentDiscount(itemValues[0], itemValues[1], Integer.parseInt(itemValues[4]));\n\t\t}\n\t\telse \n\t\t{\n\t\t\tdiscount = new PublicDiscount(itemValues[0], itemValues[1], itemValues[2], itemValues[3],Integer.parseInt(itemValues[4]));\n\t\t}\n\t\t\n\t\treturn discount;\n\t}",
"@Override\n protected ProdutoServicoImpl getservice() {\n return produtoService;\n }",
"@Override\n\tpublic int getUnitPrice()\n\t{\n\t\tdouble discount = discountRate * super.getUnitPrice();\n\t\tdiscountedprice=discount;\n\t\treturn (int) Math.floor(super.getUnitPrice() -discount);\n\t}",
"public DiscountDTO searchItemDiscount(String itemId, int quantity) {\n\t\tDiscountDTO dummyDiscount = new DiscountDTO();\n\t\tfor (DiscountDTO matchingDiscount : discountRegister)\n\t\t\tif ((matchingDiscount.getCategory() != Category.CUSTOMER)\n\t\t\t\t\t&& (matchingDiscount.getItemId().equalsIgnoreCase(itemId))\n\t\t\t\t\t&& (matchingDiscount.getItemQuantity() <= quantity)) {\n\t\t\t\treturn matchingDiscount;\n\t\t\t}\n\t\treturn dummyDiscount;\n\t}",
"public Float getUnitPriceDiscount() {\n return this.UnitPriceDiscount;\n }",
"public static double computeDiscountInfo(double price, double discountRate)\n\t {\n\t\t double savings;\n\t\t savings = price * discountRate / 100;\n\t\t return savings;\n\t }",
"public static IConsortiaService getInstance(ApplicationContext context) {\r\n return (IConsortiaService) context.getBean(SERVICE_BEAN_ID);\r\n }",
"@SuppressWarnings(\"rawtypes\")\n private void getPromotionFromAdjustment(List<?> adjustments, List<AppliedPromotion> orderAppliedPromotions, String discountType) throws ClaimableException {\n\n RepositoryItem[] couponItems = null;\n Iterator adjIter = adjustments.iterator();\n\n while (adjIter.hasNext()) {\n PricingAdjustment pricingAdjustment = (PricingAdjustment) adjIter.next();\n if (pricingAdjustment == null) {\n continue;\n }\n\n RepositoryItem promotion = pricingAdjustment.getPricingModel();\n\n if (promotion != null) {\n Boolean isGlobal = (Boolean) promotion.getPropertyValue(GLOBAL);\n if (isGlobal != null && isGlobal.booleanValue()) continue;\n\n String description = (String) promotion.getPropertyValue(DESCRIPTION);\n\n if (StringUtils.isEmpty(description)) {\n description = promotion.getRepositoryId();\n }\n String promoName = (String) promotion.getPropertyValue(PROMO_DISP_NAME);\n if (StringUtils.isEmpty(promoName)) {\n \tpromoName = description;\n }\n String promoShortDesc = (String) promotion.getPropertyValue(PROMO_SHORT_DESC);\n if (StringUtils.isEmpty(promoShortDesc)) {\n \tpromoShortDesc = description;\n }\n \n couponItems = getClaimableTools().getCouponsForPromotion(promotion.getRepositoryId());\n\n AppliedPromotion promo = new AppliedPromotion();\n if (couponItems != null) {\n promo.setCouponCode(couponItems[0].getRepositoryId());\n } else {\n promo.setCouponCode(promotion.getRepositoryId());\n }\n promo.setDescription(description);\n promo.setPromoName(promoName);\n promo.setPromoShortDesc(promoShortDesc);\n promo.setPromoId(promotion.getRepositoryId());\n promo.setDiscountType(discountType);\n // 2564 - Free item shipping promos are really item discounts when they are setup\n // but treated as shipping discount in the UI\n if(discountType.equalsIgnoreCase(\"item\") && pricingAdjustment.getAdjustmentDescription().equalsIgnoreCase(\"Item Free Shipping Discount\")) {\n \tpromo.setItemShipping(true);\n }\n if(couponItems != null) {\n \tif(!isCouponExists(orderAppliedPromotions, couponItems[0].getRepositoryId())) {\n \t\torderAppliedPromotions.add(promo);\n \t}\n } else {\n \torderAppliedPromotions.add(promo);\n }\n }\n }\n\n }",
"boolean checkActiveDiscount(Discount discount) throws ServiceException;",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.ReviewServiceType getServiceType();",
"@Override\n public void onDiscountClickListener(int discount, String discountType) {\n\n if (cartList.size() < 1) {\n Toast.makeText(getContext(), \"Your cart is empty\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n discountRecyclerView.setVisibility(View.GONE);\n cartRecyclerView.setVisibility(View.VISIBLE);\n\n this.discount = discount;\n this.discountType = discountType;\n updatePriceView();\n }",
"public CP getProductServiceGrossAmount() { \r\n\t\tCP retVal = this.getTypedField(15, 0);\r\n\t\treturn retVal;\r\n }",
"@Override\n\tpublic BaseServic<Banco> getService() {\n\t\treturn service;\n\t}",
"public ContratOffreDTO getCdi(){\n\t\tcdi = null;\n\t\tList<ContratOffreDTO> l = getNomenclatureDomainService().getContrats();\n\t\tfor(ContratOffreDTO c : l){\n\t\t\tif(c.getCodeCtrl().equalsIgnoreCase(DonneesStatic.CONTRAT_OFFRE_CODE_CTRL_CDI)){\n\t\t\t\tcdi=c;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn cdi;\n\t}",
"@GetMapping(\"/customer/discount\")\n\tpublic List<Customer> getCustomerByDiscount(){\n\t\treturn customerRepository.getCustomerByDiscount(true);\n\t}",
"@Override\n\tpublic void add(Discount discount) {\n\t\t\n\t}",
"public Integer getServiceType() {\r\n return serviceType;\r\n }",
"public interface MaDeductionItemService extends Service<MaDeductionItem> {\n public List<MaDeductionItems> getMark(String domainUnid);\n}",
"@SuppressWarnings(\"rawtypes\")\n public double getDiscountedAmount(List<?> adjustments) {\n double discountAdjustment = 0.0;\n if (adjustments != null) {\n Iterator itAdj = adjustments.iterator();\n PricingAdjustment adj = null;\n RepositoryItem promotion = null;\n\n while (itAdj.hasNext()) {\n adj = (PricingAdjustment) itAdj.next();\n promotion = adj.getPricingModel();\n\n if (promotion != null) {\n\n Boolean isGlobal = (Boolean) promotion.getPropertyValue(GLOBAL);\n if (isGlobal != null && isGlobal.booleanValue()) {\n continue;\n }\n\n double adjustedAmount = adj.getTotalAdjustment();\n if (adjustedAmount > 0.0) {\n discountAdjustment += adjustedAmount;\n } else {\n discountAdjustment += (adjustedAmount * -1);\n }\n\n }\n }\n }\n return discountAdjustment;\n }",
"public Double getTotalDiscount(java.sql.Timestamp transDate, java.sql.Timestamp eodDate, int storeCode, int... discountType) {\r\n\t\tString query = \"SELECT o.OR_NO, i.PROD_CODE, i.SELL_PRICE, i.QUANTITY from invoice_item i, invoice o, products_lu p \" +\r\n\t\t\"WHERE p.PROD_CODE = i.PROD_CODE\" +\r\n\t\t\" AND o.TRANS_DT >= ? AND o.TRANS_DT <= ? \" +\r\n\t\t\" AND i.OR_NO = o.OR_NO \" +\r\n\t\t\" AND o.STORE_CODE = i.STORE_CODE \" +\r\n\t\t\" AND o.STORE_CODE = ?\" +\r\n\t\t\" AND NOT EXISTS (SELECT 1 FROM INVOICE_SET s WHERE s.OR_NO = o.OR_NO) \";\r\n//\t\t\r\n\t\tif (discountType.length > 0) {\r\n\t\t\tquery += \" AND i.DISC_CODE = \" + discountType[0];\r\n\t\t}\r\n//\t\tString query = \"SELECT sum(d.DISC_RATE/100 *i.sell_price*i.quantity) FROM discount_lu d, invoice_item i, invoice o, products_lu p \" +\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\"WHERE p.PROD_CODE = i.PROD_CODE\" +\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\" AND d.DISC_NO = i.DISC_CODE\" +\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\" AND o.TRANS_DT >= ? AND o.TRANS_DT <= ? \" +\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\" AND i.OR_NO = o.OR_NO \" +\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\" AND o.STORE_CODE = ?\";\r\n\t\t\r\n\t\tPreparedStatement pquery;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\tpquery = Main.getDBManager().getConnection().prepareStatement(query);\r\n\t\t\t\r\n\t\t\tpquery.setTimestamp(1, transDate);\r\n\t\t\tpquery.setTimestamp(2, eodDate);\r\n\t\t\tpquery.setInt(3, storeCode);\r\n\t\t\t\r\n\t\t\trs = pquery.executeQuery();\r\n\t\t\t\r\n\t\t\tDouble amount = 0.0d;\r\n\t\t\t\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tamount += (InvoiceItemService.getInstance().getDiscountAmount(rs.getLong(\"OR_NO\"),rs.getString(\"PROD_CODE\"))) * rs.getDouble(\"QUANTITY\");\r\n\t\t\t}\r\n\t\t\r\n\t\t\tlogger.debug(\"Total Discount: \"+amount);\r\n\t\t\treturn amount;\r\n\t\t} catch (SQLException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public String getPriceAndDiscount() {\n return _context.getResources().getString(_context.getResources().getIdentifier(\"price_and_discount\", \"string\", _context.getPackageName()), getDiscount(), getOriginalPrice(), getSalePrice());\n\n }",
"public interface Discountable {\n void discountSell();\n}",
"int[] findDiscountsByStatus(List<Discount> discounts) throws ServiceException;",
"public TotalPriceDTO isEligibleForDiscount(int customerID) {\n return sale.getDiscount(registryCreator.getDiscountRegistry().getDiscount(customerID));\n }",
"public GIPIQuoteItemDiscountDAOImpl() {\n\t\tsuper(GIPIQuoteItemDiscount.class);\t\t\n\t}",
"@RequestMapping(value = \"/adddiscount\", method = RequestMethod.POST)\r\n\tpublic DiscountBean addDiscount(DiscountBean discount) throws DiscountDateExceedException {\r\n\t\r\n\t\t\treturn service.addDiscount(discount);\r\n\t\t\r\n\t}",
"public ArmCurrency getPromotionalDiscountAmount() {\n ArmCurrency rtnVal = promoAmt;\n if (isReturn && rtnVal != null) {\n rtnVal = rtnVal.multiply( -1).round();\n }\n return (rtnVal);\n }",
"public void addDiscount (String shoeType ,int amount){\r\n\t\t\tShoeStorageInfo shoe = storeMap.get(shoeType);\r\n\t\t\tshoe.setDiscountedAmount(amount);\r\n\t\t}",
"public boolean isChargeable(final Context parentCtx, final Object item, final ChargedItemTypeEnum itemType,\r\n final int adjustmentType, final long amount, \r\n final ServicePeriodEnum servicePeriod)\r\n throws HomeException\r\n {\r\n Context context = parentCtx.createSubContext();\r\n context.put(Subscriber.class, getSub());\r\n \r\n Date startDate = startDate_;\r\n \r\n if (ServicePeriodSupportHelper.get(context).usesSpecialHandler(context, servicePeriod))\r\n {\r\n ServicePeriodHandler handler = ServicePeriodSupportHelper.get(context).getHandler(servicePeriod);\r\n \r\n startDate = handler.calculateCycleStartDate(context, getBillingDate(), getBillCycle(context).getDayOfMonth(), getCRMSpid(context).getId(), getSub().getId(), item);\r\n origServiceEndDate_ = handler.calculateCycleEndDate(context, getBillingDate(), getBillCycle(context).getDayOfMonth(), getCRMSpid(context).getId(), getSub().getId(), item);\r\n }\r\n else\r\n {\r\n origServiceEndDate_ = endDate_;\r\n }\r\n \r\n \r\n boolean preBiling = spidUsesPreBilling(context) && ChargingCycleEnum.MONTHLY.equals(servicePeriod.getChargingCycle()) && !getSub().isPrepaid();\r\n\r\n return RecurringRechargeSupport.isSubscriberChargeable(context, getSub(), item, itemType, adjustmentType,\r\n amount, getAgentName(), getBillingDate(), \r\n startDate, endDate_, preBiling); \r\n \r\n }",
"public static void main(String[] args) throws InterruptedException {\n Item item1 = new Item(\"Coca-cola\", 200);\n System.out.println(\"Price before discount: \" + item1.getPrice());\n System.out.println(\"Price after discount: \" + item1.calculateDiscount()); //should be same price, 200, there's no doscount for this type\n\n ItemWithDiscount item2 = new ItemWithDiscount(\"Coca-cola Zero\", 2.0);\n System.out.println(\"\\nPrice before discount: \" + item2.getPrice());\n item2.setDiscount(10);\n System.out.println(\"Price after discount: \" + item2.calculateDiscount()); // 2 - 0.2 = 1.8\n\n\n //CHECK BUY PAY DISCOUNT\n BuyMorePayLess item04 = new BuyMorePayLess(\"Milk\", 10);\n BuyMorePayLess item05 = new BuyMorePayLess(\"Milk\", 10);\n BuyMorePayLess item06 = new BuyMorePayLess(\"Milk\", 1);\n item04.setBuyPayOffer(3,2);\n item04.calculateDiscount();\n\n //Check TakeItAll discount\n ItemTakeItAll item07 = new ItemTakeItAll(\"Tuna\",5.00);\n ItemTakeItAll item08 = new ItemTakeItAll(\"Tuna\",5.00);\n\n// item07.setDiscount(10);\n item07.setMinimumNumber(1);\n System.out.println(\"##################\" + item07.calculateDiscount());\n\n // USERS\n LoyalCustomer customer01 = new LoyalCustomer(\"Giorgi Tsipuria\", \"giobaski\", \"123\",\n \"Gonsiori 33\",\"55945239\");\n\n //B A S K E T S\n Basket basket01 = new Basket(\"Tartu 46\", \"Kairi\", customer01);\n basket01.insertItem(item1); //200 -> 200\n basket01.insertItem(item2); // 2.0 -> 1.8\n System.out.println(\"Total payment in basket: \" + basket01.caclulatePayment()); //201.8 + 201.8 * 0.1 = 221.98\n\n\n\n\n\n //1. Create Store\n Store store = new Store(\"Raua 16\");\n\n //2. sign into store\n Cashier currentCashier = store.cashierAuthentication();\n\n //3.\n Menu currentMenu = store.openMenu();\n\n //4. new basket\n currentMenu.openNewBasket(customer01);\n\n\n //5.Cashier starts adding items into new basket\n System.out.println(currentMenu.getBasket());\n currentMenu.getBasket().insertItem(item1);\n currentMenu.getBasket().insertItem(item2);\n\n\n System.out.println(\"######Basket By ID:\");\n currentMenu.printBasketInfoById(2);\n System.out.println(\"########\");\n\n\n //6. Calculate total price for the current basket\n currentMenu.getBasket().caclulatePayment();\n System.out.println(currentMenu.getBasket());\n System.out.println(\"currents items: \");\n System.out.println(currentMenu.getBasket().getItems());\n\n //7. Logout cashier\n Thread.sleep(10000);\n currentMenu.exit();\n\n\n // Additional features\n System.out.println(\"points of the loyal customer: \" + customer01.getPoints());\n\n System.out.println(\"Bonus for cashier: \" + currentCashier.calculateBonus() + \" Euros\");\n\n\n\n\n\n\n }",
"public static IPayService getInstance(ApplicationContext context) {\r\n return (IPayService) context.getBean(SERVICE_BEAN_ID);\r\n }",
"@Override\n public double getDiscount() {\n return (30 /(1 + Math.exp(-1 * (this.years - 2) )))/100;\n }",
"public int get(String item) {\n\t\treturn couponManager.get(item);\n\t}",
"private String getShippingPrice(Document item) {\n String result;\n result = item.select(\"span[class^=shippingPrice]\").html();\n return result;\n }",
"public interface Discountable {\n\n double calcDiscountedPriceMarkUp(double discount);\n\n}",
"@Override\r\n\tpublic BaseService<Miss_articleWithBLOBs> baseService(String menuType) {\n\t\treturn missArticleService;\r\n\t}",
"double getDiscountRate(int catalog_id, int customer_acc_no);",
"public ContratOffreDTO getCdd(){\n\t\tcdd = null;\n\t\tList<ContratOffreDTO> l = getNomenclatureDomainService().getContrats();\n\t\tfor(ContratOffreDTO c : l){\n\t\t\tif(c.getCodeCtrl().equalsIgnoreCase(DonneesStatic.CONTRAT_OFFRE_CODE_CTRL_CDD)){\n\t\t\t\tcdd=c;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn cdd;\n\t}",
"public static Product getProduct(PROD_TYPE type, String descr, double price\r\n , DiscountStrategy discount){\r\n if(type==null || descr == null || discount == null){\r\n throw new NullPointerException();\r\n } else if (price < 0){\r\n throw new IllegalArgumentException(PRICE_ERR);\r\n }\r\n switch (type){\r\n case CLOTHING:\r\n lastProdID++;\r\n return new ClothingProduct(lastProdID, descr, price, discount);\r\n default:\r\n return null;\r\n }\r\n \r\n }",
"ICpItem getCpItem();",
"public interface DiscountCargoIfc extends CodeConstantsIfc\n{\n /** revision number supplied by version control **/\n public static final String revisionNumber = \"$Revision: /rgbustores_13.4x_generic_branch/1 $\";\n\n /**\n length of available space for discount value\n **/\n public static int AVAIL_DISCOUNT_LENGTH = 23;\n\n /**\n constant for maximum number of discount allowed parameter name\n **/\n public static final String MAX_DISCOUNTS_ALLOWED = \"MaxDiscountsAllowed\";\n /**\n constant for parameter value representing only one discount allowed\n **/\n public static final String ONE_TOTAL = \"OneTotal\";\n /**\n constant for parameter value representing one of each type of discount allowed\n **/\n public static final String ONE_OF_EACH_TYPE = \"OneOfEachType\";\n /**\n constant for maximum employee discount amount/percent parameter name\n **/\n public static final String MAX_EMPLOYEE_DISC_PCT = \"MaximumEmployeeDiscountAmountPercent\"; \n /**\n constant for parameter name\n **/\n public static final String MAX_DISC_PCT = \"MaximumItemDiscountAmountPercent\";\n /**\n constant for maximum markdwon amount/percent\n **/ \n public static final String MAX_MARKDOWN_PCT = \"MaximumItemMarkdownAmountPercent\";\n /**\n constant for maximum damage discount amount/percent parameter name\n **/\n public static final String MAX_DAMAGE_DISC_PCT = \"MaximumDamageDiscountAmountPercent\"; \n /**\n constant for multiple selection with some invalid discounts confirmation dialog screen\n **/\n public static final String MULTI_ITEM_INVALID_DISC = \"MultiItemInvalidDiscount\";\n /**\n constant for no valid discounts error dialog screen\n **/\n public static final String INVALID_DISC = \"InvalidDiscount\";\n /**\n constant for amount exceeds maximum amount error dialog screen\n **/\n public static final String INVALID_ITEM_DISC = \"InvalidItemDiscount\";\n /**\n constant for discount already applied confirmation dialog screen\n **/\n public static final String DISCOUNT_ALREADY_APPLIED = \"DiscountAlreadyApplied\";\n /**\n constant for error dialog screen\n **/\n public static final String EMPLOYEE_DISCOUNT_NOT_ALLOWED = \"EmployeeDiscountNotAllowed\";\n /**\n constant for error dialog screen\n **/\n public static final String DISCOUNT_NOT_ALLOWED = \"DiscountNotAllowed\";\n /**\n constant for error dialog screen\n **/\n public static final String MULTIPLE_DISCOUNT_NOT_ALLOWED = \"MultipleDiscountsNotAllowed\";\n /**\n constant for error dialog screen\n **/\n public static final String ITEM_NOT_DAMAGE_DISCOUNTABLE = \"ItemNotDamageDiscountable\"; \n /**\n constant for error dialog screen\n **/\n public static final String INVALID_REASON_CODE = \"InvalidReasonCode\";\n /**\n constant for parameter name\n **/\n public static final String MAX_TRANS_DISC_PCT = \"MaximumTransactionDiscountAmountPercent\";\n /**\n constant for parameter name\n **/\n public static final String MAX_EMPLOYEE_TRANS_DISC_PCT = \"MaximumEmployeeTransactionDiscountAmountPercent\";\n /**\n resource id for invalid transaction discount dialog\n **/\n public static final String INVALID_TRANSACTION_DISCOUNT_DIALOG = \"InvalidTransactionDiscountPercent\";\n /**\n * Invalid Price override dialog\n */\n public static final String INVALID_PRICE_OVERRIDE_DIALOG = \"InvalidPriceOverride\";\n \n \n //---------------------------------------------------------------------\n /**\n Returns discountType\n @return discountType discount type\n **/\n //---------------------------------------------------------------------\n public int getDiscountType();\n\n //---------------------------------------------------------------------\n /**\n Sets discountType.\n @param discountType the discount type\n **/\n //---------------------------------------------------------------------\n public void setDiscountType(int discountType);\n\n}",
"public interface PricingService {\n\t\n\t/**\n\t * Get the Price information for the product\n\t *\n\t * @param product the ProductModel\n\t * l\n\t * @return list of PriceInformation for the corresponding product \n\t */\n\tList<PriceInformation> getPriceForProduct(ProductModel product);\n}",
"@Override\r\n public PurchaseOrderItem getPurchaseOrderItem() {\r\n if (ObjectUtils.isNotNull(this.getPurapDocumentIdentifier())) {\r\n if (ObjectUtils.isNull(this.getPaymentRequest())) {\r\n this.refreshReferenceObject(PurapPropertyConstants.PURAP_DOC);\r\n }\r\n }\r\n // ideally we should do this a different way - maybe move it all into the service or save this info somehow (make sure and\r\n // update though)\r\n if (getPaymentRequest() != null) {\r\n PurchaseOrderDocument po = getPaymentRequest().getPurchaseOrderDocument();\r\n PurchaseOrderItem poi = null;\r\n if (this.getItemType().isLineItemIndicator()) {\r\n List<PurchaseOrderItem> items = po.getItems();\r\n poi = items.get(this.getItemLineNumber().intValue() - 1);\r\n // throw error if line numbers don't match\r\n // MSU Contribution DTT-3014 OLEMI-8483 OLECNTRB-974\r\n /*\r\n * List items = po.getItems(); if (items != null) { for (Object object : items) { PurchaseOrderItem item =\r\n * (PurchaseOrderItem) object; if (item != null && item.getItemLineNumber().equals(this.getItemLineNumber())) { poi\r\n * = item; break; } } }\r\n */\r\n } else {\r\n poi = (PurchaseOrderItem) SpringContext.getBean(PurapService.class).getBelowTheLineByType(po, this.getItemType());\r\n }\r\n if (poi != null) {\r\n return poi;\r\n } else {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getPurchaseOrderItem() Returning null because PurchaseOrderItem object for line number\" + getItemLineNumber() + \"or itemType \" + getItemTypeCode() + \" is null\");\r\n }\r\n return null;\r\n }\r\n } else {\r\n\r\n LOG.error(\"getPurchaseOrderItem() Returning null because paymentRequest object is null\");\r\n throw new PurError(\"Payment Request Object in Purchase Order item line number \" + getItemLineNumber() + \"or itemType \" + getItemTypeCode() + \" is null\");\r\n }\r\n }",
"abstract double calculateCurrentDiscountRate();"
] | [
"0.6061767",
"0.59180313",
"0.5864443",
"0.58564425",
"0.5831079",
"0.58284914",
"0.5790105",
"0.57430005",
"0.57324404",
"0.5714829",
"0.5714682",
"0.56774247",
"0.5663643",
"0.56550574",
"0.5611073",
"0.56036824",
"0.5598803",
"0.5561213",
"0.55450016",
"0.5533614",
"0.54976994",
"0.5477813",
"0.5466871",
"0.5441603",
"0.5424072",
"0.53966284",
"0.53813213",
"0.53684646",
"0.5352191",
"0.5332645",
"0.53254205",
"0.53247267",
"0.53224814",
"0.5316323",
"0.5283922",
"0.527336",
"0.52714026",
"0.5267177",
"0.52606535",
"0.5239971",
"0.522767",
"0.52260756",
"0.52184534",
"0.52133894",
"0.521072",
"0.5204808",
"0.5197494",
"0.5172019",
"0.51495355",
"0.5126236",
"0.51166344",
"0.5113704",
"0.5104839",
"0.507992",
"0.50749886",
"0.50702053",
"0.506584",
"0.5057068",
"0.5051644",
"0.50119644",
"0.5011069",
"0.5010454",
"0.50033796",
"0.49991122",
"0.4984905",
"0.49813083",
"0.4939808",
"0.49387455",
"0.49239835",
"0.49235192",
"0.4900997",
"0.48976135",
"0.48969683",
"0.48809093",
"0.4876661",
"0.48747638",
"0.48648566",
"0.4863147",
"0.4857635",
"0.4857404",
"0.48534334",
"0.48514193",
"0.48312178",
"0.4830655",
"0.48295724",
"0.48287112",
"0.48222625",
"0.48219806",
"0.4800903",
"0.47990942",
"0.47946322",
"0.47941425",
"0.47841632",
"0.47834778",
"0.47816116",
"0.47618312",
"0.4759536",
"0.4753633",
"0.47493178",
"0.47452652"
] | 0.7729285 | 0 |
private final FileSystem fs; | public CsvToVector(String csvPath)
{
this.csvPath = csvPath;
//this.fs = fs;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected FileSystem getFileSystem() {\n return _fileSystem;\n }",
"public FileSystem getFileSystem() {\n return fs;\n }",
"protected FileSystem() {\n\t}",
"private FileManager() {}",
"private FSUtils() {\n }",
"public interface BlockFileSystem {\n\n \n /**\n * The size of a block in bytes.\n */\n int BLOCK_SIZE = 512;\n\n\n /**\n * Returns the root entry of the file system. Subfiles and directories\n * can be found by searching the returned entry.\n * \n * @return the root entry\n * @throws IOException if an IO error occurs\n */\n public abstract Entry getRoot() throws IOException;\n\n \n /**\n * Returns the number of the block that follows the given block.\n * The internal block allocation tables are consulted to determine the\n * next block. A return value that is less than zero indicates that\n * there is no next block.\n * \n * @param block the number of block whose successor to return\n * @return the successor of that block\n * @throws IOException if an IO error occurs\n */\n public abstract int getNextBlock(int block) throws IOException;\n\n\n /**\n * Returns the raw input stream for this file system. \n * Typically this will be the random access file containing the .doc.\n * \n * @return the raw input stream for this file system\n */\n public abstract SeekInputStream getRawInput();\n\n}",
"public final Object getFilesystemObject() {\n \treturn m_filesysObj;\n }",
"public interface IFileSystem {\n\n /** */\n String TOP_DIRECTORY_ONLY = \"TopDirectoryOnly\";\n /** */\n String ALL_DIRECTORIES = \"AllDirectories\";\n\n /**\n * Gets a value indicating whether the file system is read-only or\n * read-write.\n *\n * @return true if the file system is read-write.\n */\n boolean canWrite();\n\n /**\n * Gets a value indicating whether the file system is thread-safe.\n */\n boolean isThreadSafe();\n\n /**\n * Gets the root directory of the file system.\n */\n DiscDirectoryInfo getRoot();\n\n /**\n * Copies an existing file to a new file.\n *\n * @param sourceFile The source file.\n * @param destinationFile The destination file.\n */\n void copyFile(String sourceFile, String destinationFile) throws IOException;\n\n /**\n * Copies an existing file to a new file, allowing overwriting of an\n * existing file.\n *\n * @param sourceFile The source file.\n * @param destinationFile The destination file.\n * @param overwrite Whether to permit over-writing of an existing file.\n */\n void copyFile(String sourceFile, String destinationFile, boolean overwrite) throws IOException;\n\n /**\n * Creates a directory.\n *\n * @param path The path of the new directory.\n */\n void createDirectory(String path) throws IOException;\n\n /**\n * Deletes a directory.\n *\n * @param path The path of the directory to delete.\n */\n void deleteDirectory(String path) throws IOException;\n\n /**\n * Deletes a directory, optionally with all descendants.\n *\n * @param path The path of the directory to delete.\n * @param recursive Determines if the all descendants should be deleted.\n */\n void deleteDirectory(String path, boolean recursive) throws IOException;\n\n /**\n * Deletes a file.\n *\n * @param path The path of the file to delete.\n */\n void deleteFile(String path) throws IOException;\n\n /**\n * Indicates if a directory exists.\n *\n * @param path The path to test.\n * @return true if the directory exists.\n */\n boolean directoryExists(String path) throws IOException;\n\n /**\n * Indicates if a file exists.\n *\n * @param path The path to test.\n * @return true if the file exists.\n */\n boolean fileExists(String path) throws IOException;\n\n /**\n * Indicates if a file or directory exists.\n *\n * @param path The path to test.\n * @return true if the file or directory exists.\n */\n boolean exists(String path) throws IOException;\n\n /**\n * Gets the names of subdirectories in a specified directory.\n *\n * @param path The path to search.\n * @return list of directories.\n */\n List<String> getDirectories(String path) throws IOException;\n\n /**\n * Gets the names of subdirectories in a specified directory matching a\n * specified search pattern.\n *\n * @param path The path to search.\n * @param searchPattern The search string to match against.\n * @return list of directories matching the search pattern.\n */\n List<String> getDirectories(String path, String searchPattern) throws IOException;\n\n /**\n * Gets the names of subdirectories in a specified directory matching a\n * specified search pattern, using a value to determine whether to search\n * subdirectories.\n *\n * @param path The path to search.\n * @param searchPattern The search string to match against.\n * @param searchOption Indicates whether to search subdirectories.\n * @return list of directories matching the search pattern.\n */\n List<String> getDirectories(String path, String searchPattern, String searchOption) throws IOException;\n\n /**\n * Gets the names of files in a specified directory.\n *\n * @param path The path to search.\n * @return list of files.\n */\n List<String> getFiles(String path) throws IOException;\n\n /**\n * Gets the names of files in a specified directory.\n *\n * @param path The path to search.\n * @param searchPattern The search string to match against.\n * @return list of files matching the search pattern.\n */\n List<String> getFiles(String path, String searchPattern) throws IOException;\n\n /**\n * Gets the names of files in a specified directory matching a specified\n * search pattern, using a value to determine whether to search\n * subdirectories.\n *\n * @param path The path to search.\n * @param searchPattern The search string to match against.\n * @param searchOption Indicates whether to search subdirectories.\n * @return list of files matching the search pattern.\n */\n List<String> getFiles(String path, String searchPattern, String searchOption) throws IOException;\n\n /**\n * Gets the names of all files and subdirectories in a specified directory.\n *\n * @param path The path to search.\n * @return list of files and subdirectories matching the search pattern.\n */\n List<String> getFileSystemEntries(String path) throws IOException;\n\n /**\n * Gets the names of files and subdirectories in a specified directory\n * matching a specified search pattern.\n *\n * @param path The path to search.\n * @param searchPattern The search string to match against.\n * @return list of files and subdirectories matching the search pattern.\n */\n List<String> getFileSystemEntries(String path, String searchPattern) throws IOException;\n\n /**\n * Moves a directory.\n *\n * @param sourceDirectoryName The directory to move.\n * @param destinationDirectoryName The target directory name.\n */\n void moveDirectory(String sourceDirectoryName, String destinationDirectoryName) throws IOException;\n\n /**\n * Moves a file.\n *\n * @param sourceName The file to move.\n * @param destinationName The target file name.\n */\n void moveFile(String sourceName, String destinationName) throws IOException;\n\n /**\n * Moves a file, allowing an existing file to be overwritten.\n *\n * @param sourceName The file to move.\n * @param destinationName The target file name.\n * @param overwrite Whether to permit a destination file to be overwritten.\n */\n void moveFile(String sourceName, String destinationName, boolean overwrite) throws IOException;\n\n /**\n * Opens the specified file.\n *\n * @param path The full path of the file to open.\n * @param mode The file mode for the created stream.\n * @return The new stream.\n */\n SparseStream openFile(String path, FileMode mode) throws IOException;\n\n /**\n * Opens the specified file.\n *\n * @param path The full path of the file to open.\n * @param mode The file mode for the created stream.\n * @param access The access permissions for the created stream.\n * @return The new stream.\n */\n SparseStream openFile(String path, FileMode mode, FileAccess access) throws IOException;\n\n /**\n * Gets the attributes of a file or directory.\n *\n * @param path The file or directory to inspect.\n * @return The attributes of the file or directory.\n */\n Map<String, Object> getAttributes(String path) throws IOException;\n\n /**\n * Sets the attributes of a file or directory.\n *\n * @param path The file or directory to change.\n * @param newValue The new attributes of the file or directory.\n */\n void setAttributes(String path, Map<String, Object> newValue) throws IOException;\n\n /**\n * Gets the creation time (in local time) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @return The creation time.\n */\n long getCreationTime(String path) throws IOException;\n\n /**\n * Sets the creation time (in local time) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @param newTime The new time to set.\n */\n void setCreationTime(String path, long newTime) throws IOException;\n\n /**\n * Gets the creation time (in UTC) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @return The creation time.\n */\n long getCreationTimeUtc(String path) throws IOException;\n\n /**\n * Sets the creation time (in UTC) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @param newTime The new time to set.\n */\n void setCreationTimeUtc(String path, long newTime) throws IOException;\n\n /**\n * Gets the last access time (in local time) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @return The last access time.\n */\n long getLastAccessTime(String path) throws IOException;\n\n /**\n * Sets the last access time (in local time) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @param newTime The new time to set.\n */\n void setLastAccessTime(String path, long newTime) throws IOException;\n\n /**\n * Gets the last access time (in UTC) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @return The last access time.\n */\n long getLastAccessTimeUtc(String path) throws IOException;\n\n /**\n * Sets the last access time (in UTC) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @param newTime The new time to set.\n */\n void setLastAccessTimeUtc(String path, long newTime) throws IOException;\n\n /**\n * Gets the last modification time (in local time) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @return The last write time.\n */\n long getLastWriteTime(String path) throws IOException;\n\n /**\n * Sets the last modification time (in local time) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @param newTime The new time to set.\n */\n void setLastWriteTime(String path, long newTime) throws IOException;\n\n /**\n * Gets the last modification time (in UTC) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @return The last write time.\n */\n long getLastWriteTimeUtc(String path) throws IOException;\n\n /**\n * Sets the last modification time (in UTC) of a file or directory.\n *\n * @param path The path of the file or directory.\n * @param newTime The new time to set.\n */\n void setLastWriteTimeUtc(String path, long newTime) throws IOException;\n\n /**\n * Gets the length of a file.\n *\n * @param path The path to the file.\n * @return The length in bytes.\n */\n long getFileLength(String path) throws IOException;\n\n /**\n * Gets an object representing a possible file.\n *\n * The file does not need to exist.\n *\n * @param path The file path.\n * @return The representing object.\n */\n DiscFileInfo getFileInfo(String path) throws IOException;\n\n /**\n * Gets an object representing a possible directory.\n *\n * The directory does not need to exist.\n *\n * @param path The directory path.\n * @return The representing object.\n */\n DiscDirectoryInfo getDirectoryInfo(String path) throws IOException;\n\n /**\n * Gets an object representing a possible file system object (file or\n * directory).\n *\n * The file system object does not need to exist.\n *\n * @param path The file system path.\n * @return The representing object.\n */\n DiscFileSystemInfo getFileSystemInfo(String path) throws IOException;\n\n /**\n * Reads the boot code of the file system into a byte array.\n *\n * @return The boot code, or {@code null} if not available.\n */\n byte[] readBootCode() throws IOException;\n\n /**\n * Size of the Filesystem in bytes\n */\n long getSize() throws IOException;\n\n /**\n * Used space of the Filesystem in bytes\n */\n long getUsedSpace() throws IOException;\n\n /**\n * Available space of the Filesystem in bytes\n */\n long getAvailableSpace() throws IOException;\n\n}",
"@Override\n public Collection<AbstractFile> visit(FileSystem fs) {\n \n SleuthkitCase sc = Case.getCurrentCase().getSleuthkitCase();\n \n StringBuilder queryB = new StringBuilder();\n queryB.append(\"SELECT * FROM tsk_files WHERE (fs_obj_id = \").append(fs.getId());\n queryB.append(\") AND (size > 0)\");\n queryB.append(\" AND ( (meta_type = \").append(TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_REG.getMetaType());\n queryB.append(\") OR (meta_type = \").append(TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_DIR.getMetaType());\n queryB.append( \"AND (name != '.') AND (name != '..')\");\n queryB.append(\") )\");\n if (getUnallocatedFiles == false) {\n queryB.append( \"AND (type = \");\n queryB.append(TskData.TSK_DB_FILES_TYPE_ENUM.FS.getFileType());\n queryB.append(\")\");\n }\n \n try {\n final String query = queryB.toString();\n logger.log(Level.INFO, \"Executing query: \" + query);\n ResultSet rs = sc.runQuery(query);\n List<AbstractFile> contents = sc.resultSetToAbstractFiles(rs);\n Statement s = rs.getStatement();\n rs.close();\n if (s != null) {\n s.close();\n }\n return contents;\n } catch (SQLException ex) {\n logger.log(Level.WARNING, \"Couldn't get all files in FileSystem\", ex);\n return Collections.emptySet();\n }\n }",
"public FileSystemManager getVFS();",
"public Collection<FileSystem> getFileSystem() {\r\n\t\treturn fileSystem;\r\n\t}",
"@Override\n public Collection<FsContent> visit(FileSystem fs) {\n\n SleuthkitCase sc = Case.getCurrentCase().getSleuthkitCase();\n\n String query = \"SELECT * FROM tsk_files WHERE fs_obj_id = \" + fs.getId()\n + \" AND (meta_type = \" + TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_REG.getMetaType()\n + \") AND (size > 0)\";\n try {\n ResultSet rs = sc.runQuery(query);\n List<FsContent> contents = sc.resultSetToFsContents(rs);\n Statement s = rs.getStatement();\n rs.close();\n if (s != null) {\n s.close();\n }\n return contents;\n } catch (SQLException ex) {\n logger.log(Level.WARNING, \"Couldn't get all files in FileSystem\", ex);\n return Collections.emptySet();\n }\n }",
"@Test\n\tpublic void testFileSystemSingleton() {\n\t\ttry {\n\t\t\tFileSystem f1 = FileSystem.getFileSystem();\n\t\t\tFileSystem f2 = FileSystem.getFileSystem();\n\t\t\tassertSame(f1, f2);\n\t\t}\n\t\tcatch (RuntimeException e) {\n\t\t\tfail();\n\t\t}\n\t}",
"public DirectoryChanger(FileSystem<Directory> fileSystem) {\r\n super(false);\r\n this.fileSystem = fileSystem;\r\n this.path = new Path(fileSystem);\r\n }",
"public synchronized long nextFs(){\n\t\treturn fs++;\n\t}",
"public interface FileSystem {\n\n /**\n * Add the specified file system entry (file or directory) to this file system\n *\n * @param entry - the FileSystemEntry to add\n */\n public void add(FileSystemEntry entry);\n\n /**\n * Return the List of FileSystemEntry objects for the files in the specified directory path. If the\n * path does not refer to a valid directory, then an empty List is returned.\n *\n * @param path - the path of the directory whose contents should be returned\n * @return the List of FileSystemEntry objects for all files in the specified directory may be empty\n */\n public List listFiles(String path);\n\n /**\n * Return the List of filenames in the specified directory path. The returned filenames do not\n * include a path. If the path does not refer to a valid directory, then an empty List is\n * returned.\n *\n * @param path - the path of the directory whose contents should be returned\n * @return the List of filenames (not including paths) for all files in the specified directory\n * may be empty\n * @throws AssertionError - if path is null\n */\n public List listNames(String path);\n\n /**\n * Delete the file or directory specified by the path. Return true if the file is successfully\n * deleted, false otherwise. If the path refers to a directory, it must be empty. Return false\n * if the path does not refer to a valid file or directory or if it is a non-empty directory.\n *\n * @param path - the path of the file or directory to delete\n * @return true if the file or directory is successfully deleted\n * @throws AssertionError - if path is null\n */\n public boolean delete(String path);\n\n /**\n * Rename the file or directory. Specify the FROM path and the TO path. Throw an exception if the FROM path or\n * the parent directory of the TO path do not exist; or if the rename fails for another reason.\n *\n * @param fromPath - the source (old) path + filename\n * @param toPath - the target (new) path + filename\n * @throws AssertionError - if fromPath or toPath is null\n * @throws FileSystemException - if the rename fails.\n */\n public void rename(String fromPath, String toPath);\n\n /**\n * Return the formatted directory listing entry for the file represented by the specified FileSystemEntry\n *\n * @param fileSystemEntry - the FileSystemEntry representing the file or directory entry to be formatted\n * @return the the formatted directory listing entry\n */\n public String formatDirectoryListing(FileSystemEntry fileSystemEntry);\n\n //-------------------------------------------------------------------------\n // Path-related Methods\n //-------------------------------------------------------------------------\n\n /**\n * Return true if there exists a file or directory at the specified path\n *\n * @param path - the path\n * @return true if the file/directory exists\n * @throws AssertionError - if path is null\n */\n public boolean exists(String path);\n\n /**\n * Return true if the specified path designates an existing directory, false otherwise\n *\n * @param path - the path\n * @return true if path is a directory, false otherwise\n * @throws AssertionError - if path is null\n */\n public boolean isDirectory(String path);\n\n /**\n * Return true if the specified path designates an existing file, false otherwise\n *\n * @param path - the path\n * @return true if path is a file, false otherwise\n * @throws AssertionError - if path is null\n */\n public boolean isFile(String path);\n\n /**\n * Return true if the specified path designates an absolute file path. What\n * constitutes an absolute path is dependent on the file system implementation.\n *\n * @param path - the path\n * @return true if path is absolute, false otherwise\n * @throws AssertionError - if path is null\n */\n public boolean isAbsolute(String path);\n\n /**\n * Build a path from the two path components. Concatenate path1 and path2. Insert the file system-dependent\n * separator character in between if necessary (i.e., if both are non-empty and path1 does not already\n * end with a separator character AND path2 does not begin with one).\n *\n * @param path1 - the first path component may be null or empty\n * @param path2 - the second path component may be null or empty\n * @return the path resulting from concatenating path1 to path2\n */\n public String path(String path1, String path2);\n\n /**\n * Returns the FileSystemEntry object representing the file system entry at the specified path, or null\n * if the path does not specify an existing file or directory within this file system.\n *\n * @param path - the path of the file or directory within this file system\n * @return the FileSystemEntry containing the information for the file or directory, or else null\n */\n public FileSystemEntry getEntry(String path);\n\n /**\n * Return the parent path of the specified path. If <code>path</code> specifies a filename,\n * then this method returns the path of the directory containing that file. If <code>path</code>\n * specifies a directory, the this method returns its parent directory. If <code>path</code> is\n * empty or does not have a parent component, then return an empty string.\n * <p/>\n * All path separators in the returned path are converted to the system-dependent separator character.\n *\n * @param path - the path\n * @return the parent of the specified path, or null if <code>path</code> has no parent\n * @throws AssertionError - if path is null\n */\n public String getParent(String path);\n\n}",
"public FileSystem getDefaultFileSystem () {\n return system;\n }",
"private FileUtil() {\n \t\tsuper();\n \t}",
"public FileSystem getFileSystem() {\n return installBase.getFileSystem();\n }",
"public FileManager() {\n\t\t\n\t}",
"public final void addFileSystem (FileSystem fs) {\n synchronized (Repository.class) {\n // if the file system is not assigned yet\n if (!fs.assigned && !fileSystems.contains(fs)) {\n // new file system\n fileSystems.add(fs);\n String systemName = fs.getSystemName ();\n\n boolean isReg = names.get (systemName) == null;\n if (isReg && !systemName.equals (\"\")) { // NOI18N\n // file system with the same name is not there => then it is valid\n names.put (systemName, fs);\n fs.setValid (true);\n } else {\n // there is another file system with the same name => it is invalid\n fs.setValid (false);\n }\n // mark the file system as being assigned\n fs.assigned = true;\n // mark as a listener on changes in the file system\n fs.addPropertyChangeListener (propListener);\n fs.addVetoableChangeListener (vetoListener);\n\n // fire info about new file system\n fireFileSystem (fs, true);\n }\n }\n }",
"public FileSystemTokenStore fileSystem() {\n return this.fileSystem;\n }",
"@Nonnull\r\n public VirtualFileSystem getFileSystem() {\r\n return filesystem;\r\n }",
"public Repository (FileSystem def) {\n this.system = def;\n java.net.URL.setURLStreamHandlerFactory(\n new org.openide.execution.NbfsStreamHandlerFactory());\n init ();\n }",
"private FileUtil() {}",
"public interface FileSystemConfig {\n\n}",
"@Before\n public void init(){\n spaceCapacity = 20;\n fileSystem = new FileSystem(spaceCapacity);\n }",
"public interface FileSystemEntry {\n public long getCount();\n public long getSize();\n public String getName();\n}",
"public FileIOManager() {\n\t\tthis.reader = new Reader(this);\n\t\tthis.writer = new Writer(this);\n\t}",
"OutputStream getOutputStream() throws FileSystemException;",
"public FSLockWithShared(File baseFile) {\n file = baseFile;\n }",
"@Override\n public FileSystem getFileSystem(URI uri) {\n return getFS(delegate.getFileSystem(uri));\n }",
"public MantaFileObject(final AbstractFileName name, final MantaFileSystem fs) {\n super(name, fs);\n }",
"protected FileSystem createFileSystem()\n throws SmartFrogException, RemoteException {\n ManagedConfiguration conf = createConfiguration();\n FileSystem fileSystem = DfsUtils.createFileSystem(conf);\n return fileSystem;\n }",
"public String getFileSystemId() {\n return this.fileSystemId;\n }",
"private VersionsCache(FileSystem fileSystem) {\n this.fileSystem = fileSystem;\n }",
"public File getFile ();",
"public HPBFDocument(POIFSFileSystem fs) throws IOException {\n\t this(fs.getRoot());\n\t}",
"public Files files();",
"Directory(FatFileSystem fileSystem, Stream dirStream) {\n this.fileSystem = fileSystem;\n this.dirStream = dirStream;\n loadEntries();\n }",
"@Override\n public void setFile(File f) {\n \n }",
"public Object clone() {\n\t\treturn(new FileSystem(_device, _mount, _type));\n\t}",
"protected DedicatedFile(short fid) \r\n \t //@ requires true;\r\n \t //@ ensures DedicatedFile(fid, null, true, nil, _);\r\n\t{\r\n\t\tsuper(fid);\r\n\t\tparentFile = null;\r\n\t\tsiblings = new File[MAX_SIBLINGS];\r\n\t\tnumber = 0;\r\n\t\t////@ close foreachp(nil, valid_id); // auto\r\n\t\t////@ close DedicatedFile(fid, null, true, nil, _); // auto\r\n\t}",
"private FsAccessOptions() { }",
"@Nonnull\r\n @Override\r\n public FileSystem produce() throws IOException {\r\n return newInstance();\r\n }",
"@Override\n public StorageInputStream open(File file) throws FileNotFoundException {\n\treturn null;\n }",
"private void initializeFileSystem() \r\n \t /*@ requires identityFile |-> _ &*& identityFileSignature |-> _ &*& addressFile |-> _ &*& addressFileSignature |-> _\r\n\t\t\t &*& caRoleIDFile |-> _ &*& preferencesFile |-> _ &*& idDirectory |-> _\r\n\t\t\t &*& certificateDirectoryFile |-> _ &*& privateKeyDirectoryFile |-> _ &*& authenticationObjectDirectoryFile |-> _ &*& objectDirectoryFile |-> _\r\n\t\t\t &*& tokenInfo |-> _ &*& belpicDirectory |-> _ &*& dirFile |-> _\r\n\t\t\t &*& masterFile |-> _ &*& selectedFile |-> _;\r\n\t @*/\r\n \t/*@ ensures dirFile |-> ?theDirFile &*& theDirFile.ElementaryFile(_, _, ?dirFileData, _, _, _) &*& theDirFile != null \r\n \t &*& dirFileData != null &*& dirFileData.length == 0x25\r\n\t &*& belpicDirectory |-> ?theBelpicDirectory &*& theBelpicDirectory.DedicatedFile(_, _, _, ?belpic_siblings, _) &*& theBelpicDirectory != null\r\n\t &*& tokenInfo |-> ?theTokenInfo &*& theTokenInfo.ElementaryFile(_, _, ?tokenInfoData, _, _, _) &*& theTokenInfo != null\r\n\t &*& tokenInfoData != null &*& tokenInfoData.length == 0x30\r\n\t &*& objectDirectoryFile |-> ?theObjectDirectoryFile &*& theObjectDirectoryFile.ElementaryFile(_, _, ?objectDirectoryFileData, _, _, _) &*& theObjectDirectoryFile != null\r\n\t &*& objectDirectoryFileData != null &*& objectDirectoryFileData.length == 40\r\n\t &*& authenticationObjectDirectoryFile |-> ?theAuthenticationObjectDirectoryFile &*& theAuthenticationObjectDirectoryFile.ElementaryFile(_, _, ?authenticationObjectDirectoryFileData, _, _, _) &*& theAuthenticationObjectDirectoryFile != null\r\n\t &*& authenticationObjectDirectoryFileData != null &*& authenticationObjectDirectoryFileData.length == 0x40\r\n\t &*& privateKeyDirectoryFile |-> ?thePrivateKeyDirectoryFile &*& thePrivateKeyDirectoryFile.ElementaryFile(_, _, ?privateKeyDirectoryFileData, _, _, _) &*& thePrivateKeyDirectoryFile != null\r\n\t &*& privateKeyDirectoryFileData != null &*& privateKeyDirectoryFileData.length == 0xB0\r\n\t &*& certificateDirectoryFile |-> ?theCertificateDirectoryFile &*& theCertificateDirectoryFile.ElementaryFile(_, _, ?certificateDirectoryFileData, _, _, _) &*& theCertificateDirectoryFile != null\r\n\t &*& certificateDirectoryFileData != null &*& certificateDirectoryFileData.length == 0xB0\r\n\t &*& idDirectory |-> ?theIdDirectory &*& theIdDirectory.DedicatedFile(_, _, _, ?idDirectory_siblings, _) &*& theIdDirectory != null\r\n\t &*& identityFile |-> ?theIdentityFile &*& theIdentityFile.ElementaryFile(_, _, ?identityData, _, _, _) &*& theIdentityFile != null\r\n\t &*& identityData != null &*& identityData.length == 0xD0\r\n\t &*& identityFileSignature |-> ?theIdentityFileSignature &*& theIdentityFileSignature.ElementaryFile(_, _, ?identitySignatureData, _, _, _) &*& theIdentityFileSignature != null\r\n\t &*& identitySignatureData != null &*& identitySignatureData.length == 0x80\r\n\t &*& addressFile |-> ?theAddressFile &*& theAddressFile.ElementaryFile(_, _, ?addressFileData, _, _, _) &*& theAddressFile != null\r\n\t &*& addressFileData != null &*& addressFileData.length == 117\r\n\t &*& addressFileSignature |-> ?theAddressFileSignature &*& theAddressFileSignature.ElementaryFile(_, _, ?addressFileSignatureData, _, _, _) &*& theAddressFileSignature != null\r\n\t &*& addressFileSignatureData != null &*& addressFileSignatureData.length == 128\r\n\t &*& caRoleIDFile |-> ?theCaRoleIDFile &*& theCaRoleIDFile.ElementaryFile(_, _, ?caRoldIDFileData, _, _, _) &*& theCaRoleIDFile != null\r\n\t &*& caRoldIDFileData != null &*& caRoldIDFileData.length == 0x20\r\n\t &*& preferencesFile |-> ?thePreferencesFile &*& thePreferencesFile.ElementaryFile(_, _, ?preferencesFileData, _, _, _) &*& thePreferencesFile != null\r\n\t &*& preferencesFileData != null &*& preferencesFileData.length == 100\r\n\t &*& masterFile |-> ?theMasterFile &*& theMasterFile.MasterFile(0x3F00, null, _, ?master_siblings, _) &*& theMasterFile != null\r\n\t &*& master_siblings == cons<File>(theDirFile, cons(theBelpicDirectory, cons(theIdDirectory, nil)))\r\n\t &*& belpic_siblings == cons<File>(theTokenInfo, cons(theObjectDirectoryFile, cons(theAuthenticationObjectDirectoryFile, cons(thePrivateKeyDirectoryFile, cons(theCertificateDirectoryFile,nil)))))\r\n\t &*& idDirectory_siblings == cons<File>(theIdentityFile, cons(theIdentityFileSignature, cons(theAddressFile, cons(theAddressFileSignature, cons(theCaRoleIDFile, cons(thePreferencesFile, nil))))))\r\n\t &*& selectedFile |-> theMasterFile &*& theBelpicDirectory.getClass() == DedicatedFile.class &*& theIdDirectory.getClass() == DedicatedFile.class;\r\n\t @*/\r\n\t{\r\n\t\tmasterFile = new MasterFile();\r\n\t\t/*\r\n\t\t * initialize PKCS#15 data structures see\r\n\t\t * \"5. PKCS#15 information details\" for more info\r\n\t\t */\r\n\t\t\r\n\t\t//@ masterFile.castMasterToDedicated();\r\n\t\t\r\n\t\tdirFile = new ElementaryFile(EF_DIR, masterFile, (short) 0x25);\r\n\t\tbelpicDirectory = new DedicatedFile(DF_BELPIC, masterFile);\r\n\t\ttokenInfo = new ElementaryFile(TOKENINFO, belpicDirectory, (short) 0x30);\r\n\t\tobjectDirectoryFile = new ElementaryFile(ODF, belpicDirectory, (short) 40);\r\n\t\tauthenticationObjectDirectoryFile = new ElementaryFile(AODF, belpicDirectory, (short) 0x40);\r\n\t\tprivateKeyDirectoryFile = new ElementaryFile(PRKDF, belpicDirectory, (short) 0xB0);\r\n\t\tcertificateDirectoryFile = new ElementaryFile(CDF, belpicDirectory, (short) 0xB0);\r\n\t\tidDirectory = new DedicatedFile(DF_ID, masterFile);\r\n\t\t/*\r\n\t\t * initialize all citizen data stored on the eID card copied from sample\r\n\t\t * eID card 000-0000861-85\r\n\t\t */\r\n\t\t// initialize ID#RN EF\r\n\t\tidentityFile = new ElementaryFile(IDENTITY, idDirectory, (short) 0xD0);\r\n\t\t// initialize SGN#RN EF\r\n\t\tidentityFileSignature = new ElementaryFile(SGN_IDENTITY, idDirectory, (short) 0x80);\r\n\t\t// initialize ID#Address EF\r\n\t\t// address is 117 bytes, and should be padded with zeros\r\n\t\taddressFile = new ElementaryFile(ADDRESS, idDirectory, (short) 117);\r\n\t\t// initialize SGN#Address EF\r\n\t\taddressFileSignature = new ElementaryFile(SGN_ADDRESS, idDirectory, (short) 128);\r\n\t\t// initialize PuK#7 ID (CA Role ID) EF\r\n\t\tcaRoleIDFile = new ElementaryFile(CA_ROLE_ID, idDirectory, (short) 0x20);\r\n\t\t// initialize Preferences EF to 100 zero bytes\r\n\t\tpreferencesFile = new ElementaryFile(PREFERENCES, idDirectory, (short) 100);\r\n\t\t\r\n\t\tselectedFile = masterFile;\r\n\t\t//@ masterFile.castDedicatedToMaster();\r\n\t}",
"private GraphFileManager() {\n\t}",
"public static FileSystem get() throws IOException {\r\n Configuration hdfsConf = HadoopHelper.getDefaultConf();\r\n return FileSystem.get(hdfsConf);\r\n }",
"@Override\n public FileSystem newFileSystem(URI uri, Map<String, ?> env) throws IOException {\n return getFS(delegate.newFileSystem(uri, env));\n\n }",
"public UnixFakeFileSystem() {\n this.setDirectoryListingFormatter(new UnixDirectoryListingFormatter());\n }",
"private static Enumeration<? extends FileObject> existingFolders(AbstractFileSystem fs) {\n return fs.existingFileObjects(fs.getAbstractRoot());\n }",
"private FileUtility() {\r\n\t}",
"void close() throws FileSystemException;",
"public ExternalFileMgrImpl()\r\n \t{\r\n \t\t\r\n \t}",
"protected FileDescriptor getFileDescriptor() {\n return new FileDescriptor(); // constructor creates invalid fd\n }",
"DiscFileSystemInfo getFileSystemInfo(String path) throws IOException;",
"private void setFile() {\n\t}",
"public UserFileSystemService getUserFileSystemService() {\r\n\t\treturn userFileSystemService;\r\n\t}",
"public Path write(final FileSystem fs, final Path p)\n throws IOException {\n FSUtils.create(fs, p);\n FSDataOutputStream out = fs.create(p);\n try {\n write(out);\n } finally {\n out.close();\n }\n return p;\n }",
"public interface Files \n{\n\t/**\n\t * Enum describing the three file types, internal, external\n\t * and absolut. Internal files are located in the asset directory\n\t * on Android and are relative to the applications root directory\n\t * on the desktop. External files are relative to the SD-card on Android\n\t * and relative to the home directory of the current user on the Desktop.\n\t * Absolut files are just that, absolut files that can point anywhere.\n\t * @author mzechner\n\t *\n\t */\n\tpublic enum FileType\n\t{\n\t\tInternal,\n\t\tExternal,\n\t\tAbsolut\n\t}\n\t\n\tpublic File getlastFile();\n\t\n\t/**\n\t * Returns an InputStream to the given file. If type is equal\n\t * to FileType.Internal an internal file will be opened. On Android\n\t * this is relative to the assets directory, on the desktop it is \n\t * relative to the applications root directory. If type is equal to\n\t * FileType.External an external file will be opened. On Android this\n\t * is relative to the SD-card, on the desktop it is relative to the\n\t * current user's home directory. If type is equal to FileType.Absolut\n\t * the filename is interpreted as an absolut filename. \n\t * \n\t * @param fileName the name of the file to open.\n\t * @param type the type of file to open.\n\t * @return the InputStream or null if the file couldn't be opened.\n\t */\n\t\n\tpublic InputStream readFile( String fileName, FileType type );\t\n\t\n\t/**\n\t * Returns and OutputStream to the given file. If\n\t * the file does not exist it is created. If the file\n\t * exists it will be overwritten. If type is equal\n\t * to FileType.Internal null will be returned as on Android assets can not be written. If type is equal to\n\t * FileType.External an external file will be opened. On Android this\n\t * is relative to the SD-card, on the desktop it is relative to the\n\t * current user's home directory. If type is equal to FileType.Absolut\n\t * the filename is interpreted as an absolut filename.\n\t * \n\t * @param filename the name of the file to open\n\t * @param type the type of the file to open\n\t * @return the OutputStream or null if the file couldn't be opened.\n\t */\n\tpublic OutputStream writeFile( String filename, FileType type );\n\t\t\n\t/**\n\t * Creates a new directory or directory hierarchy on the external\n\t * storage. If the directory parameter contains sub folders and \n\t * the parent folders don't exist yet they will be created. If type is equal\n\t * to FileType.Internal false will be returned as on Android new directories in the asset directory can not be created. If type is equal to\n\t * FileType.External an external directory will be created. On Android this\n\t * is relative to the SD-card, on the desktop it is relative to the\n\t * current user's home directory. If type is equal to FileType.Absolut\n\t * the directory is interpreted as an absolut directory name.\n\t * \n\t * @param directory the directory\n\t * @param type the type of the directory\n\t * @return true in case the directory could be created, false otherwise\n\t */\n\tpublic boolean makeDirectory( String directory, FileType type );\n\t\n\t\n\t/**\n\t * Lists the files and directories in the given directory. If type is equal\n\t * to FileType.Internal an internal directory will be listed. On Android\n\t * this is relative to the assets directory, on the desktop it is \n\t * relative to the applications root directory. If type is equal to\n\t * FileType.External an external directory will be listed. On Android this\n\t * is relative to the SD-card, on the desktop it is relative to the\n\t * current user's home directory. If type is equal to FileType.Absolut\n\t * the filename is interpreted as an absolut directory.\n\t * \n\t * @param directory the directory\n\t * @param type the type of the directory\n\t * @return the files and directories in the given directory or null if the directory is none existant\n\t */\n\tpublic String[] listDirectory( String directory, FileType type );\n\t\n\t\n\t/**\n\t * Returns a {@link FileDescriptor} object for a file. If type is equal\n\t * to FileType.Internal an internal file will be opened. On Android\n\t * this is relative to the assets directory, on the desktop it is \n\t * relative to the applications root directory. If type is equal to\n\t * FileType.External an external file will be opened. On Android this\n\t * is relative to the SD-card, on the desktop it is relative to the\n\t * current user's home directory. If type is equal to FileType.Absolut\n\t * the filename is interpreted as an absolut filename. \n\t * \n\t * @param filename the name of the file\n\t * @param type the type of the file\n\t * @return the FileDescriptor or null if the descriptor could not be created\n\t */\n\tpublic FileHandle getFileHandle( String filename, FileType type );\t\t\n}",
"public String getFileSystemType() {\n return this.fileSystemType;\n }",
"private void fireFileSystem (FileSystem fs, boolean add) {\n Enumeration en = ((Hashtable)listeners.clone ()).elements ();\n RepositoryEvent ev = new RepositoryEvent (this, fs, add);\n while (en.hasMoreElements ()) {\n RepositoryListener list = (RepositoryListener)en.nextElement ();\n if (add) {\n list.fileSystemAdded (ev);\n } else {\n list.fileSystemRemoved (ev);\n }\n }\n }",
"public FileServer(){\n\t\tfilePath = new ConcurrentHashMap<String, String>();\n\t}",
"public File() {\n }",
"public HadoopImageIO(Configuration conf) {\n this.conf = Preconditions.checkNotNull(conf);\n try {\n fs = FileSystem.get(conf);\n } catch (IOException e) {\n log.error(\"Failed to create FS: \" +e, e);\n throw new RuntimeException(e);\n }\n }",
"@Override\n public FSDataOutputStream create(Path f) throws IOException {\n return super.create(f);\n }",
"InputStream getInputStream() throws FileSystemException;",
"public FileServ() {\n\t\tsuper();\n\t}",
"public void testCtor() {\r\n new FileSystemPersistence();\r\n }",
"public RandomAccessFile getFile()\n {\n \treturn f;\n }",
"public Os(String userFileName, String groupFileName)\n {\n fs = new FileSystem(userFileName, groupFileName);\n }",
"public File getFile();",
"public File getFile();",
"@Before\n public void conn() throws Exception {\n conf = new Configuration();\n fs = FileSystem.get(URI.create(\"hdfs://hadoop001:9000\"), conf, \"hadoop\");\n\n //fs = FileSystem.get(conf);\n }",
"public interface FSInterface extends Remote\n{\n\tpublic String browseDirs(String dir) throws RemoteException;\n\tpublic String browseFiles(String dir) throws RemoteException;\n\tpublic String search(String file, String startDir) throws RemoteException;\n\tpublic boolean createFile(String file) throws RemoteException;\n\tpublic boolean createDir(String dir) throws RemoteException;\n\tpublic boolean delete(String file) throws RemoteException;\n\tpublic boolean rename(String oldName, String newName) throws RemoteException;\n\tpublic String getOSName()throws RemoteException;\n\tpublic String getHostName() throws RemoteException;\n\tpublic String getHostAddress() throws RemoteException;\n\tpublic void sendClientAddress(String clientAddress) throws RemoteException;\n\tpublic String getClientAddress() throws RemoteException;\n\tpublic Path [] getFileList() throws RemoteException;\n\t//public String sendClientName(String clientName) throws RemoteException; //ToDo\n\t//public String sendClientOS(String clientOS) throws RemoteException; //ToDo\n}",
"public File getFile()\n {\n return file;\n }",
"public fileServer() {\n }",
"@Suppress\n public void testFileStore () throws Throwable {\n for (final AndroidFileStore store : fs.getAndroidFileStores()) {\n Log.i(getName(), store.toString());\n Log.i(getName(), \" state=\"+store.state());\n Log.i(getName(), \" read-only=\"+store.isReadOnly());\n Log.i(getName(), \" removable=\"+store.isRemovable());\n Log.i(getName(), \" emulated=\"+store.isEmulated());\n Log.i(getName(), \" total-space=\"+store.getTotalSpace());\n Log.i(getName(), \" usable-space=\"+store.getUsableSpace());\n Log.i(getName(), \" unallocated-space=\"+store.getUnallocatedSpace());\n }\n }",
"public interface SimpleFile {// extends IFile { \n /**\n * Open the file\n * @param path path to the file\n * @param readOnly if file is readonly\n * @param noFlush whther synchronous flush is needed\n */\n void open(String path, boolean readOnly, boolean noFlush)throws IOException;\n \n /**\n * Delete file\n * @param path path to the file\n */\n void delete(String path);\n \n boolean isOpened();\n String readString()throws IOException;\n void truncate(int nSize)throws IOException;\n InputStream getInputStream()throws IOException;\n OutputStream getOutStream();\n OutputStream getOutStreamEx(long pos)throws IOException; \n long length();\n \n /**\n * \n * @param path\n * @return\n */\n String getDirPath(String path) throws IOException;\n\n /**\n * @param fromClass\n * @param path\n * @return\n */\n public abstract InputStream getResourceAsStream(Class fromClass, String path);\n \n public abstract void renameOverwrite(String oldName, String newName);\n \n public abstract void copyJarFileToMemory(String strFileName, InputStream jarStream)throws IOException;\n \n void write(long pos, byte[] buf)throws IOException;\n\n /**\n * Read data from the file\n * @param pos offset in the file\n * @param buf array to receive readen data (size is always equal to database page size)\n * @return number of bytes actually readen\n */\n int read(long pos, byte[] buf)throws IOException;\n\n /**\n * Flush all fiels changes to the disk\n */\n void sync()throws IOException;\n\n /**\n * Close file\n */\n void close()throws IOException;\n\n /**\n * Length of the file\n */\n //long length();\n \n}",
"public void setFileSystem(@Nonnull VirtualFileSystem filesystem) {\r\n this.filesystem = filesystem;\r\n }",
"public abstract File mo41087j();",
"public abstract String getFileLocation();",
"public static void checkFileSystemAvailable(final FileSystem fs) throws IOException {\n if (!(fs instanceof DistributedFileSystem)) {\n return;\n }\n IOException exception = null;\n DistributedFileSystem dfs = (DistributedFileSystem) fs;\n try {\n if (dfs.exists(new Path(\"/\"))) {\n return;\n }\n } catch (IOException e) {\n exception = e instanceof RemoteException ? ((RemoteException) e).unwrapRemoteException() : e;\n }\n try {\n fs.close();\n } catch (Exception e) {\n LOG.error(\"file system close failed: \", e);\n }\n throw new IOException(\"File system is not available\", exception);\n }",
"public FileNode() {\n\t}",
"public Reader(FileSystem fs, String dirName, Configuration conf) throws IOException {\n//\t\t\tthis.keySchema = keySchema;\n//\t\t\tthis.valueSchema = valueSchema;\n\t\t\topen(fs, dirName, conf);\n\t\t}",
"public String getFsItemPath() {\n return fsItemPath;\n }",
"public FileObjectFactory() {\n }",
"public FileStorage(File path) {\n dataFolder = path;\n }",
"public abstract File mo41088k();",
"public FileUtility()\n {\n }",
"HFileContext getFileContext();",
"HFileContext getFileContext();",
"@SuppressWarnings(\"unused\")\n private HsmFileSystemInfo() {\n this((String) null);\n }",
"private FileEntry() {\n // intentionally empty\n }",
"public static FileSystem newInstance() throws IOException {\r\n Configuration hdfsConf = HadoopHelper.getDefaultConf();\r\n hdfsConf.setBoolean(\"fs.hdfs.impl.disable.cache\", true);\r\n return FileSystem.newInstance(hdfsConf);\r\n }",
"public FileInfo()\r\n {\r\n hash = new HashInfo();\r\n }",
"public final void removeFileSystem (FileSystem fs) {\n synchronized (Repository.class) {\n if (fs.isDefault()) return;\n if (fileSystems.remove(fs)) {\n // the file system realy was here\n if (fs.isValid ()) {\n // if the file system is valid then is in names hashtable\n names.remove (fs.getSystemName ());\n }\n // in all cases remove it from listeners\n fs.removePropertyChangeListener (propListener);\n fs.removeVetoableChangeListener (vetoListener);\n\n fireFileSystem (fs, false);\n }\n // unassign the file system\n fs.assigned = false;\n }\n }",
"@Override\n public StorageOutputStream create(File file) throws IOException {\n\treturn null;\n }",
"public void setFile(File f) { file = f; }",
"public JGitFileSystemProvider() {\n this(new ConfigProperties(System.getProperties()),\n Executors.newCachedThreadPool(new DescriptiveThreadFactory()));\n }"
] | [
"0.7879463",
"0.7734554",
"0.7231711",
"0.6771599",
"0.6658937",
"0.66517764",
"0.6618137",
"0.6583356",
"0.6547217",
"0.65246123",
"0.6523878",
"0.6438949",
"0.63973534",
"0.63892484",
"0.6377352",
"0.6372007",
"0.6364874",
"0.6343565",
"0.6342002",
"0.6300072",
"0.6244418",
"0.62413454",
"0.6198628",
"0.61975956",
"0.6189948",
"0.61633223",
"0.6132964",
"0.61067146",
"0.6104653",
"0.6100495",
"0.6095605",
"0.60256624",
"0.60045695",
"0.5974319",
"0.5960181",
"0.59548986",
"0.59193265",
"0.59173167",
"0.59007204",
"0.5872068",
"0.5853907",
"0.58510953",
"0.5847848",
"0.5834355",
"0.5825522",
"0.58198404",
"0.5813277",
"0.5810147",
"0.5807931",
"0.5801657",
"0.5801",
"0.5800179",
"0.57978857",
"0.57968265",
"0.5794938",
"0.5787834",
"0.57769644",
"0.5773509",
"0.57600546",
"0.575414",
"0.5752434",
"0.5749001",
"0.57370496",
"0.5727679",
"0.57215285",
"0.569918",
"0.5695346",
"0.56931245",
"0.56924254",
"0.56870186",
"0.568024",
"0.56739956",
"0.56671995",
"0.56671995",
"0.56620485",
"0.5661835",
"0.5656971",
"0.5653512",
"0.56469965",
"0.5644283",
"0.56388086",
"0.56335384",
"0.56311625",
"0.5628814",
"0.56175",
"0.5607274",
"0.56025845",
"0.55971724",
"0.5596631",
"0.5586229",
"0.5585679",
"0.5582682",
"0.5582682",
"0.55814546",
"0.5560288",
"0.5557354",
"0.55477387",
"0.55451405",
"0.55412155",
"0.55390257",
"0.5534288"
] | 0.0 | -1 |
create a dummy node. dummy node has to be a value which is not in LinkedList | private static ListNode removeElements(ListNode head, int val) {
ListNode dummy = new ListNode(0);
dummy.next = head;
ListNode curr = dummy;
// Iterate till current.next is null. Keep checking next with value
while (curr.next != null) {
// next element is a match so skip pointing to next element.
if (curr.next.value == val) {
curr.next = curr.next.next;
} else {
curr = curr.next; // else keep moving ahead.
}
}
return dummy.next;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyLinkedList() {\n dummyHead = new Node();\n size = 0;\n }",
"@Test\r\n public void test_nonEmptyList_newNodePointsToNull()\r\n {\r\n System.out.println(\"> Test5 - test_nonEmptyList_newNodePointsToNull(): new node should point to null\");\r\n int obj = 7;\r\n System.out.print(\"creating a non-empty list with an arbitrary number of nodes...\");\r\n int[] a = {0, 0, 0, 0, 0};\r\n LinkedList instance = new LinkedList(a);\r\n // get to and mark end of list\r\n ListNode current = instance.getHead();\r\n int nodesInList = a.length;\r\n for (int i = 1; i < nodesInList; i++)\r\n current = current.getLink();\r\n System.out.println(\"inserting a new node at end of non-empty list...\");\r\n instance.addLast(obj);\r\n // test node insertion\r\n assertNull(\"new node does not point to null\", current.getLink().getLink());\r\n System.out.println(\"As expected, new node points to null\");\r\n }",
"public MyLinkedList() {\n this.size = 0;\n this.head = new ListNode(0);\n }",
"@Test\r\n public void test_emptyList_newNodePointsToNull()\r\n {\r\n System.out.println(\"> Test2 - test_emptyList_newNodePointsToNull(): new node should point to null\");\r\n int obj = 7;\r\n System.out.print(\"creating an empty list...\");\r\n LinkedList instance = new LinkedList();\r\n System.out.println(\"inserting a new node at end of empty list...\");\r\n instance.addLast(obj);\r\n // test node insertion\r\n assertNull(\"new node does not point to null\", instance.getHead().getLink());\r\n System.out.println(\"As expected, new node successfully points to null\");\r\n }",
"public SkipListNode() {\n\t// construct a dummy node\n\tdata = null;\n\tnext = new ArrayList<SkipListNode<K>>();\n\tnext.add(null);\n }",
"public static LinkedList createEmpty(){\n return new LinkedList();\n }",
"@Test\r\n public void test_nonEmptyList_newValueInsertedInNode()\r\n {\r\n System.out.println(\"> Test6 - test_nonEmptyList_newValueInsertedInNode(): new data value should be in new node\");\r\n int obj = 7;\r\n System.out.print(\"creating a non-empty list with an arbitrary number of nodes...\");\r\n int[] a = {0, 0, 0, 0, 0};\r\n LinkedList instance = new LinkedList(a);\r\n // get to and mark end of list\r\n ListNode current = instance.getHead();\r\n int nodesInList = a.length;\r\n for (int i = 1; i < nodesInList; i++)\r\n current = current.getLink();\r\n System.out.println(\"inserting a new node at end of non-empty list...\");\r\n instance.addLast(obj);\r\n // test node insertion\r\n assertEquals(\"new data value not found in new node\", current.getLink().getData(), obj);\r\n System.out.println(\"As expected, new data value successfully inserted in new node\");\r\n }",
"public LinkedList(){\n this.head = null;\n this.numNodes = 0;\n }",
"@Test\r\n public void test_emptyList_newValueInsertedInNode()\r\n {\r\n System.out.println(\"> Test3 - test_emptyList_newValueInsertedInNode(): new data value should be in new node\");\r\n int obj = 7;\r\n System.out.print(\"creating an empty list...\");\r\n LinkedList instance = new LinkedList();\r\n System.out.println(\"inserting a new node at end of empty list...\");\r\n instance.addLast(obj);\r\n // test node insertion\r\n assertEquals(\"new data value not found in new node\", instance.getHead().getData(), obj);\r\n System.out.println(\"As expected, new data successfully stored in new node\");\r\n }",
"private static ListNode initializeListNode() {\n\n\t\tRandom rand = new Random();\n\t\tListNode result = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\tresult.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\treturn result;\n\t}",
"private BlankNode createOwnBlankNode(final String name, final String uuid) {\n return new BlankNode() {\n @Override\n public String ntriplesString() {\n return \"_: \" + name;\n }\n\n @Override\n public String uniqueReference() {\n return uuid;\n }\n\n @Override\n public int hashCode() {\n return uuid.hashCode();\n }\n\n @Override\n public boolean equals(final Object obj) {\n if (!(obj instanceof BlankNode)) {\n return false;\n }\n final BlankNode other = (BlankNode) obj;\n return uuid.equals(other.uniqueReference());\n }\n };\n }",
"public MyLinkedList()\n {\n head = new Node(null, null, tail);\n tail = new Node(null, head, null);\n }",
"public MyLinkedList() {\n first = null;\n n = 0;\n }",
"public CLinkedList() {\n \tthis.sentinel = new Node();\n \tthis.sentinel.succ = sentinel;\n \tthis.sentinel.pred = sentinel;\n \tthis.size = 0;\n }",
"Node(T val) {\n this.val = val;\n this.next = null;\n }",
"public WordLinkedList() {\r\n\r\n head = new Node(null, null);\r\n listSize = 0;\r\n //constructor for a dummy node with nothing in the linked list\r\n\r\n }",
"public void addAtStart(T value) {\n Node<T> newNode = new Node<>();\n newNode.data = value;\n newNode.next = head;\n head = newNode;\n }",
"public LinkedList()\n\t{\n\t\tthis.head = new Node(null);\n\t\tsize = 0;\n\t}",
"public LinkedListDemo() {\n\t\tlength = 0;\n\t\thead = new ListNode();\n\t\n\t}",
"private static Node createNode(int value) {\n\t\treturn new Node(value);\n\t}",
"Node(int x) {\n this.data = x;\n this.next = null;\n }",
"public MyLinkedList() {\r\n // when the linked list is created head will refer to null\r\n head = null;\r\n }",
"@Test\n public void testList() {\n SLNode one = new SLNode(1, null);\n SLNode twoOne = new SLNode(2, one);\n SLNode threeTwoOne = new SLNode(3, twoOne);\n\n SLNode x = SLNode.of(3, 2, 1);\n assertEquals(threeTwoOne, x);\n }",
"public Node()\n\t{\n\t\t\n\t\tdata = new IntData();\n\t\tdata.setData(Integer.MIN_VALUE);\n\t\tnext=null;\n\t}",
"public MySinglyLinkedList() { }",
"public Node createNode(int value) {\r\n\t\treturn new Node(value, null, null);\r\n\t}",
"public Node(T value) {\n\t\t\tthis.value = value; // initializing\n\t\t\tnext = null;\n\t\t}",
"public LinkedList () {\n\t\tMemoryBlock dummy;\n\t\tdummy = new MemoryBlock(0,0);\n\t\ttail = new Node(dummy);\n\t\tdummy = new MemoryBlock(0,0);\n\t\thead = new Node(dummy);\n\t\ttail.next = head;\n\t\thead.previous = tail;\n\t\tsize = 2;\n\t}",
"private Node createNullLeaf(Node parent) {\n Node leaf = new Node();\n leaf.color = Color.BLACK;\n leaf.isNull = true;\n leaf.parent = parent;\n leaf.count = Integer.MAX_VALUE;\n leaf.ID = Integer.MAX_VALUE;\n return leaf;\n }",
"private void createNodes() {\n head = new ListNode(30);\n ListNode l2 = new ListNode(40);\n ListNode l3 = new ListNode(50);\n head.next = l2;\n l2.next = l3;\n }",
"public MyLinkedList() \n\t{\n\t\t\n\t}",
"public LinkedList() {\n\t\titems = lastNode = new DblListnode<E>(null);\n\t\tnumItems=0;\n\t}",
"public MyLinkedList() {\n length = 0;\n }",
"public LinkedList() {\n\t\tfirst = null;\n\t}",
"public linkedList() { // constructs an initially empty list\r\n\r\n }",
"Node(Object newItem){\n item = newItem; //--points to a different\n next = null;\n }",
"public Node()\r\n\t{\r\n\t\tnext = null;\r\n\t\tinfo = 0;\r\n\t}",
"public Node()\r\n {\r\n initialize(null);\r\n lbl = id;\r\n }",
"public LinkedList() {\n head = null;\n numElement = 0;\n }",
"public LL() {\n head = null;\n }",
"SkipList()\r\n {\r\n head = new Node<T>(1); //Create a new head of our skip list and give it height 1.\r\n }",
"public LinkedNode() {\n\t myNextNode = null;\n }",
"public LinkedList() {\n\t\thead = new Node(null, null);\n\t\tsize = 0;\n\t\titerator = null;\n\t}",
"public IntLinkedList() {\r\n\t\tsentinel = new Node();\r\n\t\tsentinel.next = sentinel;\r\n\t\tsentinel.previous = sentinel;\r\n\t}",
"public Node (Object newItem) {\n next = null; // set intially to null\n item = newItem;\n }",
"public ListNode() {\n\t\tthis(0, null);\n\t}",
"public static void main(String[] args) {\n\t\tNode n = new Node(0);\r\n\t\tNode dummy = n;\r\n\t\tn.next = new Node(1);\r\n\t\tn = n.next;\r\n\t\tn.next = new Node(1);\r\n\t\tn = n.next;\r\n\t\tfor (int i = 1; i < 10; i ++) {\r\n\t\t\tn.next = new Node(i);\r\n\t\t\tn = n.next;\r\n\t\t}\r\n\t\tremoveDuplicate(dummy);\r\n\t\twhile(dummy != null) {\r\n\t\t\tSystem.out.println(dummy.val);\r\n\t\t\tdummy = dummy.next;\r\n\t\t}\r\n\t\t\r\n\t}",
"public MyLinkedList() {\n size = 0;\n head = null;\n tail = null;\n }",
"private BTNode createNode() {\n BTNode btNode;\n btNode = new <DataPair>BTNode ();\n btNode.mIsLeaf = true;\n btNode.mCurrentKeyNum = 0;\n return btNode;\n }",
"public Node(int value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t\tthis.next = null;\n\t\t}",
"public void addAtStart(int item) {\n\t\tCLL_LinkNode new_node = new CLL_LinkNode(item);\n\t\tif (this.length == 0) {\n\t\t\tthis.headNode = new_node;\n\t\t\tthis.headNode.setNext(this.headNode);\n\t\t} else {\n\t\t\tCLL_LinkNode temp_node = this.headNode;\n\t\t\twhile (temp_node.getNext() != this.headNode)\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\ttemp_node.setNext(new_node);\n\t\t\tnew_node.setNext(headNode);\n\t\t\tthis.headNode = new_node;\n\t\t}\n\t\tthis.length++;\n\t}",
"public listNode(String val) {\n\t\t\tdata= val;\n\t\t\tnext= null;\n\t\t\tprevious= null;\n\t\t}",
"public SentinelSLinkedList(T value) {\r\n\t\tthis.head = new SNode<T>();\r\n\t\tthis.tail = new SNode<T>();\r\n\t\tthis.getHead().setPrev(new SNode<T>(value, this.tail));;\r\n\t\tthis.size++;\r\n\t}",
"public Node insertStart(int val) {\n // create a new node with the help of Node class\n Node newNode = new Node(val);\n // condition 1: Head==null(no node) or atleast 1 node\n newNode.next = head;\n head = newNode;\n\n return head;\n\n }",
"private BNode generateBlankNodeTermType(TermMap termMap, String value) {\n \t\tif (value == null)\n \t\t\treturn vf.createBNode();\n \t\telse\n \t\t\treturn vf.createBNode(value);\n \t}",
"DListNode() {\n item[0] = 0;\n item[1] = 0;\n item[2] = 0;\n prev = null;\n next = null;\n }",
"public LinkedListStructureofaSinglyLinkedListClass() {\n\t\theadNode=null;\n\t\tsize=0;\n\t\t\n\t}",
"public DoublyLinkedNode(T val) {\n value = val;\n previous = null;\n next = null;\n }",
"public HLinkedList(HTreeNode head) {\r\n \r\n this.head = head;\r\n if (head != null) {\r\n //a list with a null head still has length zero\r\n length += 1;\r\n }\r\n }",
"public LinkedList()\n { \n first = null;\n \n }",
"public Node() {}",
"public Node() {}",
"public Node() {}",
"public Node() {}",
"public MyLinkedList() {\n \thead = null;\n \ttail = null;\n }",
"public ListNode(Object d) {\n\t\tdata = d;\n\t\tnext = null;\n\t}",
"public LinkedList()\n\t{\n\t\thead = null;\n\t}",
"public LinkedList () {\n\t\thead = null;\n\t\tcount = 0;\n\t}",
"public EventNode getDummyInitialNode() {\n return dummyInitialNode;\n }",
"private void seed(List<T> items){\n for(T item: items) {\n Node<T> newNode = new Node<T>(item);\n this.count++;\n if(this.root == null){\n this.root = newNode;\n } else {\n Node temp = this.root;\n newNode.next = temp;\n this.root = newNode;\n }\n }\n\n }",
"public DoublyLinkedList() \r\n {\r\n sentinel = new Node<T>(null,null,null);\r\n sentinel.next = sentinel.prev = sentinel;\r\n size = 0;\r\n }",
"public SinglyLinkedList(){\n this.first = null;\n }",
"public Node<T> addFirst(T t) { \r\n Node<T> currFirst = sentinel.next;\r\n Node<T> newNode = new Node<T>(t, sentinel, currFirst);\r\n sentinel.next = newNode;\r\n currFirst.prev = newNode;\r\n size++;\r\n return newNode; \r\n }",
"public Node(String val, Node n)\n {\n value = val;\n next = n;\n }",
"public LinkedList(){\n size=0;\n }",
"public LinkedList(){\n this.size = 0;\n first = null;\n last = null;\n }",
"public Node(T value) \n\t\t//PRE: T is initialized\n\t\t//POST: A node is created with value T \n\t\t{\n\t\t\tthis.value = value;\t\n\t\t\tnext = null;\n\t\t\tisCurrent = false;\n\t\t}",
"static Node newNode(int item) {\n Node temp = new Node();\n temp.key = item;\n temp.left = temp.right = null;\n return temp;\n }",
"public GenLinkedList() {\r\n\t\thead = curr = prev = null;\r\n\t}",
"public ListADTImpl() {\r\n head = new GenericEmptyNode();\r\n }",
"public static Node copyRandomList(Node head) {\n\t \n\t Node root = head;\n\t Map<Node, Node> map = new HashMap<>();\n\t \n\t\twhile( root != null ){\n\t\t\tNode newNode = new Node(root.val);\n\t\t\tmap.put( root, newNode );\n\t\t\troot = root.next;\n\t\t}\n\t \n\t\troot = head;\n\t\tNode node = new Node(0);\n\t\tNode ref = node;\n\n\t\tnode.next = ( root != null ) ? map.get( root ) : null;;\n\t\tnode = node.next;\n\t\twhile( root != null ){\n\n\t\t\tNode n1 = ( root.next != null ) ? map.get( root.next ) : null;\n\t\t\tNode n2 = ( root.random != null ) ? map.get( root.random ) : null;\n\t\t\n\t\t\tnode.next = n1;\n\t\t\tnode.random = n2;\n\t\t\n\t\t\troot = root.next;\n\t\t\tnode = node.next;\n\t\t}\n\t\t\n\t\treturn ref.next;\n\t}",
"public LinkedListGeneric() {\n head = null;\n }",
"Node (int data) {\n this.value = data;\n this.next = null;\n }",
"public PersistentLinkedList(int powerOfBranchingFactor) {\n int branchingFactor = 1;\n for (int i = 0; i < powerOfBranchingFactor; i++) {\n branchingFactor *= 2;\n }\n\n this.branchingFactor = branchingFactor;\n this.root = new Node<>(branchingFactor);\n this.depth = 1;\n this.base = 1;\n this.treeSize = 0;\n this.indexCorrespondingToTheFirstElement = 0;\n this.indexCorrespondingToTheLatestElement = 0;\n }",
"public void addFirst(String val)\n {\n ListNode newNode = new ListNode();\n newNode.setData(val);\n newNode.setNext(head);\n head = newNode;\n if (tail == null)\n {\n tail = head;\n }\n size++;\n }",
"Node(int value, String name) {\n this.value = value;\n this.name = name;\n }",
"public void testEmptyList() {\n SortedLinkedList s = new SortedLinkedList();\n assertEquals(s.getName(0), null);\n assertEquals(s.getQuantity(0), -1);\n assertEquals(s.length(), 0);\n assertTrue(s.isMember(null)); \n }",
"public BTNode(int value){ \r\n node = value; \r\n leftleaf = null;\r\n rightleaf = null;\r\n }",
"public CustomSinglyLinkedList()\n {\n head = null;\n tail = head;\n size = 0;\n }",
"public LinkedListInt() {\nhead = null;\nsize = 0;\n}",
"public BinaryTreeByLinkedList() {\n\t\tthis.root = null;\n\t}",
"public Node()\n\t{\n\t\toriginalValue = sumValue = 0;\n\t\tparent = -1;\n\t}",
"public void addToNoCycle(T value) {\n Node<T> tmp = lastNode;\n Node<T> node = new Node<>(value, null);\n lastNode = node;\n if (tmp == null) {\n firstNode = node;\n } else {\n tmp.next = null;\n }\n size++;\n\n }",
"public LinkedList() {\n\t\thead = null;\n\t\tsize = 0;\n\t}",
"static Node newNode(int key) {\n\t\tNode temp = new Node();\n\t\ttemp.data = key;\n\t\ttemp.next = null;\n\t\treturn temp;\n\t}",
"public TreeNode build(LinkedList<String> l){\n String s = l.removeFirst();\n //Strings use equals() to compare value, \n //the \"==\" compares the adress that variable points to\n if(s.equals(\"null\")){\n return null;\n }\n else{\n //Integer.parseInt(String s) returns int, \n //Integer.valueOf(String s) returns Integer\n TreeNode node = new TreeNode(Integer.parseInt(s));\n node.left = build(l);\n node.right = build(l);\n return node;\n }\n }",
"public Node() {\n pNext = null;\n }",
"public UserDefLinkedList(Student student) {\n head = new Node();\n head.setStudent(student);\n head.setLink(null);\n }",
"public SinglyLinkedList() {\n this.head = null; \n }",
"void nodeCreate( long id );",
"public LinkedList() {\n this.head = null;\n this.tail = null;\n }"
] | [
"0.7305463",
"0.6805352",
"0.6778334",
"0.6656765",
"0.66318464",
"0.66246814",
"0.6606725",
"0.6553728",
"0.6534723",
"0.64992553",
"0.6473647",
"0.64441156",
"0.6439323",
"0.64123464",
"0.6360331",
"0.63599765",
"0.6353638",
"0.6321078",
"0.631152",
"0.6290188",
"0.626834",
"0.6261351",
"0.6251092",
"0.62437487",
"0.62217575",
"0.6200626",
"0.61997646",
"0.6188978",
"0.6187888",
"0.6164158",
"0.6152414",
"0.6150939",
"0.61500996",
"0.61432034",
"0.6141715",
"0.6137887",
"0.61372614",
"0.6121426",
"0.61202884",
"0.6117266",
"0.61165386",
"0.6112565",
"0.6111127",
"0.61039114",
"0.6092015",
"0.6092006",
"0.6091139",
"0.60823256",
"0.60769457",
"0.6072148",
"0.60670006",
"0.60578233",
"0.6056733",
"0.6046381",
"0.60459244",
"0.6043597",
"0.60383296",
"0.6035345",
"0.603515",
"0.60160226",
"0.60057324",
"0.60057324",
"0.60057324",
"0.60057324",
"0.6003088",
"0.60023457",
"0.59975475",
"0.5994102",
"0.5990685",
"0.59839153",
"0.598308",
"0.5982789",
"0.5981092",
"0.5968647",
"0.596841",
"0.5964001",
"0.59627634",
"0.5956385",
"0.5952284",
"0.59364355",
"0.5930784",
"0.59153247",
"0.59078145",
"0.5904718",
"0.5904203",
"0.5903615",
"0.59031045",
"0.59025925",
"0.59023696",
"0.5896238",
"0.58958066",
"0.5891944",
"0.5888812",
"0.58821064",
"0.588192",
"0.5880875",
"0.58780783",
"0.58715713",
"0.5864135",
"0.58632225",
"0.5861569"
] | 0.0 | -1 |
Constructor for objects of class ArrayListNotes | public ArrayListNotes()
{
// initialise instance variables
//x = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Notes() {}",
"public Notes() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Notes() {\n initComponents();\n subjectText = new String ();\n noteText = new String();\n count = 0;\n ArrayMath = new Array[100];\n \n \n }",
"public MusicModel() {\n this.notes = new ArrayList<NoteColumn>();\n }",
"public Note() {\n }",
"public TodoList() {\n todoItems = new ArrayList<TodoItem>();// declares and assigns todoItems to the todo list\n }",
"public Note() {\n\t\tsuper();\n\t}",
"public MusicScore ()\n {\n score = new ArrayList<Note>();\n }",
"private ModelImpl(int tempo, List<Note> notes) {\n if (tempo < 50000 || tempo > 250000) {\n throw new IllegalArgumentException(\"Invalid tempo.\");\n }\n if (notes.isEmpty()) {\n throw new IllegalArgumentException(\"This shouldn't happen.\");\n }\n this.tempo = tempo;\n this.currentMeasure = DEFAULT_START;\n this.status = Status.Playing;\n this.low = new Note(1, 8, 0, Note.Pitches.C, true, 0, 1);\n this.high = new Note(1, 0, 0, Note.Pitches.A, true, 0, 1);\n this.sheet = new ArrayList<Set<Note>>();\n this.addAll(notes);\n }",
"public Note(long dateTime, String title, String content) {\n this.mDateTime = dateTime;\n this.mTitle = title;\n this.mContent = content;\n //creating a constructor which initializes the instances of the variables created above\n }",
"public ArrayList() {\n\t\tthis(10, 75);\n\t}",
"public void setNotes(ArrayList<Note> notes) {\n\t\tif (null == notes || notes.size() == 0)\n\t\t\tthrow new NullPointerException();\n\t\t\n\t\tnotelist = notes;\n\t\t\n\t\tif (notelist.size() > 1)\n\t\t\ttype = TYPE_CHORD;\n\t\telse if (REST != notelist.get(0).getPitch())\n\t\t\ttype = TYPE_SINGLE_NOTE;\n\t\telse if (REST == notelist.get(0).getPitch())\n\t\t\ttype = TYPE_REST;\n\t\t\n\t}",
"public SimpleNotepad() {\n int defaultSize = 20;\n _notes = new Note[defaultSize];\n }",
"public Note() {\n //uig = new UniqueIdGenerator();\n noteId = UUIDGenerator.getUUID();\n created_on = new Date();\n }",
"public WordList() {\t\t//Default constructor\n\t}",
"public TranscribedNote()\r\n {\r\n\r\n }",
"@SuppressWarnings(\"unchecked\")\r\n \tpublic List() {\r\n \t\titems = (T[]) new Object[INIT_LEN];\r\n \t\tnumItems = 0;\r\n \t\tcurrentObject = 0;\r\n \t}",
"MotifLearner(){\n notes = new ArrayList<>();\n times = new ArrayList<>();\n }",
"public BookList(ObservableList<Book> oList){\r\n //Instantiate the bookList attribute\r\n bookList = new ArrayList<Book>();\r\n //if the parameter oList is not null, then loop through it and create a new Book object from each element,\r\n //using the getters. The enhanced for-loop works great here See Chapter 7.13. Add the new Book to the attribute\r\n //called bookList\r\n if(oList != null){\r\n for(Book bk: oList){\r\n bookList.add(new Book(bk.getTitle(), bk.getPrice()));\r\n }\r\n }\r\n\r\n }",
"public NoteDataObject(String noteTitle, TextView noteContent){\n this.title = noteTitle;\n this.content = noteContent;\n }",
"public void initData() {\n\t\tnotes = new ArrayList<>();\n\t\t//place to read notes e.g from file\n\t}",
"List<Note> list();",
"public ArrayList<String> getNotes() {\n return notes;\n }",
"public ArrayList() {\n arr = (T[]) new Object[10];\n size = 0;\n }",
"public AList() {\n items = (TypeHere[]) new Object[100];\n size = 0;\n }",
"public void setAnalyticalNotes(java.util.List analyticalNotes);",
"public Lista() {\r\n }",
"public List()\n\t{\n\t\tthis(null, null);\n\t}",
"public MyArrayList() {\n\t\tthis(EXTRA_SPACE);\n\t}",
"public Session(){\n\t\tallToDoLists = new ArrayList<ObjectListElement>();\n\t\tallNotes = new ArrayList<ObjectListElement>();\n\t}",
"public AList() {\n size = 0;\n items = (Item[]) new Object[100];\n }",
"public AList() {\n size = 0;\n items = (Item[]) new Object[100];\n }",
"public ListElement()\n\t{\n\t\tthis(null, null, null); //invokes constructor with 3 arguments\n\t}",
"public List<Note> getNotes(){\n return notes;\n }",
"public NumericObjectArrayList() {\r\n list = new Copiable[10];\r\n count = 0;\r\n }",
"public ListTemplate() {\n }",
"ArrayList<INote> getNotesAt(int beatNum);",
"public NoteViewModel(@NonNull Application application) {\n super(application);\n repository = new NoteRepository(application); // constructor - creates a new instance of repository that takes the application\n allNotes = repository.getAllNotes();\n }",
"public JSmartList()\n {\n }",
"@SuppressWarnings(\"unused\")\n public static NoteListFragment create(List<NoteRef> notes, Notebook notebook) {\n NoteListFragment fragment = new NoteListFragment();\n Bundle args = new Bundle();\n ParcelableUtil.putParcelableList(args, notes, KEY_NOTE_LIST);\n args.putInt(ARG_COLUMN_COUNT, notes.size());\n args.putSerializable(KEY_NOTEBOOK, notebook);\n fragment.setArguments(args);\n return fragment;\n }",
"public DetailItemAdapter(ArrayList<DetailItem> tags) {\n mTags = tags;\n }",
"public MyArrayList() {\n this(DEFAULT_CAP);\n }",
"private Lists() { }",
"public ListItems() {\n itemList = new ArrayList();\n }",
"public Note(){\n\t\t; //initDisplay(0);\n\t}",
"public void setNotes(String notes) {\n\tthis.notes = notes;\n}",
"public NoteListFragment() {\n }",
"public interface AdapterNotesListCoordinator {\n void setNewNotesList(List<Note> newNotes);\n\n void replaceNotes(int fromInc, List<Note> newNotes);\n\n List<Note> getListOfNotes();\n\n List<Note> getListOfNotes(int from, int count);\n\n List<Note> getListOfHighlightedNotes();\n\n Note getNoteAt(int index);\n\n int getIndexOfNote(Note note);\n\n boolean addNote(Note note);\n\n boolean addNote(Note note, int index);\n\n boolean addNotes(List<Note> newNotes);\n\n boolean addNoteToHighlighted(Note note);\n\n void addAllNotesToHighlighted();\n\n boolean removeNote(Note note);\n\n boolean removeNotes(List<Note> _notes);\n\n boolean removeNotes(int fromIncl, int toExcl);\n\n @SuppressWarnings(\"unused\")\n boolean removeHighlightedNotes();\n\n void removeNoteFromHighlighted(Note note);\n\n void removeAllNotesFromHighlighted();\n\n boolean updateNote(Note old, Note new_);\n\n boolean setNoteAt(int index, Note note);\n\n void swapNotesAt(int indexOfFirst, int indexOfSecond);\n\n @SuppressWarnings(\"unused\")\n Note getNoteWithIdOrDefault(int id, Note _default);\n\n boolean isNoteHighlighted(Note note);\n\n boolean containsHighlightedNotes();\n\n int getHighlightedCount();\n\n int getNoteCount();\n}",
"public Collection()\n {\n // initialisation des variables d'instance\n documents = new ArrayList<>();\n }",
"public Note(String title, String text, Date date){\n this.title=title;\n this.text=text;\n this.date=date;\n }",
"public GenericTextHelper() {\n\t\tcontentList = new ArrayList<GenericTextModel>();\n\n\t}",
"public ListReferenceBased() {\r\n\t numItems = 0; // declares numItems is 0\r\n\t head = null; // declares head is null\r\n }",
"public RulesBook() {\n this(new ArrayList<>());\n }",
"public OrderedArrayList()\n {\n\t_data = new ArrayList<Comparable>();\n }",
"public void setNotes(String notes) {\n this.notes = notes;\n }",
"public Piano(int numNotes){\n pStrings = new InstString[numNotes][3];\n for(int a = 0; a < numNotes; a++){\n double freq = 440 * Math.pow(2, (double)(a-24)/(double)12);\n pStrings[a][0] = new GuitarString(freq);\n pStrings[a][1] = new GuitarString(freq + .45);\n pStrings[a][2] = new GuitarString(freq - .45);\n }\n }",
"@SuppressWarnings(\"unchecked\")\n public ArrayList() {\n list = (E[])new Object[DEFAULT_CAP];\n capacity = 10;\n size = 0;\n }",
"public SongSublist(ArrayList<SongEntry> orig)\n {\n duration = 0;\n originalObjects = orig;\n subs = new ArrayList<SongEntry>();\n }",
"public PlayMusic(ArrayList<Note> Notes, boolean Written)\n {\n notes = Notes;\n written = Written;\n threads = new ArrayList<thread>();\n }",
"protected JMLObjectSet (/*@ nullable @*/ JMLListObjectNode<E> ls) {\n this(ls, (ls == null) ? 0 : ls.int_size()); \n }",
"public AudioList(){}",
"public Todoist()\n {\n tareas = new ArrayList<String>();\n }",
"public Todoist()\n {\n tareas = new ArrayList<String>();\n }",
"public Adapter(ArrayList <HistoryModel> listOfModels) {\n this.listOfModels = listOfModels;\n }",
"public ArrayList() {\n\t\tthis.elements = new Object[5];\n\t\tthis.last = -1;\n\t}",
"public WordAdapter(Activity context, ArrayList<Word> numbers, int resourceId)\n {\n //calls constructor of superclass with a 0 because the views\n // will be manually inflated\n super(context, 0, numbers);\n mResourceID = resourceId;\n }",
"TDrawingConstructor (ArrayList interpretation){\r\n fInterpretation=interpretation;\r\n}",
"public TiraList() {\n this.list = new Object[8];\n this.nextindex = 0;\n this.startIndex = 0;\n }",
"public List()\n {\n list = new Object [10];\n }",
"public MyArrayList() {\n mMyArray = new Comparable[10];\n size = 10;\n head = tail = size / 3;\n }",
"public ContactList()\n {\n myList = new ArrayList<>();\n }",
"public void setNotes(String notes);",
"public NumberedList()\n {\n _init=1;\n }",
"private void initAttributes() {\n\t\tnoteTypeList = (DragNDropListView) mLayout\n\t\t\t\t.findViewById(R.id.note_sort_list_view);\n\t\tArrayList<String> content = new ArrayList<String>(mListContent.length);\n\t\tTextView userName = (TextView) mLayout\n\t\t\t\t.findViewById(R.id.note_sort_user_name_textview);\n\t\tuserName.setText(AtlasAndroidUser.getUserNameDisplay());\n\n\t\tint arrSize = mListContent.length;\n\t\tfor (int j = 0; j < arrSize; j++) {\n\t\t\tswitch (ATLNoteSortSingleTon.sortIndex[j]) {\n\t\t\tcase ATLNoteCellData.NOTE_SORT_STARRED:\n\t\t\t\tcontent.add(NOTE_SORT_STARRED_STRING);\n\t\t\t\tbreak;\n\t\t\tcase ATLNoteCellData.NOTE_SORT_DATECREATED:\n\t\t\t\tcontent.add(NOTE_SORT_DATECREATED_STRING);\n\t\t\t\tbreak;\n\t\t\tcase ATLNoteCellData.NOTE_SORT_LASTMODIFIED:\n\t\t\t\tcontent.add(NOTE_SORT_LASTMODIFIED_STRING);\n\t\t\t\tbreak;\n\t\t\tcase ATLNoteCellData.NOTE_SORT_SHARED:\n\t\t\t\tcontent.add(NOTE_SORT_SHARED_STRING);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\t// for (int i = 0; i < mListContent.length; i++) {\n\t\t// content.add(mListContent[i]);\n\t\t// }\n\t\tadapter = new DragNDropAdapter(noteActivity,\n\t\t\t\tnew int[] { R.layout.dragitem }, new int[] { R.id.TextView01 },\n\t\t\t\tcontent);\n\t\tnoteTypeList.setAdapter(adapter);// new DragNDropAdapter(this,content)\n\n\t\tif (noteTypeList instanceof DragNDropListView) {\n\t\t\t((DragNDropListView) noteTypeList).setDropListener(mDropListener);\n\t\t\t((DragNDropListView) noteTypeList)\n\t\t\t\t\t.setRemoveListener(mRemoveListener);\n\t\t\t((DragNDropListView) noteTypeList).setDragListener(mDragListener);\n\t\t}\n\t}",
"public OrderedArrayList()\n {\n _data = new ArrayList<Comparable>();\n }",
"public ListViewAdapter(List<SongModel> songs) {\n this.list = songs;\n }",
"public MusicModel(int tempo) {\n this.notes = new HashMap<>();\n this.tempo = tempo;\n }",
"public DLList() {\r\n init();\r\n }",
"public WordList() {\n\t\twordList = new ArrayList<>();\n\t\t// TODO Add your code here\n\t}",
"public CirArrayList() {\n // todo: default constructor\n head = tail = curSize = 0;\n data = (E[])new Object[10];\n }",
"public void setNotes(String notes) {\n\t\tthis.notes = notes;\r\n\t}",
"public MultiList(){}",
"public LaPatilla()\n\t{\n\t\tsuper(TAG_ITEM_ITEMS,\n\t\t\t\tnew int[]{TAG_TITLE},\n\t\t\t\tnew int[]{TAG_LINK},\n\t\t\t\tnew int[]{TAG_DESCRIPTION},\n\t\t\t\tnew int[]{TAG_CONTENT_ENCODED},\n\t\t\t\tnew int[]{TAG_PUBDATE},\n\t\t\t\tnew int[]{TAG_CATEGORY},\n\t\t\t\tnew int[]{},\n\t\t\t\t\"\");\n\t}",
"public ToDo(String title, String description, double price, String contact,\n ArrayList<String> supplies) {\n this.title = title;\n this.description = description;\n this.price = price;\n this.contact = contact;\n this.supplies = supplies;\n }",
"public ToDoList2AL()\n {\n\tcompleted = new ArrayList<Task>();\n\ttoDo = new ArrayList<Task>();\n }",
"public ContactList(String inFileName)\n {\n filename = inFileName;\n }",
"public void setNotes(java.lang.String notes) {\n this.notes = notes;\n }",
"public LogBook() {\n logs = new UniqueLogList();\n exercises = new UniqueExerciseList();\n }",
"public ArrayList() {\n elements = new Object[DEFAULT_CAPACITY];\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList () {\n\t\tcapacity = 10;\n\t\tsize = 0;\n\t\tlist = (E[]) new Object[capacity];\n\t}",
"public TempList() {\n list = new ArrayList<T>();\n }",
"public ToDo(String title, String description, double price, String contact, ArrayList<String> supplies) {\n super();\n this.title = title;\n this.description = description;\n this.price = price;\n this.contact = contact;\n this.supplies = supplies;\n }",
"public MyArrayList ()\r\n {\r\n \tlist = new Object[100];\r\n \tnumElements = 0;\r\n }",
"public Reviews (ArrayList<Review> list)\n\t{\n\t\tthis.list = list;\n\t}",
"public void setNotes(String notes) {\n\t\tthis.notes = notes;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList() {\n\t\tsize = 0;\n\t\tlist = (E[]) new Object[INIT_SIZE];\n\t}",
"public SpyList() {\r\n }",
"public Person(String name, ArrayList<String> pnArray) {\n\n\t}",
"public CaseInsensitiveElementList(IData document) {\n this(document, null);\n }",
"protected MyAbstractList() {\n }"
] | [
"0.74227977",
"0.73599356",
"0.67995584",
"0.6681051",
"0.66750115",
"0.6624911",
"0.6556553",
"0.64262176",
"0.63819224",
"0.635654",
"0.6348929",
"0.63440263",
"0.62559474",
"0.61862457",
"0.6167064",
"0.61516654",
"0.6149206",
"0.61313224",
"0.6067664",
"0.60570765",
"0.6043577",
"0.59971654",
"0.5996734",
"0.59905964",
"0.5987559",
"0.5959127",
"0.59572923",
"0.59342545",
"0.59279823",
"0.5917543",
"0.59013015",
"0.59013015",
"0.5898387",
"0.5887466",
"0.5878468",
"0.58782667",
"0.5876457",
"0.58701885",
"0.5866497",
"0.58506066",
"0.58480334",
"0.5841236",
"0.583891",
"0.5838156",
"0.5814922",
"0.5814245",
"0.5807675",
"0.5802",
"0.5801905",
"0.5801598",
"0.57957226",
"0.5789075",
"0.5785144",
"0.57805634",
"0.57799137",
"0.5777044",
"0.5760883",
"0.5760731",
"0.57521284",
"0.5746476",
"0.5745461",
"0.57446927",
"0.57446927",
"0.5743028",
"0.5738263",
"0.5734956",
"0.5733172",
"0.57259566",
"0.5725357",
"0.57181066",
"0.5714702",
"0.5709993",
"0.570534",
"0.5703713",
"0.5701111",
"0.5681455",
"0.56728363",
"0.56686676",
"0.5668377",
"0.5660187",
"0.56540346",
"0.5649684",
"0.56465024",
"0.5643104",
"0.5640509",
"0.5639084",
"0.563704",
"0.56366783",
"0.5636057",
"0.56326073",
"0.56249833",
"0.56239384",
"0.56198454",
"0.56091774",
"0.55975497",
"0.55928344",
"0.55869615",
"0.5585819",
"0.5585067",
"0.55749726"
] | 0.7734024 | 0 |
/ The ArrayList class is Java Generic. We khave to specify the type of elements in the list int angle brackets after every ArrayList identifier Primitives (double, int, char) are not classes and cannot be specified as the type of the elements in a Generic. We use th Wrapper Class(Double, Integer) ArrayList myList; held a list of Objects cannot use primitive ArrayList myList; | public static void main(String[] args)
{
ArrayList<Integer> myList;
myList = randomIntegerList(10,20);
System.out.println(myList);
System.out.println("The sum is: " + sumList(myList));
removeEvens(myList);
System.out.println(myList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n int[] myIntArray = new int[10]; // int array\n String[] myStringArray = new String[10]; // String array\n\n ArrayList<String> myStringArrayList = new ArrayList<String>(); // String ArrayList\n myStringArrayList.add(\"Peti\");\nclass IntClass {//create an integer class is a lots of code !! use built in function!\n private int integer;\n\n public IntClass(int integer) {\n this.integer = integer;\n }\n\n public int getInteger() {\n return integer;\n }\n\n public void setInteger(int integer) {\n this.integer = integer;\n }\n}\n //ArrayList<int> intArraylist = new ArrayList<int>();\n //this is cannot work because arrayList only can accept objects not primitive types!\n ArrayList<IntClass> intArraylist = new ArrayList<IntClass>();\n intArraylist.add(new IntClass(12)); // too long and messy solution !\n //built in classes !!\n Integer integer = new Integer(12);\n Double doubleValue = new Double(10.34);\n\n ArrayList<Integer> intArrayList = new ArrayList<Integer>();\n for (int i = 0; i<=10; i++){\n intArrayList.add(Integer.valueOf(i)); // this is autoboxing to convert an int to an Integer\n }\n for (int i = 0; i<=10; i++){\n System.out.println(i + \" --> \" + intArrayList.get(i).intValue()); //this is unboxing to convert the Integer value back into an int !!\n }\n //shorter version to doing this becasue Java know this automatically and do it on the background\n Integer myIntValue = 56; //Integer.valueOf(56);\n int myInt = myIntValue; // myIntValue.getValue();\n\n //annother example for auto and unboxing !!\n ArrayList<Double> doubleList = new ArrayList<Double>();\n for (double dbl = 0.0; dbl <= 10.0; dbl+=0.5){\n doubleList.add(dbl); //doubleList.add(Double.valueOf(dbl));\n }\n\n for (int i = 0; i<doubleList.size();i++){\n double value = doubleList.get(i); //double value = doubleList.get(i).doubleValue();\n System.out.println(i + \" --> \" + value);\n }\n\n\n\n\n\n\n\n }",
"public static void main (String[] args){\n\n ArrayList<Integer> studentNumbers1 = new ArrayList<>();\n studentNumbers1.add(25);\n System.out.println(studentNumbers1.get(0)); // <- unboxing\n /**\n * solution 2 : create custom wrapper class - intWrapper\n */\n ArrayList<intWrapper> studentNumbers2 = new ArrayList<>();\n /**\n * studentNumbers2.add(12); <- Autoboxing\n * java is automatically boxing primitive data type to Object\n * error : intWrapper class does not have any add function so, we can do \"Boxing\" in the parameter\n * with create new object with int value\n */\n studentNumbers2.add(new intWrapper(12)); // <- Boxing\n System.out.println(studentNumbers2.get(0).getIntValue()); // <-Unboxing\n\n\n /**\n * Autoboxing testing with Double\n */\n ArrayList<Double> demoList = new ArrayList<>();\n demoList.add(25.5);\n demoList.add(new Double(25.2));\n /**\n * Java compiler convert the code like below.\n * Below command is done while autoboxing\n */\n demoList.add(Double.valueOf(10.3));\n System.out.println(demoList.get(0)); // <-Autoboxing\n System.out.println(demoList.get(0).doubleValue()); // <- command is done while autoboxing\n\n }",
"public static void m2(ArrayList<?> al)\n\t{\n\t\t//al.add(\"Marshal Mathers\");\n\t\t//al.add(\"Slim Shady\");\n\t\t//al.add(10);\n\t\t//al.add(10.5f);\n\t\tal.add(null);\t// null is allowed, because it is valid value for any type\n\t}",
"void mo9148a(int i, ArrayList<C0889x> arrayList);",
"public <T> void makeArrayList(List<T> list) {\n\t\tList<T> list1 = new ArrayList<T>(); // now we can create the list using \"T\"\n\t\tlist1.addAll(list);\n\t}",
"public static void main(String[] args) {\n\t\tArrayList rawList = new ArrayList();\n\t\t\n\t\t//collection can hhold any type of data\n\t\trawList.add(\"jai shree ram\");\n\t\trawList.add(23);\n\t\trawList.add(new Object());\n\t\t\n\t\t//problem is here\n\t\tString one = (String) rawList.get(0);\n\t\tint two = (Integer) rawList.get(1);\n\t\tObject three = rawList.get(2);\n\t\tSystem.out.println(one + \" \" + two + \" \"+three);\n\t\t\n\t}",
"MyContainer(ArrayList<T> myList){ // T refers to the generic type we are going to use\r\n\t\tthis.myList = myList;\r\n\t\t\r\n\t}",
"public void testingArrayList() {\r\n\t\tSystem.err\r\n\t\t\t\t.println(\"Class NewFeatures, method testingArrayList called!\");\r\n\t\t// we don't need to write data type two times\r\n\t\t// ArrayList<String> list = new ArrayList<String>();\r\n\t\tArrayList<String> list = new ArrayList<>();\r\n\t\tlist.add(\"hey\");\r\n\t\tlist.add(\"kello\");\r\n\t\tlist.add(\"labas\");\r\n\t\tSystem.out.println(\"\\nValue in list:\" + list.get(0));\r\n\t\tSystem.out.println(\"Printing out the ArrayList: \" + list);\r\n\t\tSystem.out.println(\"Class NewFeatures, method testingArrayList done!\");\r\n\t}",
"public static void main(String[] args) {\n List <String> myList = new ArrayList<>();\n myList.add(\"hello\");\n\n List <Integer> myListInt = new ArrayList<>();\n myListInt.add(1);\n }",
"public void genericIntegerArray() {\n\t\tArrayList<Integer> a1 = new ArrayList<Integer>();\n\t\ta1.add(20);\n\t\ta1.add(11);\n\t\tSystem.out.println(\"Integer generic ArrayList a1: \" + a1);\n\n\t}",
"public static void main(String[] args) {\t\n\t\t// \"A wildcard parameterized type is not a concrete type that could appear in a new expression.\"\n\t\t// in https://howtodoinjava.com/java/generics/complete-java-generics-tutorial/\n\t\tList<Number> ls = new ArrayList<>(); //this is right \n\t\tList<? extends Number> ls2 = new ArrayList<Long>(); //this is also right, but now there is no inference typing in the new expression. You have to be explicit\n\t\tList<? extends Number> ls3 = new ArrayList<>(); //this is confusing. What is the type of this List?\n\t\t//List<Number> ls = new ArrayList<Integer>(); //this is wrong and will give a compile error\n\t\t\n\t\tInteger n = Integer.valueOf(20);\n\t\tDouble d = Double.valueOf(20.0);\n\t\tls.add(n);\n\t\tls.add(d);\n\t\t\n\t\tSystem.out.println(n instanceof Number);\n\t\tSystem.out.println(n instanceof Integer);\t\t\n\t\t\n\t\tList<Integer> li = Arrays.asList(1, 2, 3);\n\t\tSystem.out.println(\"sum = \" + sumOfList(li));\t\n\t}",
"@Override\r\n\tpublic Object visitListExpression(ListExpression listExpression, Object arg)\r\n\t\t\tthrows Exception {\r\n\t\tif (listExpression.expressionList.isEmpty()) {\t\r\n\t\t\tlistExpression.setType(emptyList);\r\n\t\t\treturn emptyList;\r\n\t\t}\t\t\r\n\t\tString oldListType = (String) listExpression.expressionList.get(0).visit(this, arg);\r\n\t\tfor(Expression expr : listExpression.expressionList) {\r\n\t\t\tString listType = (String) expr.visit(this, arg);\r\n\t\t\tcheck(oldListType.equals(listType),\t\"uncompatible list type\", listExpression);\r\n\t\t\toldListType = listType;\t\t\t\r\n\t\t}\r\n\t\tString listType = \"Ljava/util/ArrayList<\" + oldListType + \">;\";\r\n\t\tlistExpression.setType(listType);\r\n\t\treturn listType;\r\n\t}",
"@SuppressWarnings(\"unchecked\") // <.>\n static void wordList(){\n ArrayList wordList = new ArrayList<>(); // <.>\n wordList.add(\"cat\");\n wordList.add(\"dog\");\n\n System.out.println(\"Word list => \" + wordList);\n }",
"@Test\n public void getTypeArguments() {\n List<String> target=new ArrayList<String>() {{\n add(\"thimble\");\n }};\n\n Type[] arguments= TypeDetective.sniffTypeParameters(target.getClass(), ArrayList.class);\n assertEquals(1, arguments.length);\n assertEquals(String.class,arguments[0]);\n }",
"public static <T> void genericMethod() {\n ArrayList<T> tList = new ArrayList<>();\r\n }",
"public static void clientFunc(){\n List list = new ArrayList(); //rawtype list\n list.add(10);\n list.add(\"jenkins\");\n list.add(new Object());\n\n //unsafe classcast exception at runtime\n //rawtypes are unsafe\n List<String> stringList = list;\n\n ListIterator listIterator = list.listIterator();\n while(listIterator.hasNext()){\n System.out.println(listIterator.next());\n }\n }",
"public void addDatatoArrayList(ArrayList<Object> ar1) {\n\t\tar1.add(1);\n\t\tar1.add(\"anu\");\n\t\tar1.add(1.3);\n\t\tar1.add(true);\n\t\tar1.add('&');\n\t\tar1.add(false);\n\t\tSystem.out.println(\"Data aaded to ArrayList\");\n\t}",
"public static <T> ArrayList<T> createArrayList() {\n \t\treturn new ArrayList<T>();\n \t}",
"static void q2(){\n\t\tArrayList<Integer>myList=new ArrayList<>();\n\t\t\n\t}",
"public interface IArrayList <E> {\n void add(E e);\n\n}",
"public static void m4(ArrayList<? super Integer> al)\n\t{\n\t\t//al.add(\"Marshal Mathers\");\n\t\t//al.add(\"Slim Shady\");\n\t\tal.add(null);\t// null is allowed, because it is valid value for any type\n\t\tal.add(345);\n\t}",
"public <T> void makeArrayList(T t) {\n\t\tList<T> list = new ArrayList<T>(); // now we can create the list using \"T\"\n\t\tlist.add(t);\n\t}",
"private static <T> TypeToken<List<T>> getListTypeToken() {\n return new TypeToken<List<T>>() {\n };\n }",
"public static void main(String[] args) {\n List<Integer> data = new ArrayList();\n List<String> strList = new ArrayList<>();\n\n// data = strList; //both types are generalized via <Type> declaration: incompatibles variables\n data.add(10);\n\n String s = strList.get(0); //ClassCastException\n }",
"a(ArrayList arrayList) {\n super(1);\n this.$result = arrayList;\n }",
"public static void main(String[] args) {\n\t\tArrayList <Integer> numList = new ArrayList <>();\n\t\t\n\t\t//numList.add(Integer.parseInt(\"12\"));\n\t\t\n\t\t//ADDING ITEM\n\t\t//We call add method from ArrayList class\n\t\tInteger i = 100; //autoboxing to Integer Object\n\t\tnumList.add(i);\n\t\tnumList.add(200);\n\t\t\n\t\tSystem.out.println(numList);\n\t\t\n\t\t//GETTING SINGLE ITEM FROM ARRAY ARRAYLIST\n\t\tint i2 = numList.get(0); //auto unboxing happens here\n\t\t\n\t\tSystem.out.println(i2);\n\t\tSystem.out.println(numList.get(1)); //It is a method returns a value\n\t}",
"public ArrayList() {\n\t\tthis.elements = new Object[5];\n\t\tthis.last = -1;\n\t}",
"@Test\n\tpublic void createTypedList() {\n\t\tList<String> list = new ArrayList<>();\n\n\t\tlist.add(\"String\");\n\n\t\tassertEquals(list, Collections.singletonList(\"String\"));\n\t}",
"public static void main(String[] args) {\n ArrayList<IntClass> intClassArrayList = new ArrayList<IntClass>();\n for(int i=0 ;i < 10 ;i++){\n intClassArrayList.add(i,new IntClass(i+1));\n }\n\n for(int i=0 ;i<intClassArrayList.size();i++){\n System.out.println(intClassArrayList.get(i).getNumber()+\" \");\n }\n\n ArrayList<Integer> integerArrayList = new ArrayList<Integer>();\n for(int i=0 ;i<10;i++){\n integerArrayList.add(Integer.valueOf(i));\n }\n\n for(int i=0 ;i<integerArrayList.size();i++){\n System.out.println(i + \" ----> \"+ integerArrayList.get(i).intValue());\n }\n\n ArrayList<Double> doubleArrayList = new ArrayList<Double>();\n for(double dbl = 0 ; dbl < 10.0 ;dbl += 1.0){\n doubleArrayList.add(Double.valueOf(dbl));\n }\n\n for(int i=0;i<doubleArrayList.size() ; i++){\n System.out.println(i + \" ----> \"+ doubleArrayList.get(i).doubleValue());\n }\n\n ArrayList<Long> longArrayList = new ArrayList<Long>();\n System.out.print(\"Enter the number of inputs Size : \");\n int noOfElements = scanner.nextInt();\n\n for(int i=0;i< noOfElements ;i++){\n System.out.print(\"Enter long integer \"+(i+1) +\" : \" );\n longArrayList.add(Long.valueOf(scanner.nextLong()));\n }\n\n System.out.println(\"The Long values are : \");\n for(int i=0;i<longArrayList.size();i++){\n System.out.println(\"Value \"+(i+1) + \" : \"+longArrayList.get(i).longValue());\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic static void main(String[] args) {\n\t\t\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tArrayList ar = new ArrayList();\n\t\tar.add(1);\n\t\tar.add(2);\n\t\tar.add(3);\n\t\tar.add(\"Tom\");\n\t\tar.add(12.33);\n\t\t\n\t\tfor(int i=0; i<ar.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(ar.get(i));\n\t\t}\n\t\t\n\t // 2. dynamic generic array\n\t\t\n\t\tArrayList <Integer> ar1 = new ArrayList <Integer>();\n\t\t\n\t\tar1.add(89);\n\t\tar1.add(56);\n\t\tfor(int i=0; i<ar1.size(); i++)\n\t\t{\n\t\t System.out.println(ar1.get(i));\n\t\t}\n\tSystem.out.println(\"******************\");\t\n\t\n\tArrayList <Integer> ar2 = new ArrayList <Integer>();\n\t\n\tar2.add(55);\n\tar2.add(88);\n\tfor(int i=0; i<ar2.size(); i++)\n\t{\n\t System.out.println(ar2.get(i));\n\t}\n\tSystem.out.println(\"*********************\");\n\t\n\t//3. adding two generic array values, ensure the type of both array should be same\n\t\n\t\tar1.addAll(ar2);\n\t\t\n\t\tSystem.out.println(ar1.size());\n\t\t\n\t\tfor(int i=0; i<ar1.size(); i++)\n\t\t{\n\t\t System.out.println(ar1.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(\"***************************\");\n\t\t\n\t\t//4. Initializing arraylist of objects\n\t\t\n\t\tArrayList<Employee> ar3 = new ArrayList<Employee>();\n\t\t\n\t\tEmployee e1 = new Employee(1, \"pretty\", 5000);\n\t\tEmployee e2 = new Employee(2, \"renault\", 7000);\n\t\tEmployee e3 = new Employee(3, \"java\", 8000);\n\t\tEmployee e4 = new Employee(4, \"divya\", 9000);\n\t\t\n\t\tar3.add(e1);\n\t\tar3.add(e2);\n\t\tar3.add(e3);\n\t\tar3.add(e4);\n\t\t\n\t\tSystem.out.println(ar3.size());\n\t\t\n\t\tIterator<Employee> it = ar3.iterator();\n\t\t\n\t\twhile(it.hasNext())\n\t\t{\n\t\t Employee emp = it.next();\n\t\t\tSystem.out.print(emp.empno + \" \");\n\t\t\tSystem.out.print(emp.empname + \" \");\n\t\t\tSystem.out.print(emp.empsalary + \" \");\n\t\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\n\t}",
"public NumericObjectArrayList() {\r\n list = new Copiable[10];\r\n count = 0;\r\n }",
"private Class<?> getArrayList(Field f) {\n f.setAccessible(true);//将访问权限设置为true\n if (f.getType() == java.util.List.class) {\n // 如果是List类型,得到其Generic的类型\n Type genericType = f.getGenericType();\n if (genericType == null) return null;\n // 如果是泛型参数的类型\n if (genericType instanceof ParameterizedType) {\n ParameterizedType pt = (ParameterizedType) genericType;\n //得到泛型里的class类型对象\n Class<?> genericClazz = (Class<?>) pt.getActualTypeArguments()[0];\n return genericClazz;\n }\n }\n return null;\n }",
"public ArrayList() {\n arr = (T[]) new Object[10];\n size = 0;\n }",
"public static void main(String[] args) {\n\t\t\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\n\t\t// RSN NOTE -- ArrayList can grow in size, arrays can't\n\t\tlist.add(1);\n\t\tlist.add(2);\n\t\tSystem.out.println(\"Length \" + list.size());\n\t\t\n\t\t// RSN NOTE -- Elements can be inserted or deleted from any locaiton, NOT in array\n\t\tArrayList<String> sList = new ArrayList<String>();\n\t\tsList.add(\"ONE\");\n\t\tsList.add(\"TWO\");\n\t\tsList.add(\"THREE\");\n\t\tsList.remove(1); // ====NOTE=====>>> compare Arraylist remove with LinkedListDemo remove\n\t\tSystem.out.println(sList.toString());\n\t\t\n\t\tSystem.out.println(\"Contains \"+sList.contains(\"THREE\")); //====NOTE=====>>>SUPER IMP; compare contains of arrayList and Linked List\n\t\t\n\t\t/*\n\t\t * ArrayList class has methods to perform solo modifications ( add(), remove()Ö ), \n\t\t * bulk modifications ( addAll(), removeAll(), retainAll()Ö ), searching( indexOf(), lasIndexOf() ) and iterations( iterator() ).\n\t\t */\n\t\t\n\t\t// RSN NOTE -- If generics are not used, ARRAY list can hold any data type\n\t\t ArrayList listForAll = new ArrayList(); //ArrayList without generics\n\t listForAll.add(\"ZERO\"); //adding string type object\n\t listForAll.add(1); //adding primitive int type\n\t listForAll.add(20.24); //adding primitive double type\n\t listForAll.add(new Float(23.56)); //Adding Float wrapper type object\n\t listForAll.add(new Long(25)); //Adding Long wrapper type object\n\t \n\t System.out.println(listForAll); //Output : [ZERO, 1, 20.24, 23.56, 25]\n\t \n\t // RSN NOTE -- Array Insertion time\n\t arrayInserionTime();\n\t \n\t listIteratorMovesInBothDirections();\n\t \n\t reverseElementInList();\n\t \n\t convertBetweenArrayAndList();\n\n\t}",
"private <T extends IDElement> ArrayList<Object[]> transformElementListToList(ArrayList<T> pElementList, int pElementType) throws Exception{\r\n\t\tArrayList<Object[]> vRet = new ArrayList<Object[]>();\r\n\t\t\r\n\t\tif (pElementList!= null) {\r\n\t\t\tfor (T vCur : pElementList) {\r\n\t\t\t\tswitch(pElementType) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tvRet.add(transformProbElementToList((ProbElement)vCur));\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tvRet.add(transformPrioElementToList((PrioElement)vCur));\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tthrow new Exception(\"02; tELtL,Edi\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}else throw new Exception(\"04; tELtL,Edi\");\r\n\t\t\r\n\t\treturn vRet;\r\n\t}",
"public abstract void mo56923b(List<C4122e> list);",
"public static void main(String[] args) {\n ArrayList<Object> ar = new ArrayList<Object>();\n ar.add(100);\n ar.add(100);\n ar.add(\"testing\");\n ar.add('c');\n ar.add(12.36);\n ar.add(true);\n\n System.out.println(ar);\n System.out.println(ar.get(4));\n System.out.println(ar.size());\n System.out.println(\"LI = \"+ 0);\n System.out.println(\"HI = \" + (ar.size()-1));\n\n ar.add(500);\n ar.add(400);\n System.out.println(ar.size());\n\n }",
"public ArrayList() {\n\t\tthis(10, 75);\n\t}",
"void mo100444b(List<C40429b> list);",
"static void print5(ArrayList<? extends A> list) {\n\n\t}",
"public static void main(String[] args) {\n ArrayList<String> list = new ArrayList<>(3); // from JDK1.7+, <>可以不写内容,但<>本身要写\n System.out.println(list); // 空的ArrayList 打印输出:[]\n\n /*\n ArrayList.add()\n */\n\n // 向集合内添加数据,需要add(), 返回 true or false\n boolean isSuccess1 = list.add(\"Roger\");\n boolean isSuccess2 = list.add(\"Francesca\");\n boolean isSuccess3 = list.add(\"Keka\");\n System.out.println(list); // [Hello, world, !!!]\n\n System.out.println(\"1. Add is success? \" + isSuccess1); // true\n System.out.println(\"2. Add is success? \" + isSuccess2); // true\n System.out.println(\"3. Add is success? \" + isSuccess3); // true\n\n //list.add(100) // wrong datatype, should be String, same with <String>\n\n /*\n ArrayList.get()\n */\n String name = list.get(1);\n System.out.println(\"1. element in ArrayList is \" + name); // Francesca, index start from 0\n\n /*\n ArrayList.remove()\n */\n String removeName = list.remove(2);\n System.out.println(\"Removed name is \" + removeName); // Keka\n System.out.println(list); // [Roger, Francesca]\n\n /*\n ArrayList.size()\n */\n int size = list.size();\n System.out.println(size); // 2\n\n /*\n ArrayList excises\n */\n ArrayList<String> list2 = new ArrayList<>();\n list2.add(\"person1\");\n list2.add(\"person2\");\n list2.add(\"person3\");\n\n // iterate ArrayList\n for (int i = 0; i < list2.size(); i++) {\n System.out.println(list2.get(i));\n }\n\n\n }",
"public abstract void mo56920a(List<C4122e> list);",
"public void create() {\n String[] arrays = new String[100];\n ArrayList<String> list1 = new ArrayList(); //Object[10]\n list1.size(); //0\n list1.add(\"Vivek\"); //object[0] = \"Vivek\"\n list1.size(); //1\n list1.get(0);//\"Vivek\"\n\n list1.remove(1);\n\n list1.add(0, \"Vivek\");\n\n\n ArrayList<String> list3 = new ArrayList<String>(list1);\n\n ArrayList<Student> list = new ArrayList<Student>();\n\n\n\n }",
"public OrderedArrayList()\n {\n _data = new ArrayList<Comparable>();\n }",
"private static Type getListType() {\n return getListTypeToken().getType();\n }",
"public static void m3(ArrayList<? extends Number> al)\n\t{\n\t\t//al.add(\"Marshal Mathers\");\n\t\t//al.add(\"Slim Shady\");\n\t\tal.add(null);\t// null is allowed, because it is valid value for any type\n\t}",
"public MyArrayList() {\n this.IntList = new int[10];\n this.CharList = new Character[10];\n this.StringList = new String[5];\n \n // fill all 3 arrays with data\n for(int i = 0; i < IntList.length; i++) {\n IntList[i] = (int) (Math.random()*52);\n }\n\t \n // Populate char array\n for(int i = 0; i < CharList.length; i++) {\n \n Random random = new Random();\n CharList[i] = (char)(random.nextInt(26) + 'a');\n }\n\t \n // Populate String array\n StringList[0] = \"joe\";\n StringList[1] = \"mark\";\n StringList[2] = \"abbey\";\n StringList[3] = \"tony\";\n StringList[4] = \"kevin\"; \n }",
"protected ArrayList<Object[]> genObjectArrayListFromIDElementList(ArrayList<? extends IDElement> pIDElementList) throws Exception{\r\n\t\tObject[] vElement;\r\n\t\tArrayList<Object[]> vRet;\r\n \t\t\r\n \t\tif (pIDElementList != null) {\r\n \t\t\tvRet = new ArrayList<Object[]>();\r\n \t\t\t\r\n \t\t\tfor (IDElement vCur : pIDElementList) {\r\n \t\t\t\tvElement = new Object[2];\r\n \t \t\t\t\r\n \t \t\t\tvElement[0] = vCur.getId();\r\n \t \t\t\tvElement[1] = vCur.getName();\r\n \t \t\t\t\r\n \t \t\t\tvRet.add(vElement);\r\n \t\t\t}\r\n \t\t} else throw new Exception(\"04; gOALfIDEL,Edi\");\r\n \t\t\r\n \t\treturn vRet;\r\n\t}",
"public OrderedArrayList()\n {\n\t_data = new ArrayList<Comparable>();\n }",
"public static void main(String[] args) {\n\t\tArrayList<String> words = new ArrayList<String>();\n\t\t// flexible, resizable array\n\t\t// can add multiple data types\n\t\t// they will however be cast as objects by default in the array\n\t\t\n\t\t\n\t\t// Java is a type safe language - it forces the developer to know on every single line what a variable's data type is\n\t\t// <> GENERIC COLLECTIONS - forces data in an ArrayList to be of a particular type\n\t\t// enforcing type using <> is called 'Parameterisation'\n\t\t\n\t\twords.add(\"hello\");\n\t\twords.add(\"world\");\n\t\tSystem.out.println(words);\n\t\twords.remove(\"0\");\n\t\tSystem.out.println(words);\n\t\twords.add(\"10\");\n\t\twords.add(\"12.00\");\n\t\twords.add(\"H\");\n\t\tSystem.out.println(words);\n\t\t\n\t\t// Unless <> is specified...\n\t\t// object is the parent of every single data type in Java\n\t\t// .get() here returns an object, so...\n\t\t// have to cast object data type to string as follows:\n\t\tString item1 = (String) words.get(0);\n\t\tSystem.out.println(item1);\n\t\tObject item2 = words.get(1);\n\t\tSystem.out.println(item2);\n\t\t\n\t\t// LINKEDLIST\n\t\t// only complex data types can be inside the angle brackets in a LinkedList, not primitives\n\t\t// To get around this rather than using int we use the wrapper class Integer\n\t\t// Other wrapper classes: <Double><Float>\n\t\t// String is a complex data type anyway \n\t\t\n\t\t// ArrayLists use array as the data structure, whereas LinkedLists use node objects\n\t\t\n\t\t// the array list is faster for retrieving data\n\t\t// the linked list is faster for manipulating data - to retrieve values the linked list has to be traversed\n\t\t\n\t\tLinkedList<Integer> numbers = new LinkedList<Integer>();\n\t\tnumbers.add(1);\n\t\tnumbers.add(2);\n\t\tnumbers.add(99);\n\t\tnumbers.add(43);\n\t\t\n\t\t// number.remove(); would remove the first data value inserted - 1 in this case\n\t\t\n\t\tSystem.out.println(numbers.get(0) + numbers.get(1)); // should print 3\n\t\n\t\tfor (int number: numbers) {\n\t\t\tSystem.out.println(number); // print: 1 2 99 43\n\n\t\t}\n\t}",
"public abstract ArrayList<STTPoint> getWrappedData();",
"public static void main(String[] args)\r\n\t{\nArrayList al = new ArrayList<>();\r\nal.add(10);\r\nal.add(\"manu\");\r\nal.add('m');\r\nObject [] ob=al.toArray();\r\nfor (int i = 0; i < ob.length; i++)\r\n{\r\n\tSystem.out.println(ob[i]);\r\n\t\r\n}\r\n\t}",
"public static void mySort(ArrayList<Integer> myList)\n {\n\n }",
"public static void main(String[] args){\n List<Integer> list1 = Arrays.asList(8,11,13,10);\n List<Double> list2 = Arrays.asList(3.1459, 2.7182, 6.6740, 8.9875);\n List<Number> list3 = Arrays.asList(128,256,155,42);\n //We demonstrate that, within the same function we can pass attributes of\n //different classes\n System.out.println(\"The list1 is: \"+printList(list1));\n// System.out.println(\"The list2 is: \"+printList(list2));\n System.out.println(\"The list3 is: \"+printList(list3));\n }",
"private PyObject[] listtoarray(ArrayList<PyObject> a)\n {\n PyObject[] results = new PyObject[a.size()];\n int iter = 0;\n for (PyObject pt : a) {\n results[iter] = pt;\n iter++;\n }\n return results;\n }",
"public static void main(String[] args) {\n\t\tArrayList al = new ArrayList(); // support heterogeneous data main any type of value\r\n\t\t// add new element\r\n\t\tal.add(15);\r\n\t\tal.add(\"welocome\");\r\n\t\tal.add(2020);\r\n\t\tal.add(15.5);\r\n\t\tal.add(\"A\");\r\n\r\n\t\tSystem.out.println(al);\r\n\t\t// size of Arrylist\r\n\t\tSystem.out.println(\"no of index \" + al.size());\r\n\t\t\r\n\t\t// remove method\r\n\t\tal.remove(2);\r\n \tSystem.out.println(al);\r\n\r\n\t\t// Inert a data\r\n\t\tal.add(2, 2021);\r\n\t\tSystem.out.println(\"add the data in array list\" + al);\r\n\t\t// Retried the specific element\r\n\t\r\n \tSystem.out.println(al.get(2));\r\n\t\t// change and replace the element\r\n\t\tal.set(2, 2022);\r\n\t\tSystem.out.println(al);\r\n\t\t\r\n\t\t// search // contains\r\n\t\tSystem.out.println(al.contains(\"welocome\")); \r\n\t\t\r\n\t\t// is empty\r\n\t\tSystem.out.println(al.isEmpty());\r\n\r\n\t\tIterator it = al.iterator();\r\n\t\t\r\n\t\twhile (it.hasNext()) {\r\n\t\tSystem.out.println(it.next());\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tArrayList emp =new ArrayList();\n\t\t\n\t\temp.add(\"Avinash\"); \n\t\temp.add(001);\t\t\n\t\temp.add(\"Admin\");\t\n\t\temp.add(12.7);\t\n\t\t\n\t\tSystem.out.println(emp);\n\n\t\t//Generic Array list\n\t\tArrayList emp1 =new ArrayList();\n\t\temp1.add(\"Vaibhav\"); \n\t\temp1.add(002);\t\t\n\t\temp1.add(\"CEO\");\t\n\t\temp1.add(1.7);\t\n\t\t\n\t\tSystem.out.println(emp1);\n\n\t}",
"public void arrayList(List<Student> list)\r\n\t{\r\n\t\tlist.add(s1);\r\n\t\tlist.add(s2);\r\n\t\tlist.add(s3);\r\n\t\tlist.add(s4);\r\n\t\tlist.add(s5);\r\n\t\tlist.add(s6);\r\n\t\tSystem.out.println(\"Objects of ArrayList\");\r\n\t\tfor(int i=0;i<list.size();i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(list.get(i));\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n ArrayList<String> aList = new ArrayList();\n ArrayList<Integer> numList = new ArrayList();\n aList.add(\"Ram\");//0\n aList.add(\"Shyam\");//1\n aList.add(\"hari\");//2\n aList.add(\"Sita\");//3\n aList.add(\"Ram\");//4\n //System.out.println(aList); //[Ram, Shyam, hari, Sita, Ram]\n// System.out.println(aList.get(1)); //Shyam\n // for(ClassType/VariableType variableName : objectName)\n System.out.println(\"before adding\"); \n System.out.println(aList);\n aList.add(3,\"Ravi\");\n System.out.println(\"after adding\"); \n System.out.println(aList);\n aList.remove(3);\n System.out.println(\"after removing\"); \n System.out.println(aList);\n Collections.sort(aList);\n System.out.println(\"after sorting\");\n System.out.println(aList);\n \n }",
"public static void main(String[] args){\n\t\tList<? extends Number> list = new ArrayList<>();\n\t\t\n\t\t//list.add(new Integer(10));\n\t\t//list.add(new Integer(10));\n\t\t\t\t\n\t\tSystem.out.println(list.get(0) + \" \" + list.get(1));\n\t\t\n\t}",
"public ArrayList() {\n elements = new Object[DEFAULT_CAPACITY];\n }",
"public static <T> List<T> createList (T... args) {\n\tif (args == null) { return new ArrayList<T>(); };\n\treturn new ArrayList<T>(Arrays.asList(args));\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList() {\n\t\tsize = 0;\n\t\tlist = (E[]) new Object[INIT_SIZE];\n\t}",
"public interface QList<D extends QData> extends QData, Iterable<D> {\n\n\t/**\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t *\n\t * @model dataType=\"org.smeup.sys.il.data.DataArray\" required=\"true\"\n\t * @generated\n\t */\n\tD[] asArray();\n\n\t/**\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t *\n\t * @model indexRequired=\"true\"\n\t * @generated\n\t */\n\tD get(Number index);\n\n\t/**\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t *\n\t * @model indexRequired=\"true\"\n\t * @generated\n\t */\n\tD get(QNumeric index);\n\n\t/**\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t *\n\t * @model required=\"true\"\n\t * @generated\n\t */\n\tint capacity();\n\n\t/**\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t *\n\t * @model required=\"true\"\n\t * @generated\n\t */\n\tint count();\n\n\t/**\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t *\n\t * @model valueRequired=\"true\"\n\t * @generated\n\t */\n\tvoid eval(QList<D> value);\n\n}",
"ListType createListType();",
"@SuppressWarnings(\"unchecked\")\n public ArrayList(ArrayList<E> lst) {\n list = (E[])new Object[lst.size()];\n capacity = lst.capacity;\n size = lst.size;\n for(int i = 0; i < size; i++) {\n list[i] = lst.list[i];\n }\n }",
"public ArrayListBag() {\n\t\tlist = new ArrayList<T>();\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList() {\n\t\tObject[] oList = new Object[INIT_SIZE];\n\t\tlist = (E[]) oList;\n\t\tsize = INIT_SIZE;\n\t}",
"public static void m5(ArrayList<? super B> al)\n\t{\n\t\t//al.add(\"Marshal Mathers\");\n\t\t//al.add(\"Slim Shady\");\n\t\t//al.add(345);\n\t\tal.add(null);\t// null is allowed, because it is valid value for any type\n\t}",
"public XSListSimpleType asList() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: idiv \n // 1: laload \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- ------------------------------------------\n // 0 2 0 this Lcom/sun/xml/xsom/impl/ListSimpleTypeImpl;\n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }",
"public static void main(String args[]) throws IOException, ClassNotFoundException {\n ArrayList<Integer> intArrayList = new ArrayList<Integer>();\n ArrayList<String> stringArrayList = new ArrayList<String>();\n \n // Add numbers to intArrayList\n for (int i=0;i<10;i++){\n intArrayList.add(i);\n }\n \n // Add strings to stringArrayList\n for (Integer i : intArrayList){\n stringArrayList.add(\"Nummer \" + i);\n }\n \n System.out.println(\"ArrayList of Integer objects\");\n printArrayList(intArrayList);\n System.out.println();\n \n System.out.println(\"ArrayList of String objects\");\n printArrayList(stringArrayList);\n System.out.println();\n \n writeArrayList(intArrayList);\n System.out.println(readArrayList());\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList () {\n\t\tcapacity = 10;\n\t\tsize = 0;\n\t\tlist = (E[]) new Object[capacity];\n\t}",
"public interface List<T> extends Collection<T> {\n\n public void insert(T element, int index);\n public T replace(T element, int index);\n public T remove(int index);\n public T removeFirst();\n public T removeLast();\n public int indexOf(T element);\n public T get(int index);\n public T first();\n public T last();\n \n}",
"Plist()\n {\n m_dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n m_dateFormat.setTimeZone(TimeZone.getTimeZone(\"Z\"));\n m_simpleTypes = new HashMap<Class<?>, ElementType>();\n m_simpleTypes.put(Integer.class, ElementType.INTEGER);\n m_simpleTypes.put(Byte.class, ElementType.INTEGER);\n m_simpleTypes.put(Short.class, ElementType.INTEGER);\n m_simpleTypes.put(Short.class, ElementType.INTEGER);\n m_simpleTypes.put(Long.class, ElementType.INTEGER);\n m_simpleTypes.put(String.class, ElementType.STRING);\n m_simpleTypes.put(Float.class, ElementType.REAL);\n m_simpleTypes.put(Double.class, ElementType.REAL);\n m_simpleTypes.put(byte[].class, ElementType.DATA);\n m_simpleTypes.put(Boolean.class, ElementType.TRUE);\n m_simpleTypes.put(Date.class, ElementType.DATE);\n }",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default List<IData> asList() {\n \n return notSupportedCast(\"IData[]\");\n }",
"public void genericStringArray() {\n\t\tArrayList<String> b1 = new ArrayList<String>();\n\t\tb1.add(\"ABC\");\n\t\tb1.add(\"sdfsdfs\");\n\t\tSystem.out.println(\"String generic ArrayList b1: \" + b1);\n\n\t}",
"public ArrayList() {\n _size = 0;\n _store = (E[]) new Object[32];\n }",
"private void intListToArrayList(int[] list, ArrayList<Integer> arrayList){\n for(int integer: list){\n arrayList.add(integer);\n }\n }",
"public ArrayList<String> sampleArrayList(){\n ArrayList<String> myArrayListString = new ArrayList<String>();\n myArrayListString.add(\"dog\");\n myArrayListString.add(\"cat\");\n myArrayListString.add(null);\n myArrayListString.add(\"anotherDog\");\n myArrayListString.add(null);\n myArrayListString.add(\"catty43\");\n myArrayListString.add(\"test14.22\");\n return myArrayListString;\n }",
"public static void main(String[] args) {\n\t\tArrayList<String> list1 = new ArrayList<String>();\n\n\t\t// this list is capable of hold any object\n\t\tArrayList list2 = new ArrayList();\t\t\n\t\tStudent s1 = new Student();\n\t\t\n\t\ts1.name = \"Leonch\";\n\t\ts1.code = 666;\n\t\t\n\t\tlist1.add(\"Jhon\");\n\t\tlist1.add(\"kat\");\n\t\tlist1.add(\"smith\");\n\t\tlist1.add(\"Jhon1\");\n\t\tlist1.add(\"Jhon2\");\n\t\tlist1.add(\"Jack\");\n\t\tlist1.add(\"Jhon4\");\n\t\tlist1.add(\"Jhon5\");\n\t\tlist1.add(\"Jhon6\");\n\t//\tlist1.add(33.33); error compilacion according Generic Type <String> only string is allowed it is double\n\t//\tlist1.add(23); error compilacion according Generic Type <String> only string is allowed it is int ............ etc\n\t\n\t\t\n\t\tlist2.add(12);\n\t\tlist2.add(33);\n\t\tlist2.add(22.34434);\n\t\tlist2.add(15.7f);\n\t\tlist2.add(true);\n\t\tlist2.add(null);\n\t\tlist2.add(s1);\n\t\tlist2.add(s1.code);\n\t\t\n\t\t// Iterate in ArrayList\n\t\tfor (String i : list1) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\t\t\t\n\t\tSystem.out.println(\"Object ArrayList Below hey\");\n\t\t\n\t\tfor (Object i : list2) {\n\t\t\t\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\t\n\t\t// Iterate in ArrayList with Iterator\n\t\tSystem.out.println(\"=====Iterating with Iterator=====\");\n\t\tIterator<String> itr = list1.iterator();\n\t\t/*System.out.println(itr.next());\n\t\tSystem.out.println(itr.next()); THIS RETREIVE ELEMENTS ONE BY ONE\n\t\tSystem.out.println(itr.next());*/\n\t\t\n\t\twhile(itr.hasNext()) {\n\t\t\tString str = itr.next();\n\t\t\tSystem.out.println(str);\n\t\t\t\n\t\t\t// remove element with iterator\n\t\t\t\n\t\t\tif(str.equals(\"Jack\")){\n\t\t\t\t\n\t\t\t\titr.remove(); // Jack se va es un void method\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"=========Iterator end ===========\");\n\t\tSystem.out.println(\"list1 after iteration is: \"+list1);\n\t\t\n\t\tSystem.out.println(\"prueva de git ignore\");\n\t\tSystem.out.println(\"y sigue sin pelarme 3\");\n\t\tSystem.out.println(\"Porfing .gitignore esta funcionando , no olvidad que ignorar un elemento en la creacion del proyecto no se puede\");\n\t\tSystem.out.println(\"hay que borrarlo hacer commit y ya despues se puede ignorar si se necesita ponerlo en local asi ya lo podemos ignorar\");\n\t\tSystem.out.println(\"la cosa es que no este en el repositorio de github(internet) si esta alli, no se puede ignorar \");\n\n\t\t// Print reference to list -> shall print elements in the list the way we added in a sequence\n\t\tSystem.out.println(\"list1 is: \"+list1);\n\t\tSystem.out.println(\"list1 is: \"+list2);\n\t\t\n\t\t// 2. Get the element from list\n\t\t\n\t\tString name = list1.get(2);\n\t\tSystem.out.println(\"name is: \" +name);\n\t\t\n\t\tObject o = list2.get(2);\n\t\tSystem.out.println(\"o is: \"+o);\n\t\t\n\t\t// 3. Update Element in List\n\t\tlist1.set(2,\"Fionna\");\n\t\tSystem.out.println(\"list 1 now is: \" + list1);\n\t\t\n\t\t// 4. Remove element from list\n\t\tlist1.remove(2);\n\t\tSystem.out.println(\"list1 after remove is: \" +list1);\n\t\t\n\t\t\n\t\t//list1.clear(); -> remove \n\t\t\n\t\t//ASI SON TAMBIEN LinkedList y Vector \n\t\t\n\t\t// locate element in arraylist\n\t\tif(list1.contains(\"Jhon\")) {\n\t\t\tSystem.out.println(\"yes Jhon is in the list1 \");\n\t\t}\n\t\t\n\t\n\t\t\t\t\n\t}",
"public TempList() {\n list = new ArrayList<T>();\n }",
"public ArrayList<T> getAsList(){\r\n return arrayList;\r\n }",
"public static void main(String[] args) {\n //declearing arrayList\n List<Integer> numbers = new ArrayList<Integer>();\n //storing data into arrayList\n numbers.add(90);\n numbers.add(80);\n\n //retrieving data from arrayList\n for(int i =0;i<numbers.size();i++) {\n System.out.println(numbers.get(i));\n\n }\n //retrieving data from arrayList for each loop\n // for each loop uses Iterator\n for (Integer num : numbers){\n System.out.println(num);\n }\n // Example of Data type or element type can be stored in arraylist\n Student st1 = new Student();\n Student st2 = new Student();\n st1.setId(111);\n st1.setName(\"Taheem\");\n st1.setDob(\"04-17-2012\");\n st1.setName_class(\"Freshman\");\n List<Student> studentList = new ArrayList<Student>();\n studentList.add(st1);\n studentList.add(st2);\n System.out.println( studentList.get(0).getId()+ \" \"+ studentList.get(0).getName()+\" \"+ studentList.get(0).getDob()+\" \"+ studentList.get(0).getName_class());\n\n }",
"@SuppressWarnings(\"unchecked\")\n public ArrayList() {\n list = (E[])new Object[DEFAULT_CAP];\n capacity = 10;\n size = 0;\n }",
"public ArrayList(Object[] e){\n this();\n for(Object i : e){\n this.add((T)i);\n }\n }",
"@SuppressWarnings( { \"rawtypes\", \"unchecked\" } )\n\tprotected static Vector toVector( List list )\n\t{\n\t\tVector v = new Vector( );\n\t\tfor ( Object o : list )\n\t\t{\n\t\t\tv.add( o );\n\t\t}\n\t\treturn v;\n\t}",
"public MyArrayList ()\r\n {\r\n \tlist = new Object[100];\r\n \tnumElements = 0;\r\n }",
"private void displayArrays(ArrayList list){}",
"public MyArrayList() {\r\n\t\tthis.list=new Object[this.capacity];\r\n\t}",
"public interface ISimpleList<Type> extends Iterable<Type> {\n /**\n * Add a value to the end of this list.\n * \n * @param t is the value added to this list\n */\n public void add(Type t);\n\n /**\n * Add a value at a specified index in the list, shifting other values to\n * make room.\n * \n * @param index is the index at which new value added\n * @param t the new value added\n * @throws IndexOutOfBoundsException\n * if index is greater than size of list or less than zero\n */\n public void add(int index, Type t);\n\n /**\n * Returns an iterator over this list's values, the iterator supports\n * remove.\n * \n * @return iterator (supporting remove))\n */\n public Iterator<Type> iterator();\n\n /**\n * Remove and return the value at the specified index, shifting other values\n * \n * @param index of value to remove\n * @return the removed value\n * @throws IndexOutOfBoundsException\n * if index < 0 or >= size()\n */\n public Type remove(int index);\n\n /**\n * Remove first occurrence of a value, and return true iff removal succeeds.\n * \n * @param t is value removed\n * @return true if a value is removed, false otherwise\n */\n public boolean remove(Type t);\n\n /**\n * Return the value at the specified index.\n * \n * @param index of value to return\n * @return value at specified index\n * @throws IndexOutOfBoundsException\n * if index < 0 or >= size()\n */\n public Type get(int index);\n\n /**\n * Return index of first occurrence of a value, or -1 if not found.\n * \n * @param t is valuel searched for\n * @return index of first occurrence of t, or -1 if t not found\n */\n public int indexOf(Type t);\n\n /**\n * Returns number of elements in this list.\n * \n * @return number of elements in list\n */\n public int size();\n}",
"public interface List<T> extends Collection<T> {\n\t\n\t/**\n\t * Returns the object that is stored in the list at position <code>index</code>.\n\t * @param index position from which the object will be returned\n\t * @return the object that is stored at position <code>index</code>\n\t * @throws IndexOutOfBoundsException index must be between 0 and size-1\n\t */\n\tT get(int index);\n\t\n\t/**\n\t * Inserts the object at the specified position. It does not overwrite the given value at the given position, \n\t * it shifts the elements at greater positions one place toward the end.\n\t * @param value object to be inserted\n\t * @param position index where the object should be inserted\n\t * @throws NullPointerException <code>null</code> object will not be inserted into the list\n\t * @throws IndexOutOfBoundsException index must be between 0 and size\n\t */\n\tvoid insert(T value, int position);\n\t\n\t/**\n\t * Searches the collection and returns the index of the first occurrence of the given value\n\t * or -1 if the value is not found.\n\t * @param value object that will be searched\n\t * @return index of the first occurrence of the given object or -1 if the value is not found\n\t */\n\tint indexOf(Object value);\n\t\n\t/**\n\t * Removes element at specified index from collection. \n\t * Element that was previously at location index+1 after this operation is on location index , etc.\n\t * @param index index at which the element should be removed\n\t * @throws IndexOutOfBoundsException index must be between 0 and size-1\n\t */\n\tvoid remove(int index);\n}",
"void addAll(intList list) throws IllegalAccessException;",
"TDrawingConstructor (ArrayList interpretation){\r\n fInterpretation=interpretation;\r\n}",
"public SimpleArrayList() {\n this.values = new Object[SimpleArrayList.DEFAULT_SIZE];\n }",
"public SimpleArrayList(int size) {\n this.values = new Object[size];\n }",
"public interface ListADT<T> extends CollectionADT {\n \n /**\n * Adds the specified element to the list at the front\n * @param element: the element to be added\n * \n */\n public void addFirst(T element);\n \n /**\n * Adds the specified element to the end of the list\n * @param element: the element to be added\n */\n public void addLast(T element);\n \n /**\n * Adds the specified element to the list after the existing element\n * @param existing: the element that is in the list already\n * @param element: the element to be added\n * @throws ElementNotFoundException if existing isn't in the list\n */\n public void addAfter(T existing, T element) throws ElementNotFoundException;\n \n /**\n * Removes and returns the specified element \n * @return the element specified\n * @throws EmptyCollectionException\n * @throws ElementNotFoundException\n */\n public T remove(T element) throws EmptyCollectionException, ElementNotFoundException;\n \n /**\n * Removes and returns the first element \n * @return the first element in the list\n * @throws EmptyCollectionException \n */\n public T removeFirst() throws EmptyCollectionException;\n \n /**\n * Removes and returns the last element \n * @return the last element in the list\n * @throws EmptyCollectionException \n */\n public T removeLast()throws EmptyCollectionException;\n \n /**\n * Returns (without removing) the first element in the list\n * @return element at the beginning of the list\n * @throws EmptyCollectionException \n */\n public T first() throws EmptyCollectionException;\n \n /**\n * Returns (without removing) the last element in the list\n * @return element at the end of the list\n * @throws EmptyCollectionException \n */\n public T last() throws EmptyCollectionException;\n \n \n}",
"protected <T> ArrayList<T> addToList(ArrayList<T> l, T value)\n {\n if (l == null) {\n l = new ArrayList<T>();\n }\n l.add(value);\n return l;\n }",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface MyGenericListInterface<T>\n{\n\t//Clears the list\n\tpublic void clear();\n\n\t//Add an item to the end of the List\n\tpublic void add(T word);\n\n\t//Find an item in the List and returns true or false value if the word is found\n\tpublic boolean find(T word);\n\n\t//A way of iterating over the items in the List\n\tpublic T iterator();\n\n\t//Remove an element from the List\n\tpublic void remove(T word);\n\n\t//Return the total number of elements in the List\n\tpublic int count();\n}",
"private Class[] getClasses(ArrayList objectList) {\n Class []classTypes = new Class[objectList.size()];\n for(int i=0; i<objectList.size(); ++i) {\n Object obj = objectList.get(i);\n if(obj instanceof Double) classTypes[i] = Double.TYPE;\n else if(obj instanceof Float) classTypes[i] = Float.TYPE;\n else classTypes[i] = obj.getClass();\n }\n return classTypes;\n }",
"public abstract ArrayList<Integer> getIdList();"
] | [
"0.7092965",
"0.6787715",
"0.66870147",
"0.65927887",
"0.65765595",
"0.65681",
"0.6532898",
"0.6485719",
"0.6471054",
"0.6452537",
"0.6444074",
"0.6419967",
"0.63622516",
"0.6257102",
"0.62533927",
"0.6239667",
"0.6211282",
"0.6175785",
"0.61691475",
"0.61614656",
"0.61149454",
"0.60968524",
"0.6085801",
"0.60766417",
"0.6062548",
"0.60391074",
"0.598462",
"0.5982536",
"0.5975585",
"0.5970628",
"0.596879",
"0.59674025",
"0.5960157",
"0.59507596",
"0.59444517",
"0.59357744",
"0.5933307",
"0.5927818",
"0.59268945",
"0.5902313",
"0.5897258",
"0.5881655",
"0.5878066",
"0.58664185",
"0.58592206",
"0.58398765",
"0.5837699",
"0.5806057",
"0.5800794",
"0.57712567",
"0.5768",
"0.57567155",
"0.57174826",
"0.57049847",
"0.5695434",
"0.56843305",
"0.5684247",
"0.56791985",
"0.56788045",
"0.56720215",
"0.56711864",
"0.5667211",
"0.5666764",
"0.5658626",
"0.5651035",
"0.5649891",
"0.5640287",
"0.5639301",
"0.5636705",
"0.5629152",
"0.5616802",
"0.5612859",
"0.5610761",
"0.56087893",
"0.5606619",
"0.56040525",
"0.5593293",
"0.5589859",
"0.55742395",
"0.5549133",
"0.5545786",
"0.5542251",
"0.5527057",
"0.5526186",
"0.55225766",
"0.5519416",
"0.5516278",
"0.5511416",
"0.55062824",
"0.5504993",
"0.5496047",
"0.54959875",
"0.54925233",
"0.5491267",
"0.5482169",
"0.5470488",
"0.5469162",
"0.5464458",
"0.54573995",
"0.5454793",
"0.5454695"
] | 0.0 | -1 |
Creates and returns a reference to any ArrayList of specified number of Integers where each element is assigned a random value | public static ArrayList<Integer> randomIntegerList(int size, int range)
{
ArrayList<Integer> list = new ArrayList<Integer>();
//int size = list.size();
/*
* The add method adds the specified object to the end of the list
*
* Autoboxing:
* Primitve values are automatically converted to the
* wrapper class. However, the type promotion
* does not occur.
*/
for (int i = 0; i<size; i++)
{
int value = (int)(Math.random() * range) +1;
list.add(value);
}
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<Integer> prepareRandomIntegeArrayList(int size) {\n\t\tList<Integer> arrayList = new ArrayList<>(size);\n\t\tfor (int j = 0; j < size; j++) {\n\t\t\tarrayList.add(j, (int) ((Math.random() * 1000000)));\n\t\t}\n\t\treturn arrayList;\n\t}",
"@BeforeEach\n public void createList() {\n myListOfInts = new ArrayListDIY<>(LIST_SIZE);\n listOfInts = new ArrayList<>(LIST_SIZE);\n\n getRandomIntStream(0,10).limit(LIST_SIZE)\n .forEach(elem -> {\n listOfInts.add(elem);\n myListOfInts.add(elem);\n });\n }",
"public static void arrayListMethod(int numberOfIntegers) {\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\tRandom rand = new Random();\n\n\t\tfor (int i = 0; i < numberOfIntegers; i++) {\n\t\t\tlist.add(rand.nextInt(numberOfIntegers));\n\t\t}\n\n\t\tfor (int i = 0; i < numberOfIntegers; i++) {\n\t\t\tlist.remove(0);\n\t\t}\n\t}",
"public ArrayList<RandomItem> getRandomItems();",
"public ArrayList<Integer> makeIndividual();",
"public List<Vec> sample(int count, Random rand);",
"protected static ArrayList<String> GenNumber() {\n\n ArrayList<String> initialList = new ArrayList<>();\n\n initialList.add(\"1\"); //Add element\n initialList.add(\"2\");\n initialList.add(\"3\");\n initialList.add(\"4\");\n initialList.add(\"5\");\n initialList.add(\"6\");\n initialList.add(\"7\");\n initialList.add(\"8\");\n initialList.add(\"9\");\n\n Collections.shuffle(initialList); //Random the position\n\n return initialList;\n }",
"public static ArrayList<Integer> genRandomArray(int s) {\n\t\t// TODO Auto-generated method stub\n\t\tArrayList<Integer> R = new ArrayList<Integer>();\n\t\tint i = 0;\n\t\tRandom randNum = new Random();\n\t\tfor (i = 0; i < s; i++) {\n\t\t\tint randNumber = MurmurHash.hashLong(i);\n\t\t\tR.add(randNumber);\n\n\t\t}\n\n\t\treturn R;\n\t}",
"private MyIntegerList generatedPopulatedList() {\n final MyIntegerList mil = new MyIntegerList();\n\n mil.push(1);\n mil.push(2);\n mil.push(1);\n mil.push(6);\n mil.push(6);\n mil.push(7);\n mil.push(2);\n mil.push(2);\n mil.push(0);\n mil.push(5);\n\n return mil;\n }",
"public static ArrayList<Integer> createRandomList(int n) {\n\n\t\tArrayList<Integer> list = new ArrayList<>();\n\t\tRandom rand = new Random();\n\n\t\tint max = 1000000;\n\t\tint min = -1000000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint value = (int) ((Math.random() * (max - min)) + min);\n\t\t\tlist.add(value);\n\t\t}\n\t\treturn list;\n\t}",
"public static Integer[] randList(int size){\r\n Random generator = new Random();\r\n Integer[] list = new Integer[size];\r\n for(int i=0; i<size; i++){\r\n list[i]=generator.nextInt(10);\r\n }\r\n System.out.println(\"random list of \" + size + \" items\");\r\n for(Integer i: list){\r\n System.out.print(i + \" \");\r\n }\r\n System.out.println(\"\\n\");\r\n return list;\r\n }",
"private static List<Integer> initLista(int tamanho) {\r\n\t\tList<Integer> lista = new ArrayList<Integer>();\r\n\t\tRandom rand = new Random();\r\n\r\n\t\tfor (int i = 0; i < tamanho; i++) {\r\n\t\t\tlista.add(rand.nextInt(tamanho - (tamanho / 10) + 1)\r\n\t\t\t\t\t+ (tamanho / 10));\r\n\t\t}\r\n\t\treturn lista;\r\n\t}",
"public RandomizedCollection() {\n nums = new ArrayList<>();\n num2Index = new HashMap<>();\n rand = new Random();\n }",
"public List<Integer> getRandomElement(List<Integer> list) {\n\t\t//Random rand = new Random(); \n\t\tList<Integer> newList = new ArrayList<>();\n\t\t//newList.add(10);\n\n//\t\tfor(int i=0;i<5;i++) {\n//\t\tif(newList.size()<4) {\n//\t\t\tint n=Random(list);\n//\t\t\tif(newList.contains(n)) {\n//\t\t\t\t\n//\t\t\t}else {\n//\t\t\t\tnewList.add(n);\n//\t\t\t}\n//\t\t}\n//\t\t}\n\t\twhile(newList.size()<=2) {\n\t\t\tint n=Random(list);\n\t\t\tif(newList.contains(n)) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tnewList.add(n);\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t\n\t\treturn newList;\n\t}",
"private static ArrayList<Integer> makeListOfInts() {\n ArrayList<Integer> listOfInts = new ArrayList<>(Arrays.asList(7096, 3, 3924, 2404, 4502,\n 4800, 74, 91, 9, 7, 9, 6790, 5, 59, 9, 48, 6345, 88, 73, 88, 956, 94, 665, 7,\n 797, 3978, 1, 3922, 511, 344, 6, 10, 743, 36, 9289, 7117, 1446, 10, 7466, 9,\n 223, 2, 6, 528, 37, 33, 1616, 619, 494, 48, 9, 5106, 144, 12, 12, 2, 759, 813,\n 5156, 9779, 969, 3, 257, 3, 4910, 65, 1, 907, 4464, 15, 8685, 54, 48, 762, 7952,\n 639, 3, 4, 8239, 4, 21, 306, 667, 1, 2, 90, 42, 6, 1, 3337, 6, 803, 3912, 85,\n 31, 30, 502, 876, 8686, 813, 880, 5309, 20, 27, 2523, 266, 101, 8, 3058, 7,\n 56, 6961, 46, 199, 866, 4, 184, 4, 9675, 92));\n\n return listOfInts;\n }",
"public void randomize()\n {\n int max = list.length;\n for (int i=0; i<list.length; i++)\n list[i] = (int)(Math.random() * max) + 1;\n }",
"public Integer[] randomizeObject(int inputSize){\n Integer[] list = new Integer[inputSize];\n for(int i = 0; i < inputSize; i++){\n // generate numbers within absolute range of input size to increase the chance to get distinct elements\n list[i] = ThreadLocalRandom.current().nextInt(-inputSize, inputSize + 1);\n }\n // System.out.println(Arrays.toString(list));\n return list;\n }",
"public List<Integer> generateList(int size){\n List<Integer> data = new ArrayList<>();\n for (int i = 0; i < size; i++){\n data.add(i);\n }\n return data;\n }",
"public static List<Integer> randomData(final int size) {\n\t\tfinal List<Integer> output = new ArrayList<Integer>();\n\n\t\tfor (int i = 0; i < size; i++)\n\t\t\toutput.add((int)(Math.random() * MAX_VALUE));\n\n\t\treturn output;\n\t}",
"public static List<Integer> makeList(int size) {\r\n List<Integer> result = new ArrayList<>();\r\n /** \r\n * taking input from the user \r\n * by using Random class. \r\n * \r\n */\r\n for (int i = 0; i < size; i++) {\r\n int n = 10 + rng.nextInt(90);\r\n result.add(n);\r\n } // for\r\n\r\n return result;\r\n /**\r\n * @return result \r\n */\r\n }",
"private int[] makeRandomList(){\n\t\t\n\t\t//Create array and variables to track the index and whether it repeats\n\t\tint[] list = new int[ 9 ];\n\t\tint x = 0;\n\t\tboolean rep = false;\n\t\t\n\t\t//Until the last element is initialized and not a repeat...\n\t\twhile( list[ 8 ] == 0 || rep)\n\t\t{\n\t\t\t//Generate a random number between 1 and 9\n\t\t\tlist[ x ]= (int)(Math.random()*9) + 1;\n\t\t\trep = false;\n\t\t\t\n\t\t\t//Check prior values to check for repetition\n\t\t\tfor(int y = 0; y < x; y++)\n\t\t\tif( list[x] == list[y] ) rep = true;\n\t\t\t\n\t\t\t//Move on to the next element if there is no repeat\n\t\t\tif( !rep ) x++;\n\t\t}\n\t\t\n\t\t//return the array\n\t\treturn list;\n\t}",
"public void randomize()\n {\n for (int i=0; i<list.length; i++)\n list[i] = (int)(Math.random() * 100) + 1;\n }",
"public int getRandom() {\n return lst.get(rand.nextInt(lst.size()));\n }",
"public ArrayList<Item> createArrayList(int items) {\n\t\tArrayList<Item> array = new ArrayList<Item>();\n\t\tfor (int i=0;i<items;i++) {\n\t\t\t\n\t\t\tItem item = genItem(i,items);\n\t\t\tarray.add(item);\n\t\t}\n\t\t\n\t\t\n\t\treturn array;\n\t\t\n\t}",
"public int[] randomize(int inputSize){\n int[] list = new int[inputSize];\n for(int i = 0; i < inputSize; i++){\n // generate numbers within absolute range of input size to increase the chance to get distinct elements\n list[i] = ThreadLocalRandom.current().nextInt(0, inputSize + 1);\n }\n// System.out.println(Arrays.toString(list));\n return list;\n }",
"public MyArrayList() {\n this.IntList = new int[10];\n this.CharList = new Character[10];\n this.StringList = new String[5];\n \n // fill all 3 arrays with data\n for(int i = 0; i < IntList.length; i++) {\n IntList[i] = (int) (Math.random()*52);\n }\n\t \n // Populate char array\n for(int i = 0; i < CharList.length; i++) {\n \n Random random = new Random();\n CharList[i] = (char)(random.nextInt(26) + 'a');\n }\n\t \n // Populate String array\n StringList[0] = \"joe\";\n StringList[1] = \"mark\";\n StringList[2] = \"abbey\";\n StringList[3] = \"tony\";\n StringList[4] = \"kevin\"; \n }",
"private List<Integer> generateRandom() {\n Integer[] randArr = new Integer[numCols*numRows];\n\n int start = 0;\n int end;\n for(int i = 0; i < myStateMap.size(); i++) {\n int amt = myStateMap.get(i).getAmount();\n end = amt + start;\n for(int j = start; j < end; j++) {\n if(end > randArr.length) {\n break;\n }\n randArr[j] = myStateMap.get(i).getType();\n }\n start = end;\n }\n\n List<Integer> arr = new ArrayList<>(Arrays.asList(randArr));\n Collections.shuffle(arr);\n return arr;\n }",
"public void generateRandomQuestions(){\r\n numberHolder = new ArrayList<>(NUMBER_OF_QUESTIONS);\r\n for (int i = 0; i < NUMBER_OF_QUESTIONS; i++)\r\n numberHolder.add(i);\r\n\r\n Collections.shuffle(numberHolder);\r\n System.out.println(numberHolder);\r\n\r\n }",
"private ArrayList _getRandomList(int num, int min, int max) {\n ArrayList list = new ArrayList();\n ArrayList tmp = new ArrayList();\n for (int i = min; i <= max; i++) {\n tmp.add(new Integer(i));\n }\n \n for (int i = 0; i < num; i++) {\n \tif(tmp.size() > 1){\n\t int pos = _getRandomFromRange(0, tmp.size() - 1);\n\t list.add( (Integer) tmp.get(pos));\n\t tmp.remove(pos);\n \t}\n }\n\n return list;\n }",
"public static ArrayList<Integer> createList(int listSize) {\n ArrayList<Integer> list = new ArrayList<>();\n for (int i = 0; i < listSize; i++) {\n list.add(i);\n }\n return list;\n }",
"public static int getRandomNumbers(ArrayList simList) {\r\n return r.nextInt(simList.size());\r\n }",
"public void setRandomItems(ArrayList<RandomItem> items);",
"public int getRandom() {\n return _list.get( rand.nextInt(_list.size()) );\n }",
"public ArrayList<Instance> randomPick(final int N) {\n\t\tif(cache.nTriples == null)\n\t\t\tthis.count();\n\t\tArrayList<Instance> instances = RandomInstance.get(this, N);\n\t\tCBDBuilder.build(instances);\n\t\treturn instances;\n\t}",
"private static List<Integer> nextInt() {\n\t\tRandom rnd = new Random();\n\t\tList<Integer> l = new ArrayList<Integer>();\n\t\tfor (;;) {\n\t\t\tfinal int r = rnd.nextInt(5);\n\t\t\tif (!l.contains(r)) {\n\t\t\t\tl.add(r);\n\t\t\t}\n\t\t\tif (l.size() == 5)\n\t\t\t\treturn l;\n\t\t}\n\t}",
"private ArrayIntList buildList(int size) {\n\t\tArrayIntList list = new ArrayIntList();\n\t\tfor (int i=1;i<=size;i++)\n\t\t\tlist.add(i);\n\t\treturn list; \n\t}",
"public ArrayList<Population> InitializePopulations (int NumberOfPopulations, int NumberOfAgents){\n \n ArrayList<Population> PopulationsList = new ArrayList();\n \n if(NumberOfPopulations == 1){\n \n PopulationsList.add(InitSinglePopulation(NumberOfAgents));\n \n }else{\n \n for(int i = 0; i < NumberOfPopulations; i++){ \n double temp = rand.nextDouble();\n PopulationsList.add(InitSinglePopulation(i, NumberOfAgents, temp));\n }\n \n }\n \n \n return PopulationsList;\n }",
"public int getRandom() {\n int n = l.size();\n Random rand = new Random();\n return l.get(rand.nextInt(n));\n }",
"public RandomizedCollection() {\n map=new HashMap();\n li=new ArrayList();\n rand=new Random();\n }",
"public int getRandom() {\n int x=rand.nextInt(li.size());\n return li.get(x);\n }",
"public RandomizedCollection() {\n map = new HashMap<>();\n arr = new ArrayList<>();\n }",
"public static void linkedListMethod(int numberOfIntegers) {\n\t\tLinkedList<Integer> list = new LinkedList<Integer>();\n\t\tRandom rand = new Random();\n\n\t\tfor (int i = 0; i < numberOfIntegers; i++) {\n\t\t\tlist.add(rand.nextInt(numberOfIntegers));\n\t\t}\n\n\t\tfor (int i = 0; i < numberOfIntegers; i++) {\n\t\t\tlist.remove(0);\n\t\t}\n\n\t}",
"public static int[] f_fill_vector_age_people(int N){\n int[] v_vector_age= new int[N];\n for(int i=0; i<N; i++){\n\n v_vector_age[i]= (int) (Math.random()*100)+1;\n\n }\n return v_vector_age;\n }",
"public static void randomize( ArrayList<Integer> L) {\n\tRandom rng = new Random();\n\tInteger tmp1, tmp2;\n\tInteger randInd1, randInd2;\n\tint limit = L.size();\n\tfor (int i = 0; i < limit; i++) { // number of times to swap\n\t randInd1 = new Integer( rng.nextInt(L.size()) );\n\t randInd2 = new Integer( rng.nextInt(L.size()) );\n\t while (randInd2 == randInd1 && L.size() > 1) {\n\t\trandInd2 = rng.nextInt(L.size());\n\t }\n\t tmp1 = L.get(randInd1);\n\t tmp2 = L.get(randInd2);\n\t L.set(randInd1, tmp2);\n\t L.set(randInd2, tmp1);\n\t}\n }",
"public int getRandom() {\n return elementsList.get(rand.nextInt(elementsList.size()));\n }",
"public abstract ArrayList<Integer> getIdList();",
"public static IntArrayList shuffle(IntArrayList list, Random random) {\n int maxHalf = list.size() / 2;\n for (int x1 = 0; x1 < maxHalf; x1++) {\n int x2 = random.nextInt(maxHalf) + maxHalf;\n int tmp = list.buffer[x1];\n list.buffer[x1] = list.buffer[x2];\n list.buffer[x2] = tmp;\n }\n return list;\n }",
"public IntegerList(int size)\n {\n list = new int[size];\n }",
"public static IntArrayList permutation(int size, Random rnd) {\n IntArrayList result = iota(size);\n shuffle(result, rnd);\n return result;\n }",
"public int getRandom() {\n Iterator<Integer> it = list.iterator();\n int i = (int) (Math.random()*list.size());\n for (int j = 0; j < i; j++) {\n it.next();\n }\n return it.next();\n }",
"public List<Fruit> generateShuffled(int listType) {\r\n final List<Fruit> list = innerGenerate(listType);\r\n Collections.shuffle(list);\r\n return Collections.unmodifiableList(list);\r\n }",
"public ArrayList<Integer> generateWinner() {\n if (winner.size() == 7) {\n if (!sorted) {\n Collections.sort(winner);\n sorted = true;\n }\n return winner;\n }\n if (numbers.size() == 32 || winner.size() != 0) {\n init();\n }\n\n for (int i = 0; i < 7; i++) {\n winner.add(numbers.get(random.nextInt(numbers.size())));\n numbers.remove(winner.get(i));\n }\n Collections.sort(winner);\n return winner;\n }",
"public static void createArrays() {\r\n\t\tRandom rand = new Random();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tint size = rand.nextInt(5) + 5;\r\n\t\t\tTOTAL += size;\r\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\r\n\t\t\tfor (int j = 0; j < size; j++) {\r\n\t\t\t\tint value = rand.nextInt(1000) + 1;\r\n\t\t\t\tnumList.add(value);\r\n\t\t\t}\r\n\t\t\tCollections.sort(numList);\r\n\t\t\tarrayMap.put(i + 1, numList);\r\n\t\t}\r\n\t}",
"public static ImmutableIntList identity(int count) {\n final int[] integers = new int[count];\n for (int i = 0; i < integers.length; i++) {\n integers[i] = i;\n }\n return new ImmutableIntList(integers);\n }",
"List<User> getRandomUsers(List<User> uList, int num);",
"public static IntArrayList constant(int size, int value) {\n IntArrayList result = new IntArrayList(size);\n Arrays.fill(result.buffer, value);\n result.elementsCount = size;\n return result;\n }",
"public IntList(int size){\n\t\tprime = new ArrayList<Integer>(size);\n\t}",
"private List<Integer> makeList(int max) {\n List<Integer> myList = new ArrayList<>();\n for (int i = 1; i < max; i++) {\n myList.add(i);\n }\n \n return myList;\n }",
"private ArrayList<Integer> fillDomain() {\n ArrayList<Integer> elements = new ArrayList<>();\n\n for (int i = 1; i <= 10; i++) {\n elements.add(i);\n }\n\n return elements;\n }",
"public int getRandom() {\n int i = random.nextInt(list.size());\n return list.get(i);\n }",
"public IntegerList(int size)\n {\n list = new int[size];\n }",
"private ArrayList<Integer> getRandomPointsIndex(float ratio,\n ArrayList<Integer> occupiedNList) {\n ArrayList<Integer> newNList = new ArrayList<Integer>();\n ArrayList<Integer> freeNList = new ArrayList<Integer>();\n Dimension dim = layoutPanel.getLayoutSize();\n int height = dim.height;\n int width = dim.width;\n int size = height * width;\n int newNListSize = (int) (size * ratio);\n\n // create a free list\n for (int i = 0; i < size; i++) {\n if (occupiedNList == null || !occupiedNList.contains(i)) {\n freeNList.add(i);\n }\n }\n\n // create a new neurons list\n Random rnd = new Random();\n while (freeNList.size() > 0 && newNList.size() < newNListSize) {\n int i = rnd.nextInt(freeNList.size());\n newNList.add(freeNList.get(i));\n freeNList.remove(i);\n }\n Collections.sort(newNList);\n\n return newNList;\n }",
"public static String[] getRandomElements(ArrayList<String> list, \n int totalItems) \n { \n Random rand = new Random(); \n \n ArrayList<String> oldList = new ArrayList<>();\n for (int i = 0; i < list.size(); i++) {\n \toldList.add(list.get(i));\n }\n \n String[] out = new String[totalItems];\n for (int i = 0; i < totalItems; i++) { \n \n // take a random index between 0 to size \n // of given List \n int randomIndex = rand.nextInt(oldList.size()); \n \n // add element in temporary list \n out[i] = oldList.get(randomIndex); \n \n // Remove selected element from original list \n oldList.remove(randomIndex); \n } \n \n return out; \n }",
"public int getRandom() {\n int index = rnd.nextInt(list.size());\n return list.get(index).val;\n }",
"private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}",
"public int getRandom() {\n Random random = new Random();\n int i = random.nextInt(list.size());\n return list.get(i);\n }",
"@SuppressWarnings(\"unchecked\")\r\n public void createList() {\r\n items = new int[MAX_LIST];\r\n NumItems = 0;\r\n }",
"private List<Integer> createListCombinInSlot(List<Integer> tempListForSize) {\n List<Integer> list = new ArrayList<>();\n count++;//slot counter\n if (tempListForSize.size() == 0) {// if the first time run\n for (int i = 0; i < SIZE; i++) {\n int idImageCombination = createListShowCombin(i);\n list.add(idImageCombination);// add the random id of the picture\n }\n } else {// if not the first time run\n switch (count) {\n case 1:\n items.clear();\n list.addAll(tempList);\n tempList.clear();\n break;\n case 2:\n items2.clear();\n list.addAll(tempList2);\n tempList2.clear();\n break;\n case 3:\n items3.clear();\n list.addAll(tempList3);\n tempList3.clear();\n break;\n }//switch\n for (int i = 3; i < SIZE; i++) {\n\n int idImageCombination = createListShowCombin(i);\n switch (count) {\n case 1:\n list.add(idImageCombination);// add the random id of the picture\n break;\n case 2:\n list.add(idImageCombination);// add the random id of the picture\n break;\n case 3:\n list.add(idImageCombination);// add the random id of the picture\n break;\n }//switch\n }//for\n }//if\n flag = false;\n return list;\n }",
"public TempList(int n) {\n list = new ArrayList<T>(n >= 0 ? n : 0);\n }",
"private void collectRandomRIDs(){\n\t\tint numRIDs = iterations + 1;\n\t\trandomRID_list = new String[numRIDs];\n\t\tString randomClusterName;\n\t\tint clusterID, randomPosition;\n\t\t\n\t\t// Collect #iterations of random RID's\n\t\tfor(int i=0; i < numRIDs; i++){\n\t\t\trandomClusterName = env.VERTEX_PREFIX + (int) (Math.random() * env.NUM_VERTEX_TYPE);\n\t\t\tclusterID = db.getClusterIdByName(randomClusterName); \n\t\t\tOClusterPosition [] range = db.getStorage().getClusterDataRange(clusterID);\n\t\t\t\n\t\t\trandomPosition = (int) (Math.random() * range[1].intValue()) + range[0].intValue();\n\t\t\trandomRID_list[i] = \"#\" + clusterID + \":\" + randomPosition;\n\t\t}\n\t\t\n\t}",
"public Item sample() {\n if (N == 0) throw new java.util.NoSuchElementException();\n return collection[rnd.nextInt(N)];\n }",
"public int getRandom() {\n Random random = new Random();\n int val = list.get( random.nextInt(list.size()));\n return val;\n }",
"public SimpleArrayList(int size) {\n this.values = new Object[size];\n }",
"public IntArrayList() {\n this(DEFAULT_EXPECTED_ELEMENTS);\n }",
"public LightCollection(int noOfLights, String[] listOfColours) {\r\n \tlightsArray = new ArrayList<Light>();\r\n this.listOfColours = listOfColours;\r\n for (int i = 0; i < noOfLights; i++) {\r\n \tlightsArray.add(getColour(i));\r\n }\r\n }",
"@Override protected List<String> initialize(int size){\n container.clear();\n container.addAll(Arrays.asList(Generated.array(String.class, new RandomGenerator.String(), size)));\n return container;\n }",
"public static ArrayList<Long> getPopular(){\n return new ArrayList<Long>();\n }",
"public <T> T of(List<T> list) {\n return list.get(random.nextInt(list.size() - 1));\n }",
"public RandomizedSet() {\n\n\n sub =new ArrayList<Integer>();\n hm=new HashMap<Integer,Integer>();\n rand =new Random();\n\n }",
"public List(int length, int x) {\n if (x == 1){\n list = new int[]{5, 4, 3, 2, 1, 10, 9, 8, 7, 6};\n }else if (x == 2) {\n list = new int[length];\n generateList();\n }else if (x == 3) {\n list = new int[length];\n }\n }",
"public int getRandom() {\r\n var list = new ArrayList<>(set);\r\n return list.get(new Random().nextInt(set.size()));\r\n }",
"public int getRandom() {\n Random random = new Random();\n return list.get(random.nextInt(list.size()));\n }",
"public Integer[] createArray() {\n Integer[] value = new Integer[defaultLaenge];\n\n for (int i = 0; i < value.length; i++) {\n value[i] = (int)(value.length*Math.random());\n }\n\n return value;\n }",
"public static BiDirectionalNullTerminatedTailedLinkedList<Integer> randomIntList(\n int size, int limit) {\n BiDirectionalNullTerminatedTailedLinkedList<Integer> r = new\n BiDirectionalNullTerminatedTailedLinkedList<>();\n\n for (int i = 0; i < size; ++i) {\n r.put(RAND.nextInt(limit));\n }\n\n return r;\n }",
"public static List<Integer> getIntegerList(){\n List<Integer> nums = new ArrayList<>();//ArrayList<Integer> list = new ArrayList<>();\n for(int i=0;i<=1_000_000;i++) {\n nums.add(i);\n }\n return nums;\n }",
"public void initialiseNewRandomPopulation(Random rnd) {\n\t\tthis.population = new ArrayList<Individual>();\n\t\tfor (int i = 0; i < this.popSize; i++) {\t\t\t\t\t//FOR ALL DESIRED POPULATION SIZE\n\t\t\tdouble[] randomValues = new double[DIMENSIONS];\t\t\t//INITIATE RANDOM X ARRAY WITH CORRECT DIMENSIONS\n\t\t\tfor (int j = 0; j < DIMENSIONS; j++) {\t\t\t\t\t//CREATE RANDOM X VALUES\n\t\t\t\trandomValues[j] = -5 + rnd.nextDouble() * 10;\t\t//ASSIGN VALUES TO EACH POSITION IN ARRAY\n\t\t\t}\n\t\t\tIndividual newInd = new Individual(randomValues);\t\t//CREATE NEW INDIVIDUAL WITH RANDOM X VALUES\n\t\t\tthis.population.add(newInd);\t\t\t\t\t\t\t//ADD INDIVIDUAL TO POPULATION\n\t\t}\n\t}",
"RandomArrayGenerator() {\n this.defaultLaenge = 16;\n }",
"public static void populate() {\n for (int i = 1; i <= 15; i++) {\n B.add(i);\n Collections.shuffle(B);\n\n }\n for (int i = 16; i <= 30; i++) {\n I.add(i);\n Collections.shuffle(I);\n }\n for (int n = 31; n <= 45; n++) {\n N.add(n);\n Collections.shuffle(N);\n }\n for (int g = 46; g <= 60; g++) {\n G.add(g);\n Collections.shuffle(G);\n }\n for (int o = 61; o <= 75; o++) {\n O.add(o);\n Collections.shuffle(O);\n }\n\n for (int i = 1; i <= 75; i++) {\n roll.add(i); // adds the numbers in the check list\n }\n }",
"private V arbitraryApex(List<V> Sstar){\n\t\tint i = rand.nextInt(Sstar.size());\n\t\treturn Sstar.get(i);\n\n\t}",
"public ArrayList<Player> genRecruits( int number ) {\n ArrayList<Player> PlayerList = new ArrayList<>();\n int basePrestige = 25;\n int randPrestige = 75;\n for (int i = 0; i < number/5; ++i) {\n Player genPG = genPlayer(1, basePrestige + (int)(Math.random()*randPrestige), 1);\n Player genSG = genPlayer(2, basePrestige + (int)(Math.random()*randPrestige), 1);\n Player genSF = genPlayer(3, basePrestige + (int)(Math.random()*randPrestige), 1);\n Player genPF = genPlayer(4, basePrestige + (int)(Math.random()*randPrestige), 1);\n Player genC = genPlayer(5, basePrestige + (int)(Math.random()*randPrestige), 1);\n PlayerList.add(genPG);\n PlayerList.add(genSG);\n PlayerList.add(genSF);\n PlayerList.add(genPF);\n PlayerList.add(genC);\n }\n \n return PlayerList;\n }",
"public abstract ArrayList<Integer> getSudokuNumbersList();",
"void createArray(int n) {\n numbers = new int[n];\n for ( int i = 0; i < n; i++){\n numbers[i] = random.nextInt(1000);\n }\n }",
"public ArrayList()\n {\n list = new int[SIZE];\n length = 0;\n }",
"@Override\n public <T> T getRandomElement(List<T> list) {\n return super.getRandomElement(list);\n }",
"public static Collection<Item> generateItems(int numberOfItems) {\n Random r = new Random(97);\n if (numberOfItems > 0) {\n Collection<Item> gameItems = new Stack<>();\n int power;\n for (int i = 0; i < numberOfItems; i++) {\n\n switch (ItemType.random()) {\n case HEALTH_POTION:\n power = (r.nextInt(3) + 1) * 100;\n gameItems.add(new HealthPotion(\"HealthPotion (\" + power + \")\", power));\n break;\n case POISON:\n power = (r.nextInt(8) + 1) * 20;\n gameItems.add(new Poison(\"Poison (\" + power + \")\", power));\n break;\n case ARMOR:\n power = (r.nextInt(6) + 1) * 10;\n gameItems.add(new Armor(\"Armor (\" + power + \")\", power));\n break;\n case WEAPON:\n power = (r.nextInt(7) + 1) * 10;\n gameItems.add(new Weapon(\"Weapon (\" + power + \")\", power));\n break;\n default:\n break;\n }\n }\n return gameItems;\n }\n return null;\n }",
"private List<Tuple> randomSampleFromList(List<Tuple> list, int sampleSize, boolean withReplacement,\n\t\t\tRandom randomGenerator) {\n\t\tList<Tuple> sample = new LinkedList<Tuple>();\n\n\t\tif (list.size() <= sampleSize) {\n\t\t\tsample.addAll(list);\n\t\t} else {\n\t\t\tSet<Integer> usedIndexes = new HashSet<Integer>();\n\t\t\tint resultsCounter = 0;\n\t\t\twhile (resultsCounter < sampleSize && usedIndexes.size() < list.size()) {\n\t\t\t\tint randomIndex = randomGenerator.nextInt(list.size());\n\t\t\t\tif (withReplacement || !usedIndexes.contains(randomIndex)) {\n\t\t\t\t\tsample.add(list.get(randomIndex));\n\t\t\t\t\tresultsCounter++;\n\t\t\t\t\tusedIndexes.add(randomIndex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn sample;\n\t}",
"private static void InitRandBag()\n {\n int k=(int)Math.floor(Math.random()*50);\n R[0]=k;\n\n //Generate the rest of the numbers\n for(int i=1;i<950;i++)\n {\n k=k+(int)Math.floor(Math.random()*50);\n R[i]=k;\n }\n\n //Shuffle the list\n for(int i=0;i<950;i++)\n {\n int temp = R[i];\n k = (int)Math.floor(Math.random()*950);\n R[i]=R[k];\n R[k]=temp;\n }\n }",
"private List<Integer> loadTestNumbers(ArrayList<Integer> arrayList) {\n for (int i = 1; i <= timetablepro.TimetablePro.MAX_TIMETABLE; i++) {\n arrayList.add(i);\n }\n return arrayList;\n }",
"private static int[] createRandomFilledArrayOfLength(int n) {\n int[] list = new int[n];\n Random rand = new Random();\n for (int i = 0; i < n; i++) {\n list[i] = rand.nextInt(2*MAX_VALUE) - MAX_VALUE;\n }\n return list;\n }",
"public static int[] makeArray( Random random){\n\t\tint[] arr = new int[10];\n\t\tfor (int i = 0; i < arr.length; i++)\n\t\t\tarr[i] = random.nextInt(200);\n\t\treturn arr;\n\t}"
] | [
"0.7182159",
"0.694269",
"0.68865925",
"0.68092597",
"0.67386",
"0.67078364",
"0.6700746",
"0.66494834",
"0.65815264",
"0.65476185",
"0.65201133",
"0.6518697",
"0.6453991",
"0.6424878",
"0.64152825",
"0.6371411",
"0.63561356",
"0.6352909",
"0.63465047",
"0.6325425",
"0.63245165",
"0.6315116",
"0.6269084",
"0.6249064",
"0.62382483",
"0.6237283",
"0.6223907",
"0.6216569",
"0.6212815",
"0.62018436",
"0.61995935",
"0.6180853",
"0.61806744",
"0.61667466",
"0.61181736",
"0.60744214",
"0.6043817",
"0.6029055",
"0.6026039",
"0.6016183",
"0.60150915",
"0.5990971",
"0.59826005",
"0.5965298",
"0.5950154",
"0.591013",
"0.5906249",
"0.590088",
"0.5897808",
"0.5889393",
"0.58845896",
"0.58581084",
"0.58518505",
"0.5850513",
"0.5848294",
"0.58299124",
"0.5828529",
"0.5822422",
"0.5818661",
"0.5799378",
"0.57921237",
"0.5787325",
"0.57842827",
"0.5770126",
"0.5769475",
"0.5755598",
"0.573706",
"0.5732144",
"0.5728487",
"0.5727218",
"0.57156456",
"0.5714166",
"0.56984663",
"0.5693535",
"0.5680212",
"0.56740725",
"0.5671725",
"0.5671041",
"0.56688076",
"0.5662057",
"0.5658905",
"0.5657192",
"0.56554395",
"0.56533986",
"0.56481797",
"0.5646097",
"0.56439394",
"0.5631249",
"0.5630373",
"0.5629853",
"0.56236464",
"0.56226903",
"0.5614513",
"0.5614085",
"0.56125665",
"0.5612235",
"0.5611453",
"0.56040305",
"0.56008184",
"0.55951804"
] | 0.6608506 | 8 |
/ Enhanced for loops support iterating through ArrayList Like arrays, you cannot modify the list itself in the context of the enhanced for loop generates ConcurrentModificationException | public static int sumList(ArrayList<Integer> list)
{
int sum = 0;
for (int value: list)
{
sum+=value;
//list.add(7);
}
return sum;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\nArrayList<String> al = new ArrayList<String>();\r\nal.add(\"h\");\r\nal.add(\"hello\");//\r\nal.add( \"hai\");//adding element in particular index.\r\nal.add(\"h\");\r\nal.add(null);\r\nal.add(null);\r\nal.add(\"simple\");\r\nSystem.out.println(al.size());\r\n//how to iterate arraylist.\r\n//for (String a : al)//advanced for loop- for(Datatype varname = obj name/array/collection)\r\n //{\r\n\t//System.out.println(a);\r\n\t//}\r\n/*below code is for iterating the Array using iterator*/\r\nArrayList<Integer> a = new ArrayList<Integer>();\r\na.add(7);\r\na.add(8);\r\n\ta.add(1);\r\na.add(40);\r\na.add(5);\r\na.add(null);\r\nListIterator<Integer> af = a.listIterator();//here we can use both iterator and listiterator\r\nwhile (af.hasNext()){\r\n\tint s = af.next();\r\n\tSystem.out.println(s);\r\n}\r\n\r\n\r\n\t}",
"public static void main(String args[]) {\n ArrayList al = new ArrayList();\n // add elements to the array list\n al.add(\"C\");\n al.add(\"A\");\n al.add(\"E\");\n al.add(\"B\");\n al.add(\"D\");\n al.add(\"F\");\n\n // Use iterator to display contents of al\n System.out.print(\"Original contents of al: \");\n Iterator itr = al.iterator();\n\n while (itr.hasNext()) {\n Object element = itr.next();\n System.out.print(element + \" \");\n }\n System.out.println();\n\n // Modify objects being iterated\n ListIterator litr = al.listIterator();\n while (litr.hasNext()) {\n Object element = litr.next();\n litr.set(element + \"+\");\n }\n System.out.print(\"Modified contents of al: \");\n itr = al.iterator();\n while (itr.hasNext()) {\n Object element = itr.next();\n System.out.print(element + \" \");\n }\n System.out.println();\n // Now, display the list backwards\n System.out.print(\"Modified list backwards: \");\n\n while (litr.hasPrevious()) {\n Object element = litr.previous();\n System.out.print(element + \" \");\n }\n System.out.println();\n }",
"@Override\n public Iterator<E> iterator() {\n return new SimpleArrayListIterator<E>();\n }",
"void mo9148a(int i, ArrayList<C0889x> arrayList);",
"static /* synthetic */ Iterable m6171a(List list) {\n $jacocoInit()[107] = true;\n return list;\n }",
"public static void main(String[] args) {\n\t\tArrayList<Integer> arr = new ArrayList<>();\r\n\t\t\r\n\t\t// or specify the capacity\r\n//\t\tArrayList<Integer> arr = new ArrayList<>(20);\r\n\r\n\t\tarr.add(10);\t\t// size = 1\r\n\t\tarr.add(20);\t\t// size = 2\r\n\t\tarr.add(30);\r\n\t\tarr.add(10);\r\n//\t\tarr.set(0, 44);\r\n//\t\tarr.add(1, 50);\r\n//\t\tarr.remove(1);\r\n\t\t// Integer object\r\n\t\tInteger p = 10;\r\n\t\tarr.remove(p);\r\n\t\t\r\n\t\tfor(int i = 0 ;i <arr.size() ; i++) {\r\n\t\t\tSystem.out.println(arr.get(i));\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t// enhanced for loop\r\n\t\tfor(int i : arr) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(arr.get(1));\r\n//\t\tSystem.out.println(arr.size());\r\n\t\t\r\n\t\t\r\n//\t\tArrayList<String> str = new ArrayList<>();\r\n//\t\tstr.add(\"Mudit\");\r\n//\t\tstr.add(\"Garg\");\r\n//\t\tSystem.out.println(str.get(0));\r\n\r\n\t}",
"private static Object[] m59444a(Iterable<?> iterable, Object[] objArr) {\n int i = 0;\n for (Object obj : iterable) {\n int i2 = i + 1;\n objArr[i] = obj;\n i = i2;\n }\n return objArr;\n }",
"public static void main(String[] args) {\n\n\t\tArrayList arr = new ArrayList();\n\n\t\tarr.add(2);\n\t\tarr.add(10);\n\t\tarr.add(\"Hello\");\n\t\tarr.add(\"Java Developer\");\n\t\tarr.add('J');\n\t\tarr.add(2.5);\n\t\tarr.add(2);\n\t\tarr.add(2);\n\n\t\tSystem.out.println(arr);\n\t\tSystem.out.println(\"Size of ArrayList :\" + arr.size());\n\t\t\n\t\tListIterator itr = arr.listIterator();\n\t\twhile(itr.hasNext()){\n\t\t\t\n\t\t\tObject obj = itr.next();\n\t\t\titr.set(obj +\"Tops\");\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"After the modification\");\n\t\t\n\t\titr = arr.listIterator();\n\t\t\n\t\twhile(itr.hasNext()){\n\t\t\t\n\t\t\tObject obj = itr.next();\n\t\t\tSystem.out.println(\"Ele :\"+obj);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Reverse Order\");\n\t\twhile(itr.hasPrevious()){\n\t\t\t\n\t\t\tObject obj = itr.previous();\n\t\t\tSystem.out.println(\"Ele :\" +obj);\n\t\t}\n\n\t}",
"@Override\n public Iterator<T> iterator() {\n return new Iterator<T>() {\n int index = 0;\n\n @Override\n public boolean hasNext() {\n return index < size;\n }\n\n @Override\n public T next() {\n return genericArrayList[index++];\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n };\n }",
"public final List<l> apply(List<j> list) {\n kotlin.jvm.internal.h.e(list, \"it\");\n boolean a = this.dlr.a(this.dls, list);\n Iterable<j> iterable = list;\n Collection arrayList = new ArrayList(n.e(iterable, 10));\n for (j jVar : iterable) {\n kotlin.jvm.internal.h.d(jVar, \"it\");\n arrayList.add(new l(jVar, a ^ 1));\n }\n return (List) arrayList;\n }",
"ArrayList deepCopyShapeList(List aShapeList){\n ArrayList newList = new ArrayList();\r\n\r\n if (aShapeList.size() > 0) {\r\n Iterator iter = aShapeList.iterator();\r\n\r\n while (iter.hasNext())\r\n newList.add(((TShape)iter.next()).copy());\r\n }\r\n return\r\n newList;\r\n}",
"public static void main(String[] args) {\n\t\tArrayList ar=new ArrayList();\n\t\tar.add(100);\n\t\tar.add(200);\n\t\t\n\t\t ArrayList<Integer> arr=new ArrayList<Integer>();\n\t\t arr.add(10);\n\t\t arr.add(200);\n\t\t arr.add(400);\n\t\t \n\t\t \n\t\t System.out.println(arr.size());//length of arraylist\n\t\t \n\t\t //iteration\n\t\t for(int i=0;i<arr.size();i++) {\n\t\t\t System.out.println(i);\n\t\t }\n\t\t \n\t\t for(Integer e:arr) {\n\t\t\t System.out.println(e);\n\t\t }\n\t\t \n\t\t arr.stream().forEach(e->System.out.println(e));\n\t\t \n\t\t Iterator<Integer>it=arr.iterator();\n\t\t while(it.hasNext()) {\n\t\t\t System.out.println(it.next());\n\t\t }\n\t\tSystem.out.println(\"******************************************\");\n\n\t\t//create one arraylist with another\n\t\t\n\t\tArrayList<Integer> list= new ArrayList<Integer>(Arrays.asList(10,20,30,40,50));\n\t\t\n\t\t//arraylist methods\n\t\t//1.Add\n\t\tlist.add(90);\n\t\tSystem.out.println(list);\n\t\t\n\t\t//2.AddAll\n\t\tArrayList<String> ar1=new ArrayList<String>(Arrays.asList(\"Ruby\",\"Python\",\"Java\",\"C#\"));\n\t\t\n\t\tArrayList<String> ar2=new ArrayList<String>(Arrays.asList(\"Testing\",\"Devops\"));\n\n\t\tar1.addAll(ar2);\n\t\tar2.addAll(ar1);\n\t\tSystem.out.println(ar1);\n\t\tSystem.out.println(ar2);\n\t\t\n\t\t//3.clear\n\t\t//ar1.clear();\n\t\tSystem.out.println(ar1);\n\t\t\n\t\t//4.clone\n\t\tArrayList<String> clonelist=( ArrayList<String>)ar2.clone();\n\t\tSystem.out.println(clonelist);\n\n\t\t//5.contains\n\t\tSystem.out.println(ar2.contains(\"python\"));\n\t\t\n\t\t//6.index of\n\t\tSystem.out.println(ar1);\n\t\tSystem.out.println(ar1.indexOf(\"java\")>0);\n\t\t\n\t\t//7.last index of-returns inetegre\n\t\t\n\t\tArrayList<String> list1=new ArrayList<String>(Arrays.asList(\"Anu\",\"Naveen\",\"Tom\"));\n\t\tint i=list1.lastIndexOf(\"test\");\n\t\tSystem.out.println(i);\n\t\t\n\t\t//8.remove\n\t\tlist1.remove(1);\n\t\tlist1.remove(\"Anu\");\n\t\t\n\t\t//9.removeif\n\t\tArrayList<Integer> numbers=new ArrayList<Integer>(Arrays.asList(1,2,3,4,5,6,7,8,9,10));\n\t\tnumbers.removeIf(num->num%2==0);//printing all odd numbers /elimnating even numbers\n\t\tSystem.out.println(numbers);\n\t\t\n\t\t//10.retain All\n\t\tArrayList<String> al=new ArrayList<String>(Arrays.asList(\"ANu\",\"Robin\",\"Sky\",\"Red\"));\n\t\tal.retainAll(Collections.singleton(\"ANu\"));\n\t\tSystem.out.println(al);\n\t\t\n\t\t//11.How to create a substring from arraylist\n\t\tArrayList<Integer> no=new ArrayList<Integer>(Arrays.asList(1,2,3,4,5,6,7,8,9,12,13,14));\n\t\t\n\t\tArrayList<Integer> substring=new ArrayList<Integer>(no.subList(3, 9));\n\t\tSystem.out.println(substring);\n\t\t\n\t\t//How to convert an arraylist to array\n\t\tObject arr1[]=no.toArray();\n\t\tSystem.out.println(Arrays.toString(arr1));\n\t\t\n\t\tfor(Object e:arr1) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\t/*How to synchronise arraylist\n\t\t * 1.collections.synchronisedlist()->returns a synchronised list\n\t\t * 2.CopyOnWriteArraylist-synchronised variant of arraylist\n\t\t*/\n\t\t\n\t\tList<String> namelist=(List<String>) Collections.synchronizedCollection(new ArrayList<String>());\n\t\t\n\t\t\n\t\t//How to remove duplicate elements using linkedhashset and streams\n\t\t\n\t\t//how to compare 2 arraylist\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}",
"void arrayListToArray() {\n List<String> coolStringList = Arrays.asList( \"Java\", \"Scala\", \"Groovy\" ); //Declare &initialize o\n //coolStringList.add( \"Syed\" ); // Exception in thread \"main\" java.lang.UnsupportedOperationException\n coolStringList.set( 0, \"Syed\" );// works well\n System.out.println( coolStringList );\n/*\n /) Its not as fast as Arrays.asList() but more flexible.\n\n 2) This method actually copies the content of the underlying array into ArrayList provided.\n\n\n 3) Since you are creating copy of original array, you can add, modify and remove any element without affecting original one.*/\n\n List<String> assetList = new ArrayList();\n String[] asset = {\"equity\", \"stocks\", \"gold\", \"foriegn exchange\", \"fixed income\", \"futures\", \"options\"};\n Collections.addAll( assetList, asset );\n System.out.println( assetList );\n assetList.add( \"Mohammed\" );\n System.out.println( assetList );\n\n List newAssetList = new ArrayList();\n newAssetList.addAll( Arrays.asList( asset ) );\n System.out.println( newAssetList );\n newAssetList.add( \"YNS\" );\n System.out.println( newAssetList );\n /*String [] currency = {\"SGD\", \"USD\", \"INR\", \"GBP\", \"AUD\", \"SGD\"};\n System.out.println(\"Size of array: \" + currency.length);\n List<String> currencyList = CollectionUtils.arrayToList(currency);\n*/\n }",
"public void iterateEventList();",
"public static void main(String[] args) {\n\t\tArrayList<Integer> arr = new ArrayList<>();\r\n\t\tfor(int i = 1; i <= 10; i++) {\r\n\t\t\tarr.add(i);\r\n\t\t}\r\n\t\tarr.set(4, 10);\r\n\t\tarr.remove(3);\r\n\t\t\r\n\t\tfor(int i : arr) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tArrayList<String> list=new ArrayList();\r\n\t\tlist.add(\"first\");//add the first into list\r\n\t\tlist.add(\"second\");\r\n\t\tIterator itr=list.iterator();\r\n\t\tSystem.out.println(\"List of values\");\r\n\t\twhile(itr.hasNext())//returns true if the iteration\r\n\t\t{\r\n\t\t\tSystem.out.println(itr.next());\r\n\t\t}\r\n\t\tSystem.out.println(\"Update values\");\r\n\t\tlist.set(1, \"35\");\r\n\t\tIterator itr1=list.iterator();\r\n\t\twhile(itr1.hasNext())//returns true if the iteration\r\n\t\t{\r\n\t\t\tSystem.out.println(itr1.next());\r\n\t\t}\r\n\t}",
"private static void iterator() {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tList<Object> arrayList = new ArrayList<Object>();\n\t\tarrayList.add(2);\n\t\tarrayList.add(2);\n\t\tarrayList.add(\"test\");\n\t\tarrayList.add(true);\n\t\tarrayList.add(2.9);\n\t\t\n\t\tSystem.out.println(arrayList);\n\t\t\n\t\tIterator<Object> itr = arrayList.iterator();\n\t\t//Iterator interface reference can be created if we import the package java.util.Iterator\n\t\t//itr is a reference of interface called Iterator. hasNext() and next are two of its methods.\n\t\t//hasNext() - Returns true if the iteration has more elements. \n\t\t//next() - Returns the next element in the iteration.\n\t\twhile(itr.hasNext()){ //iterator will go in forward direction \n\t\t\tSystem.out.println(itr.next());\n\t\t\titr.remove();\n\t\t}\n\t\t\n\t\tSystem.out.println(arrayList);\n\t\tSystem.out.println(\"----------------------------------\");\n\t\t\n\t\tList<String> arrayList1 = new ArrayList<String>();\n\t\tarrayList1.add(\"Test1\");\n\t\tarrayList1.add(\"Test2\");\n\t\tarrayList1.add(\"Test3\");\n\t\tarrayList1.add(\"Test4\");\n\t\tarrayList1.add(\"Test5\");\n\t\t\n\t\tSystem.out.println(arrayList1);\n\t\t\n\t\tIterator<String> itr1 = arrayList1.iterator();\n\t\twhile(itr1.hasNext()){ //iterator will go in forward direction \n\t\t\tSystem.out.println(itr1.next());\n\t\t\t//itr1.remove();\n\t\t}\n\t\t\n\t\tSystem.out.println(arrayList1);\n\t\tSystem.out.println(\"----------------------------------\");\n\t\t\n\t\t//Create objects of class Person\n\t\tPerson p1 = new Person(25,2000);\n\t\tPerson p2 = new Person(30,3500);\n\t\tPerson p3 = new Person(35,10000);\n\t\t\n\t\tList<Person> arrayList3 = new ArrayList<Person>();\n\t\t//Insert objects into array list\n\t\tarrayList3.add(p1);\n\t\tarrayList3.add(p2);\n\t\tarrayList3.add(p3);\n\t\t\n\t\t//System.out.println(arrayList3);\n\t\t//Create class type iterator variable and call iterator method on array list\n\t\tIterator<Person> itr2 = arrayList3.iterator();\n\t\twhile(itr2.hasNext()){ //iterator will go in forward direction \n\t\t\t//Create class type object and store current data in list by casting to class type\n\t\t\tPerson pt = (Person) itr2.next();\n\t\t\tSystem.out.println(pt.age+ \" \"+ pt.salary);//Object.variable to access variables\n\t\t}\n\t\t\n\t\t//System.out.println(arrayList3);\n\t\tSystem.out.println(\"----------------------------------\");\n\t\t\n\t\t\n\t\t\n\t\tList<Object> linkedList = new LinkedList<Object>();\n\t\tlinkedList.add(20);\n\t\tlinkedList.add(77.77);\n\t\tlinkedList.add(\"String\");\n\t\tlinkedList.add(false);\n\t\tlinkedList.add('A');\n\t\t\n\t\t//Linked list iterator has 2 additional methods - hasPrevious and previous\n\t\t//itr3 is a reference of interface called ListIterator which extends Iterator interface\n\t\t//listIterator() is a method called from interface called List.\n\t\tListIterator<Object> itr3 = linkedList.listIterator();\n\t\twhile(itr3.hasNext()){ //iterator will go in forward direction \n\t\t\tSystem.out.println(itr3.next());\n\t\t}\n\t\t\n\t\twhile(itr3.hasPrevious()) { //This iterator will go in backward direction. However we need to traverse in forward direction first.\n\t\t\tSystem.out.println(itr3.previous());\n\t\t}\n\t}",
"@Override\n public Iterator<Item> iterator(){return new ListIterator();}",
"@Override\n\tpublic Iterator<T> iterator() {\n\t\t\n\t\treturn lista.iterator();\n\t}",
"private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }",
"private void updateEntityArray(ArrayList<Entity> array, GameContainer gc, StateBasedGame sb, int delta){\r\n \t\tfor(int i=0; i<array.size(); i++){\r\n \t\t\tarray.get(i).update(gc, sb, delta);\r\n \t\t\tif(array.get(i).getHealth() <= 0){\r\n \t\t\t\tarray.remove(i);\r\n \t\t\t\ti--;\r\n \t\t\t}\r\n \t\t}\r\n \t}",
"public static void removeEvens(ArrayList<Integer> list)\n {\n /*\n * size method returns the number of elements in the list\n */\n //int size = list.size();//valid way to ge the size\n \n for(int i = 0; i < list.size(); )\n {\n /*\n * get method return the value of the elemtne at the index\n * list get smaller, elements are \"shifted left\"\n */\n int value = list.get(i);\n if( value %2 == 0)\n {\n /*\n * remove method deletes the element at the specified index\n */\n list.remove(i);\n //i--;// if remove move index back one to compensate\n }\n else//only increase i if you don't remove\n {\n i++;\n }\n }\n }",
"public void enhancedForLoop() {\n int[] numbers = {77,2,66,4,5,543,7,-9876,9,10};\n for (int i = 0; i < numbers.length ; i++) {\n System.out.println(i + \" \" + numbers[i]);\n }\n \n for (int number: numbers) {\n System.out.println(\"number = \" + number);\n }\n }",
"public <T> void traverse(ArrayList<T> list);",
"private static void concurrentList(){\n\t\tList<Object> unsafeList = new ArrayList<Object>();\n\t\tList<Object> safeList = Collections.synchronizedList(unsafeList);\n\t\t\n\t\t/*\n\t\t * Note that you must manually synchronize the returned list when iterating over it, for example:\n\t\t */\n\t\tsynchronized (safeList) {\n\t\t Iterator<Object> it = safeList.iterator();\n\t\t while (it.hasNext()) {\n\t\t System.out.println(it.next());\n\t\t }\n\t\t}\n\t}",
"@Override\n\tpublic void forEach(Processor processor) {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tprocessor.process(elements[i]);\n\t\t}\n\t}",
"IList<Cell> updateCells(ArrayList<ArrayList<Cell>> cells) {\n IList<Cell> result = new MtList<Cell>();\n for (int i = 0; i < cells.size(); i = i + 1) {\n for (int j = 0; j < cells.get(i).size(); j = j + 1) {\n result = new ConsList<Cell>(cells.get(i).get(j), result);\n }\n }\n return result;\n }",
"private static void containerListNotSafe() {\n List<String> list = new CopyOnWriteArrayList<>();\n // 开启了20个线程\n for (int i = 1; i <= 30; i++) {\n new Thread(() -> {\n list.add(UUID.randomUUID().toString().substring(0,8));\n System.out.println(Thread.currentThread().getName()+list);\n }, String.valueOf(i)).start();\n }\n\n // java.util.ConcurrentModificationException 并发修改异常\n //1.故障现象\n //\tjava.util.ConcurrentModificationException 并发修改异常\n //2.导致原因\n //\n //3.解决方案\n //\t3.1 new Vector<>();\n //\t3.2 Collections.synchronizedList(new ArrayList<>());\n //\t3.3 new CopyOnWriteArrayList<>();\n //4.优化方案\n //\n\n // 写时复制\n // CopyOnWrite,容器即写时复制的容器.往一个容器添加元素的时候,不直接往当前容器Object[]添加,而是先将当前容器Object[]进行copy,复制出\n // 一个新的容器,Object[] newElements,然后新的容器Object[] newElements里面添加元素,添加完元素之后,\n // 再将原容器的引用指向新的容器 setArray(newElements);这样做的好处是可以对CopyOnWrite容器进行并发的读,而不需要加锁,\n // 因为当前容器不会添加任何元素.所以CopyOnWrite容器也是一种读写分离的思想,\n\n // /**\n // * Appends the specified element to the end of this list.\n // *\n // * @param e element to be appended to this list\n // * @return {@code true} (as specified by {@link Collection#add})\n // */\n // public boolean add(E e) {\n // final ReentrantLock lock = this.lock;\n // lock.lock();\n // try {\n // Object[] elements = getArray();\n // int len = elements.length;\n // Object[] newElements = Arrays.copyOf(elements, len + 1);\n // newElements[len] = e;\n // setArray(newElements);\n // return true;\n // } finally {\n // lock.unlock();\n // }\n // }\n\n\n }",
"private static void printArray(ArrayList<Integer> list) {\n for (int i : list) {\n System.out.println(i * 3);\n }\n\n }",
"@Override\n public Iterator<Item> iterator() {\n return new ListIterator();\n }",
"public Iterator<Item> iterator() { return new ListIterator(); }",
"public abstract void mo56920a(List<C4122e> list);",
"private void m152570a(List<ByteBuffer> list) {\n synchronized (this.f113322u) {\n for (ByteBuffer byteBuffer : list) {\n m152578e(byteBuffer);\n }\n }\n }",
"public CollectionPermutationIter(List<E> objectsArray)\r\n/* */ {\r\n/* 96 */ this(objectsArray, new IntegerPermutationIter(objectsArray.size()));\r\n/* */ }",
"static void m11180a(List<Component<?>> list) {\n Set<C3246b> c = m11182c(list);\n Set<C3246b> b = m11181b(c);\n int i = 0;\n while (!b.isEmpty()) {\n C3246b next = b.iterator().next();\n b.remove(next);\n i++;\n for (C3246b next2 : next.mo20820d()) {\n next2.mo20823g(next);\n if (next2.mo20822f()) {\n b.add(next2);\n }\n }\n }\n if (i != list.size()) {\n ArrayList arrayList = new ArrayList();\n for (C3246b next3 : c) {\n if (!next3.mo20822f() && !next3.mo20821e()) {\n arrayList.add(next3.mo20819c());\n }\n }\n throw new DependencyCycleException(arrayList);\n }\n }",
"public abstract void mo56923b(List<C4122e> list);",
"private void m10259a(ArrayList<Double> arrayList) {\n int size = arrayList.size();\n if (size <= this.f8993u) {\n this.f8973a.mo3315b((ArrayList) arrayList);\n return;\n }\n ArrayList arrayList2 = new ArrayList();\n int i = size / this.f8993u;\n for (int i2 = 0; i2 < this.f8993u; i2++) {\n int i3 = i2 * i;\n if (i3 >= size) {\n arrayList2.add(arrayList.get(size - 1));\n } else {\n arrayList2.add(arrayList.get(i3));\n }\n }\n this.f8973a.mo3315b(arrayList2);\n }",
"private List<T> getCompList(){\n\t\tList<T> l = new ArrayList<T>();\n\t\tfor(int i=0; i<list.size(); i++){\n\t\t\tif(indices[i]==1){\n\t\t\t\tl.add(list.get(i));\n\t\t\t}\n\t\t}\n\t\treturn l;\n\t}",
"public static void main(String[] args) {\r\n\t\tSet<String> list = new CopyOnWriteArraySet<>();\r\n\t\tlist.add(\"a\");\r\n\t\tlist.add(\"b\");\r\n\t\tlist.add(\"c\");\r\n\t\tlist.add(\"d\");\r\n\t\tfor (String string : list) {\r\n\t\t\tSystem.out.println(string);\r\n\t\t\t// This won't throw an ConcurrentModificationException, but if it was a normal\r\n\t\t\t// ArrayList, it would.\r\n\t\t\tlist.add(\"added after\");\r\n\t\t}\r\n\t\tSystem.out.println(list);\r\n\t}",
"public static void main(String[] args) {\n\r\n\t\tList<Integer> l = new ArrayList<Integer>();\r\n\t\t//List<Integer> l = new ArrayList<Integer>(Collection c); is also valid\r\n\t\t\r\n\t\tfor(int i=1;i<=10;i++){\r\n\t\t\tl.add(i);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(l);//[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\r\n\t\t\r\n\t\t//index based operations\r\n\t\t\r\n\t\tSystem.out.println(l.get(1));//2(element at position 1)\r\n\t\tSystem.out.println(l.set(1,12));//2(returns and replaces the element at position 1)\r\n\t\tSystem.out.println(l);//[1, 12, 3, 4, 5, 6, 7, 8, 9, 10]\r\n\t\t\r\n\t\tl.add(1,11);//inserts 11 at position 1\r\n\t\tSystem.out.println(l);//[1, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10]\r\n\t\tList<Integer> l1 = Arrays.asList(97,23,34);\r\n\t\tl.addAll(4,l1);//inserts collection elements at position 4\r\n\t\tSystem.out.println(l);//[1, 11, 12, 3, 97, 23, 34, 4, 5, 6, 7, 8, 9, 10]\r\n\t\t\r\n\t\tSystem.out.println(l.remove(new Integer(4)));//true ( removes the first occurrence of object 4 )\r\n\t\tSystem.out.println(l.remove(4));//97 (removes the object at position 4)\r\n\t\r\n\t\tSystem.out.println(l.add(11));\r\n\t\tSystem.out.println(l);//[1, 11, 12, 3, 23, 34, 5, 6, 7, 8, 9, 10,11]\r\n\t\t\r\n\t\tSystem.out.println(l.indexOf(new Integer(11)));//1\r\n\t\tSystem.out.println(l.lastIndexOf(new Integer(11)));//12\r\n\t\t\r\n\t\tSystem.out.println(l.subList(3, 8));//[3, 23, 34, 5, 6]\r\n\t\r\n\t\t\r\n\t}",
"@Override\n public Iterator<Long> iterator() {\n Collection<Long> c = new ArrayList<>();\n synchronized (data) {\n for (int i=0; i<data.length; i++)\n c.add(get(i));\n }\n return c.iterator();\n }",
"private <T extends IDElement> ArrayList<Object[]> transformElementListToList(ArrayList<T> pElementList, int pElementType) throws Exception{\r\n\t\tArrayList<Object[]> vRet = new ArrayList<Object[]>();\r\n\t\t\r\n\t\tif (pElementList!= null) {\r\n\t\t\tfor (T vCur : pElementList) {\r\n\t\t\t\tswitch(pElementType) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tvRet.add(transformProbElementToList((ProbElement)vCur));\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tvRet.add(transformPrioElementToList((PrioElement)vCur));\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tthrow new Exception(\"02; tELtL,Edi\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}else throw new Exception(\"04; tELtL,Edi\");\r\n\t\t\r\n\t\treturn vRet;\r\n\t}",
"public static void main(String[] args) {\n String[] animals = {\"Cat\", \"Dog\", \"Dog\", \"Bird\", \"Fish\", \"Cat\"};\n\n ArrayList<String> animalsList = new ArrayList<>(Arrays.asList(animals));\n System.out.println(animalsList);\n\n /*\n Remove Cat elements and print your ArrayList again\n\n EXPECTED RESULT:\n [Dog, Bird, Fish]\n */\n\n System.out.println(\"\\n---Removing-Cat-1st way creating a new list---\\n\");\n ArrayList<String> animalsWithoutCats = new ArrayList<>(); // empty at this line\n\n for(String element: animalsList){\n if(!element.equalsIgnoreCase(\"cat\")) animalsWithoutCats.add(element);\n }\n\n System.out.println(\"List after removing cats = \" + animalsWithoutCats);\n\n\n System.out.println(\"\\n---Removing-Dog-2nd way using iterator---\\n\");\n\n Iterator<String> myIterator = animalsList.iterator();\n\n while(myIterator.hasNext()){\n if(myIterator.next().equalsIgnoreCase(\"dog\")) myIterator.remove();\n }\n\n System.out.println(\"List after removing dogs = \" + animalsList);\n }",
"@Test\n public void testIterator() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n Iterator<Integer> instance = baseList.iterator();\n assertTrue(isEqual(instance, baseList));\n\n }",
"static void UseArrayList(ArrayList<Integer> myList2){\r\n\t\tLong start = System.currentTimeMillis();\r\n\t\tfor (int n=0; n<myList2.size();n++)\r\n\t\t{\r\n\t\t\tfor (int m=n+1; m<myList2.size();m++){\r\n\t\t\t\tif( myList2.get(n)== myList2.get(m) ) {System.out.println(\"Duplicate found \"+myList2.get(n));}\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong End = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Total time taken for executing this code is: \" + (End-start));\r\n\t}",
"public static void main(String[] args) throws Exception\n {\n List<String> list = new ArrayList<String>();\n list.add(\"1\");\n list.add(\"2\");\n list.add(\"3\");\n list.add(\"4\");\n ModifyList modifyList = new ModifyList(list);\n modifyList.start();\n \n for (String string : list) {\n System.out.println(string);\n }\n }",
"public static void processArrayList(){\n ArrayList<String> newArray = new ArrayList<String>();\n newArray.addAll(groceryList.getGroceryList()); //Method 1: adds all items from the groceryList into the newArray\n\n ArrayList<String> newArray2 = new ArrayList<String>(groceryList.getGroceryList()); //Method 2: same as method 1 but the copying happens at the time of initialising the newArray2\n\n //if for some reason you want to save all the contents of an arrayList into an array\n String[] myArray = new String[groceryList.getGroceryList().size()]; //create the array to be equal to the size of the arraylist\n myArray = groceryList.getGroceryList().toArray(myArray); //convert an arraylist of strings (the outcome of getGroceryList()), and save it into our array\n }",
"public /* synthetic */ void m109038a(List list, int i) {\n mo67233a(ImageViewerFragment.m80019a((ArrayList) StreamSupport.m150134a(list).mo131127a($$Lambda$FeedMomentsQAViewHolder$goL0hrr3W6gS6WdbV8nSzby50A.INSTANCE).mo131125a(Collectors.m150203a($$Lambda$ofunvu1bqmYbfXGEtxXaV_csE4M.INSTANCE)), i));\n }",
"public void arrayList(List<Student> list)\r\n\t{\r\n\t\tlist.add(s1);\r\n\t\tlist.add(s2);\r\n\t\tlist.add(s3);\r\n\t\tlist.add(s4);\r\n\t\tlist.add(s5);\r\n\t\tlist.add(s6);\r\n\t\tSystem.out.println(\"Objects of ArrayList\");\r\n\t\tfor(int i=0;i<list.size();i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(list.get(i));\r\n\t\t}\r\n\t}",
"@Test\n public void testListIterator() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n assertTrue(isEqual(instance, baseList));\n\n }",
"@Override\n public Iterator<T> iterator() {\n return new Iterator<T>(){\n private int ci = 0;\n \n /**\n * Checks if ArrayList has next element \n * @return \n */\n public boolean hasNext(){\n return ci < size;\n }\n \n /**\n * Returns next element and moves iterator forward\n * @return \n */\n public T next(){\n return (T)data[ci++];\n }\n \n /**\n * Does nothing\n */\n public void remove(){\n \n }\n };\n }",
"private void iterateEnemyShots() {\n\t\tfor (Shot s : enemyShotList) {\n\t\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\t\tfor(Invader a : row) {\n\t\t\t\t\ta.shouldAttack(s);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void test8() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1354,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test8\");\n Integer[] integerArray0 = new Integer[9];\n ResettableListIterator<Integer> resettableListIterator0 = IteratorUtils.arrayListIterator(integerArray0);\n assertEquals(true, resettableListIterator0.hasNext());\n }",
"@Override\n \tpublic ArrayPVector<E> plusAll(int i, Collection<? extends E> l) {\n \t\tthrow new UnsupportedOperationException(\"Not yet implemented\");\n \t}",
"@Override\n\tpublic Iterator<Item> iterator() {\n\t\treturn new ListIterator();\n\t}",
"public Iterator<Item> iterator() { \n return new ListIterator(); \n }",
"@Test\n public void testIterator_Forward() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n\n int i = 0;\n while (instance.hasNext()) {\n assertEquals(baseList.get(i++), instance.next());\n }\n\n }",
"private void modificationCheck() {\n if (this.expectedMod != modCount) {\n throw new ConcurrentModificationException(\"The Simple Array List was changed its structure!\");\n }\n }",
"public static void main(String[] args) {\n\t\tList<String> list = new LinkedList<>(); //ArrayList\r\n\t\tList<String> test = new ArrayList<>();\r\n\t\tList<String> test2 = Arrays.asList(\"Toy\",\"Car\",\"Robot\");\r\n\t\ttest2 = new ArrayList<>(list);\r\n\t\t// 한번에 초기화... immutable 인스턴스임 고정이라... ㄷㄷ->\r\n\t\t// 다시만듬.\r\n\t\tlist.add(\"Toy\");\r\n\t\tlist.add(\"Hello\");\r\n\t\tlist.add(\"Box\");\r\n\t\tlist.add(\"Robot\");\r\n\t\tfor(String s : list)\r\n\t\t\tSystem.out.println(s+\"\\t\");\r\n\t\tString str;\r\n\t\tIterator<String> itr = list.iterator(); // 반복자\r\n\t\twhile(itr.hasNext()) \r\n\t\t{\t\r\n\t\t\tstr= itr.next();\r\n\t\t\tif(str.equals(\"Box\"))\r\n\t\t\t\titr.remove();\r\n\t\t//System.out.println(itr);\r\n\t\t\t// 컬렉션 프레임웤은 반복자를 통해 이렇게 참조가 가능하구나~ 더미노드가 존재한다 // \r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tfor(String s : list) // for each , iterator 기반.\r\n\t\t\tSystem.out.println(s+\"\\t\");\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println();\r\n\t\t// 양방향 반복자 //\r\n\t\tList<String> dList = Arrays.asList(\"Toy\",\"Box\",\"Robot\",\"Box\");\r\n\t\tdList = new ArrayList<>(dList);\r\n\t\t\r\n\t\tListIterator<String> dIter = dList.listIterator();\r\n\t\twhile(dIter.hasNext()) {\r\n\t\t\tstr = dIter.next();\r\n\t\t\tSystem.out.print(str + \"\\t\");\r\n\t\t\tif(str.equals(\"Toy\"))\r\n\t\t\t\tdIter.add(\"Toy2\");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\twhile(dIter.hasPrevious()) {\r\n\t\t\tstr = dIter.previous();\r\n\t\t\tSystem.out.print(str + \"\\t\");\r\n\t\t\tif(str.equals(\"Robot\"))\r\n\t\t\t\tdIter.add(\"Robot2\");\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void fill(ArrayList<T> list) throws StackOverflowException{\r\n\t\tfor (T e : list) {\r\n\t\t\tpush(e);\r\n\t\t}\r\n\t\t\r\n\t}",
"protected class_496 method_1607() {\n if (this.field_934.field_183 != this.field_938) {\n throw new ConcurrentModificationException();\n } else {\n class_496 var1 = this.field_937;\n if (var1 == null) {\n throw new NoSuchElementException(\"No next() entry in the iteration\");\n } else {\n class_496[] var2 = this.field_934.field_181;\n int var3 = this.field_935;\n\n class_496 var4;\n for(var4 = var1.field_903; var4 == null && var3 > 0; var4 = var2[var3]) {\n --var3;\n }\n\n this.field_937 = var4;\n this.field_935 = var3;\n this.field_936 = var1;\n return var1;\n }\n }\n }",
"@Test\n public void testIterator_Overflow() {\n OasisList<Integer> baseList = new SegmentedOasisList<>(2, 2);\n baseList.addAll(Arrays.asList(1, 2, 6, 8, 7, 8, 90));\n\n Iterator<Integer> instance = baseList.iterator();\n assertTrue(isEqual(instance, baseList));\n\n }",
"@Test\r\n public void removeAndForEach() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n s.remove(2);\r\n int[] expected1 = {1, 3, 4, 5};\r\n int i = 0;\r\n for (int el : s) {\r\n assertEquals(expected1[i], el);\r\n i++;\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\n\t\t\n\t\t//adding\n\t\tnumbers.add(10);\n\t\tnumbers.add(100);\n\t\tnumbers.add(50);\n\t\t\n\t\t//retrieving\n\t\tSystem.out.println(numbers.get(0));\n\t\t\n\t\t//Indexed for loop iteration\n\t\tSystem.out.println(\"Iteration#1\");\n\t\tfor(int i=0; i<numbers.size(); i++) {\n\t\t\tSystem.out.println(numbers.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Iteration#2\");\n\t\tfor (Integer value: numbers) {\n\t\t\tSystem.out.println(value);\n\t\t}\n\t\t\n\t\t//removing items from the Last if ArrayList is fast\n\t\tnumbers.remove(numbers.size() -1);\n\t\t\n\t\t//remove items from the start of list a little slower, cuz internally it is an array\n\t\tnumbers.remove(0);\n\t\t\n\t\tLinkedList<Integer> linkedList = new LinkedList<Integer>();\n\t\tArrayList<Integer> arrayList = new ArrayList<Integer>();\n\t\t\n\t\tdoTimings(\"LinkedList\", linkedList);\n\t\tdoTimings(\"ArrayList\", arrayList);\n\t\t\n\t}",
"private void updateElementListFromSegment(ArrayList<Integer> indices, List<Integer> elementList) {\n\n for (int j = indices.size() - 1; j >= 0; j--) {\n\n updateElementListFromSegmet(indices.get(j), elementList);\n\n }\n }",
"@Override\n\tpublic void operation() {\n\t\tfor(Object object:list) {\n\t\t\t((Component)object).operation();\n\t\t}\n\t}",
"public interface ISimpleList<Type> extends Iterable<Type> {\n /**\n * Add a value to the end of this list.\n * \n * @param t is the value added to this list\n */\n public void add(Type t);\n\n /**\n * Add a value at a specified index in the list, shifting other values to\n * make room.\n * \n * @param index is the index at which new value added\n * @param t the new value added\n * @throws IndexOutOfBoundsException\n * if index is greater than size of list or less than zero\n */\n public void add(int index, Type t);\n\n /**\n * Returns an iterator over this list's values, the iterator supports\n * remove.\n * \n * @return iterator (supporting remove))\n */\n public Iterator<Type> iterator();\n\n /**\n * Remove and return the value at the specified index, shifting other values\n * \n * @param index of value to remove\n * @return the removed value\n * @throws IndexOutOfBoundsException\n * if index < 0 or >= size()\n */\n public Type remove(int index);\n\n /**\n * Remove first occurrence of a value, and return true iff removal succeeds.\n * \n * @param t is value removed\n * @return true if a value is removed, false otherwise\n */\n public boolean remove(Type t);\n\n /**\n * Return the value at the specified index.\n * \n * @param index of value to return\n * @return value at specified index\n * @throws IndexOutOfBoundsException\n * if index < 0 or >= size()\n */\n public Type get(int index);\n\n /**\n * Return index of first occurrence of a value, or -1 if not found.\n * \n * @param t is valuel searched for\n * @return index of first occurrence of t, or -1 if t not found\n */\n public int indexOf(Type t);\n\n /**\n * Returns number of elements in this list.\n * \n * @return number of elements in list\n */\n public int size();\n}",
"public static void main (String args[]) {\n\tArrayList<String> arrayCol = new ArrayList<String>();\n\tarrayCol.add(\"C\");\n\tarrayCol.add(\"A\");\n\tarrayCol.add(\"B\");\n\tarrayCol.add(\"D\");\n\tarrayCol.add(\"F\");\n\tarrayCol.add(1,\"A1\");\n\t\n\tSystem.out.println(\"Array size:\" + arrayCol.size());\n\tSystem.out.println(\"contents of Array:\" + arrayCol);\n\n\tarrayCol.remove(2);\n\tarrayCol.remove(\"D\");\n\n\t//allocating capacity\n\tarrayCol.ensureCapacity(1);\n\tarrayCol.trimToSize();\n\t\n\tSystem.out.println(\"Array size:\" + arrayCol.size());\n\tSystem.out.println(\"contents of Array:\" + arrayCol);\n\n\n\t//using iterator\n\tIterator<String> iter = arrayCol.iterator();\n\t\n\twhile (iter.hasNext()) {\n\t\t\n\t\tSystem.out.println(iter.next());\n\t}\n\t\n\n\t//converting into array\n\tString arr[] = new String[arrayCol.size()];\n\tarrayCol.toArray(arr);\n\t\n\tSystem.out.println(\"printing from Array\");\n\tfor (String val : arr) {\n\t\tSystem.out.println(val);\n\t}\n\t\n\t\n\t}",
"@Test\n public void test10() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1330,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test10\");\n HashMap<String, StringTokenizer>[] hashMapArray0 = (HashMap<String, StringTokenizer>[]) Array.newInstance(HashMap.class, 3);\n ObjectArrayListIterator<HashMap<String, StringTokenizer>> objectArrayListIterator0 = new ObjectArrayListIterator<HashMap<String, StringTokenizer>>(hashMapArray0, 0, 0);\n Iterator<HashMap<String, StringTokenizer>> iterator0 = IteratorUtils.unmodifiableIterator((Iterator<HashMap<String, StringTokenizer>>) objectArrayListIterator0);\n assertEquals(false, iterator0.hasNext());\n }",
"@Override\n public ListIterator<T> listIterator() {\n throw new UnsupportedOperationException();\n }",
"@Test\n public void test0() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1328,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test0\");\n HashMap<String, StringTokenizer>[] hashMapArray0 = (HashMap<String, StringTokenizer>[]) Array.newInstance(HashMap.class, 3);\n ObjectArrayListIterator<HashMap<String, StringTokenizer>> objectArrayListIterator0 = new ObjectArrayListIterator<HashMap<String, StringTokenizer>>(hashMapArray0, 0, 0);\n List<HashMap<String, StringTokenizer>> list0 = IteratorUtils.toList((Iterator<? extends HashMap<String, StringTokenizer>>) objectArrayListIterator0);\n LoopingListIterator<HashMap<String, StringTokenizer>> loopingListIterator0 = new LoopingListIterator<HashMap<String, StringTokenizer>>(list0);\n ListIterator<HashMap<String, StringTokenizer>> listIterator0 = IteratorUtils.unmodifiableListIterator((ListIterator<HashMap<String, StringTokenizer>>) loopingListIterator0);\n assertEquals(false, listIterator0.hasPrevious());\n }",
"public static void main(String[] args) {\n\t\t\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\n\t\t// RSN NOTE -- ArrayList can grow in size, arrays can't\n\t\tlist.add(1);\n\t\tlist.add(2);\n\t\tSystem.out.println(\"Length \" + list.size());\n\t\t\n\t\t// RSN NOTE -- Elements can be inserted or deleted from any locaiton, NOT in array\n\t\tArrayList<String> sList = new ArrayList<String>();\n\t\tsList.add(\"ONE\");\n\t\tsList.add(\"TWO\");\n\t\tsList.add(\"THREE\");\n\t\tsList.remove(1); // ====NOTE=====>>> compare Arraylist remove with LinkedListDemo remove\n\t\tSystem.out.println(sList.toString());\n\t\t\n\t\tSystem.out.println(\"Contains \"+sList.contains(\"THREE\")); //====NOTE=====>>>SUPER IMP; compare contains of arrayList and Linked List\n\t\t\n\t\t/*\n\t\t * ArrayList class has methods to perform solo modifications ( add(), remove()Ö ), \n\t\t * bulk modifications ( addAll(), removeAll(), retainAll()Ö ), searching( indexOf(), lasIndexOf() ) and iterations( iterator() ).\n\t\t */\n\t\t\n\t\t// RSN NOTE -- If generics are not used, ARRAY list can hold any data type\n\t\t ArrayList listForAll = new ArrayList(); //ArrayList without generics\n\t listForAll.add(\"ZERO\"); //adding string type object\n\t listForAll.add(1); //adding primitive int type\n\t listForAll.add(20.24); //adding primitive double type\n\t listForAll.add(new Float(23.56)); //Adding Float wrapper type object\n\t listForAll.add(new Long(25)); //Adding Long wrapper type object\n\t \n\t System.out.println(listForAll); //Output : [ZERO, 1, 20.24, 23.56, 25]\n\t \n\t // RSN NOTE -- Array Insertion time\n\t arrayInserionTime();\n\t \n\t listIteratorMovesInBothDirections();\n\t \n\t reverseElementInList();\n\t \n\t convertBetweenArrayAndList();\n\n\t}",
"public static void slide127() {\n ArrayList<String> obj = new ArrayList<String>();\n\n //This is how we add elements to an ArrayList\n obj.add(\"Alex\");\n obj.add(\"Con\");\n obj.add(\"Paul\");\n obj.add(\"Estel\");\n obj.add(\"Peter\");\n\n // Displaying elements\n System.out.println(\"Original ArrayList:\");\n for(String str:obj)\n System.out.println(str);\n\n // Add element at the specific index\n\n obj.add(0, \"Mary\");\n obj.add(1, \"Justin\");\n\n // Displaying elements\n System.out.println(\"ArrayList after add operation:\");\n for(String str:obj)\n System.out.println(str);\n\n //Remove elements from ArrayList like this\n obj.remove(\"Peter\");\n obj.remove(\"Paul\");\n\n // Displaying elements\n System.out.println(\"ArrayList after remove operation:\");\n for(String str:obj)\n System.out.println(str);\n\n // Edit element from ArrayList\n obj.set(2, \"Tom\");\n\n // Displaying elements\n System.out.println(\"ArrayList after edit operation:\");\n for(String str:obj)\n System.out.println(str);\n\n\n //Remove element from the specified index\n obj.remove(1); //Removes Second element from the List\n\n // Displaying elements\n System.out.println(\"Final ArrayList:\");\n for(String str:obj)\n System.out.println(str);\n }",
"public ArrayBackedList(IList list) {\n while (list.size() > stringArray.length) {\n reallocArray();\n }\n for (int i = 0; i < list.size(); i++) {\n stringArray[i] = list.get(i);\n }\n }",
"public static void main(String[] args) {\n CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<>();\n CopyOnWriteArraySet<String> set = new CopyOnWriteArraySet<>();\n\n for (int i = 0; i < 30; i++) {\n new Thread(()->{\n set.add(UUID.randomUUID().toString());\n System.out.println(set);\n },String.valueOf(i)).start();\n }\n\n /**\n * 1.故障现象\n * java.util.ConcurrentModificationException\n * 2.导致原因\n * 并发争抢修改导致\n * 3.解决方案\n * List<String> list = new Vector<>();\n * List<String> list = Collections.synchronizedList(new ArrayList<>());\n * CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<>();\n * 4.优化建议\n * CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<>();\n */\n }",
"@Override\r\n public NumericObjectArrayList makeDeepCopy() {\r\n NumericObjectArrayList list = new NumericObjectArrayList();\r\n for (int i = 0; i < this.getCount(); i++) {\r\n try {\r\n list.insert(i, this.getValueAt(i));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n return list;\r\n }",
"@Test\n public void test22() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1343,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test22\");\n Properties[] propertiesArray0 = new Properties[9];\n ResettableIterator<Properties> resettableIterator0 = IteratorUtils.arrayIterator(propertiesArray0);\n Iterable<Properties> iterable0 = IteratorUtils.asIterable((Iterator<? extends Properties>) resettableIterator0);\n assertNotNull(iterable0);\n }",
"private static void iterateAllELementInLinkedList() {\n\t\tLinkedList<Integer> list = new LinkedList<Integer>();\n\t\tlist.add(10);\n\t\tlist.add(20);\n\t\tlist.add(30);\n\t\tlist.add(40);\n\t\tlist.add(50);\n\t\tSystem.out.println(\"LinkedList is : \" + list);\n\n\t\tfor (Integer i : list)\n\t\t\tSystem.out.println(i);\n\n\t}",
"private void m10266b(List<C2411a> list) {\n int i;\n int i2;\n List arrayList = new ArrayList();\n ArrayList arrayList2 = new ArrayList();\n arrayList.addAll(list);\n this.f8987o.add(Double.valueOf(0.0d));\n arrayList2.add(Double.valueOf(0.0d));\n for (i = 0; i < 5; i++) {\n C2411a c2411a = (C2411a) arrayList.remove(0);\n this.f8987o.add(Double.valueOf(c2411a.m12234j()));\n arrayList2.add(Double.valueOf(c2411a.m12233i() / 1000.0d));\n }\n int size = arrayList.size();\n i = 5;\n while (i > 0) {\n i2 = size - 1;\n c2411a = (C2411a) arrayList.remove(size - i);\n this.f8987o.add(Double.valueOf(c2411a.m12234j()));\n arrayList2.add(Double.valueOf(c2411a.m12233i() / 1000.0d));\n i--;\n size = i2;\n }\n int size2 = arrayList.size();\n int i3 = size2 / 387;\n int i4 = 0;\n int i5 = 6;\n while (i4 < 387) {\n i2 = i4 * i3;\n if (i2 >= size2) {\n double j = ((C2411a) arrayList.get(size2 - 1)).m12234j();\n if (j > this.f8976d.getMaxVelocity()) {\n j = this.f8976d.getMaxVelocity();\n }\n this.f8987o.add(i5, Double.valueOf(j));\n arrayList2.add(i5, Double.valueOf(((C2411a) arrayList.get(size2 - 1)).m12233i() / 1000.0d));\n size = i5 + 1;\n } else {\n c2411a = (C2411a) arrayList.get(i2);\n i = (i4 + 1) * i3;\n if (i >= size2) {\n i = size2 - 1;\n }\n C2411a c2411a2 = (C2411a) arrayList.get(i);\n long h = (c2411a2.m12232h() / 1000) - (c2411a.m12232h() / 1000);\n double d;\n if (h <= 0) {\n double d2 = 0.0d;\n while (i2 < (i4 + 1) * i3) {\n d2 += ((C2411a) arrayList.get(i2)).m12234j();\n i2++;\n }\n d = d2 / ((double) i3);\n if (d > this.f8976d.getMaxVelocity()) {\n d = this.f8976d.getMaxVelocity();\n }\n this.f8987o.add(i5, Double.valueOf(d));\n } else {\n d = ((c2411a2.m12233i() - c2411a.m12233i()) / ((double) h)) * 3.6d;\n if (d > this.f8976d.getMaxVelocity()) {\n d = this.f8976d.getMaxVelocity();\n }\n this.f8987o.add(i5, Double.valueOf(d));\n }\n arrayList2.add(i5, Double.valueOf(c2411a.m12233i() / 1000.0d));\n size = i5 + 1;\n }\n i4++;\n i5 = size;\n }\n this.f8987o.add(Double.valueOf(0.0d));\n arrayList2.add(Double.valueOf(this.f8976d.getTotalDistance()));\n i2 = this.f8987o.size();\n i = 1;\n while (i < i2) {\n if (this.f8978f >= ((Double) arrayList2.get(i - 1)).doubleValue() && this.f8978f < ((Double) arrayList2.get(i)).doubleValue()) {\n this.f8987o.add(i, Double.valueOf(this.f8976d.getMaxVelocity()));\n arrayList2.add(i, Double.valueOf(this.f8978f));\n break;\n }\n i++;\n }\n this.f8993u = this.f8987o.size();\n }",
"private void iterateUpdate()\n\t{\n\t\tSystem.out.println(\"ITERATE\");\n\t\t\t\n\t\tfor (Organism org : simState.getOrganisms()) \n\t\t{\n\t\t\torganismViewData.resetOrganismView(org);\n\t\t}\n\t\t\n\t\tIterationResult result = simEngine.iterate();\n\t\t\n\t\t// Process born and dead organisms\n\t\taddBornModels(result.getBorn());\n\t\tremoveDeadModels(result.getLastDead());\n\t\t\n\t\trotateAnimals();\t\t\n\t}",
"public Iterable<M> iterateAll();",
"public static void main(String[] args) {\n\t\tFood [] foodArray = {new Pizza(),new Fish(),new Soup(),new Desert()};\n\t\t\n\t\t//food into ArrayList\n\t\tArrayList<Food> food = new ArrayList<>();\n\t\tfood.add(new Pizza());\n\t\tfood.add(new Fish());\n\t\tfood.add(new Soup());\n\t\tfood.add(new Desert());\n\t\t\n\t\t//call Avaliable methods using for loop, advanced for loop and iterator\n\t\tSystem.out.println(\"-------------Enhanced for loop-------------------\");\n\t\t\n\t\tfor(Food f:food) {\n\t\t\tf.foodType();\n\t\t\tf.taste();\n\t\t\tf.rich();\n\t\t}\n\t\tSystem.out.println(\"-------------using for loop-------------------\");\n\t\tfor(int i=0; i<food.size(); i++) {\n\t\t\tfood.get(i).taste();\n\t\t\tfood.get(i).foodType();\n\t\t\tfood.get(i).rich();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"-------------Using the iterator method----------\");\n\t\t\n Iterator<Food> it = food.iterator();\n while(it.hasNext()) {\n Food element = it.next();\n element.taste();\n element.foodType();\n element.rich();\n }\n\t}",
"public static void main(String[] args) {\n\r\n\t\tArrayList<Integer> a1 = new ArrayList<Integer>(); //can store any type of object\r\n\t\ta1.add(1);\r\n\t\ta1.add(2);\r\n\t\ta1.add(3);\r\n\t\ta1.add(4);\r\n\t\ta1.add(5);\r\n\t\tSystem.out.println(\"Elements of a1 are : \" + a1);\r\n\t\t\r\n\t\tfor(int a:a1)\r\n\t\t{\r\n\t\t\tSystem.out.println(a);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Test\n public void test11() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1331,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test11\");\n Properties[] propertiesArray0 = new Properties[2];\n ResettableListIterator<Properties> resettableListIterator0 = IteratorUtils.arrayListIterator(propertiesArray0, 0, 0);\n assertNotNull(resettableListIterator0);\n assertEquals(false, resettableListIterator0.hasNext());\n }",
"@Override\r\n Iterator<E> iterator();",
"public CollectionPermutationIter(List<E> objectsArray, ArrayPermutationsIter permuter)\r\n/* */ {\r\n/* 103 */ this.permOrder = permuter;\r\n/* 104 */ this.sourceArray = objectsArray;\r\n/* */ }",
"void mo100444b(List<C40429b> list);",
"public static void main(String args[])\n {\n ArrayList<String> list = new ArrayList<String>();\n\n list.add(\"A\");\n list.add(\"B\");\n list.add(\"C\");\n list.add(\"D\");\n list.add(\"E\");\n list.add(\"F\");\n list.add(\"G\");\n\n String[] stringList = {\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\"};\n\n // ListIterator iterator = list.listIterator(); \n\n ListIterator iterator = list.listIterator();\n\n System.out.println(\"The list contents are: \" + list);\n\n System.out.println(\n\n );\n\n\n System.out.println(\"The list contents in order are: \");\n int counter = 0;\n while (iterator.hasNext()){\n System.out.println(counter + \": \" + iterator.next() + \" \");\n counter ++;\n }\n\n System.out.println(\"The list contents in reverse order are: \");\n counter = list.size();\n while (iterator.hasPrevious()){\n System.out.println(counter + \": \" + iterator.previous() + \" \");\n counter --;\n }\n\n\n\n }",
"private PyObject[] listtoarray(ArrayList<PyObject> a)\n {\n PyObject[] results = new PyObject[a.size()];\n int iter = 0;\n for (PyObject pt : a) {\n results[iter] = pt;\n iter++;\n }\n return results;\n }",
"@Override\n public void addIterationListener(LoopIterationListener lis) {\n iterationListeners.addFirst(lis);\n }",
"@Override\n\tpublic Iterator<T> iterator() {\n\t\treturn this.itemList.iterator();\n\t}",
"Iterable<T> list();",
"@Override\n public ListIterator<T> listIterator(final int index) {\n throw new UnsupportedOperationException();\n }",
"@Override\n public Iterator<T> iterator() {\n return items.iterator();\n }",
"private ArrayList<ArrayList<Course>> semiPermutationOfCourseList(ArrayList<Course> originalCourseList) {\n ArrayList<ArrayList<Course>> results = new ArrayList<ArrayList<Course>>();\n if (originalCourseList == null || originalCourseList.size() == 0) {\n return results;\n }\n\n for (int i = 0; i < originalCourseList.size(); i++) {\n ArrayList<Course> tempList = new ArrayList<>();\n tempList = new ArrayList<>(originalCourseList.subList(i, originalCourseList.size()));\n for (int j = 0; j < i; j++) {\n tempList.add(originalCourseList.get(j));\n }\n results.add(tempList);\n }\n\n return results;\n }",
"private void doubleArray()\n\t{\n\t\tT[] oldList = list;\n\t\tint oldSize = oldList.length;\n\t\t\n\t\tlist = (T[]) new Object[2 * oldSize];\n\t\t\n\t\t// copy entries from old array to new, bigger array\n\t\tfor (int index = 0; index < oldSize; index++)\n\t\t\tlist[index] = oldList[index];\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tprivate void growArray() {\n\t\tint tempSize = size * 2;\n\t\tE[] tempList = (E[]) new Object[tempSize];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\ttempList[i] = list[i];\n\t\t}\n\t\tlist = tempList;\n\t}",
"public final void mo102897a() {\n ArrayList arrayList = this.mObservers;\n C32569u.m150513a((Object) arrayList, C6969H.m41409d(\"G64ACD709BA22BD2CF41D\"));\n int size = arrayList.size();\n while (true) {\n size--;\n if (size >= 0) {\n ((AbstractC23316c) this.mObservers.get(size)).mo102899a();\n } else {\n return;\n }\n }\n }",
"public void removeDuplication() {\r\n\t\t//checks if the array contains any elements\r\n\t\tif (!isEmpty()) {\t//contains elements\r\n\t\t\t//loop to execute for every element in the array\r\n\t\t\tfor (int i=0;i<size-1;i++) {\r\n\t\t\t\tObject element=list[i];\t//to store value of element in array\r\n\t\t\t\t//loop to execute for every element after the current element in the list\r\n\t\t\t\tfor (int j=i+1;j<size;j++) {\r\n\t\t\t\t\t//checks if there is are 2 elements in the list with the same value\r\n\t\t\t\t\tif (element==list[j]) {\r\n\t\t\t\t\t\tremove(j);\t//calls function to remove that element from array\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\telse {\t//contains 0 elements\r\n\t\t\tSystem.out.println(\"List is empty!\");\r\n\t\t}\r\n\t}",
"public static void main(String[] args) throws Exception {\n ArrayList<String> list = new ArrayList<String>();\n //populating the ArrayList\n list.add(\"apples\");\n list.add(\"mangoes\");\n list.add(\"oranges\");\n //Getting the Iterator object of the ArrayList\n ListIterator<String> it = list.listIterator();\n while(it.hasNext()) {\n it.add(\"\");\n }\n }"
] | [
"0.5845332",
"0.58310455",
"0.57516724",
"0.5743823",
"0.5665577",
"0.56218493",
"0.561909",
"0.5592154",
"0.55819076",
"0.55543387",
"0.550911",
"0.55087143",
"0.5465851",
"0.5463281",
"0.5434075",
"0.5431662",
"0.54244953",
"0.54224074",
"0.5402778",
"0.5377679",
"0.5336492",
"0.5318384",
"0.53149444",
"0.52997607",
"0.527197",
"0.5271776",
"0.52709997",
"0.5269814",
"0.5257372",
"0.52567834",
"0.52565926",
"0.5235797",
"0.5231543",
"0.5226169",
"0.5225329",
"0.52206963",
"0.5219055",
"0.52151746",
"0.5201113",
"0.51904476",
"0.5168451",
"0.5152238",
"0.51509494",
"0.51413214",
"0.51311815",
"0.513004",
"0.5125862",
"0.5122963",
"0.5119445",
"0.5108755",
"0.5093474",
"0.50767297",
"0.50745434",
"0.50726706",
"0.50688744",
"0.5055287",
"0.50448626",
"0.5040135",
"0.5035328",
"0.50313216",
"0.5025728",
"0.5023598",
"0.50220495",
"0.501993",
"0.50197107",
"0.5016085",
"0.50101006",
"0.5006043",
"0.5004676",
"0.4997877",
"0.49958965",
"0.4992152",
"0.49907994",
"0.4982181",
"0.49782982",
"0.4975417",
"0.49710727",
"0.4969519",
"0.49627468",
"0.49581066",
"0.49459115",
"0.4942787",
"0.49425355",
"0.49419028",
"0.4941122",
"0.49301463",
"0.49295577",
"0.49287835",
"0.49266946",
"0.49183473",
"0.49175668",
"0.49109578",
"0.49069393",
"0.49061832",
"0.4903643",
"0.49017233",
"0.4884923",
"0.48835668",
"0.4883173",
"0.4878744",
"0.48759887"
] | 0.0 | -1 |
Revoves even number form the spcified list | public static void removeEvens(ArrayList<Integer> list)
{
/*
* size method returns the number of elements in the list
*/
//int size = list.size();//valid way to ge the size
for(int i = 0; i < list.size(); )
{
/*
* get method return the value of the elemtne at the index
* list get smaller, elements are "shifted left"
*/
int value = list.get(i);
if( value %2 == 0)
{
/*
* remove method deletes the element at the specified index
*/
list.remove(i);
//i--;// if remove move index back one to compensate
}
else//only increase i if you don't remove
{
i++;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ArrayList<Integer> oddValues(ArrayList<Integer> initialList){\n\t\tfor (Iterator<Integer> i = initialList.iterator(); i.hasNext();) {\n\t\t\tif(i.next()%2 == 0) {\n\t\t\t\ti.remove();\n\t\t\t}\n\t\t}\n\t\treturn initialList;\n\t}",
"static List<Integer> oddNumbers(int l, int r) {\n List<Integer> output = new ArrayList<Integer>();\n if (l % 2 == 0) {\n l = l + 1;\n }\n while (l <= r) {\n output.add(l);\n l = l + 2;\n }\n return output;\n }",
"public int[] reverseEvenIndices(int[] nums) { // score 6\n\n if (nums == null || nums.length == 0) {\n return null;\n }\n\n int start = 0;\n int end = nums.length - 1;\n\n if (end % 2 == 1) {\n end--;\n }\n\n while (start <= end) {\n if (start % 2 == 0 && end % 2 == 0) {\n swap(nums, start, end);\n }\n start++;\n end--;\n }\n return nums;\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Integer> list = new ArrayList<>();\n int i = 0;\n while (scanner.hasNextInt()) {\n int n = scanner.nextInt();\n if (i % 2 == 1) {\n list.add(n);\n }\n i++;\n }\n Collections.reverse(list);\n list.forEach(e -> System.out.print(e + \" \"));\n }",
"public void deleteEven(){\n\t\tNode temp = this.head;\n\t\tint cnt = 0;\n\t\twhile(cnt != this.length()){\n\t\t\tif(cnt%2 == 0){\n\t\t\t\tthis.deleteAtPos(cnt);\n\t\t\t}\n\t\t\tcnt++;\n\t\t}\n\t}",
"public ArrayList<Integer> enLigeListe(ArrayList<Integer> list) {\r\n ArrayList<Integer> ligeListe = new ArrayList<>();\r\n for (int i = 0; i < list.size(); i++) {\r\n if (list.get(i) % 2 != 1) {\r\n ligeListe.add(list.get(i));\r\n }\r\n }\r\n return ligeListe;\r\n }",
"public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nint n=sc.nextInt();\r\n\r\nList<Integer> l=new ArrayList<Integer>();\r\nfor(int i=1;i<=n;i++){\r\n\tif(i%2!=0)\r\n\t{\r\n\t\tl.add(i);\r\n\t}\r\n}\r\n\tSystem.out.println(l);\r\n\tint n1=l.get(0);\r\n\tfor(int i=0;i<l.size();i++){\r\n\tif(i%2==0)\r\n\t\r\n\t\tn1=n1-l.get(i);\r\n\t//System.out.println(s);\r\n\telse\r\n\t\tn1=n1+l.get(i);\r\n\t}\r\n\tSystem.out.println(n1+1);\r\n\t}",
"private static void segrateNumbers(int[] arr, int left, int right) {\n\n while (left < right) {\n // keep moving towards right, until find an odd number\n while (arr[left] % 2 != 1) {\n left++;\n }\n\n // keep moving towards left, until find an even number\n while (arr[right] % 2 != 0) {\n right--;\n }\n\n // if so, swap them\n if (left < right) {\n int temp = arr[left];\n arr[left] = arr[right];\n arr[right] = temp;\n }\n }\n }",
"public void ArrayWithOdd(int[] arr){\n ArrayList<Integer> newArr = new ArrayList<Integer>();\n for(int val : arr){\n if(val % 2 != 0){\n newArr.add( val );\n }\n }\n System.out.println( newArr.toString() );\n }",
"public int setNextEven() {\n\t\twhile(x % 2 != 0) {\n\t\t\tx++;\n\t\t}\n\n\t\t// sets the new even number equal to x\n\t\tRuntimeThr.evenOddSequence = x;\n\n\t\t// Returns the next even number\n\t\treturn x;\n\t}",
"public static void oddarray() {\n ArrayList<Integer> y = new ArrayList<Integer>();\n for (int i =1; i<256; i++){\n if (i%2 != 0){\n y.add(i);\n }\n }\n System.out.println(y);\n }",
"private int[] sortByEvenOdd(int[] numbers) {\n\t\tint nextEven=0, nextOdd = numbers.length-1;\n\t\twhile(nextEven<nextOdd) {\n\t\t\tif(numbers[nextEven]%2==0) {\n\t\t\t\tnextEven++;\n\t\t\t}else {\n\t\t\t\tint temp = numbers[nextEven];\n\t\t\t\tnumbers[nextEven]= numbers[nextOdd];\n\t\t\t\tnumbers[nextOdd--]=temp;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn numbers;\n\t}",
"public ListNode oddEvenListOnValue(ListNode head) {\n\t\tif (head == null || head.next == null)\n\t\t\treturn head;\n\n\t\tListNode oddHead = new ListNode(0);\n\t\tListNode evenHead = new ListNode(0);\n\t\toddHead.next = head;\n\t\tevenHead.next = head;\n\t\tListNode odd = oddHead, even = evenHead;\n\t\tListNode cur = head;\n\t\twhile (cur != null) {\n\t\t\tif (cur.val % 2 == 0) {\n\t\t\t\teven.next = cur;\n\t\t\t\teven = even.next;\n\t\t\t} else {\n\t\t\t\todd.next = cur;\n\t\t\t\todd = odd.next;\n\t\t\t}\n\t\t\tcur = cur.next;\n\t\t}\n\t\teven.next = null;\n\t\todd.next = evenHead.next;\n\t\treturn oddHead.next;\n\t}",
"public static void main(String[] args) {\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\n\t\tnumbers.add(5);\n\t\tnumbers.add(50);\n\t\tnumbers.add(10);\n\t\tnumbers.add(60);\n\t\tnumbers.add(15);\n\t\tnumbers.add(70);\n\t\t\n\t\tSystem.out.println(numbers);\n\t\t\n\t\tList<Integer> evenNumbers = numbers.stream().filter(I -> I%2==0).collect(Collectors.toList());\n\t\tSystem.out.println(evenNumbers);\n\t}",
"public static void removedEvenLength(LinkedList<String> list){ //ARRAY AND LINKED \r\n\t\t\r\n\t\tIterator< String> i = list.iterator();// call iterator\r\n\t\twhile ( i.hasNext()){\r\n\t\t\tString element = i.next();\r\n\t\t\tif (element.length()%2 == 0){// even\r\n\t\t\t\ti.remove();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\t}",
"public static void main(String[] args) {\n\t\tint[] array_nums = {1, 7, 8, 5, 7, 13, 0, 2, 4, 9};\n\t\tSystem.out.println(\"Original array: \"+ Arrays.toString(array_nums));\n\t\tfor (int i = 0; i < array_nums.length -1; i++) {\n\t\t\tfor (int j = i+1; j < array_nums.length; j++) {\n\t\t\t\tif(array_nums[i]%2 == 0 && array_nums[j]%2 == 1) {\n\t\t\t\t\tint temp = array_nums[i];\n\t\t\t\t\tarray_nums[i] = array_nums[j];\n\t\t\t\t\tarray_nums[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The result: \"+ Arrays.toString(array_nums));\n\t}",
"public static void rearrangeOddAndEven(int arr[]) {\n System.out.println(Arrays.toString(arr));\n Arrays.sort(arr);\n for(int i=0; i < arr.length-1; i+=2) {\n int temp = arr[i];\n arr[i] = arr[i+1];\n arr[i+1] = temp;\n }\n System.out.println(Arrays.toString(arr));\n System.out.println();\n }",
"public static void main(String [] args) \r\n {\r\n //initialize arrays and index varaiables\r\n int[] origList = new int[10];\r\n int[] evenList = new int[10];\r\n int[] oddList = new int[10];\r\n int[] negList = new int[10];\r\n int indexE=0,indexO=0,indexN=0;\r\n\r\n Scanner scan = new Scanner(System.in);\r\n\r\n //terminal input for original list\r\n for(int i=0;i <10;i++)\r\n {\r\n System.out.print(\"Enter number for array at index \" + i+ \": \");\r\n origList[i]=scan.nextInt();\r\n }\r\n\r\n //sort values from originl list and organze them in other list\r\n for(int i=0;i <10;i++)\r\n {\r\n //even\r\n if( ( (origList[i] % 2) == 0) && (origList[i] != 0) )\r\n {\r\n evenList[indexE] = origList[i];\r\n indexE++;\r\n }\r\n\r\n //odd\r\n if( ( ( (origList[i] %2) == 1) || ( (origList[i] % 2) == -1) ) && (origList[i] != 0))\r\n {\r\n oddList[indexO]=origList[i];\r\n indexO++;\r\n }\r\n\r\n //negative\r\n if(Math.abs(origList[i]) != origList[i])\r\n {\r\n negList[indexN]= origList[i];\r\n indexN++;\r\n }\r\n }\r\n\r\n //print out original integers\r\n System.out.print(\"The original integers were: \");\r\n for(int i=0;i < 10;i++)\r\n {\r\n System.out.print(origList[i] + \" \");\r\n }\r\n\r\n //print out even integers\r\n System.out.print(\"\\nThe even integers are: \");\r\n for(int i=0;i < indexE;i++)\r\n {\r\n System.out.print(evenList[i] + \" \");\r\n }\r\n\r\n //prit out odd integers\r\n System.out.print(\"\\nThe odd integers are: \");\r\n for(int i=0;i < indexO;i++)\r\n {\r\n System.out.print(oddList[i] + \" \");\r\n }\r\n\r\n //print out negative integers\r\n System.out.print(\"\\nThe negative integers are: \");\r\n for(int i=0;i < indexN;i++)\r\n {\r\n System.out.print(negList[i] + \" \");\r\n }\r\n\r\n }",
"public void remove(int v) {\n Lista iter = new Lista(this);\n if (iter.x != v) {\n while (iter.next.x != v) {\n if (iter.next != null) {\n iter = iter.next;\n }\n }\n }\n if (iter.next.x == v) {\n iter.next = iter.next.next;\n }\n }",
"public void changeOddToBlack()\n {\n for (int i = 1; i < sqList.size(); i += 2)\n {\n sqList.get(i).setColor(\"black\");\n }\n }",
"public static void main(String[] args) {\n\n Scanner input = new Scanner(System.in);\n int[] nums = {input.nextInt(), input.nextInt(),input.nextInt(),input.nextInt(),input.nextInt(),input.nextInt(),input.nextInt()};\n int len = nums.length-1;\n for (int i=0;i<nums.length/2;i++){\n int temp=nums[i];\n nums[i]=nums[len-i];\n nums[len-i]=temp;\n }\n //Do not change below statement:\n System.out.println(Arrays.toString(nums));\n }",
"public void changeEvenToBlack()\n {\n for (int i = 0; i < sqList.size(); i += 2)\n {\n sqList.get(i).setColor(\"black\");\n }\n }",
"public void changeEvenToBlack(){\r\n for(int i = 0; i<sqList.size(); i++){\r\n if(i % 2==0){\r\n sqList.get(i).setColor(\"black\");\r\n } \r\n }\r\n }",
"public void decendingLikes(ArrayList<tutorDetails> list){\n\n int n = list.size();\n tutorDetails temp ;\n\n for(int i=0; i < n; i++){\n for(int j=1; j < (n-i); j++){\n\n if(list.get(j-1).getViews()< list.get(j).getViews()){\n //swap the elements!\n temp = list.get(j-1);\n list.set(j-1, list.get(j)); //Do not use add(),it does not replace the value it simply pushes the values to higher\n list.set(j,temp); // indexes,use set() to replace\n }\n\n }\n }\n\n\n }",
"public static int stepTwo(ArrayList<Integer> list) {\n\t\t\n\t\tint passNumber = 0;\n\t\tint sum = 0;\n\t\t\n\t\t//iterate through arraylist from right to left\n\t\tfor(int i = list.size()-1; i >= 0; i--) {\n\n\t\t\tint num = list.get(i);\n\t\t\tpassNumber++;\n\t\t\t\n\t\t\t//sum every other number beginning with second from the right\n\t\t\tif (passNumber % 2 == 0) {\n\t\t\t\tsum += num;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn sum;\n\t}",
"public void remove(int num) {\n // find the index of num\n for (int i = 0; i < count; i++) {\n if (list[i] == num) {\n // shift the elements leftward and decrement count\n for (int j = 0; j < count - 1; j++) {\n list[i+j] = list[i+j+1];\n }\n count--;\n return;\n }\n }\n }",
"public int setNextOdd() {\n\t\twhile(x % 2 != 1){\n\t\t\tx++;\n\t\t}\n\t\t\n\t\t// sets the new odd number equal to x\n\t\tRuntimeThr.evenOddSequence = x;\n\n\t\t// Returns the next odd number\n\t\treturn x;\n\t}",
"public static void main(String[] args) {\r\n\t\t\r\n\tList<Integer> myList = new ArrayList<>();\r\n\tmyList.add(0);\r\n\tmyList.add(1);\r\n\tmyList.add(5);\r\n\tmyList.add(115);\r\n\tmyList.add(100);\r\n\tmyList.add(26);\r\n\tmyList.add(5555);\r\n\tmyList.add(-12);\r\n\t\r\n\tSystem.out.println(myList);\r\n\t\r\n\tfor(int i = 0; i<myList.size(); i++) {\r\n\t\tif(myList.get(i) > 100 || myList.get(i) < 1) {\r\n\t\t\tmyList.remove(i);\r\n\t\t\ti--;\r\n\t\t}\r\n\t}\r\n\t\r\n\tSystem.out.println(myList);\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t}",
"public static void printOddInt() {\n\t\t\n\t\t//For Loop\n\t\tfor(int i=4; i<10; i++) {\n\t\t\tif(i%2!=0) {\n\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t}\n\t\t}\n\t}",
"public static void printodd() {\n for (int i = 0; i < 256; i++){\n if(i%2 != 0){\n System.out.println(i);\n }\n \n }\n }",
"static int[] sortArray(int[] array) {\n if (array.length == 0) {\n return array;\n }\n\n //transform the array in a list which, in the end will hold sorted odds\n List<Integer> myList = new ArrayList<>(array.length);\n for (int i : array) {\n myList.add(i);\n }\n\n //i need a hash map for the evens so i can store them and their indexes\n Map<Integer, Integer> evensIndexes = new HashMap<>();\n //i need a new array to hold the result\n int[] result = new int[array.length];\n\n //put evens and their indexes in the hash map\n for (int i = 0; i < array.length; i++) {\n for (Integer x : myList) {\n if (x % 2 == 0 && x.equals(array[i])) {\n evensIndexes.put(i, x);\n }\n }\n }\n\n System.out.println(\"evensIndexes \" + evensIndexes);\n\n //sort the list and remove evens\n myList.sort(Integer::compareTo);\n\n for (Integer i : evensIndexes.values()) {\n myList.remove(i);\n }\n\n //put evens from the hash map into the result array\n for (int i = 0; i < result.length; i++) {\n for (Map.Entry<Integer, Integer> set : evensIndexes.entrySet()) {\n if (i == set.getKey()) {\n result[i] = set.getValue();\n break;\n }\n }\n }\n\n System.out.println(\"result after evens added \" + Arrays.toString(result));\n\n //use an iterator to get odd values from the list and add them in the result array\n Iterator<Integer> odd = myList.iterator();\n\n for (int i = 0; i < result.length; i++) {\n if (result[i] == 0 && array[i] != 0) {\n while (odd.hasNext()) {\n result[i] = odd.next();\n odd.remove();\n break;\n }\n }\n }\n\n return result;\n\n }",
"public static void printOddNumbers (int from, int to) {//when we dont know the range\n for(int i=from; i<=to; i++){\n if(i%2!=0){\n System.out.print(i + \" \");\n }\n\n }\n System.out.println();\n }",
"public static void main(String[] args) {\nint i =1;\r\nfor(i=1; i<=20; i++)\r\n{\r\n\tif(i % 2 == 1)\r\nSystem.out.println(i);\r\n}\r\nSystem.out.println(\"Printing only the odd numbers from 1 to 20\");\r\n\t}",
"public static Node createEvenListFromOriginal(Node head){\n Node previous = null;\n Node current = head;\n Node newHead = null;\n Node newCurrent = null;\n while(current != null){\n if(current.data % 2 == 0){\n if(newHead == null){\n newHead = new Node(current.data);\n newCurrent = newHead;\n }\n else{\n Node next = new Node(current.data);\n newCurrent.next = next;\n newCurrent = next;\n }\n if(previous != null){\n previous.next = current.next;\n }\n }\n previous = current;\n current = current.next;\n }\n return newHead;\n }",
"public void visiualizeSkipList(){\r\n\t\tint number=0;\r\n\t\tNode dummy = sl.getFrom(0,0);\r\n\t\t\r\n\t\tNode next;\r\n\t\tfor(int i=sl.height(); i>=0; i--){\r\n\t\t\t\r\n\t\t\tnext = sl.getFrom(i,0);\r\n\t\t\t\r\n\t\t\tfor(int j=0; j<(sl.size()+2); j++){\r\n\r\n\t\t\t\tnumber = next.getKey();\r\n\t\t\t\t//F.p(number);\r\n\t\t\t\tif(number==dummy.getKey()){\r\n\r\n\t\t\t\t\tif(number==minf)\r\n\t\t\t\t\t\tSystem.out.print(\"-inf\");\r\n\t\t\t\t\telse if(number==inf)\r\n\t\t\t\t\t\tSystem.out.print(\"---inf\");\r\n\t\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(repeatStr(\"-\",2)+number);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(repeatStr(\"-\",4));\r\n\t\t\t\t\r\n\t\t\t\tif(dummy.getKey()==number)\r\n\t\t\t\t\tnext = next.getRight();\r\n\t\t\t\t\r\n\t\t\t\tdummy = dummy.getRight();\r\n\t\t\t}\r\n\t\t\tdummy = sl.getFrom(0,0);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"public static void sortByOddAndEven(int[] array) {\n\n // int [] arraySample = {2, 1, 3, 5, 4, 9, 8, 11};\n\n int length = array.length - 2;\n\n for (int i = 0; i < length; i++) {\n int j = i + 1;\n\n while ((array[i] % 2) == (array[j] % 2)) {\n j++;\n if (j >= length) {\n// print(array);\n return;\n }\n }\n\n if (j > i + 1) {\n swap(array, i + 1, j);\n }\n }\n }",
"public int hasEvenAtIndex(ArrayList<Integer> list) {\r\n int index = -1;\r\n int i = 0;\r\n while (index == -1 && i < list.size()) {\r\n if (list.get(i) % 2 == 0) {\r\n index = i;\r\n }\r\n i++;\r\n }\r\n return index;\r\n }",
"int odd_palindrome(int head) {\n\t\tint tail=0;\n\t\tint exp=1; //10 exponent number\n\t\tfor(int r=head/10; r>0; r/=10) {\n\t\t\tint d = r%10;\n\t\t\ttail=tail*10+d;\n\t\t\texp *= 10;\n\t\t}\n\t\treturn head * exp + tail;\n\t}",
"public static int listEvenNumber( IntNode head ) {\r\n\t\tif( head == null )\r\n\t\t\treturn 0;\r\n\t\t\r\n\t\tint eCnt = 0;\r\n\t\tfor( IntNode cursor = head; cursor != null; cursor = cursor.link ) {\r\n\t\t\tif( cursor.data % 2 == 0 )\r\n\t\t\t\teCnt++;\r\n\t\t} // end for\r\n\t\treturn eCnt;\t\t\r\n\t}",
"public static List<Integer> doubling(List<Integer> list) {\n\t\treturn list.stream().map(n -> (n * 2))\n\t\t\t\t\t\t\t.collect(Collectors.toList());\n\t}",
"public static void main(String[] args) {\n\n\t\tint number = 32841;\n\t\tint temp = 32841;\n\t\t/*\n\t\t * int number = 32814; int temp = 32814;\n\t\t */\n\t\t// 14823\n\t\t// 12843\n\t\tArrayList<Integer> listOfNumbers = new ArrayList<Integer>();\n\t\tArrayList<Integer> newList = new ArrayList<Integer>();\n\n\t\twhile (temp > 0) {\n\t\t\tint digit = temp % 10;\n\t\t\ttemp = temp / 10;\n\t\t\tlistOfNumbers.add(digit);\n\t\t}\n\n\t\tint i = 0;\n\t\tint j = i + 1;\n\t\t// Checking the asecending order\n\t\tfor (i = 0; i < listOfNumbers.size() - 1; i++) {\n\n\t\t\tif (listOfNumbers.get(j) < listOfNumbers.get(i)) {\n\t\t\t\tSystem.out.println(listOfNumbers.get(i + 1));\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(j);\n\t\t\tj++;\n\t\t}\n\n\t\t// j = 0;\n\n\t\t// replacing the 2 and 4\n\t\tfor (int m = 0; m < listOfNumbers.size() - 1; m++) {\n\n\t\t\tif ((Integer) listOfNumbers.get(m) > (Integer) listOfNumbers.get(i + 1)) {\n\t\t\t\tSystem.out.println(\" i = \" + i);\n\t\t\t\tSystem.out.println(\"value at m is \" + listOfNumbers.get(m));\n\t\t\t\tSystem.out.println(\"value at i is \" + listOfNumbers.get(i + 1));\n\t\t\t\tint swap = listOfNumbers.get(m);\n\t\t\t\tlistOfNumbers.set(m, listOfNumbers.get(i + 1));\n\t\t\t\tlistOfNumbers.set(i + 1, swap);\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\t\t// getting the sub list and sorting them\n\t\tList<Integer> subList = listOfNumbers.subList(0, i + 1);\n\t\tCollections.sort(subList);\n\t\tCollections.reverse(subList);\n\n\t\t// creating a new list wit the next higher number\n\t\tfor (int k = listOfNumbers.size(); k > i + 1; k--) {\n\t\t\tnewList.add(listOfNumbers.get(k - 1));\n\t\t}\n\n\t\tfor (int k = 0; k < subList.size(); k++) {\n\t\t\tnewList.add(subList.get(k));\n\t\t}\n\n\t\tfor (int k = 0; k < newList.size(); k++) {\n\t\t\tSystem.out.print(newList.get(k));\n\t\t}\n\t}",
"public ListNode oddEvenList(ListNode head) {\n if(head == null)return head;\n ListNode dummyNode = new ListNode(-1);\n dummyNode.next = head;\n ListNode odd = head;\n ListNode even = head.next;\n ListNode start = even;\n while(odd.next != null && even.next != null){\n odd.next = even.next;\n odd = odd.next;\n even.next = odd.next;\n even = even.next;\n }\n odd.next = start;\n return dummyNode.next;\n }",
"public static List<Integer> rightDigit(List<Integer> list) {\n\t\treturn list.stream().map(n -> (n % 10))\n\t\t\t\t\t\t\t.collect(Collectors.toList());\n\t}",
"public static void printEvenNumbers(int from, int to){\n for(int i=from; i<=to; i++){\n if(i%2==0){\n System.out.print(i + \" \");\n }\n }\n System.out.println();\n }",
"public static void number_invsert(){\n for(int i=7; i > 0 ; i--){\n for(int j =1;j<=i;j++){\n System.out.print(j);\n }\n System.out.println();\n } \n }",
"public static void stepOne(ArrayList<Integer> list) {\n\t\t\n\t\t//keep track of number of times list is passed through\n\t\tint passNumber = 0;\n\t\t\n\t\t//iterate through arraylist from right to left\n\t\tfor(int i = list.size()-1; i >= 0; i--) {\n\n\t\t\tint newNum = list.get(i);\n\t\t\tpassNumber++;\n\t\t\t\n\t\t\t//for every other number beginning with second from the right\n\t\t\t//double number -- if two digit number results, add digits together\n\t\t\tif (passNumber % 2 == 0) {\n\t\t\t\n\t\t\t\tnewNum *= 2;\n\t\t\t\t\n\t\t\t\t//add digits together if two digit number \n\t\t\t\tif (newNum > 9) {\n\t\t\t\t\tint sum = 0;\n\t\t\t\t\t\n\t\t\t\t\twhile(newNum > 0) {\n\t\t\t\t\t\tsum = sum + newNum % 10;\n\t\t\t\t\t\tnewNum = newNum / 10;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tnewNum = sum;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//replace number in list with new number\n\t\t\t\tlist.set(i, newNum);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int[] nums = {input.nextInt(),input.nextInt(),input.nextInt(),input.nextInt(),input.nextInt()};\n\n //TODO: Write your code below\n int countEven = 0;\n for(int each : nums){\n if(each % 2 != 0){\n continue;\n }\n countEven++;\n }\n System.out.println(countEven);\n\n\n\n }",
"public ListNode oddEvenList(ListNode head) {\n\t\tif (head == null || head.next == null)\n\t\t\treturn head;\n\n\t\tListNode oddHead = new ListNode(0);\n\t\tListNode evenHead = new ListNode(0);\n\t\toddHead.next = head;\n\t\tevenHead.next = head;\n\t\tListNode odd = oddHead, even = evenHead;\n\t\tListNode cur = head;\n\t\tint count = 1;\n\t\twhile (cur != null) {\n\t\t\tif (count % 2 == 0) {\n\t\t\t\teven.next = cur;\n\t\t\t\teven = even.next;\n\t\t\t} else {\n\t\t\t\todd.next = cur;\n\t\t\t\todd = odd.next;\n\t\t\t}\n\t\t\tcount++;\n\t\t\tcur = cur.next;\n\t\t}\n\t\teven.next = null;\n\t\todd.next = evenHead.next;\n\t\treturn oddHead.next;\n\t}",
"public static void main(String[] args)\n {\n \n ArrayList<Integer> myList;\n myList = randomIntegerList(10,20);\n \n System.out.println(myList);\n System.out.println(\"The sum is: \" + sumList(myList));\n \n removeEvens(myList);\n System.out.println(myList);\n \n \n }",
"public static void main(String[] args) {\n ArrayList<Integer> list = new ArrayList<>();\n for (String n:new Scanner(System.in).nextLine().split(\" \")){\n list.add(Integer.parseInt(n));\n }\n\n list.sort((o1, o2) -> {\n if (o1==o2){\n return 0;\n }\n if (o1<o2){\n return -1;\n }\n return 1;\n });\n\n for (int i = 0; i < list.size()/2; i++) {\n System.out.print(list.get(list.size()-i-1)+\" \"+list.get(i)+\" \");\n }\n if (list.size()%2!=0){\n System.out.print(list.size()/2+1);\n }\n\n }",
"SList evenWords();",
"public static void main(String args[])\n {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int arr[] = new int[n+1];\n int arr1[] = new int[n+1];\n int arr2[] = new int[n+1];\n int o = 0 , e = 0;\n for(int i = 1 ; i <= n ; i++ )\n {\n arr[i] = sc.nextInt();\n if(i%2 != 0)\n {\n arr1[o] = arr[i];\n o++;\n }\n else\n {\n arr2[e] = arr[i];\n e++;\n }\n }\n //System.out.println(\"Odd place \"+o+\" even \"+e);\n int nor = sc.nextInt();\n //odd \n int temp = 0;\n /* for(int z = 0 ; z < e ; z ++)\n {\n System.out.println(arr2[z]);\n }\n */\n for(int i = 0 ; i < nor ; i++)\n {\n temp = arr1[o-1];\n \tfor(int j = o-1 ; j > 0 ; j-- )\n {\n arr1[j] = arr1[j-1]; \n }\n arr1[0] = temp;\n }\n /*for(int i = 0 ; i < o ; i++)\n System.out.println(arr1[i]);*/\n \n //even\n for(int j = 0 ; j < nor ; j++)\n {\n temp = arr2[0];\n for(int k = 0 ; k < e ; k++ )\n {\n arr2[k]=arr2[k+1];\n }\n arr2[e-1] = temp;\n }\n int j = 0 , k = 0;\n for(int i = 1 ; i <= n ; i++)\n {\n if(i%2 != 0)\n System.out.print(arr1[j++]+\" \");\n else\n System.out.print(arr2[k++]+\" \");\n }\n \t}",
"public static Lista escojerAleatorio(Lista input, int num) {\n if (input.size() < num) {throw new NumberFormatException(\"Error: Num excede tamaño de lista input\");}\n\n Lista revuelta = new Lista(\"out mah bois\"); //La lista con los valores revueltos\n boolean[] indices = new boolean[input.size()];\n\n for (int i = 0; i < num; i++) { //'num' iteraciones\n int índice = (int)(input.size()*Math.random()); //Un número aleatorio entre 0 y input.size() - 1\n //Si Math.Random() == 1.0000000000, se rompe tödo.\n\n if (índice == input.size() || indices[índice]) {\n i--;\n continue;\n } // Esto se asegura de que la índice sea válida.\n //También se asegura de que no aya entradas dobles. Si la índice pasa el filtro, se agrega.\n revuelta.add(input.get(índice));\n indices[índice] = true;\n }\n return revuelta;\n }",
"public static void main(String[] args) {\nint arr[]= {1,2,3,4,5};\r\nint i;\r\nint temp;\r\nfor(i=0; i<arr.length/2;i++)\r\n{\r\n\ttemp=arr[i];\r\n\tarr[i]=arr[arr.length-1-i];\r\n\tarr[arr.length-1-i]=temp;\r\n\t}\r\nfor(i=0; i<=arr.length-1;i++ )\r\n{\r\nSystem.out.print(arr[i]);\r\n\r\n\r\n}\r\n\t}",
"public static LLList getAllOdds(LLList vals) {\r\n LLList odd = new LLList();\r\n int j = 0;\r\n for (int i = 0; i < vals.length(); i++) {\r\n int val = (int) vals.getItem(i);\r\n if (val % 2 == 1) {\r\n odd.addItem(val, j);\r\n j++;\r\n }\r\n }\r\n return odd;\r\n }",
"void dropcard()\n{\nfor (int i=0;i<hc.size()-1;i++)\n\t{\n\tif(hc.get(i)==1||hc.get(i)==2)\n\t\tcontinue;\n\telse if((((hc.get(i))-3)/4)==(((hc.get(i+1))-3)/4))\n\t\t{hc.remove(i);\n\t\thc.remove(i);\n\t\ti--;}\t\n\t}\n}",
"private static int changeEven(int colorRed) {\n if (colorRed % 2 != 0)\n --colorRed;\n return colorRed;\n }",
"public static void main(String[] args) {\n\t\tPredicate<Integer> even=x->x%2==0;\n\t\tList<Integer> li=Arrays.asList(1,2,3,4,5,6,7,8);\n\t\tList<Integer> Leven=li.stream().filter(even).collect(Collectors.toList());\n\t\tSystem.out.println(Leven);\n\t\tList<Integer> Lodd=li.stream().filter(even.negate()).collect(Collectors.toList());\n\t\tSystem.out.println(Lodd);\n\t}",
"public static void main (String[] args) {\n\t\t\n\t\tint num=20;\n\t\t\n\t\twhile (num>=0) {\n\t\t\tSystem.out.println(num);\n\t\t\tnum-=2;\n\t\t}\n\t\t\n//second way to do it\n\t\t\n\t\tSystem.out.println(\"$$$$$$$$\");\n\t\t\n\t\tint num1=20;\n\t\t\n\t\twhile(num1>=0) {\n\n\t\t\tif(num1%2==0) {\n\t\t\t\tSystem.out.println(num1);\n\t\t\t\t}num1--;\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\n\t}",
"public void reverseList(List<Integer> list) {\n for (int i = list.size() - 1; i >= 0; i--) {\n System.out.println(list.get(i));\n }\n }",
"private void makeReverse() {\n\t\tint rev=0;\r\n\t\t\tint reverse = 0;\r\n\t\tfor(int i=0;i<n;rev=n/10)\r\n\t\t{\r\n\t\t\t rev=n%10;\r\n\t\t\t reverse=rev*10+rev;\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(reverse);\r\n\t}",
"public List<Integer> findDisappearedNumbers2(int[] nums) {\n for (int i = 0; i < nums.length; ++i) {\n // convert to index\n int index = Math.abs(nums[i]) - 1;\n if (nums[index] > 0) {\n // mark with reversing to negative\n nums[index] = -nums[index];\n }\n }\n\n List<Integer> ans = new ArrayList<>();\n for (int i = 0; i < nums.length; i++) {\n if (nums[i] > 0) {\n ans.add(i + 1);\n }\n }\n return ans;\n }",
"@Test\n public void testRemove_int_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }",
"public void shellSort(){\n int increment = list.size() / 2;\n while (increment > 0) {\n for (int i = increment; i < list.size(); i++) {\n int j = i;\n int temp = list.get(i);\n while (j >= increment && list.get(j - increment) > temp) {\n list.set(j, list.get(j - increment));\n j = j - increment;\n }\n list.set(j, temp);\n }\n if (increment == 2) {\n increment = 1;\n } else {\n increment *= (5.0 / 11);\n }\n }\n }",
"public static void main(String[] args) {\n int numbers[] = new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 21, 45};\r\n int num[] = null;\r\n //System.out.println(numbers[3]);\r\n for (int i = 0; i < numbers.length; i++) {\r\n if (numbers[i] % 2 == 0) { //If the remaining value zero after division by 2 then it is even number \r\n \r\n System.out.println(numbers[i] + \" is even number\");\r\n //asd.set(i, numbers[i]);\r\n } else { // else it is odd number\r\n System.out.println(numbers[i] + \" is odd number\");\r\n\r\n }\r\n }\r\n //System.out.println(num); \r\n }",
"public static void main(String[] args) {\n\t\tint i = 20;\ndo { if (i%2==0)\n\tSystem.out.println(i);\n\ti--;\n}while (i>1); \n\t\n}",
"public static void main(String[] args){\r\n int i=100;\r\n while (i>0) { \r\n if (i%2!=0) {\r\n System.out.print(i+\"\\n\");\r\n }\r\n i--;\r\n } \r\n }",
"@Override\r\n\tpublic ArrayList<Integer> generateSuccessors(int lastMove, int[] takenList) //this method should be fine\r\n\t{\r\n\t\tArrayList <Integer> myList = new ArrayList <Integer>();\r\n\t\tif (lastMove == -1) //must choose an odd-numbered stone that is less than n/2\r\n\t\t{\r\n\t\t\tfor (int i = ((takenList.length - 2)/2); i > 0; i--)\r\n\t\t\t{\r\n\t\t\t\tif (i % 2 != 0 && takenList[i] == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tmyList.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor (int i = takenList.length - 1; i > 0; i--)\r\n\t\t\t{ \r\n\t\t\t\tif (takenList[i] == 0 && (i % lastMove == 0 || lastMove % i == 0))\r\n\t\t\t\t{\r\n\t\t\t\t\tmyList.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn myList;\r\n\r\n\t}",
"public static void main(String[] args) {\n\t int[] numbers = {13, 45, 26, 22, 19, 24, 20, 30, 90, 12};\n\n for(int i = 0; i < numbers.length; i++){\n if(numbers[i]%2 == 0){\n System.out.println(\"Even number: \" + numbers[i]);\n }\n }\n }",
"public static void findNumberOccurringOddTimes() {\n int arr[] = {1, 1, 2, 2, 3, 3, 3};\n int result = 0;\n for (int num : arr)\n result ^= num;\n System.out.println(\"Odd times occurring number : \" + result);\n }",
"public static List<Integer> generateOddNumbers(int row, final int offsetNumber) {\n List<Integer> results = new ArrayList<Integer>(row);\n int localOffset = offsetNumber;\n \n for (int i=0;i<row; i++) {\n results.add(localOffset);\n localOffset+=2;\n }\n return results;\n }",
"public static ArrayList<Integer> getEvenNumberList(int number) {\n\t\tArrayList<Integer> evenNumber = new ArrayList<Integer>();\n\n\t\tfor (int i = 0; i <= number; i++) {\n\n\t\t\tif (i % 2 == 0) {\n\n\t\t\t\tevenNumber.add(i);\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn evenNumber;\n\n\t}",
"private static boolean isEven(Integer element) {\n return element % 2 == 0;\n }",
"public static void main(String[] args) {\n\r\n int num = 1234;\r\n\r\n int rev = 0;\r\n\r\n\r\n while (num != 0) {\r\n int sum = num % 10; // 4\r\n rev = rev * 10 + sum;\r\n num = num / 10; // 123\r\n\r\n }\r\n System.out.println(\"Reverse \"+rev);\r\n }",
"private void findOddEven() {\n\t\tif (number % 2 == 0) {\n\t\t\tif (number >= 2 && number <= 5)\n\t\t\t\tSystem.out.println(\"Number is even and between 2 to 5...!!\");\n\t\t\telse if (number >= 6 && number <= 20)\n\t\t\t\tSystem.out.println(\"Number is even and between 6 to 20...!!\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Number is even and greater than 20...!!\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Number is odd...!!\");\n\t\t}\n\t}",
"public synchronized void odd(IntConsumer printNumber) throws InterruptedException {\n for (int i = 1; i <= n; i += 2) {\n while (state != 1) {\n wait();\n }\n\n printNumber.accept(i);\n state = 2;\n\n notifyAll();\n }\n }",
"public static void main(String[] args) {\n\t\tList<Integer> numberList = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);\r\n\t\t\t\t\r\n\t\t//Stampa il doppio di ogni numero\r\n\t\tSystem.out.println(\"Stampa il doppio di ogni numero\");\r\n\t\tnumberList.forEach((i)-> System.out.print(numberList.get(i-1)*2+ \" \"));\r\n\t\t\r\n\t\t//Recupera lo stream a partire dalla lista\r\n\t\tStream<Integer> streamInt = numberList.stream();\r\n\t\tSystem.out.println(\"\");\r\n\t\t//Stampa il quadrato di ogni numero\r\n\t\tSystem.out.println(\"Stampa il quadrato di ogni numero\");\r\n\t\tstreamInt.forEach((p)->System.out.print(p*p +\" \"));\r\n\t\t\r\n\t\t//Stampa i numeri Dispari\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"Stampa i numeri Dispari\");\t\t\r\n\t\tnumberList.stream().filter(n -> n % 2 != 0).forEach(System.out::print); \t\t\r\n\t\tSystem.out.println(\"\");\r\n\t\tnumberList.stream().filter(n -> n % 2 != 0).forEach((n)->System.out.print(n));\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tList<String> stringList = Arrays.asList(\"a1\", \"c6\", \"a2\", \"b1\", \"c2\", \"c1\", \"c5\", \"c3\");\r\n\t\tstringList.stream().filter(s -> s.startsWith(\"c\")).map(String::toUpperCase).sorted().forEach(System.out::println);\r\n\t\t\t\t\r\n\t\t//Stampa le donne della mia famiglia\r\n\t\tMyFamily myFamily = new MyFamily();\r\n\t\tSystem.out.println(\"Stampa le donne della mia famiglia\");\r\n\t\tmyFamily.getMyFamily().stream().filter((p)->p.isFemale()).forEach((p)->System.out.println(p));\r\n\t\t\r\n\t\t//Stampa gli uomini della mia famiglia\r\n\t\tSystem.out.println(\"Stampa gli uomini della mia famiglia\");\r\n\t\tmyFamily.getMyFamily().stream().filter((p)->!p.isFemale()).forEach((p)->System.out.println(p));\r\n\t\t\r\n\t\t//Calcola la somma dell'eta dei maschi della mia famiglia\r\n\t\tInteger anniMaschi = myFamily.getMyFamily().stream().filter((p)->!p.isFemale()).map((p)->p.getEta()).reduce(0, Integer::sum);\r\n\t\t\r\n\t\t//These reduction operations can run safely in parallel with almost no modification:\r\n\t\tInteger anniMaschi2 = myFamily.getMyFamily().stream().parallel().filter((p)->!p.isFemale()).map((p)->p.getEta()).reduce(0, Integer::sum);\t\t\r\n\t\tSystem.out.println(\"Anni Totali dei maschi...\" + anniMaschi);\r\n\t\tSystem.out.println(\"Anni Totali dei maschi...\" + anniMaschi2);\r\n\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n//\t\tint arr[]=new int[10];\n//\t\tint odd[]=new int[10];\n//\t\tint even[]=new int[10];\n//\t\tint e=0,o=0;\n//\t\tSystem.out.println(\"enter total number\");\n//\t\tint n =sc.nextInt();\n//\t\tSystem.out.println(\"enter array\");\n//\t\tfor(int i=0;i<n;i++)\n//\t\t\tarr[i]=sc.nextInt();\n//\tfor(int var:arr)\n//\t{\n//\t\tif(var%2==0)\n//\t\t{\n//\t\t\teven[e]=var;\n//\t\t\te++;\n//\t\t}\n//\t\telse\n//\t\t{\n//\t\t\todd[o]=var;\n//\t\t\to++;\n//\t\t}\n//\t}\n//\t\tSystem.out.println(\"even array\");\n//\t\tfor(int var:even)\n//\t\t\tSystem.out.println(var);\n//\t\tSystem.out.println(\"odd array\");\n//\t\tfor(int var:odd)\n//\t\t\tSystem.out.println(var);\n\n//\t\t\n//\t\tint arr[]=new int[5];\n//\t\tint rev[]=new int [5];\n//\t\tfor(int i=0;i<5;i++)\n//\t\t\tarr[i]=sc.nextInt();\n//\t\tint j=5;\n//\t\tfor(int i=0;i<5;i++)\n//\t\t\trev[i]=arr[--j];\n//\t\tSystem.out.println(\"given array\");\n//\t\tfor(int var:arr)\n//\t\t\tSystem.out.println(var);\n//\t\tSystem.out.println(\"reverse array\");\n//\t\tfor(int var:rev)\n//\t\t\tSystem.out.println(var);\n\n//\t\tfor(int i=1;i<6;i++)\n//\t\t{\n//\t\t\tfor(int j=1;j<=i;j++)\n//\t\t\t\tSystem.out.print(i);\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t}",
"public final void mod() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (topMostValue > 0) {\n\t\t\t\tpush(secondTopMostValue % topMostValue);\n\t\t\t}\n\t\t}\n\t}",
"public static LinkedList<Integer> Reverse2(LinkedList<Integer> list) {\n\t\tLinkedList<Integer> listReverse = new LinkedList<Integer>();\n\t\tIterator<Integer> re = list.descendingIterator();\n\t\twhile (re.hasNext()) {\n\t\t\tlistReverse.add(re.next());\n\t\t}\n\n\t\treturn listReverse;\n\t}",
"public List<Integer> crateSecond(int size) {\n int[] arr = {2, 1, 2, 3, 2, 4, 2, 5};\n int arrSize = 8;\n List<Integer> secondAnswer = new ArrayList<>(size);\n for (int i = 0; i < size; i++) {\n int index = i%arrSize;\n\n secondAnswer.add(arr[index]);\n }\n return secondAnswer;\n\n }",
"public static List<Integer> findDisappearedNumbers_revert(int[] nums) {\n List<Integer> ans = new ArrayList<>();\n int len = nums.length;\n for (int num : nums) {\n int x = Math.abs(num) - 1;\n nums[x] = -Math.abs(nums[x]);\n }\n\n for (int i = 0; i < len; i++) {\n if (nums[i] > 0) {\n ans.add(i + 1);\n }\n }\n\n return ans;\n }",
"private static List<Integer> reorganize(List<Integer> result){\n List<Integer> outcome=new ArrayList<>();\n result.sort(Comparator.comparingInt(o -> o));\n if(!result.isEmpty()){\n outcome.add(result.get(0));\n for(int i=1;i<result.size();i++){\n if(!result.get(i).equals(result.get(i-1)))\n outcome.add(result.get(i));\n }\n }\n return outcome;\n }",
"public static void main(String[] args) {\n List<Integer> numbers = Arrays.asList(1, 9, -9, -32234, 8932489);\n\n //vytvorim si dalsi list integerov a priradim mu .stream Array List numbers\n List<Integer> squeredNumbers = numbers.stream()\n // .filter ako for loop, prejde arrayom numbers ak je cislo vacsie ako tri\n // podmienka pokracuje\n .filter(i -> i > 3)\n // .map zobere hodnotu i ( je to cislo z mapy) a vynasoby ju rovnakou hodnotou\n .map(i -> i * i)\n // .cllect(Collectors.toList();\n .collect(Collectors.toList());\n // vytlacime stream funkciu\n System.out.println(squeredNumbers);\n }",
"int main()\n{\n int n,p=0,n2=2;\n cin>>n;\n if(n>0)\n cout<<p<<\" \";\n for(int i=1;i<n;i++)\n {\n p=p+n2;\n cout<<p<<\" \";\n if(i%2==1)\n \tn2=n2+4;\n }\n \n}",
"public void getEvenOdd(int num) {\r\n\t\t\r\n\t\tSystem.out.println(\"The given number is : \"+num);\r\n\t\t\r\n\t\tif(num % 2 == 0) {\r\n\t\t\tSystem.out.println(\"This is Even number\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"This is odd number\");\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tListNode head = new ListNode(17);\n\t\thead.next = new ListNode(15);\n\t\thead.next.next = new ListNode(8);\n\t\thead.next.next.next = new ListNode(12);\n\t\thead.next.next.next.next = new ListNode(5);\n\t\thead.next.next.next.next.next = new ListNode(7);\n\t\t\n\t\tListNode res = new SegregateEvenAndOdd().segregate(head);\n\t\twhile(res != null){\n\t\t\tSystem.out.print(res.val+\" \");\n\t\t\tres = res.next;\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n\n\n int i = 0;\n while (i < 10) {\n i++;\n if (i%2==0) {\n System.out.println(i);\n }\n }\n }",
"public Integer oddNumbers(int fromThisNumber, int toThisNumber){\n\t\tSystem.out.println(\"Print odd numbers between 1-255\");\n\t\tfor(int i = fromThisNumber; i <= toThisNumber; i++){\n\t\t\tif(i % 2 == 1){\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t\treturn 1;\n\t}",
"public static void printEvenNodes(Node head){\n Node current = head;\n while(current != null){\n if(current.data % 2 == 0){\n System.out.print(current.data);\n System.out.print(\"->\");\n }\n current = current.next;\n }\n System.out.println();\n }",
"@Test\n public void testRemove_int_Order() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int lonelyNumber = 0;\n int a[] = new int[n];\n for(int a_i=0; a_i < n; a_i++){\n a[a_i] = in.nextInt();\n }\n \n for (int index = 0; index < a.length; index++) {\n lonelyNumber ^= a[index];\n }\n \n System.out.println(lonelyNumber);\n }",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int k = in.nextInt();\n ArrayList<Integer> list = new ArrayList<>();\n for(int arr_i=0; arr_i < n; arr_i++){\n int integer = in.nextInt();\n list.add(new Integer(integer));\n }\n in.close();\n\n\n\n if(k == 1){\n System.out.println(k);\n return;\n }\n\n for(int i = 0;i < list.size();i ++){\n int x = list.get(i) % k;\n list.set(i, x);\n }\n\n int[] kx = new int[k];\n for(int i = 0;i < k;i ++){\n kx[i] = 0;\n }\n for(int i = 0;i < list.size();i ++){\n int x = list.get(i);\n kx[x] ++;\n }\n\n\n int num = 0;\n int A = 0;\n if(k % 2 == 0){\n A = k / 2 - 1;\n }else{\n A = k / 2;\n }\n if(kx[0] != 0){\n num += 2;\n }\n for(int i = 1; i <= A;i ++){\n if(kx[i] >= kx[k - i]){\n num += kx[i];\n }else {\n\n num += kx[k - i];\n }\n\n }\n System.out.println(num);\n }",
"public static void main(String[] args) {\n\n\t int even=20;\n\t do {\n\t\tSystem.out.println(even);\n\t even+=2;\n\t }while (even<=50);\n//2. way\n\t int even1=20;\n\t do {\n\t\t if (even1%2==0) {\n\t\t\t System.out.println(even1);\n\t\t }\n\t even1++;\n\t }while (even1<=50);\n}",
"boolean checkOdd(int[] table)\n{\n boolean found = false;\n for (int count : table)\n if (count % 2 == 1)\n {\n if (found) return false;\n found = true;\n }\n return true;\n}",
"private void updateElementListFromSegmet(int changeValue, List<Integer> elementList) {\n\n int changeIndex = 0;\n int change = 0;\n\n for (int i = 0; i < elementList.size(); i++) {\n if (changeValue == elementList.get(i)) {\n changeIndex = i;\n change++;\n }\n }\n\n if (change == 0) {\n for (int i = 0; i < elementList.size(); i++) {\n if (changeValue > elementList.get(i)) {\n continue;\n }\n int value = elementList.get(i) - 1;\n elementList.set(i, value);\n }\n return;\n }\n\n for (int i = elementList.size() - 1; i >= 0; i--) {\n if (elementList.get(i) == changeValue) {\n break;\n } else {\n int value = elementList.get(i) - 1;\n elementList.set(i, value);\n }\n\n }\n\n elementList.remove(changeIndex);\n\n }",
"public static ArrayList getAllOdds(ArrayList vals) {\r\n ArrayList odd = new ArrayList(vals.length());\r\n int j = 0;\r\n for (int i = 0; i < vals.length(); i++) {\r\n int val = (int) vals.getItem(i);\r\n if (val % 2 == 1) {\r\n odd.addItem(val, j);\r\n j++;\r\n }\r\n }\r\n return odd;\r\n }",
"public static void main(String[] args) {\r\n\t\r\n\t\tVector v = new Vector();\r\n\t\tfor (int i = 0; i <= 10; i++) {\r\n\t\t\tv.addElement(i);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(v); \r\n\t\t//System.out.println(v.elements()); \r\n\t\tEnumeration e = v.elements();\r\n\t\t\r\n\t\t//EXPECTED: should also print the even numbers 1 by 1 on new line\r\n\t\twhile (e.hasMoreElements()) {\r\n\t\t\tInteger I = (Integer)e.nextElement();\r\n\t\t\tif (I % 2 == 0) {\r\n\t\t\t\tSystem.out.println(I);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(I + \" will be removed\");\r\n\t\t\t\tv.remove(I);\r\n\t\t\t\tSystem.out.println(v);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public void remove() {\n if (count == 0) {\n return;\n }\n \n Random rand = new Random();\n int index = rand.nextInt(count);\n for (int i = index; i < count - 1; i++) {\n list[i] = list[i+1];\n }\n count--; \n }",
"public static void main(String[] args) {\n\n\t\tint[] nums = { 4, 3, 2, 44, 1, 100, 55 };\n\n\t\tfor (int i = 0; i < nums.length / 2; i++) {\n\t\t\tint temp = nums[i];\n\t\t\tnums[i] = nums[nums.length - i - 1];\n\t\t\tnums[nums.length - i - 1] = temp;\n\t\t}\n\n\t\tSystem.out.println(Arrays.toString(nums));\n\n\t}"
] | [
"0.6147373",
"0.614264",
"0.60504436",
"0.5951018",
"0.59277135",
"0.5911384",
"0.5864371",
"0.5829733",
"0.5801003",
"0.5787535",
"0.5777111",
"0.57669395",
"0.5748317",
"0.5710938",
"0.5709241",
"0.5668951",
"0.5652254",
"0.56457293",
"0.5644926",
"0.5640812",
"0.5620746",
"0.5609631",
"0.5600718",
"0.55990916",
"0.5591162",
"0.559067",
"0.5552521",
"0.5551887",
"0.554233",
"0.55329484",
"0.55286634",
"0.5524762",
"0.5519437",
"0.55149305",
"0.5507054",
"0.5501749",
"0.5501642",
"0.5500348",
"0.5495784",
"0.5452381",
"0.5432056",
"0.5428766",
"0.5428658",
"0.5427875",
"0.5409299",
"0.5399486",
"0.5390847",
"0.5383936",
"0.53820217",
"0.5379872",
"0.53795755",
"0.537592",
"0.53758824",
"0.5375382",
"0.53657687",
"0.5362117",
"0.5361041",
"0.5351068",
"0.5331857",
"0.53281695",
"0.532097",
"0.5309455",
"0.52791977",
"0.5269673",
"0.52689004",
"0.52644354",
"0.52631986",
"0.52601403",
"0.52540034",
"0.52536976",
"0.52369475",
"0.52314854",
"0.52304846",
"0.5223848",
"0.521792",
"0.52099186",
"0.5208463",
"0.52074695",
"0.5206206",
"0.52013713",
"0.5192426",
"0.5182925",
"0.51752657",
"0.51622206",
"0.51567626",
"0.5151666",
"0.5148773",
"0.5147831",
"0.5141359",
"0.5140504",
"0.5137279",
"0.5133805",
"0.51161623",
"0.51161593",
"0.51149696",
"0.51059586",
"0.51010436",
"0.5081621",
"0.5081289",
"0.50803393"
] | 0.61420137 | 2 |
Don't use this method in other classes, use isInternetConnected method instead | public static boolean isNetworkAvailable(Context context) {
ConnectivityManager connectivityManager
= (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
return (activeNetworkInfo != null && activeNetworkInfo.isConnected());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isConnectedToInternet(){\n ConnectivityManager connectivityManager = (ConnectivityManager) main.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n return networkInfo != null && networkInfo.isConnected();\n }",
"private boolean isInternetConnected() {\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo ni = cm.getActiveNetworkInfo();\n if (ni!=null && ni.isAvailable() && ni.isConnected()) {\n return true;\n } else {\n return false;\n }\n }",
"private boolean isConnectedToInternet() {\n ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n return cm.getActiveNetworkInfo() != null && cm.getActiveNetworkInfo().isConnected();\n }",
"private boolean isConnectedToInternet() {\n ConnectivityManager conManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = conManager.getActiveNetworkInfo();\n return networkInfo != null && networkInfo.isConnected();\n }",
"private boolean checkInternetConnection() {\n\n ConnectivityManager connectivityManager = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n return (networkInfo != null && networkInfo.isConnected());\n\n }",
"private boolean checkInternetConnection() {\n ConnectivityManager cm =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n return activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n }",
"boolean isInternetConnected(){\n\n ConnectivityManager connectivityManager = (ConnectivityManager)getSystemService(CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n return networkInfo!=null && networkInfo.isConnected(); // -> true if we have internet connected\n\n }",
"private boolean checkInternetConnection() {\n ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n return networkInfo != null && networkInfo.isConnectedOrConnecting();\n }",
"private Boolean checkInternetConnectivity(){\n // Code to check the network connectivity status\n ConnectivityManager connMgr = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n return networkInfo != null && networkInfo.isConnected();\n }",
"private boolean isDeviceConnectedToInternet() {\n ConnectivityManager cm =\n (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n return activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n }",
"public boolean isConnectingToInternet(){\n ConnectivityManager connectivity = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null)\n {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED)\n {\n return true;\n }\n \n }\n return false;\n }",
"public boolean isConnectingToInternet(){\n ConnectivityManager connectivity = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null)\n {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED)\n {\n return true;\n }\n \n }\n return false;\n }",
"private Boolean hasInternetConnection() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n if ((networkInfo != null) && networkInfo.isConnected()) {\n return true;\n } else {\n makeToast(\"There is no internet connection\");\n return false;\n }\n }",
"public final int isInternetOn() {\n ConnectivityManager connec =\r\n (ConnectivityManager)getSystemService(getBaseContext().CONNECTIVITY_SERVICE);\r\n\r\n // Check for network connections\r\n if ( connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\r\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\r\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\r\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED ) {\r\n\r\n // if connected with internet\r\n\r\n //Toast.makeText(this, \" Connected \", Toast.LENGTH_LONG).show();\r\n return 1;\r\n\r\n } else if (\r\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||\r\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED ) {\r\n\r\n //Toast.makeText(this, \" Not Connected \", Toast.LENGTH_LONG).show();\r\n return 0;\r\n }\r\n return 0;\r\n }",
"public boolean probarInternet() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"public static boolean isConnectedToInternet() {\n String pingServerURL = pingBackUrl.substring(0, pingBackUrl.indexOf(\"/\", \"http://url\".length()));\n try {\n URL url = new URL(pingServerURL);\n HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();\n urlConn.connect();\n return (HttpURLConnection.HTTP_NOT_FOUND != urlConn.getResponseCode());\n } catch (MalformedURLException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n \n } catch (IOException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n }\n return false;\n }",
"public boolean checkInternetConnection()\n {\n ConnectivityManager cm =\n (ConnectivityManager)getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n return activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n }",
"private boolean isInternetAvailable() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Network[] networks = connectivityManager.getAllNetworks();\n NetworkInfo networkInfo;\n for (Network mNetwork : networks) {\n networkInfo = connectivityManager.getNetworkInfo(mNetwork);\n if (networkInfo.getState().equals(NetworkInfo.State.CONNECTED)) {\n return true;\n }\n }\n } else {\n if (connectivityManager != null) {\n NetworkInfo[] info = connectivityManager.getAllNetworkInfo();\n if (info != null) {\n for (NetworkInfo networkInfo : info) {\n if (networkInfo.getState() == NetworkInfo.State.CONNECTED) {\n return true;\n }\n }\n }\n }\n }\n Toast.makeText(getContext(), getString(R.string.internet_connection_needed),Toast.LENGTH_SHORT).show();\n return false;\n }",
"public boolean internetIsConnected() {\n ConnectivityManager connMgr = (ConnectivityManager)\n getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n return networkInfo != null && networkInfo.isConnected();\n }",
"public final boolean isInternetOn() {\n ConnectivityManager connec =\n (ConnectivityManager)context.getSystemService(context.CONNECTIVITY_SERVICE);\n\n // Check for network connections\n if ( connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED ) {\n\n // if connected with internet\n\n Toast.makeText(context, \" Connected \", Toast.LENGTH_LONG).show();\n return true;\n\n } else if (\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED ) {\n\n Toast.makeText(context, \" Not Connected \", Toast.LENGTH_LONG).show();\n return false;\n }\n return false;\n }",
"private static boolean isConnectingToInternet() {\n ConnectivityManager connectivity = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null) {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED) {\n // return connectivity.getActiveNetworkInfo() != null\n // && connectivity.getActiveNetworkInfo()\n // .isConnectedOrConnecting();\n return true;\n }\n }\n return false;\n }",
"private void checkInternetConnection() {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}",
"public boolean isInternetReachable() {\n \t\ttry {\n \t\t\t// URL to a source\n \t\t\tURL url = new URL(\"http://www.betfair.com\");\n \t\t\t// Open a connection\n \t\t\tHttpURLConnection urlConnect = (HttpURLConnection) url\n \t\t\t\t\t.openConnection();\n \t\t\t// Retrieving data from the source - if there is no connection,\n \t\t\t// throws and exception\n \t\t\t@SuppressWarnings(\"unused\")\n \t\t\tObject objData = urlConnect.getContent();\n \t\t} catch (Exception e) {\n \t\t\treturn false;\n \t\t}\n \t\treturn true;\n \t}",
"public boolean hasActiveInternetConnection()\n {\n Runtime runtime = Runtime.getRuntime();\n try {\n Process ipProcess = runtime.exec(\"/system/bin/ping -c 1 8.8.8.8\");\n int exitValue = ipProcess.waitFor();\n return (exitValue == 0);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return false;\n }",
"public boolean isInternetIsConnected(Context context) {\n try {\n ConnectivityManager cm = getConnectivityManager(context);\n assert cm != null;\n @SuppressLint(\"MissingPermission\") NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n if (activeNetwork != null) { // connected to the internet\n if (activeNetwork.getType() == ConnectivityManager.TYPE_WIFI) {\n // connected to wifi\n // Toast.makeText(context, activeNetwork.getTypeName(), Toast.LENGTH_SHORT).show();\n return true;\n\n } else if (activeNetwork.getType() == ConnectivityManager.TYPE_MOBILE) {\n // connected to the mobile provider's data plan\n // Toast.makeText(context, activeNetwork.getTypeName(), Toast.LENGTH_SHORT).show();\n return true;\n }\n } else {\n // not connected to the internet\n return false;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }",
"protected boolean checkInternetConnection() {\n if (!Utils.hasInternetConnection(getApplicationContext())) {\n final AlertDialog.Builder adBuilder = createAlertDialog(R.string.dialog_title_no_internet, R.string.dialog_message_no_internet);\n adBuilder.setPositiveButton(R.string.dialog_btn_ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n adBuilder.show();\n return false;\n }\n\n return true;\n }",
"public final boolean isInternetOn() {\n ConnectivityManager connec =\n (ConnectivityManager) getSystemService(getBaseContext().CONNECTIVITY_SERVICE);\n\n // Check for network connections\n if (connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED) {\n\n // if connected with internet\n\n\n return true;\n\n } else if (\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED) {\n\n\n return false;\n }\n return false;\n }",
"public static boolean isConnectedToInternet(Context con){\n ConnectivityManager connectivity = (ConnectivityManager) con.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null)\n {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED)\n {\n return true;\n }\n\n }\n return false;\n }",
"public boolean internetErisimi() {\n\n ConnectivityManager conMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n if (conMgr.getActiveNetworkInfo() != null\n\n && conMgr.getActiveNetworkInfo().isAvailable()\n\n && conMgr.getActiveNetworkInfo().isConnected()) {\n\n return true;\n\n } else {\n\n return false;\n\n }\n\n }",
"public static boolean hasActiveInternetConnection(Context context) {\n ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n\n if (netInfo != null && netInfo.isConnected()) {\n return true;\n }\n return false;\n }",
"public boolean hasInternetConnection(final Context context) {\n\t\tConnectivityManager conMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tif (conMgr.getActiveNetworkInfo() != null\n\t\t\t\t&& conMgr.getActiveNetworkInfo().isAvailable()\n\t\t\t\t&& conMgr.getActiveNetworkInfo().isConnected()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean isInternetOn(Context context) {\n _context = context;\n ConnectivityManager connec = null;\n // get Connectivity Manager object to check connection\n //ConnectivityManager connec = \n //(ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n // get Connectivity Manager object to check connection\n try {\n connec = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n // 0 is Mobile dataconnection\n // 1 for Wifi Connection\n NetworkInfo activeNetwork = connec.getActiveNetworkInfo();\n if (activeNetwork != null) {\n if (connec.getNetworkInfo(1).getState() == NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == NetworkInfo.State.CONNECTED) {\n //Common.IsLocalConnection = 2;\n return true;\n\n } else if (connec.getNetworkInfo(0).getState() == NetworkInfo.State.CONNECTED ||\n connec.getNetworkInfo(0).getState() == NetworkInfo.State.CONNECTING) {\n //Common.IsLocalConnection = 1;\n return true;\n } else if (connec.getNetworkInfo(0).getState() == NetworkInfo.State.DISCONNECTED ||\n connec.getNetworkInfo(1).getState() == NetworkInfo.State.DISCONNECTED) {\n //Common.IsLocalConnection = 0;\n return false;\n } // Check for network connections\n } else {\n // not connected to the internet\n }\n } catch (Exception ex) {\n CrashAnalytics.CrashReport(ex);\n }\n return false;\n }",
"private boolean checkConnection() {\n return InternetConnectivityReceiver.isConnected();\n }",
"public boolean isOnline() {\n ConnectivityManager conMgr = (ConnectivityManager) getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = conMgr.getActiveNetworkInfo();\n // In case it's not notify it through a toast\n if(netInfo == null || !netInfo.isConnected() || !netInfo.isAvailable()){\n Toast.makeText(MainActivity.this, \"No Internet connection!\", Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }",
"public static boolean checkInternetConnection(Context context) {\n ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"public static boolean isConnect() {\n try {\n if (!isConnectingToInternet()) {\n // Internet Connection is not present\n Toast.makeText(context, \"Please Check your connection\", Toast.LENGTH_LONG).show();\n return false;\n }\n } catch (Exception e) {\n\n }\n return true;\n }",
"public boolean checkInternetConnection(@NonNull Context context) {\n return ((ConnectivityManager) context.getSystemService(\n Context.CONNECTIVITY_SERVICE)).getActiveNetworkInfo() != null;\n }",
"boolean isNetworkAvailable();",
"public static boolean isConnectedToInternet(Context context) {\n\t\tConnectivityManager cm = (ConnectivityManager) context\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\treturn cm.getActiveNetworkInfo() != null ? cm.getActiveNetworkInfo()\n\t\t\t\t.isConnectedOrConnecting() : false;\n\t}",
"protected synchronized boolean checkConnectivity() {\n return this.connect();\n }",
"public static boolean isInternetOn(Activity context) {\n boolean isActive = false;\n\n ConnectivityManager connec = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n if (connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED) {\n\n isActive = true;\n } else if (\n\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED) {\n\n isActive = false;\n }\n\n\n return isActive;\n }",
"private boolean isOnline() {\n ConnectivityManager conMgr = (ConnectivityManager) getApplicationContext().getSystemService(CONNECTIVITY_SERVICE);\n if (conMgr != null) {\n NetworkInfo netInfo = conMgr.getActiveNetworkInfo();\n if (netInfo == null || !netInfo.isConnected() || !netInfo.isAvailable()) {\n Toast.makeText(this, \"No Internet connection!\", Toast.LENGTH_LONG).show();\n return false;\n }\n }\n return true;\n }",
"public static boolean isInternetOn(Context context)\r\n {\r\n ConnectivityManager cm = (ConnectivityManager) context\r\n .getSystemService(Context.CONNECTIVITY_SERVICE);\r\n // test for connection\r\n if (cm.getActiveNetworkInfo() != null\r\n && cm.getActiveNetworkInfo().isAvailable()\r\n && cm.getActiveNetworkInfo().isConnected())\r\n {\r\n // No need to bother user when everything's ok :)\r\n Log.d(logVerifyNet, \"Internet is working\");\r\n return true;\r\n }\r\n else\r\n {\r\n Toast.makeText(context, \"No internet connection...\", Toast.LENGTH_LONG).show();\r\n Log.d(logVerifyNet, \"No internet connection...\");\r\n return false;\r\n }\r\n }",
"private boolean isNoThereInternetConnection() {\n boolean isConnected;\n\n ConnectivityManager connectivityManager = (ConnectivityManager) this.mContext.getSystemService(Context\n .CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n isConnected = (networkInfo != null && networkInfo.isConnectedOrConnecting());\n\n return !isConnected;\n }",
"public static boolean isInternetAvailable(Context context) {\n Log.d(TAG, \"isInternetAvailable\");\n ConnectivityManager mConMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n return mConMgr.getActiveNetworkInfo() != null\n && mConMgr.getActiveNetworkInfo().isAvailable()\n && mConMgr.getActiveNetworkInfo().isConnected();\n }",
"public boolean isNetworkAvailable() {\n initNetwork();\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n}",
"public static boolean isInternetAvailable(Context currentContext) {\n ConnectivityManager conectivityManager = (ConnectivityManager) currentContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = conectivityManager.getActiveNetworkInfo();\n if (networkInfo != null) {\n if (networkInfo.getType() == ConnectivityManager.TYPE_WIFI) {\n if (networkInfo.isConnected()) {\n return true;\n }\n } else if (networkInfo.getType() == ConnectivityManager.TYPE_MOBILE) {\n if (networkInfo.isConnected()) {\n return true;\n }\n }\n }\n return false;\n }",
"public static boolean isInternetAvailable(Context c) {\n\n ConnectivityManager connectivity = (ConnectivityManager) c\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n\n if (connectivity != null) {\n\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED) {\n return true;\n }\n }\n\n return false;\n }",
"public static boolean IsConnectedToInternet(Context c) {\n ConnectivityManager connectivityManager = (ConnectivityManager) c.getSystemService(c.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n if (networkInfo != null) {\n if (networkInfo.isConnected() == false) {\n //Toast.makeText(this, \"네트워크 연결을 확인하세요.\", 1).show();\n return false;\n } else {\n if (networkInfo.getType() == ConnectivityManager.TYPE_MOBILE) {\n //Toast.makeText(this, \"데이터 요금이 발생할 수 있습니다.\", 1).show();\n }\n return true;\n }\n //Toast.makeText(this, \"네트워크 연결을 확인하세요.\", 1).show();\n } else {\n //Toast.makeText(this, \"네트워크 연결을 확인하세요.\", 1).show();\n return false;\n //Toast.makeText(this, \"테스트.\", 1).show();\n //btest = true;\n }\n }",
"static boolean isNetworkConnected(Context activityContext) {\n ConnectivityManager cm = (ConnectivityManager) activityContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n boolean returnBool = activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n\n if(!returnBool) {\n Toast.makeText(activityContext, activityContext.getString(R.string.check_internet), Toast.LENGTH_LONG).show();\n Log.i(\"NetworkUtils\", \"isNetworkConnected() - Network connection check Failed. No Internet Connection\");\n }\n return returnBool;\n }",
"public static boolean hasInternetConnectivity(Context applicationContext) {\n\t\tConnectivityManager connManager = (ConnectivityManager)applicationContext.\n\t\t\t\t getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo info = connManager.getActiveNetworkInfo();\n\t\tif(info != null) return info.isConnected();\n\t\telse return false;\n\t}",
"private boolean checkNetworkState() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n if (connectivityManager.getActiveNetworkInfo() == null || !connectivityManager.getActiveNetworkInfo().isConnected()) {\n showNetworkAlert();\n return false;\n }\n\n else return true;\n }",
"private boolean isKonekInternet()\n\t{\n\t\tConnectivityManager connectivityManager = (ConnectivityManager) this\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tif (connectivityManager != null)\n\t\t{\n\t\t\tNetworkInfo[] info = connectivityManager.getAllNetworkInfo();\n\t\t\tif (info != null)\n\t\t\t{\n\t\t\t\tfor (int i = 0; i < info.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif (info[i].getState() == NetworkInfo.State.CONNECTED)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn false;\n\t}",
"private boolean isOnline() {\n ConnectivityManager connect = (ConnectivityManager) this.getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = connect.getActiveNetworkInfo();\n if(netInfo != null && netInfo.isConnected()){\n return true;\n }\n return false;\n }",
"@Override\n protected Boolean doInBackground(Void... params) {\n check_internet = hasActiveInternetConnection(getApplicationContext());\n return check_internet;\n }",
"private boolean isOnline(){\n ConnectivityManager cm= (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n if(netInfo != null && netInfo.isConnectedOrConnecting()){\n return true;\n } else{\n return false;\n }\n }",
"public boolean isNetworkReachable();",
"private boolean ifNet() {\n \t\t\n \t\tConnectivityManager connectivity = (ConnectivityManager) this\n \t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n \t\tif (connectivity != null) {\n \t\t\tNetworkInfo[] info = connectivity.getAllNetworkInfo();\n \t\t\tif (info != null)\n \t\t\t\tfor (int i = 0; i < info.length; i++)\n \t\t\t\t\tif (info[i].getState() == NetworkInfo.State.CONNECTED) {\n \t\t\t\t\t\treturn true;\n \t\t\t\t\t}\n\n \t\t}\n \t\treturn false;\n \t}",
"private boolean isNetworkConnected() {\n NetworkHelper networkHelper = new NetworkHelper(mContext);\n if (networkHelper != null) {\n return networkHelper.isNetworkConnected();\n }\n return false;\n }",
"private Boolean isConnected() {\r\n ConnectivityManager cm = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);\r\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\r\n Boolean isConnected = activeNetwork != null && activeNetwork.isConnectedOrConnecting();\r\n return isConnected;\r\n }",
"public static boolean hasInternetConnection(final Context context) {\n final ConnectivityManager connectivityManager = (ConnectivityManager) context.\n getSystemService(Context.CONNECTIVITY_SERVICE);\n\n final Network network = connectivityManager.getActiveNetwork();\n final NetworkCapabilities capabilities = connectivityManager\n .getNetworkCapabilities(network);\n\n return capabilities != null\n && capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED);\n }",
"private boolean isConnectedToNetwork() {\n ConnectivityManager cManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = cManager.getActiveNetworkInfo();\n return activeNetworkInfo != null;\n }",
"private boolean isOnline() {\n Context context = getApplicationContext();\n ConnectivityManager cm = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n if (netInfo != null && netInfo.isConnectedOrConnecting()) {\n return true;\n }\n return false;\n }",
"public void hasInternetCallback(LifecycleOwner owner, Context ctx,connectionStatusInterface status){\n NetworkConnection networkConnection = new NetworkConnection(ctx.getApplicationContext());\n networkConnection.observe(owner, status::connectionStatus);\n }",
"public Boolean isOnlineNet() {\n\n try {\n Process p = java.lang.Runtime.getRuntime().exec(\"ping -c 1 www.google.es\");\n\n int val = p.waitFor();\n boolean reachable = (val == 0);\n return reachable;\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return false;\n }",
"@Override\n public boolean isOnline() {\n if(mSocket != null && mSocket.isConnected())\n return true;\n return false;\n }",
"private boolean isNetWorkConnected()\n {\n boolean connectedOrNot = false;\n\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n if (activeNetwork != null)\n {\n if (activeNetwork.getType() == ConnectivityManager.TYPE_WIFI)\n {\n connectedOrNot = true;\n }\n\n else if (activeNetwork.getType() == ConnectivityManager.TYPE_MOBILE)\n {\n connectedOrNot = true;\n }\n\n }\n\n else\n {\n connectedOrNot = false;\n }\n \n return connectedOrNot;\n }",
"private void isOnline() {\n ConnectivityManager cm =\n (ConnectivityManager) getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n mIsConnected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n }",
"@TargetApi(Build.VERSION_CODES.M)\n @SuppressLint(\"MissingPermission\")\n private boolean isConnected_Q() {\n //Get ConnectivityManager.\n ConnectivityManager connectivityManager = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n //Check current network has Internet access.\n if (connectivityManager != null) {\n Network activeNetwork = connectivityManager.getActiveNetwork();\n if (activeNetwork == null) { //No default network is currently active.\n return false;\n }\n\n NetworkCapabilities networkCapabilities = connectivityManager.getNetworkCapabilities(activeNetwork);\n if (networkCapabilities != null && isConnectionValidated(networkCapabilities)) {\n return true;\n }\n }\n\n return false;\n }",
"private boolean isNetworkAvailable()\n\t{\n\t\tNetworkInfo info = mConnectivityManager.getActiveNetworkInfo();\n\n\t\treturn info != null && info.isConnected();\n\t}",
"public boolean isOnline() {\n \t\tConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n \t\tNetworkInfo netInfo = cm.getActiveNetworkInfo();\n \t\t\n \t\tif (netInfo != null && netInfo.isConnected()) {\n \t\t\treturn true;\n \t\t} else{\n \t\t\t\n \t\t\treturn false;\n \t\t}\n \t\t\n \t}",
"protected boolean NetworkAviable() {\n\t\t\tConnectivityManager cm =(ConnectivityManager)contextyeild.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\t NetworkInfo netInfo = cm.getActiveNetworkInfo();\n\t\t if (netInfo != null && netInfo.isConnectedOrConnecting()) {\n\t\t \t try{\n\t\t \t\t \n\t\t \t \t//new OnGetPondsdata().execute();\n\t\t \t }catch(Exception e){\n\t\t \t\t e.printStackTrace();\n\t\t \t }\n\t\t \t \t\n\t\t return true;\t\t \n\t\t }\n\t\t else{ \n\t\t \t\n\t\t \t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(contextyeild, \"No internet connection\", Toast.LENGTH_SHORT).show();\t\t\t\t\t\n\t\t }\n\t\t return false;\n\t\t\t}",
"private boolean isOnline() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) owner.getBaseContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"public void hasInternetListenerRegister(LifecycleOwner owner, Context ctx){\n NetworkConnection networkConnection = new NetworkConnection(ctx.getApplicationContext());\n networkConnection.observe(owner, status->{\n isConnected = status;\n });\n }",
"public void internetConnectionProble()\n\t\t{\n\n\n\t\t}",
"public void checkConnectivity(){\n ConnectivityManager cm = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);\n mIsOnline = cm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE)\n .isConnectedOrConnecting() || cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI)\n .isConnectedOrConnecting();\n }",
"private boolean isNetworkAvailable() {\n ConnectivityManager cm = (ConnectivityManager)ctx.getSystemService(Context.CONNECTIVITY_SERVICE);\n if ( cm.getActiveNetworkInfo() != null ) {\n return true;\n }\n return false;\n }",
"protected boolean checkNetworkStatus() {\n\n ConnectivityManager manager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = manager.getActiveNetworkInfo();\n\n if ((activeNetworkInfo != null && activeNetworkInfo.isConnected())) {\n return true;\n } else {\n return false;\n }\n }",
"private boolean isNetworkAvailable(){\n ConnectivityManager connectivityManager = (ConnectivityManager)\n getSystemService(CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n\n }",
"protected boolean isOnline() {\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = cm.getActiveNetworkInfo();\n\n // Check now for connectivity\n if (networkInfo != null && networkInfo.isConnectedOrConnecting()) {\n return true;\n } else {\n return false;\n }\n }",
"boolean isNetworkAvailable() {\n Context context = getApplicationContext();\n ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n boolean isConnected = activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n return isConnected;\n }",
"public boolean isNetworkConnected(Context context) { \n\t\t\tif (context != null) { \n\t\t\t\tConnectivityManager mConnectivityManager = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); \n\t\t\t\tNetworkInfo mNetworkInfo = mConnectivityManager.getActiveNetworkInfo(); \n\t\t\t\tif (mNetworkInfo != null) { \n\t\t\t\t\treturn mNetworkInfo.isAvailable(); \n\t\t\t\t} \n\t\t\t} \n\t\t\treturn false; \n\t}",
"private boolean isOnline() {\n\t\tConnectivityManager cm = (ConnectivityManager) getApplicationContext()\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n\t\treturn cm.getActiveNetworkInfo() != null\n\t\t\t\t&& cm.getActiveNetworkInfo().isConnectedOrConnecting();\n\n\t}",
"private void checkConnection(){\n NetworkInfo activeNetwork = connectivityManager.getActiveNetworkInfo();\n\n // if activeNetwork is not null, and a network connection is detected,\n // isConnected is true\n boolean isConnected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n\n // prepare output to indicate connection status\n String message = isConnected ? \"Connection Detected!\" : \"No Connection Detected!\";\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"public boolean isOnline() {\r\n\t\tConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\r\n\t\tNetworkInfo netInfo = cm.getActiveNetworkInfo();\r\n\t\tif (netInfo != null && netInfo.isConnectedOrConnecting()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private boolean isNetworkConnected() {\n\n //Use Android connectivity manager to get the status of whether connected to a data connection.\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n return cm.getActiveNetworkInfo() != null;\n }",
"private boolean checkInternetPermission() {\n if (ActivityCompat.checkSelfPermission(mLayout.getContext().getApplicationContext(), Manifest.permission.INTERNET)\n == PackageManager.PERMISSION_GRANTED) {\n return true;\n\n } else {\n\n return false;\n }\n }",
"public static boolean isConnected() { return irc != null && irc.isConnected(); }",
"private boolean isNetworkAvailable() {\r\n ConnectivityManager connectivityManager \r\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\r\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\r\n return activeNetworkInfo != null;\r\n }",
"private boolean isWificonnected(){\n\t\tConnectivityManager connMgr\n\t\t= (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo networkInfo\n\t\t= connMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI); \n\t\tboolean isWifiConn = networkInfo.isConnected();\n\t\treturn isWifiConn;\n\t}",
"protected boolean isOnline() {\n\n ConnectivityManager cm = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n\n boolean isConnected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n\n //check if the connection id wifi or mobile data\n boolean isWiFi = activeNetwork.getType() == ConnectivityManager.TYPE_WIFI;\n\n return isConnected;\n\n }",
"public boolean isOnline() {\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n return netInfo != null && netInfo.isConnected();\n }",
"private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"public boolean ConnectionCheck(){\n ConnectivityManager cm =\n (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n isConnected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n return isConnected;\n }",
"public boolean isConnected() {\n ConnectivityManager manager = (ConnectivityManager)getSystemService(CONNECTIVITY_SERVICE);\n NetworkInfo info = manager.getActiveNetworkInfo();\n if (info != null && info.isConnected()) {\n return true;\n } else {\n return false;\n }\n }",
"private boolean isWifiConnected() throws InterruptedException {\n int counter = 10;\n while (--counter > 0) {\n try {\n String mPingSite = String.format(\"http://%s\", DEFAULT_PING_SITE);\n URL url = new URL(mPingSite);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.setConnectTimeout(mABvtHelper.LONG_TIMEOUT * 12);\n conn.setReadTimeout(mABvtHelper.LONG_TIMEOUT * 12);\n if (conn.getResponseCode() == HttpURLConnection.HTTP_OK) {\n return true;\n }\n Thread.sleep(mABvtHelper.SHORT_TIMEOUT);\n } catch (IOException ex) {\n // Wifi being flaky in the lab, test retries 10 times to connect to google.com\n // as IOException is throws connection isn't made and response stream is null\n // so for retrying purpose, exception hasn't been rethrown\n Log.i(mABvtHelper.TEST_TAG, ex.getMessage());\n }\n }\n return false;\n }",
"private boolean isConnected_preQ() {\n if (checkNetworkStatePermission()) return false;\n\n NetworkInfo activeNetworkInfo = getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"public boolean isOnline() {\n ConnectivityManager cm =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n if (netInfo != null && netInfo.isConnectedOrConnecting()) {\n return true;\n }\n return false;\n }",
"protected boolean isConnected() {\n/* 160 */ return this.delegate.isConnected();\n/* */ }",
"public boolean isOnline() {\n\t\t\tConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\tNetworkInfo netInfo = cm.getActiveNetworkInfo();\n\t\t\tif (netInfo != null && netInfo.isConnectedOrConnecting()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"private boolean onNetworkConnected() {\n Optional<WifiConnection> connection = mNetManager.getCurrentConnection();\n if (!connection.isPresent()) {\n // This rarely happens when the wifi timeout handler already switched to another network\n // or has been shut down at the same time a connection attempt succeeded.\n Log.v(TAG, \"Connection already lost again\");\n return false;\n }\n\n mBeaconingManager.startWifiReceiver();\n mBeaconingManager.startWifiSender(true);\n\n mVisitedNetworks.push(connection.get().getNetworkName().get());\n\n return true;\n }"
] | [
"0.84416825",
"0.8389553",
"0.8312919",
"0.8281164",
"0.82481366",
"0.8213693",
"0.81777126",
"0.81587344",
"0.813655",
"0.8108714",
"0.809841",
"0.809841",
"0.80699533",
"0.80689603",
"0.8054715",
"0.80075175",
"0.8003666",
"0.7923748",
"0.7856639",
"0.7847247",
"0.7829304",
"0.7825666",
"0.7776831",
"0.77647203",
"0.77636033",
"0.77488804",
"0.7737242",
"0.764881",
"0.76364225",
"0.76174134",
"0.76139843",
"0.76002055",
"0.75999486",
"0.7596016",
"0.7577074",
"0.7571229",
"0.755005",
"0.75371647",
"0.7524892",
"0.7505018",
"0.74840707",
"0.7474581",
"0.74490637",
"0.74460536",
"0.7422633",
"0.74106324",
"0.74077415",
"0.7404645",
"0.7398715",
"0.7388793",
"0.7385066",
"0.73760927",
"0.73657954",
"0.7350943",
"0.7333747",
"0.7309093",
"0.7266957",
"0.72551215",
"0.7224052",
"0.7206331",
"0.7204292",
"0.7203082",
"0.719135",
"0.71796846",
"0.71785533",
"0.71636057",
"0.71520513",
"0.71506",
"0.713262",
"0.71064925",
"0.7101637",
"0.709505",
"0.70879537",
"0.7086093",
"0.7081147",
"0.7042658",
"0.70345813",
"0.7029365",
"0.7015561",
"0.7013776",
"0.70077413",
"0.7006721",
"0.70056915",
"0.7004691",
"0.7004275",
"0.7003788",
"0.69975203",
"0.69912595",
"0.698946",
"0.6980709",
"0.69724375",
"0.6959879",
"0.6951658",
"0.69506687",
"0.69463587",
"0.69441533",
"0.693241",
"0.69256926",
"0.69221014",
"0.69220454",
"0.6918179"
] | 0.0 | -1 |
Gets a message from messages.properties | public static String getMessage(String messageKey, Object... args) {
if (messageSource == null)
return "ApplicationContext unavailable, probably unit test going on";
// http://stackoverflow.com/questions/10792551/how-to-obtain-a-current-user-locale-from-spring-without-passing-it-as-a-paramete
return messageSource.getMessage(messageKey, args,
LocaleContextHolder.getLocale());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMessage(String key) {\n return messages.getProperty(key);\n }",
"public String getMessage() {\n return super.getString(Constants.Properties.MESSAGE);\n }",
"@Accessor(qualifier = \"message\", type = Accessor.Type.GETTER)\n\tpublic String getMessage()\n\t{\n\t\treturn getMessage(null);\n\t}",
"java.lang.String getTheMessage();",
"public static String getMessage(String message) {\n return ResourceLoader.getResource(message, DEFAULT_LOCALE);\n }",
"public String getMessage() {\n return getMessage(this.key, (Object[]) null, this.key, (Locale) null);\n }",
"@GET\n\t@Produces(\"text/plain\")\n\tpublic String getMessage() {\n\t\treturn MessageConstants.GET_MESSAGE;\n\t}",
"public Message getMessage(){\n return message;\n }",
"Object getMessage();",
"@Accessor(qualifier = \"message\", type = Accessor.Type.GETTER)\n\tpublic String getMessage(final Locale loc)\n\t{\n\t\treturn getPersistenceContext().getLocalizedValue(MESSAGE, loc);\n\t}",
"public Message getMessage() throws MessageNotFetchedException {\n \tcheckedActivate(2);\n \tmMessage.initializeTransient(mFreetalk);\n return mMessage;\n }",
"public java.lang.String getMessage()\r\n {\r\n return message;\r\n }",
"public String getMessage() { return message; }",
"public final String getMessage() {\n return this.message;\n }",
"Message get(String id);",
"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 static String getValue(String key){\n\t\tResourceBundle rb = ResourceBundle.getBundle(\"message\");\n\t\tString value = rb.getString(key);\n\t\treturn value;\n\t}",
"public java.lang.String getMessage() {\n return message;\n }",
"public String getMessage(){\n return this.message;\n }",
"public Object getMessage() {\n return m_message;\n }",
"public String getMessage(){\n return(message);\n }",
"public String getMessage(){\n\t\treturn this.message;\n\t}",
"private String getMessage(FacesContext facesContext, String msgKey, Object... args) {\n Locale locale = facesContext.getViewRoot().getLocale();\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n ResourceBundle bundle = ResourceBundle.getBundle(\"Messages\", locale, classLoader);\n String msgValue = bundle.getString(msgKey);\n return MessageFormat.format(msgValue, args);\n }",
"public String getMessage(){\r\n return message;\r\n }",
"public String getMessage(){\r\n return message;\r\n }",
"public io.dstore.engine.Message getMessage(int index) {\n return message_.get(index);\n }",
"public io.dstore.engine.Message getMessage(int index) {\n return message_.get(index);\n }",
"public io.dstore.engine.Message getMessage(int index) {\n return message_.get(index);\n }",
"public io.dstore.engine.Message getMessage(int index) {\n return message_.get(index);\n }",
"public io.dstore.engine.Message getMessage(int index) {\n return message_.get(index);\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage() {\n return this.message;\n }",
"public String getMessage(){\r\n\t\treturn message;\r\n\t}",
"public String getMessage() {\r\n\treturn messageSB.toString();\r\n }",
"private String getMessage(String path) {\n return ChatColor.translateAlternateColorCodes('&', getConfig().getString(\"message.\" + path));\n }",
"public String getMessage() {\n \t\treturn message;\n \t}",
"public String getMessage() {\r\n return getPayload().optString(\"message\");\r\n }",
"public String getMessage() {\r\n return messageKind.getMessage();\r\n }",
"public static String getMessage(MessageEnum messageEnum) {\n return ResourceLoader.getMessage(messageEnum, DEFAULT_LOCALE);\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\r\n\t\treturn this.message;\r\n\t}",
"public String getMessage() {\r\n return message;\r\n }",
"public String getMessage() {\r\n return message;\r\n }",
"public String getMessage()\r\n {\r\n return message;\r\n }",
"public String getMessage()\r\n {\r\n return message;\r\n }",
"public String getMessage(){\n return message;\n }",
"public String getMessage () {\n return message;\n }",
"@Override\n\tpublic String getMessage() {\n\t\tResourceBundle myResources = ResourceBundle.getBundle(DEFAULT_RESOURCE_PACKAGE);\n\t\tString message = myResources.getString(MESSAGE);\n\t\t\n\t\treturn message;\n\t}",
"@Override\n public String getMessage(int index) {\n if (index >= messages.size() || index < 0)\n throw new IllegalArgumentException(\"There is no message with the given index\");\n return messages.get(index);\n }",
"public Optional<String> getMessage() {\n return _message;\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()\r\n {\r\n return myMessage;\r\n }",
"public io.dstore.engine.Message getMessage(int index) {\n if (messageBuilder_ == null) {\n return message_.get(index);\n } else {\n return messageBuilder_.getMessage(index);\n }\n }",
"public io.dstore.engine.Message getMessage(int index) {\n if (messageBuilder_ == null) {\n return message_.get(index);\n } else {\n return messageBuilder_.getMessage(index);\n }\n }",
"public io.dstore.engine.Message getMessage(int index) {\n if (messageBuilder_ == null) {\n return message_.get(index);\n } else {\n return messageBuilder_.getMessage(index);\n }\n }",
"public io.dstore.engine.Message getMessage(int index) {\n if (messageBuilder_ == null) {\n return message_.get(index);\n } else {\n return messageBuilder_.getMessage(index);\n }\n }",
"public io.dstore.engine.Message getMessage(int index) {\n if (messageBuilder_ == null) {\n return message_.get(index);\n } else {\n return messageBuilder_.getMessage(index);\n }\n }",
"@Override\r\n\tpublic String getMessage() {\n\t\treturn this.message;\r\n\t}",
"private static String getMessage(String path) { return prefix + ChatColor.translateAlternateColorCodes('&', Essentials.getInstance().getConfig().getString(\"messages.\" + path)); }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }",
"public String getMessage() {\n return message;\n }"
] | [
"0.7492096",
"0.7308702",
"0.690743",
"0.68941957",
"0.68695235",
"0.68331033",
"0.68228203",
"0.67933106",
"0.67764765",
"0.67640543",
"0.67576844",
"0.67529947",
"0.6751899",
"0.6743852",
"0.674084",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6728171",
"0.6695973",
"0.6694408",
"0.6689947",
"0.66862047",
"0.6682013",
"0.667652",
"0.6648309",
"0.66392183",
"0.66392183",
"0.66174185",
"0.66174185",
"0.66174185",
"0.66174185",
"0.66174185",
"0.66140896",
"0.66140896",
"0.66140896",
"0.66140896",
"0.66140896",
"0.66140896",
"0.66140896",
"0.66091233",
"0.6608262",
"0.6607954",
"0.66043466",
"0.6601651",
"0.659275",
"0.65907687",
"0.6587961",
"0.6587961",
"0.6587961",
"0.6587961",
"0.65817004",
"0.65699655",
"0.65699655",
"0.6567164",
"0.6567164",
"0.65594095",
"0.65585726",
"0.6552386",
"0.65518457",
"0.655001",
"0.6544308",
"0.6544308",
"0.65357625",
"0.6535176",
"0.6514941",
"0.6514941",
"0.6514941",
"0.6514941",
"0.6514941",
"0.6511059",
"0.6505036",
"0.650184",
"0.650184",
"0.650184",
"0.650184",
"0.650184",
"0.650184",
"0.650184",
"0.650184",
"0.650184",
"0.650184",
"0.650184",
"0.650184",
"0.650184",
"0.650184",
"0.650184",
"0.650184"
] | 0.0 | -1 |
Supplys a 404 exception | public static Supplier<MultiErrorException> notFoundSupplier() {
return () -> NOT_FOUND_EXCEPTION;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"notfound\")\n public void notFound()\n {\n throw new NotFoundException(\"404\", \"404 Not Found - NotFoundException\");\n }",
"public NotFoundException() {\r\n super(Responses.notFound().build());\r\n }",
"@ExceptionHandler(ResourceNotFoundException.class)\n public BaseResponse handleResourceNotFound(ResourceNotFoundException e) {\n return BaseResponse.buildErrorResponse(404, e);\n }",
"private static void writeNotFound(\n final ChannelHandlerContext ctx,\n final FullHttpRequest request) {\n\n writeErrorResponse(ctx, request, HttpResponseStatus.NOT_FOUND);\n }",
"public ResourceNotFoundException(String msg) {\r\n\t\tsuper(msg);\r\n\t}",
"private void throwExceptionOnBadResponseExcept404(Response response) throws DoiHttpException {\n if (!response.isSuccessful() && response.code() != 404) {\n throw new DoiHttpException(response.code(), response.message(), getErrorBody(response));\n }\n }",
"@ExceptionHandler(StorageFileNotFoundException.class)\n public ResponseEntity<?> handleStorageFileNotFound(StorageFileNotFoundException exc) {\n return ResponseEntity.notFound().build();\n }",
"public ItemNotFoundException(String e){\r\n super(e+\" was not found!\");\r\n }",
"public SimpleResponse ERROR_NOT_FOUND() {\n this.state = HttpStatus.NOT_FOUND.value();\n return ERROR_CUSTOM();\n }",
"@ExceptionHandler(NoHandlerFoundException.class)\n public ModelAndView handleError404(Exception e) {\n ModelAndView model = new ModelAndView(\"genericError\");\n model.addObject(\"errCode\", \"404\");\n model.addObject(\"errMsg\", \"Zadana stranka nebyla na serveru bikeo.cz nalezena\");\n return model;\n }",
"public boolean resourceNotFound() {\n return statusCode == 404;\n }",
"@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = \"This entity is not found in the system\")\n @ExceptionHandler({NotFoundException.class})\n public void handleNotFound(NotFoundException nfe) {\n // just return empty 404\n logger.info(\"-----> Entity \" + nfe.getObjType() + \" with identifier\" + nfe.getObjIdentifier() + \"not found.\");\n }",
"@ResponseStatus(value = HttpStatus.NOT_FOUND)\n public String generalError(HttpServletRequest request, HttpServletResponse response, Model model) {\n // retrieve some useful information from the request\n\n String message = \"404 Not found\";\n\n model.addAttribute(\"errorMessage\", message);\n return \"error/general\";\n }",
"@ResponseStatus(HttpStatus.NOT_FOUND)\n @ExceptionHandler(NotFoundException.class)\n public ModelAndView handleNotFound(Exception exception){\n\n System.err.println(\"Handling Not Found Exception\");\n System.err.println(exception.getMessage());\n\n\n ModelAndView modelAndView = new ModelAndView();\n\n modelAndView.setViewName(\"404Error\");\n //adding model attr to 404 error.html\n modelAndView.addObject(\"exception\", exception);\n\n return modelAndView;\n }",
"@ExceptionHandler(ResourceNotFoundException.class)\n\t@ResponseStatus(HttpStatus.BAD_REQUEST)\n\t@ResponseBody\n\tprotected ErrorModel handleNotFound(final Exception ex, final WebRequest request) {\n\t\tResourceNotFoundException rnfex = (ResourceNotFoundException) ex;\n\t\tif (rnfex.getResourceId() == 0) {\n\t\t\treturn new ErrorModel(\"resource_not_found\", \"List of \" + rnfex.getResourceName() + \" is empty\");\n\t\t} else {\n\t\t\treturn new ErrorModel(\"resource_not_found\", \"Entity \" + rnfex.getResourceName() + \" with id \" + rnfex.getResourceId() + \" not found\");\n\t\t}\n\t}",
"@RequestMapping(value = \"/404\", method = RequestMethod.GET)\n public String notFoundPage(){\n return \"_404\";\n }",
"@Test\n public void whenFetchingNonExistingUserReturn404() throws Exception {\n Response<UserDTO> user = api.getUserDetails(1000).execute();\n\n // then http status code should be 404\n assertThat(user.code(), is(404));\n }",
"@ExceptionHandler(NoHandlerFoundException.class)\r\n\tpublic ModelAndView handlerNoHandlerFoundException() {\r\n\t\t\r\n\t\tModelAndView mv = new ModelAndView(\"/clientViews/page\");\r\n\t\t\r\n\t\tmv.addObject(\"title\",\"404 Error Page\");\r\n\t\tmv.addObject(\"error404\", true);\r\n\t\treturn mv;\r\n\t\t\r\n\t}",
"@ExceptionHandler(EmptyResultDataAccessException.class)\r\n\tpublic String entityNotFound() {\r\n\t\treturn \"errors/notFound\";\r\n\t}",
"public void invokePropagateNotFound(HttpRequest request, HttpResponse response) throws NotFoundException\n {\n ResourceInvoker invoker = getInvoker(request);\n try\n {\n invoke(request, response, invoker);\n }\n catch (Failure e)\n {\n handleException(request, response, e);\n return;\n }\n }",
"protected void handleNotFound(final String target, final HttpServletRequest request,\n final HttpServletResponse response) throws IOException {\n response.sendError(SC_NOT_FOUND, \"target \" + target + \" not supported\");\n }",
"private XMLResource getNotFoundDocument(String uri) {\n XMLResource xr;\n String notFound = \"<html><h1>Document not found</h1><p>Could not access URI <pre>\" + uri + \"</pre></p></html>\";\n xr = XMLResource.load(new StringReader(notFound));\n return xr;\n }",
"@Error(status = HttpStatus.NOT_FOUND, global = true)\n public HttpResponse<?> notFound(HttpRequest<?> request) {\n if (request.getHeaders()\n .accept()\n .stream()\n .anyMatch(mediaType -> mediaType.getName().contains(MediaType.TEXT_HTML))) {\n return HttpResponse.ok(\"<h1>not found</h1>\")\n .contentType(MediaType.TEXT_HTML);\n }\n\n JsonError error = new JsonError(\"Page Not Found\")\n .link(Link.SELF, Link.of(request.getUri()));\n\n return HttpResponse.<JsonError>notFound()\n .body(error);\n }",
"@ExceptionHandler(ResourceDoesNotExistException.class)\n\tpublic ResponseEntity<Object> handleResouceDoesNotExistException(Exception ex, WebRequest request){\n//\t\tString body = \"The resource does not exist. Please try with other parameter\";\n\t\tResponseError body = createResponseError(ex, HttpStatus.NOT_FOUND, HttpStatus.NOT_FOUND.toString(), \"ERROR_BUSINESS_EXCEPTION\");\n\t\treturn new ResponseEntity<Object>(body,HttpStatus.NOT_FOUND);\n\t}",
"@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = \"IOException occured\")\n\t@ExceptionHandler(value=MyCustomException.class)\n\tpublic void myException(HttpServletResponse response) throws IOException {\n\t\t response.sendError(HttpStatus.NOT_FOUND.value());\n\t}",
"public DataNotFoundException() {\n\t\tsuper(\"Requested data not found\");\n\t}",
"@ExceptionHandler(OpenApiResourceNotFoundException.class)\n\t\t@ResponseStatus(HttpStatus.NOT_FOUND)\n\t\tpublic ResponseEntity<ErrorMessage> handleNoHandlerFound(OpenApiResourceNotFoundException e, WebRequest request) {\n\t\t\treturn ResponseEntity.status(HttpStatus.NOT_FOUND).body(new ErrorMessage(e.getMessage()));\n\t\t}",
"@Override\n public void fileNotFound(String path, Throwable cause) {\n headers.put(CONTENT_TYPE, MediaType.getType(\".html\"));\n send404NotFound(ctx, headers, \"404 NOT FOUND\".getBytes(), true);\n }",
"public ItemNotFoundException() {\n super();\n }",
"public ObjectNotFoundException() {\r\n super(\"ObjectNotFound Exception\");\r\n }",
"@ExceptionHandler(ResourceNotFoundException.class)\n @ResponseStatus(HttpStatus.NOT_FOUND)\n public ExceptionResponse notFoundException(final ResourceNotFoundException notFoundException) {\n return processError(notFoundException, HttpStatus.NOT_FOUND);\n }",
"@ExceptionHandler({NotFoundException.class})\n\tpublic ResponseEntity<ErrorDto> handleNotFoundException(Exception ex, WebRequest request){\n//\t\tstatistic.error(\"requestException\", ex);\n\n\t\tlogger.error(ex.getLocalizedMessage(), ex);\n\t\tString path = request.getContextPath();\n\t\tErrorDto error = new ErrorDto();\n\t\terror.timestamp = new Date().getTime();\n\t\terror.exception = ex.getClass().getCanonicalName();\n\t\terror.error = HttpStatus.NOT_FOUND.getReasonPhrase();\n\t\terror.message = ex.getMessage();\n\t\terror.path = path;\n\t\terror.status = HttpStatus.NOT_FOUND.value();\n\t\treturn new ResponseEntity<ErrorDto>(error, HttpStatus.NOT_FOUND);\n\t}",
"@Test\n\tpublic void requestDataForCustomer99999_checkResponseCode_expect404() {\n\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\twhen().\n\t\tthen();\n\t}",
"@Test\n public void getNonexistentGameTest() throws IOException {\n int status = callHandler(\"/xxxxxxx\", \"GET\");\n assertEquals(404, status);\n }",
"@ExceptionHandler(ResourceNotFoundException.class)\n public ResponseEntity<?> handleResourceNotFoundException(ResourceNotFoundException exception, WebRequest request) {\n return buildExceptionResponseEntity(exception, HttpStatus.NOT_FOUND, request,\n Collections.singletonList(exception.getMessage()));\n }",
"@RequestMapping(\"/error\")\n\tpublic String handleError() {\n\t\treturn \"error-404\";\n\t}",
"@Test\n public void getWorkflow_404() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n addMOToDb(2);\n Integer id = addMOToDb(3).getId();\n\n // PREPARE THE TEST\n // Set id to an unknown one\n Integer idToRequest = id + 1;\n\n // DO THE TEST\n Response response = callAPI(VERB.GET, \"/mo/\" + idToRequest.toString(), null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(404, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"Searching workflow from id=\" + idToRequest + \": no resource found, but should exist.\", body);\n }",
"@Test\n\tpublic void getAccountTestFailure() {\n\t\tRestAssured.given().when().get(\"/account?accountNumber=7912\").then().assertThat().statusCode(404);\n\t}",
"@ExceptionHandler(value=FileNotFound.class)\n\tpublic void resolveException(String ex,HttpServletResponse response) {\n\t\ttry {\n\t\t\tresponse.getOutputStream().println(\"Warning: File vuoto\\nException message: \"+ex);\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t}\n\t}",
"private void action_error(HttpServletRequest request, HttpServletResponse response) throws IOException {\n //assumiamo che l'eccezione sia passata tramite gli attributi della request\n //we assume that the exception has been passed using the request attributes \n Map data=new HashMap();\n \n Exception exception = (Exception) request.getAttribute(\"exception\");\n String message;\n if (exception != null && exception.getMessage() != null) {\n message = exception.getMessage();\n } else {\n message = \"Unknown error\";\n }\n data.put(\"errore\",message);\n FreeMarker.process(\"404error.html\",data, response, getServletContext()); \n }",
"public ObjectNotFoundException(String s) {\r\n super(s);\r\n }",
"@ExceptionHandler(value = {NotFoundException.class})\n public ResponseEntity<Object> handlerApiNotFoundException(\n NotFoundException e)\n {\n HttpStatus notFound = HttpStatus.NOT_FOUND;\n ApiException apiException = new ApiException(\n e.getMessage(),\n notFound,\n ZonedDateTime.now(ZoneId.of(\"Z\"))\n );\n //2. return response entity\n return new ResponseEntity<>(apiException,notFound);\n }",
"public NotFoundException(final String message) {\r\n super(Response.status(Responses.NOT_FOUND).\r\n entity(message).type(\"text/plain\").build());\r\n myDetailMessage = message;\r\n }",
"@ResponseBody\n @ExceptionHandler(UserNotFoundException.class)\n @ResponseStatus(HttpStatus.NOT_FOUND)\n String userNotFoundHandler(UserNotFoundException ex) {\n return ex.getMessage();\n }",
"@ExceptionHandler(Exception.class)\n @ResponseStatus(HttpStatus.NOT_FOUND)\n public @ResponseBody String handleException(Exception ex) {\n LOGGER.debug(\"Exception: \" + ex);\n return \"Exception: \" + ex.getMessage();\n }",
"@ExceptionHandler(RecipeNotFoundException.class)\n public ResponseEntity<ErrorResponse> exceptionHandler(RecipeNotFoundException ex) {\n ErrorResponse response =\n new ErrorResponse(\"Error_CODE-0001\",\n \"No recipe found with Id \" + ex.getId());\n return new ResponseEntity<>(response, HttpStatus.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 }",
"@Test\n void testGivenFaultyRequestWithExceptionString_thenFail() throws Exception {\n URL u = new URL(\"http://localhost:8080/sentry-servlet/fault?exception=true\");\n HttpURLConnection conn = (HttpURLConnection)u.openConnection();\n int rc = conn.getResponseCode();\n assertThat(rc)\n .isEqualTo(500);\n }",
"@ExceptionHandler(ResourceNotFoundException.class)\n public void logResourceNotFoundException(ResourceNotFoundException e) throws ResourceNotFoundException {\n errorLogger.logError(e.getMessage(), e);\n throw e;\n }",
"private String httpNotOk() {\n return \"HTTP/1.1 404 not Found\\r\\n\"\n + \"Content-Type: text/html\\r\\n\"\n + \"\\r\\n\"\n + \"<!DOCTYPE html>\\n\"\n + \"<html>\\n\"\n + \"<head>\\n\"\n + \"<meta charset=\\\"UTF-8\\\">\\n\"\n + \"<title>Error</title>\\n\"\n + \"</head>\\n\"\n + \"<body>\\n\"\n + \"<h1>There is an error</h1>\\n\"\n + \"</body>\\n\"\n + \"</html>\\n\";\n }",
"EntryNotFoundException() {\n super();\n }",
"@Test\n public void negativeScenario(){\n // when().get(\"http://34.223.219.142:1212/ords/hr/employees/1234\")\n // .then().statusCode(404);\n Response response = when().get(\"http://34.223.219.142:1212/ords/hr/employees/1234\");\n assertEquals(response.statusCode(),404);\n assertTrue(response.asString().contains(\"Not Found\"));\n response.prettyPrint();\n\n }",
"@Override\r\n\t\tpublic void customize(ConfigurableEmbeddedServletContainer factory) {\r\n\t\t\tfactory.addErrorPages(new ErrorPage(HttpStatus.NOT_FOUND, \"/404\"));\r\n\t\t}",
"@Test\n public void testRepositoryGot404Response() {\n // Preconditions\n TestSubscriber<User> subscriber = new TestSubscriber<>();\n\n // Attaches the subscriber and executes the Observable.\n repository.get(2).subscribe(subscriber);\n\n // We ensure we've got 404 Not Found in the onError method of the Subscriber.\n subscriber.assertError(HttpException.class);\n subscriber.assertNoValues();\n subscriber.assertUnsubscribed();\n List<Throwable> exceptions = subscriber.getOnErrorEvents();\n //noinspection all\n Assert.assertEquals(404, ((HttpException) exceptions.get(0)).code());\n }",
"public ResourceNotFoundException(final Object resourceIdentifier) {\n super();\n this.resourceIdentifier = resourceIdentifier;\n }",
"public String formNotFound()\r\n {\r\n return formError(\"404 Not_found\",\"Requested object was not found\");\r\n }",
"public TargetNotFoundException(String msg) {\n\t\tsuper(msg);\n\t}",
"public ElementNotFoundException(String msg){\n super(msg);\n }",
"@Override\n public void onFailure(int statusCode, Throwable error,\n String content) {\n\n if(statusCode == 404){\n Toast.makeText(context, \"Requested resource not found\", Toast.LENGTH_LONG).show();\n }else if(statusCode == 500){\n Toast.makeText(context, \"Something went wrong at server end\", Toast.LENGTH_LONG).show();\n }else{\n // Toast.makeText(context, \"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet]\", Toast.LENGTH_LONG).show();\n }\n }",
"public RecordNotFoundException() {\n super();\n }",
"@Test\n public void shouldGive404ResponseCodeIfAttemptIsMadeToDeleteNonExistentPayment() throws Exception {\n ResponseEntity<String> deleteResponse = restTemplate.exchange(paymentsUrl + \"/nonexistentPayment\", HttpMethod.DELETE, null, String.class);\n //then: the response should be 404 'not found':\n assertEquals(HttpStatus.NOT_FOUND, deleteResponse.getStatusCode());\n }",
"@ExceptionHandler\n\tpublic ResponseEntity<ProductErrorResponse> handleException(ProductNotFoundException exc) {\n\t\t\n\t\t//create the ProductErrorResponse\n\t\tProductErrorResponse error = new ProductErrorResponse(\n\t\t\t\t HttpStatus.NOT_FOUND.value(),\n\t\t\t\t exc.getMessage(),\n\t\t\t\t System.currentTimeMillis());\n\t\t\n\t\t//return the ResponseEntity\n\t\treturn new ResponseEntity<>(error,HttpStatus.NOT_FOUND);\n\t}",
"public ItemNotFoundException(String itemName) {\n super(String.format(\"Item %s was not found\", itemName));\n }",
"public EmployeeNotFoundException() {\n super();\n }",
"@ExceptionHandler(ReservationNotFoundException.class)\n protected ResponseEntity<Object> handleReservationNotFoundException(ReservationNotFoundException ex, WebRequest request) {\n AppExceptionBean exceptionBean = exceptionMapper.toBean(ex);\n return handleExceptionInternal(ex, exceptionBean, new HttpHeaders(), HttpStatus.NOT_FOUND, request);\n }",
"@Test\n public void readGameNotFound() throws Exception {\n final String id = new GameId().toString();\n final String getUrl = BASE_REQUEST_URL + id;\n\n mockMvc.perform(get(getUrl))\n .andExpect(status().isNotFound());\n }",
"public void resourceNotFound(String resourcePath, int responseCode) {\n \n // request up to 3 times then truly fail\n Integer count = loadFailureCounts.get(resourcePath); \n count++;\n loadFailureCounts.put(resourcePath, count);\n \n if (count < 3 && responseCode < 400) {\n \n // now try to lazy load the actual image \n resourceLoader.loadResource(resourcePath, this); \n \n } else {\n \n JToolButton button = urlToButtonMap.get(resourcePath);\n\n // create the necessary icons for button state\n generateButtonIcons(button, notFoundImage); \n \n // make sure the filters are correctly applied\n catalogFilter.refreshCurrentToolGroup();\n \n // allow selection\n button.setLoaded(true);\n button.addItemListener(this);\n button.revalidate();\n\n }\n\n }",
"public ResponseEntity<Participant> participantNotFoundErrorHandler(int pid)\n\t{\n\t\tlogger.info(\"Participant with this id is not present in database :\"+pid);\n\t\treturn ResponseEntity.status(HttpStatus.NOT_FOUND).body(null);\n\t}",
"public NotFoundStrategyException(String message){\r\n\t\tsuper(message);\r\n\t}",
"@Test\r\n\tpublic void test_getAllEmployeesPage_notfound() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"6\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(404);\r\n\t}",
"public IndividualRequestNotFoundException(Long requestId) {\n super(ResourceBundle.getBundle(RESOURCE_STRING_PATH)\n .getString(INDIVIDUAL_REQUEST_NOT_FOUND_EXCEPTION_KEY) + requestId);\n }",
"@Test\n\tpublic void testIncorrectStatusCode() {\n\t\tgiven().\n\t\tget(Endpoint.GET_COUNTRY_invalid).then().statusCode(404);\n\t}",
"@Test\n @TestDescription(\"없는 이벤트 조회 하기 404 이벤트\")\n public void getNullEvent() throws Exception {\n this.mockMvc.perform(get(\"/api/events/11123\"))\n .andDo(print())\n .andExpect(status().isNotFound())\n ;\n }",
"public SureBetNotFoundException(Exception exception) {\r\n\t\tsuper(exception);\r\n\t}",
"@Test\n public void testFailureWithNonexistantObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, reqFactory.createIdApiRequest(Types.PACKAGE).execute(hc), 404);\n }",
"public DataNotFoundException(Class<? extends Object> ofclass) {\n\t\tsuper(\"Requested \" + ofclass.getSimpleName().toLowerCase() + \" not found\");\n\t}",
"@ExceptionHandler\n public ModelAndView handleDefault(NotFoundException e)\n {\n log.info(\"From @ExceptionHandler in \" + this.getClass().getName());\n\n ModelAndView model = new ModelAndView(\"error/exception\"); // View name\n model.addObject(\"exception\", e);\n return model;\n }",
"@Test\n void testGivenFaultyRequestWithFaultString_thenFail() throws Exception {\n URL u = new URL(\"http://localhost:8080/sentry-servlet/fault?fault=true\");\n HttpURLConnection conn = (HttpURLConnection)u.openConnection();\n int rc = conn.getResponseCode();\n assertThat(rc)\n .isEqualTo(500);\n }",
"public NoDataFoundException()\r\n {\r\n super(\"No Data Found\");\r\n\r\n }",
"public EmployeeNotFoundException(String message) {\n super(message);\n }",
"public ResourceNotFoundException(final String message, final Object resourceIdentifier,\n final Throwable cause, final boolean enableSuppression,\n final boolean writableStackTrace) {\n super(message, cause, enableSuppression, writableStackTrace);\n this.resourceIdentifier = resourceIdentifier;\n }",
"protected void checkError(Response res) {\n if (res.getStatus() < 300) {\n return;\n }\n\n if (res.getStatus() == 404) {\n throw new NotFoundException(\"No results found.\");\n }\n\n // TODO custom exceptions here\n // final String responseBody = res.readEntity(String.class);\n }",
"@Test\n public void shouldGiveNotFoundResponseCodeIfTryToRetrieveUnknownPayment() throws Exception {\n ResponseEntity<Payment> response = restTemplate.getForEntity(\"/payments/unKnownId\", Payment.class);\n //then: the response code should be 'not found'\n assertEquals(HttpStatus.NOT_FOUND, response.getStatusCode());\n }",
"@Test(expected = NotFoundException.class)\n public void testBGetNotFound() throws NotFoundException {\n AddressModel addressModel = service.get(11);\n assertNull(addressModel);\n }",
"public WeatherNotFoundException() {\n\t\tsuper(\"Something went wrong. Please try again later.. \");\n\t}",
"@ExceptionHandler(IllegalArgumentException.class) //Tratando os paths/status que nao forem os que selecioanmos no porStauts.\n public String onError(){\n return \"redirect:/disciplina\";\n }",
"@Test\n public void shouldNotFindTheBookID() throws JAXBException {\n Response response = target(\"/books\").path(\"invalidID\").request().get();\n assertEquals(Response.Status.NOT_FOUND.getStatusCode(), response.getStatusInfo().getStatusCode());\n }",
"@Test\n public void itShouldbeAbleToHandleA404Properly() {\n RequestStore requestStore = new RequestStore();\n// requestStore.setDirectory(\"com/angeleah/webserver/TestDirectory/\");\n String body =\"<!DOCTYPE html>\\n<title>Web Server</title>\\n<body>\\n<h1>Not Found</h1>\\n</body>\\n</html>\";\n notFoundHandler.handle(requestStore);\n byte[] b1 = requestStore.getBody();\n byte[] b2 = body.getBytes();\n assertEquals(true, FileByteArrayCompare(b1, b2));\n }",
"@Test\n public void testFindProductShouldThrowNotFoundWhenProductIdNotFound() throws Exception {\n when(productRepository.findOne(product.getId())).thenReturn(null);\n\n testResponseData(RequestInfo.builder()\n .request(get(PRODUCT_DETAIL_ENDPOINT, product.getId()))\n .token(memberToken)\n .httpStatus(HttpStatus.NOT_FOUND)\n .build());\n }",
"@Test\n public void testUpdateProductShouldThrowResourceNotFoundExceptionWhenProductNotFound() throws Exception {\n // Mock method\n when(productRepository.findOne(product.getId())).thenReturn(null);\n\n testResponseData(RequestInfo.builder()\n .request(put(PRODUCT_DETAIL_ENDPOINT, product.getId()))\n .token(adminToken)\n .body(productRequest)\n .httpStatus(HttpStatus.NOT_FOUND)\n .jsonMap(createJsonMapError(PRODUCT_NOT_FOUND))\n .build());\n }",
"public ResponseEntity<Participant> participantNotFoundByRollNoErrorHandler(String rollNo)\n\t{\n\t\tlogger.info(\"Participant with this roll no. is not present : \"+rollNo);\n\t\treturn ResponseEntity.status(HttpStatus.NOT_FOUND).body(null);\n\t}",
"@Test\n public void deletePerson_ShouldReturnError404_WhenPersonNotFoundException() {\n Mockito.doThrow(PersonNotFoundException.class).when(personService).deletePerson(3L);\n\n //act\n ResponseEntity<Person> response = personController.deletePerson(3L);\n\n //assert\n assertEquals(HttpStatus.NOT_FOUND, response.getStatusCode());\n assertEquals(null, response.getBody());\n }",
"@Test\n public void testGetTravel_RecordNotFoundExceptionTravelId() throws Exception {\n \n mockMVC.perform(get(\"/user/1/travel/404\")\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isNotFound());\n \n verify(databaseMock, times(1)).getUser(anyInt());\n verifyNoMoreInteractions(databaseMock);\n }",
"@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t}",
"public ResourceNotFoundException(final String message, final Object resourceIdentifier,\n final Throwable cause) {\n super(message, cause);\n this.resourceIdentifier = resourceIdentifier;\n }",
"public FigureNotFoundException(String msg) {\n super(msg);\n }",
"@ExceptionHandler({RegionNotFoundException.class, ResourceNotFoundException.class})\n @ResponseBody\n @ResponseStatus(HttpStatus.NOT_FOUND)\n public String handle(final RuntimeException e) {\n return convertErrorAsJson(e.getMessage());\n }",
"public void test_GetDocumentContent_Failure1() throws Exception {\r\n try {\r\n initContext();\r\n\r\n // It should process successfully.\r\n beanUnderTest.getDocumentContent(100);\r\n fail(\"EntityNotFoundException is expected.\");\r\n } catch (EntityNotFoundException e) {\r\n // success\r\n }\r\n }",
"public void onRequestFailure(Request request, IOException e) { }",
"@Override\n\tpublic Response toResponse(ProductNotFoundException exception) {\n\t\treturn Response.status(Response.Status.NOT_FOUND)\n\t\t\t\t.entity(ExceptionResponseFactory.getException(Response.Status.NOT_FOUND, exception.getMessage()))\n\t\t\t\t.type(\"application/json\").build();\n\t\t\n\t}",
"public ServerNotFoundException(String message) {\n\t\tsuper(message);\n\n\t}"
] | [
"0.77571446",
"0.7334539",
"0.6904377",
"0.6869975",
"0.68605226",
"0.68468696",
"0.678571",
"0.67728484",
"0.676463",
"0.67622024",
"0.671573",
"0.6714027",
"0.6705148",
"0.66974956",
"0.66840804",
"0.66606116",
"0.6651732",
"0.6600813",
"0.65792805",
"0.65735596",
"0.6560981",
"0.65445733",
"0.6526547",
"0.6525765",
"0.65150666",
"0.65140414",
"0.6507068",
"0.6486421",
"0.6479651",
"0.64748955",
"0.6427787",
"0.6378684",
"0.63424695",
"0.63350976",
"0.62865704",
"0.6256859",
"0.62449414",
"0.62437075",
"0.62421405",
"0.62341493",
"0.6219739",
"0.6219592",
"0.62169194",
"0.6203433",
"0.6178569",
"0.6169702",
"0.61675745",
"0.6156866",
"0.61261237",
"0.61100507",
"0.6099289",
"0.608681",
"0.607566",
"0.6073098",
"0.6059835",
"0.6043218",
"0.6024986",
"0.60186124",
"0.5945133",
"0.59402007",
"0.5932294",
"0.5910687",
"0.59067976",
"0.5899359",
"0.5897443",
"0.58903015",
"0.58769685",
"0.58733433",
"0.58686686",
"0.5857829",
"0.5844917",
"0.5844494",
"0.5840341",
"0.582877",
"0.58132577",
"0.5795472",
"0.57772994",
"0.57683235",
"0.5767599",
"0.5759744",
"0.5750464",
"0.5728496",
"0.5726849",
"0.57265854",
"0.5726579",
"0.5713867",
"0.57104003",
"0.5701373",
"0.5693923",
"0.56838113",
"0.5669222",
"0.5660535",
"0.565468",
"0.56528544",
"0.5650415",
"0.56474715",
"0.564683",
"0.56445426",
"0.56437707",
"0.56431437",
"0.56392926"
] | 0.0 | -1 |
Whether or not standards mode is enabled. disabled by default. | public void setStandardsMode(boolean standardsMode) {
this.standardsMode = standardsMode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isStrictMode() {\n return strictMode;\n }",
"public boolean isEnhancedMode() {\r\n\t\treturn enhanced;\r\n\t}",
"public Boolean getStandard() {\n\t return isStandard();\n }",
"public abstract boolean isStandard();",
"void setBasicMode() {basicMode = true;}",
"public boolean isUseStrict()\n {\n return (isPragma() && getModule().toKeyword().isStrictKeyword());\n }",
"protected static synchronized boolean strictParsingEnabled()\n {\n if (EASMessage.s_strictParsing == null)\n {\n EASMessage.s_strictParsing = Boolean.valueOf(MPEEnv.getEnv(EASMessage.MPEENV_PARSE_STRICT, \"false\"));\n }\n\n return EASMessage.s_strictParsing.booleanValue();\n }",
"protected boolean isFreeStyle(){\r\n\t\treturn false;\r\n\t}",
"public void setStrictMode(boolean strictMode) {\n this.strictMode = strictMode;\n }",
"public boolean hasDocumentStandard() {\n return fieldSetFlags()[9];\n }",
"@Override\n public boolean isProgrammable() {\n return false;\n }",
"@JsonIgnore\n public Boolean isStandard() {\n return this.standard;\n }",
"public void setStandard(Boolean standard) {\n this.standard = standard;\n }",
"public void setCompatMode(boolean compatMode)\r\n {\r\n this.compatMode = compatMode;\r\n }",
"private boolean inStrictContext() {\n return config.isStrictMode;\n }",
"protected static synchronized void setStrictParsing(final boolean enable)\n {\n EASMessage.s_strictParsing = new Boolean(enable);\n }",
"public boolean hasDocumentStandardVersion() {\n return fieldSetFlags()[10];\n }",
"public LagartoDOMBuilder enableXmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = true; // ignore whitespaces that are non content\n\t\tconfig.parserConfig.setCaseSensitive(true); // XML is case sensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(false); // all tags are parsed in the same way\n\t\tconfig.enabledVoidTags = false; // there are no void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close empty tags (can be changed!)\n\t\tconfig.impliedEndTags = false; // no implied tag ends\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // disable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(true); // enable XML mode in parsing\n\t\treturn this;\n\t}",
"public boolean isSetEnvirstandard() {\n return this.envirstandard != null;\n }",
"public void setCompatibleMode(boolean value) {\n\t\tcompatible = value;\n\t}",
"public LagartoDOMBuilder enableHtmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = false; // collect all whitespaces\n\t\tconfig.parserConfig.setCaseSensitive(false); // HTML is case insensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(true); // script and style tags are parsed as CDATA\n\t\tconfig.enabledVoidTags = true; // list of void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close void tags\n\t\tconfig.impliedEndTags = true; // some tags end is implied\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // don't enable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(false); // enable XML mode in parsing\n\t\treturn this;\n\t}",
"@Override\n\tpublic final native String getCompatMode() /*-{\n return this.compatMode;\n\t}-*/;",
"@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property void setXmlStandalone(boolean xmlStandalone);",
"public boolean getSuppressModeC() {\n return suppressModeC;\n }",
"public boolean getCompatibleMode() {\n\t\treturn compatible;\n\t}",
"public boolean getEnableProductionEncodingHack() {\r\n \t\treturn Boolean.valueOf(properties.getProperty(KEY_ENABLE_PROD_ENCODING_HACK));\r\n \t}",
"public void enableStrictMode(){\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n }",
"public static native int legacy2aidl_audio_encapsulation_mode_t_AudioEncapsulationMode(\n int /*audio_encapsulation_mode_t*/ legacy);",
"@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property boolean getXmlStandalone();",
"public boolean isStrict() {\n return (getAccessFlags() & Constants.ACCESS_STRICT) > 0;\n }",
"public boolean isSimulateStyle() {\n return simulateStyle;\n }",
"public boolean isFacebeautyEnabled() {\n return false;\n }",
"public boolean isEnabled() {\n\t\treturn false;\n\t}",
"public boolean isEnabled() {\n\t\treturn false;\n\t}",
"protected boolean isDebugEnable() {\n return BlurDialogEngine.DEFAULT_DEBUG_POLICY;\n }",
"public boolean isEnabled() {\n\t\treturn true;\n\t}",
"public boolean isEnabled() {\n\t\treturn false;\r\n\t}",
"public boolean isEnabled() {\n\t\treturn false;\r\n\t}",
"public static boolean isStrictMode(String scheme) {\n return getProvider().isStrictMode(scheme);\n }",
"public boolean isTestMode() {\n return testMode;\n }",
"public void setSciMode(boolean entry) {\r\n\t\tsciMode = entry;\r\n\t}",
"public boolean isProductionMode() {\n return productionMode;\n }",
"@DISPID(79)\r\n\t// = 0x4f. The runtime will prefer the VTID if present\r\n\t@VTID(77)\r\n\tboolean enabled();",
"private boolean isSmartModeEnabled()\n {\n try\n {\n return Integer.parseInt((String) _smartModeComboBox.getSelectedItem()) > 0;\n }\n catch (NumberFormatException neverOccurs)\n {\n return false;\n }\n }",
"public void setDSCComplianceEnabled(boolean value) {\n this.dscCompliant = value;\n }",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}",
"@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property boolean getStrictErrorChecking();",
"@Override\r\n\tpublic boolean isTraditional() {\n\t\treturn false;\r\n\t}",
"@DISPID(37)\r\n\t// = 0x25. The runtime will prefer the VTID if present\r\n\t@VTID(42)\r\n\tboolean enabled();",
"public boolean isMode() {\n return mode;\n }",
"public String getStandard() {\n return standard;\n }",
"@Override\r\n\tpublic boolean isEnabled() {\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn false;\n\t}",
"@Override\n public boolean isSoft() {\n return true;\n }",
"public boolean isSupportDtd() {\n\t\treturn this.supportDtd;\n\t}",
"@Override\r\n\tpublic boolean isEnabled() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean isEnabled() {\n\t\treturn false;\r\n\t}",
"public boolean requiresSecurityPolicy()\n {\n return true;\n }",
"private boolean ModeCheck() {\n\t\treturn prefs.getBoolean(\"appmode\", false);\n\n\t}",
"public void setStandalone(boolean z) {\r\n this.fIsStandalone = z;\r\n }",
"@Override\n protected boolean isDebugEnable() {\n return false;\n }",
"boolean hasMode();",
"public boolean isMaintenanceModeSupported() {\r\n return maintenanceModeSupported;\r\n }",
"void setDebug(boolean mode) {\n\t\tdebug = mode;\n\t}",
"protected boolean isShowFormatterSetting() {\n \t\treturn true;\n \t}",
"public void set_strict(String strict) throws Exception{\n\t\tthis.strict = strict;\n\t}",
"public static boolean isEnabled() {\n return true;\n }",
"public java.lang.String getDocumentStandard() {\n return documentStandard;\n }",
"public String getToolstandard() {\r\n return toolstandard;\r\n }",
"public void setStrict(boolean on) {\n if (on)\n setAccessFlags(getAccessFlags() | Constants.ACCESS_STRICT);\n else\n setAccessFlags(getAccessFlags() & ~Constants.ACCESS_STRICT);\n }",
"private static native boolean isDevelopmentMode()/*-{\n return typeof $wnd.__gwt_sdm !== 'undefined';\n }-*/;",
"public String get_strict() throws Exception {\n\t\treturn this.strict;\n\t}",
"public java.lang.String getDocumentStandard() {\n return documentStandard;\n }",
"public boolean getDebugMode()\n {\n return debugMode;\n }",
"public boolean setEnabled(boolean enable);",
"public QuirkList getQuirks() {\n return quirks;\n }",
"public boolean getDebugMode() { return debugMode; }",
"public Boolean getBypassDocumentValidation() {\n return bypassDocumentValidation;\n }",
"@Override\n public boolean isEnabled() {\n return Boolean.TRUE;\n }",
"public void setEnabled(boolean enabled) {\r\n\t}",
"public boolean isHardcoreModeEnabled()\n {\n return hardcore;\n }",
"public boolean getMode() {\n\t\t\treturn this.mode;\n\t\t}",
"public final boolean hasStyle() {\n return hasStyle;\n }",
"public boolean enabled(){\n return enabled;\n }",
"public String getForcedBrowserMode() {\n return forcedBrowserMode;\n }",
"boolean setMode(int mode);",
"public static String getPreprocessorEnabled() {\n\t\tif ((xml == null) || (preprocessorEnabled == null)) return \"no\";\n\t\treturn preprocessorEnabled.equals(\"yes\") ? \"yes\" : \"no\";\n\t}",
"public void setStrict(boolean se) {\n writeline(\"/home/ubuntu/results/coverage/JexlEvalContext/JexlEvalContext_5_10.coverage\", \"73f9a273-bcc3-486d-bf99-df7e4743d3e7\");\n setStrict(se, se);\n }",
"@Override\n public void setValidationMode(int validationMode) {\n if (null == documentBuilderFactory) {\n loadDocumentBuilderFactory();\n }\n switch (validationMode) {\n case XMLParser.NONVALIDATING: {\n documentBuilderFactory.setValidating(false);\n // documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, null);\n return;\n }\n case XMLParser.DTD_VALIDATION: {\n documentBuilderFactory.setValidating(true);\n XMLHelper.allowExternalDTDAccess(documentBuilderFactory, \"all\", false);\n // documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, null);\n return;\n }\n case XMLParser.SCHEMA_VALIDATION: {\n try {\n documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, XML_SCHEMA);\n documentBuilderFactory.setValidating(true);\n XMLHelper.allowExternalAccess(documentBuilderFactory, \"all\", false);\n } catch (IllegalArgumentException e) {\n // This parser does not support XML Schema validation so leave it as\n // a non-validating parser.\n }\n return;\n }\n }\n }",
"public void securityOn()\n {\n m_bSecurity = true;\n }"
] | [
"0.645402",
"0.6188495",
"0.61725694",
"0.60735023",
"0.6055232",
"0.5917027",
"0.5897311",
"0.5886385",
"0.5885986",
"0.585372",
"0.5840105",
"0.5788925",
"0.57636607",
"0.574968",
"0.5731893",
"0.56437254",
"0.5643083",
"0.56338215",
"0.56266713",
"0.54941934",
"0.5416931",
"0.5414282",
"0.5404536",
"0.5403336",
"0.5330531",
"0.53282726",
"0.5325808",
"0.53150207",
"0.53003806",
"0.52953845",
"0.5277881",
"0.52682847",
"0.52674264",
"0.52674264",
"0.52653503",
"0.52603847",
"0.5256183",
"0.5256183",
"0.52451825",
"0.5237829",
"0.5229143",
"0.52128",
"0.5208815",
"0.5202873",
"0.5199278",
"0.5195116",
"0.5195116",
"0.5195116",
"0.5195116",
"0.5195116",
"0.5195116",
"0.5195116",
"0.5195116",
"0.5195116",
"0.5195116",
"0.51950705",
"0.5182759",
"0.5177767",
"0.5175832",
"0.51698476",
"0.5169526",
"0.51523113",
"0.51523113",
"0.5141856",
"0.51360285",
"0.51348084",
"0.51348084",
"0.51342964",
"0.51331997",
"0.51213956",
"0.5117589",
"0.5116688",
"0.51107895",
"0.51095647",
"0.5097627",
"0.5096004",
"0.50891",
"0.5080864",
"0.50783956",
"0.50769204",
"0.50703794",
"0.50672674",
"0.5064524",
"0.50557417",
"0.5051915",
"0.5028399",
"0.50211936",
"0.50176597",
"0.50130916",
"0.5012635",
"0.5012296",
"0.499891",
"0.49976525",
"0.49960694",
"0.4987188",
"0.49827278",
"0.49778366",
"0.49749163",
"0.4973929",
"0.49717557"
] | 0.76120317 | 0 |
Whether or not HTML entities are escaped by default. default is true. | public void setEscapeHTML(boolean escapeHTML) {
this.escapeHTML = escapeHTML;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String handleEntities(String content, boolean attribute)\n\t{\n\t\tString text;\n\t\t\n\t\tif (keepEntities(attribute))\n\t\t\ttext = EscHandler.theInstance.escape(content);\n\t\telse\n\t\t\ttext = content;\n\t\t\n\t\treturn text;\n\t}",
"public static String escapeHTML(String s, boolean escapeAmpersand) {\n // got to do amp's first so we don't double escape\n if (escapeAmpersand) {\n s = StringUtils.replace(s, \"&\", \"&\");\n }\n s = StringUtils.replace(s, \" \", \" \");\n s = StringUtils.replace(s, \"\\\"\", \""\");\n s = StringUtils.replace(s, \"<\", \"<\");\n s = StringUtils.replace(s, \">\", \">\");\n return s;\n }",
"public static String escapeHTML(String str){\r\n\t\treturn FuzzyXMLUtil.escape(str, true);\r\n\t}",
"private boolean escape() {\r\n return backslash() && (\r\n (digits() && (CHAR(';') || true)) || SET(\"rnqdgb\"));\r\n }",
"private String escapeHtml(String html) {\n if (html == null) {\n return null;\n }\n return html.replaceAll(\"&\", \"&\").replaceAll(\"<\", \"<\").replaceAll(\n \">\", \">\");\n }",
"private String escapeHtml(String html) {\n if (html == null) {\n return null;\n }\n return html.replaceAll(\"&\", \"&\").replaceAll(\"<\", \"<\").replaceAll(\n \">\", \">\");\n }",
"@org.junit.Test\n public void encodeHTML()\n {\n assertEquals(\"apos\", \"I can't do "this"\",\n Encodings.encodeHTMLAttribute(\"I can't do \\\"this\\\"\"));\n assertEquals(\"no replace\", \"just a test\",\n Encodings.encodeHTMLAttribute(\"just a test\"));\n assertEquals(\"empty\", \"\", Encodings.encodeHTMLAttribute(\"\"));\n }",
"public static String escapeMarkup(final String s,\n\t\t\tfinal boolean escapeSpaces, final boolean convertToHtmlUnicodeEscapes)\n\t{\n\t\tif (s == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal StringBuffer buffer = new StringBuffer();\n\n\t\t\tint len = s.length();\n\t\t\tfor (int i = 0; i < len; i++)\n\t\t\t{\n\t\t\t\tfinal char c = s.charAt(i);\n\n\t\t\t\tswitch (c)\n\t\t\t\t{\n\t\t\t\t\tcase '\\t' :\n\t\t\t\t\t\tif (escapeSpaces)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Assumption is four space tabs (sorry, but that's\n\t\t\t\t\t\t\t// just\n\t\t\t\t\t\t\t// how it is!)\n\t\t\t\t\t\t\tbuffer.append(\" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuffer.append(c);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase ' ' :\n\t\t\t\t\t\tif (escapeSpaces)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuffer.append(\" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuffer.append(c);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '<' :\n\t\t\t\t\t\tbuffer.append(\"<\");\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '>' :\n\t\t\t\t\t\tbuffer.append(\">\");\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '&':\n\n\t\t\t\t\t\t// if this is an entity (&#), then do not convert\n\t\t\t\t\t\tif ( (i < len - 1) && (s.charAt(i + 1) == '#') )\n\t\t\t\t\t {\n\t\t\t\t\t\t\tbuffer.append(c);\n\n\t\t\t\t\t }\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// it is not an entity, so convert it to &\n\t\t\t\t\t\t\tbuffer.append(\"&\");\n\t\t\t\t\t\t}\n\t\t\t\t\t break;\n\n\t\t\t\t\tcase '\"':\n\t\t\t\t\t buffer.append(\""\");\n\t\t\t\t\t break;\n\n\t\t\t\t\tcase '\\'':\n\t\t\t\t\t buffer.append(\"'\");\n\t\t\t\t\t break;\n\n\t\t\t\t\tdefault :\n\n\t\t\t\t\t\tif(convertToHtmlUnicodeEscapes)\n\t\t\t\t\t\t{\n\t\t\t int ci = 0xffff & c;\n\t\t\t if (ci < 160 )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// nothing special only 7 Bit\n\t\t\t\t\t\t\t\tbuffer.append(c);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t // Not 7 Bit use the unicode system\n\t\t\t\t\t\t\t\tbuffer.append(\"&#\");\n\t\t\t\t\t\t\t\tbuffer.append(new Integer(ci).toString());\n\t\t\t\t\t\t\t\tbuffer.append(';');\n\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuffer.append(c);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn buffer.toString();\n\t\t}\n\t}",
"private String escapeHtml(String html) {\r\n\t\tif (html == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn html.replaceAll(\"&\", \"&\").replaceAll(\"<\", \"<\").replaceAll(\">\", \">\");\r\n\t}",
"private String escapeHtml(String html) {\r\n\t\tif (html == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn html.replaceAll(\"&\", \"&\").replaceAll(\"<\", \"<\")\r\n\t\t\t\t.replaceAll(\">\", \">\");\r\n\t}",
"public static CharSequence escapeMarkup(final String s, final boolean escapeSpaces,\n\t\t\tfinal boolean convertToHtmlUnicodeEscapes)\n\t{\n\t\tif (s == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint len = s.length();\n\t\t\tfinal AppendingStringBuffer buffer = new AppendingStringBuffer((int)(len * 1.1));\n\n\t\t\tfor (int i = 0; i < len; i++)\n\t\t\t{\n\t\t\t\tfinal char c = s.charAt(i);\n\n\t\t\t\tswitch (c)\n\t\t\t\t{\n\t\t\t\t\tcase '\\t' :\n\t\t\t\t\t\tif (escapeSpaces)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Assumption is four space tabs (sorry, but that's\n\t\t\t\t\t\t\t// just how it is!)\n\t\t\t\t\t\t\tbuffer.append(\" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuffer.append(c);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase ' ' :\n\t\t\t\t\t\tif (escapeSpaces)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuffer.append(\" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuffer.append(c);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '<' :\n\t\t\t\t\t\tbuffer.append(\"<\");\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '>' :\n\t\t\t\t\t\tbuffer.append(\">\");\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '&' :\n\n\t\t\t\t\t\t// if this is an entity (&#), then do not convert\n\t\t\t\t\t\tif ((i < len - 1) && (s.charAt(i + 1) == '#'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuffer.append(c);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// it is not an entity, so convert it to &\n\t\t\t\t\t\t\tbuffer.append(\"&\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '\"' :\n\t\t\t\t\t\tbuffer.append(\""\");\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase '\\'' :\n\t\t\t\t\t\tbuffer.append(\"'\");\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault :\n\n\t\t\t\t\t\tif (convertToHtmlUnicodeEscapes)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint ci = 0xffff & c;\n\t\t\t\t\t\t\tif (ci < 160)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// nothing special only 7 Bit\n\t\t\t\t\t\t\t\tbuffer.append(c);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Not 7 Bit use the unicode system\n\t\t\t\t\t\t\t\tbuffer.append(\"&#\");\n\t\t\t\t\t\t\t\tbuffer.append(new Integer(ci).toString());\n\t\t\t\t\t\t\t\tbuffer.append(';');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuffer.append(c);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn buffer;\n\t\t}\n\t}",
"public static String escapeHTML(String s) {\n return escapeHTML(s, true);\n }",
"private String escapeHtml(String html) {\n\t\tif (html == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn html.replaceAll(\"&\", \"&\").replaceAll(\"<\", \"<\")\n\t\t\t\t.replaceAll(\">\", \">\");\n\t}",
"private String escapeHtml(String html) {\n\t\tif (html == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn html.replaceAll(\"&\", \"&\").replaceAll(\"<\", \"<\")\n\t\t\t\t.replaceAll(\">\", \">\");\n\t}",
"protected abstract boolean evalEscapeXml() throws JspException;",
"public boolean isRawInlineHtmlEnabled()\n {\n \treturn rawInlineHtmlEnabled;\n }",
"public interface HtmlEscaper {\n String escape(String string);\n}",
"public void enableRawInlineHtml()\n {\n rawInlineHtmlEnabled = true;\n }",
"default HtmlFormatter escapeJava() {\n return andThen(StringEscapeUtils::escapeJava);\n }",
"public void setEncodeHtml(String off) {\n\t\ttry {\n\t\t\tencodeHtml = Integer.parseInt(off);\n\t\t} catch (Exception e) {\n\t\t\tencodeHtml = 1;\n\t\t}\n\t}",
"public void setEscapeProcessing(boolean enable) throws SQLException {\n\r\n }",
"@Test\n\tvoid transformTagWithHtmlEscape() throws JspException {\n\t\tPageContext pc = createPageContext();\n\t\tTestBean tb = new TestBean();\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tServletRequestDataBinder binder = new ServletRequestDataBinder(tb, \"tb\");\n\t\tCustomDateEditor l = new CustomDateEditor(df, true);\n\t\tbinder.registerCustomEditor(Date.class, l);\n\t\tpc.getRequest().setAttribute(BindingResult.MODEL_KEY_PREFIX + \"tb\", binder.getBindingResult());\n\n\t\t// try another time, this time using Strings\n\t\tBindTag bind = new BindTag();\n\t\tbind.setPageContext(pc);\n\t\tbind.setPath(\"tb.name\");\n\t\tbind.doStartTag();\n\n\t\tTransformTag transform = new TransformTag();\n\t\ttransform.setPageContext(pc);\n\t\ttransform.setValue(\"na<me\");\n\t\ttransform.setParent(bind);\n\t\ttransform.setVar(\"theString\");\n\t\ttransform.setHtmlEscape(true);\n\t\ttransform.doStartTag();\n\n\t\tassertThat(pc.getAttribute(\"theString\")).isNotNull();\n\t\tassertThat(pc.getAttribute(\"theString\")).isEqualTo(\"na<me\");\n\t}",
"public String escapeAttributeEntities(String str) {\r\n StringBuffer buffer;\r\n char ch;\r\n String entity;\r\n\r\n buffer = null;\r\n for (int i = 0; i < str.length(); i++) {\r\n ch = str.charAt(i);\r\n switch(ch) {\r\n case '<' :\r\n entity = \"<\";\r\n break;\r\n case '>' :\r\n entity = \">\";\r\n break;\r\n/*\r\n case '\\'' :\r\n entity = \"'\";\r\n break;\r\n*/\r\n case '\\\"' :\r\n entity = \""\";\r\n break;\r\n case '&' :\r\n entity = \"&\";\r\n break;\r\n default :\r\n entity = null;\r\n break;\r\n }\r\n if (buffer == null) {\r\n if (entity != null) {\r\n // An entity occurred, so we'll have to use StringBuffer\r\n // (allocate room for it plus a few more entities).\r\n buffer = new StringBuffer(str.length() + 20);\r\n // Copy previous skipped characters and fall through\r\n // to pickup current character\r\n buffer.append(str.substring(0, i));\r\n buffer.append(entity);\r\n }\r\n }\r\n else {\r\n if (entity == null) {\r\n buffer.append(ch);\r\n }\r\n else {\r\n buffer.append(entity);\r\n }\r\n }\r\n }\r\n\r\n // If there were any entities, return the escaped characters\r\n // that we put in the StringBuffer. Otherwise, just return\r\n // the unmodified input string.\r\n return (buffer == null) ? str : buffer.toString();\r\n }",
"public String escapeElementEntities(String str) {\r\n StringBuffer buffer;\r\n char ch;\r\n String entity;\r\n\r\n buffer = null;\r\n for (int i = 0; i < str.length(); i++) {\r\n ch = str.charAt(i);\r\n switch(ch) {\r\n case '<' :\r\n entity = \"<\";\r\n break;\r\n case '>' :\r\n entity = \">\";\r\n break;\r\n case '&' :\r\n entity = \"&\";\r\n break;\r\n default :\r\n entity = null;\r\n break;\r\n }\r\n if (buffer == null) {\r\n if (entity != null) {\r\n // An entity occurred, so we'll have to use StringBuffer\r\n // (allocate room for it plus a few more entities).\r\n buffer = new StringBuffer(str.length() + 20);\r\n // Copy previous skipped characters and fall through\r\n // to pickup current character\r\n buffer.append(str.substring(0, i));\r\n buffer.append(entity);\r\n }\r\n }\r\n else {\r\n if (entity == null) {\r\n buffer.append(ch);\r\n }\r\n else {\r\n buffer.append(entity);\r\n }\r\n }\r\n }\r\n\r\n // If there were any entities, return the escaped characters\r\n // that we put in the StringBuffer. Otherwise, just return\r\n // the unmodified input string.\r\n return (buffer == null) ? str : buffer.toString();\r\n }",
"public String htmlSpecialChar(String string){\n String res = string.replaceAll(\"&\",\"&\");\n res = res.replace(\"'\",\"'\");\n res = res.replace(\"\\\"\",\"&qout;\");\n res = res.replace(\"$\",\"$\");\n res = res.replace(\"%\",\"%\");\n res = res.replace(\"<\",\"<\");\n res = res.replace(\">\",\">\");\n res = res.replace(\"\\n\",\"\\\\n\");\n return res;\n }",
"private boolean noquote() {\r\n return NOT(GO() && CHAR('\\'')) && literal();\r\n }",
"private boolean nobquotes() {\r\n return OPT(GO() && NOT(GO() && CHAR('`')) && literal() && nobquotes());\r\n }",
"private boolean nodquotes() {\r\n return OPT(GO() && NOT(GO() && CHAR('\"')) && literal() && nodquotes());\r\n }",
"protected boolean isVerbatim() {\n return this.inVerbatim;\n }",
"@Override\n public Boolean tryToEscape() {\n return null;\n }",
"private boolean noquotes() {\r\n return OPT(GO() && noquote() && noquotes());\r\n }",
"@Override\n public boolean isUnicode()\n {\n return true;\n }",
"public void setJavaScriptEscape(boolean javaScriptEscape) throws JspException {\n\t\tthis.javaScriptEscape = javaScriptEscape;\n\t}",
"public static String escapeMarkup(final String s)\n\t{\n\t\treturn escapeMarkup(s, false);\n\t}",
"@Override\n public String getSaveValue() {\n String saveValue = super.getSaveValue();\n // Replace &, <, >, ', and \"\n saveValue = saveValue.replace(\"&\", \"&\");\n saveValue = saveValue.replace(\"<\", \"<\");\n saveValue = saveValue.replace(\">\", \">\");\n saveValue = saveValue.replace(\"\\'\", \"'\");\n saveValue = saveValue.replace(\"\\\"\", \""\");\n return saveValue;\n }",
"public void disableQuoteChar() {\n this.quoteChar = NO_QUOTING;\n }",
"default Escaper escapeSingleQuotes() {\n return and((char c) -> {\n if (c == '\"') {\n return \"\\\\\\\"\";\n }\n return null;\n });\n }",
"@attribute(value = \"\", required = false)\t\r\n\tpublic void setQuoteText(Boolean quote) {\r\n\t\tthis.quoteText = quote;\r\n\t}",
"@Override\n\tprotected boolean isInClearText() {\n\t\treturn !this.inQuotes;\n\t}",
"public JsonFactory setCharacterEscapes(CharacterEscapes esc)\n/* */ {\n/* 666 */ this._characterEscapes = esc;\n/* 667 */ return this;\n/* */ }",
"public static String EncodeHTML(String s) {\n StringBuilder out = new StringBuilder();\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (c > 127 || c == '\"' || c == '<' || c == '>') {\n out.append(\"&#\" + (int) c + \";\");\n } else {\n out.append(c);\n }\n }\n return out.toString();\n }",
"boolean isQuote();",
"public static String escape(CharSequence charSeq)\n\t{\n\t\treturn escape(charSeq, Apostrophe.XML_ENTITY);\n\t}",
"private boolean containsHtml(final String str) {\n if (str == null)\n return false;\n return str.indexOf('<') != -1 || str.indexOf('&') != -1;\n }",
"public CharacterEscapes getCharacterEscapes()\n/* */ {\n/* 659 */ return this._characterEscapes;\n/* */ }",
"@Override\n public void setEscapeProcessing(boolean enable) throws SQLException {\n throw new SQLException(\"The tinySQL Driver doesn't \" +\n \"support escape processing.\");\n }",
"public static String escapeMarkup(final String s, final boolean escapeSpaces)\n\t{\n\t\treturn escapeMarkup(s, escapeSpaces, false);\n\t}",
"public static String encodeHtml(String str) {\n StringBuffer unencodedContent = new StringBuffer(str.length());\n Matcher fixCharMatch = encodeCharactersPattern.matcher(str);\n while (fixCharMatch.find()) {\n fixCharMatch.appendReplacement(unencodedContent, \"&#\" + fixCharMatch.group(1).codePointAt(0) + \";\");\n }\n fixCharMatch.appendTail(unencodedContent);\n return unencodedContent.toString();\n }",
"protected boolean getUseUnicode() {\n return this.useUnicode;\n }",
"public static String HTMLEncode(String str) {\n\t\tif(null == str)\n\t\t\treturn \"null\";\n\t\tStringBuffer strbuf = new StringBuffer(str.length());\n\t\tchar tmp;\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\ttmp = str.charAt(i);\n\t\t\tif('<' == tmp) {\n\t\t\t\tstrbuf.append(\"<\");\n\t\t\t} else if('>' == tmp) {\n\t\t\t\tstrbuf.append(\">\");\n\t\t\t} else {\n\t\t\t\tstrbuf.append(tmp);\n\t\t\t}\n\t\t}\n\t\treturn strbuf.toString();\n\t}",
"public static final String escapeHTMLTags(String input) { \r\n if (input == null || input.length() == 0) {\r\n return input;\r\n } \r\n StringBuffer buf = new StringBuffer(input.length());\r\n char ch = ' ';\r\n for (int i = 0; i < input.length(); i++) {\r\n ch = input.charAt(i);\r\n if (ch == '<') {\r\n buf.append(LT);\r\n } else if (ch == '>') {\r\n buf.append(GT);\r\n } else if (ch == '\\'') {\r\n buf.append(S_QUTO);\r\n } else if (ch == '\"') {\r\n buf.append(D_QUTO);\r\n } else {\r\n buf.append(ch);\r\n }\r\n }\r\n return buf.toString();\r\n }",
"protected String getQuote() {\n return \"\\\"\";\n }",
"@Override\r\n\t\tpublic String encode(String str) {\r\n\t\t\t// str to char[]\r\n\t\t\tchar content[] = str.toCharArray();\r\n\t\t\t\r\n\t\t\t// per char\r\n\t\t\tStringBuilder result = new StringBuilder(content.length);\r\n\t\t\tfor (int i = 0; i < content.length; i++) {\r\n\t\t\t\tswitch (content[i]) {\r\n\t\t\t\tcase '<':\r\n\t\t\t\t\tresult.append(\"<\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '>':\r\n\t\t\t\t\tresult.append(\">\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '&':\r\n\t\t\t\t\tresult.append(\"&\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '\"':\r\n\t\t\t\t\tresult.append(\""\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '\\'':\r\n\t\t\t\t\tresult.append(\"'\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tresult.append(content[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn (result.toString());\r\n\t\t}",
"public String getQuoteEscapeCharacter() {\n return this.quoteEscapeCharacter;\n }",
"@Test\n\tpublic void testSpecialChars() {\n\t\tString ff = XStreamUtils.serialiseToXml(\"Form feed: \\f\");\n\t\tSystem.out.println(ff);\n\t\tObject s = XStreamUtils.serialiseFromXml(\"<S></S>\");\n\t\tSystem.out.println(ff);\n\t}",
"public static String checkString(String content)\n\t {\n\t \tString s=\"\";\n\t \tfor(int i=0;i<content.length();i++)\n\t \t{\n\t \t\tchar c=content.charAt(i);\t\n\t \t\tif(c =='\\\"')\n\t \t\t{\n\t \t\ts+=\""\";\n\t \t\t}\n\t \t\telse if(c=='<')\n\t \t\t{\n\t \t\t\ts+=\"<\";\n\t \t\t}\n\t \t\telse if(c=='>')\n\t \t\t{\n\t \t\t\ts+=\"&\";\n\t \t\t}\n\t \t\telse if(c=='\\n')\n\t \t\t{\n\t \t\t\ts+=\"<br>\";\n\t \t\t}\n\t \t\telse if(c=='\\'')\n\t \t\t{\n\t \t\t\ts+=\"'\";\n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\ts+=c;\n\t \t\t}\n\t \t}\n\t return s;\n\t }",
"@Override\n\tprotected void testForOpenDoubleQuotes() {\n\t}",
"public boolean hasUnicodeRepresentation();",
"public void quote() {\n text.append(\"\\'\");\n }",
"public interface EscapeMarker {}",
"private String escapeXML(String string) {\n StringBuffer sb = new StringBuffer();\n int length = string.length();\n for (int i = 0; i < length; ++i) {\n char c = string.charAt(i);\n switch (c) {\n case '&':\n sb.append(\"&\");\n break;\n case '<':\n sb.append(\"<\");\n break;\n case '>':\n sb.append(\">\");\n break;\n case '\\'':\n sb.append(\"'\");\n break;\n case '\"':\n sb.append(\""\");\n break;\n default:\n sb.append(c);\n }\n }\n return sb.toString();\n }",
"private void entityInAttributeValueState() throws SAXException, IOException {\n /*\n * Attempt to consume an entity.\n */\n consumeEntity(true);\n /*\n * If nothing is returned, append a U+0026 AMPERSAND character to the\n * current attribute's value.\n * \n * Otherwise, append the returned character token to the current\n * attribute's value.\n */\n // handled in consumeEntity();\n /*\n * Finally, switch back to the attribute value state that you were in\n * when were switched into this state.\n */\n return;\n }",
"private String escapeXML(String string) {\n if (string == null)\n return \"null\";\n StringBuffer sb = new StringBuffer();\n int length = string.length();\n for (int i = 0; i < length; ++i) {\n char c = string.charAt(i);\n switch (c) {\n case '&':\n sb.append(\"&\");\n break;\n case '<':\n sb.append(\"<\");\n break;\n case '>':\n sb.append(\">\");\n break;\n case '\\'':\n sb.append(\"'\");\n break;\n case '\"':\n sb.append(\""\");\n break;\n default:\n sb.append(c);\n }\n }\n return sb.toString();\n }",
"public static CharSequence escapeMarkup(final String s, final boolean escapeSpaces)\n\t{\n\t\treturn escapeMarkup(s, escapeSpaces, false);\n\t}",
"public static CharSequence escapeMarkup(final String s)\n\t{\n\t\treturn escapeMarkup(s, false);\n\t}",
"public boolean isShouldEncodeUrls() {\n return mShouldEncodeUrls;\n }",
"public static String escapeXML(String value){\r\n\t\treturn FuzzyXMLUtil.escape(value, false);\r\n\t}",
"default Escaper escapeDoubleQuotes() {\n return and((char c) -> {\n if (c == '\"') {\n return \"\\\\\\\"\";\n }\n return null;\n });\n }",
"private boolean literal() {\r\n return ALT((GO() && escape()) || (OK() && visible()));\r\n }",
"public LagartoDOMBuilder enableHtmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = false; // collect all whitespaces\n\t\tconfig.parserConfig.setCaseSensitive(false); // HTML is case insensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(true); // script and style tags are parsed as CDATA\n\t\tconfig.enabledVoidTags = true; // list of void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close void tags\n\t\tconfig.impliedEndTags = true; // some tags end is implied\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // don't enable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(false); // enable XML mode in parsing\n\t\treturn this;\n\t}",
"protected void content(String text) {\n // small hack due to DOXIA-314\n String txt = escapeHTML(text);\n txt = StringUtils.replace(txt, \"&#\", \"&#\");\n write(txt);\n }",
"public static boolean ShouldEncode(String str) {\r\n\r\n char SAFE_CHAR_EXCEPTIONS[] = {'\\n', '\\r', '\\t', 0};\r\n char SAFE_INIT_CHAR_EXCEPTIONS[] = {'\\n', '\\r', '\\t', 32, ':', '<', 0};\r\n\r\n // Are there safe initial character exceptions in the content?\r\n for (int ji = 0; ji < SAFE_INIT_CHAR_EXCEPTIONS.length; ji++) {\r\n if (str.indexOf(SAFE_INIT_CHAR_EXCEPTIONS[ji]) == 0) {\r\n return (true);\r\n }\r\n }\r\n\r\n // Are there safe character exceptions in the content?\r\n for (int ji = 0; ji < SAFE_CHAR_EXCEPTIONS.length; ji++) {\r\n if (str.indexOf(SAFE_CHAR_EXCEPTIONS[ji]) != -1) {\r\n return (true);\r\n }\r\n }\r\n\r\n // Is there a trailing space?\r\n if (str.endsWith(\" \")) {\r\n return (true);\r\n }\r\n\r\n\r\n return (false);\r\n }",
"@Override\n\tprotected void testForOpenSingleQuotes() {\n\t}",
"@Override\n protected boolean shouldEncodeUrls() {\n return isShouldEncodeUrls();\n }",
"java.util.Optional<Boolean> getShellQuote();",
"@Override\r\n\t\tpublic String encode(String str) {\r\n\t\t\t// str to char[]\r\n\t\t\tchar content[] = str.toCharArray();\r\n\r\n\t\t\t// per char\r\n\t\t\tStringBuilder result = new StringBuilder(content.length);\r\n\t\t\tfor (int i = 0; i < content.length; i++) {\r\n\t\t\t\tswitch (content[i]) {\r\n\t\t\t\t\tcase '<':\r\n\t\t\t\t\t\tresult.append(\"<\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase '>':\r\n\t\t\t\t\t\tresult.append(\">\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase '&':\r\n\t\t\t\t\t\tresult.append(\"&\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase '\"':\r\n\t\t\t\t\t\tresult.append(\""\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase '\\'':\r\n\t\t\t\t\t\tresult.append(\"'\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tresult.append(content[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn (result.toString());\r\n\t\t}",
"public static boolean isMarkup(int c) {\n return c == '<' || c == '&' || c == '%';\n }",
"public static String encodeToHtml(String in)\n {\n // New StringBuffer for output concatenation\n StringBuffer out = new StringBuffer();\n \n // For each character in the input string\n for (int i = 0; in != null && i < in.length(); i++)\n {\n // Get the current character\n char c = in.charAt(i);\n \n // Encode this character\n if (c == '\\'')\n {\n out.append(\"'\");\n }\n else if (c == '\\\"')\n {\n out.append(\""\");\n }\n else if (c == '<')\n {\n out.append(\"<\");\n }\n else if (c == '>')\n {\n out.append(\">\");\n }\n else if (c == '&')\n {\n out.append(\"&\");\n }\n else\n {\n out.append(c);\n }\n }\n \n // Return encoded string\n return out.toString();\n }",
"protected void verbatimContent(String text) {\n write(escapeHTML(text));\n }",
"public Map<String, String> getEscapeForJavaScript() {\n return FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<String, String>() {\n @Override\n public String get(Object key) {\n return FxFormatUtils.escapeForJavaScript(String.valueOf(key), false, true);\n }\n });\n }",
"private String escape(String str) {\n String result = null; // replace(str, \"&\", \"&\");\n\n while (str.indexOf(\"&\") != -1) {\n str = replace(str, \"&\", \"&\");\n }\n result = str;\n while (result.indexOf(\"-\") != -1) {\n result = replace(result, \"-\", \"\");\n }\n return result;\n }",
"private String encodeXSS(String s) { \n if (s == null || \"\".equals(s)) { \n return s; \n } \n StringBuilder sb = new StringBuilder(s.length() + 16); \n for (int i = 0; i < s.length(); i++) { \n char c = s.charAt(i); \n switch (c) { \n \n //handle the '<' and '>' which can be used for constructing <script> and </script> \n case '>': \n sb.append('>'); \n break; \n case '<': \n sb.append('<'); \n break; \n \n //since the html can support the characters using $#number format \n //so here also need to escape '#','&' and quote symbol \n case '\\'': \n sb.append('‘'); \n break; \n case '\\\"': \n sb.append('“'); \n break; \n case '&': \n sb.append('&'); \n break; \n case '\\\\': \n sb.append('\'); \n break; \n case '#': \n sb.append('#'); \n break; \n //if not the special characters ,then output it directly \n default: \n sb.append(c); \n break; \n } \n } \n return sb.toString(); \n }",
"private String encode(String s) {\n\t\tString t = \"\";\n\n\t\tif (s == null) {\n\t\t\treturn t;\n\t\t}\n\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\n\t\t\tif (c == '<') {\n\t\t\t\tt += \"<\";\n\t\t\t} else if (c == '>') {\n\t\t\t\tt += \">\";\n\t\t\t} else if (c == '&') {\n\t\t\t\tt += \"&\";\n\t\t\t} else if (c == '\"') {\n\t\t\t\tt += \""\";\n\t\t\t} else if (c == '\\'') {\n\t\t\t\tt += \"'\";\n\t\t\t} else {\n\t\t\t\tt += c;\n\t\t\t}\n\t\t}\n\n\t\treturn t;\n\t}",
"@Test\n void should_describe_escaped_chars() {\n final char backspace = 8;\n final char tab = 9;\n final char lineFeed = 10;\n final char carriageReturn = 13;\n final char doubleQuote = 0x22;\n final char singleQuote = 0x27;\n final char backslash = 0x5C;\n // --end-->\n\n assertEquals(EscapedChars.BACKSPACE.getValue(), backspace);\n assertEquals(EscapedChars.TAB.getValue(), tab);\n assertEquals(EscapedChars.LINE_FEED.getValue(), lineFeed);\n assertEquals(EscapedChars.CARRIAGE_RETURN.getValue(), carriageReturn);\n assertEquals(EscapedChars.DOUBLE_QUOTE.getValue(), doubleQuote);\n assertEquals(EscapedChars.SINGLE_QUOTE.getValue(), singleQuote);\n assertEquals(EscapedChars.BACKSLASH.getValue(), backslash);\n }",
"public void setEscapeProcessing(boolean enable) throws SQLException {\n currentPreparedStatement.setEscapeProcessing(enable);\n }",
"public void setQuoteEscapeCharacter(String quoteEscapeCharacter) {\n this.quoteEscapeCharacter = quoteEscapeCharacter;\n }",
"private void writeEsc(char ch[], int start, int length, boolean isAttVal) throws IOException {\n\t\tescapeHandler.escape(ch, start, length, isAttVal, output);\n\t}",
"public void setEncodeDefaults(boolean encodeDefaults) {\n this.encodeDefaults = encodeDefaults;\n }",
"public interface Escaper {\n\n /**\n * Escape one character, returning an escaped version of it if one is\n * needed, and otherwise returning null.\n *\n * @param c A character\n * @return A character sequence to replace the character with, or null if no\n * escaping is needed\n */\n CharSequence escape(char c);\n\n /**\n * Returns an escaped version of the input character sequence using this\n * Escaper.\n *\n * @param input The input\n * @return The escaped version of it\n */\n default String escape(CharSequence input) {\n return Strings.escape(input, this);\n }\n\n /**\n * Escape a character with contextual information about the current position\n * and the preceding character (will be 0 on the first character); a few\n * escapers that respond to things like delimiters and camel casing make use\n * of this; the default is simply to call <code>escape(c)</code>\n *\n * @param c The character to escape\n * @param index The index of the character within the string\n * @param of The total number of characters in this string\n * @param prev The preceding character\n * @return A CharSequence if the character cannot be used as-is, or null if\n * it can\n */\n default CharSequence escape(char c, int index, int of, char prev) {\n return escape(c);\n }\n\n /**\n * For use when logging a badly encoded string. Converts unencodable\n * characters to hex and ISO control characters to hex or their standard\n * escaped Java string representation if there is one (e.g. 0x05 ->\n * \"<0x05>\" but \\n -> \"\\n\").\n *\n * @param cs The character set.\n * @return A string representation that does not include raw unencodable or\n * control characters.\n */\n static Escaper escapeUnencodableAndControlCharacters(Charset cs) {\n CharsetEncoder enc = cs.newEncoder();\n return c -> {\n switch (c) {\n case '\\t':\n return \"\\\\t\";\n case '\\r':\n return \"\\\\r\";\n case '\\n':\n return \"\\\\n\";\n }\n if (!enc.canEncode(c) || Character.isISOControl(c)) {\n return \"<0x\" + Strings.toHex(c) + \">\";\n }\n return null;\n };\n }\n\n /**\n * Returns an escaper which does not escape the specified character, but\n * otherwise behaves the same as its parent.\n *\n * @param c A character\n * @return a new escaper\n */\n default Escaper ignoring(char c) {\n return c1 -> {\n if (c1 == c) {\n return null;\n }\n return this.escape(c);\n };\n }\n\n /**\n * Combine this escaper with another, such that the passed escaper is used\n * only on characters this escaper did not escape.\n *\n * @param other Another escaper\n * @return A new escaper\n */\n default Escaper and(Escaper other) {\n return new Escaper() {\n @Override\n public CharSequence escape(char c) {\n CharSequence result = Escaper.this.escape(c);\n return result == null ? other.escape(c) : result;\n }\n\n @Override\n public CharSequence escape(char c, int index, int of, char prev) {\n CharSequence result = Escaper.this.escape(c, index, of, prev);\n return result == null ? other.escape(c, index, of, prev) : result;\n }\n };\n }\n\n /**\n * Returns a new escaper which will also escape the passed character by\n * prefixing it with \\ in output.\n *\n * @param c A character\n * @return A new escaper\n */\n default Escaper escaping(char c) {\n return and((char c1) -> {\n if (c1 == c) {\n return \"\\\\\" + c;\n }\n return null;\n });\n }\n\n /**\n * Adds the behavior of escaping \" characters.\n *\n * @return A new escaper\n */\n default Escaper escapeDoubleQuotes() {\n return and((char c) -> {\n if (c == '\"') {\n return \"\\\\\\\"\";\n }\n return null;\n });\n }\n\n /**\n * Adds the behavior of escaping ' characters.\n *\n * @return A new escaper\n */\n default Escaper escapeSingleQuotes() {\n return and((char c) -> {\n if (c == '\"') {\n return \"\\\\\\\"\";\n }\n return null;\n });\n }\n\n /**\n * Converts some text incorporating symbols into a legal Java identifier,\n * separating symbol names and spaces in unicode character names with\n * underscores. Uses programmer-friendly character names for commonly used\n * characters (e.g. \\ is \"Backslash\" instead of the unicode name \"reverse\n * solidus\" (!). Useful when you have some text that needs to be converted\n * into a variable name in generated code and be recognizable as what it\n * refers to.\n */\n public static Escaper JAVA_IDENTIFIER_DELIMITED = new SymbolEscaper(true);\n\n /**\n * Converts some text incorporating symbols into a legal Java identifier,\n * separating symbol names and spaces using casing. Uses programmer-friendly\n * character names for commonly used characters (e.g. \\ is \"Backslash\"\n * instead of the unicode name \"reverse solidus\" (!). Useful when you have\n * some text that needs to be converted into a variable name in generated\n * code and be recognizable as what it refers to.\n */\n public static Escaper JAVA_IDENTIFIER_CAMEL_CASE = new SymbolEscaper(false);\n\n /**\n * Escapes double quotes, ampersands, less-than and greater-than to their\n * SGML entities.\n */\n public static Escaper BASIC_HTML = c -> {\n switch (c) {\n case '\"':\n return \""\";\n case '\\'':\n return \"'\";\n case '&':\n return \"&\";\n case '<':\n return \"<\";\n case '>':\n return \">\";\n case '©':\n return \"©\";\n case '®':\n return \"®\";\n case '\\u2122':\n return \"™\";\n case '¢':\n return \"¢\";\n case '£':\n return \"£\";\n case '¥':\n return \"¥\";\n case '€':\n return \"€\";\n default:\n return null;\n }\n };\n\n /**\n * Escapes the usual HTML to SGML entities, plus escaping @, { and }, which\n * can otherwise result in javadoc build failures if they appear in code\n * samples.\n */\n public static Escaper JAVADOC_CODE_SAMPLE = c -> {\n switch (c) {\n case '@':\n return \"@\";\n case '{':\n return \"{\";\n case '}':\n return \"}\";\n case '\"':\n return \""\";\n case '\\'':\n return \"'\";\n case '&':\n return \"&\";\n case '<':\n return \"<\";\n case '>':\n return \">\";\n case '©':\n return \"©\";\n case '®':\n return \"®\";\n case '\\u2122':\n return \"™\";\n case '¢':\n return \"¢\";\n case '£':\n return \"£\";\n case '¥':\n return \"¥\";\n case '€':\n return \"€\";\n default:\n return null;\n }\n };\n\n /**\n * Escapes double quotes, ampersands, less-than and greater-than to their\n * SGML entities, and replaces \\n with <br>.\n */\n public static Escaper HTML_WITH_LINE_BREAKS = c -> {\n CharSequence result = BASIC_HTML.escape(c);\n if (result == null) {\n switch (c) {\n case '\\r':\n result = \"\";\n break;\n case '\\n':\n result = \"<br>\";\n }\n }\n return result;\n };\n\n /**\n * Replaces \\n, \\r, \\t and \\b with literal strings starting with \\.\n */\n public static Escaper NEWLINES_AND_OTHER_WHITESPACE = c -> {\n switch (c) {\n case '\\n':\n return \"\\\\n\";\n case '\\t':\n return \"\\\\t\";\n case '\\r':\n return \"\\\\r\";\n case '\\b':\n return \"\\\\b\";\n default:\n return null;\n }\n };\n\n /**\n * Escapes the standard characters which must be escaped for generating\n * valid lines of code in Java or Javascript - \\n, \\r, \\t, \\b, \\f and \\.\n * Does <i>not</i> escape quote characters (this may differ based on the\n * target language) - call escapeSingleQuotes() or escapeDoubleQuotes() to\n * create a wrapper around this escaper which does that.\n */\n public static Escaper CONTROL_CHARACTERS = c -> {\n switch (c) {\n case '\\n':\n return \"\\\\n\";\n case '\\r':\n return \"\\\\r\";\n case '\\t':\n return \"\\\\t\";\n case '\\b':\n return \"\\\\b\";\n case '\\f':\n return \"\\\\f\";\n case '\\\\':\n return \"\\\\\\\\\";\n default:\n return null;\n }\n };\n\n /**\n * Omits characters which are neither letters nor digits - useful for\n * hash-matching text that may have varying amounts of whitespace or other\n * non-semantic formatting differences.\n */\n public static Escaper OMIT_NON_WORD_CHARACTERS = c -> {\n return !Character.isDigit(c) && !Character.isLetter(c) ? \"\"\n : Character.toString(c);\n };\n}",
"default String escape(CharSequence input) {\n return Strings.escape(input, this);\n }",
"public LocalizationHelper setReplaceAmpersand(boolean value) {\n\n replacesAmpersandWithSectionSign = value;\n return this;\n }",
"@Test\n public void testMethod() {\n Engine e = new Engine( \"[[\", \"]]\", (int) '@', new HashMap<String, String>() );\n assertThat( e.isEscape( '@' ) ).isTrue();\n assertThat( e.isEscape( '\\\\' ) ).isFalse();\n }",
"public static void quoteText(boolean useQuotes) {\r\n\t\tXLS2CSV2.useQuotes=useQuotes;\r\n\t}",
"public boolean getItalic() {\r\n return Italic;\r\n }",
"protected String escape( String text )\n {\n return text.replaceAll( \"([`\\\\|*_])\", \"\\\\\\\\$1\" );\n }",
"public static String encode(String in){\n in = in.replace(\"&\", \"&\");\n in = in.replace(\"\\\"\", \""\");\n in = in.replace(\"<\", \"<\");\n in = in.replace(\">\", \">\");\n log.debug(\"encoded string: \" + in);\n // FIXME: Consider double-encoding & if it is not part of &\n return in;\n }",
"protected String getFalse() {\n return \"false\";\n }",
"public void setLiteral(boolean isLiteral)\n {\n this.literal = isLiteral;\n }",
"private String escapeValue(String value) {\n Matcher match = escapePattern.matcher(value);\n String ret = match.replaceAll(\"\\\\\\\\\\\\\\\\\");\n return ret.replace(\"\\\"\", \"\\\\\\\"\").replace(\"\\n\", \" \").replace(\"\\t\", \" \");\n }",
"public void doubleQuote() {\n text.append(\"\\\"\");\n }"
] | [
"0.666262",
"0.6620347",
"0.63011223",
"0.61940694",
"0.6179832",
"0.6179832",
"0.61043435",
"0.609245",
"0.6068179",
"0.60581756",
"0.6048851",
"0.6010026",
"0.5986066",
"0.5986066",
"0.5933141",
"0.5920402",
"0.59164995",
"0.5900321",
"0.58984965",
"0.5881023",
"0.5856092",
"0.5819738",
"0.57987785",
"0.57981646",
"0.5776743",
"0.574851",
"0.5703552",
"0.5673018",
"0.559657",
"0.55946416",
"0.5582305",
"0.5569118",
"0.55638266",
"0.5558622",
"0.55322754",
"0.5499513",
"0.5439225",
"0.54073083",
"0.537434",
"0.53712493",
"0.5366384",
"0.5364494",
"0.5359839",
"0.53580064",
"0.5330197",
"0.5314643",
"0.53020275",
"0.52816373",
"0.527855",
"0.5253994",
"0.52140445",
"0.5199926",
"0.51940066",
"0.518272",
"0.5180247",
"0.5174131",
"0.51679784",
"0.51531345",
"0.51484525",
"0.5138989",
"0.5130071",
"0.5122579",
"0.5117773",
"0.51149184",
"0.5099082",
"0.508911",
"0.50857466",
"0.5080288",
"0.50763243",
"0.5051751",
"0.5045771",
"0.5038837",
"0.5037468",
"0.50330085",
"0.50130624",
"0.5002077",
"0.49950564",
"0.49949667",
"0.4994452",
"0.4988806",
"0.4986774",
"0.4979282",
"0.49413356",
"0.49279928",
"0.49216142",
"0.49096426",
"0.49043772",
"0.48926464",
"0.48867878",
"0.48363113",
"0.48295146",
"0.48128366",
"0.4810391",
"0.48044622",
"0.4799633",
"0.4793947",
"0.4792928",
"0.47878313",
"0.47847715",
"0.47846726"
] | 0.7560671 | 0 |
You can inject your own custom configured compiler. If you don't inject one then a default one will be created for you instead using the standardsMode, escapeHTML, and templateLoader values you've injected. | public void setCompiler(Mustache.Compiler compiler) {
this.compiler = compiler;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCompiler();",
"private void registerEcolawCompiler(final BundleContext context) {\n\t\telCompilerServiceReg = context.registerService(EcolawCompiler.class,\n\t\t\t\tnew EcolawCompilerImpl(), declareCompilersProps());\n\n\t\tlog(\"Eco-law Compiler REGISTERED.\");\n\t}",
"public interface XpCompilerContext {\n\n JavaCompiler getJavaCompiler();\n TagLibraryRegistry getTagLibraryRegistry();\n File getJavaDirectory();\n OutputStream getOut();\n\n}",
"public interface TemplateCompiler {\r\n \r\n /**\r\n * Compiles template into specified outputStream.\r\n * \r\n * @param t\r\n * @param context\r\n * @param out\r\n * @throws XMLStreamException\r\n */\r\n public void compile(Template t, TemplateModel model, OutputStream out) throws TemplateCompileException;\r\n\r\n /**\r\n * Compiles template into specified reader.\r\n * Compile method which takes OutputStream is preferrable to this one.\r\n * \r\n * @param t\r\n * @param context\r\n * @param out\r\n * @throws XMLStreamException\r\n */\r\n public void compile(Template t, TemplateModel model, Writer out) throws TemplateCompileException;\r\n\r\n /**\r\n * Compiles template into specified xml Result.\r\n * \r\n * @param t\r\n * @param context\r\n * @param out\r\n * @throws XMLStreamException\r\n */\r\n public void compile(Template t, TemplateModel model, XmlResult out) throws TemplateCompileException;\r\n \r\n}",
"public String getCompilerClassName();",
"public CompilerOptions getCompilerOptions() {\n return compilerOptions;\n }",
"public native void compile() /*-{\r\n\t\tvar template = [email protected]::getJsObj()();\r\n\t\ttemplate.compile();\r\n\t}-*/;",
"public void activeCompilerChanged() { }",
"@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}",
"public interface Options {\n\n /**\n * Returns true if Jasper issues a compilation error instead of a runtime\n * Instantiation error if the class attribute specified in useBean action\n * is invalid.\n */\n public boolean getErrorOnUseBeanInvalidClassAttribute();\n\n /**\n * Are we keeping generated code around?\n */\n public boolean getKeepGenerated();\n\n /**\n * Returns true if tag handler pooling is enabled, false otherwise.\n */\n public boolean isPoolingEnabled();\n\n /**\n * Are we supporting HTML mapped servlets?\n */\n public boolean getMappedFile();\n\n /**\n * Should errors be sent to client or thrown into stderr?\n */\n public boolean getSendErrorToClient();\n \n /**\n * Should we include debug information in compiled class?\n */\n public boolean getClassDebugInfo();\n\n /**\n * Background compile thread check interval in seconds\n */\n public int getCheckInterval();\n\n /**\n * Is Jasper being used in development mode?\n */\n public boolean getDevelopment();\n\n /**\n * Is the generation of SMAP info for JSR45 debugging suppressed?\n */\n public boolean isSmapSuppressed();\n\n /**\n * Indicates whether SMAP info for JSR45 debugging should be dumped to a\n * file.\n * Ignored is suppressSmap() is true\n */\n public boolean isSmapDumped();\n\n /**\n * Should white spaces between directives or actions be trimmed?\n */\n public boolean getTrimSpaces();\n\n /**\n * Class ID for use in the plugin tag when the browser is IE. \n */\n public String getIeClassId();\n\n /**\n * What is my scratch dir?\n */\n public File getScratchDir();\n\n /**\n * What classpath should I use while compiling the servlets\n * generated from JSP files?\n */\n public String getClassPath();\n\n // START PWC 1.2 6311155\n /**\n * Gets the system class path.\n *\n * @return The system class path\n */\n public String getSystemClassPath();\n // END PWC 1.2 6311155\n\n /**\n * Compiler to use.\n */\n public String getCompiler();\n\n /**\n * The compiler target VM, e.g. 1.1, 1.2, 1.3, 1.4, or 1.5.\n */\n public String getCompilerTargetVM();\n\n /**\n * Compiler source VM, e.g. 1.3, 1.4, or 1.5.\n */\n public String getCompilerSourceVM(); \n\n /**\n * The name of class that implements JavaCompiler, used for Java compilations.\n */\n public String getCompilerClassName();\n\n /**\n * The cache for the location of the TLD's\n * for the various tag libraries 'exposed'\n * by the web application.\n * A tag library is 'exposed' either explicitely in \n * web.xml or implicitely via the uri tag in the TLD \n * of a taglib deployed in a jar file (WEB-INF/lib).\n *\n * @return the instance of the TldScanner\n * for the web-application.\n */\n public TldScanner getTldScanner();\n\n /**\n * Java platform encoding to generate the JSP\n * page servlet.\n */\n public String getJavaEncoding();\n\n /**\n * boolean flag to tell Ant whether to fork JSP page compilations.\n */\n public boolean getFork();\n\n /**\n * Obtain JSP configuration informantion specified in web.xml. \n */\n public JspConfig getJspConfig();\n\n /**\n * Is generation of X-Powered-By response header enabled/disabled?\n */\n public boolean isXpoweredBy();\n\n /**\n * Obtain a Tag Plugin Manager\n */\n public TagPluginManager getTagPluginManager();\n\n /**\n * Are Text strings to be generated as char arrays?\n */\n public boolean genStringAsCharArray();\n\n /**\n * Are text strings to be generated as byte arrays, if the page is\n * unbuffered?\n */\n public boolean genStringAsByteArray();\n\n /**\n * If the buffer attribute for the page directive is not specified,\n * is the default \"none\"?\n */\n public boolean isDefaultBufferNone();\n\n /**\n * Modification test interval.\n */\n public int getModificationTestInterval();\n\n // BEGIN S1AS 6181923\n /**\n * Returns the value of the usePrecompiled (or use-precompiled) init\n * param.\n */\n public boolean getUsePrecompiled();\n // END S1AS 6181923\n\n // START SJSWS\n /**\n * Gets initial capacity of HashMap which maps JSPs to their corresponding\n * servlets.\n */\n public int getInitialCapacity();\n // END SJSWS \n\n // START SJSAS 6384538\n public boolean isValidationEnabled();\n // END SJSAS 6384538\n\n /**\n * If class files are generated as byte arrays, should they be saved to\n * disk at the end of compilations?\n */\n\n public boolean getSaveBytecode();\n\n}",
"@Override\n\tpublic void compile() {\n\t\t\n\t}",
"public void setCompiler(org.nhindirect.policy.Compiler compiler)\n\t{\n\t\tthis.compiler = compiler;\n\t}",
"public void compileScript( TemplateCompilerContext context )\r\n\t{\r\n\t\t// Compile to bytes\r\n\t\tCompilationUnit unit = new CompilationUnit();\r\n\t\tunit.addSource( context.getPath(), context.getScript().toString() );\r\n\t\tunit.compile( Phases.CLASS_GENERATION );\r\n\r\n\t\t// Results\r\n\t\t@SuppressWarnings( \"unchecked\" )\r\n\t\tList< GroovyClass > classes = unit.getClasses();\r\n\t\tAssert.isTrue( classes.size() > 0, \"Expecting 1 or more classes\" );\r\n\r\n\t\tClassLoader parent = Thread.currentThread().getContextClassLoader();\r\n\t\tif( parent == null )\r\n\t\t\tparent = GroovyTemplateCompiler.class.getClassLoader();\r\n\r\n\t\t// Define the class\r\n\t\t// TODO Configurable class loader\r\n\t\tDefiningClassLoader classLoader = new DefiningClassLoader( parent );\r\n\t\tClass< ? > first = null;\r\n\t\tfor( GroovyClass cls : classes )\r\n\t\t{\r\n\t\t\tClass< ? > clas = classLoader.defineClass( cls.getName(), cls.getBytes() );\r\n\t\t\tif( first == null )\r\n\t\t\t\tfirst = clas; // TODO Are we sure that the first one is always the right one?\r\n\t\t}\r\n\r\n\t\t// Instantiate the first\r\n\t\tGroovyObject object = (GroovyObject)Util.newInstance( first );\r\n\t\tClosure closure = (Closure)object.invokeMethod( \"getClosure\", null );\r\n\r\n\t\t// The old way:\r\n//\t\tClass< GroovyObject > groovyClass = new GroovyClassLoader().parseClass( new GroovyCodeSource( getSource(), getName(), \"x\" ) );\r\n\r\n\t\tcontext.setTemplate( new GroovyTemplate( closure ) );\r\n\t}",
"CompilationBuilder(CharSequence source, String name, CompilerConfiguration compilerConfiguration) {\n\t\tif(source==null) throw new IllegalArgumentException(\"The passed source text was null\");\n\t\tif(name==null) name = \"WatchTowerGroovy\" + syntheticNameSerial.incrementAndGet();\n\t\tthis.compilerConfiguration = compilerConfiguration!=null ? compilerConfiguration : new CompilerConfiguration(CompilerConfiguration.DEFAULT);\t\t\n\t\ttry {\n\t\t\tcodeSource = new GroovyCodeSource(source.toString(), name, \"watchtower\");\n\t\t} catch (Exception ex) {\n\t\t\tthrow new RuntimeException(\"Failed to create GroovyCodeSource from [\" + name + \"/\" + source + \"]\", ex);\n\t\t}\n\t}",
"public Compiler getCompiler() {\n\t\treturn this.compiler;\n\t}",
"@Bean\n public SpringTemplateEngine templateEngine() {\n SpringTemplateEngine templateEngine = new SpringTemplateEngine();\n templateEngine.setTemplateResolver(templateResolver());\n templateEngine.setEnableSpringELCompiler(true);\n return templateEngine;\n }",
"@Bean\n public SpringTemplateEngine templateEngine() {\n SpringTemplateEngine templateEngine = new SpringTemplateEngine();\n templateEngine.setTemplateResolver(templateResolver());\n templateEngine.setEnableSpringELCompiler(true);\n return templateEngine;\n }",
"public TemplateCodec() {\n this.documentCodec = new DocumentCodec();\n }",
"public void generateScript( TemplateCompilerContext context )\r\n\t{\r\n\t\t// TODO This may give conflicts when more than one TemplateLoader is used. This must be the complete path.\r\n\t\tMatcher matcher = PATH_PATTERN.matcher( context.getPath() );\r\n\t\tAssert.isTrue( matcher.matches() );\r\n\t\tString path = matcher.group( 1 );\r\n\t\tString name = matcher.group( 2 );\r\n\r\n\t\tString pkg = TEMPLATE_PKG;\r\n\t\tif( path != null )\r\n\t\t\tpkg += \".\" + path.replaceAll( \"/+\", \".\" );\r\n\r\n\t\tStringBuilder buffer = new StringBuilder( 1024 );\r\n\r\n\t\tbuffer.append( \"package \" ).append( pkg ).append( \";\" );\r\n\t\tif( context.getImports() != null )\r\n\t\t\tfor( String imprt : context.getImports() )\r\n\t\t\t\tbuffer.append( \"import \" ).append( imprt ).append( ';' );\r\n\t\tbuffer.append( \"class \" ).append( name.replaceAll( \"[\\\\.-]\", \"_\" ) );\r\n\t\tbuffer.append( \"{Closure getClosure(){return{out->\" );\r\n\r\n\t\tboolean text = false;\r\n\t\tfor( ParseEvent event : context.getEvents() )\r\n\t\t\tswitch( event.getEvent() )\r\n\t\t\t{\r\n\t\t\t\tcase TEXT:\r\n\t\t\t\tcase NEWLINE:\r\n\t\t\t\tcase WHITESPACE:\r\n\t\t\t\t\tif( !text )\r\n\t\t\t\t\t\tbuffer.append( \"out.write(\\\"\\\"\\\"\" );\r\n\t\t\t\t\ttext = true;\r\n\t\t\t\t\twriteGroovyString( buffer, event.getData() );\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase SCRIPT:\r\n\t\t\t\t\tif( text )\r\n\t\t\t\t\t\tbuffer.append( \"\\\"\\\"\\\");\" );\r\n\t\t\t\t\ttext = false;\r\n\t\t\t\t\tbuffer.append( event.getData() ).append( ';' );\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase EXPRESSION:\r\n\t\t\t\t\tif( text )\r\n\t\t\t\t\t\tbuffer.append( \"\\\"\\\"\\\");\" );\r\n\t\t\t\t\ttext = false;\r\n\t\t\t\t\tbuffer.append( \"out.write(\" ).append( event.getData() ).append( \");\" );\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase EXPRESSION2:\r\n\t\t\t\t\tif( !text )\r\n\t\t\t\t\t\tbuffer.append( \"out.write(\\\"\\\"\\\"\" );\r\n\t\t\t\t\ttext = true;\r\n\t\t\t\t\tbuffer.append( \"${\" ).append( event.getData() ).append( '}' ); // FIXME Need to escape \"\"\"\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase DIRECTIVE:\r\n\t\t\t\tcase COMMENT:\r\n\t\t\t\t\tif( event.getData().length() == 0 )\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tif( text )\r\n\t\t\t\t\t\tbuffer.append( \"\\\"\\\"\\\");\" );\r\n\t\t\t\t\ttext = false;\r\n\t\t\t\t\tbuffer.append( event.getData() );\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase EOF:\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tAssert.fail( \"Unexpected event \" + event.getEvent() );\r\n\t\t\t}\r\n\r\n\t\tif( text )\r\n\t\t\tbuffer.append( \"\\\"\\\"\\\");\" );\r\n\t\tbuffer.append( \"}}}\" );\r\n\r\n\t\tcontext.setScript( buffer );\r\n\t}",
"public interface ViewCompiler {\n\n /**\n * Compiles source code into a MapDelegate.\n *\n * @param source The source code to compile into a Mapper.\n * @param language The language of the source.\n * @return A compiled Mapper.\n */\n @InterfaceAudience.Public\n Mapper compileMap(String source, String language);\n\n /**\n * Compiles source code into a ReduceDelegate.\n *\n * @param source The source code to compile into a Reducer.\n * @param language The language of the source.\n * @return A compiled Reducer\n */\n @InterfaceAudience.Public\n Reducer compileReduce(String source, String language);\n\n}",
"public CompilerEditorPanel(Preferences preferences)\n {\n super(new BorderLayout());\n\n if(preferences == null)\n {\n preferences = new Preferences(UtilIO.obtainExternalFile(\"JHelp/compilerASM/compilerPreference.pref\"));\n }\n\n this.preferences = preferences;\n this.compilationListeners = new ArrayList<CompilationListener>();\n this.compiling = new AtomicBoolean(false);\n this.actionNew = new ActionNew();\n this.actionOpen = new ActionOpen();\n this.actionSave = new ActionSave(false);\n this.actionSaveAs = new ActionSave(true);\n this.actionImport = new ActionImport();\n this.actionExport = new ActionExport();\n this.actionCompile = new ActionCompile();\n this.eventManager = new EventManager();\n this.classManager = new ClassManager();\n\n // Short cuts\n final ActionMap actionMap = this.getActionMap();\n final InputMap inputMap = this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);\n\n actionMap.put(this.actionNew.getName(), this.actionNew);\n inputMap.put(this.actionNew.getShortcut(), this.actionNew.getName());\n\n actionMap.put(this.actionOpen.getName(), this.actionOpen);\n inputMap.put(this.actionOpen.getShortcut(), this.actionOpen.getName());\n\n actionMap.put(this.actionSave.getName(), this.actionSave);\n inputMap.put(this.actionSave.getShortcut(), this.actionSave.getName());\n\n actionMap.put(this.actionSaveAs.getName(), this.actionSaveAs);\n inputMap.put(this.actionSaveAs.getShortcut(), this.actionSaveAs.getName());\n\n actionMap.put(this.actionImport.getName(), this.actionImport);\n inputMap.put(this.actionImport.getShortcut(), this.actionImport.getName());\n\n actionMap.put(this.actionExport.getName(), this.actionExport);\n inputMap.put(this.actionExport.getShortcut(), this.actionExport.getName());\n\n actionMap.put(this.actionCompile.getName(), this.actionCompile);\n inputMap.put(this.actionCompile.getShortcut(), this.actionCompile.getName());\n //\n\n this.fileChooser = new FileChooser();\n this.fileFilterASM = new FileFilter();\n this.fileFilterASM.addExtension(\"asm\");\n this.fileFilterClass = new FileFilter();\n this.fileFilterClass.addExtension(\"class\");\n this.fileChooser.setFileFilter(this.fileFilterASM);\n\n final File directory = this.preferences.getFileValue(CompilerEditorPanel.PREFERENCE_LAST_DIRECTORY);\n\n if(directory != null)\n {\n this.fileChooser.setStartDirectory(directory);\n }\n\n this.componentEditor = new ComponentEditor();\n\n this.panelActions = new JPanel(new FlowLayout(FlowLayout.LEFT));\n this.title = new JLabel(\"--Untitled--\");\n this.panelActions.add(this.title);\n this.panelActions.add(new JHelpSeparator(false));\n this.panelActions.add(new JButton(this.actionNew));\n this.panelActions.add(new JButton(this.actionOpen));\n this.panelActions.add(new JButton(this.actionSave));\n this.panelActions.add(new JButton(this.actionSaveAs));\n this.panelActions.add(new JHelpSeparator(false));\n this.panelActions.add(new JButton(this.actionImport));\n this.panelActions.add(new JButton(this.actionExport));\n this.panelActions.add(new JHelpSeparator(false));\n this.panelActions.add(new JButton(this.actionCompile));\n\n this.informationMessage = new JTextArea(\"\", 500, 16);\n this.informationMessage.setEditable(false);\n this.informationMessage.setFont(JHelpConstantsSmooth.FONT_BODY_1.getFont());\n this.informationMessage.setLineWrap(true);\n\n this.panelInformationMessage = new JHelpFoldablePanel(\"Message\",\n new JHelpLimitSizePanel(new JScrollPane(this.informationMessage), 256, Integer.MAX_VALUE), FoldLocation.LEFT);\n this.panelInformationMessage.fold();\n\n this.add(this.panelActions, BorderLayout.NORTH);\n this.add(new JScrollPane(this.componentEditor), BorderLayout.CENTER);\n this.add(this.panelInformationMessage, BorderLayout.EAST);\n\n this.currentFile = this.preferences.getFileValue(CompilerEditorPanel.PREFERENCE_LAST_FILE);\n\n if(this.currentFile != null)\n {\n this.openFile(this.currentFile);\n }\n\n this.initializeConsole();\n }",
"CompilationBuilder(Reader source, String name, CompilerConfiguration compilerConfiguration) {\n\t\tif(source==null) throw new IllegalArgumentException(\"The passed source text was null\");\n\t\tif(name==null) name = \"WatchTowerGroovy\" + syntheticNameSerial.incrementAndGet();\n\t\tthis.compilerConfiguration = compilerConfiguration!=null ? compilerConfiguration : new CompilerConfiguration(CompilerConfiguration.DEFAULT);\n\t\ttry {\n\t\t\tcodeSource = new GroovyCodeSource(source.toString(), name, \"watchtower\");\n\t\t} catch (Exception ex) {\n\t\t\tthrow new RuntimeException(\"Failed to create GroovyCodeSource from [\" + name + \"/\" + source + \"]\", ex);\n\t\t}\n\t}",
"public PyCode compile(String script) {\n return null;\n }",
"private FilterByAllCompiler() {\n }",
"public abstract void compile();",
"public static Compile create(String html, String code) throws IOException {\n return create(html, code, \"1.7\");\n }",
"ICompilerWorkflow getRobotCompilerWorkflow();",
"public interface MarkupLanguage extends Component {\n\n String ROLE = \"org.apache.cocoon.components.language.markup.MarkupLanguage\";\n /**\n * Return the input document's encoding or <code>null</code> if it is the\n * platform's default encoding.\n * This method should be called after <code>generateCode<code> method.\n *\n * @return The input document's encoding\n */\n String getEncoding();\n\n /**\n * Generate source code from the input source for the target\n * <code>ProgrammingLanguage</code>.\n *\n * @param input The input source document\n * @param filename The input document's original filename\n * @param programmingLanguage The target programming language\n * @return The generated source code\n * @exception Exception If an error occurs during code generation\n */\n String generateCode(\n InputSource input, String filename,\n ProgrammingLanguage programmingLanguage,\n SourceResolver resolver\n ) throws Exception;\n}",
"public void setCompilationCustomizers(CompilationCustomizer... compilationCustomizers) {\n\t\tthis.compilerConfiguration.addCompilationCustomizers(compilationCustomizers);\n\t}",
"@Bean\n @Description(\"Thymeleaf template resolver serving HTML 5\")\n public ClassLoaderTemplateResolver templateResolver() {\n\n var templateResolver = new ClassLoaderTemplateResolver();\n templateResolver.setPrefix(\"/templates/\");\n templateResolver.setSuffix(\".html\");\n templateResolver.setTemplateMode(\"HTML5\");\n templateResolver.setCharacterEncoding(\"UTF-8\");\n return templateResolver;\n }",
"public String getCompilerSourceVM();",
"public boolean getUsePrecompiled();",
"public void compile(Template t, TemplateModel model, XmlResult out) throws TemplateCompileException;",
"public native Template set(String html, boolean compile) /*-{\r\n\t\tvar template = [email protected]::getJsObj()();\r\n\t\ttemplate.set(html, compile);\r\n\t\treturn this;\r\n\t}-*/;",
"public void setCompilerConfiguration(@Nullable CompilerConfiguration compilerConfiguration) {\n\t\tthis.compilerConfiguration =\n\t\t\t\t(compilerConfiguration != null ? compilerConfiguration : new CompilerConfiguration());\n\t}",
"public boolean mustCompile() {\n return true;\n }",
"ICompilerWorkflow getSimCompilerWorkflow();",
"public ProfilingCompiler(Map<QNm, Str> options) {\n super(options);\n }",
"protected Compiler() {\r\n\t\ttempTable = new TempTable();\r\n\t\toriginalTextLength = 0;\r\n\t\tthis.cpt = null;\r\n\t}",
"private void compileResource(IResource resource, IProgressMonitor monitor) {\n\t\tif (resource instanceof IFile) {\n\n\t\t\tmonitor.subTask(Messages.AssemblyBuilder_Compiling + resource.getName());\n\n\t\t\tICompiler compiler = null;\n\t\t\tdeleteMarkers((IFile) resource);\n\n\t\t\tIPreferenceStore store = new PropertyStore(resource, AssemblyEditorPlugin.getDefault().getPreferenceStore(),\n\t\t\t\t\tAssemblyEditorPlugin.PLUGIN_ID);\n\n\t\t\tString ext = resource.getFileExtension();\n\t\t\tString[] customSettings = getCustomCompileOptions(resource);\n\t\t\tif (EXT_ASM.equalsIgnoreCase(ext) || EXT_INC.equalsIgnoreCase(ext)) {\n\t\t\t\tString compilername = customSettings[0] != null ? customSettings[0]\n\t\t\t\t\t\t: store.getString(PreferenceConstants.P_COMPILER);\n\n\t\t\t\tif (compilername.equalsIgnoreCase(PreferenceConstants.P_COMPILER_64TASS)) {\n\t\t\t\t\tcompiler = new TAssCompiler();\n\t\t\t\t} else if (compilername.equalsIgnoreCase(PreferenceConstants.P_COMPILER_AS65)) {\n\t\t\t\t\tcompiler = new As65Compiler();\n\t\t\t\t} else if (compilername.equalsIgnoreCase(PreferenceConstants.P_COMPILER_CA65)) {\n\t\t\t\t\tcompiler = new CA65Compiler();\n\t\t\t\t} else if (compilername.equalsIgnoreCase(PreferenceConstants.P_COMPILER_DASM)) {\n\t\t\t\t\tcompiler = new DAsmCompiler();\n\t\t\t\t} else if (compilername.equalsIgnoreCase(PreferenceConstants.P_COMPILER_SNAsm)) {\n\t\t\t\t\tcompiler = new SNAsmCompiler();\n\t\t\t\t} else if (compilername.equalsIgnoreCase(PreferenceConstants.P_COMPILER_TMPX)) {\n\t\t\t\t\tcompiler = new TMPxCompiler();\n\t\t\t\t} else if (compilername.equalsIgnoreCase(PreferenceConstants.P_COMPILER_XA)) {\n\t\t\t\t\tcompiler = new XACompiler();\n\t\t\t\t}\n\t\t\t} else if (EXT_MDC.equalsIgnoreCase(ext)) {\n\t\t\t\tcompiler = new MakeDiskCompiler();\n\t\t\t} else if (EXT_DIS.equalsIgnoreCase(ext)) {\n\t\t\t\tcompiler = new DiskImageBuilder();\n\t\t\t}\n\n\t\t\tif (compiler != null) {\n\t\t\t\tif (!EXT_INC.equalsIgnoreCase(ext)) {\n\t\t\t\t\tcompiler.compile(resource, new AssemblyErrorHandler(), monitor, store, null, customSettings[1]);\n\t\t\t\t\tString postProcessor = customSettings[2] != null ? customSettings[2]\n\t\t\t\t\t\t\t: store.getString(PreferenceConstants.P_POSTPROCESSORPATH);\n\t\t\t\t\tif (postProcessor != null && postProcessor.length() != 0) {\n\t\t\t\t\t\tIResource prg = resource.getParent().findMember(\n\t\t\t\t\t\t\t\tresource.getFullPath().removeFileExtension().addFileExtension(\"prg\").lastSegment());\n\t\t\t\t\t\tif (prg != null) {\n\t\t\t\t\t\t\tnew PostProcessorCompiler().compile(prg, new AssemblyErrorHandler(), monitor, store,\n\t\t\t\t\t\t\t\t\tcustomSettings[2], customSettings[3]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\taddDependencies(resource, compiler, monitor);\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Compile dependent resources\n\t\t\t */\n\t\t\tSet<String> dependencies = ResourceDependencies.getInstance().get(resource);\n\t\t\tif (dependencies != null) {\n\t\t\t\tfor (String dependent : dependencies) {\n\t\t\t\t\tIResource res = resource.getWorkspace().getRoot().findMember(dependent);\n\t\t\t\t\tif (res != null) {\n\t\t\t\t\t\t// System.out.println(\"Compiling dependent resource \"\n\t\t\t\t\t\t// + res.getName());\n\t\t\t\t\t\tthis.compileResource(res, monitor);\n\t\t\t\t\t}\n\t\t\t\t\tif (monitor.isCanceled()) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void compile(Template t, TemplateModel model, Writer out) throws TemplateCompileException;",
"public CompilerView(String sdkPath, String compilationParameters) {\n try {\n initComponents();\n spawnFCSHProcess(sdkPath, compilationParameters);\n } catch (IOException ex) {\n Logger.getLogger(CompilerView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"Expression compileTemplate(Expression exp){\r\n\t\tif (exp.isVariable()){\r\n\t\t\texp = compile(exp.getVariable());\r\n\t\t}\r\n\t\telse if (isMeta(exp)){\r\n\t\t\t// variables of meta functions are compiled as kg:pprint()\r\n\t\t\t// variable of xsd:string() is not\r\n\t\t\texp = compileTemplateMeta((Term) exp);\r\n\t\t}\r\n\t\treturn exp;\r\n\t}",
"protected static ICompilerRequestor getRequestor() {\n return new ICompilerRequestor() {\n\n public void acceptResult(CompilationResult compilationResult) {\n // do nothing\n }\n };\n }",
"public void registerCompiler(String compilerName, String compilerProgramFile) {\n programName = compilerName;\n ClassLoader classLoader = getClass().getClassLoader();\n program = classLoader.getResourceAsStream(compilerProgramFile);\n }",
"public void run() throws Exception {\n\t\tJavaCompiler compiler = ToolProvider.getSystemJavaCompiler();\n\t\tStandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null);\n\t\tPath tempFolder = Files.createTempDirectory(\"gwt-jackson-apt-tmp\", new FileAttribute[0]);\n\t\tfileManager.setLocation(StandardLocation.CLASS_OUTPUT, Arrays.asList(tempFolder.toFile()));\n\t\tfileManager.setLocation(StandardLocation.SOURCE_OUTPUT, Arrays.asList(tempFolder.toFile()));\n\t\tCompilationTask task = compiler.getTask(\n\t\t\t\tnew PrintWriter(System.out), \n\t\t\t\tfileManager, \n\t\t\t\tnull, \n\t\t\t\tnull, \n\t\t\t\tnull, \n\t\t\t\tfileManager.getJavaFileObjects(\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicTest.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicBaseInterface.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicBaseClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicChildClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicChildClass2.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/SecondPolymorphicBaseClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/SecondPolymorphicChildClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/SimpleGenericBeanObject.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicGenericClass.java\")));\n\n\n\t\ttask.setProcessors(Arrays.asList(new ObjectMapperProcessor()));\n\t\ttask.call();\n\t}",
"private static org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor createHtmlBrowserFactoryEditor() {\n return new org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor(){\n public void setValue(Object value) {\n setWWWBrowser((HtmlBrowser.Factory)value);\n }\n\n public Object getValue() {\n return getWWWBrowser();\n }\n };\n }",
"CodegenFactory getCodegenFactory();",
"public interface CompileContext extends UserDataHolder {\n /**\n * Allows to add a message to be shown in Compiler message view.\n * If correct url, line and column numbers are supplied, the navigation to the specified file is available from the view.\n *\n * @param category the category of a message (information, error, warning).\n * @param message the text of the message.\n * @param url a url to the file to which the message applies, null if not available.\n * @param lineNum a line number, -1 if not available.\n * @param columnNum a column number, -1 if not available.\n */\n default void addMessage(@NotNull CompilerMessageCategory category, @Nls(capitalization = Nls.Capitalization.Sentence) String message, @Nullable String url, int lineNum, int columnNum) {\n addMessage(category, message, url, lineNum, columnNum, null);\n }\n\n /**\n * Allows to add a message to be shown in Compiler message view, with a specified Navigatable\n * that is used to navigate to the error location.\n *\n * @param category the category of a message (information, error, warning).\n * @param message the text of the message.\n * @param url a url to the file to which the message applies, null if not available.\n * @param lineNum a line number, -1 if not available.\n * @param columnNum a column number, -1 if not available.\n * @param navigatable the navigatable pointing to the error location.\n */\n default void addMessage(@NotNull CompilerMessageCategory category,\n @Nls(capitalization = Nls.Capitalization.Sentence) String message,\n @Nullable String url, int lineNum, int columnNum, @Nullable Navigatable navigatable) {\n addMessage(category, message, url, lineNum, columnNum, navigatable, Collections.emptyList());\n }\n\n /**\n * Allows to add a message to be shown in Compiler message view, with a specified Navigatable\n * that is used to navigate to the error location.\n * @param category the category of a message (information, error, warning).\n * @param message the text of the message.\n * @param url a url to the file to which the message applies, null if not available.\n * @param lineNum a line number, -1 if not available.\n * @param columnNum a column number, -1 if not available.\n * @param navigatable optional the navigatable pointing to the error location or null. If not specified, navigation will attempt to set cursor (line:column) position, if available.\n * @param moduleNames module name describing the context for the message (e.g. the module where the error occurred).\n * If a module cycle is compiled, the argument will contain names of modules that form the dependency cycle.\n */\n void addMessage(@NotNull CompilerMessageCategory category,\n @Nls(capitalization = Nls.Capitalization.Sentence) String message,\n @Nullable String url, int lineNum, int columnNum, @Nullable Navigatable navigatable, Collection<String> moduleNames);\n\n /**\n * Returns all messages of the specified category added during the current compile session.\n *\n * @param category the category for which messages are requested.\n * @return all compiler messages of the specified category\n */\n CompilerMessage @NotNull [] getMessages(@NotNull CompilerMessageCategory category);\n\n /**\n * Returns the count of messages of the specified category added during the current compile session.\n *\n * @param category the category for which messages are requested.\n * @return the number of messages of the specified category\n */\n int getMessageCount(@Nullable CompilerMessageCategory category);\n\n /**\n * Returns the progress indicator of the compilation process.\n *\n * @return the progress indicator instance.\n */\n @NotNull\n ProgressIndicator getProgressIndicator();\n\n /**\n * Returns the current compile scope.\n *\n * @return current compile scope\n */\n CompileScope getCompileScope();\n\n /**\n * Returns the compile scope which would be used if the entire project was rebuilt.\n * {@link #getCompileScope()} may return the scope, that is more narrow than ProjectCompileScope.\n *\n * @return project-wide compile scope.\n */\n CompileScope getProjectCompileScope();\n\n /**\n * A compiler may call this method in order to request complete project rebuild.\n * This may be necessary, for example, when compiler caches are corrupted.\n */\n void requestRebuildNextTime(String message);\n\n boolean isRebuildRequested();\n\n @Nullable\n String getRebuildReason();\n\n /**\n * Returns the module to which the specified file belongs. This method is aware of the file->module mapping\n * for generated files.\n *\n * @param file the file to check.\n * @return the module to which the file belongs\n */\n Module getModuleByFile(@NotNull VirtualFile file);\n\n /**\n * Returns the output directory for the specified module.\n *\n * @param module the module to check.\n * @return the output directory for the module specified, null if corresponding VirtualFile is not valid or directory not specified\n */\n @Nullable\n VirtualFile getModuleOutputDirectory(@NotNull Module module);\n\n /**\n * Returns the test output directory for the specified module.\n *\n * @param module the module to check.\n * @return the tests output directory the module specified, null if corresponding VirtualFile is not valid. If in Paths settings\n * output directory for tests is not configured explicitly, but the output path is present, the output path will be returned.\n */\n @Nullable\n VirtualFile getModuleOutputDirectoryForTests(Module module);\n\n /**\n * Checks if the compilation is incremental, i.e. triggered by one of \"Make\" actions.\n *\n * @return true if compilation is incremental. \n */\n boolean isMake();\n\n boolean isAutomake();\n\n boolean isRebuild();\n\n @NotNull\n Project getProject();\n\n boolean isAnnotationProcessorsEnabled();\n}",
"protected void onCompileInternal() {\r\n\t}",
"@Override\n\tpublic SimpleBeanEditorDriver<Product, ?> createEditorDriver() {\n\t\tDriver driver = GWT.create(Driver.class);\n\t\tdriver.initialize(this);\n\n\t\treturn driver;\n\t}",
"public compilationEngine(jackTokenizer tokenizer, File out) throws FileNotFoundException {\n\t\tjTokenizer = tokenizer;\n\t\twriter = new vmWriter(out);\n\t\tsymTable = new symbolTable();\n\t}",
"CompilationBuilder(URI source, CompilerConfiguration compilerConfiguration) {\n\t\tif(source==null) throw new IllegalArgumentException(\"The passed URI was null\");\n\t\tthis.compilerConfiguration = compilerConfiguration!=null ? compilerConfiguration : new CompilerConfiguration(CompilerConfiguration.DEFAULT);\n\t\ttry {\n\t\t\tcodeSource = new GroovyCodeSource(source);\n\t\t} catch (Exception ex) {\n\t\t\tthrow new RuntimeException(\"Failed to create GroovyCodeSource from [\" + source + \"]\", ex);\n\t\t}\n\t}",
"CompilationBuilder(URL source, CompilerConfiguration compilerConfiguration) {\n\t\tif(source==null) throw new IllegalArgumentException(\"The passed URL was null\");\n\t\tthis.compilerConfiguration = compilerConfiguration!=null ? compilerConfiguration : new CompilerConfiguration(CompilerConfiguration.DEFAULT);\n\t\ttry {\n\t\t\tcodeSource = new GroovyCodeSource(source);\n\t\t} catch (Exception ex) {\n\t\t\tthrow new RuntimeException(\"Failed to create GroovyCodeSource from [\" + source + \"]\", ex);\n\t\t}\n\t}",
"public CompilationBuilder addCompilationCustomizers(CompilationCustomizer... customizers) {\n\t\tif(customizers!=null && customizers.length>0) {\n\t\t\tcompilerConfiguration.addCompilationCustomizers(customizers);\n\t\t}\n\t\treturn this;\n\t}",
"public String compile () throws IOException, RhinoEvaluatorException {\n return compile(1, null);\n }",
"@Override\n protected void generateCommonConstants(StringBuilder outputCode) {\n outputCode\n .append('\\n')\n .append(\"/**\\n\")\n .append(\" * Matches all tags, HTML comments, and DOCTYPEs in tag soup HTML.\\n\")\n .append(\" * By removing these, and replacing any '<' or '>' characters with\\n\")\n .append(\" * entities we guarantee that the result can be embedded into a\\n\")\n .append(\" * an attribute without introducing a tag boundary.\\n\")\n .append(\" *\\n\")\n .append(\" * @type {!RegExp}\\n\")\n .append(\" */\\n\")\n .append(\"const $$HTML_TAG_REGEX_ = \")\n .append(convertFromJavaRegex(EscapingConventions.HTML_TAG_CONTENT))\n .append(\"g;\\n\");\n\n outputCode\n .append(\"\\n\")\n .append(\"/**\\n\")\n .append(\" * Matches all occurrences of '<'.\\n\")\n .append(\" *\\n\")\n .append(\" * @type {!RegExp}\\n\")\n .append(\" */\\n\")\n .append(\"const $$LT_REGEX_ = /</g;\\n\");\n\n outputCode\n .append('\\n')\n .append(\"/**\\n\")\n .append(\" * Maps lower-case names of innocuous tags to true.\\n\")\n .append(\" *\\n\")\n .append(\" * @type {!Object<string, boolean>}\\n\")\n .append(\" */\\n\")\n .append(\"const $$SAFE_TAG_WHITELIST_ = \")\n .append(toJsStringSet(TagWhitelist.FORMATTING.asSet()))\n .append(\";\\n\");\n\n outputCode\n .append('\\n')\n .append(\"/**\\n\")\n .append(\" * Pattern for matching attribute name and value, where value is single-quoted\\n\")\n .append(\" * or double-quoted.\\n\")\n .append(\" * See http://www.w3.org/TR/2011/WD-html5-20110525/syntax.html#attributes-0\\n\")\n .append(\" *\\n\")\n .append(\" * @type {!RegExp}\\n\")\n .append(\" */\\n\")\n .append(\"const $$HTML_ATTRIBUTE_REGEX_ = \")\n .append(convertFromJavaRegex(Sanitizers.HTML_ATTRIBUTE_PATTERN))\n .append(\"g;\\n\");\n }",
"public void testDisableJavaCompilingForTesting() {\n\t\tOfficeFloorJavaCompiler.runWithoutCompiler(() -> {\n\n\t\t\t// Ensure no Java compiler\n\t\t\tassertNull(\"Ensure no compiling\", OfficeFloorJavaCompiler.newInstance(getSourceContext()));\n\t\t});\n\t}",
"public interface CodeFormatter\n{\n}",
"public void init(){\n\t\tcfg = new Configuration();\r\n\t\tcfg.setServletContextForTemplateLoading(getServletContext(), \"WEB-INF/templates\");\r\n }",
"@Override\n public CompilationSource createCompilationSource(String name) {\n File sourceFile = getSourceFile(name);\n if (sourceFile == null || !sourceFile.exists()) {\n return null;\n }\n\n return new FileSource(name, sourceFile);\n }",
"private UsingSwig() {\n\t}",
"@VisibleForTesting\n public List<String> getCompilerOptions() throws CommandLineExpansionException {\n return compileCommandLine.getCompilerOptions(/*overwrittenVariables=*/ null);\n }",
"public void compileStarted() { }",
"public void compileStarted() { }",
"public static void main(String[] args) {\n File file = new File(\"./src/testcode.c\");\n \n Compiler compiler = new Compiler(file);\n compiler.compile();\n }",
"public void compile(Template t, TemplateModel model, OutputStream out) throws TemplateCompileException;",
"public interface ICompilerWorker extends IWorker {\n}",
"public void testDisableAsNoJavaCompiler() throws Exception {\n\n\t\t// Ensure compiler available for test\n\t\tClass<?> javacProcessingEnvironmentClass = Class\n\t\t\t\t.forName(\"com.sun.tools.javac.processing.JavacProcessingEnvironment\");\n\t\tassertNotNull(\"Invalid test: should have javac processing environment\", javacProcessingEnvironmentClass);\n\t\tassertTrue(\"Should be processing environment\",\n\t\t\t\tProcessingEnvironment.class.isAssignableFrom(javacProcessingEnvironmentClass));\n\n\t\t// Ensure correct java compiler class to check\n\t\tassertEquals(\"Incorrect check class\", javacProcessingEnvironmentClass.getName(),\n\t\t\t\tOfficeFloorJavaCompilerImpl.JAVAC_PROCESSING_ENVIRONMENT_CLASS_NAME);\n\n\t\t// Create class loader without compiler\n\t\tSourceContext sourceContext = getSourceContext(new ClassLoader() {\n\t\t\t@Override\n\t\t\tpublic Class<?> loadClass(String name) throws ClassNotFoundException {\n\t\t\t\tif (name.equals(javacProcessingEnvironmentClass.getName())) {\n\t\t\t\t\tthrow new ClassNotFoundException(name);\n\t\t\t\t}\n\t\t\t\treturn super.loadClass(name);\n\t\t\t}\n\t\t});\n\t\tassertNull(\"No Java compiler, so no compiling\", OfficeFloorJavaCompiler.newInstance(sourceContext));\n\t}",
"public Engine build() {\n this.extensions.add(new CoreExtension());\n \n // load extensions\n this.extensions.forEach(extension -> {\n this.renderers.putAll(extension.getRenderers());\n this.directives.putAll(extension.getDirectives());\n this.nodeParsers.putAll(extension.getNodeParsers());\n this.filters.putAll(extension.getFilters());\n this.tests.putAll(extension.getTests());\n this.unaryOperators.putAll(extension.getUnaryOperators());\n this.binaryOperators.putAll(extension.getBinaryOperators());\n this.factories.addAll(extension.getNodeVisitorFactories());\n this.safeNodes.addAll(extension.getSafeNodes());\n });\n \n // create an operator token parser\n TokenParser unaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.unaryOperators.keySet().toArray(new String[]{}));\n TokenParser binaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.binaryOperators.keySet().toArray(new String[]{}));\n TokenParser operatorParser = unaryOperatorParser.or(binaryOperatorParser);\n \n // create a execute token parser\n TokenParser executeOpenParser = TokenParser.from(TokenType.EXECUTE_OPEN, compile(quote(this.executeOpen)), false);\n TokenParser executeCloseParser = TokenParser.from(TokenType.EXECUTE_CLOSE, compile(quote(this.executeClose)), false);\n TokenParser executeParser = executeOpenParser.then(NAME).then(operatorParser.or(EXPRESSION).until(executeCloseParser));\n this.starts.add(this.executeOpen);\n \n // create a print token parser\n TokenParser printOpenParser = TokenParser.from(TokenType.PRINT_OPEN, compile(quote(this.printOpen)), false);\n TokenParser printCloseParser = TokenParser.from(TokenType.PRINT_CLOSE, compile(quote(this.printClose)), false);\n TokenParser printParser = printOpenParser.then(operatorParser.or(EXPRESSION).until(printCloseParser));\n this.starts.add(this.printOpen);\n \n // create a comment token parser\n TokenParser commentOpenParser = TokenParser.from(TokenType.COMMENT_OPEN, compile(quote(this.commentOpen)), false);\n TokenParser commentCloseParser = TokenParser.from(TokenType.COMMENT_CLOSE, compile(quote(this.commentClose)), false);\n TokenParser commentInner = TokenParser.until(TokenType.TEXT, this.commentClose);\n TokenParser commentParser = commentOpenParser.then(commentInner.optional()).then(commentCloseParser);\n this.starts.add(this.commentOpen);\n \n // create a text token parser\n TokenParser leadingText = TokenParser.until(TokenType.TEXT, this.starts);\n TokenParser text = TokenParser.from(TokenType.TEXT, Pattern.compile(\"^.*\", Pattern.DOTALL | Pattern.MULTILINE), false);\n \n TokenParser principal = commentParser.or(executeParser).or(printParser).or(leadingText).zeroOrMore().then(text.optional()).then(EOF);\n this.tokenizerBuilder.parser(principal);\n Tokenizer tokenizer = this.tokenizerBuilder.build();\n \n ExpressionParser expressionParser = new ExpressionParser(this.unaryOperators, this.binaryOperators);\n \n Engine engine = new Engine(this.environment, expressionParser,\n renderers, directives, nodeParsers, \n filters, tests, factories, safeNodes,\n tokenizer);\n return engine;\n }",
"@Bean\n\tpublic SpringResourceTemplateResolver templateResolver() {\n\n\t\tSystem.out.println(\"execution is reaching templateResolver()\");\n\t\tSpringResourceTemplateResolver resolver = new SpringResourceTemplateResolver();\n\t\tresolver.setApplicationContext(applicationContext);\n\t\tresolver.setPrefix(\"/WEB-INF/views/templetes/\");\n\t\tresolver.setSuffix(\".html\");\n\t\tresolver.setTemplateMode(TemplateMode.HTML);\n\t\tresolver.setCacheable(false);\n\t\treturn resolver;\n\t}",
"public TestGenericWebXmlContextLoader() {\r\n\t\tsuper(\"/src/main/wepapp\", false);\r\n\t}",
"static void init() {\n ReplaceRule.define(\"endcomment\",\r\n new Regex(\"\\\\*/\",\"*/${POP}</font>\"));\r\n Comment3 = (new Regex(\"/\\\\*\",\"<font color=\"+\r\n CommentColor+\">/*${+endcomment}\"));\r\n\r\n // Jasmine stuff\r\n Regex.define(\"JasmineEnabled\",\"\",new Validator() {\r\n public int validate(String src,int begin,int end) {\r\n return jasmine_enabled ? end : -1;\r\n }\r\n });\r\n colorize.add(\r\n \"s{(??JasmineEnabled)^\\\\s*;\\\\s*>>.*}\"+\r\n \"{<HR><H3>$&</H3>}\");\r\n colorize.add(\r\n \"s{(??JasmineEnabled)(?:^|\\\\s)\\\\s*;.*}\"+\r\n \"{<font color=\"+CommentColor+\">$&</font>}\");\r\n colorize.add(\r\n \"s{(??JasmineEnabled)\\\\b(?:catch|class|end|field|\"+\r\n \"implements|interface|limit|line|method|source|super|\"+\r\n \"throws|var|stack|locals)\\\\b}{<font color=\"+\r\n DirectiveColor+\"><b>$&</b></font>}\");\r\n colorize.add(\r\n \"s{(??JasmineEnabled)^\\\\w+:}{<font color=\"+\r\n LabelColor+\"><b>$&</b></font>}\");\r\n\r\n // stick all replacement rules into the Transformer\r\n colorize.add(DQuotes);\r\n colorize.add(SQuotes);\r\n colorize.add(Comment1);\r\n colorize.add(Comment2);\r\n colorize.add(Comment3);\r\n colorize.add(PrimitiveTypes);\r\n colorize.add(Keywords);\r\n colorize.add(java_lang);\r\n colorize.add(oper);\r\n colorize.add(Regex.perlCode(\r\n \"s'\\\\w*(Error|Exception|Throwable)\\\\b'<font color=red>$&</font>'\"));\r\n\r\n ReplaceRule.define(\"colorize\",colorize);\r\n\r\n ReplaceRule.define(\"jascode\",new ReplaceRule() {\r\n public void apply(StringBufferLike sb,RegRes rr) {\r\n String s1 = rr.stringMatched(1);\r\n if(s1 != null && s1.equals(\"jas\"))\r\n jasmine_enabled = true;\r\n }\r\n });\r\n\r\n Regex r = new Regex(\"(?i)<(java|jas)code([^>]*?)>\\\\s*\",\r\n \"<!-- made by java2html, \"+\r\n \"see http://javaregex.com -->\"+\r\n \"<table $2 ><tr><td bgcolor=\"+\r\n DocumentBackgroundColor+\r\n \"><pre>${jascode}${+colorize}\");\r\n r.optimize();\r\n\r\n colorize.add(new Regex(\"(?i)\\\\s*</(?:java|jas)code>\",\r\n \"</pre></td></tr></table>${POP}\"));\r\n\r\n html_replacer = r.getReplacer();\r\n\r\n Transformer DoPre = new Transformer(true);\r\n DoPre.add(\"s'(?i)\\\\s*</(?:jav|jas)acode>'$&$POP'\");\r\n DoPre.add(\"s'<'<'\");\r\n DoPre.add(\"s'>'>'\");\r\n DoPre.add(\"s'&'&'\");\r\n ReplaceRule.define(\"DOPRE\",DoPre);\r\n pretran_html = new Regex(\"(?i)<javacode[^>]*>\",\"$&${+DOPRE}\").getReplacer();\r\n pretran_java = DoPre.getReplacer();\r\n }",
"public boolean compile(String name, String source) {\n\t return compile(source);\n\t}",
"public L1Compiler(L1Machine machine)\n {\n // Keep the machine to compile into.\n this.machine = machine;\n }",
"void render(JspWriter writer, PluginConfig pluginConfig, String value) throws IOException;",
"protected Object compileAndLoad() throws IOException {\n String generatedSource = printJCodeModel();\n return compileAndLoadSource(generatedSource, TEST_CLASS_NAME);\n }",
"default void refactoring() {\n templateBuilder.set(new StringBuilder());\n }",
"void compileToJava();",
"public CompilationEngine(File input, File output) throws IOException {\n writer = new PrintWriter(Files.newBufferedWriter(Paths.get(output.getPath().replace(INPUT_FILE_SUFFIX, OUTPUT_FILE_SUFFIX))));\n jackTokenizer = new JackTokenizer(input);\n }",
"boolean generateEmbeddableWebComponents();",
"public String getCompilerTargetVM();",
"public LagartoDOMBuilder enableHtmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = false; // collect all whitespaces\n\t\tconfig.parserConfig.setCaseSensitive(false); // HTML is case insensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(true); // script and style tags are parsed as CDATA\n\t\tconfig.enabledVoidTags = true; // list of void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close void tags\n\t\tconfig.impliedEndTags = true; // some tags end is implied\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // don't enable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(false); // enable XML mode in parsing\n\t\treturn this;\n\t}",
"@Input\n public ListProperty<String> getCompilerArgs() {\n return compilerArgs;\n }",
"public interface ProcessorFactory {\n\n ProcessorFactory INSTANCE = new DefaultProcessorFactory();\n\n // TODO rbala Missing JavaDoc\n <TDef extends IElementDef> Processor<TDef> createProcessor(DynamicScopeContext context, TDef elementDef);\n\n}",
"@Bean\n\tpublic MustacheViewResolver mustacheViewResolver(Compiler mustacheCompiler) {\n\t\tMustacheViewResolver resolver = new MustacheViewResolver(mustacheCompiler);\n\t\tresolver.setOrder(Ordered.LOWEST_PRECEDENCE - 10);\n\t\treturn resolver;\n\t}",
"<TDef extends IElementDef> Processor<TDef> createProcessor(DynamicScopeContext context, TDef elementDef);",
"@Override\n public void generate(ToolContext context) throws ToolException {\n //Sorry but I needed to rewrite the code, doesn't have any point to override\n boolean initialized = getFieldValue(\"initialized\");\n if (!initialized) {\n initialize(context);\n }\n\n S2JJAXBModel rawJaxbModelGenCode = getFieldValue(\"rawJaxbModelGenCode\");\n if (rawJaxbModelGenCode == null) {\n return;\n }\n\n if (context.getErrorListener().getErrorCount() > 0) {\n return;\n }\n\n try {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n\n CustomOutputStreamCodeWriter fileCodeWriter = new CustomOutputStreamCodeWriter(stream, \"utf-8\", results);\n ClassCollector classCollector = context.get(ClassCollector.class);\n for (JClass cls : rawJaxbModelGenCode.getAllObjectFactories()) {\n classCollector.getTypesPackages().add(cls._package().name());\n }\n JCodeModel jcodeModel = rawJaxbModelGenCode.generateCode(null, null);\n\n jcodeModel.build(fileCodeWriter);\n\n context.put(JCodeModel.class, jcodeModel);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"@Override\n protected void codeGenMain(DecacCompiler compiler, Registres regs, Pile p) {\n }",
"public static void main(String[] args) throws IOException {\n GenerateSoyUtilsEscapingDirectiveCode generator = new GenerateSoyUtilsEscapingDirectiveCode();\n generator.configure(args);\n generator.execute();\n }",
"@Bean\n\tpublic SwaggerSpringMvcPlugin customImplementation() {\n\t\tboolean enable = ResourceUtils.getBundleValue4Boolean(\"swagger.enable\");\n\t\treturn new SwaggerSpringMvcPlugin(this.springSwaggerConfig).apiInfo(apiInfo()).enable(enable)\n\t\t\t\t.includePatterns(\".*?\");\n\t}",
"public AdmClientePreferencialHTML() {\n/* 191 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 193 */ buildDocument();\n/* */ }",
"private DecompilerSettings getDecompilerSettings() {\n DecompilerSettings settings = new DecompilerSettings();\n\n settings.setExcludeNestedTypes(utils.getConfigOption(EXCLUDE_NESTED_TYPES_KEY, Boolean.class));\n settings.setFlattenSwitchBlocks(utils.getConfigOption(FLATTEN_SWITCH_BLOCKS_KEY, Boolean.class));\n settings.setForceExplicitImports(utils.getConfigOption(FORCE_EXPLICIT_IMPORTS_KEY, Boolean.class));\n settings.setForceExplicitTypeArguments(utils.getConfigOption(FORCE_EXPLICIT_TYPE_ARGUMENTS_KEY, Boolean.class));\n settings.setLanguage(utils.getConfigOption(LANGUAGE_KEY, Language.class));\n settings.setShowSyntheticMembers(utils.getConfigOption(DISPLAY_SYNTHETIC_MEMBERS_KEY, Boolean.class));\n settings.setJavaFormattingOptions(utils.getConfigOption(JAVA_FORMATTER_OPTIONS_KEY, JavaFormattingOptions.class));\n settings.setBytecodeOutputOptions(utils.getConfigOption(BYTE_CODE_OUTPUT_OPTIONS_KEY, BytecodeOutputOptions.class));\n settings.setAlwaysGenerateExceptionVariableForCatchBlocks(\n utils.getConfigOption(ALWAYS_GENERATE_EXCEPTION_VARIABLE_FOR_CATCH_BLOCKS_KEY, Boolean.class)\n );\n settings.setRetainRedundantCasts(utils.getConfigOption(RETAIN_REDUNDANT_CASTS_KEY, Boolean.class));\n settings.setIncludeErrorDiagnostics(utils.getConfigOption(INCLUDE_ERROR_DIAGNOSTICS_KEY, Boolean.class));\n settings.setIncludeLineNumbersInBytecode(\n utils.getConfigOption(INCLUDE_LINE_NUMBERS_IN_BYTECODE_KEY, Boolean.class)\n );\n settings.setRetainPointlessSwitches(utils.getConfigOption(RETAIN_POINTLESS_SWITCHES_KEY, Boolean.class));\n settings.setUnicodeOutputEnabled(utils.getConfigOption(UNICODE_OUTPUT_ENABLED_KEY, Boolean.class));\n settings.setMergeVariables(utils.getConfigOption(MERGE_VARIABLES_KEY, Boolean.class));\n settings.setShowDebugLineNumbers(utils.getConfigOption(SHOW_DEBUG_LINE_NUMBERS_KEY, Boolean.class));\n settings.setSimplifyMemberReferences(utils.getConfigOption(SIMPLIFY_MEMBER_REFERENCES_KEY, Boolean.class));\n settings.setDisableForEachTransforms(utils.getConfigOption(DISABLE_FOR_EACH_TRANSFORMS_KEY, Boolean.class));\n settings.setForceFullyQualifiedReferences(utils.getConfigOption(FORCE_FULLY_QUALIFIED_REFERENCES, Boolean.class));\n\n return settings;\n }",
"private String generatePluginXml(ConcreteSyntax cSyntax, String packageName, IFile file) {\n StringBuffer s = new StringBuffer();\n String factoryClassName = cSyntax.getName().substring(0, 1).toUpperCase() + \n \t\t\t\t\t\t cSyntax.getName().substring(1) + \"ResourceFactoryImpl\";\n \n s.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n s.append(\"<?eclipse version=\\\"3.2\\\"?>\\n\");\n s.append(\"<plugin>\\n\");\n \n //register the generated resource factory\n s.append(\" <extension\\n\");\n s.append(\" point=\\\"org.eclipse.emf.ecore.extension_parser\\\">\\n\");\n s.append(\" <parser\\n\");\n s.append(\" class=\\\"\" + packageName + \".\" + factoryClassName + \"\\\"\\n\");\n s.append(\" type=\\\"\" + cSyntax.getName() + \"\\\">\\n\");\n s.append(\" </parser>\\n\");\n s.append(\" </extension>\\n\\n\");\n \n //register the cs file\n s.append(\" <extension\\n\");\n s.append(\" point=\\\"\" + EMFTextEditPlugin.EP_CONCRETESYNTAX_ID + \"\\\">\\n\");\n s.append(\" <concretesyntax\\n\");\n s.append(\" uri=\\\"\" + cSyntax.getPackage().getNSURI() + \"\\\"\\n\");\n s.append(\" csName=\\\"\" + cSyntax.getName() + \"\\\"\\n\");\n s.append(\" csDefinition=\\\"\" + file.getProject().getName() + \"/\" + file.getProjectRelativePath() + \"\\\">\\n\");\n s.append(\" </concretesyntax>\\n\");\n s.append(\" </extension>\\n\\n\");\n \n //registers the file extension for the EMF Text Editor\n s.append(\" <extension\\n\");\n s.append(\" point=\\\"org.eclipse.core.contenttype.contentTypes\\\">\\n\");\n s.append(\" <file-association\\n\");\n s.append(\" content-type=\\\"org.reuseware.emftextedit.filetype\\\"\\n\");\n s.append(\" file-extensions=\\\"\"+cSyntax.getName()+ \"\\\">\\n\");\n s.append(\" </file-association>\\n\");\n s.append(\" </extension>\\n\\n\");\n \n if(EMFTextEditUIPlugin.getDefault().getPreferenceStore().getBoolean(EMFTextEditUIPlugin.GENERATE_TEST_ACTION_NAME)){\n String baseId = (cSyntax.getPackage().getBasePackage()==null?\"\":cSyntax.getPackage().getBasePackage()+\".\")+cSyntax.getName();\n \n s.append(\"\\t<extension\\n\");\n s.append(\"\\t\\t\\tpoint=\\\"org.eclipse.ui.popupMenus\\\">\\n\");\n s.append(\"\\t\\t<objectContribution\\n\");\n s.append(\"\\t\\t\\t\\tid=\\\"\"+baseId+\".contributions\\\"\\n\");\n s.append(\"\\t\\t\\t\\tobjectClass=\\\"org.eclipse.core.resources.IFile\\\"\\n\");\n s.append(\"\\t\\t\\t\\tnameFilter=\\\"*.\"+cSyntax.getName()+\"\\\">\\n\");\n s.append(\"\\t\\t\\t<action\\n\");\n s.append(\"\\t\\t\\t\\t\\tclass=\\\"org.reuseware.emftextedit.test.actions.ValidateParserPrinterAction\\\"\\n\");\n s.append(\"\\t\\t\\t\\t\\tenablesFor=\\\"1\\\"\\n\");\n s.append(\"\\t\\t\\t\\t\\tid=\\\"\"+baseId+\".validate\\\"\\n\");\n s.append(\"\\t\\t\\t\\t\\tlabel=\\\"Validate\\\"\\n\");\n s.append(\"\\t\\t\\t\\t\\tmenubarPath=\\\"org.reuseware.emftextedit.test.menu1/group1\\\">\\n\");\n s.append(\"\\t\\t\\t</action>\\n\");\n s.append(\"\\t\\t</objectContribution>\\n\");\n s.append(\"\\t</extension>\\n\"); \t\n }\n \n s.append(\"</plugin>\\n\");\n \n return s.toString();\n }",
"CompilationBuilder(File source, CompilerConfiguration compilerConfiguration) {\n\t\tif(source==null) throw new IllegalArgumentException(\"The passed file was null\");\n\t\tif(source.canRead()) throw new RuntimeException(\"The file [\" + source + \"] cannot be read\");\n\t\tthis.compilerConfiguration = compilerConfiguration!=null ? compilerConfiguration : new CompilerConfiguration(CompilerConfiguration.DEFAULT);\n\t\ttry {\n\t\t\tcodeSource = new GroovyCodeSource(source);\n\t\t} catch (Exception ex) {\n\t\t\tthrow new RuntimeException(\"Failed to create GroovyCodeSource from [\" + source + \"]\", ex);\n\t\t}\n\t}",
"public void compileScript() {\n // find and prepare by extension\n //\n log.info(\"Compiling script...\");\n Timer engineTimer = new Timer();\n \n engine = EngineHelper.findByFileExtension(scriptExtension, dependencyJarFiles != null && !dependencyJarFiles.isEmpty());\n \n if (engine == null) {\n throw new BlazeException(\"Unable to find script engine for file extension \" + scriptExtension + \". Maybe bad file extension or missing dependency?\");\n }\n\n log.debug(\"Using script engine {}\", engine.getClass().getCanonicalName());\n \n if (!engine.isInitialized()) {\n engine.init(context);\n }\n \n script = engine.compile(context);\n \n log.info(\"Compiled script in {} ms\", engineTimer.stop().millis());\n }",
"public Script tryCompile(Node node) {\n return tryCompile(node, null, new JRubyClassLoader(getJRubyClassLoader()), false);\n }",
"public interface DevTemplate {\n\t\n\tString name=\"selenium\";\n\t// these features have to implemented for chrome browser, FF browser and IE browser\n\tvoid browserMethod();\n\tvoid OpenURL();\n\tvoid senddata();\n\tvoid click();\n\tvoid getattribute();\n\n}",
"public CompilerOrValue(ICompilerBooleanValue value1, ICompilerBooleanValue value2) {\r\n\t\t\tthis.value1 = value1;\r\n\t\t\tthis.value2 = value2;\r\n\t\t}",
"protected void configure(ValueParser parser)\r\n {\r\n this.context = (Context)parser.getValue(ToolContext.CONTEXT_KEY);\r\n }"
] | [
"0.64737284",
"0.60189563",
"0.5846783",
"0.54848236",
"0.54745835",
"0.541707",
"0.5409298",
"0.5402685",
"0.5380581",
"0.5349247",
"0.52826804",
"0.5261418",
"0.5172609",
"0.51439136",
"0.5140784",
"0.50747967",
"0.50747967",
"0.5049587",
"0.5000026",
"0.49975953",
"0.49787164",
"0.49588656",
"0.49406078",
"0.49051055",
"0.4856334",
"0.48296553",
"0.4812218",
"0.47895145",
"0.4785478",
"0.47707698",
"0.47539228",
"0.47388306",
"0.47291088",
"0.47225922",
"0.47040543",
"0.46886384",
"0.46314088",
"0.4630931",
"0.4603084",
"0.45982143",
"0.4589204",
"0.45880562",
"0.45773163",
"0.45420027",
"0.45357206",
"0.4512931",
"0.4506302",
"0.44918123",
"0.4482446",
"0.44716465",
"0.44545618",
"0.44544327",
"0.44480553",
"0.44470468",
"0.4443234",
"0.4440833",
"0.443976",
"0.44361556",
"0.44330484",
"0.44214028",
"0.4420847",
"0.44194585",
"0.4412177",
"0.44083345",
"0.44083345",
"0.440712",
"0.4392624",
"0.4388834",
"0.43856055",
"0.43806064",
"0.43761417",
"0.43687972",
"0.43613252",
"0.4359369",
"0.43509254",
"0.43481004",
"0.43463966",
"0.43429604",
"0.43191037",
"0.43129256",
"0.4309409",
"0.42950696",
"0.4294377",
"0.42871043",
"0.42796877",
"0.42735532",
"0.42724574",
"0.4263566",
"0.4258211",
"0.42507192",
"0.42454273",
"0.42412224",
"0.4237528",
"0.4233307",
"0.42327264",
"0.42320237",
"0.42309102",
"0.4222641",
"0.42174682",
"0.4214083"
] | 0.58618647 | 2 |
Gun interface: sets the stage for gun general behavior. | public interface Gun {
/**
* defines guns behavior when asked to shoot.
*/
void shoot();
/**
* refills ammo, setting them back to the max capacity.
*/
void reload();
/**
* @return shot damage value.
*/
int getDamage();
/**
*
* @return shot speed value.
*/
double getShotspeed();
/**
*
* @return current ammunition number
*/
int getNAmmo();
/**
*
* @param nAmmo sets current ammunition number
*/
void setNAmmo(int nAmmo);
/**
*
* @return max ammunition capacity
*/
int getMaxAmmo();
/**
*
* @param otherGun
* @return whether this gun is of the same type as otherGun, comparing main fields
*/
boolean isSameTypeAs(Gun otherGun);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void setStage(int stage) {\n\r\n\t}",
"public void setStage(int stage) {\r\n\t\tthis.stage = stage;\r\n\t}",
"public void setStage(Stage stage) {\n\t\tthis.stage = stage;\n\t}",
"public void setStage(){\n if(id < 3)\n stage = 1;\n if(id >= 3 && id < 6)\n stage = 2;\n if(id >= 6 && id < 9)\n stage = 3;\n if(id >= 9)\n stage = 4;\n }",
"public void setStage(Stage stage) {\r\n this.stage = stage;\r\n }",
"public void setStage(Stage stage) {\n this.stage = stage;\n }",
"public void setStage(Stage stage) {\n this.stage = stage;\n }",
"public void setStage(GameStage stage) {\n\t\tif (stage == GameStage.DEAL) {\n\t\t\thands.clear();\n\t\t\tHand hand = new Hand();\n\t\t\tthis.addHand(hand);\n\t\t\tthis.activeHand = null;\n\t\t}\n\t\tfor (Hand hand : hands) {\n\t\t\tGameStage handStage = hand.getStage();\n\t\t\tif (handStage != GameStage.UNACTIVE && handStage.compareTo(stage) < 0) {\n\t\t\t\thand.setStage(stage);\n\t\t\t}\n\t\t}\n\t\tthis.stage = stage;\n\t}",
"public Game(Stage s){\n\t\tmyStage = s;\n\t}",
"public void setCurrentStage(int s) {\n if (s < getMaxNumOfStages()) {\n currentStage = s;\n } else {\n currentStage = getMaxNumOfStages();\n }\n }",
"public void setEditingStage(int stage) {\n\t\tif (amountOfStages < stage) {\n\t\t\tthrow new IllegalArgumentException(\"Attempting to switch to stage which does not exist\");\n\t\t}\n\n\t\tthis.stage = stage;\n\t}",
"public void setStage(Stage currStage) \n\t{\n\t\t// We do not create a new stage because we want to reference of the stage being passed in\n\t\tcurrentStage = currStage;\n\t}",
"@Override\n\tpublic void setStage(java.lang.String stage) {\n\t\t_scienceApp.setStage(stage);\n\t}",
"private void moveToStage() {\n\n switch (host.getUnlockedStages()) {\n case 5:\n if (stage5Point.getTouch()) {\n host.setCurrentStage(5);\n removeOtherPointActors(stage5Point);\n moveAndZoomAction(stage5Point);\n break;\n }\n case 4:\n if (stage4Point.getTouch()) {\n host.setCurrentStage(4);\n removeOtherPointActors(stage4Point);\n moveAndZoomAction(stage4Point);\n break;\n }\n case 3:\n if (stage3Point.getTouch()) {\n host.setCurrentStage(3);\n removeOtherPointActors(stage3Point);\n moveAndZoomAction(stage3Point);\n break;\n }\n case 2:\n if (stage2Point.getTouch()) {\n host.setCurrentStage(2);\n removeOtherPointActors(stage2Point);\n moveAndZoomAction(stage2Point);\n break;\n }\n case 1:\n if (stage1Point.getTouch()) {\n host.setCurrentStage(1);\n removeOtherPointActors(stage1Point);\n moveAndZoomAction(stage1Point);\n break;\n }\n }}",
"@Override\n public void start(final Stage stage) {\n\tLabel label = new Label(\" The key to making programs fast\\n\" +\n\t\t\t\" is to make them do practically nothing.\\n\" +\n\t\t\t\" -- Mike Haertel\");\t\n\tCircle circle = new Circle(160, 120, 30);\n\tPolygon polygon = new Polygon(160, 120, 200, 220, 120, 220);\n\tGroup group = new Group(label, circle, polygon);\n Scene scene = new Scene(group,320,240);\n stage.setScene(scene);\n\tstage.setTitle(\"CS 400: The Key\");\n stage.show();\n }",
"public Stage getStage() {\n return stage;\n }",
"public Stage getStage() {\n return stage;\n }",
"public Stage getStage() {\n return stage;\n }",
"public Stage getStage() {\n return stage;\n }",
"private void gunModifier()\n\t{\t\t\n\t\tif (_gunModifier == 0)\n\t\t{\n\t\t\t_gunModifier = (_gunModifierSwivel * GameState._density);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (_gunModifier == _gunModifierSwivel * GameState._density)\n\t\t\t{\n\t\t\t\t_gunModifier = -1 * (_gunModifierSwivel* GameState._density);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (_gunModifier == -1 * (_gunModifierSwivel* GameState._density))\n\t\t\t\t{\n\t\t\t\t\t_gunModifier = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"String getStage();",
"public void setStage(Stage ventana) {\n\t\t\n\t}",
"public void fire(TileEnvironment levelEnv) {\n\t\t\n\t}",
"public Gun(AppStateManager stateManager) {\n super(stateManager);\n AudioManager am = stateManager.getState(GameManager.class).getUtilityManager().getAudioManager();\n gunShot = am.getSound(\"Gunshot\");\n reload = am.getSound(\"Reloading\");\n gunControl = new GunControl(this, stateManager);\n addControl(gunControl);\n }",
"public static void setStage(Stage stage) {\n PageSwitcher.stage = stage;\n }",
"public void startGame() {\n status = Status.COMPLETE;\n }",
"private void evaluateStage(){\n switch (currentStage){\n case EGG: if (getLifetime() >= ModelSettings.brood_lifetime_egg)\n currentStage = LARVAE;\n break;\n case LARVAE: if (getLifetime() >= ModelSettings.brood_lifetime_larvae)\n currentStage = PUPAE;\n break;\n case PUPAE: if (getLifetime() >= ModelSettings.brood_lifetime_pupae)\n System.out.println(\"This pupae is now an adult!\");\n //TODO trigger manager\n break;\n }\n }",
"public void setPostStage(Vector4f postStage)\n\t{\n\t\tthis.postStage = postStage;\n\t}",
"public void setSTAGE(BigDecimal STAGE) {\r\n this.STAGE = STAGE;\r\n }",
"@Override\r\n public void render() {\n \r\n stage.act();\r\n stage.draw();\r\n }",
"public void setGameEnvironment(GameEnvironment ge) {\n this.gameEnvironment = ge;\n }",
"public void setGame() {\n }",
"final void setLocalStage(final Stage newStage) {\n\t\t// almacenamos la nueva etapa\n\t\tthis.localStage = newStage;\n\t\t// mostramos un mensaje\n\t\tthis.getLogger().debug(\"Changing Local Stage to: \" + this.getLocalStage());\n\t}",
"public Builder setStageValue(int value) {\n stage_ = value;\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }",
"public Stage retrieveStage()\n {\n return gameStage;\n }",
"public void setStageProgression(float stageProgression)\n\t{\n\t\tthis.stageProgression = stageProgression;\n\t}",
"public Stage1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 900, 1);\n \n GreenfootImage image = getBackground();\n image.setColor(Color.BLACK);\n image.fill();\n star();\n \n \n \n //TurretBase turretBase = new TurretBase();\n playerShip = new PlayerShip();\n scoreDisplay = new ScoreDisplay();\n addObject(scoreDisplay, 100, 50);\n addObject(playerShip, 100, 450);\n \n }",
"public void setCurrStage(Vector4f currStage)\n\t{\n\t\tthis.currStage = currStage;\n\t}",
"@Override\n public void start(Stage stage){\n // set the stage\n this.stage = stage;\n\n // set the scenes\n mainScene();\n inputScene();\n\n // set the stage attributes\n stage.setTitle(\"Maze solver\");\n stage.setWidth(VisualMaze.DISPLAY_WIDTH);\n stage.setHeight(VisualMaze.DISPLAY_HEIGHT + 200);\n stage.setScene(main);\n\n // display the app\n stage.show();\n }",
"public void setPrimaryStage(Stage s) {\n primaryStage = s;\n }",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tBattleStage.startBattleStage();\n\t\t\t\t\t\tPRIMARY.setScene(BATTLESCENE);\n\t\t\t\t\t\t//BattleStage.startMonster();\n\t\t\t\t\t}",
"public void Skill() {\n\t\tBuilding ig = new Iglu(this.GetWater());\n\t\tthis.GetWater().GetBuilding().ReplaceBuilding(ig);\n\t}",
"@java.lang.Override\n public int getStageValue() {\n return stage_;\n }",
"public synchronized void setBegun(){\n\tif(!begun){\n\t begun=true;\n\t moveGhosts();\n\t if(gameMode==2){\n\t\tjuggernaut=(int)(Math.random() * (getNbJoueurs()));\n\t\tnomJugger=getJoueurs()[juggernaut];\n\t }\n\t}\n }",
"public Gun() {\n\t\tgunName = \"pistol\";\n\t\tammo = 7;\n\t\taccuracy = 7;\n\t}",
"public void setStage(Stage currentStage)\n\t{\n\t\tthis.thisStage = currentStage;\n\t\tthisStage.setOnCloseRequest(new EventHandler<WindowEvent>() {\n\t\t\tpublic void handle(WindowEvent t) {\n\t\t\t\t//Platform.exit();\n\t\t\t}\n\t\t});\n\t}",
"public GameState(Stage stage, Group root, Scene scene, StateManager stateManager) {\n game = GameLoop.getInstance(root, scene, stateManager);\n game.start();\n stage.setScene(scene);\n stage.setFullScreen(true);\n }",
"public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}",
"public void start(Stage stage) {\r\n // Setting our primaryStage variable to the stage given to us by init()\r\n primaryStage = stage;\r\n // Retrieving the primary scene (the first thing we want the user to see)\r\n Scene primaryScene = getPrimaryScene();\r\n // Setting the title of the stage, basically what the window says on the top left\r\n primaryStage.setTitle(\"SeinfeldMemeCycler\");\r\n // Setting the scene\r\n primaryStage.setScene(primaryScene);\r\n // Displaying the stage\r\n primaryStage.show();\r\n }",
"public ProcessingStage getStage();",
"void doGun() {\r\n\t\tlong time = getTime()\r\n\t\t\t\t+ (int) Math\r\n\t\t\t\t\t\t.round((getRange(getX(), getY(), target.x, target.y) / (20 - (3 * firePower))));\r\n\t\tPoint2D.Double p = target.guessPosition(time);\r\n\r\n\t\t// offsets the gun by the angle to the next shot based on linear\r\n\t\t// targeting provided by the enemy class\r\n\t\tdouble gunOffset = getGunHeadingRadians()\r\n\t\t\t\t- (Math.PI / 2 - Math.atan2(p.y - getY(), p.x - getX()));\r\n\t\tsetTurnGunLeftRadians(normaliseBearing(gunOffset));\r\n\t}",
"public void shootGun() {\n\t\tammo--;\n\t}",
"private void setStage() {\n\t\tstage = new Stage();\n\t\tstage.setScene(myScene);\n\t\tstage.setTitle(title);\n\t\tstage.show();\n\t\tstage.setResizable(false);\n//\t\tstage.setOnCloseRequest(e -> {\n//\t\t\te.consume();\n//\t\t});\n\t}",
"private void createGun() {\n gun = new Node(\"Gun\");\n Box b = new Box(.25f, .25f, 1.25f);\n Geometry bg = new Geometry(\"Box\", b);\n Material bm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n bm.setColor(\"Color\", ColorRGBA.Gray);\n bg.setMaterial(bm);\n gun.attachChild(bg);\n }",
"public void setCurrentWeapon(Pair<Byte,Short> weapon){\n currentWeapon = weapon;\n }",
"final Stage getLocalStage() {\n\t\t// retrnamos la etapa actual\n\t\treturn this.localStage;\n\t}",
"@Override\n public void run() {\n setPointActions(host.getUnlockedStages());\n }",
"public void trigger() {\n triggered = true;\n\n // Get events from the user\n stage = new Stage(new ScreenViewport());\n show();\n }",
"private void initiateProjectile() {\n\t}",
"public void switchWeapon() {\n\t\tif (type == 0) {\n\t\t\ttype = 1;\n\t\t\tthis.setImage(getFilename(type, held));\n\t\t\tsetFocus();\n\t\t} else {\n\t\t\ttype = 0;\n\t\t\tthis.setImage(getFilename(type, held));\n\t\t\tsetFocus();\n\t\t} // end else\n\t}",
"@Override\n public void start(Stage theStage) throws IOException {\n IntCodeGame game = new IntCodeGame(theStage);\n }",
"public void setFrogLevel(int level){\n\t\tthis.frogLevel = level;\n\t}",
"public void setGameState(GameState gs){\n this.gameState = gs;\n }",
"@Override\r\n\tpublic void setStageController(StageController stageController) {\n\t\tmyController = stageController;\r\n\t}",
"public void start(Stage stage) {\n game = new Game();\n\n Scene gameScene = new Scene(game.getVisual().getRoot(), MainGUI.WIDTH, MainGUI.HEIGHT);\n gameScene.setOnKeyPressed(new PressHandler());\n gameScene.setOnKeyReleased(new ReleaseHandler());\n\n createMenu(stage, gameScene);\n Scene menuScene = new Scene(root, MainGUI.WIDTH, MainGUI.HEIGHT);\n stage.setScene(menuScene);\n\n }",
"public void pickUp(Player player) {\n player.setBox(this);\n }",
"public void setInitialGameInternalFramework(ObjectiveBuilder builder) {\n this.builder = builder;\n this.gameState = new GameState(this.builder.getObjectives());\n this.tracker = new ObjectiveTracker(gameState, this.builder.getObjectives());\n this.tracker.addObserver(this);\n }",
"public void setProdutoStage(Stage produtoStage) {\n\t\tthis.produtoStage = produtoStage;\n\t}",
"public StagePosition makeStagePosition();",
"@java.lang.Override\n public int getStageValue() {\n return stage_;\n }",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public void setStageNumber(Integer stageNumber) {\n this.stageNumber = stageNumber;\n }",
"@Override\n\tpublic void show() {\n\t\tGdx.input.setInputProcessor( stage );\n\t}",
"@Override\n public void show() {\n batch = new SpriteBatch();\n stage = createStage();\n\n // create overlays\n hud = new GigagalHUD();\n victoryOverlay = new VictoryOverlay();\n gameoverOverlay = new GameOverOverlay();\n\n // determine input processor\n useOnScreenControl = (Gdx.app.getType() == Application.ApplicationType.Android // on mobile\n || Configs.instance.isDebugOnScreenControlEnabled() // or debugging\n );\n\n if (useOnScreenControl) {\n onscreenControl = new OnscreenControl();\n gameInputProcessor = new TouchProcessor(onscreenControl);\n } else {\n gameInputProcessor = new KeyPressProcessor();\n }\n\n Gdx.input.setInputProcessor(gameInputProcessor);\n\n // load new level\n startNewLevel();\n }",
"@Override\n\tpublic void startGame(){\n\t\tsuper.currentPlayer = 1;\n\t}",
"public void levelUp() {\n\t\t\tpauseGame(500);//pause the game, play a nice song, and make more bricks!\n\t\t\tmakeBricks(12,8);\n\t\t\tlevelUp.play();\n\t\t}",
"public void startNewLevel()\n\t{\n\t\tstopThreads();\n\t\tplanet = new Planet(750,600);\n\t\tship = new Ship(20.0,750,600,planet);\n\t\tplanet.increaseLevel();\n\t\tbuttonPanel.update(ship,planet);\n\t\tgamePanel.update(ship,planet);\n\t\trestartThreads();\n\t}",
"private void init(){\n stage = new Stage();\n inventory = Warrior.getInventory();\n\n Skin skin = new Skin(Gdx.files.internal(\"assets/skins/uiskin.json\"));\n\n dragAndDrop = new DragAndDrop();\n dragAndDrop.setDragActorPosition(-25,25); //offset of dragable item\n\n lootWindow = createView(skin);\n\n stage.addActor(lootWindow); // add window to stage\n }",
"public void setStageName(String stageName) {\n this.stageName = stageName;\n }",
"public void setGunName(String name) {\n\t\tgunName = name;\n\t}",
"private void setGameStatus() {\n this.gameStatus = false;\n }",
"public Builder setAttackStatStage(int value) {\n \n attackStatStage_ = value;\n onChanged();\n return this;\n }",
"public void render(){\n\t\tstage.act();\n\t\tstage.draw();\n\t}",
"abstract Resource<Controller> setupStage(Stage stage);",
"public void run() {\n energy = 2;\n redBull = 0;\n gun = 1;\n target = 1;\n }",
"private void setPrimaryStage(Stage pStage) {\n GUI.pStage = pStage;\n }",
"public Builder clearStage() {\n bitField0_ = (bitField0_ & ~0x00000010);\n stage_ = 0;\n onChanged();\n return this;\n }",
"private void populateLevel() {\r\n\r\n\r\n\t\t// Setup Goal\r\n\t\tJsonValue goalVal = levelAssets.get(\"goal\");\r\n\t\tfloat gWidth = goalTile.getRegionWidth()/scale.x;\r\n\t\tfloat gHeight = goalTile.getRegionHeight()/scale.y;\r\n\t\tfloat gX = goalVal.get(\"pos\").getFloat(0) + gWidth / 2;\r\n\t\tfloat gY = goalVal.get(\"pos\").getFloat(1) + gHeight / 2;\r\n\t\tgoalDoor = new DoorModel(gX, gY, gWidth, gHeight);\r\n\t\tgoalDoor.setBodyType(BodyDef.BodyType.StaticBody);\r\n\t\tgoalDoor.setDensity(constants.get(\"goal\").getFloat(\"density\", 0));\r\n\t\tgoalDoor.setFriction(constants.get(\"goal\").getFloat(\"friction\", 0));\r\n\t\tgoalDoor.setRestitution(constants.get(\"goal\").getFloat(\"restitution\", 0));\r\n\t\tgoalDoor.setSensor(true);\r\n\t\tgoalDoor.setDrawScale(scale);\r\n\t\tgoalDoor.setTexture(goalTile);\r\n\t\tgoalDoor.setName(\"goal\");\r\n\t\taddObject(goalDoor);\r\n\t\taddObjectTo(goalDoor, LevelCreator.allTag);\r\n\r\n\t\t// Get default values\r\n\t\tJsonValue defaults = constants.get(\"defaults\");\r\n\t\tJsonValue objs = levelAssets.get(\"objects\");\r\n\r\n\t\t//group platform constants together for access in following for-loop\r\n\t\tTextureRegion[] xTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\tlightningLightTexture, lightningDarkTexture, lightningAllTexture,\r\n\t\t\trainLightTexture, rainDarkTexture, rainAllTexture,\r\n\t\t\t\tcrumbleLightTexture, crumbleDarkTexture, crumbleAllTexture};\r\n\r\n\t\tTextureRegion[] reducedXTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\t\tlightningLightTextureReduced, lightningDarkTextureReduced, lightningAllTextureReduced,\r\n\t\t\t\trainLightTextureReduced, rainDarkTextureReduced, rainAllTextureReduced,\r\n\t\t\t\tcrumbleLightTextureReduced, crumbleDarkTextureReduced, crumbleAllTextureReduced};\r\n\r\n\r\n\t\t// Setup platforms\r\n\t\tfor(int i=0; i < (objs != null ? objs.size : 0); i++)\r\n\t\t{\r\n\t\t\tJsonValue obj = objs.get(i);\r\n\r\n\t\t\t// Get platform attributes\r\n\t\t\tint platformType = obj.get(\"type\").asInt();\r\n\t\t\tint property = obj.get(\"property\") == null ? 0: obj.get(\"property\").asInt();\r\n\t\t\tJsonValue platformArgs = obj.get(\"positions\");\r\n\t\t\tJsonValue pathsArgs = obj.get(\"paths\");\r\n\r\n\t\t\tfor (int j = 0; j < platformArgs.size; j++) {\r\n\t\t\t\tfloat[] bounds = platformArgs.get(j).asFloatArray();\r\n\t\t\t\tfloat x = bounds[0], y = bounds[1], width = bounds[2], height = bounds[3];\r\n\t\t\t\tTextureRegion newXTexture;\r\n\t\t\t\tTextureRegion crumbleTexture = null;\r\n\t\t\t\tTexture originalTexture = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// temporary - need to refactor asset directory\r\n\t\t\t\t\tJsonValue assetName = obj.get(\"assetName\");\r\n\t\t\t\t\tint assetIndex = assetName.asInt();\r\n\t\t\t\t\tnewXTexture = new TextureRegion(tutorial_signs[assetIndex]);\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tint platIdx = platformType-1+(property - 1)*3;\r\n\t\t\t\t\tint crumbleIdx = platIdx + 3;\r\n\t\t\t\t\tnewXTexture = new TextureRegion(xTexture[platIdx]);\r\n\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t// For crumble animation\r\n\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\tcrumbleTexture = new TextureRegion(xTexture[crumbleIdx]);\r\n//\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the platform size is the same as the spritesheet size\r\n\t\t\t\t\tif (originalTexture.getWidth() > 32 && width%(originalTexture.getWidth()/32) == 0) {\r\n\t\t\t\t\t\tnewXTexture = new TextureRegion(reducedXTexture[platIdx]);\r\n\t\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\t\tcrumbleTexture = new TextureRegion(reducedXTexture[crumbleIdx]);\r\n//\t\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n//\t\t\t\t\tnewXTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t}\r\n\t\t\t\tPlatformModel platformModel = new PlatformModel(bounds, platformType, property, newXTexture, scale,\r\n\t\t\t\t\t\tdefaults.getFloat( \"density\", 0.0f ), defaults.getFloat( \"friction\", 0.0f ) ,\r\n\t\t\t\t\t\tdefaults.getFloat( \"restitution\", 0.0f ), originalTexture, crumbleTexture);\r\n\t\t\t\tplatformModel.setTag(platformType);\r\n\t\t\t\tplatformModel.setProperty(property);\r\n\t\t\t\taddObject(platformModel);\r\n\t\t\t\taddObjectTo(platformModel, platformType);\r\n\t\t\t\t//TODO: Moving platforms\r\n\r\n\r\n\t\t\t\tif (pathsArgs != null) {\r\n\t\t\t\t\tfloat[] paths = pathsArgs.get(j).asFloatArray();\r\n\r\n\t\t\t\t\t//** Moving platform if > 1 path or different path from starting position\r\n\t\t\t\t\tif (hasValidPath(x, y, paths)) {\r\n\t\t\t\t\t\tplatformModel.setBodyType(BodyDef.BodyType.KinematicBody);\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\r\n\t\t\t\t\t\tPooledList<Vector2> pathList = new PooledList<>();\r\n\t\t\t\t\t\tfor (int k = 0; k < paths.length; k+=2) {\r\n\t\t\t\t\t\t\tpathList.add(new Vector2(paths[k], paths[k+1]));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfloat velocity = 3;\r\n\r\n\t\t\t\t\t\tplatformModel.setGravityScale(0);\r\n\t\t\t\t\t\tplatformModel.setPaths(pathList);\r\n\t\t\t\t\t\tplatformModel.setVelocity(velocity);\r\n\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// This world is heavier\r\n\t\tworld.setGravity( new Vector2(0,defaults.getFloat(\"gravity\",0)) );\r\n\r\n\t\t// Set level background index\r\n\t\tint backgroundTextureIndex = levelAssets.get(\"background\").asInt();\r\n\t\tbackgroundLightTexture = backgrounds[backgroundTextureIndex - 1];\r\n\t\tbackgroundDarkTexture = backgrounds[backgroundTextureIndex];\r\n\t\tbackgroundTexture = backgroundLightTexture;\r\n\r\n\t\t// Initialize background animations\r\n\t\tactualBackgroundTexture = backgroundTexture.getTexture();\r\n\t\tbackgroundEntirePixelWidth = actualBackgroundTexture.getWidth();\r\n\t\tbackgroundNumAnimFrames = (int)(backgroundEntirePixelWidth/backgroundFramePixelWidth);\r\n\t\tbackgroundAnimator = new FilmStrip(backgroundTexture,1, backgroundNumAnimFrames, backgroundNumAnimFrames);\r\n\t\tbackgroundAnimator.setFrame(0);\r\n\t\tbackgroundAnimeframe = 0;\r\n\t\tbackgroundOrigin = new Vector2(backgroundAnimator.getRegionWidth()/2.0f, backgroundAnimator.getRegionHeight()/2.0f);\r\n\r\n\t\t// Set level bounds\r\n\t\twidthUpperBound = levelAssets.get(\"dimensions\").getInt(0);\r\n\t\theightUpperBound = levelAssets.get(\"dimensions\").getInt(1);\r\n\r\n\t\t// Setup Somni\r\n\r\n\t\tJsonValue somniVal = levelAssets.get(\"somni\");\r\n\t\tfloat sWidth = somniTexture.getRegionWidth()/scale.x;\r\n\t\tfloat sHeight = somniTexture.getRegionHeight()/scale.y;\r\n\t\tfloat sX = somniVal.get(\"pos\").getFloat(0) + sWidth / 2;\r\n\t\tfloat sY = somniVal.get(\"pos\").getFloat(1) + sHeight / 2;\r\n\t\tsomni = new CharacterModel(constants.get(\"somni\"), sX, sY, sWidth, sHeight, platformController.somnif, CharacterModel.LIGHT);\r\n\t\tsomni.setDrawScale(scale);\r\n\t\tsomni.setTexture(somniIdleTexture);\r\n\t\tsomni.setFilterData(platformController.somnif);\r\n\t\tsomni.setActive(true);\r\n\t\taddObject(somni);\r\n\t\taddObjectTo(somni, LevelCreator.allTag);\r\n\r\n\r\n\t\t// Setup Phobia\r\n\r\n\t\tJsonValue phobiaVal = levelAssets.get(\"phobia\");\r\n\t\tfloat pWidth = phobiaTexture.getRegionWidth()/scale.x;\r\n\t\tfloat pHeight = phobiaTexture.getRegionHeight()/scale.y;\r\n\t\tfloat pX = phobiaVal.get(\"pos\").getFloat(0) + pWidth / 2;\r\n\t\tfloat pY = phobiaVal.get(\"pos\").getFloat(1) + pHeight / 2;\r\n\t\tphobia = new CharacterModel(constants.get(\"phobia\"), pX, pY, pWidth, pHeight, platformController.phobiaf, CharacterModel.DARK);\r\n\t\tphobia.setDrawScale(scale);\r\n\t\tphobia.setTexture(phobiaIdleTexture);\r\n\t\tphobia.setFilterData(platformController.phobiaf);\r\n\t\taddObject(phobia);\r\n\t\taddObjectTo(phobia, LevelCreator.allTag);\r\n\t\tphobia.setActive(true);\r\n\r\n\t\t// Setup Combined\r\n\r\n\t\tfloat cWidth = combinedTexture.getRegionWidth()/scale.x;\r\n\t\tfloat cHeight = combinedTexture.getRegionHeight()/scale.y;\r\n\r\n\t\tcombined = new CharacterModel(constants.get(\"combined\"), 0, 0, cWidth, cHeight, platformController.combinedf, CharacterModel.DARK);\r\n\t\tcombined.setDrawScale(scale);\r\n\t\tcombined.setTexture(somniPhobiaTexture);\r\n\t\t//combined.setTag();\r\n\t\tcombined.setFilterData(platformController.combinedf);\r\n\t\taddObject(combined);\r\n\t\taddObjectTo(combined, LevelCreator.allTag);\r\n\t\tcombined.setActive(true);\r\n\r\n\t\t//Remove combined\r\n\t\tobjects.remove(combined);\r\n\t\tsharedObjects.remove(combined);\r\n\t\tcombined.setActive(false);\r\n\r\n\t\taction = 0;\r\n\r\n\t\tPreferences prefs = GDXRoot.getPreferences();\r\n\t\tvolume = prefs.contains(\"volume\") ? prefs.getFloat(\"volume\") : defaults.getFloat(\"volume\",\r\n\t\t\t\t1.0f);\r\n//\t\tSystem.out.println(volume);\r\n\r\n\t\tplatformController.applyFilters(objects);\r\n\t}",
"@Override\n public void setRunLevel(int level) {\n\n }",
"public void resetgamestate() {\n \tthis.gold = STARTING_GOLD;\n \tthis.crew = STARTING_FOOD;\n \tthis.points = 0;\n \tthis.masterVolume = 0.1f;\n this.soundVolume = 0.5f;\n this.musicVolume = 0.5f;\n \n this.ComputerScience = new Department(COMP_SCI_WEPS.getWeaponList(), COMP_SCI_UPGRADES.getRoomUpgradeList(), this);\n this.LawAndManagement = new Department(LMB_WEPS.getWeaponList(), LMB_UPGRADES.getRoomUpgradeList(), this);\n this.Physics = new Department(PHYS_WEPS.getWeaponList(), PHYS_UPGRADES.getRoomUpgradeList(), this);\n \n this.playerShip = STARTER_SHIP.getShip();\n this.playerShip.setBaseHullHP(700);\n this.playerShip.repairHull(700);\n this.combatPlayer = new CombatPlayer(playerShip);\n }",
"public Ju(){\n\t\tsuper(STARTING_X, STARTING_Y);\n\t\tsetIsJumping(true);\n\t\tdy = STARTING_DY;\n\t\tjumpHeight = INITIAL_JUMP_HEIGHT;\n\t\thealth = STARTING_LIFE;\n\t\tisStageComplete = false;\n\t\tpoint = 0;\n\t\t//A Sound obj\n\t\t\n\t\t//LOAD THE IMAGES AND CREATE ANIMATION. #check\n\t\tBufferedImage[] rightImages = {ImageManipulator.loadImage(\"Data/Ju/stillRight.png\"), ImageManipulator.loadImage(\"Data/Ju/runRight1.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/runRight2.png\"), ImageManipulator.loadImage(\"Data/Ju/runRight3.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/runRight4.png\"), ImageManipulator.loadImage(\"Data/Ju/stillJumpRight1.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/stillJumpRight2.png\"), ImageManipulator.loadImage(\"Data/Ju/runningJumpRight1.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/runningJumpRight2.png\"), ImageManipulator.loadImage(\"Data/Ju/runningJumpRight3.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/stillSitRight.png\"), ImageManipulator.loadImage(\"Data/Ju/stillUpRight.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/deadRight1.png\"), ImageManipulator.loadImage(\"Data/Ju/deadRight2.png\"), \n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/deadRight3.png\"), ImageManipulator.loadImage(\"Data/Ju/runRight5.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/runRight6.png\"), ImageManipulator.loadImage(\"Data/Ju/runRight7.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/runRight8.png\"), ImageManipulator.loadImage(\"Data/Ju/runRightNew.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/stageWin1.png\"), ImageManipulator.loadImage(\"Data/Ju/stageWin2.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/stageWin3.png\"), ImageManipulator.loadImage(\"Data/Ju/stageWin4.png\"),\n\t\t\t\t\tImageManipulator.loadImage(\"Data/Ju/stageWin5.png\")};\n\t\t//0 == still right\n\t\t//1-4 == walk & run right\n\t\t//5-6 == still jump right\n\t\t//7-9 == running jump right\n\t\t//10 == sit right\n\t\t//11 == still up right\n\t\t//12-14 == dead right\n\t\t//15-16 17 18 == walk & run right new\n\t\t// 19-20 == walk right new\n\t\t//21-24 == win\n\t\tBufferedImage[] leftImages = {null, null, null, null, null, null, null, null, null,\n\t\t\t\tnull, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null};\n\t\tfor(int i=0; i<rightImages.length; i++){\n\t\t\tleftImages[i] = ImageManipulator.horizontalFlip(rightImages[i]);\n\t\t}\n\t\t\n\t\tstillLeft = new Animation(ANIM_TIME).addFrame(leftImages[0]);\n\t\twalkLeft = new Animation(ANIM_TIME+30).addFrame(leftImages[1]).addFrame(leftImages[4]).addFrame(leftImages[15]).addFrame(leftImages[19]).addFrame(leftImages[18]);\n\t\trunLeft = new Animation(ANIM_TIME).addFrame(leftImages[1]).addFrame(leftImages[2]).addFrame(leftImages[3]).addFrame(leftImages[4]).addFrame(leftImages[15]).addFrame(leftImages[16]).addFrame(leftImages[17]).addFrame(leftImages[18]);\n\t\tsitLeft = new Animation(ANIM_TIME).addFrame(leftImages[10]);\n\t\tstillJumpLeft = new Animation(ANIM_TIME).addFrame(leftImages[5], 300).addFrame(leftImages[6], 4000);\n\t\trunningJumpLeft = new Animation(ANIM_TIME).addFrame(leftImages[7]).addFrame(leftImages[8], 400).addFrame(leftImages[9], 4000);\n\t\tchangeLeft = new Animation(ANIM_TIME).addFrame(leftImages[1]);\n\t\tstillUpLeft = new Animation(ANIM_TIME).addFrame(leftImages[11]);\n\t\tdeadLeft = new Animation(ANIM_TIME-30).addFrame(leftImages[12], 500).addFrame(leftImages[13]).addFrame(leftImages[14], 3000);\n\t\t\n\t\tstillRight = new Animation(ANIM_TIME).addFrame(rightImages[0]);\n\t\twalkRight = new Animation(ANIM_TIME+30).addFrame(rightImages[1]).addFrame(rightImages[4]).addFrame(rightImages[15]).addFrame(rightImages[19]).addFrame(rightImages[18]);\n\t\trunRight = new Animation(ANIM_TIME).addFrame(rightImages[1]).addFrame(rightImages[2]).addFrame(rightImages[3]).addFrame(rightImages[4]).addFrame(rightImages[15]).addFrame(rightImages[16]).addFrame(rightImages[17]).addFrame(rightImages[18]);\n\t\tsitRight = new Animation(ANIM_TIME).addFrame(rightImages[10]);\n\t\tstillJumpRight = new Animation(ANIM_TIME).addFrame(rightImages[5], 300).addFrame(rightImages[6], 4000);\n\t\trunningJumpRight = new Animation(ANIM_TIME).addFrame(rightImages[7]).addFrame(rightImages[8], 400).addFrame(rightImages[9], 4000);\n\t\tchangeRight = new Animation(ANIM_TIME).addFrame(rightImages[1]);\n\t\tstillUpRight = new Animation(ANIM_TIME).addFrame(rightImages[11]);\n\t\tdeadRight = new Animation(ANIM_TIME-60).addFrame(rightImages[12], 500).addFrame(rightImages[13]).addFrame(rightImages[14], 3000);\n\t\t\n\t\tstageWin = new Animation(ANIM_TIME+60).addFrame(rightImages[0]).addFrame(rightImages[20]).addFrame(rightImages[21]).addFrame(rightImages[22]).addFrame(rightImages[23]).addFrame(rightImages[24]);\n\t\t\n\t\tsetAnimation(stillRight);\n\t\tcurrLeftAnim = walkLeft;\n\t\tcurrRightAnim = walkRight;\n\t}",
"public abstract void setGame(Gyges game);",
"public void nextStage() {\n\t\tcurrentStage.setActive(false);\n\t\tcurrentStageNumber++;\n\t\tchildren.add(currentStage = new Stage(this, StageLocations.mesta2, currentStageNumber));\n\t}",
"public void changeGuns(int mode, EntityManager manager) {\r\n manager.setAmmoType(mode);\r\n firingMode = mode;\r\n shotTimeout = 0;\r\n this.setTexture(textureList.get(mode));\r\n switch (mode) {\r\n case 0:\r\n shotInterval = 300;\r\n break;\r\n case 1:\r\n shotInterval = 600;\r\n break;\r\n case 2:\r\n shotInterval = 10000;\r\n break;\r\n case 3:\r\n shotInterval = 3000;\r\n break;\r\n case 4:\r\n shotInterval = 300;\r\n break;\r\n case 5:\r\n shotInterval = 1500;\r\n break;\r\n }\r\n }",
"@Override\n\t\n\tvoid level_specific_turret_setup(){\n\t}",
"public GameMode(int s)\n {\n bird3.y+=15;\n bird3.goUp = true;\n \n state = s;\n sprite = 0; \n }",
"public static void stageOne() {\n Stage1.intro();\n while (status.getCounter() < 3 && play) {\n beginning_maze.directions();\n if (beginning_maze.trap_or_safe()) {\n status.addCounter();\n if (beginning_maze.bat) {\n status.half();\n } else if (beginning_maze.thorn) {\n status.fourth();\n }\n } else {\n //restarts maze\n status.recount();\n }\n quit();\n }\n }",
"public void onTouch(Player player) {\n\t\tif (!isPickedUp()) {\n\t\t\tsetPickedUp(true);\n\t\t\tsetPassableEnemy(true);\n\t\t\tplayer.setBlueKeys(player.getBlueKeys() + 1);\n\t\t\tsetImage(new Image(\"/floor.png\"));\n\t\t}\n\t}",
"@Override\r\n public void start(Stage primaryStage) throws Exception{\n primaryStage.setTitle(\"Color switch\");\r\n Gameplay obj1 = new Gameplay();\r\n obj1.mainmenu(primaryStage);\r\n// pane.getChildren().add(new Polygon(10,20,30,10,20,30));\r\n\r\n }",
"@Override\n public void show() {\n Gdx.input.setInputProcessor(stage);\n }",
"public void startTurn() {\n nMovesBeforeGrabbing = 1;\n nMovesBeforeShooting = 0;\n\n if (damages.size() > 2)\n nMovesBeforeGrabbing = 2;\n\n if (damages.size() > 5)\n nMovesBeforeShooting = 1;\n\n playerStatus.isActive = true;\n }"
] | [
"0.6822094",
"0.6766567",
"0.6398147",
"0.63615227",
"0.6349473",
"0.6331574",
"0.6331574",
"0.61246395",
"0.606514",
"0.60290456",
"0.6019071",
"0.59912175",
"0.5943482",
"0.58615303",
"0.5710733",
"0.565708",
"0.565708",
"0.565708",
"0.5645664",
"0.562662",
"0.5585431",
"0.55718994",
"0.5504034",
"0.54928756",
"0.54917306",
"0.54868674",
"0.5472496",
"0.54691076",
"0.5440968",
"0.54179823",
"0.5410772",
"0.54040724",
"0.5402838",
"0.54000986",
"0.5374512",
"0.53676146",
"0.53627324",
"0.536116",
"0.53564453",
"0.53561175",
"0.5343594",
"0.5339935",
"0.53382915",
"0.5324748",
"0.5293442",
"0.5286081",
"0.5283129",
"0.52830124",
"0.5273615",
"0.52733797",
"0.5273023",
"0.52624947",
"0.52622414",
"0.5259726",
"0.5249039",
"0.52480215",
"0.52421784",
"0.5230979",
"0.5227143",
"0.52221084",
"0.5208173",
"0.52020067",
"0.51942706",
"0.5192653",
"0.51836395",
"0.51807475",
"0.5176618",
"0.5173199",
"0.5172361",
"0.51702607",
"0.516987",
"0.51655096",
"0.51482075",
"0.51478535",
"0.5146715",
"0.5145525",
"0.5141837",
"0.51349705",
"0.51280797",
"0.51121455",
"0.5111596",
"0.51115316",
"0.51021063",
"0.5097529",
"0.50918174",
"0.5090774",
"0.5071036",
"0.5067734",
"0.50669765",
"0.5063908",
"0.5057394",
"0.50492054",
"0.5043141",
"0.50382924",
"0.50343484",
"0.50332093",
"0.50294054",
"0.50276434",
"0.50260305",
"0.5024804",
"0.50208735"
] | 0.0 | -1 |
defines guns behavior when asked to shoot. | void shoot(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}",
"private void shoot() {\n }",
"private void shoot() {\n }",
"@Override\n\t\t\tpublic void shoot() {\n\t\t\t}",
"@Override\n\tpublic void shoot() {\n\t\tthis.fired = true;\n\t\tghost.shot=true;\n\t}",
"private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}",
"public void shoot()\n {\n\n if(reload<=0)//if the tower has reloaded\n {\n int randomizer=Greenfoot.getRandomNumber(20)-10; \n MinigunBullet bullet = new MinigunBullet(this.getRotation()+randomizer, damage,this);\n getWorld().addObject(bullet, getX(), getY());\n bullet.move(30);\n reload=3;\n }\n else//reload\n {\n reload--;\n }\n\n }",
"public void shoot() {\n _shooterMotor1.set(_targetRPM);\n }",
"void doGun() {\r\n\t\tlong time = getTime()\r\n\t\t\t\t+ (int) Math\r\n\t\t\t\t\t\t.round((getRange(getX(), getY(), target.x, target.y) / (20 - (3 * firePower))));\r\n\t\tPoint2D.Double p = target.guessPosition(time);\r\n\r\n\t\t// offsets the gun by the angle to the next shot based on linear\r\n\t\t// targeting provided by the enemy class\r\n\t\tdouble gunOffset = getGunHeadingRadians()\r\n\t\t\t\t- (Math.PI / 2 - Math.atan2(p.y - getY(), p.x - getX()));\r\n\t\tsetTurnGunLeftRadians(normaliseBearing(gunOffset));\r\n\t}",
"public void shootBullet( ){\n bulletsFired.add(new Bullet((short)(this.xPos + BOX_HEIGHT), (short)((this.getYPos() + (BOX_HEIGHT+15))), this.xPos, this.id, (byte) 0, (byte) 0, shootingDirection, currentWeapon.getKey()));\n\n byte weaponFired = currentWeapon.getKey();\n switch (weaponFired){\n case PISTOL_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n case MACHINEGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(MACHINEGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(MACHINEGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case SHOTGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SHOTGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SHOTGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.shotgunSound);\n break;\n case SNIPER_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SNIPER_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SNIPER_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case UZI_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(UZI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(UZI_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case AI_WEAPON_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(AI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n System.out.println(\"Bullet sound \" + audioHandler.getSoundEffectVolume());\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n default: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n\n }\n }",
"public void avatarShoot()\r\n\t{\r\n\t\tBullet avatarPew = avatar.shoot();\r\n\t\tif (avatarPew!= null)\r\n\t\t{\r\n\t\t\tbullets.add(avatarPew);\r\n\t\t}\r\n\t}",
"private void tankWillShoot(Graphics2D g2d, GameState state) {\n if (state.isMouseClicked() && tankObject.getNumOfCannonBullet() > 0 && state.getGunType() % 2 == 1) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfCannonBullet(tankObject.getNumOfCannonBullet() - 1);\n if (tankObject.getCannonLevel() == 1) {\n state.getMissiles().add(new Missile(state, 15));\n state.getMissiles().get(state.getMissiles().size() - 1).missileDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/heavygun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (tankObject.getCannonLevel() == 2) {\n state.getMissiles().add(new Missile(state, 30));\n state.getMissiles().get(state.getMissiles().size() - 1).missileDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/heavygun.wav\", 0);\n state.setMouseClicked(false);\n }\n } else if (state.isMouseClicked() && tankObject.getNumOfCannonBullet() == 0 && state.getGunType() % 2 == 1) {\n AudioPlayer emptyGunSFX = new AudioPlayer(\"sound effects/emptyGun.wav\", 0);\n state.setMouseClicked(false);\n }\n for (Missile missile : state.getMissiles()) {\n missile.paint(g2d, state);\n }\n if (state.isMousePressed() && tankObject.getNumOfMachineGunBullet() > 0 && state.getGunType() % 2 == 0) {\n if (numOfRenderBullet1 == 0 && tankObject.getMachineGunLevel() == 1) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfMachineGunBullet(tankObject.getNumOfMachineGunBullet() - 1);\n state.getBullets().add(new Bullet(state, 20));\n state.getBullets().get(state.getBullets().size() - 1).bulletDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/lightgun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (numOfRenderBullet2 == 0 && tankObject.getMachineGunLevel() == 2) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfMachineGunBullet(tankObject.getNumOfMachineGunBullet() - 1);\n state.getBullets().add(new Bullet(state, 30));\n state.getBullets().get(state.getBullets().size() - 1).bulletDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/lightgun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (numOfRenderBullet1 <= 7) {\n numOfRenderBullet1++;\n }\n if (numOfRenderBullet1 == 7) {\n numOfRenderBullet1 = 0;\n }\n if (numOfRenderBullet2 <= 3) {\n numOfRenderBullet2++;\n }\n if (numOfRenderBullet2 == 3) {\n numOfRenderBullet2 = 0;\n }\n }\n else if (state.isMousePressed() && tankObject.getNumOfMachineGunBullet() == 0 && state.getGunType() % 2 == 0) {\n AudioPlayer emptyGunSFX = new AudioPlayer(\"sound effects/emptyGun.wav\", 0);\n }\n for (Bullet bullet : state.getBullets()) {\n bullet.paint(g2d, state);\n }\n }",
"public void shoot(){\n int bulletPosX = posX;\n int bulletPosY = posY;\n int bulletVelX = 0;\n int bulletVelY = -9;\n //add the new bullets to the array of bullets\n bullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,0,attack));\n }",
"public void shootIntoRocket(){\n shoot.set(ROCKET_SHOOT);\n }",
"public void shootGun() {\n\t\tammo--;\n\t}",
"public void shoot(){\r\n \tgame.pending.add(new Bullet(this, bulletlife));\t\r\n }",
"public void shoot() {\r\n\t\twhile (rounds > 1) {\r\n\t\t\trounds--;\r\n\t\t\tSystem.out.println(gunType + \" is shooting now\\n\" + rounds + \" \\nCLACK! CLACK! CLAK! CLAK! CLAK!\");\r\n\t\t\tif (rounds == 1) {\r\n\t\t\t\tSystem.out.println(\"Magazine's Empty!! \\nRELOAD!!\\nRELOAD!!!\\nRELAOD!!!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"public void shoot() {\n\n //DOWN\n if (moveDown && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveDown && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n } else if (moveDown && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveDown && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //UP\n else if (moveUp && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveUp && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //LEFT \n else if (moveLeft && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n }\n\n //RIGHT\n else if (moveRight && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveRight && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } //STANDING STILL\n \n \n if (shootDown && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), 5 * this.getBulletSpeedMulti());\n } else if (shootUp && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), -5 * this.getBulletSpeedMulti());\n\n } else if (shootLeft && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n } else if (shootRight && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n }\n }",
"public void shoot(Graphics g) {\r\n\t\tlevelManager.shoot(g);\r\n\t}",
"private void handleShooting(SpaceWars game, GameGUI gui) {\r\n\t\tif (gui.isShotPressed()) {\r\n\t\t\tfire(game);\r\n\t\t}\r\n\t}",
"private void shoot(int mode, EntityManager manager) {\r\n switch (mode) {\r\n case 0:\r\n normal(manager);\r\n break;\r\n case 1:\r\n shotgun(manager);\r\n break;\r\n case 2:\r\n shield(manager);\r\n break;\r\n case 3:\r\n laser(manager);\r\n break;\r\n case 4:\r\n multi(manager);\r\n break;\r\n case 5:\r\n shrapnel(manager);\r\n break;\r\n }\r\n }",
"@Override\n\tpublic void shoot(Plateau p) {\n\t\tif(!noMunition()) {\n\t\t\tuseMunition();\n\t\t\t//complete\n\t\t}\n\t\t\n\t}",
"public void shootIntoCargoShip(){\n shoot.set(SHIP_SHOOT);\n }",
"public boolean isShooting()\r\n\t{\r\n\t\treturn false;\r\n\t}",
"public void shoot(){\n // boss bullete attract to player\n int bulletPosX = PApplet.parseInt(posX + (speed * cos(angle)));\n int bulletPosY = (int)(posY + hei / 2);\n float bulletAngle = atan2(Main.player.posY - bulletPosY, Main.player.posX - bulletPosX);\n int bulletVelX = (int)(8 * cos(bulletAngle));\n int bulletVelY = (int)(8 * sin(bulletAngle));\n bossBullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,1,attack));\n }",
"public void shoot() {\n\r\n switch (shootstate) {\r\n case down:\r\n tempbutton = Components.shootsinglespeed;\r\n templimit = islimitshooterup();\r\n\r\n if (Components.shootsinglespeed && islimitshooterup() && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(singlespeed);\r\n Components.shootermotorleft2.setX(singlespeed);\r\n Components.shootermotorright.setX(-singlespeed);\r\n Components.shootermotorright2.setX(-singlespeed);\r\n\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n\r\n }\r\n shootpothigh = shootsinglepot;\r\n shootstate = movingup;\r\n } else if (Components.trusshp == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(trusshpspeed);\r\n Components.shootermotorleft2.setX(trusshpspeed);\r\n Components.shootermotorright.setX(-trusshpspeed);\r\n Components.shootermotorright2.setX(-trusshpspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = trusshppothigh;\r\n shootstate = movingup;\r\n }else if (Components.truss == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(trussspeed);\r\n Components.shootermotorleft2.setX(trussspeed);\r\n Components.shootermotorright.setX(-trussspeed);\r\n Components.shootermotorright2.setX(-trussspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = trusspothigh;\r\n shootstate = movingup;\r\n } else if (Components.pass == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(passspeed);\r\n Components.shootermotorleft2.setX(passspeed);\r\n Components.shootermotorright.setX(-passspeed);\r\n Components.shootermotorright2.setX(-passspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = passpot;\r\n shootstate = movingup;\r\n } else if (Components.longdistanceshoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(longdistancespeed);\r\n Components.shootermotorleft2.setX(longdistancespeed);\r\n Components.shootermotorright.setX(-longdistancespeed);\r\n Components.shootermotorright2.setX(-longdistancespeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = longdistancepot;\r\n shootstate = movingup;\r\n }\r\n else if (Components.shoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(shooterspeed);\r\n Components.shootermotorleft2.setX(shooterspeed);\r\n Components.shootermotorright.setX(-shooterspeed);\r\n Components.shootermotorright2.setX(-shooterspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = shootpot;\r\n shootstate = movingup;\r\n }else if (Components.slowmovingshoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(slowmovingspeed);\r\n Components.shootermotorleft2.setX(slowmovingspeed);\r\n Components.shootermotorright.setX(-slowmovingspeed);\r\n Components.shootermotorright2.setX(-slowmovingspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n slowmovingpot = shootpot;\r\n shootstate = movingup;\r\n }\r\n else if (Components.fastmovingshoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(fastmovingspeed);\r\n Components.shootermotorleft2.setX(fastmovingspeed);\r\n Components.shootermotorright.setX(-fastmovingspeed);\r\n Components.shootermotorright2.setX(-fastmovingspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n fastmovingpot = shootpot;\r\n\r\n }\r\n case movingup:\r\n if (islimitshooterup() == false || Components.potvalue >= shootpothigh) {\r\n shootstate = stopped;\r\n oldTime = DS.getMatchTime();\r\n try {\r\n Components.shootermotorleft.setX(0);\r\n Components.shootermotorleft2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n try {\r\n Components.shootermotorright.setX(0);\r\n Components.shootermotorright2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n break;\r\n\r\n case stopped:\r\n try {\r\n if (/*Components.shooterdown && */time - oldTime > .2 && islimitshooterdown() == true && Components.DownPickupLimit.get()) {\r\n\r\n Components.shootermotorleft.setX(shootdownspeed);\r\n Components.shootermotorleft2.setX(shootdownspeed);\r\n\r\n Components.shootermotorright.setX(-shootdownspeed);\r\n Components.shootermotorright2.setX(-shootdownspeed);\r\n\r\n shootstate = movingdown;\r\n }\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n break;\r\n\r\n case movingdown:\r\n if ((islimitshooterdown() == false) || (Components.potvalue < shootpotdown)) {\r\n\r\n try {\r\n Components.shootermotorleft.setX(0);\r\n Components.shootermotorleft2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n try {\r\n Components.shootermotorright.setX(0);\r\n Components.shootermotorright2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootstate = down;\r\n }\r\n }\r\n }",
"private void enemiesWillShoot(Graphics2D g2d, GameState state) {\n if (numOfRenderShoot == 75) {\n numOfRenderShoot = 0;\n for (int i = 0; i < state.getEnemyTanks().size(); i++) {\n if (state.getEnemyTanks().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyTanks().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyTanks().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyTanks().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyMissiles().add(new EnemyMissile(this, state, 10\n , state.getEnemyTanks().get(i)));\n state.getEnemyMissiles().get(state.getEnemyMissiles().size() - 1).missileDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n for (int i = 0; i < state.getEnemyCars().size(); i++) {\n if (state.getEnemyCars().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyCars().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyCars().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyCars().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyBullets().add(new EnemyBullet(this, state, 20\n , state.getEnemyCars().get(i)));\n state.getEnemyBullets().get(state.getEnemyBullets().size() - 1).bulletDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n for (int i = 0; i < state.getEnemyWallTurrets().size(); i++) {\n if (state.getEnemyWallTurrets().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyWallTurrets().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyWallTurrets().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyWallTurrets().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyWallTurretMissiles().add(new EnemyWallTurretMissile(this, state, 15\n , state.getEnemyWallTurrets().get(i)));\n state.getEnemyWallTurretMissiles().get(state.getEnemyWallTurretMissiles().size() - 1).missileDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n\n for (int i = 0; i < state.getEnemyTurrets().size(); i++) {\n if (state.getEnemyTurrets().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyTurrets().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyTurrets().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyTurrets().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyHomingMissiles().add(new EnemyHomingMissile(this, state, 15\n , state.getEnemyTurrets().get(i)));\n state.getEnemyHomingMissiles().get(state.getEnemyHomingMissiles().size() - 1).missileDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n }\n for (EnemyMissile enemyMissile : state.getEnemyMissiles()) {\n enemyMissile.paint(g2d, state);\n }\n for (EnemyBullet enemyBullet : state.getEnemyBullets()) {\n enemyBullet.paint(g2d, state);\n }\n for (EnemyWallTurretMissile enemyWallTurretMissile : state.getEnemyWallTurretMissiles()) {\n enemyWallTurretMissile.paint(g2d, state);\n }\n for (EnemyHomingMissile enemyHomingMissile : state.getEnemyHomingMissiles()) {\n enemyHomingMissile.paint(g2d, state);\n }\n }",
"public Shooter() {\n fire1 = new Solenoid(1);\n fire2 = new Solenoid(4);\n returnValve = new Solenoid(3);\n latchSolenoid = new Solenoid(2);\n FFM = true;\n m_enabled = true;\n shooting = false;\n reloading = false;\n initShooter();\n }",
"public void onShootPressed(){\n if(player.getRechargeTimer()<=0) {\n playShootingSound();\n Bullet bullet = new Bullet();\n player.setRechargeTimer(shotRechargeTime);\n bullet.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet.setRotation(player.getRotation());\n bullet.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet.getRotation() - 90))));\n if(player.getTripleShotTimer()>0){\n Bullet bullet1 = new Bullet();\n bullet1.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet1.setRotation(player.getRotation()+15);\n bullet1.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet1.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet1.getRotation() - 90))));\n Bullet bullet2 = new Bullet();\n bullet2.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet2.setRotation(player.getRotation()-15);\n bullet2.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet2.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet2.getRotation() - 90))));\n }\n }\n }",
"public Answer shoot(){\n if (this.isOccuped()){\n this.ship.hit();\n if (this.ship.hasBeenSunk()){\n\tthis.hasBeenShot = true;\n return Answer.SUNK;\n }\n else{\n\tthis.hasBeenShot = true;\n return Answer.HIT;\n }\n }\n else{\n this.hasBeenShot = true;\n return Answer.MISSED;\n }\n }",
"private void shotgun(EntityManager manager) {\r\n if (manager.getAmmo(1) == 0 && !testMode) {\r\n changeGuns(0, manager);\r\n manager.outOfAmmo();\r\n return;\r\n }\r\n\r\n float newRotationR = rotationZ - 15;\r\n float newRotationL = rotationZ + 15;\r\n\r\n float forwardXL = (float) Math.sin(Math.toRadians(newRotationL));\r\n float forwardYL = (float) -Math.cos(Math.toRadians(newRotationL));\r\n\r\n float forwardXR = (float) Math.sin(Math.toRadians(newRotationR));\r\n float forwardYR = (float) -Math.cos(Math.toRadians(newRotationR));\r\n\r\n Shot leftshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, forwardXL * 75, forwardYL * 75, 200, 0.9f, 0, 1, 0, true, 200, false);\r\n\r\n Shot rightshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, forwardXR * 75, forwardYR * 75, 200, 0.9f, 0, 1, 0, true, 200, false);\r\n\r\n Shot centershot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, forwardX * 75, forwardY * 75, 200, 0.9f, 0, 1, 0, true, 200, false);\r\n\r\n manager.addEntity(leftshot);\r\n manager.addEntity(rightshot);\r\n manager.addEntity(centershot);\r\n if (!testMode) manager.updateAmmo(1, -1, false);\r\n manager.shotFired(1);\r\n }",
"public void shoot(ArrayList<Bullet> alienBullets)\r\n\t{\r\n\t\t//do nothing usually\r\n\t}",
"void fire(WarParticipant target, WarParticipant attacker, int noOfShooters);",
"public void stopShooting() {\n\t\tgetWeapon().releaseMain();\n\t\tsetShooting(false);\n\t}",
"public void shoot(double x, double y) {\n if (magazineCounter > 0 && !reloading) {\n magazineCounter--;\n new WeaponProjectile(new Point2D(x, y), mouseLocation(), projectileSpeed, testing);\n }\n }",
"@Override\n\tpublic Bullet shoot(int hx, int hy) {\n\t\treturn null;\n\t}",
"private void shoot(GObject bottom, GObject bottomLeft, GObject topRight, GObject bottomRight, GObject topLeft) {\r\n\t\t//if(bullet == null && bottom != null && bottomLeft == null && topRight == null && bottomRight == null && topLeft == null) {\r\n\t\t\t{bullet = new GRect(BULLET_WIDTH, BULLET_HEIGHT);\r\n\t\t\tbullet.setFilled(true);\r\n\t\t\tbullet.setColor(Color.green);\r\n\t\t\tif(facingEast == true) {\r\n\t\t\t\tbulletVelocity = BULLET_SPEED;\r\n\t\t\t\tadd(bullet, player.getX() + player.getWidth() + 1, player.getY() + player.getHeight() * 3/5.0);\r\n\t\t\t} else {\r\n\t\t\t\tbulletVelocity = -BULLET_SPEED;\r\n\t\t\t\tadd(bullet, player.getX() - BULLET_WIDTH, player.getY() + player.getHeight() * 3/5.0);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n\tboolean shootAt(int row, int column) {\r\n\t\t\r\n\t\t\tthis.getHit()[0]=true;\r\n\t\t\treturn false;\r\n\t\t\t\r\n\t}",
"void fire() {\r\n // firing a shot takes energy\r\n if (!expendEnergy(BULLET_ENERGY))\r\n return;\r\n\r\n //create a bullet object so it doesn't hit the ship that's firing it\r\n double xV = getXVel() + BULLET_SPEED * (Math.cos(orientation));\r\n double yV = getYVel() + BULLET_SPEED * (Math.sin(orientation));\r\n\r\n // create the actual bullet\r\n new Bullet(\r\n getGame(),\r\n (getXPos() + ((getSize()/2 + 2) * (Math.cos(orientation))) + xV),\r\n (getYPos() + ((getSize()/2 + 2) * (Math.sin(orientation))) + yV),\r\n xV,\r\n yV);\r\n }",
"public void changeGuns(int mode, EntityManager manager) {\r\n manager.setAmmoType(mode);\r\n firingMode = mode;\r\n shotTimeout = 0;\r\n this.setTexture(textureList.get(mode));\r\n switch (mode) {\r\n case 0:\r\n shotInterval = 300;\r\n break;\r\n case 1:\r\n shotInterval = 600;\r\n break;\r\n case 2:\r\n shotInterval = 10000;\r\n break;\r\n case 3:\r\n shotInterval = 3000;\r\n break;\r\n case 4:\r\n shotInterval = 300;\r\n break;\r\n case 5:\r\n shotInterval = 1500;\r\n break;\r\n }\r\n }",
"public void enemyShoot()\r\n\t{\r\n\t\tfor (Enemy enemies : enemy)\r\n\t\t{\r\n\t\t\tif (enemies.getHasFired())\r\n\t\t\t{\r\n\t\t\t\tBullet enemyPew = enemies.shoot();\r\n\t\t\t\tif (enemyPew != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.add(enemyPew);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void shoot(){\r\n\t\tif(numberOfArrows>0){\r\n\t\t\tnumberOfArrows--;\r\n\t\t\tPosition positionWumpus = b.getWumpus().getPosition();\r\n\t\t\tif (position.checkShoot(positionWumpus))\r\n\t\t\t\tb.getWumpus().kill();\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"There are no more arrows.\");\r\n\t}",
"public void manualShoot(double speed) {\n shooter1.set(speed);\n }",
"public boolean isShooting() {\n return shooting;\n }",
"public void shoot(Point p, Graphics g, Player player){\r\n if(p.getX() > getXCoord()-20){ //not sure if -20 needed (it is to make cetner by the shoulder of arm)\r\n setFacing(1);\r\n } else{\r\n setFacing(0);\r\n }\r\n this.setAttackSpeedTimer(this.getAttackSpeedTimer() + 1);\r\n if(this.getAttackSpeedTimer() == this.getAttackSpeed()){\r\n\t\t Bullet bullet = new Bullet(this.getXCoord(), \r\n\t\t\t\t\t this.getYCoord(), this.getFacing(), g, findAngle(p), player);\r\n\t\t\t\t\t bullet.setAttack(50);\r\n\t\t bullet.setMouseY(this.getMouseY());\r\n\t\t bullet.setMouseX(this.getMouseX());\r\n\t\t bullet.setMouseAngle(this.getMouseAngle());\r\n\t \t bullet.setPlayerDirection(this.getPlayerDirection());\r\n\t\t this.addProjectile(bullet);\r\n\t\t this.setAttackSpeedTimer(0);\r\n\t\t //System.out.println(findAngle(p)*180/Math.PI);\r\n\t\t this.playSound();\r\n }\r\n }",
"@Override\r\n\tboolean shootAt(int row, int col) {\r\n\t\tboolean[] newHit = new boolean[1]; \r\n\t\tnewHit[0] = true; \r\n\t\tthis.setHit(newHit); \r\n\t\treturn false; \r\n\t}",
"private void shoot() {\n\t\tif (playerList.size() > 0) {\n\t\t\tif (!someoneLose) {\n\t\t\t\tPlayer target = null;\n\t\t\t\tint remainingShips = SHIP_COUNT + 1;\n\t\t\t\tfor (Player player : playerList) {\n\t\t\t\t\tif (player.getRemainingShips() < remainingShips) {\n\t\t\t\t\t\ttarget = player;\n\t\t\t\t\t\tremainingShips = player.getRemainingShips();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSector targetSector = target.findFreeSector();\n\t\t\t\tlastTarget = targetSector.getMiddle();\n\t\t\t\tShootingThread st = new ShootingThread(chordImpl, targetSector.getMiddle());\n\t\t\t\tst.start();\n\t\t\t}\n\t\t}\n\t}",
"public void stopShoot(){\n\t\tshoot.set(0);\n\t}",
"private static void shooting() {\n if (m_gamepad.getStartButton() || shootOverride) { //If the start button is pressed\n if (Math.abs(kVelocitySetpoint - -flywheelMaster.getSelectedSensorVelocity()) <= kFlywheelTolerance) { // ... and we're close enough to the desired RPM ...\n SmartDashboard.putBoolean(\"AUTO SHOOT READY\", true); //Alert driver that the shooting is ready\n runConveyor(); //Convey balls into the flywheel\n } else { //If we are NOT within our tolerance\n SmartDashboard.putBoolean(\"AUTO SHOOT READY\", false); //Alert the operator\n }\n if (velocityDipped && -flywheelMaster.getSelectedSensorVelocity() >= kVelocitySetpoint) {\n powerCellCount--;\n velocityDipped = false;\n }\n\n if (-flywheelMaster.getSelectedSensorVelocity() <= kDip /*Placeholder value*/) {\n velocityDipped = true;\n }\n PID(); //Calculate PIDF loop\n flywheelMaster.set(ControlMode.PercentOutput, -speed); //Run the motor at the calculated level\n } else { //If start button is NOT pressed\n flywheelMaster.set(ControlMode.PercentOutput, m_gamepad.getY(GenericHID.Hand.kLeft)); //Set flywheel manually with joystick\n SmartDashboard.putBoolean(\"AUTO SHOOT READY\", false); //Alert operator\n }\n }",
"public void weaponAbility() {\n \tlogger.info(\"weapon abilities aren't implemented yet. Using slash ability\");\n \t//ability(map.getCurrentTurnHero().getWeaponAbility());\n \tability(new Slash());\n }",
"public void shoot(Projectile p){\r\n\t\tp.facing = facing;\r\n\t\tp.x = x+(width/2)-(p.width/2);\r\n\t\tp.y = y+(height/2)-(p.height/2);\r\n\t\tp.fired = true;\r\n\t\tinAttackCooldown = true;\r\n\t}",
"public void shoot(float direction) {\n\t\tif(pause != 0) return;\n\t\tbullets.add(new Bullet(player.getPosition(),direction));\n\t\tpause = cooldown;\n\t}",
"public void fireBullet(){\n\t\tBullet bullet = new Bullet(ship);\n\t\tbullets.add(bullet);\n\t\tsoundMan.playBulletSound();\n\t}",
"public void attack()\n {\n getWorld().addObject(new RifleBullet(player.getX(), player.getY(), 1, 6, true), getX(), getY()); \n }",
"private void ShootListener() {\n shoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (presenter.canShoot()) {\n shoot(presenter.getBullet());\n presenter.checkLastBullet();\n }\n\n }\n });\n }",
"public void spitIntakeCargo(){\n shoot.set(SPIT_INTAKE);\n }",
"@Override\r\n\tpublic void shoot(Robot robot) throws UnsupportedOperationException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(robot.canShoot())\r\n\t\t\t{\r\n\t\t\t\trobot.shoot();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(IllegalStateException exc)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"A terminated robot cannot shoot.\");\r\n\t\t}\r\n\t}",
"private void handleShoot(ID source, ID target, Boolean hit, Player shootedPlayer) {\n\t\tint hittedSector = shootedPlayer.shootInIntervalOfPlayer(target);\n\t\tshootedPlayer.setHittedSector(hittedSector, hit);\n\t\tif (hit) {\n\t\t\tif (source.compareTo(chordImpl.getID()) == 0)\n\t\t\t\tGUIMessageQueue.getInstance().addMessage(\"I got a hit\");\n\t\t\telse {\n\t\t\t\tGUIMessageQueue.getInstance().addMessage(\"Player with ID: \" + source.toString() + \" got a hit\");\n\t\t\t}\n\t\t}\n\t}",
"public static void shoot(double speed)\n\t{\n\t\trunIntake(0, 0, true, speed, speed, false);\n\t}",
"public interface Gun {\n\n boolean fire();\n\n default void reload(int bullets) {\n\n }\n}",
"private void shoot(boolean canShoot, java.util.List<Enemy> enemiesInVicinity) {\n if (canShoot) {\n shotEnemy = null;\n if (!enemiesInVicinity.isEmpty()){\n boolean shotEnamies = shootAt(enemyWithLowestHealth(enemiesInVicinity));\n if (shotEnamies) resetCooldown();\n }\n }\n }",
"public void shoot(Agent agent) throws RemoteException {\n\t}",
"private void shoot(float angle) {\n\t\tfloat arc = FIRING_ARC;\n\t\tif (weapon instanceof BanditTripleShot)\n\t\t\tarc *= 2;\n\t\t\t\n\t\tif (angle < FIRING_ARC && angle > - FIRING_ARC) {\n\t\t\t//System.out.println(\"BANDIT: shooting\");\n\t\t\tweapon.shoot();\n\t\t}\n\t}",
"public static void vehicleShoot(Player curr, int owner) {\n boolean airShot = false;\n if (gameMode == EARTH_INVADERS) //so vehicles don't shoot each other\n airShot = true;\n if (numFrames >= curr.getLastShotTime() + curr.getReloadTime()) {\n int hd = curr.getHeadDirection();\n Bullet temp = null;\n int bulletSpeed = SPEED * 6;\n //find monster in sights\n int[] target = isMonsterInSight(curr);\n int mIndex = target[1];\n int detX = -1;\n int detY = -1;\n if (mIndex > 0) {\n detX = players[mIndex].findX(cellSize);\n detY = players[mIndex].findY(cellSize);\n if (players[mIndex].isFlying())\n airShot = true;\n }\n if (curr.getName().endsWith(\"missile\")) {\n channels[0].programChange(instr[TAIKO].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 10) + 5, (int) (Math.random() * 10) + 40);\n\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 4;\n else\n bulletSpeed = SPEED * 3;\n temp = new Bullet(\"missile\" + hd, curr.getX(), curr.getY(), 50, rocketImages, SPEED, \"SHELL\", bulletSpeed, true, owner, detX, detY);\n } else if (curr.getName().endsWith(\"jeep\")) {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 65, (int) (Math.random() * 10) + 30);\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 7;\n else\n bulletSpeed = SPEED * 6;\n temp = new Bullet(\"jeep\" + hd, curr.getX(), curr.getY(), 5, machBulletImages, SPEED, \"BULLET\", bulletSpeed, airShot, owner, -1, -1);\n } else if (curr.getName().endsWith(\"troops\") || curr.getName().endsWith(\"police\")) {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 70, (int) (Math.random() * 10) + 20);\n temp = new Bullet(\"troops\" + hd, curr.getX(), curr.getY(), 3, bulletImages, SPEED, \"BULLET\", SPEED * 6, airShot, owner, -1, -1);\n } else if (curr.getName().endsWith(\"flame\")) {\n channels[0].programChange(instr[TAIKO].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 10) + 15, (int) (Math.random() * 10) + 40);\n\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 5;\n else\n bulletSpeed = SPEED * 4;\n temp = new Bullet(\"flame\" + hd, curr.getX(), curr.getY(), 15, monsterFireImages, SPEED, \"FIRE\", bulletSpeed, airShot, owner, -1, -1);\n } else {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 45, (int) (Math.random() * 10) + 85);\n\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 6;\n else\n bulletSpeed = SPEED * 5;\n temp = new Bullet(\"\" + hd, curr.getX(), curr.getY(), 15, shellImages, SPEED, \"SHELL\", bulletSpeed, airShot, owner, -1, -1);\n }\n temp.setDirection(hd);\n if (temp != null) {\n bullets.add(temp);\n curr.setLastShotTime(numFrames);\n }\n if (bullets.size() > BULLET_LIMIT) //remove earliest fired bullet if we have more than the bullet limit\n {\n explosions.add(new Explosion(\"SMALL\", bullets.get(0).getX() - (cellSize / 2), bullets.get(0).getY() - (cellSize / 2), explosionImages, animation_delay));\n bullets.remove(0);\n }\n }\n }",
"public interface Gun {\n\t\n\t/**\n\t * defines guns behavior when asked to shoot.\n\t */\n\tvoid shoot();\n\t\n\t/**\n\t * refills ammo, setting them back to the max capacity.\n\t */\n\tvoid reload();\n\t\n\t/**\n\t * @return shot damage value.\n\t */\n int getDamage();\n\n\t/**\n\t * \n\t * @return shot speed value.\n\t */\n\tdouble getShotspeed();\n\t\n\t/**\n\t * \n\t * @return current ammunition number\n\t */\n\tint getNAmmo();\n\t\n\t/**\n\t * \n\t * @param nAmmo sets current ammunition number\n\t */\n\tvoid setNAmmo(int nAmmo);\n\t\n\t/**\n\t * \n\t * @return max ammunition capacity\n\t */\n\tint getMaxAmmo();\n\t\n\t/**\n\t * \n\t * @param otherGun\n\t * @return whether this gun is of the same type as otherGun, comparing main fields\n\t */\n\tboolean isSameTypeAs(Gun otherGun);\n}",
"public void fireShot() {\n\t\tVector3 position = player.getPositionVector();\n\t\tVector3 rotation = player.getRotationVector();\n\t\tVector3 scale = player.getScaleVector();\n\t\tAsteroidsLaser laser = new AsteroidsLaser(GameObject.ROOT, this, rotation.z);\n\t\tlaser.translate(position);\n\t\tlaserShots.add(laser);\n\t}",
"public void act() \n {\n World w = getWorld();\n int height = w.getHeight();\n \n setLocation(getX(),getY()+1);\n if (getY() <=0 || getY() >= height || getX() <= 0) // off the world\n {\n w.removeObject(this);\n return;\n }\n \n \n SaboWorld thisWorld = (SaboWorld) getWorld();\n Turret turret = thisWorld.getTurret();\n Actor turretActor = getOneIntersectingObject(Turret.class);\n Actor bullet = getOneIntersectingObject(Projectile.class);\n \n if (turretActor!=null && bullet==null) // hit the turret!\n {\n \n turret.bombed(); //Turret loses health\n explode();\n w.removeObject(this);\n } else if (turret==null && bullet!=null) //hit by a bullet!\n {\n explode();\n w.removeObject(this);\n }\n \n }",
"@Override\n\tpublic WeaponSelection shoot(List<Weapon> loaded) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"shoot\");\n\t\treturn getWeaponSelection(loaded, message);\n\t}",
"public boolean shootoutEntity(Entity ent, boolean simulate);",
"public void setShooting(boolean TorF) {\n this.shooting = TorF;\n }",
"private void gunModifier()\n\t{\t\t\n\t\tif (_gunModifier == 0)\n\t\t{\n\t\t\t_gunModifier = (_gunModifierSwivel * GameState._density);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (_gunModifier == _gunModifierSwivel * GameState._density)\n\t\t\t{\n\t\t\t\t_gunModifier = -1 * (_gunModifierSwivel* GameState._density);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (_gunModifier == -1 * (_gunModifierSwivel* GameState._density))\n\t\t\t\t{\n\t\t\t\t\t_gunModifier = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected void execute() {\n timeRunning = timeSinceInitialized();\n if (!Robot.lifter2.getunder15()) {\n Robot.shooter.set(190);\n System.out.println(\"In position: \"+inPosition.get());\n } else {\n System.out.println(\"under angle don't shoot!\");\n }\n \n }",
"@Override\n\tpublic void movment() {\n\t\tif(ghost.shot && fired) {\n\t\t\tif(direction == RIGHT)\n\t\t\t\tmove(RIGHT);\n\t\t\telse if(direction == LEFT)\n\t\t\t\tmove(LEFT);\n\t\t\telse if(direction == UP)\n\t\t\t\tmove(UP);\n\t\t\telse if(direction == DOWN)\n\t\t\t\tmove(DOWN);\n\t\t}\n\t}",
"@Override\n\tpublic void update() {\n\t\tgetInput();\n\t\t\n\t\t//swap 2 guns\n\t\tif(handler.getKeyManager().q) {\n\t\t\tswap(next);\n\t\t\thandler.getKeyManager().q = false;\n\t\t}\n\t\t\n\t\tif(isMoving) {\n\t\t\tSoundEffect.playStep();\n\t\t\t\n\t\t\tanim_run_left.update();\n\t\t\tanim_run_right.update();\n\t\t\t\n\t\t\tif(!penetrating) move();\n\t\t\telse {\n\t\t\t\tx += xMove;\n\t\t\t\ty += yMove;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tanim_run_left.reset();\n\t\t\tanim_run_right.reset();\n\t\t\tSoundEffect.stopStep();\n\t\t}\n\t\t\n\t\t//check direction\n\t\theadingRight = (mouseX >= x - handler.getCamera().getxOffset() + getWidth() / 2);\n\t\t\n\t\trotateHands((double) (mouseX - (x - handler.getCamera().getxOffset() + getWidth() / 2)), \n\t\t\t\t (double) ((y - handler.getCamera().getyOffset() + getHeight() / 2) - mouseY));\n\t\t\n\t\t//atk speed\n\t\tif(timer < curr.getDelay()) {\n\t\t\ttimer += System.currentTimeMillis() - lastTime;\n\t\t}\n\t\telse {\n\t\t\ttimer = curr.getDelay();\n\t\t}\n\t\t\n\t\t//if there is no ammo left ==> force reload\n\t\tif (!curr.isShootable()) isReloading = true;\n\t\t\n\t\t//if reloading\n\t\tif(isReloading) {\n\t\t\t//if really need to reload\n\t\t\tif(curr.getCurrAmmo() < curr.getMaxAmmo()) {\n\t\t\t\tif(loading == 0) curr.playReloadSound();\n\t\t\t\t\n\t\t\t\tloading += System.currentTimeMillis() - lastTime;\n\t\t\t\tif(loading >= curr.getReloadTime()) {\n\t\t\t\t\treload();\n\t\t\t\t\tloading = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if full of ammo already ==> cancel reload\n\t\t\telse isReloading = handler.getKeyManager().r = false;\n\t\t}\n\t\t//if not reloading\n\t\telse {\n\t\t\t//if is shooting and able to shoot\n\t\t\tif(isShooting && timer == curr.getDelay()) {\n\t\t\t\tshoot();\n\t\t\t\ttimer = 0;\n\t\t\t}\n\t\t}\n\n\t\tlastTime = System.currentTimeMillis();\n\t\t\n\t\t//set focus\n\t\thandler.getCamera().focusOnEntity(this);\n\t}",
"@Override\r\n\tpublic int costOfShooting() {\r\n\t\treturn 50;\r\n\t}",
"public void fire(TileEnvironment levelEnv) {\n\t\t\n\t}",
"public void fire(Vector2 dir, Vector2 weaponPos, Boolean multiplayer) {\n\t\t\n\t}",
"@Override\n\tpublic void OnAttackCommand() {\n\t\tsuper.OnAttackCommand();\n\t\tSoundManage.playSound(atkSound1);\n\t}",
"protected void shootAtBeginAutonomous() {\r\n double secondWheel = 1;\r\n double firstWheel = SpinWheels.FIRST_WHEEL_RATIO * 1;\r\n Robot.shooter.setShootingMotors(firstWheel, secondWheel);\r\n if (machineState == 4) {\r\n Robot.shooter.setShootingMotors(0, 0);\r\n machineState++;\r\n } else if (machineState == 0 || machineState == 1 || machineState == 2) {\r\n if (waitForPistonRetract()) {\r\n Robot.storageBox.extendFiringPiston();\r\n } else if (waitForPistonExtend()) {\r\n Robot.storageBox.retractFiringPiston();\r\n machineState++;\r\n }\r\n }\r\n }",
"public void shootAimingBullet(){\n bossBullet = new BossBullet(bossBulletImage,this.getXposition() + 100, this.getYposition() + 100, 8, player, true);\n bulletList.add(bossBullet);\n }",
"private void multi(EntityManager manager) {\r\n if (manager.getAmmo(4) == 0 && !testMode) {\r\n changeGuns(0, manager);\r\n manager.outOfAmmo();\r\n return;\r\n }\r\n\r\n float newRotationR = rotationZ - 90;\r\n float newRotationL = rotationZ + 90;\r\n float newRotationD = rotationZ + 180;\r\n\r\n float leftX = (float) Math.sin(Math.toRadians(newRotationL));\r\n float leftY = (float) -Math.cos(Math.toRadians(newRotationL));\r\n\r\n float rightX = (float) Math.sin(Math.toRadians(newRotationR));\r\n float rightY = (float) -Math.cos(Math.toRadians(newRotationR));\r\n\r\n float downX = (float) Math.sin(Math.toRadians(newRotationD));\r\n float downY = (float) -Math.cos(Math.toRadians(newRotationD));\r\n\r\n Shot leftshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, leftX * 100, leftY * 100, 150, 1.5f, 0, 1, 0, true, 200, false);\r\n\r\n Shot rightshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, rightX * 100, rightY * 100, 150, 1.5f, 0, 0, 1, true, 200, false);\r\n\r\n Shot upshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, forwardX * 100, forwardY * 100, 150, 1.5f, 1, 0, 0, true, 200, false);\r\n\r\n Shot downshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, downX * 100, downY * 100, 150, 1.5f, 1, 1, 0.82f, true, 200, false);\r\n\r\n manager.addEntity(leftshot);\r\n manager.addEntity(rightshot);\r\n manager.addEntity(upshot);\r\n manager.addEntity(downshot);\r\n if (!testMode) manager.updateAmmo(4, -1, false);\r\n manager.shotFired(4);\r\n }",
"public void isShooting(GameContainer gc) throws LineUnavailableException{\r\n\t\tif(gc.getInput().isKeyPressed(Input.KEY_SPACE) || gc.getInput().isKeyPressed(Input.KEY_UP)){\r\n\t\t\tif(!this.bullet.isMoved()){\r\n\t\t\t\tthis.playSound();\r\n\t\t\t\tanimation = this.shooting;\r\n\t\t\t\tthis.bullet.position.x = super.getShape().getCenterX();\r\n\t\t\t\tthis.bullet.position.y = super.getShape().getCenterY();\r\n\t\t\t\tthis.getBullet().setMoved(true);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(this.getBullet().isMoved()){\r\n\t\t\tthis.bullet.move();\r\n\t\t}\r\n\t}",
"void dropHandler() {\n if (tickSpeed < 0) {\n if((int)random(1,6) == 1){ //every 6 medkits the handler drops a minigun\n Sprite mg = new Sprite(minigun);\n mg.moveToPoint(random(0,2048), random(0, 2048)); //moves drop to random point\n minigunDrop.add(mg);\n tickSpeed = (int)random(100,500);\n }else if((int)random(1,4) == 1){ //every 4 medkits the handler drops a coilgun\n Sprite cg = new Sprite(coilgun);\n cg.moveToPoint(random(0,2048), random(0,2048)); //moves drop to random point\n coilgunDrop.add(cg);\n tickSpeed = (int)random(100,500); //changes \n }\n else {\n \n \n Medkit hp = new Medkit();\n hp.med.moveToPoint(random(0, 2048), random(0, 2048));\n\n health.add(hp);\n\n tickSpeed = (int)random(100,500);\n }\n }\n tickSpeed--;\n for (Medkit hp: health) {\n hp.med.display();\n hp.timer--;\n\n }\n for (Sprite mg: minigunDrop){\n mg.display();\n }\n for (Sprite cg: coilgunDrop){\n cg.display();\n }\n // e.forward(5);\n}",
"public void act ()\n {\n checkScroll();\n checkPlatform();\n checkXAxis();\n checkDeath();\n // get the current state of the mouse\n MouseInfo m = Greenfoot.getMouseInfo();\n // if the mouse is on the screen...\n if (m != null)\n {\n // if the mouse button was pressed\n if (Greenfoot.mousePressed(null))\n {\n // shoot\n player.shoot(m.getX(), m.getY());\n }\n }\n }",
"private void shoot(int x, int y, int choice) {\n\t\tif (heroi.getDardos() > 0) {\n\t\t\t//left\n\t\t\tif (x == 1) {\n\t\t\t\tint i = 1;\n\t\t\t\twhile ((heroi.getX_coord()-i) > 0 && (labirinto.getLab()[heroi.getX_coord()-i][heroi.getY_coord()] != 'X')) {\n\t\t\t\t\tfor (int j = 0; j < dragoes.length; j++) {\n\t\t\t\t\t\tif (dragoes[j].getX_coord() == (heroi.getX_coord()-i))\n\t\t\t\t\t\t\tif (dragoes[j].getY_coord() == (heroi.getY_coord())) {\n\t\t\t\t\t\t\t\tif (dragoes[j].isAlive()) {\n\t\t\t\t\t\t\t\t\tdragoes[j].setAlive(false);\n\t\t\t\t\t\t\t\t\tlabirinto.setLabCell(dragoes[j].getX_coord(), dragoes[j].getY_coord(), ' ');\n\t\t\t\t\t\t\t\t\tif (inter == 0)\t\n\t\t\t\t\t\t\t\t\t\tconsole_interface.dragonKilled();\n\t\t\t\t\t\t\t\t\telse if (inter == 3) \n\t\t\t\t\t\t\t\t\t\tMazeDisplay.messageDragonKilled();\n\t\t\t\t\t\t\t\t\telse {}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//-----------------------------------------------------------------\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tif (inter == 0)\n\t\t\t\t\tconsole_interface.shotLeft();\n\t\t\t\telse if (inter == 3) {} //shooting function\n\t\t\t\telse {}\n\t\t\t}\n\n\t\t\t//right\n\t\t\telse if (x == -1) {\n\t\t\t\tint i = 1;\n\t\t\t\twhile ((heroi.getX_coord()+i) < labirinto.getSize() && (labirinto.getLab()[heroi.getX_coord()+i][heroi.getY_coord()] != 'X')) {\n\t\t\t\t\tfor (int j = 0; j < dragoes.length; j++) {\n\t\t\t\t\t\tif (dragoes[j].getX_coord() == (heroi.getX_coord()+i))\n\t\t\t\t\t\t\tif (dragoes[j].getY_coord() == (heroi.getY_coord())) {\n\t\t\t\t\t\t\t\tif (dragoes[j].isAlive()) {\n\t\t\t\t\t\t\t\t\tdragoes[j].setAlive(false);\n\t\t\t\t\t\t\t\t\tlabirinto.setLabCell(dragoes[j].getX_coord(), dragoes[j].getY_coord(), ' ');\n\t\t\t\t\t\t\t\t\tif (inter == 0) \n\t\t\t\t\t\t\t\t\t\tconsole_interface.dragonKilled();\n\t\t\t\t\t\t\t\t\telse if (inter == 3) \n\t\t\t\t\t\t\t\t\t\tMazeDisplay.messageDragonKilled();\n\t\t\t\t\t\t\t\t\telse {}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//-----------------------------------------------------------------\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tif (inter == 0)\n\t\t\t\t\tconsole_interface.shotRight();\n\t\t\t\telse if (inter == 3) {} //shooting function\n\t\t\t\telse {}\n\t\t\t}\n\n\t\t\t//up\n\t\t\telse if (y == 1) {\n\t\t\t\tint i = 1;\n\t\t\t\twhile ((heroi.getY_coord()-i) > 0 && (labirinto.getLab()[heroi.getX_coord()][heroi.getY_coord()-i] != 'X')) {\n\t\t\t\t\tfor (int j = 0; j < dragoes.length; j++) {\n\t\t\t\t\t\tif (dragoes[j].getY_coord() == (heroi.getY_coord()-i))\n\t\t\t\t\t\t\tif (dragoes[j].getX_coord() == (heroi.getX_coord())) {\n\t\t\t\t\t\t\t\tif (dragoes[j].isAlive()) {\n\t\t\t\t\t\t\t\t\tdragoes[j].setAlive(false);\n\t\t\t\t\t\t\t\t\tlabirinto.setLabCell(dragoes[j].getX_coord(), dragoes[j].getY_coord(), ' ');\n\t\t\t\t\t\t\t\t\tif (inter == 0) console_interface.dragonKilled();\n\t\t\t\t\t\t\t\t\telse if (inter == 3) MazeDisplay.messageDragonKilled();\n\t\t\t\t\t\t\t\t\telse {}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//-----------------------------------------------------------------\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tif (inter == 0)\n\t\t\t\t\tconsole_interface.shotUp();\n\t\t\t\telse if (inter == 3) {} //shooting function\n\t\t\t\telse {}\n\t\t\t}\n\n\t\t\t//down\n\t\t\telse { \n\t\t\t\tint i = 1;\n\t\t\t\twhile ((i+heroi.getY_coord()) < labirinto.getSize() && (labirinto.getLab()[heroi.getX_coord()][heroi.getY_coord()+i] != 'X')) {\n\t\t\t\t\tfor (int j = 0; j < dragoes.length; j++) {\n\t\t\t\t\t\tif (dragoes[j].getY_coord() == (heroi.getY_coord()+i))\n\t\t\t\t\t\t\tif (dragoes[j].getX_coord() == (heroi.getX_coord())) {\n\t\t\t\t\t\t\t\tif (dragoes[j].isAlive()) {\n\t\t\t\t\t\t\t\t\tdragoes[j].setAlive(false);\n\t\t\t\t\t\t\t\t\tlabirinto.setLabCell(dragoes[j].getX_coord(), dragoes[j].getY_coord(), ' ');\n\t\t\t\t\t\t\t\t\tif (inter == 0) console_interface.dragonKilled();\n\t\t\t\t\t\t\t\t\telse if (inter == 3) MazeDisplay.messageDragonKilled();\n\t\t\t\t\t\t\t\t\telse {}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//-----------------------------------------------------------------\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tif (inter == 0) \n\t\t\t\t\tconsole_interface.shotDown();\n\t\t\t\telse if (inter == 3) {} //shooting function\n\t\t\t\telse {}\n\t\t\t}\n\t\t\theroi.dec_dardos();\n\t\t}\n\t\telse\n\t\t\tif (inter == 0)\n\t\t\t\tconsole_interface.no_darts();\n\t\t\telse if (inter == 3) MazeDisplay.noDarts();\n\t\t\telse {}\n\n\t\tdisplayDragoes();\n\t\tchange_hero_pos();\n\t}",
"public boolean shoot() {\n if (!isReloading && System.currentTimeMillis() - previousShotTime > shootInterval * 1000 && ammoRemaining > 0) {\n\n previousShotTime = System.currentTimeMillis();\n\n ammoRemaining--;\n audioPlayer.setSpatial(holder);\n audioPlayer.playOnce();\n // score -= 50;\n Vec2 angle = Vec2\n .Vector2FromAngleInDegrees(transform.getGlobalRotation().getAngleInDegrees() - 90 + (Math.random() * spread * 2 - spread));\n\n Vec2 spawnPosition = transform.getWorldPosition();\n\n Projectile p = new Projectile(spawnPosition,\n Vec2\n .Vector2FromAngleInDegrees(\n transform.getGlobalRotation().getAngleInDegrees() - 90 + (Math.random() * spread * 2 - spread)),\n new Sprite(projectilePath));\n p.setSpeed(speed);\n p.setSource(holder);\n p.getCollider().addInteractionLayer(\"Block\");\n p.getCollider().addInteractionLayer(\"Hittable\");\n p.getCollider().addInteractionLayer(\"Walk\");\n p.setOnCollisionListener(other -> {\n if (other.getGameObject() instanceof Player && other.getGameObject() != holder) {\n Player player = (Player) other.getGameObject();\n player.hit(alteredDmg);\n if (GameEngine.DEBUG) {\n System.out.println(\"Bullet Hit \" + other.getName());\n }\n p.destroy();\n\n// player.destroy();\n } else if (other.getGameObject() instanceof Enemy) {\n Enemy e = ((Enemy) other.getGameObject());\n e.hit(alteredDmg);\n if (!e.isAlive()) { // CHeck if enemy survived\n ((Player) p.getSource()).killedEnemy();\n }\n p.destroy();\n } else if (other.getTag() == \"Block\") {\n p.destroy();\n }\n\n });\n return true;\n } else if(ammoRemaining <= 0){\n reloadWeapon();\n return false;\n }else\n return false;\n }",
"@Override\n public void fireBullet(ArrayList<ScreenObject> level) {\n level.add(new ShipBullet(position.x, position.y, 8, 8, direction));\n }",
"public void hit(Graphics g) {\r\n\t\tthis.myDraw(g);\r\n\t\tsuper.loseHealth();\r\n\t\tg.drawImage(sprite,super.X(),super.Y(), null);\r\n\t\tfor(int i = 0; i < spits.size();i++) {\r\n\t\t\tspits.get(i).myDraw(g);\r\n\t\t}\r\n\t}",
"@Override public void takeAction(Player[] players, Enemy[] enemies, char action)\n {\n \n if (action == 'a') //ATTACK!!!!\n {\n if(gun.isEmpty())\n { \n System.out.println(name+\"'s weapon is empty!\");\n gun.reload();\n }\n else\n {\n Enemy target = target(this, enemies, gun.getAccuracy());\n Attack(target);\n }\n } \n else if (action == 'd')//Hold this position!\n {\n this.defend();\n System.out.println(name+\" hunkers down!\");\n }\n else if (action == 'r')//Reloading! Cover me!\n {\n gun.reload();\n }\n else if (action == 'm')//Fall back! There's too many of them!\n {\n run();\n }\n else\n {\n System.out.println(\"Invalid command.\");\n }\n }",
"void playerHandler() {\n player.turnToPoint(mouseX, mouseY);\n if (firing && sTimer < 1) {\n\n Sprite smb = new Sprite(smbulletbase);\n smb.moveToSprite(player);\n if(usingCoil){\n clickEffect = new KTSound(this, coilshotURL);\n ktAudio.add(clickEffect);\n clickEffect.play();\n clickEffect = new KTSound(this, gunshotURL);\n ktAudio.add(clickEffect);\n }\n smBullets.add(smb);\n clickEffect.play();\n if(weapon == \"minigun\"){\n smb.turnToPoint(mouseX+(int)random(-90,90), mouseY+(int)random(-90,90));\n }\n else{\n smb.turnToPoint(mouseX, mouseY);\n }\n\n sTimer = firingSpeed;\n }\n sTimer -= 1;\n \n prevX = player.getX();\n prevY = player.getY();\n\n if (up) {\n player.moveY( - 5);\n // pAngle -= 1;\n }\n if (down) {\n player.moveY(5);\n // pAngle += 1;\n }\n if (left) {\n player.moveX( - 5);\n // pAngle -= 1;\n }\n if (right) {\n player.moveX(5);\n }\n if (player.getY() < player.getH() / 2) {\n player.setY(player.getH() / 2);\n }\n if (player.getY() > 2048 - player.getH() / 2) {\n player.setY(2048 - player.getH() / 2);\n }\n if (player.getX() < player.getH() / 2) {\n player.setX(player.getH() / 2);\n }\n if (player.getX() > 2048 - player.getH() / 2) {\n player.setX(2048 - player.getH() / 2);\n }\n \n \n\n // player.turnToDir(pAngle);\n player.display();\n // player.displayHitbox();\n}",
"public M_Bullet shoot() {\n Point leftCorner = this.getLocation();\n // get the center of the character\n int x = leftCorner.x;\n int y = leftCorner.y;\n Point dim = this.getDimensions();\n int h = dim.y;\n int w = dim.x;\n h = h / 2;\n w = w / 2;\n Point center = new Point(x + w, y + h);\n // get the velocity for the bullet\n Point vel = new Point(this.getDirection() * 3, 0);\n // set the enemy's shot cooldown to its shot interval.\n setShotCooldown(getShotInterval());\n // return the new bullet\n return new M_Bullet(center, this.getStrength(), vel, true);\n }",
"public abstract void fire(Player holder);",
"private void shootMove() {\n for (int i = 0; i < fires.size(); i++) {\n //子弹往上移动\n fires.get(i).move();\n //注意这里remove需要放在下面\n if (fires.get(i).y < -1000) {\n fires.remove(fires.get(i));\n }\n }\n\n }",
"public void Attack(){\n float randomx = (float)(Math.random()-0.5)*attackRange*GameView.instance.cameraSize/10;\n float randomy = (float)(Math.random()-0.5)*attackRange*GameView.instance.cameraSize/5;\n Vector2 target = GameView.instance.player.aimFor();\n float dx = target.x-creationPoint.x;\n float dy =target.y-creationPoint.y;\n float l= (float)Math.sqrt(dx*dx+dy*dy);\n dx = dx/l-((float)Math.random()-0.5f)/2;\n dy = dy/l-(float)(Math.random())/10;\n ProjectilePool.instance.shootArrow(creationPoint.x, creationPoint.y, 1, dx, dy, 3);\n }",
"public void fire(double power) {\n if (!shooting) {\n this.power = limit(power);\n shooting = true;\n }\n }",
"public void mouseHeld(boolean held)\n \t{\n \t\tisShooting = held;\n \t}",
"public void setShootUp(boolean TorF) {\n shootUp = TorF;\n }",
"public void setShootDown(boolean TorF) {\n shootDown = TorF;\n }",
"public void setShoot(String text) {\n shoot.setText(text);\n }",
"void smallgunHandler() {\n for (Sprite smb: smBullets) {\n \n smb.display();\n if(usingCoil){\n smb.forward(120);\n }else{\n smb.forward(40);\n }\n\n }\n}"
] | [
"0.7865774",
"0.7521915",
"0.7521915",
"0.7453879",
"0.7367584",
"0.733248",
"0.7130333",
"0.70266885",
"0.70045394",
"0.6988912",
"0.696736",
"0.6942911",
"0.69336516",
"0.6895089",
"0.6892917",
"0.6828642",
"0.6824469",
"0.68020314",
"0.6774551",
"0.67731524",
"0.66645354",
"0.66620827",
"0.66544384",
"0.66506094",
"0.66407233",
"0.65875393",
"0.65752095",
"0.65623367",
"0.65552205",
"0.65390813",
"0.6533249",
"0.65037525",
"0.6501914",
"0.6464728",
"0.64017546",
"0.6398056",
"0.6392852",
"0.6379944",
"0.63705033",
"0.63700104",
"0.6362231",
"0.6361629",
"0.6355514",
"0.63418114",
"0.6291557",
"0.6285549",
"0.62802476",
"0.62668616",
"0.62526727",
"0.6245689",
"0.6227403",
"0.61925465",
"0.6189692",
"0.61856276",
"0.6176542",
"0.6157307",
"0.6150906",
"0.6143429",
"0.61382586",
"0.61307144",
"0.6128503",
"0.6128105",
"0.6105938",
"0.6085448",
"0.6065178",
"0.6061803",
"0.6048182",
"0.603565",
"0.6034836",
"0.6028864",
"0.5970838",
"0.59594095",
"0.5957606",
"0.59570545",
"0.5956605",
"0.59400886",
"0.5937152",
"0.5936844",
"0.59332967",
"0.5930922",
"0.5930718",
"0.59282386",
"0.59120417",
"0.5909324",
"0.5902781",
"0.58953",
"0.58842",
"0.5883276",
"0.5874211",
"0.58712304",
"0.586504",
"0.58638674",
"0.5841627",
"0.5840921",
"0.58370525",
"0.5835834",
"0.5834906",
"0.58155704",
"0.5813633",
"0.5800221"
] | 0.75002843 | 3 |
refills ammo, setting them back to the max capacity. | void reload(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void reload() {\n\t\tammo = AMMO_CAPACITY;\n\t}",
"public void reload()\n\t{\n\t\tammo = maxAmmo;\n\t}",
"public void resupply()\n {\n fuel = model.maxFuel;\n ammo = model.maxAmmo;\n }",
"public void charge() {\r\n capacity = Math.min(capacity += originalCapacity, originalCapacity);\r\n }",
"public void reduceHealth(int ammo_damage){\n this.health -= ammo_damage;\n }",
"public void setAmmo(int ammo) {\n\t\tthis.ammo = ammo;\n\t}",
"public void shootGun() {\n\t\tammo--;\n\t}",
"public void setAmmo(final boolean x) {\n int ammodif = 0;\n switch (Engine.currentWeapon) {\n\n case 2:\n ammodif = maxshotgunAmmo - shotgunAmmo;\n if (x) {\n if (ammodif < 10) {\n shotgunAmmo += ammodif;\n } else {\n shotgunAmmo += 10;\n }\n } else {\n shotgunAmmo--;\n if (shotgunAmmo == 0) {\n shotgunAmmo = 0;\n }\n\n }\n\n break;\n case 3:\n ammodif = maxrifleAmmo - rifleAmmo;\n if (x) {\n if (ammodif < 20) {\n rifleAmmo += ammodif;\n } else {\n rifleAmmo += 20;\n }\n } else {\n rifleAmmo--;\n if (rifleAmmo == 0) {\n rifleAmmo = 0;\n }\n }\n\n break;\n case 4:\n ammodif = maxgranadelauncherAmmo - granadeLauncherAmmo;\n if (x) {\n if (ammodif < 10) {\n granadeLauncherAmmo += ammodif;\n } else {\n granadeLauncherAmmo += 10;\n }\n } else {\n granadeLauncherAmmo--;\n if (granadeLauncherAmmo == 0) {\n granadeLauncherAmmo = 0;\n }\n }\n\n break;\n }\n }",
"public void fill() throws NoAmmoException {\n if (this.ammoStorage <= 0) {\n throw new NoAmmoException();\n } else {\n int ammoNeeded = overallAmmoNeeded();\n\n if (this.ammoStorage < ammoNeeded) {\n // fill priority jets\n for (Jet jet : this.aircrafts) {\n if (jet.isPriority() && jet.needsAmmo()) {\n this.ammoStorage = jet.refillAmmo(this.ammoStorage);\n }\n }\n\n // fill non-priority jets\n // if still has ammo\n if (this.ammoStorage > 0) {\n for (Jet jet : this.aircrafts) {\n if (jet.needsAmmo()) {\n this.ammoStorage = jet.refillAmmo(this.ammoStorage);\n }\n }\n }\n } else {\n for (Jet jet : this.aircrafts) {\n if (jet.needsAmmo()) {\n this.ammoStorage = jet.refillAmmo(this.ammoStorage);\n }\n }\n }\n }\n }",
"public void refill() {\n\t\tfor(int i = 0; i < chests.size(); i++)\r\n\t\t\tchests.get(i).refill();\r\n\t}",
"public void refuel() {\n fuelAmount = type.fuelCapacity;\n }",
"public void resetDamage(int maxDamage){\n\t\tthis.maxHealth = maxDamage;\n\t\tthis.shipDamage = new int[this.shipSize];\n\t\tfor (int i = 0; i < this.shipDamage.length; i++){\n\t\t\tthis.shipDamage[i] = maxDamage;\n\t\t}\n\t}",
"public void resetHP(){\r\n this.currHP = this.maxHP;\r\n }",
"public void drain(double amount) {\r\n capacity = Math.max(capacity -= amount, 0);\r\n }",
"private void reapDeadRabbits() {\n for (int i = (rabbitList.size() - 1); i >= 0; i--) {\n RabbitsGrassSimulationAgent rabbit = rabbitList.get(i);\n if (rabbit.getEnergy() <= 0) {\n space.removeRabbitAt(rabbit.getX(), rabbit.getY());\n rabbitList.remove(i);\n }\n }\n }",
"private void reapDeadRabbits() {\n\t\tfor (int i = (rabbitList.size() - 1); i >= 0; i--) {\n\t\t\tRabbitsGrassSimulationAgent rabbit = rabbitList.get(i);\n\t\t\tif (rabbit.getEnergy() < 1) {\n\t\t\t\trabbitSpace.removeRabbitAt(rabbit.getX(), rabbit.getY());\n\t\t\t\trabbitList.remove(i);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void shrinkAmmo(IToolStackView tool, ModifierEntry modifier, LivingEntity shooter, ItemStack ammo, int needed) {\n ammo.shrink(needed);\n setStack(tool, modifier, tool.getPersistentData().getInt(SELECTED_SLOT), ammo);\n }",
"public void unleash() {\n\t\tlocked = false;\n\t\tfloat percent = framesAccelerated/60.0f;\n\t\tif (percent > 1) percent = 2 - percent;\n\t\tif (percent < 0) percent = 0;\n\t\t\n\t\tif (player.aiControlled()) {\n\t\t\tpercent = AIcontroller.randomStartBoost();\n\t\t}\n\t\t\n\t\tspeed = MAX_SPEED * percent;\n\t}",
"public void Restock() {\n for (Ingredient ingredient : stock.keySet()) {\n stock.put(ingredient, inventoryMax);\n }\n }",
"public void repair(){\n if(health < 9) {\n this.health++;\n }\n }",
"public void resetSkills()\r\n\t{\r\n\t\t// TODO Keep Skill List upto date\r\n\t\tfarming = 0;\r\n\t}",
"public void pay(List<Color> ammoToPay, List<CardPower> powerUp) throws InsufficientAmmoException {\n List <Color> tmp = null;\n List <CardPower> tmpPU = null;\n if(ammoToPay != null && !ammoToPay.isEmpty() && ammoToPay.get(0)!=Color.ANY) {\n tmp = new ArrayList<>(ammoToPay);\n tmpPU = new ArrayList<>();\n if (powerUp != null && !powerUp.isEmpty())\n for (int i = 0; i < powerUp.size(); i++) {\n if (tmp.contains(powerUp.get(i).getColor())) {\n tmp.remove(powerUp.get(i).getColor());\n tmpPU.add(powerUp.get(i));\n }\n }\n if (!ammo.containsAll(tmp)) throw new InsufficientAmmoException();\n else {\n for (Color ammor : tmp) {\n ammo.remove(ammor);\n }\n for (CardPower cp : tmpPU) {\n cardPower.remove(cp);\n }\n }\n }\n else if(!ammoToPay.isEmpty() && ammoToPay.get(0) == Color.ANY && powerUp != null && !powerUp.isEmpty())\n cardPower.remove(powerUp.get(0));\n\n }",
"public void resetHealth() {\n\t\tthis.health = this.getCombatDefinition().getMaxHealth();\n\t}",
"public void reinforceAction(){\n\t\tint u = MainPlayScreen.this.game.getCurrentPlayer().getUnplacedArmies();\n\t\t\n\t\tif( u == 0){\n\t\t\tnumberOfArmies[1].removeAllItems();\n\t\t}\t// end of if statement\n\t\t\n\t\telse{\t\t\t\t\t\n\t\t\tnumberOfArmies[1].removeAllItems();\n\t\t\tfor( int i = 1; i <= u; i++){\n\t\t\t\tSystem.out.print(i);\n\t\t\t\t\n\t\t\t\tnumberOfArmies[1].addItem(i);\n\t\t\t\t\n\t\t\t}// end of else\n\t\t} // end of else\n\t\t\n\t\tnumberOfArmies[1].repaint();\n\t}",
"public void upgradeCapacity()\r\n\t{\r\n\t\tcapacity++;\r\n\t}",
"public void addAmmo (double amount) {\n\t\t\n\t\tcurrentAmmo = Math.min(maxAmmo, currentAmmo + amount);\n\t}",
"public void refillLife(){\r\n\t\tthis.life = totalLife;\r\n\t}",
"private void repaired() { //active\n activate();\n this.damageState = DamageState.DAMAGED;\n this.setCurrentLife(this.maxLife / REPAIR_LIFE_FACTOR);\n }",
"public void updateAmmo(){\n if(shots >= 9999)\n shots = 9999;\n ammo.setText(\"x\" + String.format(\"%04d\", shots));\n }",
"@Override\r\n\tpublic final void purge() {\r\n\t\tthis.members.clear();\r\n\t\tthis.age++;\r\n\t\tthis.gensNoImprovement++;\r\n\t\tthis.spawnsRequired = 0;\r\n\r\n\t}",
"public void reward(){\n setLastDrop(System.currentTimeMillis());\n collect(1);\n }",
"public void removeAmmo(List<Color> cost)\n {\n ammo.removeAll(cost);\n }",
"public void kill() {\n this.hp = 0;\n }",
"public void downgrade(){\n\n //downgrade a buildings stats \n this.setLevel(this.getLevel() - 1);\n this.setMaxHealth(this.getMaxHealth() - 500);\n this.setHealth(this.getHealth() - 500);\n this.maxCapacity -= 20;\n\n }",
"public void restoreHealth()\r\n {\r\n health = maxHealth;\r\n \r\n say(\"Yay my health is now \" + maxHealth + \"!\");\r\n }",
"private void fullRepaired() { //full life\n this.active = true;\n this.damageState = DamageState.FULL;\n }",
"protected void reset() {\n speed = 2.0;\n max_bomb = 1;\n flame = false;\n }",
"public void reset(){\n\t\t//MyGame.sop(\"Reseting active blood\");\n\t\t\n\t\tint size = bloodActivePool.size;\n\t\twhile(--size >= 0){\n\t\t\tBlood b = bloodActivePool.get(size);\n\t\t\t\t\t\t\n\t\t\tb.setDead();\n\t\t\tbloodActivePool.removeIndex(size);\n\t\t\tbloodPool.add(b);\n\t\t}\n\t\tbloodActivePool.clear();\n\t}",
"public void buyFuel() {\n this.fuelMod++;\n fuelMax += +750 * fuelMod;\n }",
"public void depleteSugar() {\n currentSugar = 0;\n }",
"public void setMailboxCapacity(int capacity) {\r\n\t\t\tthis.mailboxCapacity = capacity;\r\n\t\t}",
"public void setMaxHealth() {\n\t\tthis.maxHealth *= level / 10;\n\t}",
"public void setFuelCapacity(int newCapacity) {\r\n this.fuelCapacity = newCapacity;\r\n }",
"public final void reset() {\n\t\tscore = 0;\n\t\tlives = 10;\n\t\tshields = 3;\n\t}",
"private final void maintain(){\n\t\tif(host.getStrength()>MAINTENANCE_COST){\n\t\t\thost.expend(MAINTENANCE_COST);\n\t\t}\n\t\telse{\n\t\t\tkill();\n\t\t}\n\t}",
"public void setMaxpower(int maxpower) {\n\t\t\r\n\t}",
"public void act()\n {\n // if (claimer ==null){\n // this.setClaim(false);\n //}\n if(claimer == null){\n setClaim(false);\n }\n if (energy>0){\n \n removeEnergy(decayRate);\n\n }\n else {\n // getWorld().removeObject(this);\n\n }\n \n //check the energy decay\n //change size and weight\n //\n }",
"public void refillQuotas(AppEngineJobContext context, MapReduceState mrState, \n List<ShardState> activeShardStates) {\n if (activeShardStates.size() == 0) {\n return;\n }\n \n long lastPollTime = mrState.getLastPollTime();\n long currentPollTime = clock.currentTimeMillis();\n \n int inputProcessingRate = context.getInputProcessingRate();\n long totalQuotaRefill;\n // Initial quota fill\n if (lastPollTime == -1) {\n totalQuotaRefill = inputProcessingRate;\n } else {\n long delta = currentPollTime - lastPollTime;\n totalQuotaRefill = (long) (delta * inputProcessingRate / 1000.0);\n }\n long perShardQuotaRefill = totalQuotaRefill / activeShardStates.size();\n \n QuotaManager manager = new QuotaManager(MemcacheServiceFactory.getMemcacheService());\n for (ShardState activeShardState : activeShardStates) {\n manager.put(activeShardState.getTaskAttemptID().toString(), perShardQuotaRefill);\n }\n mrState.setLastPollTime(currentPollTime); \n }",
"private void decrementOpponentRechargeTimes()\n\t{\n\t\tfor (Map.Entry<Skills, Integer> pair : rechargingOpponentSkills.entrySet())\n\t\t{\n\t\t\tint val = pair.getValue();\n\t\t\tSkills s = pair.getKey();\n\t\t\t\n\t\t\tif (val > 0)\n\t\t\t{\n\t\t\t\trechargingOpponentSkills.put(s, --val);\n\t\t\t}\n\t\t}\n\t}",
"public void dropExperience() {\n\t\tif (experience == 0) return;\n\t\tExperienceOrb orb = location.getWorld().spawn(location, ExperienceOrb.class);\n\t\torb.setExperience(experience);\n\t\texperience = 0;\n\t}",
"public void reset() {\n itemCount = 0;\n stock = new VendItem[maxItems];\n totalMoney = 0;\n userMoney = 0;\n vmStatus = null;\n }",
"private void resetCooldown() {\n nextAttack = tower.getFireFrequency();\n }",
"public void act() \n {\n setLocation(getX(),getY()+1);\n givePower();\n delete();\n }",
"public void resetDamages() {\n damages = new ArrayList<>();\n }",
"private void subtractEnemyMissile() {\n this.enemyMissile -= 1;\n }",
"public void fullyHeal() {\n removeStatus();\n getActualMoves().restoreAllPP();\n healHealthFraction(1);\n }",
"public void act()\n\t{\n\t\tif(getFirstDriver().isAtPump())\n\t\t{\n\t\t\tif(!getFirstDriver().isDoneRefilling())\n\t\t\t{\n\t\t\t\tgetFirstDriver().act(priceOfFuel);\n\t\t\t}\n\t\t}\n\t\telse if(getFirstDriver().isDone())\n\t\t{\n\t\t\tremoveDriver();\n\t\t}\n\t}",
"public void resetHp();",
"public void reduceHealth(int damage){\n health -= damage;\n }",
"void takeDamage(int points) {\n this.health -= points;\n }",
"public void baptism() {\n for (Card targetCard : Battle.getInstance().getActiveAccount().getActiveCardsOnGround().values()) {\n if (targetCard instanceof Minion) {\n targetCard.setHolyBuff(2, 1);\n }\n }\n }",
"private void reclaimSpace(int space)\r\n/* 269: */ {\r\n/* 270:295 */ assert (space >= 0);\r\n/* 271:296 */ this.availableSharedCapacity.addAndGet(space);\r\n/* 272: */ }",
"public void reset() {\n monster.setHealth(10);\n player.setHealth(10);\n\n }",
"public void takeDamage(int damage) {\r\n this.health -= damage;\r\n if(this.health < 0)\r\n this.health = 0;\r\n }",
"public void allocateWeapons() {\n Collections.shuffle(this.getWeaponPieces());\n List<Room> rooms = this.board.getRooms();\n Collections.shuffle(rooms);\n int roomIndex = 0;\n for (WeaponPiece weapon : this.getWeaponPieces()) {\n Room room = rooms.get(roomIndex);\n if (room.getWeaponPiece() == null) {\n room.setWeaponPiece(weapon);\n roomIndex += 1;\n }\n }\n }",
"public void refill(Car car){\n this.gasAmount -= car.capacity;\n System.out.println(gasAmount);\n }",
"public Battery(double initialCapacity) {\r\n capacity = initialCapacity;\r\n originalCapacity = initialCapacity;\r\n }",
"public void reset() {\r\n active.clear();\r\n missioncontrollpieces = GameConstants.PIECES_SET;\r\n rolled = 0;\r\n phase = 0;\r\n round = 0;\r\n action = 0;\r\n }",
"public void resetTask() {\n ShulkerEntity.this.updateArmorModifier(0);\n }",
"public void breath() {\n\t\tif (alive) {\n\t\t\t_age++;\n\t\t\t// Respiration process\n\t\t\tboolean canBreath = useEnergy(Math.min((_mass - _lowmaintenance) / Utils.SEGMENT_COST_DIVISOR, _energy));\n\t\t\tif ((_age >> 8) > _geneticCode.getMaxAge() || !canBreath) {\n\t\t\t\t// It's dead, but still may have energy\n\t\t\t\tdie(null);\n\t\t\t} else {\n\t\t\t\tif (_energy <= Utils.tol) {\n\t\t\t\t\talive = false;\n\t\t\t\t\t_world.decreasePopulation();\n\t\t\t\t\t_world.organismHasDied(this, null);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// The corpse slowly decays\n\t\t\tuseEnergy(Math.min(_energy, Utils.DECAY_ENERGY));\n\t\t}\n\t}",
"public void brake() {\n\t\tsetPower(Motor.STOP);\r\n\t}",
"@Override\n\tpublic void reduceCurrentHp(final double damage, final L2Character attacker, final boolean awake)\n\t{\n\t\t/*\n\t\t * if ((this instanceof L2SiegeGuardInstance) && (attacker instanceof L2SiegeGuardInstance)) //if((this.getEffect(L2Effect.EffectType.CONFUSION)!=null) && (attacker.getEffect(L2Effect.EffectType.CONFUSION)!=null)) return; if ((this instanceof L2MonsterInstance)&&(attacker instanceof\n\t\t * L2MonsterInstance)) if((this.getEffect(L2Effect.EffectType.CONFUSION)!=null) && (attacker.getEffect(L2Effect.EffectType.CONFUSION)!=null)) return;\n\t\t */\n\t\t\n\t\tif (isRaid() && attacker != null && attacker.getParty() != null && attacker.getParty().isInCommandChannel() && attacker.getParty().getCommandChannel().meetRaidWarCondition(this))\n\t\t{\n\t\t\tif (firstCommandChannelAttacked == null) // looting right isn't set\n\t\t\t{\n\t\t\t\tsynchronized (this)\n\t\t\t\t{\n\t\t\t\t\tif (firstCommandChannelAttacked == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tfirstCommandChannelAttacked = attacker.getParty().getCommandChannel();\n\t\t\t\t\t\tif (firstCommandChannelAttacked != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcommandChannelTimer = new CommandChannelTimer(this);\n\t\t\t\t\t\t\tcommandChannelLastAttack = System.currentTimeMillis();\n\t\t\t\t\t\t\tThreadPoolManager.getInstance().scheduleGeneral(commandChannelTimer, 10000); // check for last attack\n\t\t\t\t\t\t\tfirstCommandChannelAttacked.broadcastToChannelMembers(new CreatureSay(0, Say2.PARTYROOM_ALL, \"\", \"You have looting rights!\")); // TODO: retail msg\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (attacker.getParty().getCommandChannel().equals(firstCommandChannelAttacked)) // is in same channel\n\t\t\t{\n\t\t\t\tcommandChannelLastAttack = System.currentTimeMillis(); // update last attack time\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * // CommandChannel if(commandChannelTimer == null && isRaid() && attacker != null) { if(attacker.isInParty() && attacker.getParty().isInCommandChannel() && attacker.getParty().getCommandChannel().meetRaidWarCondition(this)) { firstCommandChannelAttacked = attacker.getParty().getCommandChannel();\n\t\t * commandChannelTimer = new CommandChannelTimer(this, attacker.getParty().getCommandChannel()); ThreadPoolManager.getInstance().scheduleGeneral(_commandChannelTimer, 300000); // 5 min firstCommandChannelAttacked.broadcastToChannelMembers(new CreatureSay(0, Say2.PARTYROOM_ALL, \"\",\n\t\t * \"You have looting rights!\")); } }\n\t\t */\n\t\tif (isEventMob)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Add damage and hate to the attacker AggroInfo of the L2Attackable aggroList\n\t\tif (attacker != null)\n\t\t{\n\t\t\taddDamage(attacker, (int) damage);\n\t\t}\n\t\t\n\t\t// If this L2Attackable is a L2MonsterInstance and it has spawned minions, call its minions to battle\n\t\tif (this instanceof L2MonsterInstance)\n\t\t{\n\t\t\tL2MonsterInstance master = (L2MonsterInstance) this;\n\t\t\t\n\t\t\tif (this instanceof L2MinionInstance)\n\t\t\t{\n\t\t\t\tmaster = ((L2MinionInstance) this).getLeader();\n\t\t\t\t\n\t\t\t\tif (!master.isInCombat() && !master.isDead())\n\t\t\t\t{\n\t\t\t\t\tmaster.addDamage(attacker, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (master.hasMinions())\n\t\t\t{\n\t\t\t\tmaster.callMinionsToAssist(attacker);\n\t\t\t}\n\t\t\t\n\t\t\tmaster = null;\n\t\t}\n\t\t\n\t\t// Reduce the current HP of the L2Attackable and launch the doDie Task if necessary\n\t\tsuper.reduceCurrentHp(damage, attacker, awake);\n\t}",
"private void enlargeCapacity() {\n Object[] tmp = this.container;\n this.container = new Object[this.container.length + this.capacity];\n System.arraycopy(tmp, 0, this.container, 0, tmp.length);\n }",
"public void reset() {\n if (id.equals(new ResourceLocation(\"minecraft:planks\"))) {\n whitelist(Range.closed(0, 5));\n } else\n whitelist(Range.closed(0, 15));\n }",
"public void reloadWeapon(int index) {\n\n Weapon weaponToReload = this.weaponList.get(index);\n\n if (weaponToReload == null)\n throw new IllegalArgumentException(\"No index found\");\n\n ArrayList<Color> cost = weaponToReload.getCost();\n\n\n //first I take the ammo from the player\n this.nBlueAmmo -= Collections.frequency(cost, Color.BLUE);\n this.nRedAmmo -= Collections.frequency(cost, Color.RED);\n this.nYellowAmmo -= Collections.frequency(cost, Color.YELLOW);\n\n //reload the weapon\n this.weaponList.get(index).reload();\n\n }",
"public void move() {\n energy -= 0.03;\n if (energy < 0) {\n energy = 0;\n }\n }",
"public void autosimulateCombat() {\n\n int monstersRemainingHealth = monster.getHealth() - player.getPower();\n int playersRemainingHealth = player.getHealth() - monster.getPower();\n\n while (player.getHealth() > 0 && monster.getHealth() > 0) {\n\n monster.setHealth(monstersRemainingHealth);\n monstersRemainingHealth = monster.getHealth() - player.getPower();\n\n\n player.setHealth(playersRemainingHealth);\n playersRemainingHealth = player.getHealth() - monster.getPower();\n\n }\n isPlayerDefeated();\n return;\n }",
"private void reset() {\n\n\n spaceShips.clear();\n playerOne = null;\n playerTwo = null;\n friendlyBullets.clear();\n enemyBullets.clear();\n powerUps.clear();\n enemyGenerator.reset();\n difficulty.reset();\n Bullets.BulletType.resetSpeed();\n\n for (int i = 0; i < enemies.size(); i++) {\n enemies.get(i).getEnemyImage().delete();\n }\n enemies.clear();\n }",
"public void applyDamage(int damage)\n\t{\n\t\tthis.currHP -= damage;\n\t\tif(currHP <= 0)\n\n\t\t{\n\t\t\tthis.currHP = 0;\n\t\t\tthis.kill();\n\t\t}\n\t\t\t\n\t}",
"public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }",
"public void brake(){\n if (speed <= 0){\n speed = 0;\n }\n else{\n speed -= 5;\n }\n }",
"public void takeDamage()\n {\n if(getWorld()!= null)\n {\n if(this.isTouching(Enemies.class))\n {\n Life = Life - Enemies.damage;\n if(Life <=0)\n {\n getWorld().removeObject(this);\n Store.wealth += Game.credit;\n }\n }\n }\n }",
"public void deductHealth( int amt) {\n currentHealth = currentHealth - amt;\n }",
"public Builder clearMaxMP() {\n bitField0_ = (bitField0_ & ~0x00008000);\n maxMP_ = 0;\n onChanged();\n return this;\n }",
"public void resetDamagedRange() {\r\n fDamagedRange[0] = Integer.MAX_VALUE;\r\n fDamagedRange[1] = Integer.MIN_VALUE;\r\n }",
"public void resetHealth(){\n curHp = healthPoint;\n }",
"public void pulse() {\r\n if (lifepoints < 1) {\r\n return;\r\n }\r\n for (SkillRestoration aRestoration : restoration) {\r\n if (aRestoration != null) {\r\n aRestoration.restore(entity);\r\n }\r\n }\r\n }",
"public void heal(){\n\t\thp += potion.getHpBoost();\n\t\tif(hp > max_hp)hp = max_hp;\n\t}",
"public void changeMaxHealth(int i) {\n \t\tmaxHealthModifier += i;\n \t\tif (getMaxHealth() < 1 ){\n \t\t\thealth = 0;\n \t\t\talive = false;\n \t\t}\n \t\tif (getMaxHealth() < health) {\n \t\t\thealth = getMaxHealth();\n \t\t}\n \t}",
"public void setMaxCapacity(int max) {\n\t\tbuffer = new Object[max];\n\t\tbufferSize = 0;\n\t}",
"@Override\n\tpublic void reduceCurrentHp(final double damage, final L2Character attacker)\n\t{\n\t\treduceCurrentHp(damage, attacker, true);\n\t}",
"private void animateArmor(Client c, int[] usedArmor, int npcId, int hitPoints, int maxHit, int attack, int defence) {\r\n\t\tc.getPA().walkTo(0, 3);\r\n\t\tfor(int i = 0; i < 3; i++) {\r\n\t\t\tc.getItems().deleteItem(usedArmor[i], 1);\r\n\t\t}\r\n\t\tc.spawned = true;\r\n\t\tServer.npcHandler.spawnNpc(c, npcId, xCoord, yCoord, 0, 0, hitPoints, maxHit, attack, defence, true, true);\r\n\t}",
"public void growSugar() {\n if (++sugarGrowBackCounter == SUGAR_GROW_RATE_INTERVAL) {\n currentSugar = Math.min(currentSugar + SUGAR_GROW_BACK_RATE, MAX_SUGAR);\n sugarGrowBackCounter = 0;\n }\n }",
"void bust() {\n\t\t_loses++;\n\t\t//_money -= _bet;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}",
"public void dropNapalm() {\n\t\t// Has player waited cooldown before trying to fire again?\n\t\tif (System.currentTimeMillis() - this.lastFired > Config.WEAPON_COOLDOWN_TIME * 1000) {\n\t\t\tSystem.out.println(player.getDisplayName() + \" is attempting to launch napalm\");\n\t\t\t// Can this airship drop napalm?\n\t\t\tif (this.properties.DROPS_NAPALM) {\n\t\t\t\tBlock[] cannons = getCannons();\n\t\t\t\tint numfiredcannons = 0;\n\t\t\t\tfor (int i = 0; i < cannons.length; i++) {\n\t\t\t\t\tif (cannons[i] != null && cannons[i].getRelative(0, -1, 0).getType().equals(Material.AIR) && cannonHasTnt(cannons[i], Config.NUM_TNT_TO_DROP_NAPALM)) {\n\t\t\t\t\t\tboolean missingMaterial = false;\n\t\t\t\t\t\tfor (int id : Config.MATERIALS_NEEDED_FOR_NAPALM) {\n\t\t\t\t\t\t\tif (!cannonHasItem(cannons[i], id, 1))\n\t\t\t\t\t\t\t\tmissingMaterial = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!missingMaterial && numfiredcannons < this.properties.MAX_NUMBER_OF_CANNONS) {\n\t\t\t\t\t\t\tnumfiredcannons++;\n\t\t\t\t\t\t\tlastFired = System.currentTimeMillis();\n\t\t\t\t\t\t\twithdrawTnt(cannons[i], Config.NUM_TNT_TO_DROP_NAPALM);\n\t\t\t\t\t\t\tfor (int id : Config.MATERIALS_NEEDED_FOR_NAPALM) {\n\t\t\t\t\t\t\t\twithdrawItem(cannons[i], id, 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Fire some napalms TODO: maybe add sound effects for napalm dropping? :P\n\t\t\t\t\t\t\tnew Napalm(cannons[i]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// More cannons on ship than allowed. Not all fired - can break out of loop now.\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.AQUA + \"Some napalm-cannons did not fire. Max cannon limit is \" + ChatColor.GOLD + this.properties.MAX_NUMBER_OF_CANNONS);\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}\n\t\t\t} else\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + this.properties.SHIP_TYPE + \" CANNOT DROP NAPALM\");\n\t\t} else\n\t\t\tplayer.sendMessage(ChatColor.GOLD + \"COOLING DOWN FOR \" + ChatColor.AQUA + (int)(Math.round(6 - (System.currentTimeMillis() - this.lastFired) / 1000)) + ChatColor.GOLD + \" MORE SECONDS\");\n\t}",
"private void takeDamage(int damage){ health -= damage;}",
"public void takeDamage(int dmg){\r\n this.currHP -= dmg;\r\n }",
"public void resetTask() {\n if (ShulkerEntity.this.getAttackTarget() == null) {\n ShulkerEntity.this.updateArmorModifier(0);\n }\n\n }",
"public List<CardPower> pickUpAmmo()throws NoCardAmmoAvailableException {\n List<CardPower> powerups = new ArrayList<>();\n if (position.getCardAmmo() == null){\n throw new NoCardAmmoAvailableException();\n }\n if(position.getCardAmmo()!=null){\n List<Color> ammos = position.getCardAmmo().getAmmo();\n ammos = controlGrabAmmo(ammos);\n ammo.addAll(ammos);\n if(position.getCardAmmo().getCardPower() > 0){\n powerups = new ArrayList<>();\n for(int i=0; i<position.getCardAmmo().getCardPower() && cardPower.size() + i + 1 <= 3; i++)\n powerups.add(game.drawPowerUp());\n cardPower.addAll(powerups);\n }\n game.notifyGrabCardAmmo(this,ammos);\n position.setCardAmmo(null);\n }\n return powerups;\n }",
"public void refill(int amount) {\n myAmount = myAmount + amount;\n }",
"public Builder clearMaxMP() {\n bitField0_ = (bitField0_ & ~0x00000040);\n maxMP_ = 0;\n onChanged();\n return this;\n }"
] | [
"0.6979668",
"0.69775635",
"0.6930596",
"0.6712828",
"0.66549885",
"0.6555044",
"0.64426273",
"0.6314015",
"0.6310295",
"0.61346155",
"0.6128983",
"0.6036882",
"0.60227793",
"0.59654105",
"0.59367657",
"0.59196603",
"0.59047914",
"0.58978003",
"0.58977735",
"0.5861025",
"0.5802685",
"0.58018893",
"0.57963675",
"0.57843924",
"0.57634735",
"0.5758731",
"0.5702297",
"0.57017255",
"0.5688752",
"0.568139",
"0.56766057",
"0.5667751",
"0.5661919",
"0.56521404",
"0.5614446",
"0.55991024",
"0.55956846",
"0.55875623",
"0.5569162",
"0.55628455",
"0.5537696",
"0.55311424",
"0.552017",
"0.5511516",
"0.5511399",
"0.5509239",
"0.55051184",
"0.5496926",
"0.54732615",
"0.5458079",
"0.5456744",
"0.54554456",
"0.54553413",
"0.54513866",
"0.542805",
"0.54227257",
"0.54204834",
"0.5409913",
"0.5405102",
"0.54048234",
"0.54046035",
"0.5402201",
"0.54017824",
"0.5401389",
"0.53964204",
"0.539305",
"0.5382122",
"0.5377382",
"0.53712016",
"0.5370542",
"0.5370521",
"0.5365053",
"0.5362867",
"0.5355832",
"0.53546107",
"0.53529876",
"0.53515744",
"0.53390765",
"0.53367966",
"0.5334384",
"0.5333878",
"0.53338397",
"0.5332748",
"0.5331501",
"0.5330128",
"0.53299505",
"0.531103",
"0.53090745",
"0.53029424",
"0.5302911",
"0.53016335",
"0.5292114",
"0.5289511",
"0.5278751",
"0.5276673",
"0.5274936",
"0.5267391",
"0.52669865",
"0.5265923",
"0.52647525",
"0.52640295"
] | 0.0 | -1 |
when server sends back profile object | @Override
public void onResponse(JSONObject response) {
report = response;
try {
messageSent = report.getString(Const.REPORT_MESSAGE); //Gives profId
chatLog = report.getString(Const.REPORT_CHATLOG); //Gives Chatlog
} catch (JSONException jse) {
// if an error occurs with the JSON, log it
Log.d("Prof_Info_Fill", jse.toString());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Profile getProfile() {\n return _profile;\n }",
"H getProfile();",
"Map<String, Object> getUserProfile();",
"protected Map<String, Object> getUserProfile() {\r\n\t\tTimeRecorder timeRecorder = RequestContext.getThreadInstance()\r\n\t\t\t\t\t\t\t\t\t\t\t\t .getTimeRecorder();\r\n\t\tString profileId = (String)userProfile.get(AuthenticationConsts.KEY_PROFILE_ID);\r\n\r\n\t\tSite site = Utils.getEffectiveSite(request);\r\n\t\tString siteDNSName = (site == null ? null : site.getDNSName());\r\n\r\n\t\tIUserProfileRetriever retriever = UserProfileRetrieverFactory.createUserProfileImpl(AuthenticationConsts.USER_PROFILE_RETRIEVER, siteDNSName);\r\n\t\ttry {\r\n\t\t\ttimeRecorder.recordStart(Operation.PROFILE_CALL);\r\n\t\t\tMap<String, Object> userProfile = retriever.getUserProfile(profileId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t request);\r\n\t\t\ttimeRecorder.recordEnd(Operation.PROFILE_CALL);\r\n\t\t\treturn userProfile;\r\n\t\t} catch (UserProfileException ex) {\r\n\t\t\ttimeRecorder.recordError(Operation.PROFILE_CALL, ex);\r\n\t\t\tRequestContext.getThreadInstance()\r\n\t\t\t\t\t\t .getDiagnosticContext()\r\n\t\t\t\t\t\t .setError(ErrorCode.PROFILE001, ex.toString());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}",
"public String getProfile();",
"public UserProfile getUserProfile() {return userProfile;}",
"public String getProfile() {\n return profile;\n }",
"@java.lang.Override\n public com.google.protobuf2.Any getProfile() {\n return profile_ == null ? com.google.protobuf2.Any.getDefaultInstance() : profile_;\n }",
"com.google.protobuf2.Any getProfile();",
"public Profile getProfile() {\n return m_profile;\n }",
"HumanProfile getUserProfile();",
"String getProfile();",
"@java.lang.Override\n public com.google.protobuf2.AnyOrBuilder getProfileOrBuilder() {\n return getProfile();\n }",
"public interface UpdateProfileResponse {\n\n\n}",
"public ProjectProfileBO getProfile()\r\n {\r\n return mProfile;\r\n }",
"public void getProfileInformation() {\n\t\tmAsyncRunner.request(\"me\", new RequestListener() {\n\t\t\t@Override\n\t\t\tpublic void onComplete(String response, Object state) {\n\t\t\t\tLog.d(\"Profile\", response);\n\t\t\t\tString json = response;\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject profile = new JSONObject(json);\n\t\t\t\t\tLog.d(\"Arvind Profile Data\", \"\"+profile.toString());\n\t\t\t\t\tfinal String name = profile.getString(\"name\");\n\t\t\t\t\tfinal String email = profile.getString(\"email\");\n\t\t\t\t\tHashMap<String, String> hashMap = new HashMap<String, String>();\n\n\t\t\t\t\thashMap.put(\"first_name\", profile.getString(\"first_name\"));\n\n\t\t\t\t\thashMap.put(\"last_name\", profile.getString(\"last_name\"));\n\n\t\t\t\t\thashMap.put(\"id\", profile.getString(\"id\"));\n\n\t\t\t\t\thashMap.put(\"gender\", profile.getString(\"gender\"));\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\thashMap.put(\"email\", profile.getString(\"email\"));\n\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\n\t\t\t\t\thashMap.put(\"birthday\", profile.getString(\"birthday\"));\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t//\tGetAlbumdata();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tIntent returnIntent = new Intent();\n\t\t\t\t\treturnIntent.putExtra(\"map\", hashMap);\n\t\t\t\t\tsetResult(RESULT_OK,returnIntent);\n\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFileNotFoundException(FileNotFoundException e,\n\t\t\t\t\tObject state) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onMalformedURLException(MalformedURLException e,\n\t\t\t\t\tObject state) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFacebookError(FacebookError e, Object state) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t});\n\t}",
"public KunKunProfile getProfile() {\n\t\tObject temp;\n//\t\tif (profile == null || profile.getUserData() == null\n//\t\t\t\t|| profile.getUserData().id == -1) {// nghia la bien o trang\n//\t\t\t\t\t\t\t\t\t\t\t\t\t// thai ban dau hoac da bi\n//\t\t\t\t\t\t\t\t\t\t\t\t\t// reset\n//\t\t\tif ((temp = KunKunUtils.readObject(\n//\t\t\t\t\tKunKunProfile.KUNKUN_PROFILE)) != null) {\n//\t\t\t\tprofile = (KunKunProfile) temp;// bi out memory\n//\t\t\t\tSystem.setProperty(\"networkaddress.cache.ttl\",\"0\");\n//\t\t\t\tSystem.setProperty(\"networkaddress.cache.negative.ttl\" , \"0\");\n//\t\t\t}\n//\t\t}\n\t\treturn profile;\n\t}",
"public static Profile getProfile() {\n return profile;\n }",
"TasteProfile.UserProfile getUserProfile (String user_id);",
"public Boolean getProfile()\n {\n return profile;\n }",
"public com.google.protobuf2.Any getProfile() {\n if (profileBuilder_ == null) {\n return profile_ == null ? com.google.protobuf2.Any.getDefaultInstance() : profile_;\n } else {\n return profileBuilder_.getMessage();\n }\n }",
"public EntityProfile getProfile()\n\t{\n\t\treturn m_profile;\n\t}",
"public interface OnProfileFetched {\n\tvoid onProfileFetched(String profile);\n}",
"public void setUserProfile(UserProfile userProfile) {this.userProfile = userProfile;}",
"Profile getProfile( String profileId );",
"public void callForProfileData(){\n socket.emit(\"user\");\n }",
"public int getProfile_id() {\n return profileID;\n }",
"private void callUpdateProfile() {\n String userStr = CustomSharedPreferences.getPreferences(Constants.PREF_USER_LOGGED_OBJECT, \"\");\n Gson gson = new Gson();\n User user = gson.fromJson(userStr, User.class);\n LogUtil.d(\"QuyNT3\", \"Stored profile:\" + userStr +\"|\" + (user != null));\n //mNameEdt.setText(user.getName());\n String id = user.getId();\n String oldPassword = mOldPassEdt.getText().toString();\n String newPassword = mNewPassEdt.getText().toString();\n String confirmPassword = mConfirmPassEdt.getText().toString();\n String fullName = mNameEdt.getText().toString();\n String profileImage = user.getProfile_image();\n UpdateUserProfileRequest request = new UpdateUserProfileRequest(id, fullName, profileImage,\n oldPassword, newPassword, confirmPassword);\n request.setListener(callBackEvent);\n new Thread(request).start();\n }",
"public void saveProfileCreateData() {\r\n\r\n }",
"public void setProfile(Profile profile) {\n _profile = profile;\n }",
"protected Map getProfileMap() {\n \t\t\treturn profileMap;\n \t\t}",
"public com.google.protobuf2.AnyOrBuilder getProfileOrBuilder() {\n if (profileBuilder_ != null) {\n return profileBuilder_.getMessageOrBuilder();\n } else {\n return profile_ == null ?\n com.google.protobuf2.Any.getDefaultInstance() : profile_;\n }\n }",
"public interface Profile extends Model {\n /**\n * The fields that represent the Profile object in json form. <p/> </p>\n */\n public static enum Field {\n /**\n * The json field for identityId.\n */\n IDENTITY_ID(\"identityId\"),\n\n /**\n * The json field for fullName.\n */\n FULL_NAME(\"fullName\"),\n\n /**\n * The json field for avatarUrl.\n */\n AVATAR_URL(\"avatarUrl\");\n\n /**\n * The json field that the instance represents.\n */\n private final String jsonString;\n\n /**\n * Creates a field base on the a json element.\n *\n * @param jsonString the name of the element\n */\n private Field(String jsonString) {\n this.jsonString = jsonString;\n }\n\n /**\n * Emits the field as a json element.\n *\n * @return the field name\n */\n @Override\n public String toString() {\n return jsonString;\n }\n }\n\n /**\n * Gets the identity id associated with this profile.\n *\n * @return the identity id\n */\n String getIdentityId();\n\n /**\n * Sets the identity id associated with this profile.\n *\n * @param identityId the identity id\n */\n void setIdentityId(String identityId);\n\n /**\n * Gets the full name of the associated identity.\n *\n * @return the full name\n */\n String getFullName();\n\n /**\n * Sets the full name of the associated identity.\n *\n * @param fullName the full name\n */\n void setFullName(String fullName);\n\n /**\n * Gets the avatar url of the associated identity.\n *\n * @return the avatar url\n */\n String getAvatarUrl();\n\n /**\n * Sets the avatar url of the associated identity.\n *\n * @param avatarUrl the avatar url\n */\n void setAvatarUrl(String avatarUrl);\n\n}",
"public void getProfileInformation() {\n\n\t\t mAsyncRunner.request(\"me\", new RequestListener() {\n\t\t\t @Override\n\t\t\t public void onComplete(String response, Object state) {\n\t\t\t\t Log.d(\"Profile\", response);\n\t\t\t\t String json = response;\n\t\t\t\t try {\n\t\t\t\t\t // Facebook Profile JSON data\n\t\t\t\t\t JSONObject profile = new JSONObject(json);\n\n\t\t\t\t\t uName = profile.getString(\"name\");\n\t\t\t\t\t uMail = profile.getString(\"email\");\n\t\t\t\t\t //uGender=profile.getString(\"gender\");\n\n\n\t\t\t\t\t //final String birthday=profile.getString(\"birthday\");\n\t\t\t\t\t runOnUiThread(new Runnable() {\n\t\t\t\t\t\t @Override\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\t //Toast.makeText(getApplicationContext(), \"Name: \" + name + \"\\nEmail: \" + email+\"\\nGender: \"+gender, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t getResponse();\n\t\t\t\t\t\t }\n\t\t\t\t\t });\n\t\t\t\t } \n\t\t\t\t catch (JSONException e) \n\t\t\t\t {\n\t\t\t\t\t errorMessage = \"JSON Error Occured\";\n\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t }\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onIOException(IOException e, Object state) {\n\t\t\t\t errorMessage = \"Facebook Data read Error Occured\";\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onFileNotFoundException(FileNotFoundException e, Object state) {\n\t\t\t\t errorMessage = \"Facebook Image read Error Occured\";\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onMalformedURLException(MalformedURLException e,\n\t\t\t\t\t Object state) {\n\t\t\t\t errorMessage = \"Facebook URL Error Occured\";\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onFacebookError(FacebookError e, Object state) {\n\t\t\t\t errorMessage = \"Facebook Error Occured OnFacebook\";\n\t\t\t }\n\t\t });\n\t }",
"com.google.protobuf2.AnyOrBuilder getProfileOrBuilder();",
"private void getProfil() {\n Call<FeedUser> call = baseApiService.getAllProfile(sessionManager.getSpContenttype(),\n sessionManager.getSpAccept(), sessionManager.getSpAuthorization());\n call.enqueue(new Callback<FeedUser>() {\n @Override\n public void onResponse(Call<FeedUser> call, Response<FeedUser> response) {\n if (response.isSuccessful()) {\n try {\n name = response.body().getDataProfil().getName().toString();\n email = response.body().getDataProfil().getEmail();\n initComponetNavHeader();\n } catch (Exception e) {\n Log.d(TAG, \" error :\" + e);\n }\n\n } else {\n Toast.makeText(SettingActivity.this, \"Response not success\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<FeedUser> call, Throwable t) {\n Toast.makeText(SettingActivity.this, \"Cek Connection\", Toast.LENGTH_SHORT).show();\n }\n });\n }",
"@Override\n\tpublic ProfileInfo getProfileInfo() {\n\t\treturn (ProfileInfo)map.get(PROFILE_INFO);\n\t}",
"public UserModel getUserProfile(){\n\n UserAPI userAPI = RetrofitUrl.getInstance().create(UserAPI.class);\n Call<UserModel> usersCall = userAPI.getUserProfile(RetrofitUrl.token);\n\n usersCall.enqueue(new Callback<UserModel>() {\n @Override\n public void onResponse(Call<UserModel> call, Response<UserModel> response) {\n if(!response.isSuccessful()){\n Toast.makeText(MainActivity.this, \"Error loading profile!!\", Toast.LENGTH_SHORT).show();\n return;\n }\n userProfile = response.body();\n showdetail(userProfile.getFullName());\n getBalanceDetail(userProfile);\n refresh(5000);\n }\n\n @Override\n public void onFailure(Call<UserModel> call, Throwable t) {\n Toast.makeText(MainActivity.this, \"Error loading profile...\", Toast.LENGTH_SHORT).show();\n\n }\n });\n return userProfile;\n }",
"public UserProfile getUserProfile(String username);",
"public MetadataProfile getProfile() {\n\t\treturn profile;\n\t}",
"private User retrievePersonalProfileData() {\n if (checkIfProfileExists()) {\n return SharedPrefsUtils.convertSharedPrefsToUserModel(context);\n } else {\n return null;\n }\n }",
"public ProfileImage getProfileImage() {\n return profileImage;\n }",
"public ProfileService profile() {\n return service;\n }",
"private void getProfile() {\n if (this.mLocalProfile.isEmpty()) {\n getDeviceType();\n getDeviceName();\n getScreenResolution();\n getScreenSize();\n }\n }",
"@ModelNodeBinding(detypedName = \"profile\")\n\tpublic String profile() {\n\t\treturn this.profile;\n\t}",
"protected void load(Profile profile) {\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.entering(sourceClass, \"load\", profile);\n\t\t}\n\t\t// Do a cache lookup first. If cache miss, make a network call to get\n\t\t// Profile\n\t\tDocument data = getProfileDataFromCache(profile.getReqId());\n\t\tif (data != null) {\n\t\t\tprofile.setData(data);\n\t\t} else {\n\n\t\t\tMap<String, String> parameters = new HashMap<String, String>();\n\t\t\tif (isEmail(profile.getReqId())) {\n\t\t\t\tparameters.put(\"email\", profile.getReqId());\n\t\t\t} else {\n\t\t\t\tparameters.put(\"userid\", profile.getReqId());\n\t\t\t}\n\t\t\tObject result = null;\n\t\t\ttry {\n\t\t\t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n\t\t\t\t\t\tProfileType.GETPROFILE.getProfileType());\n\t\t\t\tresult = endpoint.xhrGet(url, parameters, ClientService.FORMAT_XML);\n\t\t\t} catch (ClientServicesException e) {\n\t\t\t\tlogger.log(Level.SEVERE, \"Error while loading a profile\", e);\n\t\t\t\tresult = null;\n\t\t\t}\n\n\t\t\tif (result != null) {\n\t\t\t\tprofile.setData((Document) result);\n\t\t\t\taddProfileDataToCache(profile.getUniqueId(), (Document) result);\n\t\t\t} else {\n\t\t\t\tprofile.setData(null);\n\t\t\t}\n\n\t\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\t\tlogger.exiting(sourceClass, \"load\");\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void onConnected(Bundle bundle) {\n getProfileInformation();\n }",
"@Override\n\tpublic String execute(ServletRequest req, ServletResponse res, Object model) {\n\t\tProfileModel pModel=null;\n\t\tProfileService service=null;\n\t\tProfileDTO dto=null;\n\t\tpModel=(ProfileModel) model;\n\t\tProfileVO vo=null;\n\t\t//use service\n\t\ttry{\n\t\t\tservice=new ProfileServiceImpl();\n\t\t\tdto=service.viewProfile(pModel.getPid());\n\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturn \"error\";\n\t\t}\n\t\t// convert ProfileDTO to ProfileVO\n\t\tvo=new ProfileVO();\n\t\tvo.setProfileId(String.valueOf(dto.getProfileid()));\n\t\tvo.setProfileName(dto.getProfileName());\n\t\tvo.setEmail(dto.getEmail());\n\t\tvo.setAge(String.valueOf(dto.getAge()));\n\t\t//keep vo class object in request scope\n\t\treq.setAttribute(\"profileInfo\",vo);\n\t\t//return Logical view name\n\t\treturn \"show\";\n\t}",
"public byte[] getProfilePicture(){\n return profile_picture;\n }",
"protected void load(Profile profile) throws ProfileServiceException{\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.entering(sourceClass, \"load\", profile);\n \t\t}\n \t\t// Do a cache lookup first. If cache miss, make a network call to get\n \t\t// Profile\n \t\t\n \t\tDocument data = getProfileDataFromCache(profile.getReqId());\n \t\tif (data != null) {\n \t\t\tprofile.setData(data);\n \t\t} else {\n \n \t\t\tMap<String, String> parameters = new HashMap<String, String>();\n \t\t\tif (isEmail(profile.getReqId())) {\n \t\t\t\tparameters.put(\"email\", profile.getReqId());\n \t\t\t} else {\n \t\t\t\tparameters.put(\"userid\", profile.getReqId());\n \t\t\t}\n \t\t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n \t\t\t\t\tProfileType.GETPROFILE.getProfileType());\n \t\t\tObject result = executeGet(url, parameters, ClientService.FORMAT_XML);\n \n \t\t\tif (result != null) {\n \t\t\t\tprofile.setData((Document) result);\n \t\t\t\taddProfileDataToCache(profile.getUniqueId(), (Document) result);\n \t\t\t} else {\n \t\t\t\tprofile.setData(null);\n \t\t\t}\n \n \t\t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\t\tlogger.exiting(sourceClass, \"load\");\n \t\t\t}\n \t\t}\n \t}",
"public Profile getProfile(String id) {\r\n\t\tString uuid = id;\r\n\t\tSystem.out.println(\"MineshafterProfileClient.getProfile(\" + uuid + \")\");\r\n\t\tURL u;\r\n\t\ttry {\r\n\t\t\tu = new URL(API_URL + \"?uuid=\" + id);\r\n\r\n\t\t\tHttpsURLConnection conn = (HttpsURLConnection) u.openConnection();\r\n\r\n\t\t\tInputStream in = conn.getInputStream();\r\n\t\t\tString profileJSON = Streams.toString(in);\r\n\t\t\tStreams.close(in);\r\n\r\n\t\t\tSystem.out.println(\"MS API Response: \" + profileJSON);\r\n\r\n\t\t\tif (profileJSON == null || profileJSON.length() == 0) { return new Profile(); }\r\n\r\n\t\t\tJsonObject pj = JsonObject.readFrom(profileJSON);\r\n\r\n\t\t\tProfile p = new Profile(pj.get(\"username\").asString(), uuid);\r\n\t\t\tJsonValue skinVal = pj.get(\"skin\");\r\n\t\t\tJsonValue capeVal = pj.get(\"cape\");\r\n\t\t\tJsonValue modelVal = pj.get(\"model\");\r\n\r\n\t\t\tString url;\r\n\t\t\tif (skinVal != null && !skinVal.isNull() && !skinVal.asString().isEmpty()) {\r\n\t\t\t\turl = textureHandler.addSkin(uuid, skinVal.asString());\r\n\t\t\t\tp.setSkin(url);\r\n\t\t\t}\r\n\r\n\t\t\tif (capeVal != null && !capeVal.isNull() && !capeVal.asString().isEmpty()) {\r\n\t\t\t\turl = textureHandler.addCape(uuid, capeVal.asString());\r\n\t\t\t\tp.setCape(url);\r\n\t\t\t}\r\n\r\n\t\t\tif (modelVal != null && !modelVal.isNull()) {\r\n\t\t\t\tString model = modelVal.asString();\r\n\t\t\t\tif (model.equals(\"slim\")) {\r\n\t\t\t\t\tp.setModel(CharacterModel.SLIM);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tp.setModel(CharacterModel.CLASSIC);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn p;\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.out.println(\"Unable to parse getProfile response, using blank profile\");\r\n\t\t\treturn new Profile();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn new Profile();\r\n\t}",
"org.beangle.security.session.protobuf.Model.Profile getProfiles(int index);",
"public ProfileService getProfileService()\n {\n return profileService;\n }",
"public String fetchProfile() throws Exception {\n\n\t\tsuper.setPageTitle(\"label.menu.group.store\");\n\t\tMerchantStore profile = null;\n\n\t\ttry {\n\n\t\t\tContext ctx = (Context) super.getServletRequest().getSession()\n\t\t\t\t\t.getAttribute(ProfileConstants.context);\n\t\t\tInteger merchantid = ctx.getMerchantid();\n\n\t\t\tMerchantService mservice = (MerchantService) ServiceFactory\n\t\t\t\t\t.getService(ServiceFactory.MerchantService);\n\t\t\tprofile = mservice.getMerchantStore(merchantid.intValue());\n\t\t\t\n\t\t\tString user = super.getPrincipal().getRemoteUser();\n\t\t\tMerchantUserInformation userInfo = mservice.getMerchantUserInformation(user);\n\n\t\t\t//MerchantUserInformation userInfo = mservice\n\t\t\t//\t\t.getMerchantUserInfo(merchantid.intValue());\n\n\t\t\tif (profile == null) {// should be created from the original\n\t\t\t\t\t\t\t\t\t// subscribtion process\n\t\t\t\tprofile = new MerchantStore();\n\t\t\t\tString serverName = super.getServletRequest().getServerName();\n\t\t\t\tint serverPort = super.getServletRequest().getServerPort();\n\t\t\t\t\n\t\t\t\tif(serverPort>0) {\n\t\t\t\t\tserverName = serverName + \":\" + String.valueOf(serverPort);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tprofile.setDomainName(serverName);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tprofile.setTemplateModule(CatalogConstants.DEFAULT_TEMPLATE);\n\n\t\t\t}\n\n\t\t\tif (profile.getSupportedlanguages() != null\n\t\t\t\t\t&& !profile.getSupportedlanguages().equals(\"\")) {\n\n\t\t\t\tLanguageHelper.setLanguages(profile.getSupportedlanguages(),\n\t\t\t\t\t\tctx);\n\t\t\t\tMap m = ctx.getSupportedlang();\n\t\t\t\tif (m != null && m.size() > 0) {\n\t\t\t\t\tSet s = m.keySet();\n\t\t\t\t\tIterator i = s.iterator();\n\t\t\t\t\twhile (i.hasNext()) {\n\t\t\t\t\t\tString key = (String) i.next();\n\t\t\t\t\t\tsupportedLanguages.add(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// set at least the user country code\n\t\t\tif (profile.getCountry() == 0) {\n\t\t\t\tprofile.setCountry(userInfo.getUsercountrycode());\n\t\t\t}\n\t\t\t// set a default background\n\t\t\tif (profile.getBgcolorcode() == 0) {\n\t\t\t\tprofile.setBgcolorcode(1);\n\t\t\t}\n\n\t\t\tif (profile.getStoreaddress() == null) {\n\t\t\t\tprofile.setStoreaddress(userInfo.getUseraddress());\n\t\t\t}\n\n\t\t\tif (profile.getStorecity() == null) {\n\t\t\t\tprofile.setStorecity(userInfo.getUsercity());\n\t\t\t}\n\n\t\t\tif (profile.getStorepostalcode() == null) {\n\t\t\t\tprofile.setStorepostalcode(userInfo.getUserpostalcode());\n\t\t\t}\n\n\t\t\tif (profile.getBgcolorcode() == 0) {\n\t\t\t\tprofile.setBgcolorcode(new Integer(1));// set to white\n\t\t\t}\n\n\t\t\tprofile.setTemplateModule(profile.getTemplateModule());\n\n\t\t\tDate businessDate = profile.getInBusinessSince();\n\t\t\tif (businessDate == null) {\n\t\t\t\tbusinessDate = new Date();\n\t\t\t}\n\t\t\tthis.setInBusinessSince(DateUtil.formatDate(businessDate));\n\n\t\t\tsuper.prepareSelections(profile.getCountry());\n\n\t\t\tthis.merchantProfile = profile;\n\t\t\treturn SUCCESS;\n\n\t\t} catch (Exception e) {\n\t\t\tMessageUtil.addErrorMessage(super.getServletRequest(), LabelUtil\n\t\t\t\t\t.getInstance().getText(\"errors.technical\"));\n\t\t\tlog.error(e);\n\t\t\treturn ERROR;\n\t\t}\n\t}",
"public URI getProfile() { \n\t\treturn getProfileElement().getValue();\n\t}",
"public Profile() {}",
"public String getUserProfileAction()throws Exception{\n\t\tMap<String, Object> response=null;\n\t\tString responseStr=\"\";\n\t\tString userName=getSession().get(\"username\").toString();\n\t\tresponse = getService().getUserMgmtService().getUserProfile(userName);\n\t\tresponseStr=response.get(\"username\").toString()+\"|\"+response.get(\"firstname\").toString()+\"|\"+response.get(\"lastname\").toString()+\"|\"+response.get(\"emailid\")+\"|\"+response.get(\"role\");\n\t\tgetAuthBean().setResponse(responseStr);\n\t\tgetSession().putAll(response);\n\t\tinputStream = new StringBufferInputStream(responseStr);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}",
"@Override\n public void onConnected(@Nullable Bundle bundle) {\n getProfileInformation();\n }",
"@ApiModelProperty(value = \"Optional profile hint to the client to differentiate multiple MediaUrl objects from each other\")\n @JsonProperty(\"profile\")\n public String getProfile() {\n return profile;\n }",
"@Override\r\n\tpublic ProfileApi getProfileApi() {\r\n\t\treturn this;\r\n\t}",
"protected void mapUserProfile2SSOUser() {\r\n\t\tssoUser.setProfileId((String)userProfile.get(AuthenticationConsts.KEY_PROFILE_ID));\r\n\t\tssoUser.setUserName((String)userProfile.get(AuthenticationConsts.KEY_USER_NAME));\r\n\t\tssoUser.setEmail((String)userProfile.get(AuthenticationConsts.KEY_EMAIL));\r\n\t\tssoUser.setFirstName((String)userProfile.get(AuthenticationConsts.KEY_FIRST_NAME));\r\n\t\tssoUser.setLastName((String)userProfile.get(AuthenticationConsts.KEY_LAST_NAME));\r\n\t\tssoUser.setCountry((String)userProfile.get(AuthenticationConsts.KEY_COUNTRY));\r\n\t\tssoUser.setLanguage((String)userProfile.get(AuthenticationConsts.KEY_LANGUAGE));\r\n\t\tssoUser.setTimeZone((String)userProfile.get(AuthenticationConsts.KEY_TIMEZONE));\r\n\t\tssoUser.setLastChangeDate((Date)userProfile.get(AuthenticationConsts.KEY_LAST_CHANGE_DATE));\r\n\t\tssoUser.setLastLoginDate((Date)userProfile.get(AuthenticationConsts.KEY_LAST_LOGIN_DATE));\r\n\t\t// Set current site, it will be used to update user's primary site\r\n\t\tssoUser.setCurrentSite(AuthenticatorHelper.getPrimarySiteUID(request));\r\n\t}",
"public List<T> getProfiles();",
"@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Profile getProfiles(int index) {\n return profiles_.get(index);\n }",
"@Override\n\tpublic String handleRequest(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString returnURL = \"/user/profile.jsp\";\n\t\t\n\t\tMemberDAOImpl dao = new MemberDAOImpl();\n\t\tMember vo = new Member();\n\t\tResume rVo=new Resume();\n\t\tHttpSession session=request.getSession();\n\t\tString email=(String) session.getAttribute(\"email\");\n\t\tint uid=(Integer)session.getAttribute(\"uid\");\n\t\tSystem.out.println(\"현재 세션:\"+email);\n\t\tvo.setuEmail(email);\n\t\tvo.setUserId(uid);\n\t\t\n\t\t\n\t\ttry {\n\t\t\tvo=dao.listAll(vo);\n\t\t\trVo=dao.listResume(vo);\n\t\t\trequest.setAttribute(\"data\", vo);\n\t\t\trequest.setAttribute(\"resume\", rVo);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn returnURL;\n\t}",
"public void setProfile(Profile profile) {\n\t\tthis.profile = profile;\n\t}",
"POGOProtos.Rpc.PlayerPublicProfileProto getPublicProfile();",
"private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi\n .getCurrentPerson(mGoogleApiClient);\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = currentPerson.getImage().getUrl();\n String personGooglePlusProfile = currentPerson.getUrl();\n String id = currentPerson.getId();\n String email = Plus.AccountApi.getAccountName(mGoogleApiClient);\n\n Log.e(TAG, \"Id: \"+id+\", Name: \" + personName + \", plusProfile: \"\n + personGooglePlusProfile + \", email: \" + email\n + \", Image: \" + personPhotoUrl);\n signInTask = new AsyncTask(mBaseActivity);\n signInTask.execute(id, email, personName);\n// SharedPreferences preferences = mBaseActivity.getSharedPreferences(\"com.yathams.loginsystem\", MODE_PRIVATE);\n// preferences.edit().putString(\"email\", email).putString(\"userName\", personName).commit();\n\n } else {\n Toast.makeText(getApplicationContext(),\n \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"RosterProfile rosterProfile();",
"public interface ProfileInteraction {\n public void setProfileData(String id, String username);\n// public void checkProfile();\n}",
"void setUserProfile(Map<String, Object> profile);",
"java.util.List<org.beangle.security.session.protobuf.Model.Profile>\n getProfilesList();",
"@Override\n public void loadProfileUserData() {\n mProfilePresenter.loadProfileUserData();\n }",
"private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi\n .getCurrentPerson(mGoogleApiClient);\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = currentPerson.getImage().getUrl();\n String personGooglePlusProfile = currentPerson.getUrl();\n String email = Plus.AccountApi.getAccountName(mGoogleApiClient);\n\n Log.e(TAG, \"Name: \" + personName + \", plusProfile: \"\n + personGooglePlusProfile + \", email: \" + email\n + \", Image: \" + personPhotoUrl);\n\n Toast.makeText(context, personName + \"\\n\" + email, Toast.LENGTH_SHORT).show();\n\n /*txtName.setText(personName);\n txtEmail.setText(email);*/\n\n // by default the profile url gives 50x50 px image only\n // we can replace the value with whatever dimension we want by\n // replacing sz=X\n /*personPhotoUrl = personPhotoUrl.substring(0,\n personPhotoUrl.length() - 2)\n + PROFILE_PIC_SIZE;\n\n new LoadProfileImage(imgProfilePic).execute(personPhotoUrl);*/\n\n } else {\n Toast.makeText(context,\n \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onChanged(@Nullable final Profile profile) {\n userProfile = profile;\n }",
"@objid (\"d7af9849-7951-4020-8339-9057fcec6b89\")\n Profile getOwnerProfile();",
"public interface SendProfileCallBack {\n\n void onFailure();\n void onSuccess(ProfileSendData profileSendData);\n\n\n\n}",
"@Override\n\tpublic void showProfile() {\n\t\t\n\t}",
"@Override\n public void Mesibo_onProfileUpdated(MesiboProfile profile) {\n toast(profile.getName() + \" has updated profile\");\n }",
"public String toString() {\r\n\t\treturn profileName;\r\n\t}",
"public abstract VisitorProfile save(VisitorProfile profile);",
"public CustomerProfile getCustomerProfile();",
"private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi\n .getCurrentPerson(mGoogleApiClient);\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = null;\n if(currentPerson.getImage().getUrl() != null){\n \tpersonPhotoUrl = currentPerson.getImage().getUrl();\n }else{\n \tpersonPhotoUrl = \"\";\n }\n String personGooglePlusProfile = currentPerson.getUrl();\n String gplusemail = Plus.AccountApi.getAccountName(mGoogleApiClient);\n \n Log.e(TAG, \"Name: \" + personName + \", plusProfile: \"\n + personGooglePlusProfile + \", email: \" + email\n + \", Image: \" + personPhotoUrl);\n \n user_id = currentPerson.getId();\n profile_image = personPhotoUrl;\n profile_url = personGooglePlusProfile;\n name = personName;\n this.email = gplusemail;\n \n /* txtName.setText(personName);\n txtEmail.setText(email);*/\n \n // by default the profile url gives 50x50 px image only\n // we can replace the value with whatever dimension we want by\n // replacing sz=X\n personPhotoUrl = personPhotoUrl.substring(0,\n personPhotoUrl.length() - 2)\n + PROFILE_PIC_SIZE;\n \n // new LoadProfileImage(imgProfilePic).execute(personPhotoUrl);\n \n Thread t = new Thread()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tJSONObject obj = new JSONObject();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tobj.put(\"uid\", user_id);\n\t\t\t\t\t\t\tobj.put(\"email\", email);\n\t\t\t\t\t\t\tobj.put(\"profile_url\", profile_url);\n\t\t\t\t\t\t\tobj.put(\"name\", name);\n\t\t\t\t\t\t\tobj.put(\"profile_image\", profile_image);\n\t\t\t\t\t\t\tobj.put(\"type\", \"google\");\n\t\t\t\t\t\t\tobj.put(\"device_id\", app.getDeviceInfo().device_id);\n\t\t\t\t\t\t\tobj.put(\"device_type\", \"android\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString response = HttpClient.getInstance(getApplicationContext()).SendHttpPost(Constant.SOCIAL_LOGIN, obj.toString());\n\t\t\t\t\t\t\tif(response != null){\n\t\t\t\t\t\t\t\tJSONObject ob = new JSONObject(response);\n\t\t\t\t\t\t\t\tif(ob.getBoolean(\"status\")){\n\t\t\t\t\t\t\t\t\tString first_name = ob.getString(\"first_name\");\n\t\t\t\t\t\t\t\t\tString last_name = ob.getString(\"last_name\");\n\t\t\t\t\t\t\t\t\tString user_id = ob.getString(\"user_id\");\n\t\t\t\t\t\t\t\t\tString reservation_type = ob.getString(\"reservation_type\");\n\t\t\t\t\t\t\t\t\tboolean checkin_status = ob.getBoolean(\"checkin_status\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tString rev_id = null,reservation_code = null;\n\t\t\t\t\t\t\t\t\tJSONArray object = ob.getJSONArray(\"reservation_detail\");\n\t\t\t\t\t\t\t\t\tfor(int i = 0;i<object.length();i++){\n\t\t\t\t\t\t\t\t\t\trev_id = object.getJSONObject(i).getString(\"reservation_id\");\n\t\t\t\t\t\t\t\t\t\treservation_code = object.getJSONObject(i).getString(\"reservation_code\");\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\t\t\tapp.getUserInfo().SetUserInfo(first_name,\n\t\t\t\t\t\t\t\t\t\t\tlast_name,\n\t\t\t\t\t\t\t\t\t\t\tuser_id,\n\t\t\t\t\t\t\t\t\t\t\trev_id,\n\t\t\t\t\t\t\t\t\t\t\treservation_code,\n\t\t\t\t\t\t\t\t\t\t\treservation_type,\n\t\t\t\t\t\t\t\t\t\t\tcheckin_status);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tapp.getLogininfo().setLoginInfo(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tUpdateUiResult(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\tt.start();\n \n } else {\n Toast.makeText(getApplicationContext(),\n \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic Profile getProfile(Users user) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Profile getProfile(long profileId) {\n\t\treturn null;\n\t}",
"@WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getUserProfile\",\n operationName=\"getUserProfile\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfile\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfileResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String getUserProfile(@WebParam(mode = WebParam.Mode.IN, name=\"profileInformation\")\n String profileInformation) throws ServiceException;",
"public String getProfileAttribute() {\r\r\n\t\treturn _profileAttribute;\r\r\n\t}",
"ApplicationProfile getApplicationProfile();",
"@RequestMapping(value = { \"/profiles/\" }, method = RequestMethod.GET)\n public ResponseEntity<List<ProfileVO>> listProfiles() {\n\n List<Profile> profileList = service.findAllProfiles();\n List<ProfileVO> profileVOList = new ArrayList<>();\n profileList.forEach( profile -> {\n ProfileVO profileVO = new ProfileVO();\n profileVO.setId(profile.getId());\n profileVO.setFirstName(profile.getFirstName());\n profileVO.setLastName(profile.getLastName());\n profileVO.setBirthDate(profile.getBirthDate());\n profileVO.setSex(profile.getSex());\n profileVO.setEmailAddress(profile.getEmailAddress());\n if(profile.getProfilePhoto()!=null) {\n FileBucket fileBucket = new FileBucket();\n profileVO.setPhoto(fileBucket);\n try {\n byte[] encodeBase64ForProfilePhoto = Base64.encodeBase64(profile.getProfilePhoto());\n String base64EncodedForProfile = new String(encodeBase64ForProfilePhoto, \"UTF-8\");\n profileVO.setBase64Encoded(base64EncodedForProfile);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n profileVOList.add(profileVO);\n });\n\n return new ResponseEntity<List<ProfileVO>>(profileVOList, HttpStatus.OK);\n }",
"public static Profile parseSingleProfile(JSONObject jsonProfile) throws JSONException {\n // Create a new Profile object and fill the attributes from the API in.\n Profile profile = new Profile(jsonProfile.getString(\"name\"));\n\n profile.setIcon(jsonProfile.getString(\"icon\"));\n profile.setUsername(jsonProfile.getString(\"name\"));\n profile.setLevel(Integer.toString(jsonProfile.getInt(\"level\")));\n profile.setRating(Integer.toString(jsonProfile.getInt(\"rating\")));\n profile.setGamesWon(Integer.toString(jsonProfile.getInt(\"gamesWon\")));\n try{\n profile.setGamesPlayed(Integer.toString(jsonProfile.getJSONObject(\"competitiveStats\").getJSONObject(\"games\").getInt(\"played\")));\n }catch (Exception e){\n profile.setGamesPlayed(\"N/A\");\n }\n try{\n profile.setGamesWon(Integer.toString(jsonProfile.getJSONObject(\"competitiveStats\").getJSONObject(\"games\").getInt(\"won\")));\n }catch (Exception e) {\n profile.setGamesWon(\"N/A\");\n }\n\n return profile;\n }",
"@java.lang.Override\n public java.util.List<org.beangle.security.session.protobuf.Model.Profile> getProfilesList() {\n return profiles_;\n }",
"java.lang.String getProfileURL();",
"public abstract Properties getProfileProperties();",
"public String getProfileId() {\n return profileId;\n }",
"@GET\n\t @Path(\"/topUser\")\n\t public Response getProfile() throws ProfileDaoException {\n\t return Response\n\t .ok(api.getTopUser(datastore))\n\t .build();\n\t }",
"public List<SmmProfile> getProfiles();",
"public Map<String, Object> getProfileProperties() {\n return profileProperties;\n }",
"@GetMapping(produces = { JSON, XML }, path = \"/profile/{id}\")\t\n\tpublic ResponseEntity<ProfileDTO> getProfile(@PathVariable(\"id\") int id, \n\t\t\t@RequestHeader(HttpHeaders.ACCEPT) Version version) { \n\t\t\n\t\tif(!principal.isAuthorized()) {\n\t\t\treturn ResponseEntity.ok(profileService.read(id, true, version));\n\t\t} \n\t\t\n\t\tUser issuer = getCurrentUser();\n\t\t\n\t\tif (issuer.getIdAsInt() == id) {\n\t\t\treturn ResponseEntity.ok(profileService.read(id, false, version));\n\t\t} else {\n\t\t\tProfileDTO fetched = profileService.read(id, true, version);\n\t\t\t\n\t\t\tif (fetched != null) {\n\t\t\t\tguestService.visitUserProfile(id, issuer.getIdAsInt(), false);\n\t\t\t}\n\t\t\t\n\t\t\treturn ResponseEntity.ok(fetched);\n\t\t}\n\t}",
"private void getProfileInfo() {\n OkHttpClient client = new OkHttpClient.Builder()\n .cookieJar(new CookieJar() {\n private final HashMap<HttpUrl, List<Cookie>> cookieStore = new HashMap<>();\n @Override\n public void saveFromResponse(HttpUrl url, List<Cookie> cookies) {\n cookieStore.put(url, cookies);\n }\n\n @Override\n public List<Cookie> loadForRequest(HttpUrl url) {\n List<Cookie> cookies = cookieStore.get(url);\n return cookies != null ? cookies : new ArrayList<>();\n }\n })\n .build();\n\n AsyncTask.execute(() -> {\n try {\n HttpUrl url = HttpUrl.parse(URL + \"/nuh/myprofile\")\n .newBuilder()\n .build();\n\n Request requestToken = new Request.Builder()\n .url(url)\n .build();\n\n client.newCall(requestToken).execute();\n String token = \"\";\n\n List<Cookie> cookies = client.cookieJar().loadForRequest(url);\n for (Cookie cookie : cookies) {\n if (cookie.name().equals(\"csrftoken\")) {\n token = cookie.value();\n }\n }\n\n Request request = new Request.Builder()\n .header(\"X-CSRFToken\", token)\n .url(URL + \"/nuh/myprofile\")\n .build();\n\n Response response = client.newCall(request).execute();\n if (response.isSuccessful()) {\n String JSON = response.body().string();\n Log.d(\"JSON\", \"getProfileInfo: JSON: \" + JSON);\n JSONArray array = new JSONArray(JSON);\n JSONObject usernameObj = array.getJSONObject(0);\n String username = usernameObj.getString(\"username\");\n JSONObject firstNameObj = array.getJSONObject(1);\n String firstName = firstNameObj.getString(\"first_name\");\n JSONObject lastNameObj = array.getJSONObject(2);\n String lastName = lastNameObj.getString(\"last_name\");\n JSONObject emailObj = array.getJSONObject(3);\n String email = emailObj.getString(\"e_mail\");\n\n JSONObject categoriesObj = array.getJSONObject(4);\n String needFood = categoriesObj.getString(\"get_food\");\n String needAccomodation = categoriesObj.getString(\"get_accommodation\");\n String needClothes = categoriesObj.getString(\"get_clothes\");\n String needMedicine = categoriesObj.getString(\"get_medicine\");\n String needOther = categoriesObj.getString(\"get_other\");\n String giveFood = categoriesObj.getString(\"give_food\");\n String giveAccomodation = categoriesObj.getString(\"give_accommodation\");\n String giveClothes = categoriesObj.getString(\"give_clothes\");\n String giveMedicine = categoriesObj.getString(\"give_medicine\");\n String giveOther = categoriesObj.getString(\"give_other\");\n double latitude = categoriesObj.getDouble(\"latitude\");\n double longitude = categoriesObj.getDouble(\"longitude\");\n\n SharedPreferences.Editor editor = getSharedPreferences(HELP_CATEGORIES, MODE_PRIVATE).edit();\n editor.putString(USERNAME, username);\n editor.putString(FIRST_NAME, firstName);\n editor.putString(LAST_NAME, lastName);\n editor.putString(EMAIL, email);\n editor.putBoolean(FOOD_NEED, needFood != null);\n editor.putBoolean(ACCOMODATION_NEED, needAccomodation != null);\n editor.putBoolean(CLOTHES_NEED, needClothes != null);\n editor.putBoolean(MEDICINE_NEED, needMedicine != null);\n editor.putBoolean(OTHER_NEED, needOther != null);\n editor.putBoolean(FOOD_GIVE, giveFood != null);\n editor.putBoolean(ACCOMODATION_GIVE, giveAccomodation != null);\n editor.putBoolean(CLOTHES_GIVE, giveClothes != null);\n editor.putBoolean(MEDICINE_GIVE, giveMedicine != null);\n editor.putBoolean(OTHER_GIVE, giveOther != null);\n editor.putString(FOOD_NEED_TEXT, needFood);\n editor.putString(ACCOMODATION_NEED_TEXT, needAccomodation);\n editor.putString(CLOTHES_NEED_TEXT, needClothes);\n editor.putString(MEDICINE_NEED_TEXT, needMedicine);\n editor.putString(OTHER_NEED_TEXT, needOther);\n editor.putString(FOOD_GIVE_TEXT, giveFood);\n editor.putString(ACCOMODATION_GIVE_TEXT, giveAccomodation);\n editor.putString(CLOTHES_GIVE_TEXT, giveClothes);\n editor.putString(MEDICINE_GIVE_TEXT, giveMedicine);\n editor.putString(OTHER_GIVE_TEXT, giveOther);\n editor.apply();\n getSharedPreferences(LOGIN, MODE_PRIVATE)\n .edit()\n .putString(LATITUDE, String.valueOf(latitude))\n .putString(LONGITUDE, String.valueOf(longitude))\n .apply();\n\n } else {\n runOnUiThread(() -> Toast.makeText(this, \"Something went wrong\", Toast.LENGTH_SHORT).show());\n }\n } catch (IOException | JSONException e) {\n e.printStackTrace();\n }\n });\n }",
"public T getSelectedProfile(int Id);",
"void getProfile(@NonNull final String profileId, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);",
"UserDTO getProfile(final int userId) throws DataUnreachableException;"
] | [
"0.6963719",
"0.69556826",
"0.67487127",
"0.67462194",
"0.67356163",
"0.67338145",
"0.67277575",
"0.6691702",
"0.66862065",
"0.6645712",
"0.65956354",
"0.6546348",
"0.6493426",
"0.6486345",
"0.64322233",
"0.63907385",
"0.6344069",
"0.63302046",
"0.63286215",
"0.6321077",
"0.6297646",
"0.6262946",
"0.6238971",
"0.62069196",
"0.62068725",
"0.615033",
"0.61120963",
"0.609949",
"0.60980284",
"0.6088331",
"0.60831976",
"0.60819167",
"0.6064045",
"0.60638607",
"0.60617083",
"0.60520834",
"0.6032429",
"0.602391",
"0.5991454",
"0.5964537",
"0.5958121",
"0.5957333",
"0.5952067",
"0.59384805",
"0.59293073",
"0.5904574",
"0.58908445",
"0.58828586",
"0.5870855",
"0.58654124",
"0.58531237",
"0.5844976",
"0.58200955",
"0.58134496",
"0.5807345",
"0.57976836",
"0.579367",
"0.57924896",
"0.5785572",
"0.5755013",
"0.5740741",
"0.57270944",
"0.5723404",
"0.57219225",
"0.5720468",
"0.5713463",
"0.57108825",
"0.57065725",
"0.5704556",
"0.5696939",
"0.5692947",
"0.56880516",
"0.5687794",
"0.56852514",
"0.56849146",
"0.56840944",
"0.5675173",
"0.5673971",
"0.5673888",
"0.5664047",
"0.56607264",
"0.56537366",
"0.5652369",
"0.56438667",
"0.56328785",
"0.5626099",
"0.5624863",
"0.5623414",
"0.56044275",
"0.56016445",
"0.55890596",
"0.55855817",
"0.5584392",
"0.55768764",
"0.5574957",
"0.55689585",
"0.55662465",
"0.5559485",
"0.5556875",
"0.55543053",
"0.5554121"
] | 0.0 | -1 |
TODO create punishment Post | @Override
public void onClick(View v) {
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void post(Post post) {\n if (post instanceof Video) {\n vd.compressVideo((Video) post);\n } else if (post instanceof Image) {\n id.decorateImage((Image) post);\n } else if (post instanceof Text) {\n tg.checkGrammar((Text) post);\n }\n }",
"@PostMapping(\"/posts\")\n ResponseEntity<?> createPost(@RequestBody Post post) {\n post.setOwner(SecurityContextHolder.getContext().getAuthentication().getName());\n post.setDateCreated(LocalDateTime.now());\n\n EntityModel<Post> newPost = modelAssembler.toModel(postRepository.save(post));\n return ResponseEntity.created(newPost.getRequiredLink(IanaLinkRelations.SELF).toUri()).body(newPost);\n }",
"@Override\n\tvoid post() {\n\t\t\n\t}",
"public Post(String user, String postContent, String webAddress) {\n this.orderPosted = nextOrderPosted;\n nextOrderPosted++;\n this.user = user;\n this.postContent = postContent;\n this.webAddress = webAddress;\n// this.myAuthor=myAuthor;\n\n }",
"private void postNewPost() {\n if (mIsReplyOnBulletin) {\n OperationManager operationManager = OperationManager.getInstance(NewPostActivity.this);\n operationManager.postNewReply(etNewPostMsg.getText().toString(),\n getIntent().getExtras().getLong(EXTRA_POST_ID), NewPostActivity.this);\n } else {\n OperationManager operationManager = OperationManager.getInstance(NewPostActivity.this);\n operationManager.postNewBulletin(etNewPostSubject.getText().toString()\n , etNewPostMsg.getText().toString(), mFilesAdapter.getData(), NewPostActivity.this);\n\n }\n finish();\n }",
"void savePost(Post post);",
"public Post() {\n\t\t\n\t}",
"public void createPost( BlogPost post );",
"@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}",
"private void createPost() {\n PostModel model = new PostModel(23, \"New Title\", \"New Text\");\n Call<PostModel> call = jsonPlaceHolderAPI.createPost(model);\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getUserId() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }",
"Post save(Post post) throws Exception;",
"@Override\n\tpublic Post updatePost(Post post) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Post toPost(PostDto postDto ) {\n\t\treturn new Post(employeeDao.readEmployeeById(postDto.getEmployeeId()), postDto.getBody(), LocalDateTime.now(), ticketDao.readTicket(postDto.getTicketId()));\n\t}",
"CompletableFuture<PostResponse> createNewPost(Post post);",
"public interface Post {\n // The maximum length of the content of a post.\n public static final int MAX_POST_LENGTH = 140;\n\n /**\n * @effects: returns the type of this\n */\n public PostType getPostType();\n\n /**\n * @effects: returns the id of this\n */\n public int getId();\n\n /**\n * @effects: returns the author of this\n */\n public String getAuthor();\n\n /**\n * @effects: returns the text contents of this\n */\n public String getContents();\n\n /**\n * @effects: returns the timestamp of this\n */\n public LocalDateTime getTimestamp();\n}",
"private Posts() {\n }",
"@PostMapping(\"/\")\n private ResponseEntity<Post> createPost(@RequestBody Post post) {\n User user = getCurrentUser();\n post.setCreated(new Date());\n post.setUserId(user.getId());\n post = postService.add(post);\n\n return new ResponseEntity<>(post, HttpStatus.OK);\n }",
"@Override\n public void modifyPost(List<Post> posts, int type) {\n\n\t}",
"public MedPostTranslator() {}",
"@Override\n public Post createPost(Post post, String token) throws TokenException {\n User user = sender.getUserFromUserAPI(token);\n if (user == null) {\n logger.info(\"Invalid token: \"+ token +\" User could not be retrieved\");\n throw new TokenException(\"Invalid Token.\");};\n post.setUserId(user.getUserId());\n post.setUser(user);\n Post savedPost = postRepository.save(post);\n return savedPost;\n }",
"public void setPost(WPPost post) {this.post = post;}",
"public String getPost() {\r\n return post;\r\n }",
"@FormUrlEncoded\n @POST(\"posts\")\n Call<Post> createPost(@Field(\"userId\") int userId, @Field(\"title\") String title, @Field(\"body\") String text);",
"private Bundle bundleData(Post post) {\n\n Bundle bundle = new Bundle();\n\n// bundle.putString(\"postId\", postId);\n// bundle.putString(\"postUsername\", postUsername);\n// bundle.putParcelable(\"postUserPicture\", userProfilePic);\n// bundle.putString(\"postDescription\", postDescription);\n// bundle.putString(\"postTitle\", postTitle);\n// bundle.putString(\"postDate\", postDate);\n// bundle.putFloat(\"postRating\", postRating);\n// bundle.putString(\"resultId\", resultId);\n// bundle.putString(\"resultImageUrl\", resultImageUrl);\n// bundle.putString(\"resultName\", resultName);\n// bundle.putString(\"resultType\", resultType);\n// bundle.putString(\"resultArtist\", resultArtist);\n bundle.putParcelable(\"post\", post);\n\n return bundle;\n }",
"public WPPost getPost() {return post;}",
"public String getPost() {\n return post;\n }",
"public String getPost() {\n return post;\n }",
"public Post(String textContent,double longitude,double latitude,String userNames){\n\tthis.textContent=textContent;\n\tthis.postID=UUID.randomUUID();\n\tpostoriginatedDate=new Date();\n\tsetLocationInfo(new Location(longitude,latitude));\n\taddtofriendcollection(userNames);\n}",
"@FormUrlEncoded\n @POST(\"posts/\")\n Call<Post> createPostUrlFormatted(\n @Field(\"userId\") Integer id,\n @Field(\"title\") String title,\n @Field(\"body\") String body\n );",
"@Test(enabled=false)\n\tpublic void createPostCheckBodyContents() {\n\t\tPosts posts = new Posts(\"4\", \"Packers\", \"Favre\");\n\t\t\n\t\tgiven().\n\t\twhen().contentType(ContentType.JSON).\n\t\tbody(posts).\n\t\tpost(\"http://localhost:3000/posts/\").\n\t\tthen().\n\t\tstatusCode(201).\n\t\tbody(\"id\", is(posts.getId())).\n\t\tbody(\"title\",is(posts.getTitle())).\n\t\tbody(\"author\",is(posts.getAuthor()));\n\t}",
"public Post() {\n }",
"public long getPostId();",
"@Override\r\n\tpublic void createPost(Integer postID, Integer parentPostID,\r\n\t\t\tString posterName, String message, String[] imageName,\r\n\t\t\tString[] imageID) {\n\t\t\r\n\t}",
"private void createPostMap() {\n Map<String, String> map = new HashMap<>();\n map.put(\"userId\", \"12\");\n map.put(\"title\", \"New Title\");\n Call<PostModel> call = jsonPlaceHolderAPI.createPostMap(map);\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getTitle() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }",
"public boolean addPost (Message post) {\n Logger.write(\"VERBOSE\", \"DB\", \"addPost(...)\");\n \n try {\n execute(DBStrings.addPost.replace(\"__SIG__\", post.getSig())\n .replace(\"__msgText__\", post.POSTgetText())\n .replace(\"__time__\", Long.toString(post.getTimestamp()))\n .replace(\"__recieverKey__\", post.POSTgetWall())\n .replace(\"__sendersKey__\", Crypto.encodeKey(getSignatory(post))));\n String[] visibleTo = post.POSTgetVisibleTo();\n for (int i = 0; i < visibleTo.length; i++)\n execute(DBStrings.addPostVisibility.replace(\"__postSig__\", post.getSig()).replace(\"__key__\", visibleTo[i]));\n return true;\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n return false;\n }\n }",
"@Override\n\tpublic void deletePost(Post post) {\n\n\t}",
"void editMyPost(Post post);",
"public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }",
"public Postoj() {}",
"public Post(){\n\n }",
"public Post()\n {\n }",
"protected abstract void sendNewPost(Discussion discussion, Post post);",
"public interface Post {\n\n\tpublic Long getId();\n\n\tpublic void setId(Long id);\n\n\tpublic Date getDate();\n\n\tpublic void setDate(Date date);\n\n\tpublic String getMessage();\n\n\tpublic void setMessage(String message);\n\n}",
"public interface Post extends Serializable {\r\n\r\n\t/** @return Post's unique identifier. */\r\n\tLong getId();\r\n\r\n\t/** @return Topic in which the post was made. */\r\n\tTopic getTopic();\r\n\r\n\t/** @return User who made the post. */\r\n\tPoster getPoster();\r\n\r\n\t/** @return Timestamp of the post. */\r\n\tLong getTimestamp();\r\n\r\n\t/** @return Post's content. */\r\n\tString getContent();\r\n\r\n\t/** @return Flag indicating whether this is its topic's OP. */\r\n\tboolean isOriginalPost();\r\n\t\r\n\t/** @return List of the post's text tag IDs. */\r\n\tList<Long> getTextTags();\r\n\r\n}",
"public long ashirPostCreating(AshirBlogPostingHelper post) {\n long result;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(Col_2, post.getPost());\n values.put(Col_3, post.getImage());\n //inserting valuse into table columns\n result = db.insert(NAME_OF_TABLE, null, values);\n db.close();\n return result;\n\n }",
"Post getPostByID(long postId);",
"public PostRecord() {\n super(PostTable.POST);\n }",
"public long getPostId() {\n return postId;\n }",
"public void setPostId(Integer postId) {\n this.postId = postId;\n }",
"public Post(String user, String squad, String post, String id, long dateTime)\n {\n this.user = user;\n this.squad = squad;\n this.post = post;\n this.id = id;\n this.dateTime = dateTime;\n }",
"int getPostId();",
"@Test(enabled=true)\n\tpublic void createCompletePost() {\n\t\tPosts posts = new Posts(\"5\", \"Lakers\", \"Horry\");\n\t\t\n\t\tString id =\n\n\t\tgiven()\n\t\t.contentType(ContentType.JSON)\n\t\t.body(posts)\n\t\t.when()\n\t\t.post(\"http://localhost:3000/posts/\")\n\t\t.then()\n\t\t.statusCode(201)\n\t\t.extract()\n\t\t.path(\"id\");\n\t\t\n\t\tgiven()\n\t\t.pathParams(\"id\", id)\n\t\t.when().get(\"http://localhost:3000/posts/{id}\")\n\t\t.then()\n\t\t.statusCode(200)\n\t\t.body(\"id\", is(posts.getId()))\n\t\t.body(\"title\",is(posts.getTitle()))\n\t\t.body(\"author\",is(posts.getAuthor()));\n\t}",
"public Integer getPostId() {\n return postId;\n }",
"public void postBlog(Blog b) {\r\n this.blogPost = b;\r\n Stack serializedPhoto;\r\n BlogMultimedia blogPM;\r\n BlogMessage blogM;\r\n byte[] photoData = null;\r\n Indicator payload = null;\r\n\r\n if (b instanceof BlogMultimedia) {\r\n blogPM = (BlogMultimedia) this.blogPost;\r\n RMSBlogSelector selector = new RMSBlogSelector(RMSBlogSelector.EQUAL_TO, new Long(blogPM.getTimestamp()), null);\r\n serializedPhoto = this.recordManager.getBlog(this.STORED_BLOGS, this.BLOG_PM, this.QUALITY_POST, selector);\r\n BlogUnserializer bu = new BlogUnserializer();\r\n try {\r\n photoData = bu.getPhotoData(serializedPhoto);\r\n } catch (IOException ioe) {\r\n //#debug error\r\n System.out.println(\"getPhotoData: \" + ioe);\r\n }\r\n // set payload for data transfer\r\n if (blogPM != null && photoData != null) {\r\n // timestamp\r\n payload = new Indicator(blogPM.getTimestamp());\r\n // photo\r\n payload.setPhoto(photoData);\r\n // message\r\n if (blogPM.containsMessage()) {\r\n payload.setMessage(blogPM.getMessage().getText());\r\n }\r\n // location\r\n if (blogPM.containsLocation()) {\r\n GPSLocation loc = blogPM.getLocation();\r\n payload.setLocation(new double[]{loc.getLongitude(), loc.getLatitude()});\r\n }\r\n // elevation\r\n Waypoint wp = this.traceManager.getWaypoint(blogPM.getTimestamp());\r\n if (wp != null && wp.containsElevation()) {\r\n payload.setElevation(wp.getElevation());\r\n }\r\n // journey name\r\n if (blogPM.isJourneyBlog()) {\r\n String journeyName = this.controller.getStatistics().getJourneyName();\r\n this.blogPost.setJourneyName(journeyName);\r\n payload.setJourneyName(journeyName);\r\n }\r\n }\r\n } else if (b instanceof BlogMessage) {\r\n blogM = (BlogMessage) this.blogPost;\r\n // set payload for data transfer\r\n if (blogM != null) {\r\n // timestamp\r\n payload = new Indicator(blogM.getTimestamp());\r\n // message\r\n payload.setMessage(blogM.getMessage().getText());\r\n // location\r\n if (blogM.containsLocation()) {\r\n GPSLocation loc = blogM.getLocation();\r\n payload.setLocation(new double[]{loc.getLongitude(), loc.getLatitude()});\r\n }\r\n // elevation\r\n Waypoint wp = this.traceManager.getWaypoint(blogM.getTimestamp());\r\n if (wp != null && wp.containsElevation()) {\r\n payload.setElevation(wp.getElevation());\r\n }\r\n // journey name\r\n if (blogM.isJourneyBlog()) {\r\n String journeyName = this.controller.getStatistics().getJourneyName();\r\n this.blogPost.setJourneyName(journeyName);\r\n payload.setJourneyName(journeyName);\r\n }\r\n }\r\n }\r\n payload.setComment(this.blogPostNumber+\"/\"+this.blogPostBatchSize);\r\n // perform post\r\n this.controller.postBlog(payload);\r\n }",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"private void updatePostPatch() {\n PostModel model = new PostModel(12, null, \"This is the newest one.\");\n Call<PostModel> call = jsonPlaceHolderAPI.patchPosts(5, model);\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getTitle() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }",
"private void updatePostPut() {\n PostModel model = new PostModel(12, null, \"This is the newest one.\");\n Call<PostModel> call = jsonPlaceHolderAPI.putPosts(5, model);\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getTitle() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }",
"private PostDTO buildReturnDto( Post post ) {\n PostDTO postDTO = postMapper.postToPostDto( post );\n postDTO.setPostUrl( buildPostUrl( post ) );\n postDTO.getUser().setAvatarUrl( avatarService.buildAvatarUrl( post.getUser() ) );\n //if post is a child post, set the parentPostUrl\n if ( post.getParent() != null ) postDTO.setParentPostUrl( buildPostUrl( post.getParent() ));\n if ( post.getChildren() != null ) {\n for ( int i = 0; i < post.getChildren().size(); i++ ) {\n PostDTO childDTO = postDTO.getChildren().get( i );\n Post child = post.getChildren().get( i );\n childDTO.setPostUrl( buildPostUrl( post.getChildren().get( i ) ) );\n childDTO.getUser().setAvatarUrl( avatarService.buildAvatarUrl( child.getUser() ) );\n childDTO.setParentPostUrl( buildParentPostUrl( child ) );\n }\n }\n return postDTO;\n }",
"public LatestPost() {\n\t}",
"@Test(enabled=false)\n\tpublic void objectPost() {\t\n\t\tPosts posts = new Posts(\"3\", \"Seahawks\", \"Wilson\");\n\t\t\n\t\tResponse res = given().\n\t\twhen().\n\t\tcontentType(ContentType.JSON).\n\t\tbody(posts).\n\t\tpost(\"http://localhost:3000/posts/\");\n\t\n\t\tSystem.out.println(\"Response as object: \"+res.asString());\n\t}",
"@PostMapping(\"/posts/create\")\n public String createPost(\n Model model,\n @RequestParam(name = \"title\") String title,\n @RequestParam(name = \"body\") String body,\n @RequestParam(name = \"team\") String teamIDString,\n @RequestParam(name = \"sport\") String sportIDString) {\n\n long teamID = Long.parseLong(teamIDString);\n long sportID = Long.parseLong(sportIDString);\n\n Team thisTeam = teamRepository.findOne(teamID);\n Sport thisSport = sportRepository.findOne(sportID);\n\n\n// Which user is being assigned to this post?\n\n User foundUser = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n User dbUser = userRepository.findOne(foundUser.getId());\n\n\n\n\n// Now it's time to actually make the post.\n\n Post post = new Post();\n post.setTitle(title);\n post.setBody(body);\n post.setSport(thisSport);\n post.setTeam(thisTeam);\n post.setAuthor(dbUser);\n\n postRepository.save(post);\n\n// After post is created, give user options to do something next\n\n Post createdPost = postRepository.findOne(post.getId());\n model.addAttribute(\"createdPost\", createdPost);\n\n\n// Send email commented out for now so I don't send an email every time\n\n// emailService.prepareAndSend(post, \"Congratulations James! You have been hired for this position\", \"You have been hired for this position: 1007A McDonalds Region Manager\");\n\n return \"posts/create-success\";\n }",
"public Integer getPostType() {\n return postType;\n }",
"private void createPostXML() {\n Call<PostModel> call = jsonPlaceHolderAPI.createPostXML(23, \"New Title\", \"New Text\");\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getUserId() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }",
"public Post(User user, String content) {\n //Updates static post counter variable by 1\n postCounter++;\n //Sets post id to current post counter value\n this.id = postCounter;\n this.user = user;\n this.content = content;\n }",
"@Override\n\tpublic void addPost(Scanner sc) {\n\t\tPost p = new Post();\n\t\tp.setMemberId(cur.getId());\n\t\tsc.nextLine();\n\t\tSystem.out.print(\"제목: \");\n\t\tp.setPostName(sc.nextLine());\n\t\tSystem.out.print(\"내용: \");\n\t\tp.setContent(sc.nextLine());\n\t\tdao.insertPost(p);\n\t}",
"private void sendPost() {\n Map<String,Object> values = new HashMap<>();\n values.put(Constants.MANAGEMENT,management);\n values.put(Constants.GENERAL_INFORMATION,generalnformation);\n values.put(Constants.SYMPTOMS,symptoms);\n\n FireBaseUtils.mDatabaseDiseases.child(caseStudyUrl).child(url).updateChildren(values);\n Toast.makeText(DiseaseEditActivity.this, \"Item Posted\",LENGTH_LONG).show();\n finish();\n }",
"public static Result posts() {\n\t\tPost post = new Post();\n\t\tUser user = UserController.loggedInUser();\n\t\tif (user != null) {\n\t\t\tpost.city= user.city;\n\t\t\tpost.state = user.state;\n\t\t\tpost.country = user.country;\n\t\t\tpost.zipcode = user.zipcode;\n\t\t\tpost.createdBy = user.userName;\t\t\t\n\t\t}\n\t\t//TODO:Use bind() instead of the above to avoid 0.0 in price field\n\t\treturn ok(index.render(Post.listPosts(), form(Post.class).fill(post), user));\n\t}",
"public PostMessage()\n\t{\n\t\tsuper(MessageType.POST_MESSAGE);\n\t}",
"public String post();",
"@Override\n\tpublic Post add(Post entity) {\n\t\treturn null;\n\t}",
"public VBeatPostModel getPost(String postId){\n List<VBeatPostModel> postList = AppLocalDB.getInstance().db.postDao().getPost(postId);\n\n if(postList.size() == 0) {\n return null;\n } else {\n return postList.get(0);\n }\n\n }",
"public void setPostId(long postId);",
"void sendPost(String title, String body);",
"@PutMapping(\"/\")\n private ResponseEntity<Post> updatePost(@RequestBody Post post) {\n User user = getCurrentUser();\n Post oldPost = postService.findById(post.getId()).orElse(null);\n\n if (oldPost == null && !user.getId().equals(post.getId()))\n return ResponseEntity.notFound().build();\n\n if (oldPost != null) {\n oldPost.setCreated(new Date());\n oldPost.setSubject(post.getSubject());\n oldPost.setContent(post.getContent());\n\n postService.add(oldPost);\n return new ResponseEntity<>(oldPost, HttpStatus.OK);\n } else\n return ResponseEntity.badRequest().build();\n }",
"@Override\r\n\tpublic void submit(Integer uid,Integer tid,String text, String title, String author) {\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tint count = 0;\r\n\t\tString maincontent = \"\";\r\n\t\t String regEx = \"[\\\\u4e00-\\\\u9fa5]\";\r\n\t\t Pattern p = Pattern.compile(regEx);\r\n\t\t Matcher m = p.matcher(text);\r\n\t\t while (m.find()&&count<150) {\r\n\t\t\t count++;\r\n\t\t\t maincontent += m.group(0);\r\n\t\t }\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tBlog blog = new Blog(uid,title,text,maincontent,0,0,date,author,tid);\r\n\t\tthis.getBlogDao().save(blog);\r\n\t}",
"@PostMapping(\"/addPost\")\n public ResponseEntity addNewPost(@RequestBody Post post){\n postService.postNewInfo(post);\n return new ResponseEntity(HttpStatus.OK);\n }",
"public Post(User user, String content, String url) {\n //Updates static post counter variable by 1\n postCounter++;\n //Sets post id to current post counter value\n this.id = postCounter;\n //Fills fields with data added with the constructor\n this.user = user;\n this.content = content;\n this.url = url;\n }",
"@Override\r\n\tpublic boolean releasePost(Post post) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tif(postDao.insert(post)>0)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}",
"public VerticalPanel createPost2(Post post){\n\t\t\tVerticalPanel result = new VerticalPanel();\n\t\t\tLabel lbl = new Label(post.getContent());\n\t\t\tresult.add(lbl);\n\t\t\treturn result;\n\t\t}",
"public int getPostId() {\r\n\t\treturn postId;\r\n\t}",
"public void postData() {\n\n\t}",
"public boolean isPost();",
"public boolean isPost();",
"@POST(\"posts\")\n public Call<Post> UploadPost (@Body Post post);",
"public Post(String title, String createdAt, int authorID, String body){\n this.title = title;\n this.createdAt = createdAt;\n this.authorID = authorID;\n this.body = body;\n }",
"public Post(long timeStamp, String userName, Long postId) {\n this.arrivalTime = timeStamp;\n this.userName = userName;\n this.totalScore = 10;\n this.postId = postId;\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\tPostDao postDao = DatabaseManager.getInstance().getDaoFactory().getPostDao();\n\n\t\t// prendo i dati dalla js\n\t\tString title = request.getParameter(\"title\");\n\t\tString message = request.getParameter(\"content\");\n\t\tString userid = (String) request.getSession(false).getAttribute(\"email\");\n\t\tString pathimg = request.getParameter(\"img\");\n\n\t\tSystem.out.println(\"this is the author of the post \" + userid);\n\n\t\t// creo la data del giorno corrente\n\t\tlong time = System.currentTimeMillis();\n\t\tjava.sql.Date date = new java.sql.Date(time);\n\t\t\n\t\tPost postToSave = new Post(1, title, message, userid, pathimg, date);\n\t\tpostDao.save(postToSave);\n\n\t\tJsonObject post = new JsonObject();\n\t\tpost.addProperty(\"msg\",postToSave.getMessaggio());\n\t\tpost.addProperty(\"title\", postToSave.getTitle());\n\t\tpost.addProperty(\"utente\", postToSave.getUtente());\n\t\tpost.addProperty(\"img\", postToSave.getImgname());\n\t\tpost.addProperty(\"id_post\", postToSave.getIdPost());\n\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tString reportDate = df.format(postToSave.getData());\n\n\t\tpost.addProperty(\"data\", reportDate);\n\t\tresponse.getWriter().write(post.toString());\n\n\t}",
"@Test\n public void postTest(){\n Post post = new Post(\"Title 1\",\"Body 1\");\n\n given().accept(ContentType.JSON)\n .and().contentType(ContentType.JSON)\n .body(post)\n .when().post(\"/posts\")\n .then().statusCode(201)\n .body(\"title\",is(\"Title 1\"),\n \"body\",is(\"Body 1\"),\n \"id\",is(101));\n }",
"protected void newPost() {\n\t\tIntent intent = new Intent(this, EditTopicActivity.class);\n\t\tintent.putExtra(EditPostActivity.IS_NEW, true);\n\n\t\tstartActivity(intent);\n\t}",
"public com.google.protobuf.ByteString\n getPostBytes() {\n return instance.getPostBytes();\n }",
"@POST(\"posts\")\n Call<Post> createPost(@Body Post post);",
"Mono<Post> create(String circleId, Post post);",
"@Test\n public void createPost() {\n User bob = new User(\"Jasdeep\",\"Madan\",\"JD\",\"[email protected]\",\"password\", \"member\", true, true).save();\n\n //Create a new Category and save it\n Category category = new Category(\"Tech\", \"Some Description\").save();\n\n // Create a new post\n new Article(\"My first post\", \"Hello world\", bob, category, true, null, null).save();\n\n // Test that the post has been created\n assertEquals(1, Article.count());\n\n // Retrieve all posts created by Bob\n List<Article> bobPosts = Article.find(\"byAuthor\", bob).fetch();\n\n // Tests\n assertEquals(1, bobPosts.size());\n Article firstPost = bobPosts.get(0);\n assertNotNull(firstPost);\n assertEquals(bob, firstPost.author);\n assertEquals(\"My first post\", firstPost.title);\n assertEquals(\"Hello world\", firstPost.content);\n assertNotNull(firstPost.submit_date);\n }",
"@Override\n protected void validateSave(Fornecedor post) {\n\n }",
"private void doUpdatePost(PostInfo post, TopicInfo topic, WebScriptRequest req, \r\n JSONObject json)\r\n {\n if (json.containsKey(\"title\"))\r\n {\r\n String title = (String)json.get(\"title\");\r\n post.setTitle(title);\r\n if (title.length() > 0)\r\n {\r\n topic.setTitle(title);\r\n }\r\n }\r\n \r\n // Contents is on the post\r\n if (json.containsKey(\"content\"))\r\n {\r\n post.setContents((String)json.get(\"content\"));\r\n }\r\n \r\n // Tags are on the topic\r\n if (json.containsKey(\"tags\"))\r\n {\r\n topic.getTags().clear();\r\n \r\n List<String> tags = getTags(json);\r\n if (tags != null)\r\n {\r\n topic.getTags().addAll(tags);\r\n }\r\n }\r\n \r\n // Save the topic and the post\r\n discussionService.updateTopic(topic);\r\n discussionService.updatePost(post);\r\n }",
"public java.lang.String getPost() {\n return instance.getPost();\n }",
"private void verifyPost() {\n if(TextUtils.isEmpty(newArticleTitle)){\n articleTitle.setError(\"Your post requires a title!\");\n articleTitle.requestFocus();\n return;\n }\n\n if(TextUtils.isEmpty(newArticleContent)){\n articleContent.setError(\"Your post requires a some content!\");\n articleContent.requestFocus();\n return;\n }\n\n // Pass in the calling activity such that official and team news are separated\n databaseReference = FirebaseDatabase.getInstance().getReference(callingActivity);\n\n String postId = databaseReference.push().getKey();\n\n NewsPost newsPost = new NewsPost(newArticleTitle, newArticleContent,\n newArticlePosterUsername, newArticlePosterProfileImage, dayDate, dayTime);\n\n databaseReference.child(postId).setValue(newsPost);\n\n // Close the activity\n finish();\n }",
"Optional<Post> getPost(String postId) throws Exception;",
"private void makeDummies()\n {\n \n MessagePost messagePost1;\n MessagePost messagePost2;\n PhotoPost photoPost1;\n PhotoPost photoPost2;\n EventPost eventPost1;\n \n //Making 2 message posts and 2 photo posts.\n messagePost1 = new MessagePost(\"kniven\",\"Jeg er skarp idag\");\n messagePost2 = new MessagePost(\"Oscar\", \"I dag er livet verdt å leve\");\n photoPost1 = new PhotoPost(\"Eirik\", \"sol.jpg\", \"Sola skinner fint idag\");\n photoPost2 = new PhotoPost(\"Ole Martin\", \"noSkjeg.jpg\", \"Tatt skjegget\");\n eventPost1 = new EventPost(\"Ole Martin\", \"Ole Martin has joined Solider of Are og Odin\");\n \n //Adding posts to the newsfeed\n newsFeed.addPost(messagePost1);\n newsFeed.addPost(messagePost2);\n newsFeed.addPost(photoPost1);\n newsFeed.addPost(photoPost2);\n newsFeed.addPost(eventPost1);\n newsFeed.addComment(messagePost1, \"Skarping as\");\n newsFeed.addComment(messagePost2, \"Så flott!\");\n newsFeed.addComment(messagePost2, \"Like, Betyr likar\");\n newsFeed.addComment(photoPost1, \"Deilig med sol\");\n newsFeed.addComment(photoPost2, \"Neeeeeeeeeeeeeeeeei! :'(\");\n \n }",
"protected Uri getPostUri() {\n //@formatter:off\n return Uri.parse(getAdapter().getPost(mPager.getCurrentItem())\n .getFullPermalink(SharedPreferencesHelper.getUseMobileInterface(this)));\n //@formatter:on\n }",
"public final void startPostActivity(Post post) {\r\n EventTracker eventTracker2 = this.eventTracker;\r\n if (eventTracker2 == null) {\r\n Intrinsics.throwUninitializedPropertyAccessException(\"eventTracker\");\r\n }\r\n eventTracker2.logCustom(\"View Post\", new CustomAttributes().put(\"from\", \"recommend\"));\r\n ActionLogUtil actionLogUtil2 = this.actionLogUtil;\r\n if (actionLogUtil2 == null) {\r\n Intrinsics.throwUninitializedPropertyAccessException(\"actionLogUtil\");\r\n }\r\n ActionLogUtil.defineCurrentWindow$default(actionLogUtil2, \"Personalized_Recommend\", \"\", 0, 4, null);\r\n Intent intent = new Intent(this, PostActivity.class);\r\n intent.putExtra(\"post_id\", post.getId());\r\n Image coverImage = post.getCoverImage();\r\n intent.putExtra(\"post_cover\", coverImage != null ? coverImage.getUrl() : null);\r\n ActivityOptionsCompat makeCustomAnimation = ActivityOptionsCompat.makeCustomAnimation(this, C0001R$anim.slide_right, C0001R$anim.fade_out);\r\n Intrinsics.checkExpressionValueIsNotNull(makeCustomAnimation, \"ActivityOptionsCompat.ma…e_right, R.anim.fade_out)\");\r\n startActivity(intent, makeCustomAnimation.toBundle());\r\n }"
] | [
"0.6825769",
"0.6747358",
"0.6507475",
"0.64503217",
"0.64215064",
"0.64206564",
"0.6408339",
"0.6382903",
"0.6372992",
"0.624875",
"0.62313986",
"0.6221771",
"0.6171286",
"0.6132032",
"0.6067692",
"0.60510314",
"0.6049564",
"0.601744",
"0.6007417",
"0.59678876",
"0.59298015",
"0.5922231",
"0.59218085",
"0.5878964",
"0.5873821",
"0.5830587",
"0.5830587",
"0.579189",
"0.57893056",
"0.57872564",
"0.5781163",
"0.57478386",
"0.5737867",
"0.57365584",
"0.5734259",
"0.5716599",
"0.57112145",
"0.57032144",
"0.57026255",
"0.57025903",
"0.57014126",
"0.5688241",
"0.5687306",
"0.5685705",
"0.56819546",
"0.56763667",
"0.56616646",
"0.5642695",
"0.56348246",
"0.5599464",
"0.55793315",
"0.5578707",
"0.55742204",
"0.5572585",
"0.55724055",
"0.5569835",
"0.5568119",
"0.5567845",
"0.55577415",
"0.555336",
"0.55442",
"0.55347",
"0.5530692",
"0.5525472",
"0.55188036",
"0.55001944",
"0.54976505",
"0.5493866",
"0.5489252",
"0.54798216",
"0.54793215",
"0.5476785",
"0.5471974",
"0.5462292",
"0.54616463",
"0.54521847",
"0.5449973",
"0.5446778",
"0.5437977",
"0.5437183",
"0.5437028",
"0.54339105",
"0.54339105",
"0.5427752",
"0.5427559",
"0.5422011",
"0.54206204",
"0.54121935",
"0.5409647",
"0.54038256",
"0.5402519",
"0.5402086",
"0.539857",
"0.5388714",
"0.5384738",
"0.53806543",
"0.5378124",
"0.5369991",
"0.5365738",
"0.53654706",
"0.53560835"
] | 0.0 | -1 |
TODO create punishment Post | @Override
public void onClick(View v) {
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void post(Post post) {\n if (post instanceof Video) {\n vd.compressVideo((Video) post);\n } else if (post instanceof Image) {\n id.decorateImage((Image) post);\n } else if (post instanceof Text) {\n tg.checkGrammar((Text) post);\n }\n }",
"@PostMapping(\"/posts\")\n ResponseEntity<?> createPost(@RequestBody Post post) {\n post.setOwner(SecurityContextHolder.getContext().getAuthentication().getName());\n post.setDateCreated(LocalDateTime.now());\n\n EntityModel<Post> newPost = modelAssembler.toModel(postRepository.save(post));\n return ResponseEntity.created(newPost.getRequiredLink(IanaLinkRelations.SELF).toUri()).body(newPost);\n }",
"@Override\n\tvoid post() {\n\t\t\n\t}",
"public Post(String user, String postContent, String webAddress) {\n this.orderPosted = nextOrderPosted;\n nextOrderPosted++;\n this.user = user;\n this.postContent = postContent;\n this.webAddress = webAddress;\n// this.myAuthor=myAuthor;\n\n }",
"private void postNewPost() {\n if (mIsReplyOnBulletin) {\n OperationManager operationManager = OperationManager.getInstance(NewPostActivity.this);\n operationManager.postNewReply(etNewPostMsg.getText().toString(),\n getIntent().getExtras().getLong(EXTRA_POST_ID), NewPostActivity.this);\n } else {\n OperationManager operationManager = OperationManager.getInstance(NewPostActivity.this);\n operationManager.postNewBulletin(etNewPostSubject.getText().toString()\n , etNewPostMsg.getText().toString(), mFilesAdapter.getData(), NewPostActivity.this);\n\n }\n finish();\n }",
"void savePost(Post post);",
"public Post() {\n\t\t\n\t}",
"public void createPost( BlogPost post );",
"@Override\n\tpublic Post createPost(Post post) {\n\t\treturn postDao.createPost(post);\n\t}",
"private void createPost() {\n PostModel model = new PostModel(23, \"New Title\", \"New Text\");\n Call<PostModel> call = jsonPlaceHolderAPI.createPost(model);\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getUserId() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }",
"Post save(Post post) throws Exception;",
"@Override\n\tpublic Post updatePost(Post post) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Post toPost(PostDto postDto ) {\n\t\treturn new Post(employeeDao.readEmployeeById(postDto.getEmployeeId()), postDto.getBody(), LocalDateTime.now(), ticketDao.readTicket(postDto.getTicketId()));\n\t}",
"CompletableFuture<PostResponse> createNewPost(Post post);",
"public interface Post {\n // The maximum length of the content of a post.\n public static final int MAX_POST_LENGTH = 140;\n\n /**\n * @effects: returns the type of this\n */\n public PostType getPostType();\n\n /**\n * @effects: returns the id of this\n */\n public int getId();\n\n /**\n * @effects: returns the author of this\n */\n public String getAuthor();\n\n /**\n * @effects: returns the text contents of this\n */\n public String getContents();\n\n /**\n * @effects: returns the timestamp of this\n */\n public LocalDateTime getTimestamp();\n}",
"private Posts() {\n }",
"@PostMapping(\"/\")\n private ResponseEntity<Post> createPost(@RequestBody Post post) {\n User user = getCurrentUser();\n post.setCreated(new Date());\n post.setUserId(user.getId());\n post = postService.add(post);\n\n return new ResponseEntity<>(post, HttpStatus.OK);\n }",
"@Override\n public void modifyPost(List<Post> posts, int type) {\n\n\t}",
"public MedPostTranslator() {}",
"@Override\n public Post createPost(Post post, String token) throws TokenException {\n User user = sender.getUserFromUserAPI(token);\n if (user == null) {\n logger.info(\"Invalid token: \"+ token +\" User could not be retrieved\");\n throw new TokenException(\"Invalid Token.\");};\n post.setUserId(user.getUserId());\n post.setUser(user);\n Post savedPost = postRepository.save(post);\n return savedPost;\n }",
"public void setPost(WPPost post) {this.post = post;}",
"public String getPost() {\r\n return post;\r\n }",
"@FormUrlEncoded\n @POST(\"posts\")\n Call<Post> createPost(@Field(\"userId\") int userId, @Field(\"title\") String title, @Field(\"body\") String text);",
"private Bundle bundleData(Post post) {\n\n Bundle bundle = new Bundle();\n\n// bundle.putString(\"postId\", postId);\n// bundle.putString(\"postUsername\", postUsername);\n// bundle.putParcelable(\"postUserPicture\", userProfilePic);\n// bundle.putString(\"postDescription\", postDescription);\n// bundle.putString(\"postTitle\", postTitle);\n// bundle.putString(\"postDate\", postDate);\n// bundle.putFloat(\"postRating\", postRating);\n// bundle.putString(\"resultId\", resultId);\n// bundle.putString(\"resultImageUrl\", resultImageUrl);\n// bundle.putString(\"resultName\", resultName);\n// bundle.putString(\"resultType\", resultType);\n// bundle.putString(\"resultArtist\", resultArtist);\n bundle.putParcelable(\"post\", post);\n\n return bundle;\n }",
"public WPPost getPost() {return post;}",
"public String getPost() {\n return post;\n }",
"public String getPost() {\n return post;\n }",
"public Post(String textContent,double longitude,double latitude,String userNames){\n\tthis.textContent=textContent;\n\tthis.postID=UUID.randomUUID();\n\tpostoriginatedDate=new Date();\n\tsetLocationInfo(new Location(longitude,latitude));\n\taddtofriendcollection(userNames);\n}",
"@FormUrlEncoded\n @POST(\"posts/\")\n Call<Post> createPostUrlFormatted(\n @Field(\"userId\") Integer id,\n @Field(\"title\") String title,\n @Field(\"body\") String body\n );",
"@Test(enabled=false)\n\tpublic void createPostCheckBodyContents() {\n\t\tPosts posts = new Posts(\"4\", \"Packers\", \"Favre\");\n\t\t\n\t\tgiven().\n\t\twhen().contentType(ContentType.JSON).\n\t\tbody(posts).\n\t\tpost(\"http://localhost:3000/posts/\").\n\t\tthen().\n\t\tstatusCode(201).\n\t\tbody(\"id\", is(posts.getId())).\n\t\tbody(\"title\",is(posts.getTitle())).\n\t\tbody(\"author\",is(posts.getAuthor()));\n\t}",
"public Post() {\n }",
"public long getPostId();",
"@Override\r\n\tpublic void createPost(Integer postID, Integer parentPostID,\r\n\t\t\tString posterName, String message, String[] imageName,\r\n\t\t\tString[] imageID) {\n\t\t\r\n\t}",
"private void createPostMap() {\n Map<String, String> map = new HashMap<>();\n map.put(\"userId\", \"12\");\n map.put(\"title\", \"New Title\");\n Call<PostModel> call = jsonPlaceHolderAPI.createPostMap(map);\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getTitle() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }",
"public boolean addPost (Message post) {\n Logger.write(\"VERBOSE\", \"DB\", \"addPost(...)\");\n \n try {\n execute(DBStrings.addPost.replace(\"__SIG__\", post.getSig())\n .replace(\"__msgText__\", post.POSTgetText())\n .replace(\"__time__\", Long.toString(post.getTimestamp()))\n .replace(\"__recieverKey__\", post.POSTgetWall())\n .replace(\"__sendersKey__\", Crypto.encodeKey(getSignatory(post))));\n String[] visibleTo = post.POSTgetVisibleTo();\n for (int i = 0; i < visibleTo.length; i++)\n execute(DBStrings.addPostVisibility.replace(\"__postSig__\", post.getSig()).replace(\"__key__\", visibleTo[i]));\n return true;\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n return false;\n }\n }",
"@Override\n\tpublic void deletePost(Post post) {\n\n\t}",
"void editMyPost(Post post);",
"public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }",
"public Postoj() {}",
"public Post(){\n\n }",
"public Post()\n {\n }",
"protected abstract void sendNewPost(Discussion discussion, Post post);",
"public interface Post {\n\n\tpublic Long getId();\n\n\tpublic void setId(Long id);\n\n\tpublic Date getDate();\n\n\tpublic void setDate(Date date);\n\n\tpublic String getMessage();\n\n\tpublic void setMessage(String message);\n\n}",
"public interface Post extends Serializable {\r\n\r\n\t/** @return Post's unique identifier. */\r\n\tLong getId();\r\n\r\n\t/** @return Topic in which the post was made. */\r\n\tTopic getTopic();\r\n\r\n\t/** @return User who made the post. */\r\n\tPoster getPoster();\r\n\r\n\t/** @return Timestamp of the post. */\r\n\tLong getTimestamp();\r\n\r\n\t/** @return Post's content. */\r\n\tString getContent();\r\n\r\n\t/** @return Flag indicating whether this is its topic's OP. */\r\n\tboolean isOriginalPost();\r\n\t\r\n\t/** @return List of the post's text tag IDs. */\r\n\tList<Long> getTextTags();\r\n\r\n}",
"public long ashirPostCreating(AshirBlogPostingHelper post) {\n long result;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(Col_2, post.getPost());\n values.put(Col_3, post.getImage());\n //inserting valuse into table columns\n result = db.insert(NAME_OF_TABLE, null, values);\n db.close();\n return result;\n\n }",
"Post getPostByID(long postId);",
"public PostRecord() {\n super(PostTable.POST);\n }",
"public long getPostId() {\n return postId;\n }",
"public void setPostId(Integer postId) {\n this.postId = postId;\n }",
"public Post(String user, String squad, String post, String id, long dateTime)\n {\n this.user = user;\n this.squad = squad;\n this.post = post;\n this.id = id;\n this.dateTime = dateTime;\n }",
"int getPostId();",
"@Test(enabled=true)\n\tpublic void createCompletePost() {\n\t\tPosts posts = new Posts(\"5\", \"Lakers\", \"Horry\");\n\t\t\n\t\tString id =\n\n\t\tgiven()\n\t\t.contentType(ContentType.JSON)\n\t\t.body(posts)\n\t\t.when()\n\t\t.post(\"http://localhost:3000/posts/\")\n\t\t.then()\n\t\t.statusCode(201)\n\t\t.extract()\n\t\t.path(\"id\");\n\t\t\n\t\tgiven()\n\t\t.pathParams(\"id\", id)\n\t\t.when().get(\"http://localhost:3000/posts/{id}\")\n\t\t.then()\n\t\t.statusCode(200)\n\t\t.body(\"id\", is(posts.getId()))\n\t\t.body(\"title\",is(posts.getTitle()))\n\t\t.body(\"author\",is(posts.getAuthor()));\n\t}",
"public Integer getPostId() {\n return postId;\n }",
"public void postBlog(Blog b) {\r\n this.blogPost = b;\r\n Stack serializedPhoto;\r\n BlogMultimedia blogPM;\r\n BlogMessage blogM;\r\n byte[] photoData = null;\r\n Indicator payload = null;\r\n\r\n if (b instanceof BlogMultimedia) {\r\n blogPM = (BlogMultimedia) this.blogPost;\r\n RMSBlogSelector selector = new RMSBlogSelector(RMSBlogSelector.EQUAL_TO, new Long(blogPM.getTimestamp()), null);\r\n serializedPhoto = this.recordManager.getBlog(this.STORED_BLOGS, this.BLOG_PM, this.QUALITY_POST, selector);\r\n BlogUnserializer bu = new BlogUnserializer();\r\n try {\r\n photoData = bu.getPhotoData(serializedPhoto);\r\n } catch (IOException ioe) {\r\n //#debug error\r\n System.out.println(\"getPhotoData: \" + ioe);\r\n }\r\n // set payload for data transfer\r\n if (blogPM != null && photoData != null) {\r\n // timestamp\r\n payload = new Indicator(blogPM.getTimestamp());\r\n // photo\r\n payload.setPhoto(photoData);\r\n // message\r\n if (blogPM.containsMessage()) {\r\n payload.setMessage(blogPM.getMessage().getText());\r\n }\r\n // location\r\n if (blogPM.containsLocation()) {\r\n GPSLocation loc = blogPM.getLocation();\r\n payload.setLocation(new double[]{loc.getLongitude(), loc.getLatitude()});\r\n }\r\n // elevation\r\n Waypoint wp = this.traceManager.getWaypoint(blogPM.getTimestamp());\r\n if (wp != null && wp.containsElevation()) {\r\n payload.setElevation(wp.getElevation());\r\n }\r\n // journey name\r\n if (blogPM.isJourneyBlog()) {\r\n String journeyName = this.controller.getStatistics().getJourneyName();\r\n this.blogPost.setJourneyName(journeyName);\r\n payload.setJourneyName(journeyName);\r\n }\r\n }\r\n } else if (b instanceof BlogMessage) {\r\n blogM = (BlogMessage) this.blogPost;\r\n // set payload for data transfer\r\n if (blogM != null) {\r\n // timestamp\r\n payload = new Indicator(blogM.getTimestamp());\r\n // message\r\n payload.setMessage(blogM.getMessage().getText());\r\n // location\r\n if (blogM.containsLocation()) {\r\n GPSLocation loc = blogM.getLocation();\r\n payload.setLocation(new double[]{loc.getLongitude(), loc.getLatitude()});\r\n }\r\n // elevation\r\n Waypoint wp = this.traceManager.getWaypoint(blogM.getTimestamp());\r\n if (wp != null && wp.containsElevation()) {\r\n payload.setElevation(wp.getElevation());\r\n }\r\n // journey name\r\n if (blogM.isJourneyBlog()) {\r\n String journeyName = this.controller.getStatistics().getJourneyName();\r\n this.blogPost.setJourneyName(journeyName);\r\n payload.setJourneyName(journeyName);\r\n }\r\n }\r\n }\r\n payload.setComment(this.blogPostNumber+\"/\"+this.blogPostBatchSize);\r\n // perform post\r\n this.controller.postBlog(payload);\r\n }",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"private void updatePostPatch() {\n PostModel model = new PostModel(12, null, \"This is the newest one.\");\n Call<PostModel> call = jsonPlaceHolderAPI.patchPosts(5, model);\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getTitle() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }",
"private void updatePostPut() {\n PostModel model = new PostModel(12, null, \"This is the newest one.\");\n Call<PostModel> call = jsonPlaceHolderAPI.putPosts(5, model);\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getTitle() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }",
"private PostDTO buildReturnDto( Post post ) {\n PostDTO postDTO = postMapper.postToPostDto( post );\n postDTO.setPostUrl( buildPostUrl( post ) );\n postDTO.getUser().setAvatarUrl( avatarService.buildAvatarUrl( post.getUser() ) );\n //if post is a child post, set the parentPostUrl\n if ( post.getParent() != null ) postDTO.setParentPostUrl( buildPostUrl( post.getParent() ));\n if ( post.getChildren() != null ) {\n for ( int i = 0; i < post.getChildren().size(); i++ ) {\n PostDTO childDTO = postDTO.getChildren().get( i );\n Post child = post.getChildren().get( i );\n childDTO.setPostUrl( buildPostUrl( post.getChildren().get( i ) ) );\n childDTO.getUser().setAvatarUrl( avatarService.buildAvatarUrl( child.getUser() ) );\n childDTO.setParentPostUrl( buildParentPostUrl( child ) );\n }\n }\n return postDTO;\n }",
"public LatestPost() {\n\t}",
"@Test(enabled=false)\n\tpublic void objectPost() {\t\n\t\tPosts posts = new Posts(\"3\", \"Seahawks\", \"Wilson\");\n\t\t\n\t\tResponse res = given().\n\t\twhen().\n\t\tcontentType(ContentType.JSON).\n\t\tbody(posts).\n\t\tpost(\"http://localhost:3000/posts/\");\n\t\n\t\tSystem.out.println(\"Response as object: \"+res.asString());\n\t}",
"@PostMapping(\"/posts/create\")\n public String createPost(\n Model model,\n @RequestParam(name = \"title\") String title,\n @RequestParam(name = \"body\") String body,\n @RequestParam(name = \"team\") String teamIDString,\n @RequestParam(name = \"sport\") String sportIDString) {\n\n long teamID = Long.parseLong(teamIDString);\n long sportID = Long.parseLong(sportIDString);\n\n Team thisTeam = teamRepository.findOne(teamID);\n Sport thisSport = sportRepository.findOne(sportID);\n\n\n// Which user is being assigned to this post?\n\n User foundUser = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n User dbUser = userRepository.findOne(foundUser.getId());\n\n\n\n\n// Now it's time to actually make the post.\n\n Post post = new Post();\n post.setTitle(title);\n post.setBody(body);\n post.setSport(thisSport);\n post.setTeam(thisTeam);\n post.setAuthor(dbUser);\n\n postRepository.save(post);\n\n// After post is created, give user options to do something next\n\n Post createdPost = postRepository.findOne(post.getId());\n model.addAttribute(\"createdPost\", createdPost);\n\n\n// Send email commented out for now so I don't send an email every time\n\n// emailService.prepareAndSend(post, \"Congratulations James! You have been hired for this position\", \"You have been hired for this position: 1007A McDonalds Region Manager\");\n\n return \"posts/create-success\";\n }",
"public Integer getPostType() {\n return postType;\n }",
"private void createPostXML() {\n Call<PostModel> call = jsonPlaceHolderAPI.createPostXML(23, \"New Title\", \"New Text\");\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getUserId() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }",
"public Post(User user, String content) {\n //Updates static post counter variable by 1\n postCounter++;\n //Sets post id to current post counter value\n this.id = postCounter;\n this.user = user;\n this.content = content;\n }",
"@Override\n\tpublic void addPost(Scanner sc) {\n\t\tPost p = new Post();\n\t\tp.setMemberId(cur.getId());\n\t\tsc.nextLine();\n\t\tSystem.out.print(\"제목: \");\n\t\tp.setPostName(sc.nextLine());\n\t\tSystem.out.print(\"내용: \");\n\t\tp.setContent(sc.nextLine());\n\t\tdao.insertPost(p);\n\t}",
"private void sendPost() {\n Map<String,Object> values = new HashMap<>();\n values.put(Constants.MANAGEMENT,management);\n values.put(Constants.GENERAL_INFORMATION,generalnformation);\n values.put(Constants.SYMPTOMS,symptoms);\n\n FireBaseUtils.mDatabaseDiseases.child(caseStudyUrl).child(url).updateChildren(values);\n Toast.makeText(DiseaseEditActivity.this, \"Item Posted\",LENGTH_LONG).show();\n finish();\n }",
"public static Result posts() {\n\t\tPost post = new Post();\n\t\tUser user = UserController.loggedInUser();\n\t\tif (user != null) {\n\t\t\tpost.city= user.city;\n\t\t\tpost.state = user.state;\n\t\t\tpost.country = user.country;\n\t\t\tpost.zipcode = user.zipcode;\n\t\t\tpost.createdBy = user.userName;\t\t\t\n\t\t}\n\t\t//TODO:Use bind() instead of the above to avoid 0.0 in price field\n\t\treturn ok(index.render(Post.listPosts(), form(Post.class).fill(post), user));\n\t}",
"public PostMessage()\n\t{\n\t\tsuper(MessageType.POST_MESSAGE);\n\t}",
"public String post();",
"@Override\n\tpublic Post add(Post entity) {\n\t\treturn null;\n\t}",
"public VBeatPostModel getPost(String postId){\n List<VBeatPostModel> postList = AppLocalDB.getInstance().db.postDao().getPost(postId);\n\n if(postList.size() == 0) {\n return null;\n } else {\n return postList.get(0);\n }\n\n }",
"public void setPostId(long postId);",
"void sendPost(String title, String body);",
"@PutMapping(\"/\")\n private ResponseEntity<Post> updatePost(@RequestBody Post post) {\n User user = getCurrentUser();\n Post oldPost = postService.findById(post.getId()).orElse(null);\n\n if (oldPost == null && !user.getId().equals(post.getId()))\n return ResponseEntity.notFound().build();\n\n if (oldPost != null) {\n oldPost.setCreated(new Date());\n oldPost.setSubject(post.getSubject());\n oldPost.setContent(post.getContent());\n\n postService.add(oldPost);\n return new ResponseEntity<>(oldPost, HttpStatus.OK);\n } else\n return ResponseEntity.badRequest().build();\n }",
"@Override\r\n\tpublic void submit(Integer uid,Integer tid,String text, String title, String author) {\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tint count = 0;\r\n\t\tString maincontent = \"\";\r\n\t\t String regEx = \"[\\\\u4e00-\\\\u9fa5]\";\r\n\t\t Pattern p = Pattern.compile(regEx);\r\n\t\t Matcher m = p.matcher(text);\r\n\t\t while (m.find()&&count<150) {\r\n\t\t\t count++;\r\n\t\t\t maincontent += m.group(0);\r\n\t\t }\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tBlog blog = new Blog(uid,title,text,maincontent,0,0,date,author,tid);\r\n\t\tthis.getBlogDao().save(blog);\r\n\t}",
"@PostMapping(\"/addPost\")\n public ResponseEntity addNewPost(@RequestBody Post post){\n postService.postNewInfo(post);\n return new ResponseEntity(HttpStatus.OK);\n }",
"public Post(User user, String content, String url) {\n //Updates static post counter variable by 1\n postCounter++;\n //Sets post id to current post counter value\n this.id = postCounter;\n //Fills fields with data added with the constructor\n this.user = user;\n this.content = content;\n this.url = url;\n }",
"@Override\r\n\tpublic boolean releasePost(Post post) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tif(postDao.insert(post)>0)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}",
"public VerticalPanel createPost2(Post post){\n\t\t\tVerticalPanel result = new VerticalPanel();\n\t\t\tLabel lbl = new Label(post.getContent());\n\t\t\tresult.add(lbl);\n\t\t\treturn result;\n\t\t}",
"public int getPostId() {\r\n\t\treturn postId;\r\n\t}",
"public void postData() {\n\n\t}",
"public boolean isPost();",
"public boolean isPost();",
"@POST(\"posts\")\n public Call<Post> UploadPost (@Body Post post);",
"public Post(String title, String createdAt, int authorID, String body){\n this.title = title;\n this.createdAt = createdAt;\n this.authorID = authorID;\n this.body = body;\n }",
"public Post(long timeStamp, String userName, Long postId) {\n this.arrivalTime = timeStamp;\n this.userName = userName;\n this.totalScore = 10;\n this.postId = postId;\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\tPostDao postDao = DatabaseManager.getInstance().getDaoFactory().getPostDao();\n\n\t\t// prendo i dati dalla js\n\t\tString title = request.getParameter(\"title\");\n\t\tString message = request.getParameter(\"content\");\n\t\tString userid = (String) request.getSession(false).getAttribute(\"email\");\n\t\tString pathimg = request.getParameter(\"img\");\n\n\t\tSystem.out.println(\"this is the author of the post \" + userid);\n\n\t\t// creo la data del giorno corrente\n\t\tlong time = System.currentTimeMillis();\n\t\tjava.sql.Date date = new java.sql.Date(time);\n\t\t\n\t\tPost postToSave = new Post(1, title, message, userid, pathimg, date);\n\t\tpostDao.save(postToSave);\n\n\t\tJsonObject post = new JsonObject();\n\t\tpost.addProperty(\"msg\",postToSave.getMessaggio());\n\t\tpost.addProperty(\"title\", postToSave.getTitle());\n\t\tpost.addProperty(\"utente\", postToSave.getUtente());\n\t\tpost.addProperty(\"img\", postToSave.getImgname());\n\t\tpost.addProperty(\"id_post\", postToSave.getIdPost());\n\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tString reportDate = df.format(postToSave.getData());\n\n\t\tpost.addProperty(\"data\", reportDate);\n\t\tresponse.getWriter().write(post.toString());\n\n\t}",
"@Test\n public void postTest(){\n Post post = new Post(\"Title 1\",\"Body 1\");\n\n given().accept(ContentType.JSON)\n .and().contentType(ContentType.JSON)\n .body(post)\n .when().post(\"/posts\")\n .then().statusCode(201)\n .body(\"title\",is(\"Title 1\"),\n \"body\",is(\"Body 1\"),\n \"id\",is(101));\n }",
"protected void newPost() {\n\t\tIntent intent = new Intent(this, EditTopicActivity.class);\n\t\tintent.putExtra(EditPostActivity.IS_NEW, true);\n\n\t\tstartActivity(intent);\n\t}",
"public com.google.protobuf.ByteString\n getPostBytes() {\n return instance.getPostBytes();\n }",
"@POST(\"posts\")\n Call<Post> createPost(@Body Post post);",
"Mono<Post> create(String circleId, Post post);",
"@Test\n public void createPost() {\n User bob = new User(\"Jasdeep\",\"Madan\",\"JD\",\"[email protected]\",\"password\", \"member\", true, true).save();\n\n //Create a new Category and save it\n Category category = new Category(\"Tech\", \"Some Description\").save();\n\n // Create a new post\n new Article(\"My first post\", \"Hello world\", bob, category, true, null, null).save();\n\n // Test that the post has been created\n assertEquals(1, Article.count());\n\n // Retrieve all posts created by Bob\n List<Article> bobPosts = Article.find(\"byAuthor\", bob).fetch();\n\n // Tests\n assertEquals(1, bobPosts.size());\n Article firstPost = bobPosts.get(0);\n assertNotNull(firstPost);\n assertEquals(bob, firstPost.author);\n assertEquals(\"My first post\", firstPost.title);\n assertEquals(\"Hello world\", firstPost.content);\n assertNotNull(firstPost.submit_date);\n }",
"@Override\n protected void validateSave(Fornecedor post) {\n\n }",
"private void doUpdatePost(PostInfo post, TopicInfo topic, WebScriptRequest req, \r\n JSONObject json)\r\n {\n if (json.containsKey(\"title\"))\r\n {\r\n String title = (String)json.get(\"title\");\r\n post.setTitle(title);\r\n if (title.length() > 0)\r\n {\r\n topic.setTitle(title);\r\n }\r\n }\r\n \r\n // Contents is on the post\r\n if (json.containsKey(\"content\"))\r\n {\r\n post.setContents((String)json.get(\"content\"));\r\n }\r\n \r\n // Tags are on the topic\r\n if (json.containsKey(\"tags\"))\r\n {\r\n topic.getTags().clear();\r\n \r\n List<String> tags = getTags(json);\r\n if (tags != null)\r\n {\r\n topic.getTags().addAll(tags);\r\n }\r\n }\r\n \r\n // Save the topic and the post\r\n discussionService.updateTopic(topic);\r\n discussionService.updatePost(post);\r\n }",
"public java.lang.String getPost() {\n return instance.getPost();\n }",
"private void verifyPost() {\n if(TextUtils.isEmpty(newArticleTitle)){\n articleTitle.setError(\"Your post requires a title!\");\n articleTitle.requestFocus();\n return;\n }\n\n if(TextUtils.isEmpty(newArticleContent)){\n articleContent.setError(\"Your post requires a some content!\");\n articleContent.requestFocus();\n return;\n }\n\n // Pass in the calling activity such that official and team news are separated\n databaseReference = FirebaseDatabase.getInstance().getReference(callingActivity);\n\n String postId = databaseReference.push().getKey();\n\n NewsPost newsPost = new NewsPost(newArticleTitle, newArticleContent,\n newArticlePosterUsername, newArticlePosterProfileImage, dayDate, dayTime);\n\n databaseReference.child(postId).setValue(newsPost);\n\n // Close the activity\n finish();\n }",
"Optional<Post> getPost(String postId) throws Exception;",
"private void makeDummies()\n {\n \n MessagePost messagePost1;\n MessagePost messagePost2;\n PhotoPost photoPost1;\n PhotoPost photoPost2;\n EventPost eventPost1;\n \n //Making 2 message posts and 2 photo posts.\n messagePost1 = new MessagePost(\"kniven\",\"Jeg er skarp idag\");\n messagePost2 = new MessagePost(\"Oscar\", \"I dag er livet verdt å leve\");\n photoPost1 = new PhotoPost(\"Eirik\", \"sol.jpg\", \"Sola skinner fint idag\");\n photoPost2 = new PhotoPost(\"Ole Martin\", \"noSkjeg.jpg\", \"Tatt skjegget\");\n eventPost1 = new EventPost(\"Ole Martin\", \"Ole Martin has joined Solider of Are og Odin\");\n \n //Adding posts to the newsfeed\n newsFeed.addPost(messagePost1);\n newsFeed.addPost(messagePost2);\n newsFeed.addPost(photoPost1);\n newsFeed.addPost(photoPost2);\n newsFeed.addPost(eventPost1);\n newsFeed.addComment(messagePost1, \"Skarping as\");\n newsFeed.addComment(messagePost2, \"Så flott!\");\n newsFeed.addComment(messagePost2, \"Like, Betyr likar\");\n newsFeed.addComment(photoPost1, \"Deilig med sol\");\n newsFeed.addComment(photoPost2, \"Neeeeeeeeeeeeeeeeei! :'(\");\n \n }",
"protected Uri getPostUri() {\n //@formatter:off\n return Uri.parse(getAdapter().getPost(mPager.getCurrentItem())\n .getFullPermalink(SharedPreferencesHelper.getUseMobileInterface(this)));\n //@formatter:on\n }",
"public final void startPostActivity(Post post) {\r\n EventTracker eventTracker2 = this.eventTracker;\r\n if (eventTracker2 == null) {\r\n Intrinsics.throwUninitializedPropertyAccessException(\"eventTracker\");\r\n }\r\n eventTracker2.logCustom(\"View Post\", new CustomAttributes().put(\"from\", \"recommend\"));\r\n ActionLogUtil actionLogUtil2 = this.actionLogUtil;\r\n if (actionLogUtil2 == null) {\r\n Intrinsics.throwUninitializedPropertyAccessException(\"actionLogUtil\");\r\n }\r\n ActionLogUtil.defineCurrentWindow$default(actionLogUtil2, \"Personalized_Recommend\", \"\", 0, 4, null);\r\n Intent intent = new Intent(this, PostActivity.class);\r\n intent.putExtra(\"post_id\", post.getId());\r\n Image coverImage = post.getCoverImage();\r\n intent.putExtra(\"post_cover\", coverImage != null ? coverImage.getUrl() : null);\r\n ActivityOptionsCompat makeCustomAnimation = ActivityOptionsCompat.makeCustomAnimation(this, C0001R$anim.slide_right, C0001R$anim.fade_out);\r\n Intrinsics.checkExpressionValueIsNotNull(makeCustomAnimation, \"ActivityOptionsCompat.ma…e_right, R.anim.fade_out)\");\r\n startActivity(intent, makeCustomAnimation.toBundle());\r\n }"
] | [
"0.6825769",
"0.6747358",
"0.6507475",
"0.64503217",
"0.64215064",
"0.64206564",
"0.6408339",
"0.6382903",
"0.6372992",
"0.624875",
"0.62313986",
"0.6221771",
"0.6171286",
"0.6132032",
"0.6067692",
"0.60510314",
"0.6049564",
"0.601744",
"0.6007417",
"0.59678876",
"0.59298015",
"0.5922231",
"0.59218085",
"0.5878964",
"0.5873821",
"0.5830587",
"0.5830587",
"0.579189",
"0.57893056",
"0.57872564",
"0.5781163",
"0.57478386",
"0.5737867",
"0.57365584",
"0.5734259",
"0.5716599",
"0.57112145",
"0.57032144",
"0.57026255",
"0.57025903",
"0.57014126",
"0.5688241",
"0.5687306",
"0.5685705",
"0.56819546",
"0.56763667",
"0.56616646",
"0.5642695",
"0.56348246",
"0.5599464",
"0.55793315",
"0.5578707",
"0.55742204",
"0.5572585",
"0.55724055",
"0.5569835",
"0.5568119",
"0.5567845",
"0.55577415",
"0.555336",
"0.55442",
"0.55347",
"0.5530692",
"0.5525472",
"0.55188036",
"0.55001944",
"0.54976505",
"0.5493866",
"0.5489252",
"0.54798216",
"0.54793215",
"0.5476785",
"0.5471974",
"0.5462292",
"0.54616463",
"0.54521847",
"0.5449973",
"0.5446778",
"0.5437977",
"0.5437183",
"0.5437028",
"0.54339105",
"0.54339105",
"0.5427752",
"0.5427559",
"0.5422011",
"0.54206204",
"0.54121935",
"0.5409647",
"0.54038256",
"0.5402519",
"0.5402086",
"0.539857",
"0.5388714",
"0.5384738",
"0.53806543",
"0.5378124",
"0.5369991",
"0.5365738",
"0.53654706",
"0.53560835"
] | 0.0 | -1 |
/////////////////////////////////////////////////////////////////////////////// ////////////////////////// Test Case Methods ////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// | @BeforeMethod
void setTestConfiguration(Method method) {
logger.info("Setting up ServerAutomationTestCase..");
// Set test configuration
testConfig = TestConfiguration.TEST_TO_CONFIG_MAP.get(method.getName());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"private void test() {\n\n\t}",
"public void testGetInsDyn() {\n }",
"@Override\n public void runTest() {\n }",
"@Test\n public void testDAM30203001() {\n testDAM30102001();\n }",
"public void testGetBasedata() {\n }",
"@Test\n public void testAddACopy() {\n }",
"@Test\n public void testDAM30402001() {\n testDAM30101001();\n }",
"@Test\n public void testWalkForPduTarget() throws Exception {\n//TODO: Test goes here... \n }",
"@Test\n public void testDAM30601001() {\n testDAM30102001();\n }",
"@Override\n\tpublic void test() {\n\t\t\n\t}",
"@Test\n\tpublic void testTotalPuzzleGenerated() {\n\t}",
"@Test\r\n\tpublic void contents() throws Exception {\n\t}",
"@Test\r\n\tpublic void testSanity() {\n\t}",
"@Override\n public void test() {\n \n }",
"public void testSetBasedata() {\n }",
"public void testWriteOrders() throws Exception {\n }",
"@Test\n public void testDAM30103001() {\n // settings as done for testDAM30102001 are identical\n testDAM30102001();\n }",
"private test5() {\r\n\t\r\n\t}",
"@Test\n public void temporaryTeamClosingUnavalableOption() {\n\n }",
"@Test\n public void testDAM30903001() {\n testDAM30802001();\n }",
"Testcase createTestcase();",
"@Test\n\tpublic void testNormalPuzzleGeneration() {\n\t}",
"@Test\n public void testPrintPosLnS() throws Exception\n {\n//TODO: Test goes here... \n }",
"@Test\n public void testGetProductInfo() throws Exception {\n }",
"public void testGetConnection() {\r\n \r\n }",
"@Test\n public void matchCorrect() {\n }",
"@Test\n\tpublic void test04() throws Throwable {\n\t}",
"@Test\n\tpublic void testMain() {\n\t\t// TODO: test output streams for various IO methods, emulating a user's\n\t\t// input - kinda like Joel did for CSSE2310\n\t\tAssert.fail();\n\t}",
"@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}",
"@Override\n public void testTwoRequiredGroups() {\n }",
"@Override\n public void testTwoRequiredGroups() {\n }",
"public void testAddEntry(){\n }",
"public void test5() {\n\t\t\n\t}",
"public void testCheckOxyEmpty() {\n }",
"@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}",
"@Test\n public void test_getSub_1() throws Exception {\n }",
"@Test\r\n public void dummyCanGiveXP() {\n\r\n dummy.giveExperience();\r\n\r\n assertEquals(DUMMY_EXPERIENCE, dummy.giveExperience());\r\n }",
"@Test\r\n public void elCerdoNoSePuedeAtender() {\n }",
"@Test\n public void testPrintErrPosLnS() throws Exception\n {\n//TODO: Test goes here... \n }",
"@Test\n public void testGetNext() throws Exception {\n//TODO: Test goes here... \n }",
"@Test\r\n public void testGetListingTitle() {\r\n System.out.println(\"getListingTitle\");\r\n \r\n String expResult = \"\";\r\n String result = instance.getListingTitle();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }",
"@Test\n public void testingTheTwoPlane2016Order() {\n }",
"public void testGetURI() {\n }",
"@Test\n public void testCreateIndexType() throws Exception {\n//TODO: Test goes here... \n }",
"@Test\n public void testQuickCopy() {\n//TODO: Test goes here... \n }",
"@Test\r\n\tpublic void testFrontTimes() {\r\n//\t\tassertEquals(\"ChoCho\", WarmUpTwo.frontTimes)\r\n\t\tfail(\"Not yet implemented\");\r\n\t\t\r\n\t}",
"public void testaReclamacao() {\n\t}",
"@Test\n public void shouldProcessData() throws Exception {\n }",
"@Test\n public void testGetNumberAvailable() {\n }",
"@Test\n\tpublic void testReadTicketOk() {\n\t}",
"@Test\n\tvoid testLectureChoixInt() {\n\t\t\n\t}",
"public void testGetOrder() {\n }",
"@Test\n void completeItemsAsString() {\n\n }",
"public void testLoadOrder() throws Exception {\n }",
"public void testBidu(){\n\t}",
"@Test\n\tpublic void getWorksTest() throws Exception {\n\t}",
"@Test\n public void testSelectByNew() throws Exception{\n }",
"@Test\n public void testDAM31501001() {\n //\n testDAM30201001();\n }",
"public void testGetDelDyn() {\n }",
"@Test\n public void testGetNumberCheckedOut() {\n }",
"@Test\n public void testingTheSixFlatbed2017Order() {\n }",
"@Test\n public void testProgramElementsType() {\n // TODO: test ProgramElementsType\n }",
"@Test\r\n public void testRentOut() {\r\n }",
"@Test\n public void testQuickMapList() {\n//TODO: Test goes here... \n }",
"@Test\n public void testRemoveACopy() {\n }",
"@Test\r\n public void testGetDescription() {\r\n System.out.println(\"getDescription\");\r\n \r\n String expResult = \"\";\r\n String result = instance.getDescription();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }",
"@Test\n public void accuseSuccesTest() throws Exception {\n }",
"@Test\r\n public void testSetName() {\r\n\r\n }",
"@Test\n\tpublic abstract void testTransform4();",
"@Test\n\tpublic void testFtoC(){\n\t}",
"@Test\n public void testOncoKBInfo() {\n // TODO: test OncoKBInfo\n }",
"@Test\n public void z_topDown_TC03() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n\n Statistica statistica = appService.getStatistica();\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"Literatura\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"Literatura\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"M\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"M\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"A\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"A\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"B\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"B\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"C\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"C\")==1);\n\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n } catch (NotAbleToCreateStatisticsException e) {\n assertTrue(false);\n }\n }",
"@Test\n\tpublic void cmainTest() {\n\t\t\n\t\tSystem.out.println(\"This is main Test 1\");\n\t\t\t//most of the time we compare string value\n\t\tAssert.assertEquals(\"Test\", \"Test\");\n\t\t\n\t}",
"@Test\n\tpublic void testHardPuzzleGeneration() {\n\t}",
"public void testGetTaskActorE(){\n }",
"@Override\n public void setUp() {\n }",
"@Test\n\tpublic void testMain() {\n\t}",
"@Test\n void completeItemsAsString() {\n }",
"@Test\n\tpublic void testGive20Back() {\n\t\n\t}",
"protected TestBench() {}",
"@Override\n\tpublic void runTest() throws Throwable {}",
"@Test\n public void reopenClosedTeamUnavalableOption() {\n\n }",
"@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}",
"public void testGetStartValue2() {\n TaskSeriesCollection c = createCollection2();\n TaskSeriesCollection c3 = createCollection3();\n }",
"@Test\n\tvoid searchTest() {\n\t}",
"@Test\n public void testCheckForProduct() throws Exception {\n }",
"public void test() {\n\t}",
"public void testOperation();",
"public void testGetStartValue() {\n TaskSeriesCollection c = createCollection1();\n TaskSeriesCollection c3 = createCollection3();\n }",
"public void testGetJSON() {\n\t}",
"@Test\n public void testListStorageBinInformation2() throws Exception {\n System.out.println(\"listStorageBinInformation\");\n Long factoryId = 90L;\n String result = \"\";\n try {\n FactoryInventoryManagementModule.listStorageBinInformation(factoryId);\n } catch (Exception ex) {\n result = ex.getMessage();\n }\n assertEquals(\"Factory is not found!\", result);\n }",
"@Before\n\t public void setUp() {\n\t }",
"@Test\r\n\tpublic void test() {\r\n\t}",
"@Test\r\n\tpublic void testOrderPerform() {\n\t}",
"@Test\n public void questionIfNotAlreadyAccusedTest() throws Exception {\n\n }",
"@Test \n\tpublic void get() \n\t{\n\t\tassertTrue(true);\n\t}",
"@Test\r\n\tpublic void testGetFirst() {\n\t}",
"@Test\n\tpublic void testDoGeneration() {\n\t}",
"@Override\n @Before\n public void setUp() throws IOException {\n }",
"@Test\n\tvoid test() {\n\t\t\n\t}"
] | [
"0.7391292",
"0.6923516",
"0.6886534",
"0.67782545",
"0.6747558",
"0.6713995",
"0.6657672",
"0.66326314",
"0.6612264",
"0.6605942",
"0.6603875",
"0.6588808",
"0.6581384",
"0.65534365",
"0.6545108",
"0.65333104",
"0.65320593",
"0.65291834",
"0.65054065",
"0.64811933",
"0.64796543",
"0.6459491",
"0.64506584",
"0.64323866",
"0.64294505",
"0.64119977",
"0.64078754",
"0.6385647",
"0.6378913",
"0.63714886",
"0.6368375",
"0.6368375",
"0.63597554",
"0.63546365",
"0.6350517",
"0.63422793",
"0.6332447",
"0.6327653",
"0.63193285",
"0.6317861",
"0.6309421",
"0.6306369",
"0.6303988",
"0.629751",
"0.62967736",
"0.62953097",
"0.62912536",
"0.62835044",
"0.62712115",
"0.6264723",
"0.62631553",
"0.6259603",
"0.6257092",
"0.6256958",
"0.6255449",
"0.6254344",
"0.6251529",
"0.62508696",
"0.6243025",
"0.62419105",
"0.62383795",
"0.6235866",
"0.6235583",
"0.6226097",
"0.62258345",
"0.6220087",
"0.62165225",
"0.6214249",
"0.62084794",
"0.6203275",
"0.6200513",
"0.61977714",
"0.61895895",
"0.61849296",
"0.6184279",
"0.61825436",
"0.61769736",
"0.6171257",
"0.6170959",
"0.6170252",
"0.6169614",
"0.6167821",
"0.6165224",
"0.6162132",
"0.6159628",
"0.61546326",
"0.6153829",
"0.6152429",
"0.61458045",
"0.6138276",
"0.6136391",
"0.6136118",
"0.61279017",
"0.6127422",
"0.6127217",
"0.6123452",
"0.61219835",
"0.6121881",
"0.6121034",
"0.61154807",
"0.6114794"
] | 0.0 | -1 |
Obtiene la lista de los valores seleccionados en el menu de origenes de ingresos. | public void obtenerMercadosSeleccionados() {
listaMercadosSeleccionado = new ArrayList<>();
for (String origen : this.mercadosSeleccionados) {
CatalogoBean catalogo = catalogos.getCatalogoBean(
CatalogoEnum.TP_MERCADOS_ORG, origen);
listaMercadosSeleccionado.add(origen + " - "
+ catalogo.getDescripcionL());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> getSelectedValues()\n {\n List<String> selectedValues = new ArrayList<String>();\n CharSequence[] allValues = getEntryValues();\n for( int i = 0; i < allValues.length; i++ )\n {\n if( mCheckedStates[i] )\n selectedValues.add( allValues[i].toString() );\n }\n return selectedValues;\n }",
"public List< T > getSelectedValuesChoices() {\r\n return selectedValuesChoices;\r\n }",
"private void cargaLista() {\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Aclaracion\", \"Aclaracion\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revision\", \"Revision\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revocatoria\", \"Revocatoria\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Subsidiaria\", \"Subsidiaria\"));\n \n }",
"List<String> getSelectedItems();",
"public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}",
"public static String[] generarOpcionesMenu() {\n\t\tString[] opcionesMenu = new String[VALUES.length + 1];\n\t\tint i = 0;\n\t\tfor (Modelo modelo : VALUES) {\n\t\t\topcionesMenu[i++] = modelo.name();\n\t\t}\n\t\topcionesMenu[i] = \"Salir\";\n\t\treturn opcionesMenu;\n\t}",
"private void setearOpcionesMenuCobros()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuCobros = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_COBRO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_EGRESO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_GASTOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_DEPOSITO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CONCILIACION) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO))\r\n\t\t\t\t\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tlstFormsMenuCobros.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuCobros.size()> 0)\r\n\t\t{\r\n\r\n\t\t\tthis.layoutMenu = new VerticalLayout();\r\n\t\t\t//this.tabMantenimientos.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbCobros.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbCobros);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuCobros) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_COBRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_COBRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarIngresoCobro();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.ingCobro);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarOtroCobro();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.otroCobro);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_EGRESO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_EGRESO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarIngresoEgreso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.ingEgreso);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarOtroEgreso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.otroEgreso);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_GASTOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_GASTOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarGastos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.gastos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\r\n\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_DEPOSITO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_DEPOSITO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarDeposito();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.deposito);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CONCILIACION:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CONCILIACION, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarConciliacion();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.conciliacion);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.menuItems.addComponent(this.layoutMenu);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"protected abstract List<OpcionMenu> inicializarOpcionesMenu();",
"public java.lang.Object[] getSelectPresentationValueList();",
"public static String[] generarOpcionesMenu() {\r\n\t\tString[] opcionesMenu = new String[getValues().length + 1];\r\n\t\tint i = 0;\r\n\t\tfor (Color color : getValues()) {\r\n\t\t\topcionesMenu[i++] = color.name();\r\n\t\t}\r\n\t\topcionesMenu[i] = \"Salir\";\r\n\t\treturn opcionesMenu;\r\n\t}",
"public void MostrarValores() {\r\n Nodo recorrido = UltimoValorIngresado;\r\n\r\n while (recorrido != null) {\r\n Lista += recorrido.informacion + \"\\n\";\r\n recorrido = recorrido.siguiente;\r\n }\r\n\r\n JOptionPane.showMessageDialog(null, Lista);\r\n Lista = \"\";\r\n }",
"void setPosiblesValores(int[] valores);",
"public List< T > getSelectedValuesChoicesObject() {\r\n return this.selectedValuesChoices;\r\n }",
"private void setearOpcionesMenuMantenimientos()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuMant = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CLIENTES)\r\n\t\t\t\t|| formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_FUNCIONARIOS) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_IMPUESTO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_EMPRESAS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CODIGOS_GENERALIZADOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_DOCUMENTOS) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_DOCUMENTOS_DGI) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_MONEDAS) || \r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_COTIZACIONES) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_TIPORUBROS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CUENTAS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_BANCOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_PROCESOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_RESUMEN_PROCESO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_PERIODO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(\"SaldoDocumentos\") ||\r\n\t\t\t\tformularioVO.getCodigo().equals(\"SaldoCuentas\") ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_RUBROS))\r\n\t\t\t{\r\n\t\t\t\tlstFormsMenuMant.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuMant.size()> 0)\r\n\t\t{\r\n\r\n\t\t\t//this.layoutMenu = new VerticalLayout();\r\n\t\t\t//this.tabMantenimientos.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbMantenimientos.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbMantenimientos);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuMant) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_IMPUESTO :\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_IMPUESTO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarImpuestoButton(); \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.impuestoButton);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_EMPRESAS :\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_EMPRESAS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarEmpresaButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.empresaButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CODIGOS_GENERALIZADOS :\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CODIGOS_GENERALIZADOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarCodigosGeneralizadosButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.codigosGeneralizados);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_DOCUMENTOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_DOCUMENTOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarDocumentosButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.documentosButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_MONEDAS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_MONEDAS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarMonedasButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.monedasButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_RUBROS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_RUBROS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarRubros();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.rubros);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CLIENTES:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CLIENTES, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarClientes();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.clientesButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_FUNCIONARIOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_FUNCIONARIOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarFuncionarios();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.funcionariosButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_COTIZACIONES:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_COTIZACIONES, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarCotizaciones();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.cotizaciones);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_TIPORUBROS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_TIPORUBROS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarTipoRubros();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.tipoRubros);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CUENTAS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CUENTAS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarCuentas();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.cuentas);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_BANCOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_BANCOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarBancos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.bancos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_PROCESOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_PROCESOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarProcesos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.procesos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_RESUMEN_PROCESO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_RESUMEN_PROCESO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarResumenProceso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.resumenProc);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_PERIODO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_PERIODO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarPeriodo();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.periodo);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//TODO\r\n\t\t\t//this.acordion.addTab(tabMantenimientos, \"Mantenimientos\", null);\r\n\t\t\t\r\n\t\t\t//this.menuItems.addComponent(this.layoutMenu);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//acordion.setHeight(\"75%\"); /*Seteamos alto del accordion*/\r\n\t}",
"public void valueChanged(ListSelectionEvent e)\n\t{\n\t\t\n\t\t//si el cambio es en la lista de Proyectos\n\t\tif (e.getSource() == lP)\n {\n\t\t\tif( arrayRutas.isEmpty() == false)\n\t\t\t{\t\n\t\t\t\t proySeleccionado = arrayRutas.get(lP.getSelectedIndex());\n\t\t\t\t proySeleccionado += \"\\\\src\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Seleccione un proyecto\");\n \n\t\t\tArrayList<String> clases = new ArrayList<String>();\n\t\t\ttry{\n\t\t\t\tFile proy = new File(proySeleccionado);\n\t\t\t\trec.getAllJavaFiles(proy, clases, arrayRutasClases);\n\t\t\t\tlC = new JList(clases.toArray());\n\t\t\t\tlC.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\t\t\tlistClases.setViewportView(lC);\n\t\t\t\tlC.addListSelectionListener(this);\n\t\t\t\tgetContentPane().add(listClases);\n\t\t\t\tfor (String string : arrayRutasClases) {\n\t\t\t\t\t System.out.println(string);\n\t\t\t\t}\n\t\t\t}catch(Exception e1)\n\t\t\t{\n\t\t\t\tclases.add(\"Seleccione proyecyto válido\");\n\t\t\t}\n }\n\t\t//si el cambio es en la lista de Clases\n\t\tif (e.getSource() == lC)\n\t\t{\n\t\t\tif(arrayRutasClases.isEmpty() == false)\n\t\t\t{\n\t\t\t\tmetodos = rec.obtenerListaMetodos(arrayRutasClases.get(lC.getSelectedIndex()));\n\t\t\t\tlM = new JList(metodos.toArray());\n\t\t\t\tlM.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\t\t\t//Ponemos la lista a la escucha de cambios\n\t\t\t\tlM.addListSelectionListener(this);\n\t\t\t\tlistMetodos.setViewportView(lM);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(metodos.toString());\n\t\t}\n\t\t\n\t\t//si el cambio es en la lista de Metodos\n\t\tif (e.getSource() == lM)\n\t\t{\n\t\t\t\n\t\t\trec.fanIn((String)arrayRutasClases.get(lC.getSelectedIndex()), (String)metodos.get(lM.getSelectedIndex()) );\n\t\t\trec.fanOut((String)arrayRutasClases.get(lC.getSelectedIndex()), (String)metodos.get(lM.getSelectedIndex()) );\n\t\t\t//va el path, y el nombre completo del metodo\n\t\t\t\n\t\t\trec.analizarMetodo((String)arrayRutasClases.get(lC.getSelectedIndex()), (String)metodos.get(lM.getSelectedIndex()) );\n\t\t\t\n\t\t\t//me guarda todo en Recorrer rec. Despues cuando apreto btnAnalizar\n\t\t\t//Toma todo lo que tiene rec (cant lineas, porc coment, etc)\n\t\t}\n\t\t\t\n }",
"public void valueChanged(ListSelectionEvent e) {\n Object src = e.getSource();\n\n if(e.getValueIsAdjusting() && src == listaTarefasCadastradas) {\n //envio do indice da tarefa, o controle de tarefas e do seletor 1 - adicionar nova 2 editar;\n\t\t\tnew TelaDetalheTarefa().mostrarDadosTarefa(ct, listaTarefasCadastradas.getSelectedIndex(),2, p.getArrProjetos(ind));\n }\n }",
"public List<Date> retrieveSelectedValues()\n\t{\n\t\tList<Date> selectedValues = new ArrayList<Date>();\n\t\t\n\t\t// for each loop to find all the selected time intervals\n\t\tfor (Widget timeSlot : this.getChildren())\n\t\t{\n\t\t\tif(timeSlot instanceof TimeSlot)\n\t\t\t{\n\t\t\t\tif(((TimeSlot) timeSlot).getValue())\n\t\t\t\t{\n\t\t\t\t\tselectedValues.add(((TimeSlot) timeSlot).getDate());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn selectedValues;\n\t}",
"private void setearOpcionesMenuProcesos()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuProceso = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_PROCESOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_RESUMEN_PROCESO))\r\n\t\t\t{\r\n\t\t\t\tlstFormsMenuProceso.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuProceso.size()> 0)\r\n\t\t{\r\n\r\n\t\t\tthis.layoutMenu = new VerticalLayout();\r\n\t\t\t//this.tabMantenimientos.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbProcesos.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbProcesos);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuProceso) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_PROCESOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_PROCESOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarProcesos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.procesos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_RESUMEN_PROCESO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_RESUMEN_PROCESO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarResumenProceso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.resumenProc);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.menuItems.addComponent(this.layoutMenu);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"List<UmsMenu> selectAll();",
"public List<String> getValues(String opt) {\n //noinspection unchecked\n return m_commandLine.getValues(opt);\n }",
"@Override\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\tJList lista=(JList) e.getSource();\n\t\tif(lista.getSelectedIndex()!= -1)\n\t\t\tvista.setPersona((Persona)lista.getSelectedValue());\n\t\t//System.out.println(lista.getSelectedValue().toString());\n\t}",
"@Override\n protected void setComponentValue(List<K> values, boolean fireEvents) {\n ListBox component = getComponent();\n int l = component.getItemCount();\n for (int i = 0; i < l; i++) {\n String value = component.getValue(i);\n component.setItemSelected(i, (values != null && values.contains(getItemValue(value))));\n }\n }",
"public Option[] SetSitesDropDownData(){\n List<SiteDTO> instDTOList = this.getinventory$GatheringSessionBean().SetSitesDropDownData();\n ArrayList<Option> allOptions = new ArrayList<Option>();\n Option[] allOptionsInArray;\n Option option;\n //Crear opcion titulo\n option = new Option(null,\" -- \"+BundleHelper.getDefaultBundleValue(\"drop_down_default\",getMyLocale())+\" --\");\n allOptions.add(option);\n //Crear todas las opciones del drop down\n for(SiteDTO sDTO : instDTOList){\n option = new Option(sDTO.getSiteId(), sDTO.getDescription().trim());\n allOptions.add(option);\n }\n //Sets the elements in the SingleSelectedOptionList Object\n allOptionsInArray = new Option[allOptions.size()];\n return allOptions.toArray(allOptionsInArray);\n }",
"public void atualizaTxtListaPSVs(){\n for(MenuItem item : txtListaPSVs.getItems()) {\n CheckMenuItem checkMenuItem = (CheckMenuItem) item;\n if(checkMenuItem.isSelected()) {\n// System.out.println(\"Selected item :\" + checkMenuItem.getText());\n txtListaPSVs.setText(checkMenuItem.getText());\n checkMenuItem.setSelected(false);\n pegaIndicePSVPeloNome(checkMenuItem.getText().toString());\n }\n }\n }",
"@Override\n\tpublic ArrayList<String> setValues() {\n\t\tList<String> str = new ArrayList<String>();\n\t\tstr.add(\"PcMan\");\n\t\tstr.add(\"gcMan\");\n\t\tstr.add(\"ycMan\");\n\t\tstr.add(\"kcMan\");\n\t\tstr.add(\"NoMan\");\n\t\treturn (ArrayList<String>) str;\n\t\t\n\t}",
"@Override\r\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\tString query=\"\";\r\n\t\t\r\n\t\tselectedUsers.clear();\r\n\t\t\r\n\t\tListSelectionModel lsm = (ListSelectionModel)e.getSource();\r\n\t\tint minIndex = lsm.getMinSelectionIndex();\r\n int maxIndex = lsm.getMaxSelectionIndex();\r\n for (int i = minIndex; i <= maxIndex; i++) \r\n {\r\n if (lsm.isSelectedIndex(i)) \r\n {\r\n \t\t\tif (query.length()!=0)\r\n \t\t\t{\r\n \t\t\t\tquery = query + \" OR \";\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tquery = query + \"fromdisp:\\\"\" + interestedUsers[i] + \"\\\"\"; \r\n \t\t\t\r\n \t\t\tselectedUsers.add(interestedUsers[i]);\r\n }\r\n }\r\n \r\n if (query.length()==0)\r\n {\r\n \tqueryTextField.setText(\"*:*\");\r\n }\r\n else\r\n {\r\n \tqueryTextField.setText(\"(\" + query + \")\");\r\n }\r\n \r\n\t\t\r\n\t}",
"@Override\r\n\t\tpublic void valueChanged(ListSelectionEvent e) {\r\n\t\t\t\r\n\t\t}",
"public List<OpcionMenu> getElementosMenu()\n\t{\n\t\treturn elementosMenu;\n\t}",
"public ArrayList<String> getOptionValues() {\n return optionValues;\n }",
"private void jListStageplaatsenValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jListStageplaatsenValueChanged\n Stageplaats s = (Stageplaats)jListStageplaatsen.getSelectedValue();\n if (s != null){ this.geselecteerdeStageplaats = s; }\n ClearDisplayedStageplaats();\n refreshDisplayedStageplaats();\n enableButtons();\n }",
"@Override\n\tpublic List<Tmenu> selectAllList() {\n\t\treturn menuMapper.selectAllList();\n\t}",
"private void establecerMenu(ArrayList<PlatilloMenu> lMenu) {\n Object[] columnas = {\"Platillo\", \"Reservados\", \"Para vender\"};\n Object[][] modelo = new Object[lMenu.size()][3];\n int x = 0;\n DefaultComboBoxModel modeloLista;\n ArrayList<Platillo> listaPlatilllos = new ArrayList<>();\n for (PlatilloMenu platilloMenu : lMenu) {\n int paraVender = platilloMenu.getCantidad();\n int reservados = platilloMenu.getReservados();\n // Si el platillo del menu aún se puede vender\n if (paraVender > 0 || reservados > 0) {\n // Se agrega el platillo a la lista de platillos\n listaPlatilllos.add(platilloMenu.getPlatillo());\n }\n modelo[x][0] = platilloMenu.getPlatillo().getNombre();\n modelo[x][1] = reservados;\n modelo[x][2] = paraVender;\n x++;\n }\n // Se establece el modelo en la tabla con los datos\n tablaMenu.setDefaultEditor(Object.class, null);\n tablaMenu.setModel(new DefaultTableModel(modelo, columnas));\n tablaMenu.setCellSelectionEnabled(false);\n tablaMenu.setRowSelectionAllowed(false);\n Object[] arregloPlatillos;\n // Si hay platillos que se puedan vender\n if (listaPlatilllos.size() > 0) {\n // Se guardan en el arreglo\n arregloPlatillos = listaPlatilllos.toArray();\n modeloLista = new DefaultComboBoxModel(arregloPlatillos);\n comboPlatillos.setModel(modeloLista);\n // Si es horario de comidas\n if (this.categoría.equals(\"COMIDA\")) {\n // Consulta la sopa del día\n this.sopaDelDia = Control.menu.consultarSopaDia(diaSemana);\n // si hay una sopa establecida en el menú\n if (sopaDelDia != null) {\n // Se habilita el checkbox y se establece el nombre\n checkBoxSopa.setEnabled(true);\n checkBoxSopa.setText(sopaDelDia.getNombre());\n } else {\n checkBoxSopa.setEnabled(false);\n checkBoxSopa.setText(\"SOPA NO ESTABLECIDA\");\n }\n } else {\n checkBoxSopa.setEnabled(false);\n }\n \n }//Si no\n else {\n \n // Se guarda un solo valor indicando el resultado de la búsqueda\n arregloPlatillos = new Object[1];\n arregloPlatillos[0] = \"-------SIN PLATILLOS DISPONIBLES------\";\n modeloLista = new DefaultComboBoxModel(arregloPlatillos);\n comboPlatillos.setModel(modeloLista);\n // Se desactivan todos los componentes\n //desactivarComponentes(this);\n }\n }",
"@Override\n\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\n\t}",
"public void populateMenuFields(){\n\t\t\t\n\t\t\tif (restaurant.getMenu().getItems().size()!=0)\n\t\t\t{\n\t\t\t\tfor(int i=0;i<restaurant.getMenu().getItems().size();i++)\n\t\t\t\t{\n\t\t\t\t\tlistOfItemNames.add(restaurant.getMenu().getItemAt(i).getItemName());\n\t\t\t\t\tlistOfDescription.add(restaurant.getMenu().getItemAt(i).getItemDescription());\n\t\t\t\t\tlistOfPrice.add(restaurant.getMenu().getItemAt(i).getItemPrice()+\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\n public void valueChanged(javax.swing.event.ListSelectionEvent e)\n {\n this.choice = e.getFirstIndex();\n }",
"@Override\n public void valueChanged(ListSelectionEvent arg0) {\n\n }",
"public void listar() {\r\n Collections.sort(coleccion);\r\n for (int i = 0; i < coleccion.size(); i++) {\r\n String resumen = (coleccion.get(i).toString());\r\n JOptionPane.showMessageDialog(null, resumen);\r\n }\r\n }",
"public void valueChanged(ListSelectionEvent e){\n\t\tif(e.getValueIsAdjusting()) return;\n\t\t\n\t\t//\tget selected DataObjects\n\t\tclear();\n\t\taddAll(list != null ? JBNDUtil.castArray(list.getSelectedValues(), DataObject.class) : \n\t\t\tJBNDSwingUtil.selectedRecords(table));\n\t}",
"List getValues();",
"public void MostrarListas (){\n Nodo recorrer=inicio; // esto sirve para que el elemento de la lista vaya recorriendo conforme se inserta un elemento\r\n System.out.println(); // esto nos sirve para dar espacio a la codificacion de la lista al imprimir \r\n while (recorrer!=null){ // esta secuencia iterativa nos sirve para repetir las opciones del menu\r\n System.out.print(\"[\" + recorrer.dato +\"]--->\");\r\n recorrer=recorrer.siguiente;\r\n }\r\n }",
"public java.lang.String[] getSelectvalues() {\n return selectvalues;\n }",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tif (jcb.isSelected()) {\n\t\t\t\t\t\tselectList.add(new Integer(site));\n\t\t\t\t\t\t//System.out.println(selectList);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tselectList.remove(new Integer(site));\n\t\t\t\t\t\t//System.out.println(selectList);\n\t\t\t\t\t}\n\t\t\t\t}",
"private List getParameterMenuItems(final int row) {\n List items = new ArrayList();\n JMenu paramMenu = new JMenu(\"Parameter \" + getFieldName(row));\n items.add(paramMenu);\n\n VerticalProfileInfo rowInfo = getVPInfo(row);\n paramMenu.add(GuiUtils.makeMenuItem(\"Chart Properties\",\n VerticalProfileControl.this,\n \"showLineProperties\", rowInfo));\n\n\n\n // change unit choice\n JMenuItem jmi;\n jmi = new JMenuItem(\"Change Unit...\");\n paramMenu.add(jmi);\n jmi.addActionListener(new ObjectListener(new Integer(row)) {\n public void actionPerformed(ActionEvent ev) {\n\n Unit newUnit = getDisplayConventions().selectUnit(\n getVPInfo(row).getUnit(), null);\n if (newUnit != null) {\n getVPInfo(row).setUnit(newUnit);\n try {\n doMoveProbe();\n } catch (Exception exc) {\n logException(\"After changing units\", exc);\n }\n }\n\n }\n });\n\n\n // Remove this parameter\n jmi = new JMenuItem(\"Remove\");\n paramMenu.add(jmi);\n jmi.addActionListener(new ObjectListener(new Integer(row)) {\n public void actionPerformed(ActionEvent ev) {\n removeField(((Integer) theObject).intValue());\n }\n });\n\n return items;\n\n }",
"static void listerMenu() {\n System.out.println(\n \"-------------------------------------\\n\" +\n \"Saisir une option :\\n\" +\n \"1 : Liste des hôtes\\n\" +\n \"2 : Liste des logements\\n\" +\n \"3 : Liste des voyageurs\\n\" +\n \"4 : Liste des réservations\\n\" +\n \"5 : Fermer le programme\"\n );\n switch (Menu.choix(5)) {\n case 1:\n GestionHotes.listerHotes();\n break;\n case 2:\n GestionLogements.listerLogements();\n break;\n case 3:\n GestionVoyageurs.listerVoyageurs();\n break;\n case 4:\n GestionReservations.listerReservations();\n break;\n case 5:\n System.exit(0);\n break;\n }\n }",
"public ArrayList<V> valueSet() {\n\t\t\treturn valores;\n\t\t}",
"private void iniciarListas() {\n listaBebidas = new ElementoMenu[7];\n listaBebidas[0] = new ElementoMenu(1, \"Coca\");\n listaBebidas[1] = new ElementoMenu(4, \"Jugo\");\n listaBebidas[2] = new ElementoMenu(6, \"Agua\");\n listaBebidas[3] = new ElementoMenu(8, \"Soda\");\n listaBebidas[4] = new ElementoMenu(9, \"Fernet\");\n listaBebidas[5] = new ElementoMenu(10, \"Vino\");\n listaBebidas[6] = new ElementoMenu(11, \"Cerveza\");\n// inicia lista de platos\n listaPlatos = new ElementoMenu[14];\n listaPlatos[0] = new ElementoMenu(1, \"Ravioles\");\n listaPlatos[1] = new ElementoMenu(2, \"Gnocchi\");\n listaPlatos[2] = new ElementoMenu(3, \"Tallarines\");\n listaPlatos[3] = new ElementoMenu(4, \"Lomo\");\n listaPlatos[4] = new ElementoMenu(5, \"Entrecot\");\n listaPlatos[5] = new ElementoMenu(6, \"Pollo\");\n listaPlatos[6] = new ElementoMenu(7, \"Pechuga\");\n listaPlatos[7] = new ElementoMenu(8, \"Pizza\");\n listaPlatos[8] = new ElementoMenu(9, \"Empanadas\");\n listaPlatos[9] = new ElementoMenu(10, \"Milanesas\");\n listaPlatos[10] = new ElementoMenu(11, \"Picada 1\");\n listaPlatos[11] = new ElementoMenu(12, \"Picada 2\");\n listaPlatos[12] = new ElementoMenu(13, \"Hamburguesa\");\n listaPlatos[13] = new ElementoMenu(14, \"Calamares\");\n// inicia lista de postres\n listaPostres = new ElementoMenu[15];\n listaPostres[0] = new ElementoMenu(1, \"Helado\");\n listaPostres[1] = new ElementoMenu(2, \"Ensalada de Frutas\");\n listaPostres[2] = new ElementoMenu(3, \"Macedonia\");\n listaPostres[3] = new ElementoMenu(4, \"Brownie\");\n listaPostres[4] = new ElementoMenu(5, \"Cheescake\");\n listaPostres[5] = new ElementoMenu(6, \"Tiramisu\");\n listaPostres[6] = new ElementoMenu(7, \"Mousse\");\n listaPostres[7] = new ElementoMenu(8, \"Fondue\");\n listaPostres[8] = new ElementoMenu(9, \"Profiterol\");\n listaPostres[9] = new ElementoMenu(10, \"Selva Negra\");\n listaPostres[10] = new ElementoMenu(11, \"Lemon Pie\");\n listaPostres[11] = new ElementoMenu(12, \"KitKat\");\n listaPostres[12] = new ElementoMenu(13, \"IceCreamSandwich\");\n listaPostres[13] = new ElementoMenu(14, \"Frozen Yougurth\");\n listaPostres[14] = new ElementoMenu(15, \"Queso y Batata\");\n }",
"@Override\n\tpublic List selectList() {\n\t\t\n\t\t\n\t\t\n\t\treturn null;\n\t}",
"java.util.List<java.lang.String> getValuesList();",
"private void setValues() {\n if (dish != null) {\n etDishName.setText(dish.getNAME());\n etDishAmount.setText(HungryAdminUtility.getFormattedPrice(Double.parseDouble(dish.getAMOUNT())));\n etDishQuantity.setText( dish.getQUNTITY());\n etDishDescription.setText(dish.getDESCRIPTION());\n\n settime(dish.getSTART_TIME(), dish.getEND_TIME(), etStartTime, etEndTime);\n /* etStartTime.setText(dish.getSTART_TIME());\n etEndTime.setText(dish.getEND_TIME());\n */\n Log.e( \"setValues: \", dish.getTYPE());\n\n if(dish.getIS_SHOWN().equals(\"Y\"))\n {\n swIsShown.setChecked(true);\n }\n else {\n swIsShown.setChecked(false);\n }\n for (int i = 0; i < menuTypes.size(); i++) {\n if (menuTypes.get(i).equalsIgnoreCase(dish.getTYPE())) {\n spDishType.setSelected(true);\n } else {\n spDishType.setSelected(false);\n }\n }\n\n\n for (int i = 0; i < menuCategory.size(); i++) {\n Log.e( \"setValueslist1: \", String.valueOf(menuCategory.get(i)));\n\n if (menuCategory.get(i).equals(dish.getCATEGORY())) {\n spDishCategory.setSelection(i);\n spDishCategory.setSelected(true);\n } else {\n spDishCategory.setSelected(false);\n }\n }\n }\n }",
"public List<SelectItem> getListaMes()\r\n/* 163: */ {\r\n/* 164:209 */ ArrayList<SelectItem> lista = new ArrayList();\r\n/* 165:210 */ for (Mes mes : Mes.values()) {\r\n/* 166:211 */ lista.add(new SelectItem(mes, mes.getNombre()));\r\n/* 167: */ }\r\n/* 168:213 */ return lista;\r\n/* 169: */ }",
"public ArrayList<String> menuComBox();",
"public void setListaPartidas() {\r\n\t\tDefaultListModel<String> modelo = new DefaultListModel<String>();\r\n\t\t\r\n\t\tfor(int i = 0; i < this.listadoPartidas.size(); i++) {\r\n\t\t\tmodelo.add(i, this.listadoPartidas.get(i).getNombre());\r\n\t\t}\r\n\t\tthis.partidasList.setModel(modelo);\r\n\t\tif(!this.partidaSelecionada.equals(\"\")) {\r\n\t\t\tfor (Partida partida : this.listadoPartidas) {\r\n\t\t\t\tif(partida.getNombre().equals(this.partidaSelecionada)){\r\n\t\t\t\t\tlblInfoEspera.setText(Integer.toString(partida.getConectados()));\r\n\t\t\t\t\tlblInfoEstado.setText(partida.getEstado());\r\n\t\t\t\t\tlblInfoJugadoresReq.setText(Integer.toString(partida.getJugadoresReq()));\r\n\t\t\t\t\tif(principal.getVentanaEspera() != null)\r\n\t\t\t\t\t\tprincipal.getVentanaEspera().setValoresEspera(this.partidaMaxJugadores, partida.getJugadoresReq(), partida.getConectados());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public String[] displayMenu() {\n\n PersonalMatchDAO personalMatchDAO = new PersonalMatchDAO();\n personalMatchDAO.listAllPersonalMatches();\n\n String[] str = {selection};\n return str;\n\n }",
"@FXML\n Komponent[] getSelected() {\n Komponent prosessor = velgProsessor.getValue();\n Komponent skjermkort = velgSkjermkort.getValue();\n Komponent minne = velgMinne.getValue();\n Komponent lagring = velgLagring.getValue();\n Komponent tastatur = velgTastatur.getValue();\n Komponent datamus = velgDatamus.getValue();\n Komponent skjerm = velgSkjerm.getValue();\n\n // legg verdier i array\n Komponent[] k = {prosessor,skjermkort,minne,lagring,tastatur,datamus,skjerm};\n\n print(k); // print kvittering med valgte komponenter og totpris\n\n return k; // returner verdier fra nedtrekksliste som array\n }",
"public List<SelectItem> getlistEstados() {\n\t\tList<SelectItem> lista = new ArrayList<SelectItem>();\n\t\tlista.add(new SelectItem(Funciones.estadoActivo, Funciones.estadoActivo\n\t\t\t\t+ \" : \" + Funciones.valorEstadoActivo));\n\t\tlista.add(new SelectItem(Funciones.estadoInactivo,\n\t\t\t\tFunciones.estadoInactivo + \" : \"\n\t\t\t\t\t\t+ Funciones.valorEstadoInactivo));\n\t\treturn lista;\n\t}",
"@Override\n\tabstract protected List<String> getOptionsList();",
"public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }",
"List<ToolsOutIn> selectAll();",
"public ArrayList<Equipamento> todos() {\n return new ArrayList<>(lista.values());\n }",
"@FXML\n void loadComboBoxLocationValues() {\n ArrayList<Location> locations = LocationDAO.LocationSEL(-1);\n comboBoxLocation.getItems().clear();\n if (!locations.isEmpty())\n for (Location location : locations) {\n comboBoxLocation.getItems().addAll(location.getLocationID());\n }\n }",
"@Override\n public java.lang.Object getSystemMenuChoicesForClass() throws G2AccessException {\n java.lang.Object retnValue = getStaticAttributeValue (SystemAttributeSymbols.SYSTEM_MENU_CHOICES_);\n return (java.lang.Object)retnValue;\n }",
"public void valueChanged(ListSelectionEvent e)\n\t\t\t{\n\t\t\t}",
"public void valueChanged(ListSelectionEvent arg0) {\n\t\t\r\n\t}",
"public void setElementosMenu(List<OpcionMenu> elementosMenu)\n\t{\n\t\tindiceElementoMenuActual = 0;\n\t\tthis.elementosMenu = elementosMenu;\n\t\tsetElementoMenuActual();\n\t}",
"@Override\r\n\tpublic List<PurchaseRequisition_itemInformation> selectPriList() {\n\t\treturn prim.selListPri();\r\n\t}",
"public List<FormMenuVO> selectSiteMenuFormList() {\n\t\treturn sqlSession.selectList(\"com.example.mapper.SiteMapper.selectSiteMenuFormList\");\n\t}",
"private void setearOpcionesMenuFacturacion()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuFacturacion = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_FACTURA) ||\r\n\t\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_RECIBO) ||\r\n\t\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_NOTA_CREDITO))\r\n\t\t\t\t\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tlstFormsMenuFacturacion.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuFacturacion.size()> 0)\r\n\t\t{\r\n\r\n\t\t\tthis.layoutMenu = new VerticalLayout();\r\n\t\t\t//this.tabMantenimientos.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbFacturacion.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbFacturacion);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuFacturacion) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_NOTA_CREDITO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_NOTA_CREDITO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarNotaCredito();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.ingCobro);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\r\n\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_FACTURA:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_FACTURA, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarFactura();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.factura);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_RECIBO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_RECIBO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarRecibo();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.recibo);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.menuItems.addComponent(this.layoutMenu);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"void collect(){\r\n\t\tif (getValues() != null){\r\n\t\t\tfor (Variable var : getValues().getVariables()){\r\n\t\t\t\tdefSelect(var);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void rellenarCampos() {\n\t\tjfad.lbModCurso.setVisible(true);\n\t\tper = modelo.obtenerPeriodo(\n\t\t\t\tInteger.parseInt(jfad.tPeriodos.getValueAt(jfad.tPeriodos.getSelectedRow(), 0).toString()));\n\t\tjfad.dPDiaIniMod.setDate(per.getDia_inicio());\n\t\tjfad.dPDiaFinMod.setDate(per.getDia_fin());\n\t\tjfad.tPHoraInicioMod.setTime(per.getHora_inicio());\n\t\tjfad.tPHoraFinMod.setTime(per.getHora_fin());\n\t\tString intervalo = per.getIntervalo().toString();\n\t\tSystem.out.println(intervalo);\n\t\tint intervalo2 = Integer.parseInt(intervalo.substring(3));\n\t\tjfad.spIntervaloMod.setValue(intervalo2);\n\t\tif (per.getHabilitado())\n\t\t\tjfad.checkHabilitado.setSelected(true);\n\t}",
"@Override\n public void valueChanged(ListSelectionEvent e) {\n TableModel tm = jTable.getModel();\n // Bepaalt de geselecteerde rij en vult een array met alle waardes\n int[] selRows = jTable.getSelectedRows();\n // Dit vult selectedID\n this.result = tm.getValueAt(selRows[0],0);\n }",
"public void valueChanged(ListSelectionEvent e) {\r\n\t\tObject source = e.getSource();\r\n\t\tif (source == this.gragraNames) {\r\n\t\t\tswitch (this.stepPanel.getStep()) {\r\n\t\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\t\tsetGraph(StepPanel.STEP_HOST_GRAPH);\r\n\t\t\t\tbreak;\r\n\t\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\t\tsetGraph(StepPanel.STEP_STOP_GRAPH);\r\n\t\t\t\tbreak;\r\n\t\t\tcase StepPanel.STEP_CRITICAL_PAIRS:\r\n\t\t\t\tsetPairs();\r\n\t\t\t\tbreak;\r\n\t\t\tcase StepPanel.STEP_FINISH:\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setComboBoxValues() {\n String sql = \"select iName from item where iActive=? order by iName asc\";\n \n cbo_iniName.removeAllItems();\n try {\n pst = conn.prepareStatement(sql);\n pst.setString(1,\"Yes\");\n rs = pst.executeQuery();\n \n while (rs.next()) {\n cbo_iniName.addItem(rs.getString(1));\n }\n \n }catch(Exception e) {\n JOptionPane.showMessageDialog(null,\"Item list cannot be loaded\");\n }finally {\n try{\n rs.close();\n pst.close();\n \n }catch(Exception e) {}\n }\n }",
"private void cargarSitiosLibres() {\r\n\t\tList<ArrSitioPeriodo> listado = mngRes.sitiosLibresPorPeriodoGenero(periodo.getPrdId(),\r\n\t\t\t\tgetEstudiante().getMatGenero());\r\n\t\thashSitios = new HashMap<String, ArrSitioPeriodo>();\r\n\t\tsitiosLibres = new ArrayList<SelectItem>();\r\n\t\tif (listado != null && !listado.isEmpty()) {\r\n\t\t\tgetSitiosLibres().add(new SelectItem(0, \"Seleccionar\"));\r\n\t\t\tfor (ArrSitioPeriodo sitio : listado) {\r\n\t\t\t\tgetSitiosLibres().add(new SelectItem(sitio.getId().getArtId(), sitio.getSitNombre()));\r\n\t\t\t\thashSitios.put(sitio.getId().getArtId(), sitio);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic abstract void valueChanged(ListSelectionEvent arg0);",
"List<Integer> getSelectedIndexes();",
"public void valueChanged(ListSelectionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t// TODO Auto-generated method stub\n\t\tString name = ((JList) e.getSource()).getName();\n\t\tif (name.equals(\"pred\")){\n\t\t\tint selected = displayPred.getSelectedIndex();\n\t\t\tif (selected == -1)\n\t\t\t\tselected = 0;\n\t\t\tString loc = predParticles.get(selected).getPath();\n\t\t\tvm.updateParticleGame(loc);\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tint selected = displayPrey.getSelectedIndex();\n\t\t\tString loc = preyParticles.get(selected).getPath();\n\t\t\tvm.updateParticleGame(loc);\n\t\t}\n\t}",
"@Override\n\tpublic void onSelectionChanged(ListSelectionEvent e, List<ShoppingListObject> values) {\n\n\t}",
"@Override\r\n public void valueChanged(ListSelectionEvent e) {\n selectionChanged();\r\n }",
"public TelaListaOS() {\n initComponents();\n ConfigTelas ct = new ConfigTelas(this);\n ct.carregarConfig(this);\n \n this.jComboBoxOS.setVisible(false);\n }",
"private void setearOpcionesMenuAdministracion()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuAdmin = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_USUARIO)\r\n\t\t\t\t|| formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_GRUPO))\r\n\t\t\t{\r\n\t\t\t\tlstFormsMenuAdmin.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuAdmin.size()> 0)\r\n\t\t{\r\n\t\t\t//TODO\r\n\t\t\t//this.tabAdministracion = new VerticalLayout();\r\n\t\t\t//this.tabAdministracion.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbAdministracion.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbAdministracion);\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuAdmin) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_USUARIO : \r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_USUARIO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarUserButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.userButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_GRUPO :\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_GRUPO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarGrupoButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.gruposButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//TODO\r\n\t\t\t//this.acordion.addTab(tabAdministracion, \"Administración\", null);\r\n\t\t\t\r\n\t\t}\r\n\t\t//TODO\r\n\t\t//acordion.setHeight(\"75%\"); /*Seteamos alto del accordion*/\r\n\t}",
"public DAOTablaMenuProductos() {\r\n\t\trecursos = new ArrayList<Object>();\r\n\t}",
"@Override\n public void valueChanged(ListSelectionEvent e) {\n int i=taulaModelProveidor.getSelectedRow();\n if(i!=-1){\n \n //modNomCom.setText(Inici.llistaProveidors.get(i).get2nomCom());\n modNomCom.setText(taulaModelProveidor.getModel().getValueAt(i, 0).toString());\n modDataAlta.setText(taulaModelProveidor.getModel().getValueAt(i, 1).toString());\n modNomFis.setText(taulaModelProveidor.getModel().getValueAt(i, 2).toString());\n modCifNif.setText(taulaModelProveidor.getModel().getValueAt(i, 3).toString());\n modPais.setText(taulaModelProveidor.getModel().getValueAt(i, 4).toString());\n modPoblacio.setText(taulaModelProveidor.getModel().getValueAt(i, 5).toString());\n modDireccio.setText(taulaModelProveidor.getModel().getValueAt(i, 6).toString());\n modCp.setText((String)taulaModelProveidor.getModel().getValueAt(i, 7).toString());\n modTel.setText((String)taulaModelProveidor.getModel().getValueAt(i, 8).toString());\n modEmail.setText(taulaModelProveidor.getModel().getValueAt(i, 9).toString()); \n modWebsite.setText(taulaModelProveidor.getModel().getValueAt(i, 10).toString()); \n modCc.setText((String)taulaModelProveidor.getModel().getValueAt(i, 11).toString()); \n modDescompte.setText((String)taulaModelProveidor.getModel().getValueAt(i, 12).toString()); \n modNotes.setText(taulaModelProveidor.getModel().getValueAt(i, 13).toString());\n modEntrega.setText(taulaModelProveidor.getModel().getValueAt(i, 14).toString());\n modPorts.setText(taulaModelProveidor.getModel().getValueAt(i, 15).toString());\n modExpo.setText(taulaModelProveidor.getModel().getValueAt(i, 16).toString());\n \n \n modNomCom.setEnabled(true);\n modDataAlta.setEnabled(false);\n modNomFis.setEnabled(true);\n modCifNif.setEnabled(true);\n modPais.setEnabled(true);\n modPoblacio.setEnabled(true);\n modDireccio.setEnabled(true);\n modCp.setEnabled(true);\n modTel.setEnabled(true);\n modEmail.setEnabled(true);\n modWebsite.setEnabled(true);\n modCc.setEnabled(true); \n modDescompte.setEnabled(true); \n modNotes.setEnabled(true);\n modEntrega.setEnabled(true);\n modPorts.setEnabled(true);\n modExpo.setEnabled(true);\n \n \n \n String data = (taulaModelProveidor.getModel().getValueAt(i, 1).toString());\n indexupdate=0;\n for(int x = 0; data != (taulaModelProveidor.getModel().getValueAt(x, 1).toString()); x++){\n indexupdate++;\n }\n }\n //Si no hem seleccionat cap fila resetejem els jtextfields i els desactivem\n else{\n modNomCom.setText(\"\");\n modDataAlta.setText(\"\");\n modNomFis.setText(\"\");\n modCifNif.setText(\"\");\n modPais.setText(\"\");\n modPoblacio.setText(\"\");\n modDireccio.setText(\"\");\n modCp.setText(\"\");\n modTel.setText(\"\");\n modEmail.setText(\"\");\n modWebsite.setText(\"\");\n modCc.setText(\"\"); \n modDescompte.setText(\"\"); \n modNotes.setText(\"\");\n modEntrega.setText(\"\");\n modPorts.setText(\"\");\n modExpo.setText(\"\");\n \n \n modNomCom.setEnabled(false);\n modDataAlta.setEnabled(false);\n modNomFis.setEnabled(false);\n modCifNif.setEnabled(false);\n modPais.setEnabled(false);\n modPoblacio.setEnabled(false);\n modDireccio.setEnabled(false);\n modCp.setEnabled(false);\n modTel.setEnabled(false);\n modEmail.setEnabled(false);\n modWebsite.setEnabled(false);\n modCc.setEnabled(false); \n modDescompte.setEnabled(false); \n modNotes.setEnabled(false);\n modEntrega.setEnabled(false);\n modPorts.setEnabled(false);\n modExpo.setEnabled(false);\n \n \n }\n\n //Sempre que cliquem la taula desactivem el botó d'actualitzar fins que no es canvien els valors dels jtextfields\n btn_actualitzar.setEnabled(false);\n }",
"public void valueChanged(ListSelectionEvent e) {\n\t\t\t\n\t\t\tiHungryRestaurant hungryRestaurant = iHungryRestaurant.getInstance();\n\t\t\tgui.getOrderGui().getSubPanel10().setVisible(true);\n\t\t\tListSelectionModel lsm = (ListSelectionModel) e.getSource();\n\t\t\tint minIndex = lsm.getMinSelectionIndex();\t\t\n\t\t\t\n\t\t\tif(minIndex>=0)\n\t\t\t{\n\t\t\t\tList<Order> pendingOrders = new ArrayList<Order>(hungryRestaurant.getPendingOrders());\n\t\t\t\tOrder selectedOrder = pendingOrders.get(minIndex);\t\t\t\n\t\t\t\tgui.getOrderGui().getOrderNoT().setText(selectedOrder.getOrderID());\n\t\t\t\tgui.getOrderGui().getCustNo().setText(selectedOrder.getCustID());\n\t\t\t\tString[] orderDetails = new String[50];\n\t\t\t\tfor (int j = 0; j < selectedOrder.getOrderItems().size(); j++) {\n\t\t\t\t\torderDetails[j] = selectedOrder.getOrderItems().get(j)\n\t\t\t\t\t\t\t.getItem().getItemName()\n\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t+ selectedOrder.getOrderItems().get(j).getQuantity();\n\t\t\t\t}\n\t\t\t\tgui.getOrderGui().getList1().setListData(orderDetails);\n\t\t\t}\n\t\t}",
"public List<SelectItem> getInputTypeValues() {\n List<SelectItem> IOvalues = new ArrayList<>();\n for (IOtypes.IOtypesEnum IOtype : IOtypes.IOtypesEnum.values()) {\n IOvalues.add(new SelectItem(IOtype.toString(), IOtype.getMessage()));\n }\n return IOvalues;\n }",
"private void setElementoMenuActual() {\n\t\tif(elementoMenuActual!=null) {\n\t\t\telementoMenuActual.setSeleccionado(false);\n\t\t}\n\t\telementoMenuActual = elementosMenu.get(indiceElementoMenuActual);\n\t\telementoMenuActual.setSeleccionado(true);\n\t}",
"@Override\n\tpublic List<vip> selectAll() {\n\t\treturn this.vd.selectAll();\n\t}",
"public List<SelectItem> getInstituciones() {\r\n\t\tList<SelectItem> lista = new ArrayList<SelectItem>();\r\n\t\tlista.add(new SelectItem(0, \"TODAS\"));\r\n\t\ttry {\r\n\t\t\tfor (ColInstitucion ins : mngCon.findAllInstituciones()) {\r\n\t\t\t\tlista.add(new SelectItem(ins.getInsId(),ins.getInsNombre()));\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tMensaje.crearMensajeERROR(\"Error al cargar las Instituciones. \"\r\n\t\t\t\t\t+ e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn lista;\r\n\t}",
"@Override\n\tpublic List selectList() {\n\t\treturn null;\n\t}",
"public void cargarOpcionesPadre() {\n\t\tOpcionMenu elementoMenu = getElementoMenuActual();\n\t\tif(elementoMenu==null || elementoMenu.getOpcionMenuPadre() == null || elementoMenu.getOpcionMenuPadre().getOpcionMenuPadre() == null) {\n\t\t\tif(elementosMenu != elementosMenuRaiz) {\n\t\t\t\tsetElementosMenu(elementosMenuRaiz);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tOpcionSubMenu subMenu = (OpcionSubMenu) elementoMenu.getOpcionMenuPadre().getOpcionMenuPadre();\n\t\tif(subMenu!=null) {\n\t\t\tsetElementosMenu(subMenu.getHijos());\n\t\t}\n\t}",
"public static List<String> formPossibleValues(String enumeraion){\n\t\tList<String> ret = new ArrayList<String>();\n\t\tfor (String value : enumeraion.split(\";\"))\n\t\t\tret.add(value);\n\t\t\n\t\treturn ret;\n\t}",
"List<String> getEditPanelInput();",
"public ArrayList<Integer> get_values()\r\n\t{\r\n\t\treturn this.poss_values;\r\n\t}",
"public static void listMenuOptions(){\n\n System.out.println(\"Please choose an option:\");\n System.out.println(\"(1) Add a task.\");\n System.out.println(\"(2) Remove a task.\");\n System.out.println(\"(3) Update a task.\");\n System.out.println(\"(4) List all tasks.\");\n System.out.println(\"(0) Exit\");\n }",
"public static void setUserHintValues()\n {\n int hintValueNum=1; //Número de casillas que son reveladas al inicio de la partida.\n \n switch(GameManager.getGameLevel())\n {\n case 1: hintValueNum = 9;\n break;\n case 2: hintValueNum = 6;\n break;\n case 3: hintValueNum = 3;\n break;\n }\n \n int row; //Número de fila.\n int col; //Número de columna.\n boolean isSet; //Define si el valor de la casilla ya ha sido inicializado anteriormente.\n \n for (int i = 0; i < hintValueNum; i++)\n {\n isSet=false;\n do{\n row = (int) (Math.random() * 4);\n col = (int) (Math.random() * 4);\n \n if (playerBoardPos[row][col]==0)\n {\n //Inicializa algunas posiciones aleatorias para las pistas iniciales del tablero del jugador.\n playerBoardPos[row][col] = boardPos[row][col]; \n isDefaultPos[row][col]=true;\n isSet=true;\n }\n }while (isSet==false);\n }\n }",
"private void limparCampos() {\n\t\ttxtCidade.setText(\"\");\n\t\tlblId.setText(\"0\");\n\t\tcboEstado.getSelectionModel().select(0);\n\t}",
"private void setearPermisosMenu()\r\n\t{\r\n\t\t/*Permisos del usuario para los mantenimientos*/\r\n\t\tthis.setearOpcionesMenuMantenimientos();\r\n\t\tthis.setearOpcionesMenuFacturacion();\r\n\t\tthis.setearOpcionesMenuCobros();\r\n\t\tthis.setearOpcionesMenuProcesos();\r\n\t\tthis.setearOpcionesReportes();\r\n\t\tthis.setearOpcionesMenuAdministracion();\r\n\t}",
"public ArrayList<String> getSelectedUsers() {\r\n\t\treturn (ArrayList<String>) listUsers.getSelectedValuesList();\r\n\t}",
"@Override\n\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\tif (e.getValueIsAdjusting()) {\n\t\t\t\tJList list = (JList) e.getSource();\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tSystem.out.println(\"selected: \" + list.getSelectedValue());\n\t\t\t\tint userSelect = list.getSelectedIndex();\n\t\t\t\tplayingDBThread = null;\n\t\t\t\taudioDBThread = null;\n\t\t\t\tload_DB_video(resultListRankedNames.get(userSelect));\n\t\t\t\tupdateSimilarFrame();\n\t\t\t\tslider.setValue(0);\n\t\t\t}\n\t\t}",
"@Override\n public String[] getMenuOptions() {\n String[] options = {\"Change your username\", \"Change your password\", \"Change your email\"};\n return options;\n }"
] | [
"0.61166805",
"0.60117435",
"0.5938625",
"0.59069866",
"0.58702",
"0.58188426",
"0.5748162",
"0.5733188",
"0.5715082",
"0.5714872",
"0.5704099",
"0.5663955",
"0.56630033",
"0.56302476",
"0.5612521",
"0.56047297",
"0.552933",
"0.5524564",
"0.5518337",
"0.55114204",
"0.55034995",
"0.5499372",
"0.54878926",
"0.5481924",
"0.5473337",
"0.5471246",
"0.5470773",
"0.54675263",
"0.5462108",
"0.54595006",
"0.54391545",
"0.54283625",
"0.54024214",
"0.53909636",
"0.5389593",
"0.53891903",
"0.53886074",
"0.5381928",
"0.53768307",
"0.53599167",
"0.53491426",
"0.5343315",
"0.53417075",
"0.53409815",
"0.53317034",
"0.53246236",
"0.5321137",
"0.53136414",
"0.53008497",
"0.52991635",
"0.52918124",
"0.52892315",
"0.5266535",
"0.5248819",
"0.52440923",
"0.52386314",
"0.52332515",
"0.52196765",
"0.5219627",
"0.5218212",
"0.5200379",
"0.519971",
"0.51996064",
"0.5196039",
"0.51845497",
"0.51659",
"0.51630825",
"0.51526064",
"0.5152362",
"0.51521385",
"0.5150014",
"0.5139492",
"0.5127238",
"0.512645",
"0.5125002",
"0.51126355",
"0.5087381",
"0.5076253",
"0.5069187",
"0.5065214",
"0.50563467",
"0.505426",
"0.5051413",
"0.5051055",
"0.5029751",
"0.50157946",
"0.50135076",
"0.4999597",
"0.4992964",
"0.4991623",
"0.49913043",
"0.49896052",
"0.49892232",
"0.498273",
"0.49775368",
"0.49770373",
"0.4975589",
"0.49629447",
"0.49621934",
"0.4960763"
] | 0.5006695 | 87 |
Metodo para agregar datos a lista "agregados" un CNAE. | public int agregarCnaes(int resultadoGuardar)
throws NoControlableException, ControlableException {
for (CatalogoBean catalogo : this.cnaesAgregados) {
CnaeBean cnae = new CnaeBean();
cnae.setObjSocial(this.getObjetoSocial());
cnae.setCodCnae(catalogo.getClaveFila());
resultadoGuardar = this.altaObjetoSocialCnae(cnae);
this.datosGuardados = true;
}
return resultadoGuardar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;",
"public void domicilioAgregar() {\r\n\t\tlog.info(\"Domicilio agregar \" + nuevoDomici.getDomicilio());\r\n\t\tboolean verifica = false;\r\n\t\tmensaje = null;\r\n\t\tnuevoDomici.setTbTipoCasa(objTipoCasaService.findTipoCasa(Tipocasanuevo));\r\n\t\tnuevoDomici.setDomicilio(domicilio);\r\n\t\tnuevoDomici.setReferencia(referencia);\r\n\t\tnuevoDomici.setTbUbigeo(objUbigeoService.findUbigeo(idUbigeo));\r\n\t\tlog.info(\"TIPO-CASA-NUEVO--->\"+nuevoDomici.getTbTipoCasa().getIdtipocasa());\r\n\t\tnuevoDomici.setNuevoD(1);\r\n\t\t//aqui ponfo el ID-Domicilio a la lista Domicilio temporalmente.\r\n\t\tnuevoDomici.setIddomiciliopersona(0);\r\n\t\tnuevoDomici.setTbEstadoGeneral(objEstadoGeneralService.findEstadogeneral(15));\r\n\t\t\r\n\t\tfor (int i = 0; i < DomicilioPersonaList.size(); i++) {\r\n\t\t\tlog.info(\" \"+ DomicilioPersonaList.get(i).getDomicilio() + \" \" + nuevoDomici.getDomicilio());\r\n\t\t\tif (DomicilioPersonaList.get(i).getDomicilio().equals(nuevoDomici.getDomicilio())) {\r\n\t\t\t\tverifica = false;\r\n\t\t\t\tmensaje = \"el Domicilio ya se encuentra registrado en la lista de domiclio cliente\";\r\n\t\t\t\tbreak;\r\n\t\t\t}else {\r\n\t\t\t\tverifica = true;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\tif (DomicilioPersonaList.size() == 0) {\r\n\t\t\t\tverifica = true;\r\n\t\t\t\t}\r\n\t\t\tif (verifica) {\r\n\t\t\t\tnuevoDomici.setItem(\"Por Agregar\");\r\n\t\t\t\tDomicilioPersonaList.add(nuevoDomici);\r\n\t\t\t\tlog.info(\"se agrego \"+ nuevoDomici.getDomicilio());\r\n\t\t\t\t}\r\n\t\t\tif (mensaje != null) {\r\n\t\t\t\tmsg = new FacesMessage(FacesMessage.SEVERITY_FATAL,\r\n\t\t\t\tConstants.MESSAGE_ERROR_FATAL_TITULO, mensaje);\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\r\n\t\t\t\t}\r\n\t\t\tnuevoDomici = new DomicilioPersonaSie();\r\n\t\t}",
"public void carregarAno() {\n\t\tif (usuario.getOrganizacaoMilitar().toString().equals(\"AMAN\")){\n\t\t\tano.addAll(Arrays.asList(Ano.values()));\n\t\t}\n\t\telse if (usuario.getOrganizacaoMilitar().toString().equals(\"ECEME\")){\n\t\t\tano.addAll(Arrays.asList(Ano.values()));\n\t\t\tano.remove(Ano.TERCEIRO);\n\t\t\tano.remove(Ano.QUARTO);\n\t\t}\n\t\telse{\n\t\t\tcarregarRegistroDoPrimeiroAno();\n\t\t}\n\t}",
"public void carregarRegistro() {\n\t\tlimpar();\n\t\t\n\t\tlistaAlunos = repository.encontrarComQueryNomeada(AlunosMilitaresOMDS.class, \"alunosMilitaresOMDS.listarPorOMEPeriodo\",\n\t\t\t\tnew Object[]{\"periodo\", periodo},\n\t\t\t\tnew Object[]{\"organizacao\", subordinado},\n\t\t\t\tnew Object[]{\"ano\", anoSelecionado});\n\t\t\n\t\tif(listaAlunos.size() > 0) {\n\t\t\tlistaAlunos.forEach(efetivo ->{\n\t\t\t\tif (efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.OFICIAL))\n\t\t\t\t\tsetAlunosMilitarOficial(efetivo);\n\t\t\t\tif(efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.PRACA))\n\t\t\t\t\tsetAlunosMilitarPraca(efetivo);\n\t\t\t});\n\t\t\thabilitaBotao=false;\n\t\t}\n\t\torganizarValores();\n\t}",
"private void enlistar(ArrayList<Caracter> caracteres){\n for (int i = 0; i < caracteres.size(); i++) {\n insertaOrdenado(new NodoCaracter((Caracter) caracteres.get(i)));\n }\n }",
"private void createCNAEIsNotFull() {\r\n createStudentList(new Student(\"Vasile Ana\", 10), new Student(\"Marin Alina\", 6), new Student(\"Ilie David\", 8), new Student(\"Gheorghe Alex\", 9));\r\n createSchoolList(new School(\"C.N.S.H.\", 0), new School(\"C.N.C.H.\", 0), new School(\"C.N.A.E.\", 10));\r\n createStudentPreferences(new LinkedList<>(Arrays.asList(schools[0], schools[1], schools[2])), new LinkedList<>(Arrays.asList(schools[0], schools[1], schools[2])), new LinkedList<>(Arrays.asList(schools[0], schools[1])), new LinkedList<>(Arrays.asList(schools[0], schools[2])));\r\n createSchoolPreferences(new LinkedList<>(Arrays.asList(students[3], students[0], students[1], students[2])), new LinkedList<>(Arrays.asList(students[0], students[2], students[1])), new LinkedList<>(Arrays.asList(students[0], students[1], students[3])));\r\n }",
"private void agregarARegistro(int numeroCuenta){\n try{\n RegistroSerializado registro = new RegistroSerializado(\n numeroCuenta, \"Hay un registro de transacciones no asociado para ese numero de cliente...\");\n salRegistro.writeObject(registro);\n }\n catch(NoSuchElementException noSuchElementException){\n System.err.println(\"Entrada invalida. Intente de nuevo.\");\n }\n catch(IOException iOException){\n System.err.println(\"Error al escribir en el archivo. Terminado.\");\n System.exit(1);\n }\n }",
"public static List<Endereco> listar() {\n\t\t\tConnection conexao = ConectaPostgreSQL.geraConexao();\n\t\t\t// variavel lista de ass\n\t\t\tList<Endereco> acessos = new ArrayList<Endereco>();\n\t\t\t// executa o SQL no banco de endereco\n\t\t\tStatement consulta = null;\n\t\t\t// contém os endereco consultado da tabela\n\t\t\tResultSet resultado = null;\n\t\t\t// objeto as\n\t\t\t// Endereco as = null;\n\t\t\t// consulta SQL\n\t\t\tString sql = \"select distinct * from Endereco\";\n\t\t\ttry {\n\t\t\t\t// consulta => objeto que executa o SQL no banco de endereco\n\t\t\t\tconsulta = conexao.createStatement();\n\t\t\t\t// resultado => objeto que contém os endereco consultado da tabela\n\t\t\t\t// Endereco\n\t\t\t\tresultado = consulta.executeQuery(sql);\n\t\t\t\t// Lê cada as\n\n\t\t\t\twhile (resultado.next()) {\n\t\t\t\t\tEndereco endereco = new Endereco();\n\t\t\t\t\tendereco.setBairro(resultado.getString(\"bairro\"));\n\t\t\t\t\tendereco.setCep(resultado.getString(\"cep\"));\n\t\t\t\t\tendereco.setCidade(resultado.getString(\"cidade\"));\n\t\t\t\t\tendereco.setEstado(resultado.getString(\"estado\"));\n\t\t\t\t\tendereco.setNumero(resultado.getInt(\"numero\"));\n\t\t\t\t\tendereco.setRua(resultado.getString(\"rua\"));\n\t\t\t\t\t// insere o as na lista\n\t\t\t\t\tacessos.add(endereco);\n\n\t\t\t\t}\n\n\t\t\t} catch (SQLException e) {\n\t\t\t\tthrow new RuntimeException(\"Erro ao buscar um acesso a serviços: \" + e);\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tconsulta.close();\n\t\t\t\t\tresultado.close();\n\t\t\t\t\tconexao.close();\n\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\tthrow new RuntimeException(\"Erro ao fechar a conexao \" + e);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// retorna lista de ass\n\t\t\treturn acessos;\n\t\t}",
"@Override\n\tpublic List<ControlAcceso> registroUsers(String fecha, int codigo) {\n\t\treturn controlA.registroUsers(fecha, codigo);\n\t}",
"public void gerarReceitaLiquidaIndiretaDeEsgoto() \n\t\t\tthrows ErroRepositorioException;",
"@Override\n\tpublic void agregarArco(Ciudad c1, Ciudad c2, T etiqueta) {\n\t\tif (Objects.nonNull(getVertice(c1)) && Objects.nonNull(getVertice(c2))) {\n\t\t\tgetVertice(c1).addArco(c2, etiqueta);\n\t\t\tthis.cantArcos++;\n\t\t}\n\t}",
"public void agregarCliente(Cliente cliente, int distancia) {\n\t\tclientes.add(cliente);\n\t\tcosto += distancia; \n\t}",
"@Override\n public void agregarSocio(String nombre, int dni, int codSocio) {\n }",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"private List<OrarioIngressoUscita> getOrariIngressoUscita(Cliente cliente) throws IOException {\r\n\t\tString userID = cliente.getId();\r\n\t\tBufferedReader reader = Utilities.apriFile(\"orariIngressoUscita.txt\");\r\n\t\t\r\n\t\tString currentLine;\r\n\t\tString[] user = new String[200];\r\n\t\t\r\n\t\tList<OrarioIngressoUscita> result = new ArrayList<>();\r\n\t\t\r\n\t\twhile ((currentLine = reader.readLine()) != null) {\r\n\t\t\tuser = currentLine.split(Pattern.quote(\"|\"));\r\n\t\t\t\r\n\t\t\tif (user[0].equals(userID) && \r\n\t\t\t\t\tcliente.getTes().getUltimoAggiornamento().isAfter(LocalDateTime.parse(user[1], Utilities.formatterDataOra)))\r\n\t\t\t\tif (!user[2].equals(\"null\"))\r\n\t\t\t\t\tresult.add(new OrarioIngressoUscita(LocalDateTime.parse(user[1], Utilities.formatterDataOra), \r\n\t\t\t\t\t\t\tLocalDateTime.parse(user[2], Utilities.formatterDataOra)));\r\n\t\t}\r\n\t\t\r\n\t\treader.close();\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);",
"public void nascitaAgnello() {\n\t\tpecore.add(new Agnello());\n\t\tnumeroAgelli++;\n\t}",
"@Override\n\tpublic int agregarCliente(ClienteBean cliente) throws Exception {\n\t\treturn 0;\n\t}",
"public void inserirContato() {\n\t\tSystem.out.println(\"Digite o nome do novo contato: \");\n\t\tString contato = scanner.nextLine();\n\t\tlistaDeContatos.add(contato);\n\t}",
"public void imprimeDados() {\n\t\tString resp = this.nome + \"(\" + this.ID + \")\\n\";\n\t\tint i = 0;\n\n\t\tif (this.alunos != null) {\n\t\t\tfor (Aluno aluno : this.alunos) {\n\t\t\t\tString cpf = aluno.getCpf();\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tresp += \"[\" + cpf;\n\t\t\t\t} else {\n\t\t\t\t\tresp += \", \" + cpf;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tresp += \"]\";\n\n\t\tSystem.out.println(resp);\n\t}",
"@Override\n\tpublic void cadastrar(ClienteFisico clienteFisico)\n\t\t\tthrows CPFInvalidoException, ClienteJaCadastradoException,\n\t\t\tCampoObrigatorioException, SQLException {\n\t\tset.add(clienteFisico);\n\t}",
"public void carregarRegistroDoPrimeiroAno() {\n\t\tlimpar();\n\t\t\n\t\tlistaAlunos = repository.encontrarComQueryNomeada(AlunosMilitaresOMDS.class, \"alunosMilitaresOMDS.listarPorOMEPeriodo\",\n\t\t\t\tnew Object[]{\"periodo\", periodo},\n\t\t\t\tnew Object[]{\"organizacao\", subordinado},\n\t\t\t\tnew Object[]{\"ano\", Ano.PRIMEIRO});\n\t\t\n\t\tif (listaAlunos.size() > 0) {\n\t\t\tlistaAlunos.forEach(efetivo ->{\n\t\t\t\tif (efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.OFICIAL))\n\t\t\t\t\tsetAlunosMilitarOficial(listaAlunos.get(0));\n\t\t\t\tif(efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.PRACA))\n\t\t\t\t\tsetAlunosMilitarPraca(listaAlunos.get(0));;\n\t\t\t});\n\t\t\thabilitaBotao=false;\n\t\t}\n\t\torganizarValores();\n\t}",
"public SocioAdulto() {\n super();\n this.dirigente = DIRIGENTE_POR_DEFEITO;\n this.IDAdulto = tagAdulto + SAContador;\n SAContador ++;\n }",
"public Lista obtenerListaClientesAdicionales(int codigoCuenta)throws SQLException{\r\n\t\tLista listadoCliente=null;\r\n\t\tICuenta daoCliente = new DCuenta();\r\n\t\t\r\n\t\tlistadoCliente = daoCliente.obtenerListadoCuentaAdicional(codigoCuenta);\r\n\t\t\r\n\t\treturn listadoCliente;\r\n\t}",
"private void criaContaCliente (String cpf) {\n this.contasClientes.put(cpf, new Conta(cpf));\n }",
"private void listaClient() {\n\t\t\r\n\t\tthis.listaClient.add(cliente);\r\n\t}",
"public void carregarCliente() {\n\t\tgetConnection();\n\t\ttry {\n\t\t\tString sql = \"SELECT CLIENTE FROM CLIENTE ORDER BY CLIENTE\";\n\t\t\tst = con.createStatement();\n\t\t\trs = st.executeQuery(sql);\n\t\t\twhile(rs.next()) {\n\t\t\t\tcbCliente.addItem(rs.getString(\"CLIENTE\"));\n\t\t\t}\n\t\t}catch(SQLException e) {\n\t\t\tSystem.out.println(\"ERRO\" + e.toString());\n\t\t}\n\t}",
"public void cadastrar(Cliente cliente){\n\t\tSystem.out.println(cliente.toString());\r\n\t\tint tamanho = this.clientes.length;\r\n\t\tthis.clientes = Arrays.copyOf(this.clientes, this.clientes.length + 1);\r\n\t\tthis.clientes[tamanho - 1] = cliente;\r\n\t}",
"public void añadirCuentas(int numeroCuentas){\n\t\tfloat saldo; \r\n\t\tint random;\r\n\t\tString titular=\"\", numero=\"\", caracteres=\"0123456789\";\r\n\t\tString[] palabras=new String[5];\r\n\t\tpalabras[0]=\"Marta\";\r\n\t\tpalabras[1]=\"Javier\";\r\n\t\tpalabras[2]=\"Sandra\";\r\n\t\tpalabras[3]=\"David\";\r\n\t\tpalabras[4]=\"Juan\";\r\n\t\tboolean valida;\r\n\r\n\t\t//(int)(Math.random()*(hasta-desde+1)+desde)\r\n\r\n\r\n\t\tfor (int i=0;i<numeroCuentas;i++){\r\n\r\n\t\t\trandom=(int)(Math.random()*(4-0+1)+0);\r\n\t\t\ttitular=palabras[random];\r\n\r\n\t\t\trandom=(int)(Math.random()*(10000-0+1)+0);\r\n\t\t\tsaldo=random;\r\n\r\n\t\t\tdo{\r\n\t\t\t\tfor(int j=0;j<20;j++){\r\n\t\t\t\t\trandom=(int)(Math.random()*(9-0+1)+0);\r\n\t\t\t\t\tnumero+=caracteres.charAt(random);\r\n\t\t\t\t}\r\n\t\t\t\tvalida=comprobarNumero(numero);\r\n\t\t\t}while(!valida);\r\n\r\n\t\t\tCuentaCorriente defecto=new CuentaCorriente(titular, numero, saldo);\r\n\t\t\tlista[i]=defecto;\r\n\t\t\tCuentas.setnCuentas(CuentaCorriente.getCodigo());\r\n\t\t\tnumero=\"\";\r\n\r\n\t\t}\r\n\t\tordenar();\r\n\r\n\t}",
"ParqueaderoEntidad agregar(String nombre);",
"public void addToEnd2(CDominoes newDomino){\n dominoes.add(newDomino);\n \n \n }",
"public void add(T conteudo){\n No<T> novoNo = new No(conteudo);\n if( this.isEmpty() ){\n this.referenciaEntrada = novoNo;\n }else {\n No<T> noAuxiliar = referenciaEntrada;\n for (int i = 0; i < this.size() - 1; i++) {\n noAuxiliar = noAuxiliar.getProximoNo();\n }\n noAuxiliar.setProximoNo(novoNo);\n }\n }",
"private void caricaRegistrazione() {\n\t\tfor(MovimentoEP movimentoEP : primaNota.getListaMovimentiEP()){\n\t\t\t\n\t\t\tif(movimentoEP.getRegistrazioneMovFin() == null) { //caso di prime note libere.\n\t\t\t\tthrow new BusinessException(ErroreCore.OPERAZIONE_NON_CONSENTITA.getErrore(\"La prima nota non e' associata ad una registrazione.\"));\n\t\t\t}\n\t\t\t\n\t\t\tthis.registrazioneMovFinDiPartenza = registrazioneMovFinDad.findRegistrazioneMovFinById(movimentoEP.getRegistrazioneMovFin().getUid());\n\t\t\t\n\t\t}\n\t\t\n\t\tif(this.registrazioneMovFinDiPartenza.getMovimento() == null){\n\t\t\tthrow new BusinessException(\"Movimento non caricato.\");\n\t\t}\n\t\t\n\t}",
"public SocioAdulto(String nome, int nContribuinte, int anoNascimento, int numAulasSemanais, boolean dirigente) {\n super(numAulasSemanais, nome, nContribuinte, anoNascimento);\n this.dirigente = dirigente;\n this.IDAdulto = tagAdulto + SAContador;\n SAContador++;\n }",
"public List<AlberoGenealogico> alberoGenealogicoDinastia(String nomeDinastia) throws DinastiaNonTrovataException, WikipediaUrlErratoException {\n\n\n\t\tCostruisciAlberoGenealogico generatore = new CostruisciAlberoGenealogico(nomeDinastia);\n\t\t\n\t\t// Costruisco l'albero genealogico della dinastia tramite scraping\n\t\tgeneratore.init();\n\t\t\n\t\treturn generatore.getAlberiGenealogici();\n\t\t\n\t}",
"public void crearPerfil(String nombre, String apellido1, String apellido2,\r\n String direccion, String nif, int telefono, int edad) {\r\n\r\n clientes.add(new Cliente(nombre, apellido1, apellido2, direccion, nif, telefono, edad));\r\n }",
"@Override\r\n public Cliente buscarCliente(String cedula) throws Exception {\r\n return entity.find(Cliente.class, cedula);//busca el cliente\r\n }",
"private static void registrarAuditoriaDetallesClienteArchivo(Connexion connexion,ClienteArchivo clientearchivo)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(clientearchivo.getIsNew()||!clientearchivo.getid_cliente().equals(clientearchivo.getClienteArchivoOriginal().getid_cliente()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(clientearchivo.getClienteArchivoOriginal().getid_cliente()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=clientearchivo.getClienteArchivoOriginal().getid_cliente().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(clientearchivo.getid_cliente()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=clientearchivo.getid_cliente().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ClienteArchivoConstantesFunciones.IDCLIENTE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(clientearchivo.getIsNew()||!clientearchivo.getid_tipo_archivo().equals(clientearchivo.getClienteArchivoOriginal().getid_tipo_archivo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(clientearchivo.getClienteArchivoOriginal().getid_tipo_archivo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=clientearchivo.getClienteArchivoOriginal().getid_tipo_archivo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(clientearchivo.getid_tipo_archivo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=clientearchivo.getid_tipo_archivo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ClienteArchivoConstantesFunciones.IDTIPOARCHIVO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(clientearchivo.getIsNew()||!clientearchivo.getnombre().equals(clientearchivo.getClienteArchivoOriginal().getnombre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(clientearchivo.getClienteArchivoOriginal().getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=clientearchivo.getClienteArchivoOriginal().getnombre();\r\n\t\t\t\t}\r\n\t\t\t\tif(clientearchivo.getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=clientearchivo.getnombre() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ClienteArchivoConstantesFunciones.NOMBRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(clientearchivo.getIsNew()||!clientearchivo.getarchivo().equals(clientearchivo.getClienteArchivoOriginal().getarchivo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(clientearchivo.getClienteArchivoOriginal().getarchivo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=clientearchivo.getClienteArchivoOriginal().getarchivo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(clientearchivo.getarchivo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=clientearchivo.getarchivo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ClienteArchivoConstantesFunciones.ARCHIVO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(clientearchivo.getIsNew()||!clientearchivo.getdescripcion().equals(clientearchivo.getClienteArchivoOriginal().getdescripcion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(clientearchivo.getClienteArchivoOriginal().getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=clientearchivo.getClienteArchivoOriginal().getdescripcion();\r\n\t\t\t\t}\r\n\t\t\t\tif(clientearchivo.getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=clientearchivo.getdescripcion() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ClienteArchivoConstantesFunciones.DESCRIPCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}",
"static public void addPersona(Persona c) { //metodo para añadir a lista y actualizar la lista en tiempo real\r\n listaPersona.add(c);\r\n listaG.setListaGrafica();\r\n \r\n \r\n \r\n }",
"public void agregarPedidos(List<PedidoIndividual> pedidos) throws QRocksException;",
"@Override\n\tpublic List<EntidadeDominio> PegarCartoesCliente(EntidadeDominio entidade) throws SQLException {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void AdiconarCarrinho(EntidadeDominio entidade) throws SQLException {\n\t}",
"public void agregarCliente(String nombre, String ced, String dir, String tipo) throws ExCliente\n\t{\n\t\tif(!clientes.isEmpty())\n\t\t{\n\t\t\tif(clientes.containsKey(ced))\n\t\t\t\tthrow (new ExCliente(\"Cedula \" + ced + \" ya registrada\"));\n\t\t}\n\n\t\ttry{\n\t\t\tclientes.put(ced, new Cliente(nombre, ced, dir, tipo));\n\t\t}catch(ExCliente e)\n\t\t{\n\t\t\tthrow e;\n\t\t}\n\t\t\n\n\t\t\n\t\t\n\t}",
"public REGISTRARSE()\n {\n \t this.datos=new DATOS();\n }",
"@Override\n public ArrayList<Endereco> buscar() {\n PreparedStatement stmt;\n ResultSet rs;\n ArrayList<Endereco> arrayEndereco = new ArrayList<>();\n try {\n \n stmt = ConexaoBD.conectar().prepareStatement(\"SELECT * FROM Endereco\");\n rs = stmt.executeQuery();\n \n \n while (rs.next()) {\n Endereco endereco = new Endereco();\n endereco.setCodigo(rs.getInt(\"CODIGOENDERECO\"));\n endereco.setRua(rs.getString(\"RUA\"));\n endereco.setNumero(rs.getString(\"NUMERO\"));\n endereco.setBairro(rs.getString(\"BAIRRO\"));\n endereco.setCidade(rs.getString(\"CIDADE\"));\n arrayEndereco.add(endereco);\n }\n \n \n } catch (SQLException ex) {\n Logger.getLogger(FuncionarioDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return arrayEndereco; \n }",
"private void agregarCelda(Celda celda) {\n // TODO implement here\n }",
"public void agregarAtaquesAJugador(EstructuraKonquest estructuraKonquest){\n Jugadores jugador;\n java.util.List<Ataque> listaDeAtq = estructuraKonquest.getAtaques();\n for (int i = 0; i < listaDeAtq.size(); i++) {\n Ataque ataque = listaDeAtq.get(i);\n for (int j = 0; j < estructuraKonquest.getJugadores().size(); j++) {\n jugador = estructuraKonquest.getJugadores().get(j);\n if (ataque.getJugador().getNombre().equalsIgnoreCase(jugador.getNombre())) {\n ataque.setJugador(jugador);\n jugador.getListaAtaques().add(ataque);\n }\n } \n }\n }",
"public static ArrayList IngresarInfoLista(int posarray){\n\n // Definir objeto de la clase constanste para mensajes\n Constantes constantes = new Constantes();\n\n // Definir Array del objeto de la clase BeneficiosCovid\n ArrayList <BeneficiosCovid19> arrayBeneficios = new ArrayList <BeneficiosCovid19>();\n\n System.out.println(\"Por favor ingresar Subsidios para la lista Nro: \" + posarray);\n\n // Variables de trabajo\n String tipoDato = \"\";\n String info = \"\";\n String idrandom;\n String continuar = constantes.TXT_SI;\n //iniciar Ciclo para cargar informacion\n //while (continuar.equals(\"SI\")){\n\n //Definir Objeto de la clase BeneficiosCovid\n BeneficiosCovid19 beneficios_Covid = new BeneficiosCovid19();\n\n //Ingresar Nombre Tipo Alfa\n tipoDato = \"A\";\n info = validarinfo(constantes.TXT_Inp_Nombre,tipoDato);\n beneficios_Covid.setNombre(info);\n\n //Ingresar Valor Subsidio Tipo Numerico\n tipoDato = \"N\";\n info = validarinfo(constantes.TXT_Inp_Subsidio,tipoDato);\n beneficios_Covid.setValorSubsidio(Float.parseFloat(info));\n\n //Obtener el ID de manera aleatoria\n idrandom = getIdBeneficio();\n beneficios_Covid.setId(idrandom);\n\n arrayBeneficios.add(beneficios_Covid);\n\n /**\n * Validacion para continuar o finalizar el ciclo\n * principaly finalizar Main de manera controlada\n * por consola\n **/\n\n /* tipoDato = \"A\";\n continuar = validarinfo(constantes.TXT_Msg_Continuar,tipoDato);\n // Validar valor ingrsado para continuar o finalizar aplicación\n while ( !continuar.equals(\"SI\") && !continuar.equals(\"NO\")) {\n continuar = validarinfo(constantes.TXT_Msg_Continuar, tipoDato);\n }\n\n }\n */\n return arrayBeneficios;\n }",
"public void lerDados(String dadosInstituicao)\n {\n if (dadosInstituicao == null)\n {\n //AxellIO.println(\"[Instituicao]: Parametro dadosInstituicao nulo - funcao lerDados(String)\");\n }\n \n else\n {\n MyString dados = new MyString(dadosInstituicao);\n String[] splitedData = dados.split('\\t');\n int cursor = 0;\n \n try\n {\n setCodigo( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setNome( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setSigla( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setCodigoMantenedora( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setMantenedora( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setCategoria( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setOrganizacao( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setCodigoMunicipio( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setMunicipio( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setUf( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setRegiao( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setTecnico( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setPeriodico( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setLivro( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setReceita( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setTransferencia( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setOutraReceita( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaDocente( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaTecnico( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaEncargo( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaCusteio( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaInvestimento( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaPesquisa( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaOutras( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n }\n\n catch (ArrayIndexOutOfBoundsException exception)\n {\n //AxellIO.println(\"[Instituicao]: Dados da instituicao incompletos - funcao lerDados(String)\");\n }\n \n setDadosInstituicaoTabulado( dados.toString() );\n setDadosInstituicao( concatFields() );\n }\n }",
"private void carregarAgendamentos() {\n agendamentos.clear();\n\n // Carregar os agendamentos do banco de dados\n agendamentos = new AgendamentoDAO(this).select();\n\n // Atualizar a lista\n setupRecyclerView();\n }",
"public Agenda(String nome) {\n\t\tthis.nome = nome;\n\t\tthis.compromisso = new ArrayList<>();\n\t}",
"public abstract List<String> associateAddresses(NodeMetadata node);",
"public void agregarElemento (String codigoAcceso, Elemento elemento) {\r\n\t\tlistaElementos.put(codigoAcceso, elemento);\r\n\t}",
"public void AfficherListClient() throws Exception{\n laListeClient = Client_Db_Connect.tousLesClients();\n laListeClient.forEach((c) -> {\n modelClient.addRow(new Object[]{ c.getIdent(),\n c.getRaison(),\n c.getTypeSo(),\n c.getDomaine(),\n c.getAdresse(),\n c.getTel(),\n c.getCa(),\n c.getComment(),\n c.getNbrEmp(),\n c.getDateContrat(),\n c.getAdresseMail()});\n });\n }",
"public void addRegistro(String nombre, String apellidos, String dni) {\r\n\t\t\r\n\t\tSession ss = Util.getSessionFactory().openSession();\r\n\t\tTransaction tr = null;\r\n\t\ttry {\r\n\t\t\ttr = ss.beginTransaction();// comenzamos a hacer cositas\r\n\t\t\t// id incremental,por eso pongo cero\r\n\t\t\tPersona p = new Persona(0, nombre, apellidos, dni);\r\n\t\t\tss.save(p);\r\n\t\t\ttr.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\tSystem.out.println(\"Pako_error= \" + e);\r\n\t\t} finally {\r\n\t\t\tss.close();\r\n\t\t\t// System.out.println(\"Final\");\r\n\t\t}\r\n\t}",
"public void addEncomenda(Encomenda e) {\n this.encomendas.put(e.getCodigoEncomenda(), e.clone()); \n }",
"public void addToEnd1(CDominoes newDomino){\n dominoes.add(0, newDomino);\n \n \n }",
"public void agregarAlInicio(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario va agregando los nodos al inicio de la lista.\r\n } else{\r\n // Une el nuevo nodo con la lista existente.\r\n nuevo.setSiguiente(inicio);\r\n // Renombra al nuevo nodo como el inicio de la lista.\r\n inicio = nuevo;\r\n }\r\n // Incrementa el contador de tamaño de la lista.\r\n tamanio++;\r\n }",
"public void HordaHardcodeada() {\n\t\t\n\t\tObjetoDelJuego c = mapa.AgregarEnemigo();\n\t\tlistaDeEnemigos.add( (Enemigo) c );\n\t\t\n\t}",
"Aluno(String dataNascimento) {\n this.dataNascimento = dataNascimento;\n }",
"public void adicionaArco(int n1, int n2, int c) {\r\n\t\tArco arco = new Arco(n1, n2, c);\r\n\t\tadjList[n1].add(arco);\r\n\r\n\t\tarco = new Arco(n2, n1, c); // adiciona arco - grafo não dirijido\r\n\t\tadjList[n2].add(arco);\r\n\t}",
"public void agregarAlInicio(int edad){\n //CREAR UN NUEVO NODO AL INICIO DE LA LISTA\n inicio = new Nodo(edad,inicio);\n if(fin==null){\n fin=inicio;\n }\n }",
"public void agregarItemRentadoACliente(@Param(\"idcli\") long id, \n \t\t@Param(\"idit\") int idit, \n \t\t@Param(\"fechai\") Date fechainicio,\n \t\t@Param(\"fechaf\") Date fechafin);",
"public void asignarAnexo(){\r\n String indiceStr;\r\n int indice, i=0;\r\n System.out.println(\"-----------------------------------\");\r\n System.out.println(\" Lista de Empleados\");\r\n System.out.println(\"-----------------------------------\");\r\n //RECORRER ARRAYLIST\r\n for (i=0 ; i<empleados.size() ; i=i+1) {\r\n System.out.print( (i + 1) +\" \"+empleados.get(i).getPerNombre()+\" \"+\r\n empleados.get(i).getPerApellidoPaterno()+\" \"+\r\n empleados.get(i).getPerApellidoMaterno()+\" tiene el anexo : \");\r\n if(empleados.get(i).getEmpAnexo() != null){\r\n System.out.println(empleados.get(i).getEmpAnexo()); //QUE ANEXO TIENE\r\n }else{\r\n System.out.println(\" Sin asignar \");\r\n }\r\n }\r\n if(i>0){\r\n try {\r\n System.out.print(\"Seleccione el codigo del empleado : \\t\");\r\n indiceStr = entrada.readLine();\r\n indice = Integer.parseInt(indiceStr);\r\n indice = indice - 1;\r\n System.out.println(\"-----------------------------------\");\r\n System.out.println(\" Lista de Anexo\");\r\n System.out.println(\"-----------------------------------\");\r\n// RECORRE ENUMERADO ANEXOS\r\n for(Anexo a : Anexo.values()){ \r\n System.out.println(\"\\t\" + a.getAneCodigo()+ \" - \"+a.toString() + \" area: \"+ a.getAneUbicacion());\r\n }\r\n System.out.print(\"Seleccione Anexo: \");\r\n // ASIGNA ANEXO A EMPLEADO\r\n empleados.get(indice).setEmpAnexo(entrada.readLine());\r\n System.out.println(\"*****Empleado se asigno anexo \"+empleados.get(indice).getEmpAnexo().name()+\" *****\");\r\n } catch (IOException ex) {\r\n System.out.println(\"Ocurrio un error al ingresar datos= \"+ex.toString());\r\n } catch(NumberFormatException ex){\r\n System.out.println(\"Ocurrio un error al convertir numero= \"+ex.toString());\r\n }\r\n }else{\r\n System.out.println(\"-NO existen Empleado Registrados-\");\r\n }\r\n }",
"public String addAddressList(BufferedReader address);",
"private List<AtividadeOcorrenciaDTO> getAtividadesOcorrencias(Serializable idOcorrencia) {\n\n\t\tList<AtividadeOcorrencia> atvsOcs = ocorrenciaService.getAtividadesOcorrencias(idOcorrencia);\n\n\t\tList<AtividadeOcorrenciaDTO> lst = new ArrayList<AtividadeOcorrenciaDTO>();\n\t\tfor (AtividadeOcorrencia atvOc : atvsOcs) {\n\t\t\tAtividadeOcorrenciaDTO atividadeOcorrenciaREST = new AtividadeOcorrenciaDTO(atvOc.getId().toString(),\n\t\t\t\t\tatvOc.getId(), DataUtil.formataData(atvOc.getDataInicio()).toString(),\n\t\t\t\t\tatvOc.getDataFim().toString(), atvOc.getObservacao(), atvOc.getStatus().getNome(),\n\t\t\t\t\tatvOc.getNumeroItem().toString() + \" - \" + atvOc.getNome(), atvOc.getUsuarioResponsavel().getId().toString());\n\n\t\t\tlst.add(atividadeOcorrenciaREST);\n\t\t}\n\n\t\treturn lst;\n\t}",
"public void AddNroCitasRealizadas() {\n\t\tthis.NroCitasRealizadas = this.NroCitasRealizadas+1;\n\t}",
"public void fecharConta() {\n\t\tcliente.setConta(new Conta());\r\n\t\tRepositorioCliente repositorioCliente = new FabricaRepositorio().getRepCliente();\r\n\t\trepositorioCliente.editar((ClienteIndividual)cliente);\r\n//\t\tGerenciadorContaImpl contaImpl = new GerenciadorContaImpl();\r\n//\t\ttry {\r\n//\t\t\tcontaImpl.fecharConta(cliente);\r\n//\t\t} catch (OperacaoInvalidaException e) {\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n\t}",
"private static void registrarAuditoriaDetallesCaja(Connexion connexion,Caja caja)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getid_empresa().equals(caja.getCajaOriginal().getid_empresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getid_empresa().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getid_empresa().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.IDEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getid_sucursal().equals(caja.getCajaOriginal().getid_sucursal()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getid_sucursal().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getid_sucursal().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.IDSUCURSAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getnombre().equals(caja.getCajaOriginal().getnombre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getnombre();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getnombre() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.NOMBRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getnombre_equipo().equals(caja.getCajaOriginal().getnombre_equipo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getnombre_equipo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getnombre_equipo();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getnombre_equipo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getnombre_equipo() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.NOMBREEQUIPO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getnombre_impresora().equals(caja.getCajaOriginal().getnombre_impresora()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getnombre_impresora()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getnombre_impresora();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getnombre_impresora()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getnombre_impresora() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.NOMBREIMPRESORA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencial_pedido().equals(caja.getCajaOriginal().getsecuencial_pedido()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencial_pedido()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencial_pedido().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencial_pedido()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencial_pedido().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIALPEDIDO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencial_pedido_formato().equals(caja.getCajaOriginal().getsecuencial_pedido_formato()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencial_pedido_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencial_pedido_formato();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencial_pedido_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencial_pedido_formato() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIALPEDIDOFORMATO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getpunto_emision().equals(caja.getCajaOriginal().getpunto_emision()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getpunto_emision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getpunto_emision();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getpunto_emision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getpunto_emision() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.PUNTOEMISION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getestablecimiento().equals(caja.getCajaOriginal().getestablecimiento()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getestablecimiento()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getestablecimiento();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getestablecimiento()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getestablecimiento() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.ESTABLECIMIENTO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getfecha_inicio().equals(caja.getCajaOriginal().getfecha_inicio()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getfecha_inicio()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getfecha_inicio().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getfecha_inicio()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getfecha_inicio().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.FECHAINICIO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getfecha_final().equals(caja.getCajaOriginal().getfecha_final()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getfecha_final()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getfecha_final().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getfecha_final()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getfecha_final().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.FECHAFINAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getesta_activo().equals(caja.getCajaOriginal().getesta_activo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getesta_activo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getesta_activo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getesta_activo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getesta_activo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.ESTAACTIVO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getdescripcion().equals(caja.getCajaOriginal().getdescripcion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getdescripcion();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getdescripcion() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.DESCRIPCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencial_factura().equals(caja.getCajaOriginal().getsecuencial_factura()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencial_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencial_factura().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencial_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencial_factura().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIALFACTURA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencial_factura_formato().equals(caja.getCajaOriginal().getsecuencial_factura_formato()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencial_factura_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencial_factura_formato();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencial_factura_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencial_factura_formato() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIALFACTURAFORMATO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencial_nota_venta().equals(caja.getCajaOriginal().getsecuencial_nota_venta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencial_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencial_nota_venta().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencial_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencial_nota_venta().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIALNOTAVENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencial_nota_venta_formato().equals(caja.getCajaOriginal().getsecuencial_nota_venta_formato()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencial_nota_venta_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencial_nota_venta_formato();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencial_nota_venta_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencial_nota_venta_formato() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIALNOTAVENTAFORMATO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencia_nota_credito().equals(caja.getCajaOriginal().getsecuencia_nota_credito()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencia_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencia_nota_credito().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencia_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencia_nota_credito().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIANOTACREDITO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencia_nota_credito_formato().equals(caja.getCajaOriginal().getsecuencia_nota_credito_formato()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencia_nota_credito_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencia_nota_credito_formato();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencia_nota_credito_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencia_nota_credito_formato() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIANOTACREDITOFORMATO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getautorizacion_factura().equals(caja.getCajaOriginal().getautorizacion_factura()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getautorizacion_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getautorizacion_factura();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getautorizacion_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getautorizacion_factura() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.AUTORIZACIONFACTURA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getautorizacion_nota_venta().equals(caja.getCajaOriginal().getautorizacion_nota_venta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getautorizacion_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getautorizacion_nota_venta();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getautorizacion_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getautorizacion_nota_venta() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.AUTORIZACIONNOTAVENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getautorizacion_nota_credito().equals(caja.getCajaOriginal().getautorizacion_nota_credito()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getautorizacion_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getautorizacion_nota_credito();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getautorizacion_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getautorizacion_nota_credito() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.AUTORIZACIONNOTACREDITO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getfecha_caduca_factura().equals(caja.getCajaOriginal().getfecha_caduca_factura()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getfecha_caduca_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getfecha_caduca_factura().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getfecha_caduca_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getfecha_caduca_factura().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.FECHACADUCAFACTURA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getfecha_caduca_nota_venta().equals(caja.getCajaOriginal().getfecha_caduca_nota_venta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getfecha_caduca_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getfecha_caduca_nota_venta().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getfecha_caduca_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getfecha_caduca_nota_venta().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.FECHACADUCANOTAVENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getfecha_caduca_nota_credito().equals(caja.getCajaOriginal().getfecha_caduca_nota_credito()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getfecha_caduca_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getfecha_caduca_nota_credito().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getfecha_caduca_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getfecha_caduca_nota_credito().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.FECHACADUCANOTACREDITO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getserie_factura().equals(caja.getCajaOriginal().getserie_factura()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getserie_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getserie_factura();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getserie_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getserie_factura() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SERIEFACTURA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getserie_nota_venta().equals(caja.getCajaOriginal().getserie_nota_venta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getserie_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getserie_nota_venta();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getserie_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getserie_nota_venta() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SERIENOTAVENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getserie_nota_credito().equals(caja.getCajaOriginal().getserie_nota_credito()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getserie_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getserie_nota_credito();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getserie_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getserie_nota_credito() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SERIENOTACREDITO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsec_inicial_factura().equals(caja.getCajaOriginal().getsec_inicial_factura()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsec_inicial_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsec_inicial_factura();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsec_inicial_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsec_inicial_factura() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECINICIALFACTURA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsec_inicial_nota_venta().equals(caja.getCajaOriginal().getsec_inicial_nota_venta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsec_inicial_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsec_inicial_nota_venta();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsec_inicial_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsec_inicial_nota_venta() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECINICIALNOTAVENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsec_inicial_nota_credito().equals(caja.getCajaOriginal().getsec_inicial_nota_credito()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsec_inicial_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsec_inicial_nota_credito();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsec_inicial_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsec_inicial_nota_credito() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECINICIALNOTACREDITO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsec_final_factura().equals(caja.getCajaOriginal().getsec_final_factura()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsec_final_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsec_final_factura();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsec_final_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsec_final_factura() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECFINALFACTURA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsec_final_nota_venta().equals(caja.getCajaOriginal().getsec_final_nota_venta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsec_final_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsec_final_nota_venta();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsec_final_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsec_final_nota_venta() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECFINALNOTAVENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsec_final_nota_credito().equals(caja.getCajaOriginal().getsec_final_nota_credito()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsec_final_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsec_final_nota_credito();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsec_final_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsec_final_nota_credito() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECFINALNOTACREDITO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getid_pais().equals(caja.getCajaOriginal().getid_pais()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getid_pais()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getid_pais().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getid_pais()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getid_pais().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.IDPAIS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getid_ciudad().equals(caja.getCajaOriginal().getid_ciudad()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getid_ciudad()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getid_ciudad().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getid_ciudad()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getid_ciudad().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.IDCIUDAD,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getid_zona().equals(caja.getCajaOriginal().getid_zona()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getid_zona()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getid_zona().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getid_zona()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getid_zona().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.IDZONA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}",
"@Override\n public List<Pair<Candidatura, FAE>> atribui() {\n \n List<FAE> listaFaeEvento = evento.getListaFaeEvento();\n List<Candidatura> listaCandidaturaEvento = evento.getListaCandidaturasEvento();\n List<Pair<Candidatura, FAE>> listaAtribuicoes = new ArrayList();\n \n Random geradorAleatorio = new Random();\n int indiceFae = geradorAleatorio.nextInt(listaFaeEvento.size());\n \n for (Candidatura cand : listaCandidaturaEvento){\n listaAtribuicoes.add( new Pair<>(cand, listaFaeEvento.get(indiceFae)));\n }\n \n return listaAtribuicoes;\n }",
"public void agregarElementos(List<NodoRuta> nodoNuevo) {\n if(nodoNuevo != null){\n nodos.addAll(nodoNuevo);\n fireIntervalAdded(this, nodos.size()-nodoNuevo.size(), nodos.size());\n }\n }",
"public void remplireListeIp(){\r\n bddIp.add(\"id\");\r\n bddIp.add(\"ip\");\r\n bddIp.add(\"nom\");\r\n bddIp.add(\"latence\");\r\n bddIp.add(\"etat\");\r\n bddIp.add(\"popup\");\r\n bddIp.add(\"mac\");\r\n bddIp.add(\"bdext_perte\");\r\n bddIp.add(\"port\");\r\n }",
"public void agregarItems(Punto direccion, Marker marker) {\n Vibrator v = (Vibrator) context.getSystemService(context.VIBRATOR_SERVICE);\n v.vibrate(33);\n if (direccion != null) {\n if (!existe(direccion.getDireccion())) {\n destinos.add(direccion);\n marker.setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ORANGE));\n adaptadorRutaEditar.notifyDataSetChanged();\n //Stuff.toastCsmCntx(context, \"El punto se agrego a la ruta\").show();\n } else {\n //Stuff.toastCsmCntx(context,\"El punto ya ha sido Seleccionado\").show();\n }\n }else {\n destinos.add(direccion);\n adaptadorRutaEditar.notifyDataSetChanged();\n }\n }",
"public void agregarDatosCliente(Integer codCliente){\n try{\n ClienteDao clienteDao = new ClienteDaoImp();\n //obtenemos la instancia de Cliente en Base a su codigo\n this.cliente = clienteDao.obtenerClientePorCodigo(codCliente);\n //Mensaje de confirmacion de exito de la operacion\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO,\"Correcto\", \"Cliente agregado correctamente!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }catch(Exception e){\n e.printStackTrace();\n }\n \n }",
"public cABCEmpleados(String nombre, int NaDmi, String email, String tel, String cel, int idD) {\r\n this._Nombre = nombre;\r\n this._NADmi = NaDmi;\r\n this._IdLicencia = idD;\r\n this._Contacto[0] = email;\r\n this._Contacto[1] = tel;\r\n this._Contacto[2] = cel;\r\n }",
"public void inserir(Cliente cliente){\n\t\tclientes[indice++] = cliente;\n\t\t\n\t}",
"public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }",
"public void limpiarDatos() {\r\n FormularioUtil.limpiarComponentes(groupboxEditar, idsExcluyentes);\r\n tbxNro_identificacion.setValue(\"\");\r\n tbxNro_identificacion.setDisabled(false);\r\n deshabilitarCampos(true);\r\n\r\n }",
"public void carregar(DadosGrafico dados){\r\n \r\n }",
"public static void main(String[] args) throws Exception {\n\t\tLista<Contato> vetor = new Lista<Contato>(20);\n\t\tLinkedList<Contato> listaEncadeada = new LinkedList<Contato>();\n\n\t\tContato c1 = new Contato(\"c1\", \"111-1111\", \"[email protected]\");\n\t\tContato c2 = new Contato(\"c2\", \"222-2222\", \"[email protected]\");\n\t\tContato c3 = new Contato(\"c3\", \"333-3333\", \"[email protected]\");\n\t\tContato c4 = new Contato(\"c4\", \"444-2344\", \"[email protected]\");\n\t\tContato c5 = new Contato(\"c5\", \"555-5585\", \"[email protected]\");\n\t\tContato c6 = new Contato(\"c6\", \"111-1911\", \"[email protected]\");\n\t\tContato c7 = new Contato(\"c7\", \"222-2322\", \"[email protected]\");\n\t\tContato c8 = new Contato(\"c8\", \"333-3333\", \"[email protected]\");\n\t\tContato c9 = new Contato(\"c9\", \"454-4644\", \"[email protected]\");\n\t\tContato c10 = new Contato(\"c10\", \"515-5235\", \"[email protected]\");\n\t\tContato c11 = new Contato(\"c11\", \"131-1411\", \"[email protected]\");\n\t\tContato c12 = new Contato(\"c12\", \"252-2672\", \"[email protected]\");\n\t\tContato c13 = new Contato(\"c13\", \"313-3433\", \"[email protected]\");\n\t\tContato c14 = new Contato(\"c14\", \"433-4334\", \"[email protected]\");\n\t\tContato c15 = new Contato(\"c15\", \"535-5355\", \"[email protected]\");\n\t\tContato c16 = new Contato(\"c16\", \"161-1516\", \"[email protected]\");\n\t\tContato c17 = new Contato(\"c17\", \"272-2272\", \"[email protected]\");\n\t\tContato c18 = new Contato(\"c18\", \"383-3993\", \"[email protected]\");\n\t\tContato c19 = new Contato(\"c19\", \"141-4949\", \"[email protected]\");\n\t\tContato c20 = new Contato(\"c20\", \"565-5565\", \"[email protected]\");\n\t\tContato c21 = new Contato(\"c21\", \"616-1611\", \"[email protected]\");\n\t\tContato c22 = new Contato(\"c22\", \"212-2121\", \"[email protected]\");\n\t\tContato c23 = new Contato(\"c23\", \"131-1331\", \"[email protected]\");\n\t\tContato c24 = new Contato(\"c24\", \"424-4444\", \"[email protected]\");\n\t\tContato c25 = new Contato(\"c25\", \"565-5555\", \"[email protected]\");\n\t\tContato c26 = new Contato(\"c26\", \"111-1611\", \"[email protected]\");\n\t\tContato c27 = new Contato(\"c27\", \"282-1252\", \"[email protected]\");\n\t\tContato c28 = new Contato(\"c28\", \"323-3433\", \"[email protected]\");\n\t\tContato c29 = new Contato(\"c29\", \"544-4464\", \"[email protected]\");\n\t\tContato c30 = new Contato(\"c30\", \"155-5455\", \"[email protected]\");\n\n\t\ttry {\n\t\t\t// ex5\n\t\t\tvetor.adiciona(c1);\n\t\t\tvetor.adiciona(c2);\n\t\t\tvetor.adiciona(c3);\n\t\t\tvetor.adiciona(c4);\n\t\t\tvetor.adiciona(c5);\n\t\t\tvetor.adiciona(c6);\n\t\t\tvetor.adiciona(c7);\n\t\t\tvetor.adiciona(c8);\n\t\t\tvetor.adiciona(c9);\n\t\t\tvetor.adiciona(c10);\n\t\t\tvetor.adiciona(c11);\n\t\t\tvetor.adiciona(c12);\n\t\t\tvetor.adiciona(c13);\n\t\t\tvetor.adiciona(c14);\n\t\t\tvetor.adiciona(c15);\n\t\t\tvetor.adiciona(c16);\n\t\t\tvetor.adiciona(c17);\n\t\t\tvetor.adiciona(c18);\n\t\t\tvetor.adiciona(c19);\n\t\t\tvetor.adiciona(c20);\n\t\t\tvetor.adiciona(c21);\n\t\t\tvetor.adiciona(c22);\n\t\t\tvetor.adiciona(c23);\n\t\t\tvetor.adiciona(c24);\n\t\t\tvetor.adiciona(c25);\n\t\t\tvetor.adiciona(c26);\n\t\t\tvetor.adiciona(c27);\n\t\t\tvetor.adiciona(c28);\n\t\t\tvetor.adiciona(c29);\n\t\t\tvetor.adiciona(c30);\n\t\t\t// ex3\n\t\t\tvetor.removerT(\"111-1111\");\n\t\t\t//ex4-vetor.RemoverTudo();\n\t\t\t\n\t\t\tSystem.out.println(vetor);\n\t\t\t// ex1\n\t\t\tSystem.out.println(\"Confirmar se o elemento na lista existe:\" + vetor.contem(c2));\n\t\t\t// ex2\n\t\t\tSystem.out.println(\"Retornar a posicao do elemento, se retornar -1 que dizer que o elemento não existe:\"\n\t\t\t\t\t+ vetor.indicio(c2));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// ex6\n\t\tlistaEncadeada.add(c1);\n\t\tlistaEncadeada.add(c2);\n\t\tlistaEncadeada.add(c3);\n\t\tlistaEncadeada.add(c4);\n\t\tlistaEncadeada.add(c5);\n\t\tlistaEncadeada.add(c6);\n\t\tlistaEncadeada.add(c7);\n\t\tlistaEncadeada.add(c8);\n\t\tlistaEncadeada.add(c9);\n\t\tlistaEncadeada.add(c10);\n\t\tlistaEncadeada.add(c11);\n\t\tlistaEncadeada.add(c12);\n\t\tlistaEncadeada.add(c13);\n\t\tlistaEncadeada.add(c14);\n\t\tlistaEncadeada.add(c15);\n\t\tlistaEncadeada.add(c16);\n\t\tlistaEncadeada.add(c17);\n\t\tlistaEncadeada.add(c18);\n\t\tlistaEncadeada.add(c19);\n\t\tlistaEncadeada.add(c20);\n\t\tlistaEncadeada.add(c21);\n\t\tlistaEncadeada.add(c22);\n\t\tlistaEncadeada.add(c23);\n\t\tlistaEncadeada.add(c24);\n\t\tlistaEncadeada.add(c25);\n\t\tlistaEncadeada.add(c26);\n\t\tlistaEncadeada.add(c27);\n\t\tlistaEncadeada.add(c28);\n\t\tlistaEncadeada.add(c29);\n\t\tlistaEncadeada.add(c30);\n\n\t\tSystem.out.println(listaEncadeada);\n\n\t}",
"@RequestMapping(value = \"clientes\", method = RequestMethod.POST)\n\t\n\tpublic ResponseEntity<List<InfoUIA>> agregaCliente(@RequestBody InfoUIA newCliente){\n\t\tSystem.out.println(\"Saludos desde agregaCliente()\");\n\t\tif(clientes.agregaCatalogo(newCliente) == null)\n\t\t{\n\t\t\tSystem.out.println(\"Error en agregaCliente()\");\n\t\t}\n\t\treturn ResponseEntity.ok(clientes.getListaProveedores(misParametros));\n\t}",
"@Override\n\tpublic String detalheEleicao(Eleicao eleicao) throws RemoteException {\n\t\tString resultado = \"\";\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy:MM:dd hh:mm\");\n\t\tdataEleicao data_atual = textEditor.dataStringToData(dateFormat.format(new Date()));\n\t\tif (!data_atual.maior_data(textEditor.dataStringToData(eleicao.getDataInicio()))) {\n\t\t\tresultado += \"\\nTítulo eleição: \"+eleicao.getTitulo()+\" - Data início: \"+eleicao.getDataInicio()+\" - Data fim: \"+ eleicao.getDataFim();\n\t\t\tresultado += \"\\nEleição ainda não iniciada.\";\n\t\t\tfor(Candidatos candTemp: eleicao.getCandidatos()) {\n\t\t\t\tif(candTemp.getTipo().equalsIgnoreCase(\"lista\")) {\n\t\t\t\t\tLista lista = (Lista) candTemp;\n\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+lista.getId()+\" - Nome lista: \"+lista.getNome()+\" Membros: \"+lista.getLista_pessoas();\n\t\t\t\t\tfor(PessoaLista pessoalista : lista.getLista_pessoas()) {\n\t\t\t\t\t\tresultado += \"\\n\\tCC: \"+pessoalista.getPessoa().getNcc()+\" - Cargo: \"+pessoalista.getCargo()+ \" - Nome: \"+pessoalista.getPessoa().getNome();\n\t\t\t\t\t}\n\t\t\t\t\tresultado += \"\\n\";\n\t\t\t\t}else {\n\t\t\t\t\tCandidatoIndividual cand = (CandidatoIndividual) candTemp;\n\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+cand.getId()+\" - Nome: \"+cand.getPessoa().getNome()+\" - CC: \"+cand.getPessoa().getNcc();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (data_atual.maior_data(textEditor.dataStringToData(eleicao.getDataFim()))) {\n\t\t\t\tresultado += \"\\nTítulo eleição: \"+eleicao.getTitulo()+\" - Data início: \"+eleicao.getDataInicio()+\" - Data fim: \"+ eleicao.getDataFim();\n\t\t\t\tresultado += \"\\nEleição terminada.\";\n\t\t\t\tresultado += \"\\nVotos em branco/nulos: \"+eleicao.getnVotoBNA();\n\t\t\t\tfor(Candidatos candTemp: eleicao.getCandidatos()) {\n\t\t\t\t\tif(candTemp.getTipo().equalsIgnoreCase(\"lista\")) {\n\t\t\t\t\t\tLista lista = (Lista) candTemp;\n\t\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+lista.getId()+\" - Nome lista: \"+lista.getNome()+\" Membros: \"+lista.getLista_pessoas()+\"Votos: \"+lista.getnVotos();\n\t\t\t\t\t\tresultado += \"\\n\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tCandidatoIndividual cand = (CandidatoIndividual) candTemp;\n\t\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+cand.getId()+\" - Nome: \"+cand.getPessoa().getNome()+\" - CC: \"+cand.getPessoa().getNcc()+\" - Votos: \"+cand.getnVotos();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(eleicao.getDataInicio()+\"-\"+eleicao.getDataFim()+\": A decorrer\");\n\t\t\t}\n\t\t}\n\t\treturn resultado;\n\t\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == INTENTO_NUEVO_CLIENTE) {\n if (resultCode == RESULT_OK) {\n\n // obtengo los datos del cliente lo meto en un objeto cliente y lo meto en el arrylist\n\n String nombre=data.getStringExtra(\"nombre\");\n int cantidad=Integer.parseInt(data.getStringExtra(\"cantidad\"));\n String fecha=data.getStringExtra(\"fecha\");\n // creo un objeto cliente\n listaCuentas.add(new Cliente(nombre,cantidad,fecha));\n rellenarListview(listaCuentas);\n\n // mientras escribo el archivo\n }\n if (resultCode == RESULT_CANCELED) {\n // no hago nada\n\n\n }\n\n\n }\n }",
"private static void registrarAuditoriaDetallesDatoGeneralEmpleado(Connexion connexion,DatoGeneralEmpleado datogeneralempleado)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_numero_patronal().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_numero_patronal()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_numero_patronal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_numero_patronal().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_numero_patronal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_numero_patronal().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDNUMEROPATRONAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_tipo_afiliacion().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_afiliacion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_afiliacion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_afiliacion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_tipo_afiliacion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_tipo_afiliacion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDTIPOAFILIACION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getcarnet_iess().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcarnet_iess()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcarnet_iess()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcarnet_iess();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getcarnet_iess()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getcarnet_iess() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.CARNETIESS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getsectorial_iess().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getsectorial_iess()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getsectorial_iess()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getsectorial_iess();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getsectorial_iess()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getsectorial_iess() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.SECTORIALIESS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_pais().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_pais()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_pais()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_pais().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_pais()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_pais().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDPAIS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_provincia().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_provincia()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_provincia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_provincia().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_provincia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_provincia().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDPROVINCIA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_canton().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_canton()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_canton()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_canton().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_canton()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_canton().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDCANTON,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_parroquia().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_parroquia()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_parroquia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_parroquia().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_parroquia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_parroquia().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDPARROQUIA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getfecha_nacimiento().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getfecha_nacimiento()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getfecha_nacimiento()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getfecha_nacimiento().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getfecha_nacimiento()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getfecha_nacimiento().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.FECHANACIMIENTO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getfecha_fallece().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getfecha_fallece()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getfecha_fallece()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getfecha_fallece().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getfecha_fallece()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getfecha_fallece().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.FECHAFALLECE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor_evaluacion().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor_evaluacion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor_evaluacion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor_evaluacion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor_evaluacion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor_evaluacion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALOREVALUACION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getnumero_horas().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_horas()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_horas()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_horas().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getnumero_horas()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getnumero_horas().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.NUMEROHORAS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor_hora().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor_hora()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor_hora()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor_hora().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor_hora()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor_hora().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALORHORA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getsalario().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getsalario()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getsalario()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getsalario().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getsalario()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getsalario().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.SALARIO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_moneda().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_moneda()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_moneda()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_moneda().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_moneda()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_moneda().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDMONEDA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getnumero_contrato().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_contrato()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_contrato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_contrato();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getnumero_contrato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getnumero_contrato() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.NUMEROCONTRATO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_tipo_contrato().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_contrato()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_contrato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_contrato().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_tipo_contrato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_tipo_contrato().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDTIPOCONTRATO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor1().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor1()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor1()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor1().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor1()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor1().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALOR1,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor2().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor2()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor2()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor2().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor2()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor2().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALOR2,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor3().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor3()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor3()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor3().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor3()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor3().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALOR3,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor4().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor4()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor4()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor4().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor4()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor4().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALOR4,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor5().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor5()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor5()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor5().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor5()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor5().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALOR5,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getvalor6().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor6()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor6()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getvalor6().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getvalor6()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getvalor6().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.VALOR6,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getcon_aporta_seguro_social().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_aporta_seguro_social()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_aporta_seguro_social()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_aporta_seguro_social().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getcon_aporta_seguro_social()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getcon_aporta_seguro_social().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.CONAPORTASEGUROSOCIAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getcon_recibe_horas_extras().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_recibe_horas_extras()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_recibe_horas_extras()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_recibe_horas_extras().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getcon_recibe_horas_extras()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getcon_recibe_horas_extras().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.CONRECIBEHORASEXTRAS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getcon_descuento_impuestos().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_descuento_impuestos()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_descuento_impuestos()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_descuento_impuestos().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getcon_descuento_impuestos()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getcon_descuento_impuestos().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.CONDESCUENTOIMPUESTOS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getpension_alimenticia().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getpension_alimenticia()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getpension_alimenticia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getpension_alimenticia().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getpension_alimenticia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getpension_alimenticia().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.PENSIONALIMENTICIA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getcon_pago_por_horas().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_pago_por_horas()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_pago_por_horas()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_pago_por_horas().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getcon_pago_por_horas()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getcon_pago_por_horas().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.CONPAGOPORHORAS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getcon_anticipo().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_anticipo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_anticipo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getcon_anticipo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getcon_anticipo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getcon_anticipo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.CONANTICIPO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_tipo_libreta_mili().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_libreta_mili()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_libreta_mili()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_libreta_mili().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_tipo_libreta_mili()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_tipo_libreta_mili().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDTIPOLIBRETAMILI,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getlibreta_militar().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getlibreta_militar()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getlibreta_militar()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getlibreta_militar();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getlibreta_militar()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getlibreta_militar() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.LIBRETAMILITAR,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_tipo_grupo_forma_pago().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_grupo_forma_pago()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_grupo_forma_pago()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_grupo_forma_pago().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_tipo_grupo_forma_pago()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_tipo_grupo_forma_pago().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDTIPOGRUPOFORMAPAGO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_banco().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_banco()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_banco()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_banco().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_banco()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_banco().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDBANCO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_tipo_cuenta_banco_global().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_cuenta_banco_global()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_cuenta_banco_global()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_cuenta_banco_global().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_tipo_cuenta_banco_global()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_tipo_cuenta_banco_global().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDTIPOCUENTABANCOGLOBAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getnumero_cuenta().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_cuenta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_cuenta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getnumero_cuenta();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getnumero_cuenta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getnumero_cuenta() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.NUMEROCUENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_tipo_sangre().equals(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_sangre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_sangre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=datogeneralempleado.getDatoGeneralEmpleadoOriginal().getid_tipo_sangre().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(datogeneralempleado.getid_tipo_sangre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=datogeneralempleado.getid_tipo_sangre().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),DatoGeneralEmpleadoConstantesFunciones.IDTIPOSANGRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}",
"public void adicionarServicos() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Não existem hospedes cadastrados!\\n\");\n } else {\n\n System.err.println(\"Digite o cpf do hospede que deseja adicionar servicos:\");\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//pega o indice i do objeo pessoa, pega o id da pessoa e compara com o id da pessoa digitada\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//verifica se a situaçao do contrato ainda está aberta para esse hospede\n\n System.err.println(\"O que deseja editar do contrato\\n\");\n //adicionar carro, trocar de quarto, adicionar conta de restaurante,\n //encerrar contrato\n\n System.err.println(\"Adicionar carro (1):\\nAdicionar restaurante (2):\\n\"\n + \"Adicionar horas de BabySitter (3):\\nAdicionar quarto(4):\\n\");\n int caso = verifica();\n switch (caso) {\n case 1://carro\n if (carrosCadastrados.isEmpty()) {\n System.err.println(\"Nao existem carros cadastrados!\\n\");\n } else {\n listarCarros();\n System.err.println(\"Digite o id do carro que deseja contratar:\\n\");\n int idCarro = verifica();\n\n for (int j = 0; j < carrosCadastrados.size(); j++) {\n if (carrosCadastrados.get(j).getId() == idCarro) {\n if (carrosCadastrados.get(j).isEstado()) {\n System.err.println(\"Esse carro já está cadastrado.\\n\");\n } else {\n hospedesCadastrados.get(i).getContrato().setCarros(carrosCadastrados.get(j));\n carrosCadastrados.get(j).setEstado(true);\n }\n }\n }\n }\n break;\n\n case 2://restaurante\n System.err.println(\"Digite o quanto deseja gastar no restaurente\\n\");\n double valorRestaurante = ler.nextDouble();\n// idd();\n// int idRestaurante = id;\n// Restaurante restaurante = new Restaurante(idRestaurante, valorRestaurante);\n hospedesCadastrados.get(i).getContrato().setValorRestaurante(valorRestaurante);\n break;\n case 3://babysitter\n System.err.println(\"Digite o tempo gasto no BabySytter em horas\\n\");\n double tempoBaby = ler.nextDouble();\n hospedesCadastrados.get(i).getContrato().setHorasBaby(tempoBaby);\n break;\n case 4://quartos\n\n if (quartosCadastrados.isEmpty()) {\n\n } else {\n System.err.println(\"Digite o numero do quarto que deseja contratar:\\n\");\n listarQuartos();\n int num = verifica();\n System.err.println(\"Digite a quantidade de dis que pretente alugar o quarto:\\n\");\n int dias = verifica();\n for (int j = 0; j < quartosCadastrados.size(); j++) {\n if (num == quartosCadastrados.get(j).getNumero()) {//verifica se o numero digitado é igual ao numero do quarto do laco\n if (quartosCadastrados.get(j).getEstado()) {//verifica se o estado do quarto está como true\n System.err.println(\"Este quarto já está cadastrado em um contrato\");\n } else {//se o estado tiver em true é porque o quarto ja está cadastrado\n\n hospedesCadastrados.get(i).getContrato().setQuartos(quartosCadastrados.get(j));\n hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().get(j).setDias(dias);\n hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().get(j).setEstado(true);//seta o estado do quarto como ocupado\n System.err.println(\"Quarto cadastrado!\\n\");\n }\n\n }\n\n }\n\n//remove all remove todas as pessoas com tal nome\t\n }\n break;\n\n }\n } else {\n System.err.println(\"O contrato deste Hospede encontra-se encerrado\");\n break;\n }\n }\n }\n }\n }",
"public ContribuintesIndividuais() {\n super();\n this.dependentes=0;\n this.nifs = new ArrayList<String>();\n this.coeffiscal=0;\n this.codigos = new ArrayList<String>();\n this.numFilhos = 0;\n }",
"public void addArco(String origen, String destino, int peso) throws Exception {\n\t\tthrow new UnsupportedOperationException();\n\t\t\n\t}",
"public void insertarCargo() {\n ContentValues values = new ContentValues();\n for (int i = 0; i <= 3; i++) {\n values.put(\"NOMBRE_CARGO\", \"nombre \" + i);\n values.put(\"DESCRIPCION_CARGO\", \"Descripcion \" + i);\n db.insert(\"CARGO\", null, values);\n }\n }",
"public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }",
"private void registrarAnexoExcepcion(RegistroRadicarExcepcionDTO registroRadicarExcepcionDTO)\n throws CirculemosAlertaException {\n logger.debug(\"CoactivoEJB.registrarAnexoExcepcion(RegistroRadicarExcepcionDTO)\");\n // Calculo de ruta: anno/mes/proceso\n String ruta = \"c2/anexosExcepcion/\" + Calendar.getInstance().get(Calendar.YEAR) + \"/\"\n + Calendar.getInstance().get(Calendar.MONTH) + \"/Proceso-\"\n + registroRadicarExcepcionDTO.getRadicarExcepcionDTO().getCoactivoDTO().getProceso().getId();\n\n for (RegistroArchivoExcepcionDTO registroArchivoExcepcionDTO : registroRadicarExcepcionDTO\n .getRegistroArchivoExcepcionDTOs()) {\n ArchivoExcepcion archivoExcepcion = new ArchivoExcepcion();\n archivoExcepcion.setFechaRegistro(Calendar.getInstance().getTime());\n archivoExcepcion.setNombreArchivo(registroArchivoExcepcionDTO.getArchivoTransportableDTO().getNombre());\n archivoExcepcion.setFalloExcepcion(registroArchivoExcepcionDTO.isFalloExcepcion());\n\n registroArchivoExcepcionDTO.getArchivoTransportableDTO().setRuta(ruta);\n OpcionGestorFileSystem ogfs = new OpcionGestorFileSystem();\n ogfs.setUbicacion(ruta);\n\n archivoExcepcion.setNumeroArchivo(irRepositorioArchivo.registrarDocumento(null,\n registroArchivoExcepcionDTO.getArchivoTransportableDTO(), ogfs));\n\n RadicarExcepcion radicarExcepcion = new RadicarExcepcion();\n radicarExcepcion.setIdRadicarExcepcion(\n registroRadicarExcepcionDTO.getRadicarExcepcionDTO().getIdRadicarExcepcion());\n archivoExcepcion.setRadicarExcepcion(radicarExcepcion);\n em.persist(archivoExcepcion);\n }\n\n }",
"public void setCodigo_agencia(java.lang.String newCodigo_agencia);",
"void agregarConexion(String id, String direccion, String ip) {\n this.s.agregarConexion(id, direccion, ip);\n }",
"List<CatalogoAprobadorDTO> buscarAprobador(int cveADM, String numEmpleado, Integer claveNivel, Integer centroCostoOP) throws SIATException;",
"public void insertar(Cliente c) {\n if (cabeza == null) { //En caso de que la cabeza sea nula, el dato sera el primero de la lista.\n cabeza = new NodoCliente(c);\n } else {\n if (c.getEspacios() <= cabeza.getDato().getEspacios()) { //Con ayuda de la condicion \"if\" y \"else\" de abajo, se orden los datos por espacios reservados,\n NodoCliente aux = new NodoCliente(c); //de menor a mayor.\n aux.setNext(cabeza);\n cabeza = aux;\n } else {\n if (cabeza.getNext() == null) {\n cabeza.setNext(new NodoCliente(c));\n } else {\n NodoCliente aux = cabeza;\n while (aux.getNext() != null && c.getEspacios() > aux.getNext().getDato().getEspacios()) {\n aux = aux.getNext();\n }\n NodoCliente temp = new NodoCliente(c);\n temp.setNext(aux.getNext());\n aux.setNext(temp);\n }\n }\n }\n }",
"private void registar(Gene gene, boolean dominante, LinkedList<GeneResutado> geneResutados, String tipo) {\n\t\tGeneResutado geneResutado = new GeneResutado();\n\t\tgeneResutado.setTipo(tipo);\n\t\tgeneResutado.setDescricao(gene.getDescricao());\n\n\t\tif (dominante) {\n\t\t\tgeneResutado.adicionarNVezes();\n\t\t} else {\n\t\t\tgeneResutado.adicionarMetadeNVezes();\n\t\t}\n\t\tgeneResutados.add(geneResutado);\n\t}",
"public static NodoListaC creaInCoda() {\r\n\t\tNodoListaC a = new NodoListaC();\r\n\t\tNodoListaC p = a; //a rimane in testa alla lista\r\n\t\tp.info = 'A';\r\n\t\tp.next = new NodoListaC();\r\n\t\tp = p.next;\r\n\t\tchar c;\r\n\t\tfor (c = 'B'; c < 'Z'; c++) {\r\n\t\t p.info = c;\r\n\t\t p.next = new NodoListaC();\r\n\t \t p = p.next; \r\n\t\t}\r\n\t\tp.info = 'Z';\r\n\t\tp.next = null;\r\n\t\t\r\n\t\treturn a; \r\n\t}",
"@DirectMethod\r\n\tpublic String agregarNodosArbolIn(boolean bNvoHijo,//que si es nuevo hijo si dice false es padre\r\n\t\t\t\t\t\t\t\t\tString sRuta,//trae la clave de donde viene de la empresa raiz ala que se le metera el hijo\r\n\t\t\t\t\t\t\t\t\tint iIdEmpresaRaiz,//trae la clave de la empresa raiz ala que se le metera el hijo \r\n\t\t\t\t\t\t\t\t\tint iIdEmpresaHijo,//Id de la empresa \r\n\t\t\t\t\t\t\t\t\tdouble uMonto,//monto en flotante\r\n\t\t\t\t\t\t\t\t\tString nombreArbol,//trae un dato en blanco ''\r\n\t\t\t\t\t\t\t\t\t//String tipoValor,//trae el dato del combo tipodevalor \r\n\t\t\t\t\t\t\t\t\tint tipoOperacion,//treae el numero de la operacion\r\n\t\t\t\t\t\t\t\t\tint iIdEmpresaPadre){//trae el Id del padre ala que se insertara\r\n\r\n\t\t\r\n\t\t\r\n\r\n\t\tString sMsgUsuario = \"en nodos hojso angel\";\r\n\t\tif(!Utilerias.haveSession(WebContextManager.get()))\r\n\t\t\treturn sMsgUsuario;\r\n\t\ttry{\r\n\t\t\tBarridosFondeosService barridosFondeosService = (BarridosFondeosService) contexto.obtenerBean(\"barridosFondeosBusinessImpl\");\r\n\t\t\tsMsgUsuario = barridosFondeosService.agregarNodosArbolIn(bNvoHijo, sRuta, iIdEmpresaRaiz, \r\n\t\t\t\t\tiIdEmpresaHijo, uMonto, nombreArbol, tipoOperacion, iIdEmpresaPadre); \r\n\t\t}catch(Exception e){\r\n\t\t\tbitacora.insertarRegistro(new Date().toString() + \" \" + Bitacora.getStackTrace(e)\r\n\t\t\t\t\t+ \"P: BarridosFondeos C: BarridosFondeosAction M: agregarNodosArbolIn\");\r\n\t\t}return sMsgUsuario;\r\n\t}",
"public void buscarEntidad(){\r\n\t\tlistaEstructuraDetalle.clear();\r\n\t\tPersona persona = null;\r\n\t\tList<EstructuraDetalle> lstEstructuraDetalle = null;\r\n\t\ttry {\r\n\t\t\tstrFiltroTextoPersona = strFiltroTextoPersona.trim();\r\n\t\t\tif(intTipoPersonaC.equals(Constante.PARAM_T_TIPOPERSONA_JURIDICA)){\r\n\t\t\t\tif (intPersonaRolC.equals(Constante.PARAM_T_TIPOROL_ENTIDAD)) {\r\n\t\t\t\t\tlstEstructuraDetalle = estructuraFacade.getListaEstructuraDetalleIngresos(SESION_IDSUCURSAL,SESION_IDSUBSUCURSAL);\r\n\t\t\t\t\tif (lstEstructuraDetalle!=null && !lstEstructuraDetalle.isEmpty()) {\r\n\t\t\t\t\t\tfor (EstructuraDetalle estructuraDetalle : lstEstructuraDetalle) {\r\n\t\t\t\t\t\t\tpersona = personaFacade.getPersonaPorPK(estructuraDetalle.getEstructura().getJuridica().getIntIdPersona());\r\n\t\t\t\t\t\t\tif (persona.getStrRuc().trim().equals(\"strFiltroTextoPersona\")) {\r\n\t\t\t\t\t\t\t\testructuraDetalle.getEstructura().getJuridica().setPersona(persona);\r\n\t\t\t\t\t\t\t\tlistaEstructuraDetalle.add(estructuraDetalle);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t}\r\n\t}",
"public void addDicas(){\n\t\tMetaDica metaDicaOac = new MetaDica(oac, \"user1\", \"Não falte as aulas, toda aula tem ponto extra!\");\n\t\tmetaDicaOac.setConcordancias(5);\n\t\tdao.persist(metaDicaOac);\n\n\t\tdicaExerciciosOac = new DicaConselho(\"Os exercicios extras valem muitos pontos, nao deixe de fazer\");\n\t\tdicaExerciciosOac.setTema(temaOacExercicios);\n\t\ttemaOacExercicios.setDisciplina(oac);\n\t\tdicaExerciciosOac.setUser(\"user5\");\n\t\tdicaExerciciosOac.addUsuarioQueVotou(\"user1\");\n\t\tdicaExerciciosOac.addUsuarioQueVotou(\"user2\");\n\n\t\t//adiciona pontos a dica\n\t\tfor (int i = 0; i < 20;i++){\n\t\t\tdicaExerciciosOac.incrementaConcordancias();\n\t\t}\n\t\tfor (int i = 0; i < 5;i++){\n\t\t\tdicaExerciciosOac.incrementaDiscordancias();\n\t\t}\n\n\t\t//adiciona pontos a dica\n\t\tfor (int i = 0; i < 5;i++){\n\t\t\tdicaExerciciosOac.incrementaConcordancias();\n\t\t}\n\t\tfor (int i = 0; i < 25;i++){\n\t\t\tdicaExerciciosOac.incrementaDiscordancias();\n\t\t}\n\t\tdao.persist(dicaExerciciosOac);\n\n\t\tdicaRevisaoIcOac = new DicaAssunto(\"Antes das aulas faça uma boa revisao de IC\");\n\t\ttemaOacRevisaoIC.setDisciplina(oac);\n\t\tdicaRevisaoIcOac.setTema(temaOacRevisaoIC);\n\t\tdicaRevisaoIcOac.setUser(\"user4\");\n\t\tdicaRevisaoIcOac.addUsuarioQueVotou(\"user5\");\n\t\tdicaRevisaoIcOac.addUsuarioQueVotou(\"user1\");\n\t\tdicaRevisaoIcOac.incrementaConcordancias();\n\t\tdicaRevisaoIcOac.incrementaConcordancias();\n\n\t\t//cria meta dica em si\n\t\tMetaDica metaDicaSi1 = new MetaDica(si1, \"user2\", \"Seja autodidata! Procure por cursos online\");\n\t\tdao.persist(metaDicaSi1);\n\n\t\tdicaLabSi = new DicaConselho(\"Faça todo os labs, não deixe acumular\");\n\t\ttemaMinitestesSi.setDisciplina(si1);\n\t\tdicaLabSi.setTema(temaMinitestesSi);\n\t\tdicaLabSi.setUser(\"user1\");\n\t\tdicaLabSi.addUsuarioQueVotou(\"user2\");\n\t\tdicaLabSi.addUsuarioQueVotou(\"user3\");\n\t\tdicaLabSi.incrementaConcordancias();\n\t\tdicaLabSi.incrementaConcordancias();\n\t\tdao.persist(dicaLabSi);\n\n\t\tdicaPlaySi = new DicaConselho(\"Comece a configurar o Play no primeiro dia de aula, pois dá muuuito trabalho\");\n\t\ttemaPlaySi.setDisciplina(si1);\n\t\tdicaPlaySi.setTema(temaPlaySi);\n\t\tdicaPlaySi.setUser(\"user2\");\n\t\tdicaPlaySi.addUsuarioQueVotou(\"user5\");\n\t\tdicaPlaySi.addUsuarioQueVotou(\"user4\");\n\t\tdicaPlaySi.incrementaConcordancias();\n\t\tdicaPlaySi.incrementaConcordancias();\n\t\tdao.persist(dicaPlaySi);\n\n\t\tdicaMaterialSi = new DicaMaterial(\"http://www.wthreex.com/rup/process/workflow/ana_desi/co_swarch.htm\");\n\t\ttemaMaterialSi.setDisciplina(si1);\n\t\tdicaMaterialSi.setTema(temaMaterialSi);\n\t\tdicaMaterialSi.setUser(\"user2\");\n\t\tdicaMaterialSi.addUsuarioQueVotou(\"user5\");\n\t\tdicaMaterialSi.addUsuarioQueVotou(\"user4\");\n\t\tdicaMaterialSi.incrementaConcordancias();\n\t\tdicaMaterialSi.incrementaConcordancias();\n\t\tdao.persist(dicaMaterialSi);\n\n\n\t\t//cria meta dica logica\n\t\tMetaDica metaDicaLogica = new MetaDica(logica, \"user3\", \"Copie para o seu caderno tudo que o professor copiar no quadro, TUDO!\");\n\t\tdao.persist(metaDicaLogica);\n\n\t\tdicaListasLogica = new DicaConselho(\"Faça todas as listas possíveis\");\n\t\ttemaListasLogica.setDisciplina(logica);\n\t\tdicaListasLogica.setTema(temaListasLogica);\n\t\tdicaListasLogica.setTema(temaListasLogica);\n\t\tdicaListasLogica.setUser(\"user6\");\n\t\tdicaListasLogica.addUsuarioQueVotou(\"user3\");\n\t\tdicaListasLogica.addUsuarioQueVotou(\"user5\");\n\t\tdicaListasLogica.incrementaConcordancias();\n\t\tdicaListasLogica.incrementaConcordancias();\n\t\tdao.persist(dicaListasLogica);\n\n\t\tdicaProjetoLogica = new DicaAssunto(\"Peça ajuda ao monitor responsável por seu grupo, começe o projeto assim que for lançado!\");\n\t\ttemaProjetoLogica.setDisciplina(logica);\n\t\tdicaProjetoLogica.setTema(temaProjetoLogica);\n\t\tdicaProjetoLogica.setTema(temaProjetoLogica);\n\t\tdicaProjetoLogica.setUser(\"user4\");\n\t\tdicaProjetoLogica.addUsuarioQueVotou(\"user1\");\n\t\tdicaProjetoLogica.addUsuarioQueVotou(\"user2\");\n\t\tdicaProjetoLogica.incrementaConcordancias();\n\t\tdicaProjetoLogica.incrementaConcordancias();\n\t\tdao.persist(dicaProjetoLogica);\n\n\t\tdao.flush();\n\n\t}",
"public void acionarInadimplencia(CestaGarantiasDO cesta);"
] | [
"0.61172545",
"0.6024293",
"0.5993776",
"0.5833446",
"0.5729562",
"0.56381226",
"0.56067556",
"0.55478907",
"0.5538158",
"0.5535822",
"0.5476537",
"0.5450695",
"0.54460263",
"0.5423419",
"0.5420221",
"0.5410535",
"0.53670084",
"0.5366217",
"0.5341394",
"0.5314784",
"0.5295108",
"0.5293256",
"0.5292194",
"0.5271044",
"0.5270761",
"0.5267726",
"0.52663445",
"0.5266119",
"0.5265784",
"0.52609414",
"0.5245375",
"0.52363956",
"0.5233005",
"0.5225192",
"0.5224593",
"0.52145475",
"0.521077",
"0.5207639",
"0.520539",
"0.51976633",
"0.5190616",
"0.5188382",
"0.518503",
"0.5181863",
"0.5176556",
"0.5171951",
"0.51675546",
"0.51647115",
"0.51622117",
"0.5147544",
"0.5141774",
"0.51403236",
"0.5132437",
"0.5124687",
"0.5122531",
"0.5122316",
"0.5114133",
"0.51099336",
"0.51045346",
"0.5102767",
"0.50988805",
"0.5096246",
"0.50948614",
"0.5094658",
"0.50943077",
"0.509296",
"0.5092112",
"0.50911146",
"0.5090938",
"0.5089528",
"0.50865495",
"0.5086128",
"0.5083718",
"0.50798327",
"0.5079236",
"0.50732374",
"0.5068567",
"0.506806",
"0.5058161",
"0.5058031",
"0.5057138",
"0.50503653",
"0.50471145",
"0.50451297",
"0.50401974",
"0.50357723",
"0.5035348",
"0.5021857",
"0.5020027",
"0.50198007",
"0.50166214",
"0.501589",
"0.50150156",
"0.5008565",
"0.5002877",
"0.5000274",
"0.49928665",
"0.49895042",
"0.4988088",
"0.4987881"
] | 0.5103464 | 59 |
Valida si muestra el dialogo de cancelar. | public String validarAccionCancelar() {
boolean cambiosBean = false;
boolean cambiosMercados = false;
for (MercadoOrganizadoBean mercado : this.mercados) {
if (!("").equals(mercado.getCodigoMercado().trim())) {
boolean encontrado = false;
for (String mercadoSeleccionado : this.mercadosSeleccionados) {
if (mercadoSeleccionado.equals(mercado.getCodigoMercado())) {
encontrado = true;
}
}
if (!encontrado) {
cambiosMercados = true;
}
}
}
for (String mercadoSeleccionado : this.mercadosSeleccionados) {
boolean encontrado = false;
for (MercadoOrganizadoBean mercado : this.mercados) {
if (mercadoSeleccionado.equals(mercado.getCodigoMercado())) {
encontrado = true;
}
}
if (!encontrado) {
cambiosMercados = true;
}
}
if (datosVacios) {
if (!this.actividadEmpresarial.equals(inicializarActividadVacio())) {
cambiosBean = true;
}
} else {
if (!this.actividadEmpresarial.equals(this.actividadEmpresarialTmp)) {
cambiosBean = true;
}
}
if (this.registrosEliminados > 0 || this.registrosModif > 0
|| this.listaDireccionesAgregadas.size() > 0
|| !objetoSocial.equals(objetoSocialRespaldo)
|| this.cnaesAgregados.size() > 0 || cambiosMercados
|| this.eliminados.size() > 0 || cambiosBean) {
RequestContext.getCurrentInstance().execute(
"PF('dlgCancelar').show();");
return "";
} else {
return redirigirInicio();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When users confirms dialog, end activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n finish();\n });\n\n // Do nothing if cancel\n builder.setNegativeButton(android.R.string.cancel, null);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = dialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }\n }",
"public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel ;\r\n\t\t\t\t\r\n\t}",
"public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel;\r\n\t\t\t\t\r\n\t}",
"public void cancelDialog() {dispose();}",
"@Override\n\tpublic boolean verificarCancelar() {\n\t\treturn true;\n\t}",
"@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }",
"public void cancelar() {\n setCancelado(true);\n }",
"@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}",
"HasClickHandlers getCancelButton();",
"void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }",
"@Override\n public void onCancel(DialogInterface arg0) {\n\n }",
"public void cancel() { Common.exitWindow(cancelBtn); }",
"@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t}",
"void btnCancel();",
"public void cancelar() {\n controlGrabar = false;\n validaVacios = true;\n segUsuPerfil = null; \n existe = false;\n usuario = \"\";\n perfil = \"\";\n }",
"@Override\n\t\t\t\t\t\tpublic void doCancel() {\n\t\t\t\t\t\t\tcommonDialog.dismiss();\n\t\t\t\t\t\t}",
"@Override\n\tpublic void onCancel(DialogInterface arg0) {\n\t\t\n\t}",
"public void onCancelButtonClick() {\n close();\n }",
"private void dataReservationTypeCancelHandle() {\n reservationController.dialogStage.close();\r\n }",
"public boolean isCancel() {\n return cancel;\n }",
"private void onCancel() {\n data.put(\"cerrado\",true);\n dispose();\n }",
"@FXML private void handleCancel() {\r\n\t\tvastaus = null;\r\n\t\tModalController.closeStage(textVastaus);\r\n\t}",
"@Override\n public void onCancel(AmbilWarnaDialog dialog){\n }",
"public void onCancelClick()\r\n {\r\n\r\n }",
"@Override\n public void onCancel(DialogInterface dialog) {\n }",
"protected void closeDialogCancel() {\n dispose();\n }",
"@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\n\t\t}",
"@Override\n public void onCancel(AmbilWarnaDialog dialog) {\n }",
"@Override\n public void onCancel(AmbilWarnaDialog dialog) {\n }",
"public void handleCancel() {\n\t\tdialogStage.close();\n\t}",
"void onCancelButtonPressed();",
"void onCancelClicked();",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(MainActivity.this,\"Su registro se ha cancelado\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onCancel(DialogInterface dialog) {\n\n }",
"public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed Cancel\",\n Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n\tpublic void onCancel(DialogInterface dialog) {\n\r\n\t}",
"public void checkCancel() throws CancellationException;",
"public void tryCancel() throws Exception {\r\n\t\tif (! _displayOnly && isDataModified()) {\r\n\t\t\tscrollToMe();\r\n if (getValidator().getUseAlertsForErrors()) {\r\n addConfirmScript(_okToCancelQuestion, _okToCancelValue);\r\n }\r\n else {\r\n _validator.setErrorMessage(_okToCancelQuestion, null, -1, _okToCancel);\r\n }\r\n\t\t}\r\n else {\r\n\t\t\tdoCancel();\r\n }\r\n\t}",
"private void cancel(){\n\t\tSPSSDialog.instance = null;\n\t\thide();\n\t}",
"boolean isCancelled();",
"@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\tcancel(true);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"@Override\n public void OnCancelButtonPressed() {\n }",
"@Override\n public void OnCancelButtonPressed() {\n }",
"public boolean isCancelled();",
"public boolean isCancelled();",
"public boolean isCancelled();",
"public final boolean isCancelled(){\n return cancel;\n }",
"protected void do_btnCancelar_actionPerformed(ActionEvent arg0) {\n\t\t\n\t\tdispose();\n\t\tmiComboBoxController.getConsultasComboBoxBBDD().removePropertyChangeListener(this);\t\t\n\t\tmiConsultaController.getConsultasBBDD().removePropertyChangeListener(PROP_LISTAR_SISTEMA_ESPECIFICO, this);\n\t\t\n\t}",
"public void onCancelClicked() {\n close();\n }",
"public void cancelDialog(View view) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setCancelable(false);\n builder.setTitle(\"Cancel\");\n builder.setMessage(\"Do you want to Cancel?\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n builder.setNegativeButton(\"NO\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n builder.create().show();\n }",
"protected void botonCancelarPulsado() {\n\t\tthis.setVisible(false);\n\t\tlimpiarCampos();\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n }",
"@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}",
"@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}",
"@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}",
"@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}",
"public void onCancel(DialogInterface arg0) {\n mRemovePosition = -1;\n mRemoveConfirmDialog = null;\n }",
"public boolean cancel();",
"@SuppressWarnings(\"serial\")\n\tprivate void cancelOkHandler(Button cancel,Button ok)\n\t{\n\t\tok.addClickListener(new ClickListener() \n {\n\t\t\t@Override\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) \n\t\t\t{\n\t\t\t\terrorMessages.setVisible(false);\n\t\t\t\tif (editable)\n\t\t\t\t{\n\t\t\t\t\tif (((!(tf0.getValue().toString().trim().length() > 0))||(tf0.getValue().toString().equals(\"\"))||(tf0.getValue()==null)||(sf6.getValue()==null)||(sf1.getValue()==null)||(df3.getValue()==null)))\n\t\t\t\t\t{\n\t\t\t\t\t\tif ((!(tf0.getValue().toString().trim().length() > 0))||(tf0.getValue().toString().equals(\"\"))||(tf0.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"Wrong input on Name field(Name can not be empty!).\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif((sf1.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"I need you to tell me the Customer!\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif((sf6.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"Active field can't be empty!\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ((df3.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"I need the Start Date from you.\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!isfloat(tf7.getValue().toString())&&(!tf7.getValue().toString().equals(\"\"))||tf7.getValue().toString().length()>5)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"Budget should be a number with a max of 5 digits\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (!(checkdates(df3.getValue(),df4.getValue())&&checkdates(df3.getValue(),df5.getValue())&&checkdates(df5.getValue(),df4.getValue())))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(!checkdates(df3.getValue(),df4.getValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"End date can't be before Start date.\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(!checkdates(df3.getValue(),df5.getValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"Deadline should be between start/end(check Deadline).\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(!checkdates(df5.getValue(),df4.getValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"Deadline should be between start/end(check Deadline).\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(( Mode.equals(\"New Project\"))||( Mode.equals(\"Edit\")))\n\t\t\t\t\t \t{\n\t\t\t\t\t\t\t\t\tsetProject();\n\t\t\t\t\t \t}\n\t\t\t\t\t\t\t\t//Chekare an oles oi hmeromhnies twn tasks sou einai swstes\n\t\t\t\t\t\t\t\tif (checkProjectTaskDates(project))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdb.projectModifier(Mode, project, taskManager);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcatch (SQLException e) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tErrorWindow wind = new ErrorWindow(e); \n\t\t\t\t\t\t\t\t UI.getCurrent().addWindow(wind);\t\n\t\t\t\t\t\t\t\t e.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tproject_container.removeAllItems();\n\t\t\t\t\t\t\t\t\tgntTraineeProjectUI.containerFiller(project_table,project_container);\n\t\t\t\t\t\t\t\t\tproject_table.setContainerDataSource(project_container);\n\t\t\t\t\t\t\t\t\tclose();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"Tasks/project dates mismatch(check task/project dates).\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tclose();\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t\n\t\t\t}\n });\n\t\t\n\t\tcancel.addClickListener(new ClickListener() \n {\n\t\t\t@Override\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) \n\t\t\t{\n\t\t\t\terrorMessages.setVisible(false);\n\t\t\t\t close();\n\t\t\t\t\n\t\t\t}\n });\n\t}",
"@Override\n public boolean isCancelled() { return this.cancel; }",
"public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}",
"private void cancelButtonActionPerformed(ActionEvent e) {\n }",
"@Override\n\tpublic String textoVerificarCancelar() {\n\t\treturn null;\n\t}",
"@FXML\r\n private void handleCancel() {\r\n dialogStage.close();\r\n }",
"@FXML\r\n private void handleCancel() {\r\n dialogStage.close();\r\n }",
"@FXML\r\n private void handleCancel() {\r\n dialogStage.close();\r\n }",
"@FXML\r\n private void handleCancel() {\r\n dialogStage.close();\r\n }",
"@Override\n\tpublic void onCancel(DialogInterface dialog) {\n\t\tBase.car_v.wzQueryDlg = null;\n\t}",
"public void cancelarRegistro() {\n this.departamento = new Departamento();\n this.materia = new Materia();\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDlg').hide()\");\n }",
"@FXML\r\n\tprivate void handleCancel() {\r\n\t\tdialogStage.close();\r\n\t}",
"@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmListener.onCancelPressed();\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}",
"@FXML\n private void handleCancel() {\n dialogStage.close();\n }",
"@FXML\n private void handleCancel() {\n dialogStage.close();\n }",
"@FXML\n private void handleCancel() {\n dialogStage.close();\n }",
"public boolean hasUserCancelled() {\n return myIsDialogCancelled;\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\tpublic boolean onCancel() {\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"@Override\n \t\tpublic void onClick(View v) {\n \t\t mvalidateDialog.dismiss();\n \t\t}",
"public void onClick(DialogInterface dialog, int whichButton) {\n String nada = null;\n callbackContext.error(\"cancelled\");\n }",
"@Override\n public void onClick(View v)\n {\n begindialog.cancel();\n }",
"void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }",
"public abstract boolean cancel();",
"public void handleCancelButton(ActionEvent e) {\n\t\tclose();\n\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t\ttoastMessage(\"Confirmation cancelled\");\n\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }",
"private void cancelAppointment()\n {\n new AlertDialog.Builder(mCtx)\n .setTitle(mCtx.getResources().getString(R.string.cancel_heading))\n .setMessage(mCtx.getResources().getString(R.string.cancle_alert))\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener()\n {\n public void onClick(DialogInterface dialog, int which)\n {\n\n }\n })\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener()\n {\n public void onClick(DialogInterface dialog, int which)\n {\n\n }\n })\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }",
"@FXML\n\tprivate void handleCancel(){\n\t\tdialogStage.close();\n\t}",
"@Override\n public void onCancel(DialogInterface dialog) {\n Log.v(LOG_TAG, \"onCancel\");\n dismiss();\n }",
"public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n Toast.makeText(getApplicationContext(), \"payment not cancelled\",\n Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }",
"@Test\n\tpublic void testClickOnCancelButton() {\n\n\t\tvar prompt = openPrompt();\n\t\tprompt.getCancelButton().click();\n\t\tassertNoDisplayedModalDialog();\n\t\tassertPromptInputNotApplied();\n\t}",
"private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed\n this.dispose();\n }",
"@Override\n public void onClick(View v) {\n dialog.cancel();\n }",
"public void onClick(DialogInterface dialog, int id) {\n Toast.makeText(ListClientes.this, \"Sincronizacion cancelada \", Toast.LENGTH_SHORT).show();\n }",
"@FXML private void CancelHandler (ActionEvent event) throws IOException{\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"This will clear all text field values, do you want to continue?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if(result.isPresent() && result.get() == ButtonType.OK) {\r\n\r\n Stage stage = (Stage)((Button)event.getSource()).getScene().getWindow();\r\n Object scene = FXMLLoader.load(getClass().getResource(\"/View_Controller/MainScreen.fxml\"));\r\n stage.setScene(new Scene((Parent) scene));\r\n stage.show();\r\n\r\n }\r\n }"
] | [
"0.7447083",
"0.7388856",
"0.7272005",
"0.72367656",
"0.7218514",
"0.7051183",
"0.6914338",
"0.68461776",
"0.68272424",
"0.675247",
"0.6702801",
"0.66964674",
"0.66568047",
"0.66565746",
"0.6636099",
"0.6623816",
"0.66200817",
"0.66161317",
"0.6601993",
"0.65948534",
"0.65895224",
"0.6580142",
"0.6571003",
"0.6569394",
"0.65649724",
"0.65621203",
"0.6554416",
"0.65478903",
"0.653684",
"0.653684",
"0.65166533",
"0.6510069",
"0.65091634",
"0.64955425",
"0.64827657",
"0.6460636",
"0.6458317",
"0.645476",
"0.6445529",
"0.6432252",
"0.64002687",
"0.6384991",
"0.6379138",
"0.6358081",
"0.63549274",
"0.63549274",
"0.63549274",
"0.63518864",
"0.6351519",
"0.63498145",
"0.6334701",
"0.63068396",
"0.6306255",
"0.63029224",
"0.63029224",
"0.63029224",
"0.63029224",
"0.6300601",
"0.6296928",
"0.6292076",
"0.6288728",
"0.6283929",
"0.62834686",
"0.62715924",
"0.6264088",
"0.6264088",
"0.6264088",
"0.6264088",
"0.626247",
"0.6238971",
"0.6238402",
"0.6237594",
"0.6217965",
"0.6210995",
"0.6210995",
"0.6210995",
"0.6209862",
"0.62095374",
"0.6204762",
"0.62027484",
"0.62007236",
"0.61989635",
"0.61960596",
"0.6195082",
"0.6194846",
"0.6191808",
"0.61896884",
"0.6183118",
"0.6177347",
"0.6175728",
"0.6170903",
"0.61684626",
"0.6157409",
"0.61557835",
"0.6152085",
"0.61512625",
"0.6151154",
"0.6149439",
"0.61445916",
"0.6144098"
] | 0.6326176 | 51 |
Valida si muestra el dialogo de datos a eliminar. | public String validarAccionGuardar() throws NoControlableException {
RequestContext context = RequestContext.getCurrentInstance();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy");
try {
if ((!"".equals(actividadEmpresarial.getDiaCierreEjercicio()) && actividadEmpresarial
.getDiaCierreEjercicio() != null)
|| (!"".equals(actividadEmpresarial.getMesCierreEjercicio()) && actividadEmpresarial
.getMesCierreEjercicio() != null)) {
DateUtils.parseDateStrictly(
actividadEmpresarial.getDiaCierreEjercicio()
+ "/"
+ actividadEmpresarial.getMesCierreEjercicio()
+ "/"
+ dateFormat.format(Calendar.getInstance()
.getTime()), "dd/MM/yyyy");
}
if (this.registrosEliminados == 0) {
return guardar();
} else {
this.mensajeEliminados = DialogoListadoEnum.ELIMINAR;
this.mensajeEliminados.setMensaje(" " + registrosEliminados
+ " direcciones registrales");
this.mensajeEliminados.setMostrar(true);
}
} catch (ParseException e) {
String id = "input[id$=diaCierreEjercicio]";
context.execute("scrollTo('" + id + "');");
FacesContext.getCurrentInstance().validationFailed();
List<UIComponent> componentes = FacesContext.getCurrentInstance()
.getViewRoot().getChildren();
this.setValidationFalseRecursively(componentes);
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void eliminar() {\n\n int row = vista.tblClientes.getSelectedRow();\n cvo.setId_cliente(Integer.parseInt(vista.tblClientes.getValueAt(row, 0).toString()));\n int men = JOptionPane.showConfirmDialog(null, \"Estas seguro que deceas eliminar el registro?\", \"pregunta\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\n if (men == JOptionPane.YES_OPTION) {\n try {\n cdao.eliminar(cvo);\n cvo.setId_cliente(row);\n } catch (Exception e) {\n System.out.println(\"Mensaje eliminar\" + e.getMessage());\n }\n }\n }",
"public void eliminar() {\n try {\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(3, this.Selected);\n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"2\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue eliminada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n addMessage(\"Eliminado Exitosamente\", 1);\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al eliminar el registro, contacte al administrador del sistema\", 2);\n }\n }",
"public void eliminarManoObra(ActionEvent actionEvent) {\r\n manoobraDao manobraDao = new manoobraDaoImpl();\r\n String msg;\r\n if (manobraDao.eliminarManoObra(this.manoobra.getCodigoManob())) {\r\n msg = \"Mano de Obra eliminada correctamente\";\r\n FacesMessage message1 = new FacesMessage(FacesMessage.SEVERITY_INFO, msg, null);\r\n FacesContext.getCurrentInstance().addMessage(null, message1);\r\n } else {\r\n msg = \"No se elimino la Mano de Obra\";\r\n FacesMessage message2 = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, null);\r\n FacesContext.getCurrentInstance().addMessage(null, message2);\r\n }\r\n \r\n }",
"private void delete() {\n DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n switch (which){\n case DialogInterface.BUTTON_POSITIVE:\n setResult(RESULT_OK, null);\n datasource.deleteContact(c);\n dbHelper.commit();\n finish();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n //Do Nothing\n break;\n }\n }\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getString(R.string.confirm_delete) + (c==null?\"\":c.getName()) + \"?\").setPositiveButton(getString(R.string.yes), dialogClickListener)\n .setNegativeButton(getString(R.string.no), dialogClickListener).show();\n }",
"public void validarLocalidad(ActionEvent e) {\n CommandButton botonSelecionado = (CommandButton) e.getSource();\n\n // if (this.getPersona().getLugarNacimiento() != null) {\n //this.setsDireccion(this.getPersona().getLugarNacimiento().getDepartamento().getDescripcion() + \", \" + this.getPersona().getLugarNacimiento().getDescripcion());\n RequestContext context = RequestContext.getCurrentInstance();\n\n if (botonSelecionado.getId().equals(\"cbDomicilio\")) {\n context.execute(\"PF('dgDomicilio').hide();\");\n context.update(\":frmPri:pnDomicilio\");\n }\n\n// } else {\n// FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_INFO, \"No seleccionó localidad!!\\n \"\n// + \"si no existe, comuniquese con el administrador\", null);\n// FacesContext fc = FacesContext.getCurrentInstance();\n// fc.addMessage(null, fm);\n//\n//\n// }\n }",
"public void removeEmpleado(){\n //preguntar al empleado si realmente eliminar o no al objeto empleado\n this.mFrmMantenerEmpleado.messageBox(Constant.APP_NAME, \"<html>\"\n + \"¿Deseas remover el empleado del sistema?<br> \"\n + \"<b>OJO: EL EMPLEADO SERÁ ELIMINADO PERMANENTEMENTE.</b> \"\n + \"</html>\",\n new Callback<Boolean>(){\n @Override\n public void execute(Boolean[] answer) {\n //si la respuesta fue YES=true, remover al empleado y limpiar el formulario\n if(answer[0]){\n mEmpleado.remove();\n clear();\n }\n //si la respuesta es NO=false, no hacer nada\n }\n }\n );\n \n }",
"public static void eliminarRegistros(){\n int idEliminar = Integer.parseInt(JOptionPane.showInputDialog(\"Igrese el ID a Eliminar\"));\n pd.eliminaraPersonas(idEliminar);\n }",
"@FXML\r\n public void onDelete() {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Mensagem\");\r\n alert.setHeaderText(\"\");\r\n alert.setContentText(\"Deseja excluir?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK) {\r\n AlunoModel alunoModel = tabelaAluno.getItems().get(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n\r\n if (AlunoDAO.executeUpdates(alunoModel, AlunoDAO.DELETE)) {\r\n tabelaAluno.getItems().remove(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n alert(\"Excluido com sucesso!\");\r\n desabilitarCampos();\r\n } else {\r\n alert(\"Não foi possivel excluir\");\r\n }\r\n }\r\n }",
"private void btnDeleteActionPerformed(java.awt.event.ActionEvent evt) {\n String delete = TabelSiswa.getValueAt(baris, 1).toString();\n try{\n Statement stmt = koneksi.createStatement();\n String query = \"DELETE FROM pasien WHERE nis = '\" + delete + \"'\";\n int berhasil = stmt.executeUpdate(query);\n if(berhasil == 1){\n JOptionPane.showMessageDialog(null, \"Data berhasil dihapus\");\n dtm.getDataVector().removeAllElements();\n showData();\n showStok();\n }else{\n JOptionPane.showMessageDialog(null, \"Data gagal dihapus\");\n }\n }catch(SQLException ex){\n ex.printStackTrace();\n JOptionPane.showMessageDialog(null, \"Terjadi kesalahan\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n }",
"public void eliminarDatosEnEntidad(String entidad, ArrayList entidadencontrada)\r\n\t{\r\n\t\tif(entidad.equalsIgnoreCase(\"Rol\"))\r\n\t\t{\r\n\t\t\tRol encontrado = (Rol)entidadencontrada.get(0);\r\n\t\t\tint respuesta = JOptionPane.showConfirmDialog(this,\"Los datos seleccionados seran eliminados de forma permanente\"+\"\\n\"+\" ¿Desea eliminarlos definitivamente?\",\"Confirmacion para eliminar\",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t if (respuesta == JOptionPane.YES_OPTION){\r\n\t \ttry\r\n\t\t {\r\n\t\t Conector conector = new Conector();\r\n\t\t conector.iniciarConexionBaseDatos();\r\n\t\t RolBD.eliminar(encontrado.getIdrol(), conector);\r\n\t\t conector.terminarConexionBaseDatos();\r\n\t\t JOptionPane.showMessageDialog(this,\"Los datos seleccionados han sido eliminados.\",\"Elininar Datos\",JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t }\r\n\t\t catch (Exception e)\r\n\t\t\t\t{\r\n\t\t \tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t\t}\r\n\t }\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Prueba\"))\r\n\t\t{\r\n\t\t\tPrueba encontrado = (Prueba)entidadencontrada.get(0);\r\n\t\t\tint respuesta = JOptionPane.showConfirmDialog(this,\"Los datos seleccionados seran eliminados de forma permanente\"+\"\\n\"+\" ¿Desea eliminarlos definitivamente?\",\"Confirmacion para eliminar\",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t if (respuesta == JOptionPane.YES_OPTION){\r\n\t \tString nombrepru = encontrado.getNombre();\r\n\t \tif(nombrepru.equalsIgnoreCase(\"Vacante Exclusivo\") || nombrepru.equalsIgnoreCase(\"Vacante Multiple\") || nombrepru.equalsIgnoreCase(\"Prueba Libre\"))\r\n\t \t{\r\n\t \t\tJOptionPane.showMessageDialog(this,\"La prueba \"+nombrepru+\" no puede ser eliminada por ser parte importante de la base del conocimiento.\",\"Elininar Datos\",JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\ttry\r\n\t\t\t {\r\n\t\t\t Conector conector = new Conector();\r\n\t\t\t conector.iniciarConexionBaseDatos();\r\n\t\t\t PruebaBD.eliminar(encontrado.getIdprueba(), conector);\r\n\t\t\t conector.terminarConexionBaseDatos();\r\n\t\t\t JOptionPane.showMessageDialog(this,\"Los datos seleccionados han sido eliminados.\",\"Elininar Datos\",JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t\t }\r\n\t\t\t catch (Exception e)\r\n\t\t\t\t\t{\r\n\t\t\t \tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t\t\t}\r\n\t \t}\r\n\t }\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Pregunta\"))\r\n\t\t{\r\n\t\t\tPregunta encontrado = (Pregunta)entidadencontrada.get(0);\r\n\t\t\tint respuesta = JOptionPane.showConfirmDialog(this,\"Los datos seleccionados seran eliminados de forma permanente\"+\"\\n\"+\" ¿Desea eliminarlos definitivamente?\",\"Confirmacion para eliminar\",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t if (respuesta == JOptionPane.YES_OPTION){\r\n\t \ttry\r\n\t\t {\r\n\t\t Conector conector = new Conector();\r\n\t\t conector.iniciarConexionBaseDatos();\r\n\t\t PreguntaBD.eliminar(encontrado.getIdpregunta(), conector);\r\n\t\t conector.terminarConexionBaseDatos();\r\n\t\t JOptionPane.showMessageDialog(this,\"Los datos seleccionados han sido eliminados.\",\"Elininar Datos\",JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t }\r\n\t\t catch (Exception e)\r\n\t\t\t\t{\r\n\t\t \tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t\t}\r\n\t }\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Escala\"))\r\n\t\t{\r\n\t\t\tEscala encontrado = (Escala)entidadencontrada.get(0);\r\n\t\t\tint respuesta = JOptionPane.showConfirmDialog(this,\"Los datos seleccionados seran eliminados de forma permanente\"+\"\\n\"+\" ¿Desea eliminarlos definitivamente?\",\"Confirmacion para eliminar\",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t if (respuesta == JOptionPane.YES_OPTION){\r\n\t \ttry\r\n\t\t {\r\n\t\t Conector conector = new Conector();\r\n\t\t conector.iniciarConexionBaseDatos();\r\n\t\t EscalaBD.eliminar(encontrado.getIdescala(), conector);\r\n\t\t conector.terminarConexionBaseDatos();\r\n\t\t JOptionPane.showMessageDialog(this,\"Los datos seleccionados han sido eliminados.\",\"Elininar Datos\",JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t }\r\n\t\t catch (Exception e)\r\n\t\t\t\t{\r\n\t\t \tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t\t}\r\n\t }\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Competencia\"))\r\n\t\t{\r\n\t\t\tCompetencia encontrado = (Competencia)entidadencontrada.get(0);\r\n\t\t\tint respuesta = JOptionPane.showConfirmDialog(this,\"Los datos seleccionados seran eliminados de forma permanente\"+\"\\n\"+\" ¿Desea eliminarlos definitivamente?\",\"Confirmacion para eliminar\",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t if (respuesta == JOptionPane.YES_OPTION){\r\n\t \ttry\r\n\t\t {\r\n\t\t Conector conector = new Conector();\r\n\t\t conector.iniciarConexionBaseDatos();\r\n\t\t CompetenciaBD.eliminar(encontrado.getIdcompetencia(), conector);\r\n\t\t conector.terminarConexionBaseDatos();\r\n\t\t JOptionPane.showMessageDialog(this,\"Los datos seleccionados han sido eliminados.\",\"Elininar Datos\",JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/informacion.PNG\"));\r\n\t\t }\r\n\t\t catch (Exception e)\r\n\t\t\t\t{\r\n\t\t \tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/error.PNG\"));\r\n\t\t\t\t}\r\n\t }\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Caracteristica\"))\r\n\t\t{\r\n\t\t\tCaracteristica encontrado = (Caracteristica)entidadencontrada.get(0);\r\n\t\t\tint respuesta = JOptionPane.showConfirmDialog(this,\"Los datos seleccionados seran eliminados de forma permanente\"+\"\\n\"+\" ¿Desea eliminarlos definitivamente?\",\"Confirmacion para eliminar\",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t if (respuesta == JOptionPane.YES_OPTION){\r\n\t \ttry\r\n\t\t {\r\n\t\t Conector conector = new Conector();\r\n\t\t conector.iniciarConexionBaseDatos();\r\n\t\t CaracteristicaBD.eliminar(encontrado.getIdcaracteristica(), conector);\r\n\t\t conector.terminarConexionBaseDatos();\r\n\t\t JOptionPane.showMessageDialog(this,\"Los datos seleccionados han sido eliminados.\",\"Elininar Datos\",JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t }\r\n\t\t catch (Exception e)\r\n\t\t\t\t{\r\n\t\t \tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t\t}\r\n\t }\r\n\t\t}\r\n\t}",
"public void removeDialog(ArrayList<Order> listOrder) {\n\t\tJLabel rmLabelOrder = new JLabel(\"Order's id\");\n\t\trmLabelOrder.setSize(80,40);\n\t\trmLabelOrder.setLocation(100, 50);\n\t\tJTextField rmTextOrder = new JTextField();\n\t\trmTextOrder.setSize(250,40);\n\t\trmTextOrder.setLocation(250, 50);\n\t\tadd(rmLabelOrder);\n\t\tadd(rmTextOrder);\n\t\t\n\t\t// setup field Item for remove dialog\n\t\tJLabel rmLabelItem = new JLabel(\"Item's id\");\n\t\trmLabelItem.setSize(80,40);\n\t\trmLabelItem.setLocation(100, 120);\n\t\tJTextField rmTextItem = new JTextField();\n\t\trmTextItem.setSize(250,40);\n\t\trmTextItem.setLocation(250, 120);\n\t\tadd(rmLabelItem);\n\t\tadd(rmTextItem);\n\t\t\n\t\tokJButton.setSize(100,30);\n\t\tokJButton.setLocation(250,330);\n\t\tokJButton.setFocusPainted(false);\n\t\tadd(okJButton);\n\t\tokJButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\n\t\t\t\tif(rmLabelOrder.getText() == null || rmLabelItem == null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ban chua nhap thong tin\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tString strIdOrder = rmTextOrder.getText();\n\t\t\t\t\tString strIdItem = rmTextItem.getText();\n\t\t\t\t\tcheckTypeForRemove(strIdOrder, strIdItem);\n\t\t\t\t\t\n\t\t\t\t\tint idOrder = Integer.parseInt(rmTextOrder.getText());\n\t\t\t\t\tint idItem = Integer.parseInt(rmTextItem.getText());\n\t\t\t\t\t\n\t\t\t\t\tcheckIdOrderForRemove(idOrder, listOrder);\n\t\t\t\t\tcheckIdMediaForRemove(idItem, listOrder.get(idOrder -1));\n\t\t\t\t\t\n\t\t\t\t\tlistOrder.get(idOrder -1).removeMedia(idItem);\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Remove Item complete!\", \"Remove Item\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage(), \"Warning\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tsetVisible(true);\n\t}",
"private void remover() {\n int confirma = JOptionPane.showConfirmDialog(null, \"Tem certeza que deseja remover este cliente\", \"Atenção\", JOptionPane.YES_NO_OPTION);\n if (confirma == JOptionPane.YES_OPTION) {\n String sql = \"delete from empresa where id=?\";\n try {\n pst = conexao.prepareStatement(sql);\n pst.setString(1, txtEmpId.getText());\n int apagado = pst.executeUpdate();\n if (apagado > 0) {\n JOptionPane.showMessageDialog(null, \"Empresa removida com sucesso!\");\n txtEmpId.setText(null);\n txtEmpNome.setText(null);\n txtEmpTel.setText(null);\n txtEmpEmail.setText(null);\n txtEmpCNPJ.setText(null);\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }\n }",
"@Override\n\tpublic void checkBotonEliminar() {\n\n\t}",
"public void eliminarMateria() {\n ejbFacade.remove(materia);\n items = ejbFacade.findAll();\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.update(\"MateriaListForm:datalist\");\n requestContext.execute(\"PF('Confirmacion').hide()\");\n departamento = new Departamento();\n materia = new Materia();\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se eliminó con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n requestContext.update(\"MateriaListForm\");\n }",
"private boolean validarEntradaDeDados() {\n String errorMessage = \"\";\n\n if (txtFieldHistorico.getText() == null || txtFieldHistorico.getText().length() == 0) {\n errorMessage += \"Nome inválido!\\n\";\n }\n\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Mostrando a mensagem de erro\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erro no cadastro\");\n alert.setHeaderText(\"Campos inválidos, por favor, corrija...\");\n alert.setContentText(errorMessage);\n alert.show();\n return false;\n }\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n appViewModel.eliminarDireccion(userId, direccion.direccion, direccion.telefono);\n }",
"public void deletar() {\n if(Sessao.isConfirm()){\n Usuario use = new Usuario();\n use.setId(Sessao.getId());\n Delete_Banco del = new Delete_Banco();\n del.Excluir_Usuario(use);\n this.setVisible(false);\n Sessao.setId(0);\n tela_Principal prin = Sessao.getPrin();\n prin.atualizar_Tela();\n }\n }",
"@FXML\n\tvoid eliminarEmpleado(ActionEvent event) {\n\t\tif (gestionando.equals(\"Empleado\")) {\n\t\t\tif (txtCedula.getText().trim().equals(\"\")) {\n\t\t\t\tUtilidades.mostrarMensaje(\"Alerta\", \"Por favor ingrese la cedula del empleado a eliminar\");\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tif (administradorDelegado.eliminarEmpleado(txtCedula.getText().trim())) {\n\t\t\t\t\t\tUtilidades.mostrarMensaje(\"Exito\", \"Se ha eliminado el empleado exitosamente\");\n\t\t\t\t\t\tllenarTabla();\n\t\t\t\t\t\tvaciarCampos();\n\t\t\t\t\t}\n\t\t\t\t} catch (PersonaNoRegistradaException | TipoClaseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tUtilidades.mostrarMensaje(e.getMessage(), e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else if (gestionando.equals(\"Recolector\")) {\n\t\t\tif (txtCedula.getText().trim().equals(\"\")) {\n\t\t\t\tUtilidades.mostrarMensaje(\"Alerta\", \"Por favor ingrese la cedula del recolector a eliminar\");\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tif (administradorDelegado.eliminarRecolector(txtCedula.getText().trim())) {\n\t\t\t\t\t\tUtilidades.mostrarMensaje(\"Exito\", \"Se ha eliminado al recolector exitosamente\");\n\t\t\t\t\t\tllenarTabla();\n\t\t\t\t\t\tvaciarCampos();\n\t\t\t\t\t}\n\t\t\t\t} catch (PersonaNoRegistradaException | TipoClaseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tUtilidades.mostrarMensaje(e.getMessage(), e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void eliminar() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n clientefacadelocal.remove(userFound);\n FacesContext fc = FacesContext.getCurrentInstance();\n fc.getExternalContext().redirect(\"../index.xhtml\");\n System.out.println(\"Usuario Eliminado\");\n } else {\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n System.out.println(\"Error al eliminar el cliente \" + e);\n }\n }",
"public static void mostrarErrorDeEliminacion(JDialog dialogo) {\n JOptionPane.showMessageDialog(dialogo, errorDeEliminacion, \"BancoSoft: Error\", JOptionPane.ERROR_MESSAGE);\n }",
"public void deleteDialog(){\n AlertDialog ad = new AlertDialog.Builder(this).create();\n ad.setMessage(getString(R.string.del_message));\n ad.setButton(getString(R.string.del_btnPos),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n deleteTaleFromStorage();\n }\n });\n ad.setButton2(getResources().getString(R.string.del_btnNeg),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n ad.setCancelable(true);\n ad.show();\n }",
"@Override\r\n\tprotected boolean beforeDelete() {\r\n\t\t\r\n\t\tString valida = DB.getSQLValueString(null,\"SELECT DocStatus FROM C_Hes WHERE C_Hes_ID=\" + getC_Hes_ID());\r\n if (!valida.contains(\"DR\")){\r\n \t\r\n \tthrow new AdempiereException(\"No se puede Eliminar este documento por motivos de Auditoria\");\r\n\r\n }\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"public void eliminarConjunto(){\n\t\tfinal ArrayList<Integer> mSelectedItems = new ArrayList<>(); //indices de val[]\n\t\tfinal String[] val = new String[values.size()]; //arreglo donde guardamos los valores de values\n\t\tfor(int i=0; i<values.size(); i++){\n\t\t\tval[i] = values.get(i); //inicializamos el arreglo\n\t\t}\n\t AlertDialog.Builder builder = new AlertDialog.Builder(Postre.this);\n builder.setCancelable(false);\n\t builder.setTitle(\"Eliminar\")\n\t .setMultiChoiceItems(val, null,\n\t new DialogInterface.OnMultiChoiceClickListener() {\n\t @Override\n\t public void onClick(DialogInterface dialog, int which,\n\t boolean isChecked) {\n\t if (isChecked) {\n\t // If the user checked the item, add it to the selected items\n\t mSelectedItems.add(which);\n\t } else if (mSelectedItems.contains(which)) {\n\t // Else, if the item is already in the array, remove it \n\t mSelectedItems.remove(Integer.valueOf(which));\n\t }\n\t }\n\t })\n\t // Set the action buttons\n\t .setPositiveButton(\"Aceptar\", new DialogInterface.OnClickListener() {\n\t @Override\n\t public void onClick(DialogInterface dialog, int id) {\n\t \t SQLiteDatabase db = bbdd.getWritableDatabase();\n\t for(int i=0; i<mSelectedItems.size(); i++){\n\t \t values.remove(val[mSelectedItems.get(i)]);\n\t \t \n\t \t db.execSQL(\"DELETE FROM postre WHERE nombre='\"+val[mSelectedItems.get(i)]+\"';\");\n\n\t }\n\t db.close(); \n\t adapter1.notifyDataSetChanged(); \n\t \n\t }\n\t })\n\t .setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n\t @Override\n\t public void onClick(DialogInterface dialog, int id) {\n\t \n\t }\n\t });\n\t builder.show();\t\t\n\t}",
"public void deleteDAmtInvoValidAmount()\r\n {\r\n this._has_dAmtInvoValidAmount= false;\r\n }",
"protected boolean afterDelete() {\n if (!DOCSTATUS_Drafted.equals(getDocStatus())) {\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 //C_AllocationLine\n String sql = \"DELETE FROM C_AllocationLine \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_PaymentAllocate\n sql = \"DELETE FROM C_PaymentAllocate \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_VALORPAGO\n sql = \"DELETE FROM C_VALORPAGO \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_PAYMENTVALORES\n sql = \"DELETE FROM C_PAYMENTVALORES \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_PAYMENTRET\n sql = \"DELETE FROM C_PAYMENTRET \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n return true;\n\n }",
"public boolean RemoveSport(Sport sport){\n\n boolean noError = true;\n\n\n\n try {\n ConnectDB();\n\n\n preparedStatement=connection.prepareStatement(\"SELECT t_clubs.FK_Sport FROM t_clubs WHERE t_clubs.FK_Sport=?\");\n preparedStatement.setInt(1, sport.getPk_sport());\n result = preparedStatement.executeQuery();\n\n if(result.next()) {\n JOptionPane pane = new JOptionPane(\"le sport est affilié a un club impossible de le supprimer\", JOptionPane.ERROR_MESSAGE);\n JDialog dialog = pane.createDialog(null,\"error\");\n dialog.setAlwaysOnTop(true);\n dialog.setVisible(true);\n dialog.dispose();\n\n }else{\n\n preparedStatement = connection.prepareStatement(\"Delete FROM `t_sports` WHERE `PK_Sport`= ? \");\n preparedStatement.setInt(1, sport.getPk_sport());\n preparedStatement.executeUpdate();}\n\n\n } catch (SQLException e) {\n e.printStackTrace();\n noError = false;\n } finally {\n CloseDB();\n }\n\n\n\n\n\n\n return noError;\n }",
"public void eliminar(){\n conexion = base.GetConnection();\n try{\n PreparedStatement borrar = conexion.prepareStatement(\"DELETE from usuarios where Cedula='\"+this.Cedula+\"'\" );\n \n borrar.executeUpdate();\n // JOptionPane.showMessageDialog(null,\"borrado\");\n }catch(SQLException ex){\n System.err.println(\"Ocurrió un error al borrar: \"+ex.getMessage());\n \n }\n }",
"private void jBGuardarActionPerformed(java.awt.event.ActionEvent evt) {\n if(tNombre.getText().isEmpty()){\n JOptionPane.showMessageDialog(this, \"Favor ingresar el Nombre\");\n return;\n }\n if(tDireccion.getText().isEmpty()){\n JOptionPane.showMessageDialog(this, \"Favor ingresar la Direccion\");\n return;\n }\n if(tTelefono.getText().isEmpty()){\n JOptionPane.showMessageDialog(this, \"Favor ingresar el Telefono\");\n return;\n }\n if(tCedula.getText().isEmpty()){\n JOptionPane.showMessageDialog(this, \"Favor ingresar la Cedula\");\n return;\n }\n else if(!CedulaIsValid(tCedula.getText()))\n {\n JOptionPane.showMessageDialog(this, \"Favor ingresar una Cedula Valida\");\n return;\n }\n if(validarIntegerTexto(jFSueldo) <= 0){\n JOptionPane.showMessageDialog(this, \"Favor ingresar un sueldo mayor que cero\");\n return;\n \n }\n \n setEmpleado();\n if(dbe.setInsertarEmpleado(e) > 0)\n JOptionPane.showMessageDialog(this, \"El Empleado ha sido Insrtado Correctamente\");;\n \n return;\n }",
"@Override\n\t\tpublic void eliminar() {\n\t\t\tutilitario.getTablaisFocus().eliminar();\n\t\t}",
"public boolean validarForm() throws Exception {\r\n\r\n tbxNro_identificacion\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n lbxNro_ingreso.setStyle(\"background-color:white\");\r\n tbxCodigo_prestador\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n tbxCodigo_diagnostico_principal\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n tbxCausa_muerte\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n lbxEstado_salida.setStyle(\"background-color:white\");\r\n dtbxFecha_ingreso.setStyle(\"background-color:white\");\r\n\r\n Admision admision = ((Admision) lbxNro_ingreso.getSelectedItem()\r\n .getValue());\r\n\r\n boolean valida = true;\r\n\r\n String mensaje = \"Los campos marcados con (*) son obligatorios\";\r\n\r\n if (tbxNro_identificacion.getText().trim().equals(\"\")) {\r\n tbxNro_identificacion\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n if (tbxCodigo_prestador.getText().trim().equals(\"\")) {\r\n tbxCodigo_prestador\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n if (admision == null) {\r\n lbxNro_ingreso.setStyle(\"background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n if (tbxCodigo_diagnostico_principal.getText().trim().equals(\"\")) {\r\n tbxCodigo_diagnostico_principal\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n\r\n if (lbxCausa_externa.getSelectedIndex() == 0) {\r\n lbxCausa_externa\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n\r\n if (valida) {\r\n if (lbxEstado_salida.getSelectedItem().getValue().equals(\"2\")\r\n && tbxCausa_muerte.getText().trim().equals(\"\")) {\r\n tbxCausa_muerte\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n mensaje = \"Usted selecciono el estado de la salida como muerto(a) \\npor lo tanto debe seleccionar la causa de muerte\";\r\n valida = false;\r\n }\r\n }\r\n\r\n if (valida) {\r\n if (!lbxEstado_salida.getSelectedItem().getValue().equals(\"2\")\r\n && !tbxCausa_muerte.getText().trim().equals(\"\")) {\r\n lbxEstado_salida.setStyle(\"background-color:#F6BBBE\");\r\n mensaje = \"Usted selecciono una casua de muerte \\npor lo tanto debe seleccionar el estado a la salida como muerto (a)\";\r\n valida = false;\r\n }\r\n }\r\n\r\n if (valida) {\r\n if (dtbxFecha_ingreso.getValue().compareTo(\r\n dtbxFecha_egreso.getValue()) > 0) {\r\n dtbxFecha_ingreso.setStyle(\"background-color:#F6BBBE\");\r\n mensaje = \"La fecha de ingreso no puede ser mayor a la fecha de egreso\";\r\n valida = false;\r\n }\r\n }\r\n\r\n if (!valida) {\r\n Messagebox.show(mensaje,\r\n usuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n Messagebox.EXCLAMATION);\r\n }\r\n\r\n return valida;\r\n }",
"public boolean isEliminable(VOUsuario us) {\n return true;\n }",
"private boolean validarEntradaDeDados() {\n\t\tString errorMessage = \"\";\n\n\t\tif (textFieldProdutoNome.getText() == null || textFieldProdutoNome.getText().length() == 0) {\n\t\t\terrorMessage += \"Nome invalido!\\n\";\n\t\t}\n\t\tif (textFieldProdutoPreco.getText() == null || textFieldProdutoPreco.getText().length() == 0) {\n\t\t\terrorMessage += \"Preço invalido!\\n\";\n\t\t}\n\t\tif (textFieldProdutoQuantidade.getText() == null || textFieldProdutoQuantidade.getText().length() == 0) {\n\t\t\terrorMessage += \"Quantidade invalido!\\n\";\n\t\t}\n\t\tif (comboBoxProdutoCategoria.getSelectionModel().getSelectedItem() == null) {\n\t\t\terrorMessage += \"Categoria invalido!\\n\";\n\t\t}\n\t\tif (errorMessage.length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\n\t\t\t/** Mostrar a mensagem de erro. */\n\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\n\t\t\talert.setTitle(\"Erro no registo\");\n\t\t\talert.setHeaderText(\"Campos invalidos, corrija...\");\n\t\t\talert.setContentText(errorMessage);\n\t\t\talert.show();\n\t\t\treturn false;\n\t\t}\n\t}",
"public String eliminarCliente(){\r\n //leyendo el parametro enviador desde la vista\r\n String identificador = JsfUtil.getRequest().getParameter(\"idCliente\");\r\n if(modelo.eliminarCliente(identificador)>0){\r\n JsfUtil.setFlashMessage(\"exito\", \"El cliente ha sido eliminado\");\r\n }//fin if\r\n else{\r\n JsfUtil.setErrorMessage(null, \"Lo sentimos, no se pudo borrar el registro\");\r\n }//fin else\r\n return \"listacli?faces-redirect=true\";\r\n }",
"void deleteDialog(){\r\n\t\tString title = getString(R.string.confirm);\r\n\t\tString message = getString(R.string.delete_message);\r\n\t\tString positive = getString(R.string.delete); \r\n\t\tString negative = getString(R.string.cancel);\r\n\t\t\r\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\t \r\n \t// set the dialog title\r\n\t builder.setTitle(title);\r\n\t // set the dialog message\r\n\t builder.setMessage(message);\r\n\t\t\r\n\t // set positive button\r\n\t builder.setPositiveButton(positive, new DialogInterface.OnClickListener() {\r\n\t @Override\r\n\t public void onClick(DialogInterface dialog, int id) {\r\n\t \t\r\n\t \t// delete data from database if delete button clicked\r\n\t \tHomeActivity.dbPrograms.deleteData(ProgramID);\r\n\t \tToast.makeText(DetailProgramActivity.this, getString(R.string.success_delete), Toast.LENGTH_SHORT).show();\r\n\t \tgetSupportFragmentManager()\r\n\t\t\t\t.beginTransaction().\r\n\t\t\t\tremove(HomeActivity.programListFrag)\r\n\t\t\t\t.commit();\r\n\t \tfinish();\r\n\t }\r\n\t });\r\n\t \r\n\t // set negative button\r\n\t builder.setNegativeButton(negative, new DialogInterface.OnClickListener() {\r\n\t @Override\r\n\t public void onClick(DialogInterface dialog, int id) {\r\n\t \t// close dialog if cancel button clicked\r\n\t \tdialog.dismiss();\r\n\t }\r\n\t });\r\n\r\n\t // show dialog\r\n\t\tAlertDialog alert = builder.create();\r\n\t\talert.show();\r\n\t}",
"public void SoldierCheckChoice(View view){\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n alertDialogBuilder.setMessage(\"Are you sure , You want to remove the soldier and his arrangements?\");\n alertDialogBuilder.setPositiveButton(\"yes\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n userToDelete = delUserName.getText().toString();\n if (ifHasArrangement(userToDelete))\n {\n deleteSoldierArrangement(userToDelete);\n }\n DeleteData(userToDelete);\n }\n });\n\n alertDialogBuilder.setNegativeButton(\"No\",new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(ListDataActivity.this,\"You cancelled the Soldier delete!\",Toast.LENGTH_LONG).show();\n }\n });\n\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }",
"Form clearValidation();",
"private void btnRemoverActionPerformed(java.awt.event.ActionEvent evt) {\n\n if (tblSecoes.getSelectedRow() >= 0){\n\n if (JOptionPane.showConfirmDialog(RootPane, \"Deseja Remover esta Seção?\") == 0){\n Secao secaoselect = (Secao) tblSecoes.getValueAt(tblSecoes.getSelectedRow(), 0);\n\n if (secoes.contains(secaoselect)){\n secoes.remove(secaoselect);\n secoesapagar.add(secaoselect);\n }\n\n JOptionPane.showMessageDialog(RootPane, \"Seção Removida com Sucesso!\");\n adicionasecaotable();\n }\n } else {\n JOptionPane.showMessageDialog(RootPane, \"Selecione uma Seção Por Favor!\");\n }\n }",
"@Override\n\tpublic boolean eliminaDipendente() {\n\t\treturn false;\n\t}",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n new AgendamentoDAO(MainActivity.this).delete(agendamentos.get(position));\n\n // Remover o item da lista de agendamentos que está em memória\n agendamentos.remove(position);\n\n // Atualizar lista\n adapter.notifyItemRemoved(position);\n\n // Avisar o usuário\n Toast.makeText(MainActivity.this, R.string.agendamento_excluido, Toast.LENGTH_LONG).show();\n }",
"private void DeleteRecord() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Enter Roll no of Student to Delete\");\n final EditText input = new EditText(this);\n input.setInputType(InputType.TYPE_CLASS_TEXT);\n builder.setView(input);\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n String mrollno=String.valueOf(input.getText());\n Toast.makeText(getApplicationContext(),\"Ciev\", Toast.LENGTH_LONG).show();\n dbInstance.execSQL(\"DELETE FROM studentWHERE rollno='\"+mrollno+\"'\");\n Toast.makeText(getApplicationContext(),\"Record is Deleted\", Toast.LENGTH_LONG).show();\n\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n builder.show();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel7 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jtNombre = new javax.swing.JTextField();\n jtDNI = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jtDomicilio = new javax.swing.JTextField();\n jtCiudad = new javax.swing.JTextField();\n jbBuscar = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jtTelefono = new javax.swing.JTextField();\n jbAceptar = new javax.swing.JButton();\n jCheckBox1 = new javax.swing.JCheckBox();\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Eliminar\");\n\n jLabel7.setFont(new java.awt.Font(\"Dialog\", 0, 12)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 0, 0));\n jLabel7.setText(\"Ingrese el numero de DNI del cliente que desea eliminar\");\n\n jLabel1.setText(\"Nombre Completo\");\n\n jtNombre.setEditable(false);\n jtNombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jtNombreActionPerformed(evt);\n }\n });\n\n jtDNI.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jtDNIActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"DNI\");\n\n jLabel6.setText(\"Ciudad\");\n\n jLabel5.setText(\"Domicilio\");\n\n jtDomicilio.setEditable(false);\n jtDomicilio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jtDomicilioActionPerformed(evt);\n }\n });\n\n jtCiudad.setEditable(false);\n jtCiudad.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jtCiudadActionPerformed(evt);\n }\n });\n\n jbBuscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icons/reclutamiento.png\"))); // NOI18N\n jbBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbBuscarActionPerformed(evt);\n }\n });\n\n jLabel4.setText(\"Numero de Telefono\");\n\n jtTelefono.setEditable(false);\n jtTelefono.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jtTelefonoActionPerformed(evt);\n }\n });\n\n jbAceptar.setText(\"ACEPTAR\");\n jbAceptar.setToolTipText(\"\");\n jbAceptar.setEnabled(false);\n jbAceptar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbAceptarActionPerformed(evt);\n }\n });\n\n jCheckBox1.setText(\"Tilde esta casilla para eliminar el cliente.\");\n jCheckBox1.setEnabled(false);\n jCheckBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addComponent(jLabel7))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jtTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jtDNI, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jbBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(84, 84, 84)\n .addComponent(jtCiudad, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jtDomicilio, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addComponent(jCheckBox1))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(134, 134, 134)\n .addComponent(jbAceptar, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(14, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addComponent(jbBuscar))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jtDNI, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jtCiudad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jtDomicilio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jtTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jbAceptar)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n pack();\n }",
"public boolean validarForm() throws Exception {\r\n\r\n\t\ttbxIdentificacion\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxTipo_disnostico\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\r\n\t\tString mensaje = \"Los campos marcados con (*) son obligatorios\";\r\n\r\n\t\tboolean valida = true;\r\n\r\n\t\tif (tbxIdentificacion.getText().trim().equals(\"\")) {\r\n\t\t\ttbxIdentificacion\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (lbxTipo_disnostico.getSelectedIndex() == 0) {\r\n\t\t\tlbxTipo_disnostico\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!lbxFinalidad_cons.getSelectedItem().getValue().toString()\r\n\t\t\t\t.equalsIgnoreCase(\"10\")\r\n\t\t\t\t&& lbxCodigo_consulta_pyp.getSelectedIndex() == 0) {\r\n\t\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (tbxTipo_principal.getText().trim().equals(\"\")) {\r\n\t\t\tmensaje = \"Debe digitar la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t} else if (vaidarIgualdad(tbxTipo_principal.getText(),\r\n\t\t\t\ttbxTipo_relacionado_1.getText(),\r\n\t\t\t\ttbxTipo_relacionado_2.getText(),\r\n\t\t\t\ttbxTipo_relacionado_3.getText())) {\r\n\t\t\tmensaje = \"no se puede repetir la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!valida) {\r\n\t\t\tMessagebox.show(mensaje,\r\n\t\t\t\t\tusuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n\t\t\t\t\tMessagebox.EXCLAMATION);\r\n\t\t}\r\n\r\n\t\treturn valida;\r\n\t}",
"public void onClick(DialogInterface dialog, int id) {\n Toast.makeText(getActivity(), \"Eliminacion cancelada \", Toast.LENGTH_SHORT).show();\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t@Command\n\tpublic void eliminar(@BindingParam(\"documento\") TipoDocumento documentoSeleccionada){\n\n\t\tif (documentoSeleccionada == null) {\n\t\t\tClients.showNotification(\"Seleccione una opción de la lista.\");\n\t\t\treturn; \n\t\t}\n\n\t\tMessagebox.show(\"Desea eliminar el registro seleccionado?\", \"Confirmación de Eliminación\", Messagebox.YES | Messagebox.NO, Messagebox.QUESTION, new EventListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\tif (event.getName().equals(\"onYes\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().begin();\n\t\t\t\t\t\tdocumentoSeleccionada.setEstado(\"I\");\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().merge(documentoSeleccionada);\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().commit();;\n\t\t\t\t\t\t// Actualiza la lista\n\t\t\t\t\t\t//BindUtils.postGlobalCommand(null, null, \"Categoria.buscarPorPatron\", null);\n\t\t\t\t\t\tbuscar();\n\t\t\t\t\t\tClients.showNotification(\"Transaccion ejecutada con exito.\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().rollback();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\t\n\t}",
"@Override\n public void onClick(View v) {\n AlertDialog dialogo = new AlertDialog\n .Builder(ModificarStockIngredienteActivity.this)\n .setPositiveButton(\"Sí, eliminar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ingreDAO.erase(ingrediente);\n onBackPressed();\n }\n })\n .setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n })\n .setTitle(\"Confirmar\")\n .setMessage(\"Seguro que deseas eliminar ?\")\n .create();\n dialogo.show();\n\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n jTextField1 = new javax.swing.JTextField();\n jButton3 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Eliminar Incidencies\");\n setResizable(false);\n addWindowFocusListener(new java.awt.event.WindowFocusListener() {\n public void windowGainedFocus(java.awt.event.WindowEvent evt) {\n formWindowGainedFocus(evt);\n }\n public void windowLostFocus(java.awt.event.WindowEvent evt) {\n }\n });\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"ID\", \"Titol\", \"Descripcio\", \"Zona\", \"User\", \"Data\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane1.setViewportView(jTable1);\n\n jLabel1.setText(\"Segur que vols eliminar?\");\n\n jButton4.setText(\"Sí\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Cercar\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Eliminar\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Enrere\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(90, 90, 90)\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1)\n .addGap(18, 18, 18)))\n .addGap(16, 16, 16))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 12, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jButton4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2)\n .addComponent(jButton1))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton3)\n .addContainerGap())))\n );\n\n pack();\n }",
"public void eliminaBD() {\r\n CBD.openConexion();\r\n //------Reune los datos de producto con id--------------//\r\n String A = CBD.getInveID(II.lblid.getText());\r\n String B[] = A.split(\",\");\r\n //------Reune los datos de producto con id--------------//\r\n //------Verifica si la cantidad es 0--------------//\r\n if (Integer.parseInt(B[5]) == 0) {\r\n //------Elimina--------------//\r\n if(CBD.deleteDBProd(\"[ID PRODUCTO]\", B[7])){\r\n JOptionPane.showMessageDialog(II, \"Producto eliminado\");\r\n }else{\r\n JOptionPane.showMessageDialog(II, \"Error producto no pudo ser eliminado\");\r\n }\r\n //------Elimina--------------//\r\n } else {\r\n JOptionPane.showMessageDialog(II, \"No puedes eliminar un producto si su existencia es mayor a 0\");\r\n }\r\n CBD.closeConexion();\r\n }",
"public void eliminarLista(){\n //se define la lista seleccionada y se elimina\n ListaCompras listaSeleccionada = ListasComprasTabla.getSelectionModel().getSelectedItem();\n if (listaSeleccionada!=null) {\n ListasComprasTabla.getItems().remove(listaSeleccionada);\n }else {\n System.out.println(\"No hay lista seleccionada\");\n }\n }",
"public void onClick(DialogInterface dialog, int id) {\n realm.beginTransaction();\n RealmResults <Model_reservarSalas> excluirAgendamento = realm.where(Model_reservarSalas.class)\n .equalTo(\"FkSalas_letraBloco\",buscarSalasReservadas.get(position).getFkSalas_letraBloco())\n .equalTo(\"FkSala_numSala\",buscarSalasReservadas.get(position).getFkSala_numSala())\n .equalTo(\"data\",buscarSalasReservadas.get(position).getData())\n .equalTo(\"turno\",buscarSalasReservadas.get(position).getTurno())\n .findAll();\n excluirAgendamento.deleteAllFromRealm();\n realm.commitTransaction();\n onResume();\n Toast.makeText(getContext(), \"Agendamento deletado com sucesso.\", Toast.LENGTH_SHORT).show();\n }",
"private void toDelete() {\n if(toCount()==0)\n {\n JOptionPane.showMessageDialog(rootPane,\"No paint detail has been currently added\");\n }\n else\n {\n String[] choices={\"Delete First Row\",\"Delete Last Row\",\"Delete With Index\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"How would you like to delete data?\", \"Delete Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n jtModel.removeRow(toCount()-toCount());\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted first row\");\n }\n else if(option==1)\n {\n jtModel.removeRow(toCount()-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted last row\");\n }\n else if(option==2)\n {\n toDeletIndex();\n }\n else\n {\n \n }\n }\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n String nama = String.valueOf(cbbNama.getSelectedItem());\n String pilihan2 = String.valueOf(cbbPilihan2.getSelectedItem());\n //dapetin nama nama table\n LinkedList<String> arrTable = DataAksesAdmin.listTable();\n //linked list buat nampung yg mau dihapus\n LinkedList<String> forDelete = new LinkedList<>();\n //pindahin ke array kalo ada namanya\n for(int i = 0; i < arrTable.size(); i++){\n for(int j = 1; j < 15; j++){\n if(arrTable.get(i).equals(nama+j)){\n forDelete.add(arrTable.get(i));\n }\n }\n }\n DataAksesAdmin.delUser(nama, pilihan2, forDelete);\n JOptionPane.showMessageDialog(null, \"Data Berhasil Dihapus!\");\n }",
"public void exibeDataNascimentoInvalida() {\n JOptionPane.showMessageDialog(\n null,\n Constantes.GERENCIAR_FUNCIONARIO_DATA_NASCIMENTO_INVALIDA,\n Constantes.GERENCIAR_FUNCIONARIO_TITULO,\n JOptionPane.PLAIN_MESSAGE\n );\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(cbElPuesto.getSelectedIndex()!=0) {\n\t\t\t\t\tString eliminar=((String) cbElPuesto.getSelectedItem());\n\t\t\t\t\tSystem.out.println(eliminar);\n\t\t\t\t\tdata.setQuery(\"DELETE FROM TipoPuesto WHERE puesto='\"+eliminar+\"'\");\n\t\t\t\t\tcbElPuesto.removeAllItems();\n\t\t\t\t\tcbEdPuesto.removeAllItems();\n\t\t\t\t\tcbElPuesto.addItem(\"Seleccione un hospital...\");\n\t\t\t\t\tcbEdPuesto.addItem(\"Seleccione un hospital...\");\n\t\t\t\t\tJOptionPane.showMessageDialog(btnEliminar,\"Eliminación exitosa\");\n\t\t\t\t\tregistros=(ResultSet) data.getQuery(\"Select * from TipoPuesto\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\twhile(registros.next()) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcbElPuesto.addItem(registros.getString(\"puesto\"));\n\t\t\t\t\t\t\tcbEdPuesto.addItem(registros.getString(\"puesto\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t}",
"private void addConfirmDialog() {\n builder = UIUtil.getConfirmDialog(getContext(),\"You are about to delete data for this payment. proceed ?\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n boolean isDeleted = mydb.deletePayment(paymentId);\n if(isDeleted) {\n Bundle bundle = new Bundle();\n bundle.putString(\"orderId\", String.valueOf(orderId));\n FragmentViewPayments mfragment = new FragmentViewPayments();\n UIUtil.refreshFragment(mfragment,bundle, getFragmentManager());\n } else {\n Toast.makeText(getContext(),\"Error deleting data!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"private void jButtonDeleteTupleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeleteTupleActionPerformed\n // TODO add your handling code here:\n try {\n\n ActivityTypeTable at = new ActivityTypeTable(jTextFieldActivityType.getText());\n dm.deleteActivity(at);\n\n if (jTextFieldActivityType.getText().equals(\"\")) {\n JOptionPane optionPane = new JOptionPane(\"Must include Activity Name\", JOptionPane.ERROR_MESSAGE);\n JDialog dialog = optionPane.createDialog(\"Activity Name Error\");\n dialog.setAlwaysOnTop(true);\n dialog.setVisible(true);\n } else {\n JOptionPane.showMessageDialog(null, \"If the Row of Activity Name EXIST it will be Deleted\");\n }\n\n } catch (SQLException | HeadlessException ex) {\n System.out.println(ex.getMessage());\n JOptionPane.showMessageDialog(new JFrame(), ex.getMessage(), \"An SQL Exception was thrown:\", JOptionPane.ERROR_MESSAGE);\n }\n }",
"public boolean eliminarproducto(ProductoDTO c) {\r\n \r\n try {\r\n PreparedStatement ps;\r\n ps = conn.getConn().prepareStatement(SQL_DELETE);\r\n ps.setInt(1, c.getId());\r\n\r\n if (ps.executeUpdate() > 0) {\r\n\r\n JOptionPane.showMessageDialog(null, \"Prudcto eliminado exitosamente\");\r\n return true;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProductoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n conn.cerrarconexion();\r\n }\r\n JOptionPane.showMessageDialog(null, \"No se ha podido registrar\");\r\n return false;\r\n\r\n }",
"private void excluirAction() {\r\n Integer i = daoPedido.excluir(this.pedidoVO);\r\n\r\n if (i != null && i > 0) {\r\n msg = activity.getString(R.string.SUCCESS_excluido, pedidoVO.toString());\r\n Toast.makeText(activity, msg + \"(\" + i + \")\", Toast.LENGTH_SHORT).show();\r\n Log.i(\"DB_INFO\", \"Sucesso ao Alterar: \" + this.pedidoVO.toString());\r\n\r\n// this.adapter.remove(this.pedidoVO);\r\n this.refreshData(2);\r\n } else {\r\n msg = activity.getString(R.string.ERROR_excluir, pedidoVO.toString());\r\n Toast.makeText(activity, msg, Toast.LENGTH_SHORT).show();\r\n Log.e(\"DB_INFO\", \"Erro ao Excluir: \" + this.pedidoVO.toString());\r\n }\r\n }",
"private void deleteDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.warmhint));\n\t\tbuilder.setMessage(getString(R.string.changequestion2));\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdeleteAllTag();\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\tgetString(R.string.successdelete),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}",
"public void eliminarDatos(EstructuraContratosDatDTO estructuraNominaSelect) {\n\t\t\n\t}",
"@Override\r\n\tpublic void validateDelete() throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}",
"@Override\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino el usuario de la bd\");\n\t}",
"@Override\n public boolean eliminar(ModelCliente cliente) {\n strSql = \"DELETE CLIENTE WHERE ID_CLIENTE = \" + cliente.getIdCliente();\n \n \n try {\n //se abre una conexión hacia la BD\n conexion.open();\n //Se ejecuta la instrucción y retorna si la ejecución fue satisfactoria\n respuesta = conexion.executeSql(strSql);\n //Se cierra la conexión hacia la BD\n conexion.close();\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DaoCliente.class.getName()).log(Level.SEVERE, null, ex); \n return false;\n } catch(Exception ex){\n Logger.getLogger(DaoCliente.class.getName()).log(Level.SEVERE, null, ex); \n }\n return respuesta;\n }",
"@Override\n\tpublic MensajeBean elimina(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.elimina(nuevo);\n\t}",
"public void showDeleteConfirmationAlertDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n //builder.setTitle(\"AlertDialog\");\n builder.setMessage(R.string.income_deletion_confirmation);\n\n // add the buttons\n builder.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n if (mIncome.getReceiptPic() != null) {\n if (!mIncome.getReceiptPic().equals(\"\")) {\n new File(mIncome.getReceiptPic()).delete();\n }\n }\n mDatabaseHandler.setPaymentLogEntryInactive(mIncome);\n //IncomeListFragment.incomeListAdapterNeedsRefreshed = true;\n setResult(MainActivity.RESULT_DATA_WAS_MODIFIED);\n IncomeViewActivity.this.finish();\n }\n });\n builder.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n }\n });\n\n // create and show the alert mDialog\n mDialog = builder.create();\n mDialog.show();\n }",
"@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}",
"public void actionPerformed(ActionEvent ae) {\r\n int i = JOptionPane.showConfirmDialog(II, \"¿Seguro quiere eliminar esta cantidad de productos?\");\r\n if (i == 0) {\r\n eliminaBD();\r\n }\r\n }",
"private boolean controlarDatos() {\n\t\t\n\t\tif(textNombre.getText().equals(\"\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"El nombre no debe estar vacio\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t\t\n\t}",
"public void eliminarMensaje(InfoMensaje m) throws Exception;",
"public void elimina(DTOAcreditacionGafetes acreGafete) throws Exception;",
"@FXML\n\tpublic void handleExcluir(MouseEvent event) {\n\t\tif(colNome.getCellData(jtvIngredienteTable.getSelectionModel().getSelectedIndex()) != null){\n\t\t\tingredienteService = new IngredienteService();\n\t\t\tIngrediente ingrediente = jtvIngredienteTable.getSelectionModel().getSelectedItem();\n\t\t\tingredienteService.delete(ingrediente.getId());\n\t\t\tatualizarTable();\n\t\t}else{\n\t\t\tScreenUtils.janelaInformação(spDialog, Internationalization.getMessage(\"header_erro3\"), Internationalization.getMessage(\"item_nao_selecionado\"), Internationalization.getMessage(\"erro_button2\"));\n//\t\t\tScreenUtils.janelaInformação(spDialog, \"Ops\", \"Por favor, selecione um item.\", \"Sem problemas\");\n\t\t}\n\t}",
"private void DeletebuttonActionPerformed(ActionEvent e) {\n int row = userTable.getSelectedRow();\n\n if (row == -1) {\n JOptionPane.showMessageDialog(ListUserForm.this, \"Vui lòng chọn user\", \"lỗi\", JOptionPane.ERROR_MESSAGE);\n } else {\n int confirm = JOptionPane.showConfirmDialog(ListUserForm.this, \"Bạn có chắc chắn xoá?\");\n\n if (confirm == JOptionPane.YES_OPTION) {\n\n int userid = Integer.parseInt(String.valueOf(userTable.getValueAt(row, 0)));\n\n userService.deleteUser(userid);\n\n defaultTableModel.setRowCount(0);\n setData(userService.getAllUsers());\n }\n }\n }",
"public void verValidarCandidato()\r\n\t{\r\n\t\tcandidato = new ValidarCandidato(this);\r\n\t\tcandidato.setVisible(true);\r\n\t}",
"public boolean eliminar(){\n\t\tString query = \"DELETE FROM Almacen WHERE Id_Producto = \"+this.getId();\n\t\tif(updateQuery(query)){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public void deletePerson(){\r\n\r\n\t/*get values from text fields*/\r\n\tname = tfName.getText();\r\n\r\n\tif(name.equals(\"\"))\r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null,\"Please enter person name to delete.\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\t/*remove Person of the given name*/\r\n\t\tint no = pDAO.removePerson(name);\r\n\t\tJOptionPane.showMessageDialog(null, no + \" Record(s) deleted.\");\r\n\t}\r\n }",
"@FXML\n\tpublic void deleteUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString id = txtDeleteUserId.getText();\n\t\tif (!id.equals(empty)) {\n\t\t\tboolean found = restaurant.findUser(id);\n\t\t\tif (found == true) {\n\t\t\t\ttry {\n\t\t\t\t\trestaurant.deleteUser(txtDeleteUserId.getText());\n\t\t\t\t\trestaurant.saveUsersData();\n\t\t\t\t\tAlert alert = new Alert(AlertType.CONFIRMATION);\n\t\t\t\t\talert.setTitle(\"Confirmation Dialog\");\n\t\t\t\t\talert.setHeaderText(\"Delete User\");\n\t\t\t\t\talert.setContentText(\"The user has been deleted\");\n\t\t\t\t\talert.showAndWait();\n\t\t\t\t\ttxtDeleteUserId.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los datos\");\n\t\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"El usuario no existe\");\n\t\t\t\tdialog.setTitle(\"Error al eliminar usuario\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Ingrese la identificacion del usuario a eliminar\");\n\t\t\tdialog.setTitle(\"Error al eliminar usuario\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"private boolean validarDatos() {\n boolean result = true; // variable para saber si los datos son validos para su envio a la DAL de Rol y despues a la base de datos \n // verificar si la caja de texto txtNombre esta vacia \n if (this.txtNombre.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (this.txtApellido.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (this.txtDui.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (this.txtNumero.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (result == false) {\n // mostrar un mensaje al usuario de la pantalla que los campos son obligatorios en el caso que la variable result sea false\n JOptionPane.showMessageDialog(this, \"Los campos con * son obligatorios\");\n }\n return result; // retorna la variable result con el valor true o false para saber si los datos son validos o no\n }",
"private boolean validarFormulario() {\n boolean cumple=true;\n boolean mosntrarMensajeGeneral=true;\n if(!ValidacionUtil.tieneTexto(txtNombreMedicamento)){\n cumple=false;\n };\n if(!ValidacionUtil.tieneTexto(txtCantidad)){\n cumple=false;\n };\n if(cmbTipoMedicamento.getSelectedItem()==null|| cmbTipoMedicamento.getSelectedItem().equals(\"Seleccione\")){\n setSpinnerError(cmbTipoMedicamento,\"Campo Obligatorio\");\n cumple=false;\n\n }\n if(getSucursalesSeleccionadas().isEmpty()){\n\n cumple=false;\n mosntrarMensajeGeneral=false;\n Utilitario.mostrarMensaje(getApplicationContext(),\"Seleccione una sucursal para continuar.\");\n }\n if(!cumple){\n if(mosntrarMensajeGeneral) {\n Utilitario.mostrarMensaje(getApplicationContext(), \"Error, ingrese todos los campos obligatorios.\");\n }\n }\n return cumple;\n }",
"@FXML\r\n private void excluir(ActionEvent event) {\n selecionado = tabelaCliente.getSelectionModel()\r\n .getSelectedItem();\r\n \r\n //Verifico se tem cliente selecionado\r\n if(selecionado != null){ //existe cliente selecionado\r\n \r\n //Pegando a resposta da confirmacao do usuario\r\n Optional<ButtonType> btn = \r\n mensagemDeConfirmacao(\"Deseja mesmo excluir?\",\r\n \"EXCLUIR\");\r\n \r\n //Verificando se apertou o OK\r\n if(btn.get() == ButtonType.OK){\r\n \r\n //Manda para a camada de serviço excluir\r\n servico.excluir(selecionado);\r\n \r\n //mostrar mensagem de sucesso\r\n mensagemSucesso(\"cliente excluído com sucesso\");\r\n \r\n //Atualizar a tabela\r\n listarClienteTabela(); \r\n \r\n }\r\n \r\n \r\n \r\n }else{\r\n mensagemErro(\"Selecione um cliente.\");\r\n }\r\n \r\n }",
"public static void mostrarAfirmacionDeEliminacion(JDialog dialogo) {\n JOptionPane.showMessageDialog(dialogo, afirmacionDeEliminacion, \"BancoSoft: Mensaje\", JOptionPane.INFORMATION_MESSAGE);\n }",
"public void cancelarRegistro() {\n this.departamento = new Departamento();\n this.materia = new Materia();\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDlg').hide()\");\n }",
"public void sepulsaeliminar(View view) {\n\t\tif(posicionArrayList !=-1) {\n\t\t\tarrayList.get(posicionArrayList);\n\n\t\t\tfinal DatabaseReference referenciaUseraBorrar=FirebaseDatabase.getInstance().getReference(\"users\").child(arrayList.get(posicionArrayList));\n\n\t\t\treferenciaUseraBorrar.removeValue(); //Elimina el campo del User de la BD\n\t\t\tarrayList.remove(posicionArrayList); //Elimina la posición correspondiente del ArrayList\n\t\t\tarrayAdapter.notifyDataSetChanged(); //Función que actualiza el arrayAdapter y lo dibuja de nuevo.\n\t\t\tToast.makeText(getApplicationContext(),\"Usuario Cuidador eliminado\",Toast.LENGTH_LONG).show();\n\n\t\t}else{\n\t\t\tToast.makeText(getApplicationContext(),\"No se ha seleccionado ningún elemento\",Toast.LENGTH_LONG).show();\n\t\t}\n\t}",
"private void confirmar(){\n\n cliente = new Cliente();\n\n if (validaCampos() == false){\n\n cliente.idade = Integer.parseInt(edtIdade.getText().toString());\n try {\n\n clienteRepositorio.inserir(cliente);\n AlertDialog.Builder dlg = new AlertDialog.Builder(this);\n finish();\n dlg.setTitle(\"Sucess\");\n dlg.setMessage(\"Cadastro realizado com sucesso\");\n dlg.setNeutralButton(\"OK\",null);\n dlg.show();\n\n }catch (SQLException ex){\n AlertDialog.Builder dlg = new AlertDialog.Builder(this);\n dlg.setTitle(\"Error\");\n dlg.setMessage(ex.getMessage());\n dlg.setNeutralButton(\"OK\",null);\n dlg.show();\n }\n }\n }",
"public int eliminar(Connection conn, alertas objeto) {\r\n\t\ttry {\r\n\r\n\t\t\tPreparedStatement statement = conn\r\n\t\t\t\t\t.prepareStatement(\"delete from alertas where ID_ALERTA = ?\");\r\n\t\t\tstatement.setInt(1, objeto.getAlerta());\r\n\t\t\tstatement.execute();\r\n\t\t\tstatement.close();\r\n\t\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\t\"Se ha Eliminado un Registro! \", \"Aviso!\",\r\n\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn 1;\r\n\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t\tJOptionPane.showMessageDialog(null, \"No se Eliminó Registro :\"\r\n\t\t\t\t\t+ e.getMessage(), \"Alerta!\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t}",
"public void handleRemoveItem(ActionEvent actionEvent) {\n\t\tString id = txtDisID.getText();\n\n\t\tAlert alert = new Alert(Alert.AlertType.CONFIRMATION);\n\t\talert.setTitle(\"Confirmation Dialog\");\n\t\talert.setHeaderText(\"Are you sure, you want to remove this item?\");\n\t\talert.setContentText(\"this item will remove permanently from the database.\");\n\n\t\tif(!id.isEmpty() && id != null){\n\t\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\t\tif (result.get() == ButtonType.OK){\n\t\t\t\ttry {\n\t\t\t\t\tItemDAO.deleteItemById(id);\n\t\t\t\t\trefreshTable();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tExp.displayException(e);\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\tExp.displayException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\talert = new Alert(Alert.AlertType.ERROR);\n\t\t\talert.setTitle(\"Error\");\n\t\t\talert.setHeaderText(\"There is no selected item to Remove\");\n\t\t\talert.setContentText(\"Please select the item before remove !\");\n\n\t\t\talert.showAndWait();\n\t\t}\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() == vistaCarrera.btnGuardar) { \n //primero compara si estan vacios los campos de texto\n if (!vistaCarrera.txtId.getText().equals(\"\") && !vistaCarrera.txtNombre.equals(\"\") && \n !vistaCarrera.txtFacultad.equals(\"\")) {\n carrera.setIdCarrera(vistaCarrera.txtId.getText());\n carrera.setNombreCarrera(vistaCarrera.txtNombre.getText());\n carrera.setFacultad(vistaCarrera.txtFacultad.getText());\n //De ser valida la accion, se guarda el objeto y se muestra el mensaje\n if (conC.registrar(carrera)) {\n JOptionPane.showMessageDialog(null, \"Carrera agregada correctamente\");\n limpiar();\n } //De lo contrario se muestra el mensaje de error\n else {\n JOptionPane.showMessageDialog(null, \"No se ha agregado la carrera\");\n limpiar();\n }\n }\n else{\n //mandara un mensaje al usuario si los campos estan vacios\n vistaCarrera.labelMsg.setText(\"No se aceptan campos vacíos\");\n }\n } \n }",
"@Override\n protected void validaRegrasExcluir(ArquivoLoteVO entity) throws AppException {\n\n }",
"public void validorolin() {\n if (roli.equals(\"Menaxher\")) {\n madministrimi.setVisible(false);\n }\n\n }",
"public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use pontos!\", null,\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}",
"public String eliminarDetalle()\r\n/* 340: */ {\r\n/* 341:400 */ this.cuentaContableDimensionContable = ((CuentaContableDimensionContable)this.dtCuentaContable.getRowData());\r\n/* 342:401 */ this.cuentaContableDimensionContable.setEliminado(true);\r\n/* 343:402 */ return \"\";\r\n/* 344: */ }",
"public void confirmRemove(View view) {\n if(networkID == null || networkID.equals(\"Select a Network\"))\n {\n Toast.makeText(getApplicationContext(), \"You must select a network\", Toast.LENGTH_LONG).show();\n return;\n }\n if(gatewayID == null || gatewayID.length() == 0)\n {\n Toast.makeText(getApplicationContext(), \"You must select a gateway\", Toast.LENGTH_LONG).show();\n return;\n }\n AlertDialog.Builder alert = new AlertDialog.Builder(RemoveGatewayActivity.this);\n alert.setTitle(\"Delete\");\n alert.setMessage(\"Are you sure you want to delete \" + gatewayName + \"?\");\n\n alert.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n removeGateway();\n dialog.dismiss();\n }\n });\n\n alert.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n alert.show();\n }",
"private void deleteShoppingList() {\n //Dialog to confirm delete\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(getResources().getString(R.string.dialog_title))\n .setMessage(getResources().getString(R.string.dialog_message))\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Se elimina la lista de la compra\n shoppingLists.remove(position);\n\n //update user\n user.setShoppingLists(shoppingLists);\n dataController.saveUser(user);\n\n //go to home fragment\n Fragment homeFragement = new HomeFragment();\n navigationController.changeFragment(getActivity(), homeFragement, null, Constants.HOME_STATES.HOME_STATE);\n }\n })\n .setNegativeButton(\"CANCELAR\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n }).show();\n }",
"public void excluir(){\n\t\tSystem.out.println(\"\\n*** Excluindo Registro\\n\");\n\t\ttry{\n\t\t\tpacienteService.excluir(getPaciente());\n\t\t\tatualizarTela();\n\t\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\tfacesContext.addMessage(null, new FacesMessage(\"Registro Deletado com Sucesso!!\")); //Mensagem de validacao \n\t\t}catch(Exception e){\n\t\t\tSystem.err.println(\"** Erro ao deletar: \"+e.getMessage());\n\t\t\tatualizarTela();\n\t\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\tfacesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Erro ao deletar o paciente: \"+e.getMessage(), \"\")); //Mensagem de erro \n\t\t\t\n\t\t}\n\t}",
"@FXML\n\tpublic void deleteIngredient(ActionEvent event) {\n\t\tif (!txtDeleteIngredientName.getText().equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tboolean delete = restaurant.deleteIngredient(txtDeleteIngredientName.getText());\n\t\t\t\tif (delete == true) {\n\t\t\t\t\tingredientsOptions.remove(txtDeleteIngredientName.getText());\n\t\t\t\t\ttxtDeleteIngredientName.setText(\"\");\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los datos\");\n\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t} else {\n\t\t\ttxtDeleteIngredientName.setText(null);\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tint a=JOptionPane.showConfirmDialog(null,\"Are you sure you want to delete this Complaint?\",\"Delete this Record?\",JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE);\n\t\t\t if(a==JOptionPane.YES_OPTION)\n\t\t\t {\n\t\t\t \ttry \n\t\t\t\t\t{\n\t\t\t\t\tString sql2=\"DELETE FROM ComplaintsData WHERE Customer_Name=?\";\t\n\t\t\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\t\t\tps=con.prepareStatement(sql2);\n\t\t\t\t\tps.setString(1,txtCustomerName.getText());\n\t\t\t\t\tps.executeUpdate();\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Complaint deleted successfully!\");\n\n\t\t\t\t\tclear();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e1) {}\n\t\t\t }\n\t\t\t\tshowData();\n\t\t\t}",
"public boolean eliminarVehiculo( clsVehiculo vehiculo ){\n if( vehiculo.obtenerTipoMedioTransporte().equals(\"Carro\") ){\n //Debo llamar el modelo de CARRO\n return modeloCarro.eliminarCarro((clsCarro) vehiculo);\n } else if (vehiculo.obtenerTipoMedioTransporte().equals(\"Camion\")){\n //Debo llamar el modelo de CAMIÓN\n }\n return false;\n }",
"public String eliminar()\r\n/* 121: */ {\r\n/* 122: */ try\r\n/* 123: */ {\r\n/* 124:149 */ this.servicioDimensionContable.eliminar(this.dimensionContable);\r\n/* 125:150 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_eliminar\"));\r\n/* 126:151 */ cargarDatos();\r\n/* 127: */ }\r\n/* 128: */ catch (Exception e)\r\n/* 129: */ {\r\n/* 130:153 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_eliminar\"));\r\n/* 131:154 */ LOG.error(\"ERROR AL ELIMINAR DATOS\", e);\r\n/* 132: */ }\r\n/* 133:156 */ return \"\";\r\n/* 134: */ }",
"public void deleteMenu() {\n deleteMenuGroupError = true;\n String input = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"menu_id\");\n menu_id = Integer.parseInt(input);\n setMenu_id(menu_id);\n if (menu.deleteMenu()) {\n createMenuError = false;\n updateMenuError = false;\n deleteMenuError = true;\n } else {\n deleteMenuError = false;\n }\n }",
"private boolean camposValidos() {\n boolean valido = false;\n\n if (txtInfectados.getText().equals(\"\")\n || txtFecha.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Rellene todos los campos\");\n } else {\n valido = true;\n }\n\n return valido;\n }",
"private void deleteDataResult(final DataResult dataResult) {\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);\n alertDialogBuilder.setTitle(\"Are You Sure ?\");\n alertDialogBuilder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n alertDialogBuilder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(final DialogInterface dialogInterface, int i) {\n\n if (dataResult.isIs_clouded()) {\n// DatabaseReference databaseReference = firebaseUserHelper.getDatabaseReference().child(\"user\").child(firebaseUserHelper.getFirebaseUser().getUid()).child(\"data_result\").child(String.valueOf(dataResult.getId()));\n// databaseReference.removeValue();\n// firebaseUserHelper.getStorageReference().child(String.valueOf(dataResult.getId())).delete();\n DeleteDataResult deleteDataResult = new DeleteDataResult();\n deleteDataResult.setUid(MoflusSharedPreferenceHelper.getUser(context).getUid());\n deleteDataResult.setData_result_id(dataResult.getId());\n MoFluSService.getService().deleteDataResult(\n deleteDataResult\n ).enqueue(new Callback<Status>() {\n @Override\n public void onResponse(Call<Status> call, Response<Status> response) {\n if (response.body()!= null &&response.body().isSuccess()) {\n try {\n CSVHelper.deleteFile(dataResult);\n } catch (IOException e) {\n e.printStackTrace();\n }\n moflusSQLiteHelper.deleteDataResult(dataResult);\n notifyItemRemoved(listDataResult.indexOf(dataResult));\n listDataResult.remove(dataResult);\n Toast.makeText(context, dataResult.getName() + \" Deleted\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n } else {\n Toast.makeText(context, \"Delete Failed\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n }\n }\n\n @Override\n public void onFailure(Call<Status> call, Throwable t) {\n Toast.makeText(context, \"No Internet Access\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n }\n });\n }else{\n try {\n CSVHelper.deleteFile(dataResult);\n } catch (IOException e) {\n e.printStackTrace();\n }\n moflusSQLiteHelper.deleteDataResult(dataResult);\n notifyItemRemoved(listDataResult.indexOf(dataResult));\n listDataResult.remove(dataResult);\n Toast.makeText(context, dataResult.getName() + \" Deleted\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n }\n }\n });\n alertDialogBuilder.show();\n }",
"public String eliminar()\r\n/* 88: */ {\r\n/* 89: */ try\r\n/* 90: */ {\r\n/* 91:101 */ this.servicioMotivoLlamadoAtencion.eliminar(this.motivoLlamadoAtencion);\r\n/* 92:102 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_eliminar\"));\r\n/* 93: */ }\r\n/* 94: */ catch (Exception e)\r\n/* 95: */ {\r\n/* 96:104 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_eliminar\"));\r\n/* 97:105 */ LOG.error(\"ERROR AL ELIMINAR DATOS\", e);\r\n/* 98: */ }\r\n/* 99:107 */ return \"\";\r\n/* 100: */ }"
] | [
"0.67897177",
"0.67416435",
"0.63760734",
"0.63619375",
"0.6328911",
"0.6293359",
"0.6272765",
"0.62600255",
"0.62421966",
"0.621154",
"0.62058806",
"0.62030977",
"0.61504334",
"0.6134058",
"0.61258733",
"0.610662",
"0.60714096",
"0.6069375",
"0.60652256",
"0.6039616",
"0.6035335",
"0.60317713",
"0.6023367",
"0.6019503",
"0.6002787",
"0.59961456",
"0.5990481",
"0.598437",
"0.59832",
"0.59808403",
"0.5978207",
"0.59644824",
"0.5955797",
"0.5950629",
"0.59400094",
"0.5932452",
"0.592052",
"0.5919959",
"0.59142554",
"0.59018224",
"0.5895159",
"0.58931565",
"0.5890515",
"0.5887768",
"0.58859277",
"0.58779854",
"0.5877064",
"0.5871623",
"0.58703905",
"0.5863294",
"0.58521384",
"0.5851322",
"0.58445686",
"0.5844233",
"0.5838236",
"0.58377224",
"0.5806461",
"0.58012605",
"0.57980615",
"0.5796597",
"0.5789944",
"0.57834864",
"0.5773422",
"0.5769164",
"0.57587445",
"0.5751727",
"0.57475007",
"0.5744486",
"0.5729768",
"0.5722973",
"0.57169276",
"0.57164854",
"0.57122433",
"0.5705652",
"0.5697857",
"0.56937665",
"0.56937283",
"0.56901795",
"0.56866056",
"0.5686537",
"0.5682316",
"0.56804997",
"0.5678955",
"0.5663634",
"0.56614953",
"0.56609297",
"0.5657052",
"0.5652157",
"0.5651002",
"0.5649042",
"0.56485",
"0.5645131",
"0.56420445",
"0.5638846",
"0.5638067",
"0.56365615",
"0.56244355",
"0.56238663",
"0.56225085",
"0.5621756",
"0.56169707"
] | 0.0 | -1 |
Obtiene memoria flash para variables en scope view. | public Flash obtieneFlash() {
return FacesContext.getCurrentInstance().getExternalContext()
.getFlash();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Flash getFlash();",
"String getFlashPref();",
"public Result withNewFlash() {\n return withFlash(Collections.emptyMap());\n }",
"public Flash flash() {\n return flash;\n }",
"public Result flashing(Map<String, String> values) {\n if (this.flash == null) {\n return withFlash(values);\n } else {\n return withFlash(this.flash.adding(values));\n }\n }",
"Map<String, ?> getFlashAttributes();",
"public Result withFlash(Map<String, String> flash) {\n return withFlash(new Flash(flash));\n }",
"private LocalVariables locals(){\n\t\treturn frame.getLocals();\n\t}",
"public void addViewVariables (Map<String, Object> vars)\n {\n if (vars != null)\n {\n _viewVariables.putAll (vars);\n }\n }",
"@Override // com.master.cameralibrary.CameraViewImpl\n public int getFlash() {\n return this.mFlash;\n }",
"public void flash() {\n mFlash = true;\n invalidate();\n }",
"@SuppressWarnings(\"deprecation\")\n\tprivate void setControllerVariables() {\n\t\tcontrollerVars.setAudioManager((AudioManager) act.getSystemService(Context.AUDIO_SERVICE));\n\t\tcontrollerVars.setActVolume((float) controllerVars.getAudioManager().getStreamVolume(AudioManager.STREAM_MUSIC));\n\t\tcontrollerVars.setMaxVolume((float) controllerVars.getAudioManager().getStreamMaxVolume(AudioManager.STREAM_MUSIC));\n\t\tcontrollerVars.setVolume(controllerVars.getActVolume() / controllerVars.getMaxVolume());\n\n\t\t//Hardware buttons setting to adjust the media sound\n\t\tact.setVolumeControlStream(AudioManager.STREAM_MUSIC);\n\n\t\t// the counter will help us recognize the stream id of the sound played now\n\t\tcontrollerVars.setCounter(0);\n\n\t\t// Load the sounds\n\t\tcontrollerVars.setSoundPool(new SoundPool(20, AudioManager.STREAM_MUSIC, 0));\n\t\tcontrollerVars.getSoundPool().setOnLoadCompleteListener(new OnLoadCompleteListener() {\n\t\t @Override\n\t\t public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {\n\t\t \tcontrollerVars.setLoaded(true);\n\t\t }\n\t\t});\t\t\n\t}",
"public void addViewVariable (String name, Object value)\n {\n _viewVariables.put (name, value);\n }",
"@SuppressWarnings(\"unchecked\")\n private static Map<Integer, FlashScope> getContainer(HttpSession session)\n throws IllegalStateException {\n return (Map<Integer, FlashScope>) session\n .getAttribute(StripesConstants.REQ_ATTR_FLASH_SCOPE_LOCATION);\n }",
"private void updateVars()\n {\n\n }",
"public String onFlash(User user) {\r\n\t\tFacesContext fc = FacesContext.getCurrentInstance();\r\n\t\tfc.getExternalContext().getFlash().put(\"user\", user);\r\n\t\treturn \"TestResponse2.xhtml?faces-redirect=true\";\r\n\t}",
"@Override\n public Void visitVariableAntecedent(GraafvisParser.VariableAntecedentContext ctx) {\n variables.add(ctx.HID().getText());\n return null;\n }",
"public String[] getLocalVariables() {\r\n return scope != null? scope.getLocalVariables() : null;\r\n }",
"public void pullValuesFromFlash(ComponentSystemEvent e) {\n\n\t\tFlash flash = FacesContext.getCurrentInstance().getExternalContext()\n\t\t\t\t.getFlash();\n\t\tlistRefFileConfigDto = (List<RefFileConfigDto>) flash\n\t\t\t\t.get(\"listRefFileConfigDto\");\n\n\t\tflash.keep(\"listRefFileConfigDto\");\n\t\tif(listRefFileConfigDto== null){\n\t\t\tlistRefFileConfigDto=loadFiles();\n\t\t}\n\t\n\t\tlog.info(\"******************************pullValuesFromFlash: \"\n\t\t\t\t+ listRefFileConfigDto);\n\n\t}",
"@Override\n public String getFlashValue() {\n if (!characteristics.get(CameraCharacteristics.FLASH_INFO_AVAILABLE)) {\n return \"\";\n }\n return camera_settings.flash_value;\n }",
"@Override\n public List<String> getVariables()\n {\n return null;\n }",
"private void createAndSetFlashMessageAskingUserToLogin(final HttpServletRequest request) {\n final FlashMessage message = warn(MSG_LOGIN_FIRST);\n\n /* Set it. */\n final HttpSession session = getSession(request);\n session.setAttribute(SESSION_KEY_FLASH, message);\n\n }",
"private void addInstanceVariables(ClassWriterTracker ct) {\n // variable #1, the state manager\n ct.getCw().visitField(Opcodes.ACC_PRIVATE | Opcodes.ACC_TRANSIENT,\n \"sm\", Type.getDescriptor(OpenJPAStateManager.class), null, null).visitEnd();\n\n // variable #2, the state manager\n ct.getCw().visitField(Opcodes.ACC_PRIVATE | Opcodes.ACC_TRANSIENT,\n \"field\", Type.getDescriptor(int.class), null, null).visitEnd();\n }",
"private void initVars(){\n this.sOut = new StringBuilder();\n this.curPos = this.frameCount = 0;\n this.heldKeys = new int[257];\n this.showCursor = false;\n this.fontId = DAGGER40;\n Arrays.fill(this.heldKeys,-1);\n }",
"public Variable[] getLocals();",
"public static void show_local() {\n\n\t}",
"public Result flashing(String key, String value) {\n Map<String, String> newValues = new HashMap<>(1);\n newValues.put(key, value);\n return flashing(newValues);\n }",
"public void savingVariablesWebConfig(){\n SharedPreferences prefs = getSharedPreferences(Constants.PREFERENCES_NAME, Context.MODE_PRIVATE);\n //Save data of user in preferences\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_ACCEPTED, \"3\");\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_VISIBLE, \"10\");\n editor.putString(Constants.PREF_VALUE_MAX_TIME_ORDERS, \"15\");\n editor.commit();\n }",
"private static Map<Integer, FlashScope> getContainer(HttpServletRequest req, boolean create) {\n try {\n HttpSession session = req.getSession(create);\n Map<Integer, FlashScope> scopes = null;\n if (session != null) {\n scopes = getContainer(session);\n\n if (scopes == null && create) {\n synchronized (FlashScope.class) {\n // after obtaining a lock, try looking it up again\n scopes = getContainer(session);\n\n // if still not there, then create and save it\n if (scopes == null) {\n scopes = new ConcurrentHashMap<>();\n session.setAttribute(StripesConstants.REQ_ATTR_FLASH_SCOPE_LOCATION, scopes);\n }\n }\n }\n }\n\n return scopes;\n } catch (IllegalStateException ise) {\n // If the session has been invalidated we'll get this exception, but there's no\n // way to know this without try and getting the exception :(\n log.warn(\"An IllegalStateException got thrown trying to create a flash scope. \",\n \"This happens when add something to flash scope for the first time \",\n \"causes creation of the HttpSession, but for some other reason the \",\n \"response is already committed!\");\n return null;\n }\n }",
"protected FlashScope(HttpServletRequest request, Integer key) {\n this.request = request;\n this.key = key;\n this.semaphore = new Semaphore(1);\n this.semaphore.acquireUninterruptibly();\n }",
"private synchronized void updateVariables() throws DebugException {\n\t\tif (lastUpdated == target.getSuspendCount()\n\t\t\t\t|| (variables != null && oldLineNumber == lineNumber))\n\t\t\treturn;\n\t\t\n\t\tSynchronizer frontend = target.getFrontend();\n\t\tif (frontend != null) {\n\t\t\t// get local variables\n\t\t\tString localsSausage = frontend.GetLocals(thread.getID(),frameNumber);\n\t\t\tString[] locals;\n\t\t\tif (localsSausage == null || localsSausage.equals(\"--\")\n\t\t\t\t\t|| localsSausage.equals(\"\"))\n\t\t\t\tlocals = new String[0];\n\t\t\telse\n\t\t\t\tlocals = localsSausage.split(\" \");\n\t\t\t// get parameters\n\t\t\tString paramsSausage = frontend.GetParameters(thread.getID(),frameNumber);\n\t\t\tString[] params;\n\t\t\tif (paramsSausage == null || paramsSausage.equals(\"--\")\n\t\t\t\t\t|| paramsSausage.equals(\"\"))\n\t\t\t\tparams = new String[0];\n\t\t\telse\n\t\t\t\tparams = paramsSausage.split(\" \");\n\t\t\t// get static fields of the current class\n\t\t\tString className;\n\t\t\ttry {\n\t\t\t\tclassName = methodName.substring(0, methodName.lastIndexOf('.'));\n\t\t\t} catch (StringIndexOutOfBoundsException e) {\n\t\t\t\tclassName = \"\";\n\t\t\t}\n\t\t\tString staticsSausage = frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\n\t\t\t\t\tclassName,true);\n\t\t\tString[] statics;\n\t\t\tif (staticsSausage == null || staticsSausage.equals(\"--\")\n\t\t\t\t\t|| staticsSausage.equals(\"\"))\n\t\t\t\tstatics = new String[0];\n\t\t\telse\n\t\t\t\tstatics = staticsSausage.split(\" \");\n\t\t\t// determine if \"this\" is valid\n\t\t\tboolean _this = true;\n\t\t\tif (frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\"this\",false).equals(\"--\"))\n\t\t\t\t_this = false;\n\t\t\t\n\t\t\t// create variable objects\n\t\t\tIVariable[] tempVariables = new EmonicVariable[locals.length + params.length\n\t\t\t + statics.length + (_this ? 1 : 0)];\n\n\t\t\tif (variables == null || variables.length != tempVariables.length) {\n\t\t\t\t// something changed\n\t\t\t\tint index = 0;\n\t\t\t\tif (_this) {\n\t\t\t\t\ttempVariables[0] = new EmonicVariable(this,\"this\",null);\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tArrays.sort(locals);\n\t\t\t\tfor (int i=0; i<locals.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,locals[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=locals.length;\n\t\t\t\tArrays.sort(params);\n\t\t\t\tfor (int i=0; i<params.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,params[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=params.length;\n\t\t\t\tArrays.sort(statics);\n\t\t\t\tfor (int i=0; i<statics.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,statics[i],null);\n\t\t\t\t}\n\t\t\t\tvariables = tempVariables;\n\t\t\t} \n\t\t}\n\t\tlastUpdated = target.getSuspendCount();\n//\t\toldLineNumber = lineNumber;\n\t}",
"public void updateVarView() { \t\t\n if (this.executionHandler == null || this.executionHandler.getProgramExecution() == null) {\n \treturn;\n }\n HashMap<Identifier, Value> vars = this.executionHandler.getProgramExecution().getVariables();\n \n //insert Tree items \n this.varView.getVarTree().removeAll(); \n \t\tIterator<Map.Entry<Identifier, Value>> it = vars.entrySet().iterator();\t\t\n \t\twhile (it.hasNext()) {\n \t\t\tMap.Entry<Identifier, Value> entry = it.next();\n \t\t\tString type = entry.getValue().getType().toString();\n \t\t\tString id = entry.getKey().toString();\n \t\t\tValue tmp = entry.getValue();\n \t\t\tthis.checkValue(this.varView.getVarTree(), type, id, tmp);\n \t\t} \n \t}",
"private static void displayVariables() {\n Iterator i = dvm.getVariableNames().iterator();\n Object temp;\n while(i.hasNext()){\n temp = i.next();\n System.out.print(temp + \": \" + dvm.getValue(temp.toString()) + \"\\n\");\n }\n }",
"public void flashCard(View view){\n Intent intent = new Intent(this, ModeMenu.class);\n String mode=\"\";\n boolean error=false;\n switch (view.getId()) {\n case R.id.home_learn_button:\n mode = getString(R.string.learn_label);\n break;\n case R.id.home_hone_button:\n mode = getString(R.string.hone_label);\n break;\n case R.id.home_ordeal_button:\n mode = getString(R.string.ordeal_label);\n break;\n }\n intent.putExtra(getString(R.string.mode_key),mode);\n startActivity(intent);\n\n }",
"@FXML\n void handleLocals(ActionEvent event) {\n\n }",
"public List<String> getAngularVariables()\n {\n if (angularVariables == null)\n {\n angularVariables = new ArrayList<>();\n }\n return angularVariables;\n }",
"public View() {\n\t\tlastBlk = new HashMap<>();\n\t\tstate = new HashMap<>();\n\t\tbalance = new HashMap<>();\n\t\tmode = new HashMap<>();\n\t\ttoken = new HashMap<>();\n\t}",
"@Override\n public Object saveState(FacesContext _context) {\n if (_values == null) {\n _values = new Object[6];\n }\n _values[0] = super.saveState(_context);\n _values[1] = description;\n _values[2] = varname;\n _values[4] = param;\n _values[5] = simple;\n return _values;\n }",
"public String getVariableName() {\n return _vname;\n }",
"public FlashCard(@NonNull Context appContext){\n this.appContext = appContext;\n //add shared preferences here because it is crucial to everything else\n this.sharedPreferences = appContext.getSharedPreferences(prefName, Context.MODE_PRIVATE);\n }",
"public void machineFlash() {\n\t\tmachineFlash = !machineFlash;\n\t}",
"@Override // com.master.cameralibrary.CameraViewImpl\n public void setFlash(int i) {\n if (i != this.mFlash && setFlashInternal(i)) {\n this.mCamera.setParameters(this.mCameraParameters);\n }\n }",
"private void instantiateVariables() {\n paint = new Paint();\n fightActivity = (FightActivity) context;\n Typeface tf = Typeface.create(\"Arial\", Typeface.BOLD);\n paint.setTypeface(tf);\n }",
"public void l() {\n SharedPreferences a2 = ba.a(k);\n this.f80660e = a2.getBoolean(\"main_fest_mode\", false);\n this.f80661f = a2.getLong(\"main_fest_timestamp\", 0);\n }",
"public Result withFlash(Flash flash) {\n play.api.mvc.Result.warnFlashingIfNotRedirect(flash.asScala(), header.asScala());\n return new Result(header, body, session, flash, cookies);\n }",
"private void persistData() {\n mSharedPref.storeLastScreen(SCREEN_NAME);\n }",
"@Override\n \tpublic void logVarCreated(String name, String type) {\n \t\tSystem.out.println(\"\\tVariable created: [\" + type + \"] \" + name );\n \t}",
"private void initVariables() {\n ivBack.setVisibility(View.VISIBLE);\n tvTitle.setVisibility(View.VISIBLE);\n tvTitle.setText(getString(R.string.change_language));\n\n gifProgress.setImageResource(R.drawable.shopholic_loader);\n progressBar.setVisibility(View.GONE);\n String currentLang = AppSharedPreference.getInstance().getString(this, AppSharedPreference.PREF_KEY.CURRENT_LANGUAGE);\n setLanguage(currentLang);\n }",
"Variables createVariables();",
"private void declareLocals() {\r\n\t\t// declare locals\r\n\t\tfor(Local local: method.retrieveActiveBody().getLocals()) {\r\n\t\t\tString cType = null;\r\n\t\t\t// null types need special treatment, we don't output them\r\n\t\t\t// we also won't generate statements that use a nullType\r\n\t\t\t// as a target.\r\n\t\t\tif(local.getType() instanceof NullType) {\r\n\t\t\t\tcType = \"java_lang_Object*\";\r\n\t\t\t} else {\r\n\t\t\t\tcType = CTypes.toCType(local.getType());\r\n\t\t\t}\r\n\t\t\twriter.wl(cType + \" \" + local.getName() + \" = 0;\");\r\n\t\t}\r\n\t\twriter.wl(\"java_lang_Object* _exception = 0;\");\r\n\t}",
"protected Map<String, Object> getVariables() throws NamingException {\r\n\t\tMap<String, Object> variables = new HashMap<String, Object>();\r\n\t\tvariables.put(\"account.id\", getAccountUser().getAccount().getId());\r\n\t\tvariables.put(\"user.id\", getAccountUser().getUser().getId());\r\n\t\tvariables.put(\"now\", new Date());\r\n\t\tvariables.put(\"placeholder.id:patient\", getPlaceholderId());\r\n\t\treturn variables;\r\n\t}",
"protected void addFlashCookie(SlingHttpServletResponse response, Form form) {\n final String name = this.getGetLookupKey(form.getName());\n final String value = getQueryParameterValue(form);\n final Cookie cookie = new Cookie(name, value);\n cookie.setMaxAge(COOKIE_MAX_AGE);\n CookieUtil.addCookie(cookie, response);\n }",
"public void cmdTVar(User teller) {\n \tProperties vars = settingsService.listSettings();\n \tint maxKeyLen = 0;\n \tfor (Object key : vars.keySet()) {\n \t\tString varName = (String) key;\n \t\tmaxKeyLen = Math.max(maxKeyLen, varName.length());\n \t}\n \tString pattern = \" %-\" + maxKeyLen + \"s : %s\\\\n\";\n \tFormatter msg = new Formatter();\n \tmsg.format(\" Bot Variables:\\\\n\");\n \tfor (Map.Entry<Object, Object> entry : vars.entrySet()) {\n \t\tmsg.format(pattern, entry.getKey(), entry.getValue());\n \t}\n \tcommand.qtell(teller, msg);\n }",
"public Result removingFromFlash(String... keys) {\n if (this.flash == null) {\n return withNewFlash();\n }\n return withFlash(this.flash.removing(keys));\n }",
"public StringSet freeVars() {\n\treturn argument.freeVars();\n }",
"public List<LocalVariable> getLocalVariables() {\n\t\treturn localVariables;\n\t}",
"public VariableView getVarView() {\n \t\treturn this.varView;\n \t}",
"public static Collection<FlashScope> getAllFlashScopes(HttpServletRequest req) {\n Map<Integer, FlashScope> scopes = getContainer(req, false);\n\n if (scopes == null) {\n return Collections.emptySet();\n } else {\n return scopes.values();\n }\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void initializeVariables() {\n\t\ttvTimeShow= (TextView) findViewById(R.id.tvTimeTracker);\r\n\t}",
"protected void storeCurrentValues() {\n }",
"public Vector freeVars() {\r\n\t\tVector v = new Vector(2, 2);\r\n\t\tVector temp = ((SimpleNode) jjtGetChild(0)).freeVars();\r\n\t\ttemp.remove(\"\");\r\n\t\tVector temp2 = ((SimpleNode) jjtGetChild(1)).freeVars();\r\n\t\ttemp2.remove(\"\");\r\n\t\tfor (Object obj : temp2) {\r\n\t\t\tif (!temp.contains(obj)) {\r\n\t\t\t\tv.add(obj);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn v;\r\n\t}",
"public void flash(){\n phoneCam.setFlashlightEnabled(!flash);\n flash = !flash;\n }",
"private static Store liftGlobals(ScriptNode script, Trace trace, Environment env, Store store) {\n\tSet<String> globals = GlobalVisitor.getGlobals(script);\n\tint i = -1000;\n\tfor (String global : globals) {\n\t Address address = trace.makeAddr(i, \"\");\n\t // Create a dummy variable declaration. This will not exist in the\n\t // output, because the value and variable initialization exists\n\t // outside the file.\n\t Name dummyVariable = new Name();\n\t env.strongUpdateNoCopy(global, Variable.inject(global, address, Change.bottom(),\n\t\t Dependencies.injectVariable(dummyVariable)));\n\t store = store.alloc(address,\n\t\t BValue.top(Change.u(), Dependencies.injectValue(dummyVariable)), dummyVariable);\n\t i--;\n\t}\n\n\treturn store;\n\n }",
"public void setLocals(LocalDebugInfo[] locals);",
"@Override\n\tpublic void setFlashing(int bool) {\n\n\t}",
"@Override\n \tpublic void logVarUsed(String var) {\n \t\tSystem.out.println(\"\\tVariable used: \" + var);\n \t}",
"private void setVariables(Context context){\n this.context = context != null ? context : getContext();\n mwifiAdmin = new WifiAdmin(this.context);\n }",
"public void dump() {\n List<String> variableStrings = new ArrayList<>();\n for (int i = 1; i <= VARIABLE_COUNT; i++) {\n if (variables.containsKey(i)) {\n variableStrings.add(variables.get(i).toString());\n }\n }\n System.out.println(String.format(\"site %d - %s\", id, String.join(\", \", variableStrings)));\n }",
"public Map<String, Object> getVariables();",
"public List<Variable> getVariables() {\r\n\t\treturn variables;\r\n\t}",
"public interface Scope {\n\t\n\tpublic static final String PHOTO = \"photo\";\n\tpublic static final String MESSAGE = \"message\";\n\tpublic static final String FRIENDS = \"friends\";\n\tpublic static final String ACCOUNT = \"account\";\n\tpublic static final String NOTIFICATION = \"notification\";\n\tpublic static final String APPLICATION = \"application\";\n\tpublic static final String STREAM = \"stream\";\n\tpublic static final String PERSON_INFO = \"person_info\";\n\t\n\t\n}",
"@FXML\n private void loadScopeNotice(MouseEvent event) throws IOException\n {\n AnchorPane scopeNotice = FXMLLoader.load(getClass().getResource(\"ScopeNotice.fxml\"));\n \n Stage stage = new Stage();\n stage.setTitle(\"Out of scope notice\");\n stage.setScene(new Scene(scopeNotice, 600, 300));\n stage.show();\n }",
"java.lang.String getVarsOrThrow(\n java.lang.String key);",
"void mo4827a(Context context, C0152fo foVar);",
"public LocalDebugInfo[] locals();",
"public ArrayList<String> getCurrentVarNames() {\n\t\tArrayList<String> names = new ArrayList<String>();\n\t\tfor (NameSSA n : name.values())\n\t\t\tnames.add(n.current());\n\t\treturn names;\n\t}",
"@Override\n public List<String> getVariables() {\n return super.getVariables();\n }",
"public void removeVars(){\n this.values = new HashMap<>();\n }",
"public static Object contextToHold () {\n\n return Lists.list ( Reflection.contextToHold (),\n Annotations.contextToHold());\n }",
"public void addNewScope(){\n List<String> varScope = new ArrayList<>();\n newVarInCurrentScope.add(varScope);\n\n List<String> objScope = new ArrayList<>();\n newObjInCurrentScope.add(objScope);\n }",
"private void getSavedValues() {\r\n\r\n if (this.pl_expert.getParam(\"displayNodeDegree\") != null) {\r\n this.display_node_degree_current = this.pl_expert.getParam(\"displayNodeDegree\");\r\n } else {\r\n this.display_node_degree_current = display_node_degree_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"displayEdges\") != null) {\r\n this.display_edges_current = this.pl_expert.getParam(\"displayEdges\");\r\n } else {\r\n this.display_edges_current = display_edges_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"scale\") != null) {\r\n this.scale_current = this.pl_expert.getParam(\"scale\");\r\n } else {\r\n this.scale_current = scale_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"minWeight\") != null) {\r\n this.minweight_edges_current = this.pl_expert.getParam(\"minWeight\");\r\n } else {\r\n this.minweight_edges_current = minweight_edges_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"iterations\") != null) {\r\n this.iterations_current = this.pl_expert.getParam(\"iterations\");\r\n } else {\r\n this.iterations_current = iterations_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"vote_value\") != null) {\r\n this.vote_value_current = this.pl_expert.getParam(\"vote_value\");\r\n } else {\r\n this.vote_value_current = vote_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"keep_value\") != null) {\r\n this.keepclass_value_current = this.pl_expert.getParam(\"keep_value\");\r\n } else {\r\n this.keepclass_value_current = keepclass_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"mut_value\") != null) {\r\n this.mut_value_current = this.pl_expert.getParam(\"mut_value\");\r\n } else {\r\n this.mut_value_current = mut_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"mutationParameter\") != null) {\r\n this.mut_option_current = this.pl_expert.getParam(\"mutationParameter\");\r\n } else {\r\n this.mut_option_current = mut_option_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"Update_param\") != null) {\r\n this.update_param_current = this.pl_expert.getParam(\"Update_param\");\r\n } else {\r\n this.update_param_current = update_param_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"Alg_param\") != null) {\r\n this.alg_param_current = this.pl_expert.getParam(\"Alg_param\");\r\n } else {\r\n this.alg_param_current = alg_param_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"only_sub\") != null) {\r\n this.display_sub_current = new Boolean(this.pl_expert.getParam(\"only_sub\")).booleanValue();\r\n } else {\r\n this.display_sub_current = display_sub_default;\r\n }\r\n\r\n this.is_alg_started = false;\r\n }",
"FavoriteQuestions() {\n list = SharedPrefs.getFavList();\n }",
"protected Element myVar(){\n\t\treturn el(\"bpws:variable\", new Node[]{\n\t\t\t\tattr(\"messageType\", \"nswomo:receiveMessage\"),\n\t\t\t\tattr(\"name\", VARNAME)\n\t\t});\n\t}",
"public void storeTitle(final String variableName);",
"public interface Scope {\n public Object getVar(String varName);\n\n public Scope defineVar(String varName, Object value);\n\n public Scope defineConst(String varName, Object value);\n\n public Scope setVar(String varName, Object value);\n\n public Scope delVar(String varName);\n}",
"ContextVariable createContextVariable();",
"public Variables() {\n this.numCliente = 0;\n this.tiempoSalida = 999;\n }",
"public void view(){\r\n System.out.println(\"\tNombre: \"+name);\r\n\t\tSystem.out.println(\"\tTipo: \"+type.id);\r\n\t\tSystem.out.println(\"\tVal: \"+((Integer)val).intValue());\r\n\t\tif(block==true){\r\n\t\t\tSystem.out.println(\"\tBLOQUEADA\");\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"\tDESBLOQUEADO\");\r\n\t\t}\r\n //System.out.println(\"\tTipo2: \"+kind);\r\n //System.out.println(\"\tAnidamiento: \"+level);\r\n //System.out.println(\"\tSigDireccion: \"+nextAdr);\r\n System.out.println(\"\t*********************\");\r\n\t\tSystem.out.println();\r\n }",
"void realizeMeaningPrefs(Object obj, Variable[] vars) {\n realizeMeaningPrefs(projectSettings, obj, vars);\n \t}",
"public Object getValue(String name) {\n Object value = localScope.get(name);\n if ( value!=null ) {\n return value;\n }\n // if not found\n BFlatGUI.debugPrint(0, \"undefined variable \"+name);\n return null;\n }",
"public void afficherVariables() {\n System.out.println\r\n (\"Objet de type GrillePain avec variables d'instance année = \" +\r\n annee + \" et nbTranches = \" + nbTranches);\r\n }",
"String getVarDeclare();",
"protected Map<String, Object> getSharedVariables(VitroRequest vreq) {\n \n Map<String, Object> map = new HashMap<String, Object>();\n \n Portal portal = vreq.getPortal();\n // Ideally, templates wouldn't need portal id. Currently used as a hidden input value\n // in the site search box, so needed for now.\n map.put(\"portalId\", portal.getPortalId());\n \n String siteName = portal.getAppName();\n map.put(\"siteName\", siteName);\n map.put(\"title\", getTitle(siteName));\n \n String themeDir = getThemeDir(portal);\n UrlBuilder urlBuilder = new UrlBuilder(portal);\n \n map.put(\"urls\", getUrls(themeDir, urlBuilder)); \n \n // This value will be available to any template as a path for adding a new stylesheet.\n // It does not contain the context path, because the methods to generate the href\n // attribute from the string passed in by the template automatically add the context path.\n map.put(\"themeStylesheetDir\", themeDir + \"/css\");\n \n map.put(\"stylesheets\", getStylesheetList(themeDir));\n map.put(\"scripts\", getScriptList(themeDir));\n \n addDirectives(map);\n \n return map;\n }",
"List<IVariableDef> getVariables();",
"private static interface Holder\r\n {\r\n //~ Static fields/initializers -----------------------------------------\r\n\r\n public static final ViewParameters INSTANCE = new ViewParameters();\r\n\r\n }",
"public void displayData(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userinfo\", Context.MODE_PRIVATE);\n\n String name = sharedPref.getString(\"username\",\"\");\n displaytext.setText(\"welcome \" + name + \"!\");\n\n }",
"static boolean WindowVars(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"WindowVars\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = WindowVars_0(b, l + 1);\n r = r && WindowVars_1(b, l + 1);\n r = r && WindowVars_2(b, l + 1);\n r = r && WindowVars_3(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }",
"public final void a(l lVar) {\n AppMethodBeat.i(7653);\n h.pYm.a(480, 0, 1, false);\n lVar.clear();\n int i;\n m mVar;\n if (j.this.utM.booleanValue()) {\n int size = j.this.utL.size();\n for (i = 0; i < size; i++) {\n b bVar = (b) j.this.utL.get(i);\n mVar = (m) lVar.e(bVar.id, bVar.title);\n mVar.yvW = bVar;\n mVar.setIcon(null);\n mVar.setIcon(0);\n }\n AppMethodBeat.o(7653);\n return;\n }\n try {\n LinkedList dar = j.this.cZv().dar();\n if (dar != null) {\n i = 0;\n while (i < dar.size() && i < 8) {\n com.tencent.mm.m.d.a aVar = (com.tencent.mm.m.d.a) dar.get(i);\n mVar = null;\n if (FirebaseAnalytics.b.INDEX.equals(bo.nullAsNil(aVar.id))) {\n mVar = (m) lVar.a(15, j.this.cZv().getString(R.string.fyh), (int) R.raw.bottomsheet_icon_jd_index);\n } else if (\"categories\".equals(bo.nullAsNil(aVar.id))) {\n mVar = (m) lVar.a(16, j.this.cZv().getString(R.string.fyg), (int) R.raw.bottomsheet_icon_jd_collect_list);\n } else if (\"cart\".equals(bo.nullAsNil(aVar.id))) {\n mVar = (m) lVar.a(17, j.this.cZv().getString(R.string.fyf), (int) R.raw.bottomsheet_icon_jd_cart);\n } else if (Scopes.PROFILE.equals(bo.nullAsNil(aVar.id))) {\n mVar = (m) lVar.a(18, j.this.cZv().getString(R.string.fyj), (int) R.raw.bottomsheet_icon_profile);\n } else if (\"member\".equals(bo.nullAsNil(aVar.id))) {\n mVar = (m) lVar.a(19, j.this.cZv().getString(R.string.fyi), (int) R.raw.bottomsheet_icon_jd_member);\n }\n if (mVar != null) {\n mVar.hAh = aVar.url;\n }\n i++;\n }\n }\n } catch (Exception e) {\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"exception in add jd menu, \" + e.getMessage());\n }\n if (j.this.cZv().icz == null || j.this.cZv().icz.cZS() == null) {\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"get permission failed\");\n AppMethodBeat.o(7653);\n return;\n }\n boolean mZ;\n JsapiPermissionWrapper cZS = j.this.cZv().icz.cZS();\n if (j.this.cZv().cWO()) {\n if (j.c(j.this, 35) && j.this.Jn(35) && !j.this.cZv().uie.dbd()) {\n lVar.a(35, j.this.cZv().getString(R.string.dhw), (int) R.raw.bottomsheet_icon_webview_minimize);\n } else if (j.this.Jn(36) && j.this.cZv().uie.dbd()) {\n lVar.a(36, j.this.cZv().getString(R.string.dhm), (int) R.raw.bottomsheet_icon_webview_cancel_minimize);\n }\n }\n if (j.c(j.this, 1) && j.a(cZS, 21) && j.this.Jn(1)) {\n lVar.a(1, j.this.cZv().getString(R.string.dhh), R.raw.bottomsheet_icon_transmit, j.b(cZS, 21));\n }\n if (j.c(j.this, 2) && j.a(cZS, 23) && j.this.Jn(2)) {\n lVar.a(2, j.this.cZv().getString(R.string.dhi), R.raw.bottomsheet_icon_moment, j.b(cZS, 23));\n }\n int i2 = -1;\n int i3 = -1;\n try {\n Bundle bundle = new Bundle();\n bundle.putInt(\"WebViewShare_BinderID\", j.this.cZv().hashCode());\n bundle.putString(\"WebViewShare_wv_url\", j.this.cZv().pzf.getUrl());\n bundle = j.this.cZv().icy.g(109, bundle);\n if (bundle != null) {\n i2 = bundle.getInt(\"key_hao_kan_permission\", 0);\n i3 = bundle.getInt(\"key_hao_kan_recommand\", -1);\n }\n } catch (RemoteException e2) {\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"isSetHaoKan, e = \" + e2.getMessage());\n }\n if (i2 == 1) {\n if (j.c(j.this, 38) && j.this.Jn(38) && i3 == 0) {\n lVar.a(38, j.this.cZv().getString(R.string.dhr), (int) R.raw.bottomsheet_icon_hao_kan);\n } else if (j.this.Jn(39) && i3 == 1) {\n lVar.a(39, j.this.cZv().getString(R.string.dhj), (int) R.raw.bottomsheet_icon_cancel_hao_kan);\n }\n }\n if (j.c(j.this, 3) && (!(j.this.cZv().uvu && (bo.isNullOrNil(j.this.cZv().uxf) || bo.isNullOrNil(j.this.cZv().uxe) || j.this.cZv().uxf.startsWith(j.this.cZv().uxe))) && j.a(cZS, 323) && j.this.cZQ() && j.this.Jn(3))) {\n lVar.a(3, j.this.cZv().getString(R.string.dcq), R.raw.bottomsheet_icon_fav, j.b(cZS, 323));\n }\n String stringExtra = j.this.cZv().getIntent().getStringExtra(\"sns_local_id\");\n long longExtra = j.this.cZv().getIntent().getLongExtra(\"msg_id\", Long.MIN_VALUE);\n try {\n if (j.c(j.this, 23) && j.this.cZv().icy.x(longExtra, stringExtra)) {\n lVar.a(23, j.this.cZv().getString(R.string.b6w), (int) R.raw.bottomsheet_icon_other_mode);\n }\n } catch (Exception e3) {\n ab.printErrStackTrace(\"MicroMsg.WebViewMenuHelper\", e3, \"\", new Object[0]);\n }\n if (j.c(j.this, 31)) {\n lVar.a(31, j.this.cZv().getString(R.string.g2s), (int) R.raw.bottomsheet_icon_search);\n }\n if (j.c(j.this, 6) && j.a(cZS, 44) && j.this.Jn(6)) {\n lVar.a(6, j.this.cZv().getString(R.string.g1v), R.raw.bottomsheet_icon_copy, j.b(cZS, 44));\n }\n if (cZS.vxM != null && j.this.cZv().uvu && !bo.isNullOrNil(j.this.cZv().uxf) && !bo.isNullOrNil(j.this.cZv().uxe) && j.this.cZv().uxf.startsWith(j.this.cZv().uxe) && j.this.cZv().getIntent().getBooleanExtra(\"key_detail_can_delete\", true) && j.this.cZQ()) {\n if (j.c(j.this, 12) && j.this.Jn(12)) {\n lVar.a(12, j.this.cZv().getString(R.string.bnm), (int) R.raw.bottomsheet_icon_addtag);\n }\n if (j.c(j.this, 9) && j.this.Jn(9)) {\n lVar.a(9, j.this.cZv().getString(R.string.p4), (int) R.raw.bottomsheet_icon_del);\n }\n }\n String stringExtra2 = j.this.cZv().getIntent().getStringExtra(\"srcUsername\");\n if (!bo.isNullOrNil(stringExtra2)) {\n try {\n mZ = j.this.cZv().icy.mZ(stringExtra2);\n } catch (Exception e32) {\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"sharebtn click fail isBizContact, ex = \" + e32.getMessage());\n mZ = false;\n }\n if (mZ) {\n boolean mY;\n try {\n mY = j.this.cZv().icy.mY(stringExtra2);\n } catch (Exception e322) {\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"sharebtn click fail, ex = \" + e322.getMessage());\n mY = false;\n }\n boolean a;\n if (mY) {\n a = j.a(cZS, 19);\n mZ = j.b(cZS, 19);\n } else {\n a = j.a(cZS, 20);\n mZ = j.b(cZS, 20);\n }\n boolean das = j.this.cZv().das();\n if (j.c(j.this, 5) && ((a && j.this.Jn(5)) || das)) {\n i2 = mY ? R.string.g26 : R.string.g1x;\n if (das) {\n i2 = R.string.g27;\n }\n lVar.a(5, j.this.cZv().getString(i2), R.raw.bottomsheet_icon_brand_profile, mZ);\n }\n } else {\n try {\n j.this.cZv().icy.afl(stringExtra2);\n } catch (Exception e3222) {\n ab.e(\"MicroMsg.WebViewMenuHelper\", \"sharebtn click fail triggerGetContact, ex = \" + e3222.getMessage());\n }\n }\n }\n if (j.c(j.this, 34) && j.a(cZS, 313) && j.this.Jn(34)) {\n lVar.a(34, j.this.cZv().getString(R.string.g2o), R.raw.bottomsheet_icon_reading, j.b(cZS, 313));\n }\n if (j.c(j.this, 7) && j.a(cZS, 45) && j.this.Jn(7)) {\n lVar.a(7, j.this.cZv().getString(R.string.g20), R.raw.bottomsheet_icon_brower, j.b(cZS, 45));\n }\n if (j.c(j.this, 37)) {\n j.this.cZv();\n if (com.tencent.mm.plugin.webview.b.b(j.this.cZv().pzf) && j.this.Jn(37)) {\n lVar.a(37, j.this.cZv().getString(R.string.fz6), (int) R.raw.bottomsheet_icon_translate);\n }\n }\n if (j.c(j.this, 24) && j.a(cZS, 43) && j.this.Jn(24) && !p.u(j.this.cZv(), \"com.tencent.wework\")) {\n try {\n Bundle bundle2 = new Bundle();\n bundle2.putString(\"enterprise_action\", \"enterprise_has_connector\");\n bundle2 = j.this.cZv().icy.g(71, bundle2);\n if (bundle2 != null) {\n mZ = bundle2.getBoolean(\"enterprise_has_connector\");\n if (mZ) {\n lVar.a(24, j.this.cZv().getString(R.string.dhy), R.raw.bottomsheet_icon_enterprise, j.b(cZS, 43));\n }\n }\n } catch (Exception e32222) {\n ab.w(\"MicroMsg.WebViewMenuHelper\", \"builder add, ex = \" + e32222.getMessage());\n }\n mZ = false;\n if (mZ) {\n }\n }\n if (j.c(j.this, 11) && j.a(cZS, 18) && j.this.Jn(11)) {\n lVar.a(11, j.this.cZv().getString(R.string.dhg), R.raw.bottomsheet_icon_font, j.b(cZS, 18));\n }\n if (j.c(j.this, 28) && j.this.Jn(28)) {\n lVar.a(28, j.this.cZv().getString(R.string.fxx), (int) R.raw.bottomsheet_icon_refresh);\n }\n if (j.c(j.this, 14) && j.a(cZS, 73) && j.this.Jn(14) && !j.this.cZv().uvZ) {\n lVar.a(14, j.this.cZv().getString(R.string.g2p), R.raw.bottomsheet_icon_reader, j.b(cZS, 73));\n }\n if (j.c(j.this, 14) && j.this.cZv().uvZ && j.this.Jn(14)) {\n lVar.a(14, j.this.cZv().getString(R.string.g2n), (int) R.raw.bottomsheet_icon_other_mode);\n }\n if (j.c(j.this, 10) && j.a(cZS, 47) && j.this.Jn(10)) {\n lVar.a(10, j.this.cZv().getString(R.string.a9n), R.raw.bottomsheet_icon_complain, j.b(cZS, 47));\n }\n if (j.c(j.this, 8) && j.a(cZS, 36) && j.this.Jn(8)) {\n stringExtra = null;\n try {\n stringExtra = j.this.cZv().icy.cZf();\n } catch (Exception e4) {\n }\n if (bo.isNullOrNil(stringExtra)) {\n ab.i(\"MicroMsg.WebViewMenuHelper\", \"get mail session key is null or nil, should not show send mail menu\");\n } else {\n lVar.a(8, j.this.cZv().getString(R.string.g22), R.raw.bottomsheet_icon_mail, j.b(cZS, 36));\n }\n }\n if (j.c(j.this, 33) && j.a(cZS, 31) && j.this.Jn(30)) {\n try {\n if (j.this.cZv().icy.g(78, null).getBoolean(\"isOpenForFaceBook\", false)) {\n lVar.a(33, j.this.cZv().getString(R.string.g2y), R.raw.default_facebookapp, j.b(cZS, 31));\n }\n } catch (Exception e322222) {\n ab.printErrStackTrace(\"MicroMsg.WebViewMenuHelper\", e322222, \"\", new Object[0]);\n }\n }\n if (j.c(j.this, 25) && j.a(cZS, (int) ErrorCode.ERROR_TBSINSTALLER_ISTBSCORELEGAL_02) && WWAPIFactory.jv(j.this.cZv()).dTK() && j.this.Jn(25)) {\n lVar.a(25, j.this.cZv().getString(R.string.dhz, new Object[]{\"企业微信\"}), R.raw.bottomsheet_icon_wework, j.b(cZS, (int) ErrorCode.ERROR_TBSINSTALLER_ISTBSCORELEGAL_02));\n }\n if (j.c(j.this, 26) && j.a(cZS, (int) com.tencent.view.d.MIC_PTU_TRANS_XINGYE) && com.tencent.mm.plugin.webview.stub.a.bl(j.this.cZv(), j.this.cZv().pzf.getUrl()) && j.this.Jn(26)) {\n lVar.a(26, j.this.cZv().getString(R.string.g2v), R.raw.bottomsheet_icon_weread, j.b(cZS, (int) com.tencent.view.d.MIC_PTU_TRANS_XINGYE));\n }\n if (j.c(j.this, 20) && j.a(cZS, 91) && com.tencent.mm.plugin.webview.stub.a.fq(j.this.cZv()) && j.this.Jn(20)) {\n lVar.a(20, j.this.cZv().getString(R.string.g2z), R.raw.bottomsheet_icon_qq, j.b(cZS, 91));\n }\n if (j.c(j.this, 22) && j.a(cZS, (int) com.tencent.mm.plugin.appbrand.jsapi.g.e.CTRL_INDEX) && com.tencent.mm.plugin.webview.stub.a.fq(j.this.cZv()) && j.this.Jn(22)) {\n lVar.a(22, j.this.cZv().getString(R.string.g30), R.raw.bottomsheet_icon_qzone, j.b(cZS, (int) com.tencent.mm.plugin.appbrand.jsapi.g.e.CTRL_INDEX));\n }\n try {\n if (j.c(j.this, 0) && j.a(cZS, 43) && j.this.Jn(0) && j.this.cZv().icy.aeD()) {\n List<CharSequence> aeC = j.this.cZv().icy.aeC();\n for (CharSequence add : aeC) {\n lVar.add(add);\n }\n j.a(j.this, (List) aeC);\n }\n } catch (Exception e3222222) {\n ab.w(\"MicroMsg.WebViewMenuHelper\", \"builder add, ex = \" + e3222222.getMessage());\n }\n if (j.c(j.this, 27) && j.this.cZv().uve != null && j.this.cZv().uve.getVisibility() == 0) {\n lVar.a(27, j.this.cZv().getString(R.string.dhq), (int) R.raw.bottomsheet_icon_exit);\n }\n stringExtra = j.this.cZv().afN(j.this.cZv().uxf);\n stringExtra2 = j.this.cZv().getIntent().getStringExtra(\"shortcut_user_name\");\n if (!j.this.cZv().uvz && !bo.isNullOrNil(stringExtra) && !bo.isNullOrNil(stringExtra2) && j.a(cZS, 255) && j.this.Jn(29) && j.c(j.this, 29)) {\n lVar.a(29, j.this.cZv().getString(R.string.dhf), R.raw.webview_add_shortcut, j.b(cZS, 255));\n }\n j.this.utJ = true;\n j.this.iHZ.dKX();\n AppMethodBeat.o(7653);\n }",
"public final void markTempo() {\n\t\tclock.activateAfterWait(() -> view.flash(1),\n\t\t\t\tConstants.FLASH_TIME);\n\t\tclock.activateAfterWait(() -> soundEmettor.makeSound(),\n\t\t\t\tConstants.FLASH_TIME);\n\t}"
] | [
"0.59131396",
"0.5777353",
"0.5767325",
"0.5597987",
"0.54731387",
"0.5465599",
"0.5265648",
"0.5112807",
"0.5067955",
"0.5060606",
"0.5045256",
"0.5008135",
"0.49569553",
"0.49526706",
"0.49122533",
"0.48939273",
"0.4878393",
"0.48736015",
"0.4871301",
"0.48692808",
"0.4857135",
"0.48309878",
"0.47745797",
"0.47437567",
"0.47401592",
"0.4696097",
"0.4685345",
"0.46724114",
"0.46541217",
"0.4638851",
"0.46322596",
"0.46053684",
"0.45858365",
"0.4567908",
"0.45550555",
"0.45472574",
"0.4533589",
"0.4531109",
"0.45296058",
"0.45196527",
"0.4519211",
"0.45176557",
"0.4500897",
"0.44850534",
"0.44760597",
"0.44749382",
"0.4473302",
"0.4470152",
"0.44580188",
"0.44494128",
"0.44436905",
"0.44224137",
"0.44175667",
"0.44092518",
"0.4409224",
"0.44080293",
"0.4393626",
"0.4393007",
"0.43920246",
"0.43897524",
"0.4388859",
"0.43841806",
"0.4379157",
"0.4374961",
"0.43721688",
"0.4337084",
"0.4330621",
"0.43284476",
"0.43246636",
"0.43219194",
"0.43199122",
"0.43149662",
"0.4314862",
"0.4311511",
"0.43106413",
"0.43095306",
"0.43079638",
"0.43061525",
"0.42984453",
"0.42940187",
"0.42902535",
"0.42814696",
"0.42756507",
"0.42751604",
"0.4268733",
"0.42682064",
"0.42674115",
"0.42657748",
"0.42586306",
"0.42572248",
"0.42564556",
"0.42485654",
"0.42386457",
"0.4230057",
"0.42279693",
"0.42246574",
"0.422223",
"0.42216563",
"0.4219695",
"0.42180347"
] | 0.53414446 | 6 |
TODO Autogenerated method stub | @Override
public boolean dispatchTouchEvent(MotionEvent event) {
Log.i(TAG, "MyLinearLayout() dispatchTouchEvent event = " + event.getAction());
return super.dispatchTouchEvent(event);
} | {
"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
public boolean onInterceptTouchEvent(MotionEvent event) {
Log.i(TAG, "MyLinearLayout() onInterceptTouchEvent event = " + event.getAction());
return super.onInterceptTouchEvent(event);
} | {
"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
public boolean onTouchEvent(MotionEvent event) {
Log.i(TAG, "MyLinearLayout() onTouchEvent event = " + event.getAction());
return super.onTouchEvent(event);
} | {
"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
public int getCount() {
return arrayList.size();
} | {
"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
public Menu getItem(int arg0) {
return arrayList.get(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 | @Override
public long getItemId(int arg0) {
return 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 | @Override
public View getView(int arg0, View arg1, ViewGroup arg2) {
ViewHolder holder;
if(arg1==null){
holder=new ViewHolder();
arg1=mInflater.inflate(R.layout.list_item, null);
holder.textView1=(TextView) arg1.findViewById(R.id.id);
holder.textView2=(TextView) arg1.findViewById(R.id.id2);
arg1.setTag(holder);
}
else{
holder=(ViewHolder) arg1.getTag();
}
holder.textView1.setText(arrayList.get(arg0).getId());
holder.textView2.setText(arrayList.get(arg0).getName());
return arg1;
} | {
"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 |
BM25 with the supplied parameter values. | public BM25Similarity(float b, float k){
this.b = b;
this.k = k;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BM25Similarity(){\n this.b = 0.75f;\n this.k = 1.2f;\n }",
"public Builder setB25(boolean value) {\n bitField0_ |= 0x01000000;\n b25_ = value;\n onChanged();\n return this;\n }",
"public static void setConstantAkParam(String parameter, int[] values)\n {\n int i = 0;\n if (parameter.equalsIgnoreCase(\"genb\"))\n {\n DsLog.log1(LOG_TAG, \"The number of GEq bands is \" + values[0]);\n i = getAkParamIndex(\"gebf\");\n akParams_[i].len = values[0];\n i = getAkParamIndex(\"gebg\");\n akParams_[i].len = values[0];\n i = getAkParamIndex(\"vcbf\");\n akParams_[i].len = values[0];\n i = getAkParamIndex(\"vcbg\");\n akParams_[i].len = values[0];\n i = getAkParamIndex(\"vcbe\");\n akParams_[i].len = values[0];\n akParam_genb_ = values[0];\n }\n else if (parameter.equalsIgnoreCase(\"ienb\"))\n {\n DsLog.log1(LOG_TAG, \"The number of IEq bands is \" + values[0]);\n i = getAkParamIndex(\"iebf\");\n akParams_[i].len = values[0];\n i = getAkParamIndex(\"iebt\");\n akParams_[i].len = values[0];\n akParam_ienb_ = values[0];\n }\n else if (parameter.equalsIgnoreCase(\"aonb\"))\n {\n DsLog.log1(LOG_TAG, \"The number of Audio Optimizer bands is \" + values[0]);\n i = getAkParamIndex(\"aobf\");\n akParams_[i].len = values[0];\n i = getAkParamIndex(\"aobg\");\n akParams_[i].len = (values[0] + 1) * AKPARAM_AOCC;\n i = getAkParamIndex(\"arbf\");\n akParams_[i].len = values[0];\n i = getAkParamIndex(\"arbi\");\n akParams_[i].len = values[0];\n i = getAkParamIndex(\"arbl\");\n akParams_[i].len = values[0];\n i = getAkParamIndex(\"arbh\");\n akParams_[i].len = values[0];\n akParam_aonb_ = values[0];\n }\n else if (parameter.equalsIgnoreCase(\"gebf\"))\n {\n DsLog.log1(LOG_TAG, \"Initializing the graphic equalizer band center frequencies\");\n akParam_gebf_ = values;\n }\n\n // Define all the allowed settings once all the key parameters are settled down.\n if (!constantAkParamsDefined_ && akParam_genb_ != -1 && akParam_ienb_ != -1 && akParam_aonb_ != -1 && akParam_gebf_ != null)\n {\n defineSettings();\n constantAkParamsDefined_ = true;\n }\n }",
"public void baiscSetting(){\n generations_ = 0;\n maxGenerations_ = ((Integer) this.getInputParameter(\"maxGenerations\")).intValue();\n populationSize_ = ((Integer) this.getInputParameter(\"populationSize\")).intValue();\n mutation_ = operators_.get(\"mutation\");\n crossover_ = operators_.get(\"crossover\");\n selection_ = operators_.get(\"selection\");\n learning_ = operators_.get(\"learning\");\n\n }",
"public void setBm(String bm) {\n this.bm = bm;\n }",
"private void setParameters(BetterCharacterControl bcc, float b) {\n bcc.setDuckedFactor(b + 0.01f);\n bcc.setPhysicsDamping(b + 0.08f);\n\n bcc.setJumpForce(new Vector3f(b + 0.05f, b + 0.06f, b + 0.07f));\n bcc.setViewDirection(new Vector3f(b + 0.10f, b + 0.11f, b + 0.12f));\n bcc.setWalkDirection(new Vector3f(b + 0.13f, b + 0.14f, b + 0.15f));\n bcc.setGravity(new Vector3f(b + 0.02f, b + 0.03f, b + 0.04f));\n }",
"public void generateB(){\n\t\t\tfor(int i = 0;i < w.length;i++){\n\t\t\t\tb[i] = w[i].multiply(r).mod(q);\n\t\t\t}\n\t}",
"public static native void OpenMM_AmoebaStretchBendForce_setStretchBendParameters(PointerByReference target, int index, int particle1, int particle2, int particle3, double lengthAB, double lengthCB, double angle, double k1, double k2);",
"public C05_BMI() {\n\t\t\n\t}",
"@Test\n @Tag(\"bm1000\")\n public void testBOEING1() {\n CuteNetlibCase.doTest(\"BOEING1.SIF\", \"-335.2135675071266\", \"286.9746573387996\", NumberContext.of(7, 4));\n }",
"public void setParameters(Map<String, String> param) {\n\n // check the occurrence of required parameters\n if(!(param.containsKey(\"Indri:mu\") && param.containsKey(\"Indri:lambda\"))){\n throw new IllegalArgumentException\n (\"Required parameters for IndriExpansion model were missing from the parameter file.\");\n }\n\n this.mu = Double.parseDouble(param.get(\"Indri:mu\"));\n if(this.mu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:mu\") + \", mu is a real number >= 0\");\n\n this.lambda = Double.parseDouble(param.get(\"Indri:lambda\"));\n if(this.lambda < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:lambda\") + \", lambda is a real number between 0.0 and 1.0\");\n\n if((param.containsKey(\"fb\") && param.get(\"fb\").equals(\"true\"))) {\n this.fb = \"true\";\n\n this.fbDocs = Integer.parseInt(param.get(\"fbDocs\"));\n if (this.fbDocs <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbDocs\") + \", fbDocs is an integer > 0\");\n\n this.fbTerms = Integer.parseInt(param.get(\"fbTerms\"));\n if (this.fbTerms <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbTerms\") + \", fbTerms is an integer > 0\");\n\n this.fbMu = Integer.parseInt(param.get(\"fbMu\"));\n if (this.fbMu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbMu\") + \", fbMu is an integer >= 0\");\n\n this.fbOrigWeight = Double.parseDouble(param.get(\"fbOrigWeight\"));\n if (this.fbOrigWeight < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbOrigWeight\") + \", fbOrigWeight is a real number between 0.0 and 1.0\");\n\n if (param.containsKey(\"fbInitialRankingFile\") && param.get(\"fbInitialRankingFile\") != \"\") {\n this.fbInitialRankingFile = param.get(\"fbInitialRankingFile\");\n try{\n this.initialRanking = readRanking();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n\n if (param.containsKey(\"fbExpansionQueryFile\") && param.get(\"fbExpansionQueryFile\") != \"\")\n this.fbExpansionQueryFile = param.get(\"fbExpansionQueryFile\");\n }\n }",
"public void setB1(int b1)\n {\n this.b1 = b1;\n }",
"public bly(int paramInt, Random paramRandom, bjb parambjb, EnumDirection paramej)\r\n/* 10: */ {\r\n/* 11:831 */ super(paramInt);\r\n/* 12: */ \r\n/* 13:833 */ this.m = paramej;\r\n/* 14:834 */ this.d = a(paramRandom);\r\n/* 15:835 */ this.l = parambjb;\r\n/* 16: */ }",
"@Test\n @Tag(\"bm1000\")\n public void testBANDM() {\n CuteNetlibCase.doTest(\"BANDM.SIF\", \"-158.6280184501187\", null, NumberContext.of(7, 4));\n }",
"public void m21425b(as asVar, bc bcVar) throws bv {\n int i = 0;\n asVar = (ax) asVar;\n ar arVar = new ar(Ascii.VT, Ascii.FF, asVar.mo7199s());\n bcVar.f18795a = new HashMap(arVar.f18601c * 2);\n for (int i2 = 0; i2 < arVar.f18601c; i2++) {\n String v = asVar.mo7202v();\n bb bbVar = new bb();\n bbVar.mo7211a(asVar);\n bcVar.f18795a.put(v, bbVar);\n }\n bcVar.m21448a(true);\n BitSet b = asVar.mo7205b(2);\n if (b.get(0)) {\n aq aqVar = new aq(Ascii.FF, asVar.mo7199s());\n bcVar.f18796b = new ArrayList(aqVar.f18598b);\n while (i < aqVar.f18598b) {\n ba baVar = new ba();\n baVar.mo7211a(asVar);\n bcVar.f18796b.add(baVar);\n i++;\n }\n bcVar.m21452b(true);\n }\n if (b.get(1)) {\n bcVar.f18797c = asVar.mo7202v();\n bcVar.m21454c(true);\n }\n }",
"@Test\n @Tag(\"bm1000\")\n public void testBOEING2() {\n CuteNetlibCase.doTest(\"BOEING2.SIF\", \"-3.1501872802E+02\", \"-73.36896910872208\", NumberContext.of(7, 4));\n }",
"public void init(\n @ParamInfo(name=\"gBar_K in mS/mm^2\", options=\"value=0.36D\") double gBarK, \n @ParamInfo(name=\"E_K in mV\", options=\"value=-77.00D\")double eK, \n @ParamInfo(name=\"gBar_Na in mS/mm^2\", options=\"value=1.2D\") double gBarNa, \n @ParamInfo(name=\"E_Na in mV\", options=\"value=50.00D\") double eNa, \n @ParamInfo(name=\"gBar_L in mS/mm^2\", options=\"value=0.003D\") double gBarL, \n @ParamInfo(name=\"E_L in mV\", options=\"value=-54.387D\") double eL, \n @ParamInfo(name=\"Membrane capacity in uF/mm^2\", options=\"value=0.01D\") double cm) {\n this.gBarK = gBarK;\n this.eK = eK;\n this.gBarNa = gBarNa;\n this.eNa = eNa;\n this.gBarL = gBarL;\n this.eL = eL;\n this.cm = cm; \n \n }",
"private void replaceMatchingParameters() {\r\n\t\tDisplay.getDefault().asyncExec(()->{\r\n\t\t\tif(mwt == null) return;\r\n\t\t\tmwt.pack();\r\n\t\t\r\n\t\t//\tCompositionBriques composition = mwt.getCompositionBriques();\r\n\t\t\t\r\n\t\t//\tList<Equation> eqn = composition.getEquation();\t\r\n\t\t//\tMatchIdenticalParameters.matchIdenticalBriqueParameters(eqn);\r\n\t\t});\r\n\r\n\t}",
"public void displayBmi () {\n\t\t\tSystem.out.println (\"Underweight =< 18.5\\nNormal weight = 18.5-24.9\\nOverweight = 25 - 29.9\\nObese = 30 or higher\");\n\t\t}",
"public static native void OpenMM_AmoebaStretchBendForce_getStretchBendParameters(PointerByReference target, int index, IntBuffer particle1, IntBuffer particle2, IntBuffer particle3, DoubleBuffer lengthAB, DoubleBuffer lengthCB, DoubleBuffer angle, DoubleBuffer k1, DoubleBuffer k2);",
"@Test\n @Tag(\"bm1000\")\n public void testBRANDY() {\n CuteNetlibCase.doTest(\"BRANDY.SIF\", \"1518.509896488128\", null, NumberContext.of(7, 4));\n }",
"public void setVBat(float vBat) {\r\n this.vBat = vBat;\r\n }",
"BOp createBOp();",
"public Builder setB(int value) {\n \n b_ = value;\n onChanged();\n return this;\n }",
"public Builder setB(int value) {\n \n b_ = value;\n onChanged();\n return this;\n }",
"@Test\n @Tag(\"bm1000\")\n public void testSC50B() {\n CuteNetlibCase.doTest(\"SC50B.SIF\", \"-7.0000000000E+01\", \"0.0\", NumberContext.of(7, 4));\n }",
"public void barrBMaker(int rowNum, int columnNum){\n \tfor (int i=0;i<rowNum;i++){\n \t\tfor (int j=0;j<columnNum;j++){\n \t\t\tBarrierBlock barrblock= new BarrierBlock(barrx+i*(barrw/rowNum),barry+j*(barrh/rowNum),barrw/rowNum,barrh/columnNum);\n \t\t\tbarrBList.add (barrblock);\n \t\t}\n \t}\n }",
"public bty(bto parambto, oa paramoa, cug paramcug, boolean paramBoolean)\r\n/* 40: */ {\r\n/* 41: 55 */ this.g = paramoa;\r\n/* 42: 56 */ this.h = paramcug;\r\n/* 43: 57 */ this.k = paramBoolean;\r\n/* 44: */ \r\n/* 45: 59 */ paramcug.a(this.g);\r\n/* 46: 62 */ for (int i1 = 0; i1 < 32; i1++)\r\n/* 47: */ {\r\n/* 48: 63 */ int i2 = (i1 >> 3 & 0x1) * 85;\r\n/* 49: 64 */ int i3 = (i1 >> 2 & 0x1) * 170 + i2;\r\n/* 50: 65 */ int i4 = (i1 >> 1 & 0x1) * 170 + i2;\r\n/* 51: 66 */ int i5 = (i1 >> 0 & 0x1) * 170 + i2;\r\n/* 52: 68 */ if (i1 == 6) {\r\n/* 53: 69 */ i3 += 85;\r\n/* 54: */ }\r\n/* 55: 72 */ if (parambto.e)\r\n/* 56: */ {\r\n/* 57: 73 */ int i6 = (i3 * 30 + i4 * 59 + i5 * 11) / 100;\r\n/* 58: 74 */ int i7 = (i3 * 30 + i4 * 70) / 100;\r\n/* 59: 75 */ int i8 = (i3 * 30 + i5 * 70) / 100;\r\n/* 60: 76 */ i3 = i6;\r\n/* 61: 77 */ i4 = i7;\r\n/* 62: 78 */ i5 = i8;\r\n/* 63: */ }\r\n/* 64: 81 */ if (i1 >= 16)\r\n/* 65: */ {\r\n/* 66: 82 */ i3 /= 4;\r\n/* 67: 83 */ i4 /= 4;\r\n/* 68: 84 */ i5 /= 4;\r\n/* 69: */ }\r\n/* 70: 87 */ this.f[i1] = ((i3 & 0xFF) << 16 | (i4 & 0xFF) << 8 | i5 & 0xFF);\r\n/* 71: */ }\r\n/* 72: 90 */ d();\r\n/* 73: */ }",
"public static native void OpenMM_AmoebaStretchBendForce_getStretchBendParameters(PointerByReference target, int index, IntByReference particle1, IntByReference particle2, IntByReference particle3, DoubleByReference lengthAB, DoubleByReference lengthCB, DoubleByReference angle, DoubleByReference k1, DoubleByReference k2);",
"void setParameters() {\n\t\t\n\t}",
"public void setBeta(double aBeta);",
"private void blue(){\n\t\tthis.arretes_fB();\n\t\tthis.coins_fB();\n\t\tthis.coins_a1B();\n\t\tthis.coins_a2B();\n\t\tthis.aretes_aB();\n\t\tthis.cube[22] = \"B\";\n\t}",
"private void generateParameterValues()\n\t{\n\t\t/*\n\t\t * Initialize variables for storage of the actual parameter data and prepare the histogram bins aggregating them. \n\t\t */\n\t\t\n\t\t// Init storage.\n\t\tparameterValues.clear();\n\t\tparameterValues.put(\"alpha\", new ArrayList<Double>(numberOfDivisions));\n\t\tparameterValues.put(\"eta\", new ArrayList<Double>(numberOfDivisions));\n\t\tparameterValues.put(\"kappa\", new ArrayList<Double>(numberOfDivisions));\n\t\t\n\t\t// Init bins.\n\t\tfinal int numberOfBins \t\t\t\t\t= 50;\n\t\tMap<String, int[]> parameterBinLists\t= new HashMap<String, int[]>();\n\t\tparameterBinLists.put(\"alpha\", new int[numberOfBins]);\n\t\tparameterBinLists.put(\"eta\", new int[numberOfBins]);\n\t\tparameterBinLists.put(\"kappa\", new int[numberOfBins]);\n\t\t\n\t\t// Init random number generator.\n\t\tRandom randomGenerator\t= new Random();\n\t\t\n\t\t/*\n\t\t * Generate numberOfDivisions values for each parameter.\n\t\t */\n\t\t\n\t\tswitch (sampling_combobox.getValue())\n\t\t{\n\t\t\tcase \"Random\":\n\t\t\t\t// Generated values are allowed to be up to rangeSlider.getHighValue() and as low as rangeSlider.getLowValue().\n\t\t\t\tdouble intervalAlpha \t= rangeSliders.get(\"alpha\").getHighValue() - rangeSliders.get(\"alpha\").getLowValue();\n\t\t\t\tdouble intervalEta\t\t= rangeSliders.get(\"eta\").getHighValue() - rangeSliders.get(\"eta\").getLowValue();\n\t\t\t\tdouble intervalKappa\t= rangeSliders.get(\"kappa\").getHighValue() - rangeSliders.get(\"kappa\").getLowValue();\n\t\t\t\t\n\t\t\t\t// Generate random parameter values.\t\t\n\t\t\t\tfor (int i = 0; i < numberOfDivisions; i++) {\n\t\t\t\t\tparameterValues.get(\"alpha\").add(rangeSliders.get(\"alpha\").getLowValue() + randomGenerator.nextFloat() * intervalAlpha);\n\t\t\t\t\tparameterValues.get(\"eta\").add(rangeSliders.get(\"eta\").getLowValue() + randomGenerator.nextFloat() * intervalEta);\n\t\t\t\t\tparameterValues.get(\"kappa\").add(rangeSliders.get(\"kappa\").getLowValue() + randomGenerator.nextFloat() * intervalKappa);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"Cartesian\":\n\t\t\t\tfor (String param : LDAConfiguration.SUPPORTED_PARAMETERS) {\n\t\t\t\t\tfinal double interval = (rangeSliders.get(param).getHighValue() - rangeSliders.get(param).getLowValue()) / (numberOfDivisions);\n\t\t\t\t\t\n\t\t\t\t\tfor (int i = 0; i < numberOfDivisions; i++) {\n\t\t\t\t\t\tparameterValues.get(param).add(rangeSliders.get(param).getLowValue() + interval * i + interval / 2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"Latin Hypercube\":\n\t\t\t\tfor (String param : LDAConfiguration.SUPPORTED_PARAMETERS) {\n\t\t\t\t\t// Calcualte bin interval.\n\t\t\t\t\tfinal double interval \t\t= (rangeSliders.get(param).getHighValue() - rangeSliders.get(param).getLowValue()) / (numberOfDivisions);\n\n\t\t\t\t\tfor (int i = 0; i < numberOfDivisions; i++) {\n\t\t\t\t\t\t// Minimal value allowed for current bin.\n\t\t\t\t\t\tfinal double currentBinMin = rangeSliders.get(param).getLowValue() + interval * i;\n\t\t\t\t\t\t// Generate value for this bin.\n\t\t\t\t\t\tparameterValues.get(param).add(currentBinMin + randomGenerator.nextFloat() * interval);\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t//\t\t\t\t\tto do:\n\t//\t\t\t\t\t\t- test: check generate.txt.\n\t//\t\t\t\t\t\t- after that: START WRITING PAPER (SATURDAY!).\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t/*\n\t\t * Bin data for use in histograms/scented widgets.\n\t\t */\n\t\t\n\t\t// Bin data.\n\t\tfor (Map.Entry<String, ArrayList<Double>> entry : parameterValues.entrySet()) {\n\t\t\tdouble binInterval = (rangeSliders.get(entry.getKey()).getMax() - rangeSliders.get(entry.getKey()).getMin()) / numberOfBins;\n\t\t\t\n\t\t\t// Check every value and assign it to the correct bin.\n\t\t\tfor (double value : entry.getValue()) {\n\t\t\t\tint index_key = (int) ( (value - rangeSliders.get(entry.getKey()).getMin()) / binInterval);\n\t\t\t\t// Check if element is highest allowed entry.\n\t\t\t\tindex_key = index_key < numberOfBins ? index_key : numberOfBins - 1;\n\t\t\t\t\n\t\t\t\t// Increment content of corresponding bin.\n\t\t\t\tparameterBinLists.get(entry.getKey())[index_key]++;\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * Transfer data to scented widgets.\n\t\t */\n\t\t\n\t\t// Clear old data.\n\t\talpha_barchart.getData().clear();\n\t\teta_barchart.getData().clear();\n\t\tkappa_barchart.getData().clear();\n\n\t\t// Add data series to barcharts.\n\t\talpha_barchart.getData().add(generateParameterHistogramDataSeries(\"alpha\", parameterBinLists, numberOfBins));\n\t\teta_barchart.getData().add(generateParameterHistogramDataSeries(\"eta\", parameterBinLists, numberOfBins));\n\t\tkappa_barchart.getData().add(generateParameterHistogramDataSeries(\"kappa\", parameterBinLists, numberOfBins));\n\t}",
"void mo2508a(bxb bxb);",
"@Test\n @Tag(\"bm1000\")\n public void testBORE3D() {\n CuteNetlibCase.doTest(\"BORE3D.SIF\", \"1373.0803942085367\", null, NumberContext.of(7, 4));\n }",
"public BareMetalMachinePowerOffParameters() {\n }",
"private void getParameters(BlendmontParam blendmontParam) {\n blendmontParam.setBinByFactor(getBinning());\n updateMetaData();\n }",
"public void a(bms parambms, List<bms> paramList, Random paramRandom)\r\n/* 19: */ {\r\n/* 20:840 */ if ((this.m == EnumDirection.NORTH) || (this.m == EnumDirection.EAST)) {\r\n/* 21:841 */ b((bmh)parambms, paramList, paramRandom, 1, 1);\r\n/* 22: */ } else {\r\n/* 23:843 */ c((bmh)parambms, paramList, paramRandom, 1, 1);\r\n/* 24: */ }\r\n/* 25: */ }",
"public static byte[] stageBPacket(ServerValuesHolder values) {\n\t\tbyte[] payload = new byte[8];\n\t\tSystem.arraycopy(values.getTcp_port_byte(), 0, payload, 0, 4);\n\t\tSystem.arraycopy(values.getSecretB_byte(), 0, payload, 4, 4);\n\t\t\n\t\treturn createPacket(values.getSecretA(), 2, values.getStudentID(), payload);\n\t}",
"@Test\n @Tag(\"bm1000\")\n public void testKB2() {\n CuteNetlibCase.doTest(\"KB2.SIF\", \"-1.74990012991E+03\", \"0.0\", NumberContext.of(7, 4));\n }",
"public Builder clearB25() {\n bitField0_ = (bitField0_ & ~0x01000000);\n b25_ = false;\n onChanged();\n return this;\n }",
"public void setB(double b){\n this.b=b;\n }",
"private void setIMUParameters(){\n BNO055IMU.Parameters parameters = getIMUParameters();\n imu.initialize(parameters);\n }",
"public Builder setB(int value) {\n bitField0_ |= 0x00000001;\n b_ = value;\n onChanged();\n return this;\n }",
"@Override\r\n\tpublic void setParameterValuesToGUI() {\r\n\t\tthis.pb = this.workPackage.getParameters();\r\n\r\n\t\tjSpinnerLeft.removeChangeListener(this);\r\n\t\tjSpinnerRight.removeChangeListener(this);\r\n\t\tjSpinnerTop.removeChangeListener(this);\r\n\t\tjSpinnerBottom.removeChangeListener(this);\r\n\t\tjSpinnerConst.removeChangeListener(this);\r\n\r\n\t\tjSpinnerLeft.setValue(pb.getIntParameter(\"Left\"));\r\n\t\tjSpinnerRight.setValue(pb.getIntParameter(\"Right\"));\r\n\t\tjSpinnerTop.setValue(pb.getIntParameter(\"Top\"));\r\n\t\tjSpinnerBottom.setValue(pb.getIntParameter(\"Bottom\"));\r\n\t\tjSpinnerConst.setValue(pb.getIntParameter(\"Const\"));\r\n\r\n\t\tjSpinnerLeft.addChangeListener(this);\r\n\t\tjSpinnerRight.addChangeListener(this);\r\n\t\tjSpinnerTop.addChangeListener(this);\r\n\t\tjSpinnerBottom.addChangeListener(this);\r\n\t\tjSpinnerConst.addChangeListener(this);\r\n\r\n\t\tjSpinnerNewWidth.removeChangeListener(this);\r\n\t\tjSpinnerNewHeight.removeChangeListener(this);\r\n\t\tjSpinnerNewWidth.setValue(pb.getIntParameter(\"NewWidth\"));\r\n\t\tjSpinnerNewHeight.setValue(pb.getIntParameter(\"NewHeight\"));\r\n\t\tjSpinnerNewWidth.addChangeListener(this);\r\n\t\tjSpinnerNewHeight.addChangeListener(this);\r\n\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.ZERO) buttZero.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.CONSTANT) buttConst.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.COPY) buttCopy.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.REFLECT) buttReflect.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.WRAP) buttWrap.setSelected(true);\r\n\r\n\t\tif (buttConst.isSelected()) {\r\n\t\t\tjSpinnerConst.setEnabled(true);\r\n\t\t} else {\r\n\t\t\tjSpinnerConst.setEnabled(false);\r\n\t\t}\r\n\r\n\t\tif (pb.getIntParameter(\"BorderOrSize\") == IqmOpBorderDescriptor.PREFERENCE_BORDER) buttBorder.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"BorderOrSize\") == IqmOpBorderDescriptor.PREFERENCE_SIZE) buttSize.setSelected(true);\r\n\r\n\t}",
"public BBox(final Mat4 m, final Vec3 bl, final Vec3 bh)\n {\n set(m, bl, bh);\n }",
"private void BScreate() {\n\n\t\tint sum=0;//全枝数のカウント\n\t\tfor(int i=0;i<banknode;i++) sum+=Bank.get(i).deg;\n\n\t\t//e,d,nの決定\n\t\tif(NW==\"BA\"){\n\t\tfor(int i=0;i<banknode;i++) {\n\t\t\tBank.get(i).totalassets=E*((double)Bank.get(i).deg/(double)sum);\n\t\t\tBank.get(i).n=Bank.get(i).totalassets*Bank.get(i).CAR;\n\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t}\n\t\t}\n\n\t\tif(NW==\"CM\"){\n\t\t\tfor(int i=0;i<banknode;i++){\n\t\t\t\tBank.get(i).totalassets=E/banknode;\n\t\t\t\tBank.get(i).n=Bank.get(i).totalassets*asyCAR;\n\t\t\t\tBank.get(i).forcelev=megaCAR;\n\t\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t\t}\n\n\t\t}\n\n\t}",
"public void setBeta(double value) {\r\n this.beta = value;\r\n }",
"private void BC_bend(Grid gr){\r\n int i, j;\r\n double theta, rate, um, vm, pi=Math.PI;\r\n NSmax=(int)(30.0/dt); repL=0.1;\r\n\t\r\n // boundary conditions of lower side of computational domain\r\n for(i = 0; i<mx; i++) BClow[i]=\"wall\"; \r\n // boundary conditions on upper side \r\n for(i = 0; i<mx; i++) BCupp[i]=\"wall\";\r\n // boundary conditions on left side\r\n for(j = 0; j<my; j++) BClef[j]=\"in\";\r\n // boundary conditions of right side\r\n for(j = 0; j<my; j++) BCrig[j]=\"out\";\r\n\t\t\r\n // initial conditions; all those on other sides are zero. \r\n rate=0.5*pi/(double)(gr.mxRout-gr.mxRin); \r\n for(i = 0; i <= gr.mxRout; i++){ \r\n if(i <= gr.mxRin){ \r\n for(j = 1; j < mym; j++) \t u[i][j]=Umean;\r\n // u[i][j]=2.0*Umean*(1.0-4.0*(gr.y[1][j]+1.0)*(gr.y[1][j]+1.0)); \r\n }else{\r\n theta=rate*(double)(i-gr.mxRin);\r\n for(j = 1; j< mym; j++) u[i][j]=u[0][j]*Math.cos(theta);\r\n }\r\n }\r\n\t\t\r\n for(i = gr.mxRin+1; i < mx; i++){ \r\n if(i <= gr.mxRout){\r\n theta=rate*(double)(i-gr.mxRin);\r\n for(j = 1; j < mym; j++) v[i][j]=u[0][j]*Math.sin(theta);\r\n }else{\r\n for(j = 1; j < mym; j++) v[i][j]=u[0][j];\r\n }\r\n }\r\n }",
"public void setB(double value) {\n this.b = value;\n }",
"@LargeTest\n public void testIntrinsicsBlur25G() {\n TestAction ta = new TestAction(TestName.INTRINSICS_BLUR_25G);\n runTest(ta, TestName.INTRINSICS_BLUR_25G.name());\n }",
"public static void main(String[] args) {\n\t\tCar bmw = new Car();\r\n\t\tbmw.make=2021;\r\n\t\tbmw.colour=\"Blue\";\r\n\t\tbmw.transmission=\"Auto\";\r\n\tbmw.displayCharacteristics();\r\n\tbmw.accelarate();\r\n\tbmw.brake();\r\n\t\t\r\n\r\n\t}",
"public void setParameters(MaterialParams mp);",
"public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}",
"public void setup() \n { \n \tsize(400,400);\n \tbac = new Bacteria[15];\n \tfor (int i = 0; i<bac.length; i++)\n \t{\n \t\tbac[i]= new Bacteria(200,200);\n \t\tbac[i].c();\n \t} //initialize bacteria variables here \n }",
"public void change_bParam (double new_bParam) throws GUIEDTException {\n\t\tcat_bParam = new_bParam;\n\n\t\t// Notify the view\n\n\t\tgui_view.view_notify_changed_bParam();\n\t\treturn;\n\t}",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }",
"private void updateBatteryParameterValues(final int updateIndex) {\n\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, GDE.STRING_ENTRY);\n\t\t//0=cellType,1=numCells,2=capacity,3=year,4=month,5=day,\n\t\t//6=chargeCurrent,7=deltaPeak,8=preDeltaPeakDelay,9=trickleCurrent,10=chargeOffTemperature,11=chargeMaxCapacity,12=chargeSafetyTimer,13=rePeakCycle,14=chargeVoltage,15=repaekDelay,16=flatLimitCheck,26=storeVoltage\n\t\t//17=dischargeCurrent,18=dischargOffVolage,19=dischargeOffTemp,20=dischargemaxCapacity,21=NiMhMatchVoltage\n\t\t//22=cycleDirection,23=cycleCount,24=chargeEndDelay,25=dischargeEndDelay\n\t\tif (updateIndex == 2) { //capacity change\n\t\t\tthis.memoryValues[6] = this.memoryValues[2]; //charge current 1.0 C\n\t\t\tthis.memoryValues[17] = this.memoryValues[2]; //discharge current 1.0 C\n\t\t}\n\t\tif (updateIndex != 6) {\n\t\t\t//this.memoryValues[12] = this.memoryValues[2] / 30; //chargeSafetyTimer\n\t\t\t//this.memoryValues[12] = this.memoryValues[12] - (this.memoryValues[12] % 10); //chargeSafetyTimer\n\t\t\tthis.memoryValues[20] = 105;//dischargemaxCapacity\n\t\t\t//this.memoryValues[22] = 1; //cycleDirection D->C\n\t\t\tthis.memoryValues[23] = 1; //cycleCount\n\t\t\tthis.memoryValues[24] = 30; //chargeEndDelay\n\t\t\tthis.memoryValues[25] = 10; //dischargeEndDelay\n\t\t\tswitch (this.memoryValues[0]) {\n\t\t\tcase 0: //NiCd\n\t\t\t\tthis.memoryValues[11] = 120;//chargeMaxCapacity\n\t\t\t\tthis.memoryValues[10] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0) ? 50 : (9 / 5) * 50 + 32; //chargeOffTemperature\n\t\t\t\tthis.memoryValues[12] = Double.valueOf(90 * (1.0 * this.memoryValues[2] / this.memoryValues[6])).intValue(); //chargeSafetyTimer\n\t\t\t\tthis.memoryValues[9] = updateIndex == 0 ? 550 : this.memoryValues[9]; //this.memoryValues[2] / 10; //trickleCurrent\n\t\t\t\tthis.memoryValues[7] = 7; //deltaPeak mV\n\t\t\t\tthis.memoryValues[8] = 3; //preDeltaPeakDelay min\n\t\t\t\tthis.memoryValues[13] = 1; //rePeakCycle\n\t\t\t\tthis.memoryValues[15] = 3; //rePaekDelay min\n\t\t\t\tthis.memoryValues[16] = 1; //flatLimitCheck\n\t\t\t\tthis.memoryValues[18] = 900;//dischargeVoltage/cell\n\t\t\t\tthis.memoryValues[19] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0) ? 65 : (9 / 5) * 65 + 32; //dischargeOffTemperature\n\t\t\t\tthis.memoryValues[21] = 1200;//NiMhMatchVoltage\n\t\t\t\tbreak;\n\t\t\tcase 1: //NiMh\n\t\t\t\tif (updateIndex == 2 && (this.stepChargeTabItem != null || !this.stepChargeTabItem.isDisposed())) { //capacity change\n\t\t\t\t\tthis.memoryStepValues[3] = this.memoryStepValues[7] = 0;\n\t\t\t\t\tthis.stepChargeComposite.setStepChargeValues(this.memoryValues[2], this.memoryValues[6], this.memoryStepValues);\n\n\t\t\t\t\tthis.stepChargeComposite.getStepChargeValues(UltraDuoPlusDialog.this.memoryStepValues);\n\t\t\t\t\tthis.chargeGroup.notifyListeners(SWT.Selection, new Event());\n\t\t\t\t}\n\t\t\t\tthis.memoryValues[11] = 120; //chargeMaxCapacity\n\t\t\t\tthis.memoryValues[10] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0) ? 50 : (9 / 5) * 50 + 32; //chargeOffTemperature\n\t\t\t\tthis.memoryValues[12] = Double.valueOf(90 * (1.0 * this.memoryValues[2] / this.memoryValues[6])).intValue(); //chargeSafetyTimer\n\t\t\t\tthis.memoryValues[9] = updateIndex == 0 ? 0 : this.memoryValues[9]; //this.memoryValues[2] / 10; //trickleCurrent\n\t\t\t\tthis.memoryValues[7] = 5; //deltaPeak mV\n\t\t\t\tthis.memoryValues[8] = 3; //preDeltaPeakDelay min\n\t\t\t\tthis.memoryValues[13] = 1; //rePeakCycle\n\t\t\t\tthis.memoryValues[15] = 3; //rePaekDelay min\n\t\t\t\tthis.memoryValues[16] = 1; //flatLimitCheck\n\t\t\t\tthis.memoryValues[18] = 1000; //dischargeVoltage/cell\n\t\t\t\tthis.memoryValues[19] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0) ? 65 : (9 / 5) * 65 + 32; //dischargeOffTemperature\n\t\t\t\tthis.memoryValues[21] = 1200; //NiMhMatchVoltage\n\t\t\t\tbreak;\n\t\t\tcase 2: //LiIo\n\t\t\t\tthis.memoryValues[11] = 105; //chargeMaxCapacity\n\t\t\t\tthis.memoryValues[10] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0) ? 45 : (9 / 5) * 45 + 32; //chargeOffTemperature\n\t\t\t\tthis.memoryValues[12] = Double.valueOf(120 * (1.0 * this.memoryValues[2] / this.memoryValues[6])).intValue(); //chargeSafetyTimer\n\t\t\t\tthis.memoryValues[9] = 0; //trickleCurrent\n\t\t\t\tthis.memoryValues[14] = 4100; //chargeVoltage/cell\n\t\t\t\tthis.memoryValues[26] = 3800; //storeVoltage/cell\n\t\t\t\tthis.memoryValues[18] = 3000; //dischargeVoltage/cell\n\t\t\t\tthis.memoryValues[19] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0) ? 55 : (9 / 5) * 55 + 32; //dischargeOffTemperature\n\t\t\t\tbreak;\n\t\t\tcase 3: //LiPo\n\t\t\t\tthis.memoryValues[11] = 105; //chargeMaxCapacity\n\t\t\t\tthis.memoryValues[10] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0) ? 45 : (9 / 5) * 45 + 32; //chargeOffTemperature\n\t\t\t\tthis.memoryValues[12] = Double.valueOf(120 * (1.0 * this.memoryValues[2] / this.memoryValues[6])).intValue(); //chargeSafetyTimer\n\t\t\t\tthis.memoryValues[9] = 0; //trickleCurrent\n\t\t\t\tthis.memoryValues[14] = 4200; //chargeVoltage/cell\n\t\t\t\tthis.memoryValues[26] = 3900; //storeVoltage/cell\n\t\t\t\tthis.memoryValues[18] = 3100; //dischargeVoltage/cell\n\t\t\t\tthis.memoryValues[19] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0) ? 55 : (9 / 5) * 55 + 32; //dischargeOffTemperature\n\t\t\t\tbreak;\n\t\t\tcase 4: //LiFe\n\t\t\t\tthis.memoryValues[11] = 105; //chargeMaxCapacity\n\t\t\t\tthis.memoryValues[10] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0) ? 45 : (9 / 5) * 45 + 32; //chargeOffTemperature\n\t\t\t\tthis.memoryValues[12] = Double.valueOf(120 * (1.0 * this.memoryValues[2] / this.memoryValues[6])).intValue(); //chargeSafetyTimer\n\t\t\t\tthis.memoryValues[9] = 0; //trickleCurrent\n\t\t\t\tthis.memoryValues[14] = 3600; //chargeVoltage/cell\n\t\t\t\tthis.memoryValues[26] = 3500; //storeVoltage/cell\n\t\t\t\tthis.memoryValues[18] = 2500; //dischargeVoltage/cell\n\t\t\t\tthis.memoryValues[19] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0) ? 55 : (9 / 5) * 55 + 32; //dischargeOffTemperature\n\t\t\t\tbreak;\n\t\t\tcase 5: //PB\n\t\t\t\tthis.memoryValues[6] = this.memoryValues[2] / 10; //charge current 0.1 C\n\t\t\t\tthis.memoryValues[11] = 105; //chargeMaxCapacity\n\t\t\t\tthis.memoryValues[10] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0) ? 50 : (9 / 5) * 50 + 32; //chargeOffTemperature\n\t\t\t\tthis.memoryValues[12] = 905; //chargeSafetyTimer\n\t\t\t\tthis.memoryValues[9] = this.memoryValues[2] / 10; //trickleCurrent\n\t\t\t\tthis.memoryValues[14] = 2300; //chargeVoltage/cell\n\t\t\t\tthis.memoryValues[18] = 1800; //dischargeVoltage/cell\n\t\t\t\tthis.memoryValues[19] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0) ? 55 : (9 / 5) * 55 + 32; //dischargeOffTemperature\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\telse { //updateIndex == 6\n\t\t\tswitch (this.memoryValues[0]) {\n\t\t\tcase 0: //NiCd\n\t\t\t\tthis.memoryValues[12] = Double.valueOf(90 * (1.0 * this.memoryValues[2] / this.memoryValues[6])).intValue(); //chargeSafetyTimer\n\t\t\t\tbreak;\n\t\t\tcase 1: //NiMh\n\t\t\t\tthis.memoryValues[12] = Double.valueOf(90 * (1.0 * this.memoryValues[2] / this.memoryValues[6])).intValue(); //chargeSafetyTimer\n\t\t\t\tbreak;\n\t\t\tcase 2: //LiIo\n\t\t\t\tthis.memoryValues[12] = Double.valueOf(120 * (1.0 * this.memoryValues[2] / this.memoryValues[6])).intValue(); //chargeSafetyTimer\n\t\t\t\tbreak;\n\t\t\tcase 3: //LiPo\n\t\t\t\tthis.memoryValues[12] = Double.valueOf(120 * (1.0 * this.memoryValues[2] / this.memoryValues[6])).intValue(); //chargeSafetyTimer\n\t\t\t\tbreak;\n\t\t\tcase 4: //LiFe\n\t\t\t\tthis.memoryValues[12] = Double.valueOf(120 * (1.0 * this.memoryValues[2] / this.memoryValues[6])).intValue(); //chargeSafetyTimer\n\t\t\t\tbreak;\n\t\t\tcase 5: //PB\n\t\t\t\tthis.memoryValues[12] = 905; //chargeSafetyTimer\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\t\n\t\tthis.memoryValues[12] = this.memoryValues[12] > 905 ? 905 : this.memoryValues[12];\n\n\t\t//update parameter controls\n\t\tfor (int i = 0; i < UltramatSerialPort.SIZE_MEMORY_SETUP; i++) {\n\t\t\tif (this.memoryParameters[i] != null) {\n\t\t\t\tthis.memoryParameters[i].setSliderSelection(this.memoryValues[i]);\n\t\t\t}\n\t\t}\n\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINER)) {\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < UltramatSerialPort.SIZE_MEMORY_SETUP; i++) {\n\t\t\t\tsb.append(String.format(\"%04d\", this.memoryValues[i])).append(GDE.STRING_LEFT_BRACKET).append(i).append(GDE.STRING_RIGHT_BRACKET_COMMA); //$NON-NLS-1$\n\t\t\t}\n\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, sb.toString());\n\t\t}\n\t}",
"@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }",
"void BP(Double learningRate){ //call BP() on each neuron except Bias Neuron\n for (int i = 0; i < neurons.size() -1; i++){\n neurons.get(i).BP(learningRate);\n }\n }",
"public static void main(String[] args) {\n\t\tEB_Bill obj = new EB_Bill();\r\n\t\tobj.getInput();\r\n\t\tobj.calculateBill();\r\n\t}",
"public boolean getB25() {\n return b25_;\n }",
"public void chooseBiasValue() {\r\n \r\n if (biasMode.charAt(0) == 't')\r\n {\r\n for (int i=0; i < hiddenLayerContainer.getHiddenLayerContainer().size(); i++){\r\n hiddenLayerContainer.getHiddenLayerContainer().get(i).setBiasActive(true);\r\n }\r\n outputLayer.setBiasActive(true);\r\n }\r\n }",
"private void setInitializationParams() {\n\t\tint spreadRate = 130-((JSlider)components.get(\"spreadSlider\")).getValue();\n\t\tint intensity = ((JSlider)components.get(\"intensitySlider\")).getValue();\n\t\tint[] boatParams = new int[8];\n\t\tboatParams[0] = (int) ((JSpinner)components.get(\"cleanerSpinner\")).getValue();\n\t\tboatParams[1] = (int) ((JSpinner)components.get(\"cleanerFuelSpinner\")).getValue();\n\t\tboatParams[2] = (int) ((JSpinner)components.get(\"cleanerLoadSpinner\")).getValue();\n\t\tboatParams[3] = (int) ((JSpinner)components.get(\"collectorSpinner\")).getValue();\n\t\tboatParams[4] = (int) ((JSpinner)components.get(\"collectorFuelSpinner\")).getValue();\n\t\tboatParams[5] = (int) ((JSpinner)components.get(\"collectorLoadSpinner\")).getValue();\n\t\tboatParams[6] = (int) ((JSpinner)components.get(\"refuelSpinner\")).getValue();\n\t\tboatParams[7] = (int) ((JSpinner)components.get(\"refuelFuelSpinner\")).getValue();\n\t\tlog.info(\"Simulation initializing with spread rate \"+ spreadRate + \" and intensity \" + intensity);\n\t\tsimulateInitialConditions(spreadRate,boatParams,3,intensity);\n\t}",
"public void setBKA001(String BKA001) {\n this.BKA001 = BKA001;\n }",
"private void m6585B() {\n this.f5395O = (TelephonyManager) getSystemService(\"phone\");\n this.f5399S = new C1425w(this.f5389I);\n this.f5404X = C1018a.m5416a(this.f5389I);\n }",
"public void setParameter(float b) {\r\n\t\tthis.b = b;\r\n\t}",
"@Test\n @Tag(\"bm1000\")\n public void testSHARE1B() {\n CuteNetlibCase.doTest(\"SHARE1B.SIF\", \"-76589.31857918584\", \"74562.53714565346\", NumberContext.of(4, 4));\n }",
"public void mo99b(ah ahVar) {\n super.mo99b(ahVar);\n m24192d(ahVar);\n }",
"private static void putPWMB(String name, int channel) throws Exception {\n\t\tputB(pwmB, name, channel);\n\t}",
"public AlphaBeta(int size)\n {\n this.board = new Board(size);\n this.size = size;\n }",
"public BufMgr(int numbufs, String replacerArg) throws Exception {\n\t\t// initialization of the buffer variables\n\t\tpool = new byte[numbufs][GlobalConst.MINIBASE_PAGESIZE];\n\t\treplacer = replacerArg;\n\t\tthis.numbufs = numbufs;\n\t\tpageHashtable = new Hashtable(numbufs);\n\t\tSystemDefs.JavabaseBM = this;\n\t\tframeDescriptor = new Descriptor[numbufs];\n\t\tfor (int j = 0; j < frameDescriptor.length; j++) {\n\t\t\tframeDescriptor[j] = new Descriptor(-1);\n\t\t\tframeDescriptor[j].setDirty(false);\n\t\t}\n\t\t// checking the replacement policy\n\t\tif (replacer == \"Clock\") {\n\t\t\treplace = new Queue();\n\t\t} else\n\t\t\tthrow new UnsupportedOperationException(\n\t\t\t\t\t\"unsupported replacement policy type\");\n\t\t// enqueue all the frames\n\t\tfor (int frameNumber = 0; frameNumber < numbufs; frameNumber++) {\n\t\t\treplace.enqueue(frameNumber);\n\t\t}\n\t}",
"void mo46242a(bmc bmc);",
"@Test\n public void testGetBvs() throws SolverException, InterruptedException {\n requireBitvectors();\n // Some names are specificly chosen to test the Boolector model\n // Use 1 instead of 0 or max bv value, as solvers tend to use 0, min or max as default\n for (String name : VARIABLE_NAMES) {\n testModelGetters(\n bvmgr.equal(bvmgr.makeVariable(8, name), bvmgr.makeBitvector(8, 1)),\n bvmgr.makeBitvector(8, 1),\n BigInteger.ONE,\n name);\n }\n }",
"public boolean getB25() {\n return b25_;\n }",
"public void setB(String units,float value){\r\n\t\t//this.addChild(new PointingMetadata(\"lat\",\"\"+latitude));\r\n\t\tthis.setFloatField(\"b\", value);\r\n\t\tthis.setUnit(\"b\", units);\r\n\t}",
"public static void main(String[] args) {\n\t\tBBB<Double>b =new BBB<Double>();\n\t\t\n\t\tb.set(3.14);\n\t\tdouble result = b.get();\n\t\tSystem.out.println(result);\n\t\t\n\t}",
"public C05_BMI(String name, int age, double weight, double height) {\n\t\tsuper();\n\t\tthis.name = name;\n\t\tthis.age = age;\n\t\tthis.weight = weight;\n\t\tthis.height = height;\n\t}",
"private void setParameters(int width, int height, int bitRate) {\n if ((width % 16) != 0 || (height % 16) != 0) {\n Log.w(TAG, \"WARNING: width or height not multiple of 16\");\n }\n mWidth = width;\n mHeight = height;\n mBitRate = bitRate;\n mFrame = new byte[mWidth * mHeight * 3 / 2];\n }",
"public BMI(String name, double weight, double height)\n {\n this.name = name;\n this.weight = weight;\n this.height = height;\n }",
"public static void main(String[] args) {\n\n\t\tlong startTime = System.currentTimeMillis();\n\n\t\t//NaiveBayesParam nb = new NaiveBayesParam(\"data/split1.arff\",\"data/split1_test.arff\");\n\t\t//NaiveBayesParam nb = new NaiveBayesParam(\"/media/F/Acads/iitb/mtp/naivebayesdataset/bronchiolitis/br-processed.arff\",\"\" +\n\t\t//\t\t\"/media/F/Acads/iitb/mtp/naivebayesdataset/bronchiolitis/br-processed.arff\");\n\t\t//NaiveBayesParam nb = new NaiveBayesParam(\"/media/F/Acads/iitb/mtp/naivebayesdataset/01/sylva_agnostic_valid.arff\",\"\" +\n\t\t//\t\t\"/media/F/Acads/iitb/mtp/naivebayesdataset/01/sylva_agnostic_valid.arff\");\n\n\t\t// NaiveBayesParam nb = new NaiveBayesParam(\"data/split1lac.arff\",\n\t\t// \"data/split1lacTest.arff\");\n\t\t//NaiveBayesParam nb = new NaiveBayesParam(\"data/split1b.arff\", \"data/split1bTest.arff\");\n\t\t// NaiveBayesParam nb = new NaiveBayesPFaram(\"data/split1lac.arff\",\n\t\t// \"data/split1bTest.arff\");\n\t\t//NaiveBayesParam nb = new NaiveBayesParam(\"data/split1lac.arff\",\"data/split1hTest.arff\");\n\t\t\n\t\t\n\t\tNaiveBayesParam nb = new NaiveBayesParam(\"/media/F/Acads/iitb/mtp/QuickHeal/data/split1per1.arff\", \"/media/F/Acads/iitb/mtp/QuickHeal/data/split1.arff\");\n\t\t\t\t\n\t\tInputData initialData = nb.calcInitialState();\n\t\ttry {\n\t\t\tinitialData.serialize(\"/home/agam/nb.dat\");\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t/*nb.calcNewState(nb.param);\n\n\n\t\ttry {\n\t\t\tdouble dist1[][] = nb.distributionForInstances(nb.trainInstances);\n\t\t\tdouble dist2[][] = nb.distributionForInstances(nb.testInstances);\n\t\t\t\n\t\t\tint countFN=0;\n\t\t\tint countFP=0;\n\t\t\tSystem.out.println(\"1.# prob0 - prob1 - actual - pred\");\n\t\t\tfor (int i = 0; i < nb.trainInstances.numInstances(); i++)\n\t\t\t{\n\t\t\t\tdouble pred;\n\t\t\t\tdouble actual = nb.trainInstances.instance(i).classValue();\n\t\t\t\t//System.out.print(\"actual=\"+actual);\n\t\t\t\tif(dist1[i][0] >= dist1[i][1])\n\t\t\t\t\tpred=0d;\n\t\t\t\telse\n\t\t\t\t\tpred=1d;\n\t\t //if (pred != actual)\n\t\t if (!(pred > actual-0.1d && pred < actual + 0.1d))\n\t\t {\n//\t\t \tif(pred == 1)\n\t\t \tif(pred > 0.9d && pred < 1.1d)\n\t\t \t\tcountFP++;\n\t\t \telse\n\t\t \t\tcountFN++;\n\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(\"countFP=\"+countFP);\n\t\t\tSystem.out.println(\"%FP=\"+countFP*200.0/nb.trainInstances.numInstances());\n\t\t\tSystem.out.println(\"countFN=\"+countFN);\n\t\t\tSystem.out.println(\"%FN=\"+countFN*200.0/nb.trainInstances.numInstances());\n\t\t\t\n\t\t\tcountFN=0;\n\t\t\tcountFP=0;\n\t\t\tSystem.out.println(\"2.# prob0 - prob1 - actual - pred\");\n\t\t\tfor (int i = 0; i < nb.testInstances.numInstances(); i++)\n\t\t\t{\n\t\t\t\tdouble pred;\n\t\t\t\tdouble actual = nb.testInstances.instance(i).classValue();\n\t\t\t\tif(dist2[i][0] >= dist2[i][1])\n\t\t\t\t\tpred=0d;\n\t\t\t\telse\n\t\t\t\t\tpred=1d;\n//\t\t if (pred != actual)\n\t\t if (!(pred > actual-0.1d && pred < actual + 0.1d))\n\t\t {\n\t\t \tif(pred > 0.9d && pred < 1.1d)\n//\t\t \tif(pred == 1)\n\t\t \t\tcountFP++;\n\t\t \telse\n\t\t \t\tcountFN++;\n\t\t }\n\t\t System.out.println(\"2.#\"+dist2[i][0]+\" \"+dist2[i][1]+\" \" +actual+\" \"+pred);\n\t\t\t}\n\t\t\tSystem.out.println(\"countFP=\"+countFP);\n\t\t\tSystem.out.println(\"%FP=\"+countFP*100.0/nb.testInstances.numInstances());\n\t\t\tSystem.out.println(\"countFN=\"+countFN);\n\t\t\tSystem.out.println(\"%FN=\"+countFN*100.0/nb.testInstances.numInstances());\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n*/\n/*\t\t\n\t\tdouble jac[][]=nb.calcJacobian(nb.trainInstances.instance(0));\n\n\t\tfor(int i=0;i<nb.trainInstances.numClasses();i++)\n\t\t{\n\t\t\tfor(int j=0;j<4*nb.trainInstances.numAttributes()-4+nb.trainInstances.numClasses();j++)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"jac[\"+i+\"]=[\"+j+\"]=\"+jac[i][j]);\n\t\t\t}\n\t\t}\n*/\t\t\n\t\tlong endTime = System.currentTimeMillis();\n\t\tlong totalTime = endTime - startTime;\n\t\tSystem.out.println(totalTime + \" milliseconds\");\n\t}",
"private static byte[] m2536b(Context context) {\n byte[] c = StatisticsManager.m2537c(context);\n byte[] e = StatisticsManager.m2539e(context);\n byte[] bArr = new byte[(c.length + e.length)];\n System.arraycopy(c, 0, bArr, 0, c.length);\n System.arraycopy(e, 0, bArr, c.length, e.length);\n return StatisticsManager.m2534a(context, bArr);\n }",
"public static void main(String[] args)\n\t{\n\t\tnew BTEvolver(10, 2, 10, 200, 1000);\n\t}",
"@Test\n @Tag(\"bm1000\")\n public void testSHARE2B() {\n CuteNetlibCase.doTest(\"SHARE2B.SIF\", \"-4.1573224074E+02\", \"-265.0981144446295\", NumberContext.of(7, 4));\n }",
"public MLetter(Parameters parametersObj) {\r\n\t\tsuper(parametersObj);\r\n\t}",
"@Test\n @Tag(\"bm1000\")\n public void testSEBA() {\n CuteNetlibCase.doTest(\"SEBA.SIF\", \"15711.6\", \"35160.46056\", NumberContext.of(7, 4));\n }",
"@Override\r\n\tpublic BMW createBMW() {\n\t\treturn new BMW320();\r\n\t}",
"void mo50321b(C18924b bVar);",
"public void setGBInterval_interbp(gov.nih.nlm.ncbi.www.soap.eutils.efetch_seq.GBInterval_interbp_type0 param){\n localGBInterval_interbpTracker = param != null;\n \n this.localGBInterval_interbp=param;\n \n\n }",
"public Bout()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n CreaBoutique();\n\n }",
"public BillGatesBillions(int value) {\n netWorth = value;\n }",
"@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }",
"public BistableParams(){\n\t\tMinDiffGrpPhyloDist = 0.5;\n\t\tMaxSameGrpPhyloDist= 0.3;\n\t\tMaxContentDiss = 0;\n\t\tMinGrpMemSize = 3;\n\t\tMinOpSize = 3;\n\t}",
"@Test\n @Tag(\"bm1000\")\n public void testGROW22() {\n CuteNetlibCase.doTest(\"GROW22.SIF\", \"-1.608343364825636E8\", \"0.0\", NumberContext.of(7, 4));\n }",
"protected void initSupportedIntensityMeasureParams() {\n\n\t\t// Create saParam:\n\t\tDoubleDiscreteConstraint periodConstraint = new DoubleDiscreteConstraint();\n\t\tTreeSet set = new TreeSet();\n\t\tEnumeration keys = coefficientsBJF.keys();\n\t\twhile (keys.hasMoreElements()) {\n\t\t\tBJF_1997_AttenRelCoefficients coeff = (BJF_1997_AttenRelCoefficients)\n\t\t\tcoefficientsBJF.get(keys.nextElement());\n\t\t\tif (coeff.period >= 0) {\n\t\t\t\tset.add(new Double(coeff.period));\n\t\t\t}\n\t\t}\n\t\tIterator it = set.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tperiodConstraint.addDouble( (Double) it.next());\n\t\t}\n\t\tperiodConstraint.setNonEditable();\n\t\tsaPeriodParam = new PeriodParam(periodConstraint);\n\t\tsaDampingParam = new DampingParam();\n\t\tsaParam = new SA_Param(saPeriodParam, saDampingParam);\n\t\tsaParam.setNonEditable();\n\n\t\t// Create PGA Parameter (pgaParam):\n\t\tpgaParam = new PGA_Param();\n\t\tpgaParam.setNonEditable();\n\n\t\t// Create PGV Parameter (pgvParam):\n\t\tpgvParam = new PGV_Param();\n\t\tpgvParam.setNonEditable();\n\n\t\t// The MMI parameter\n\t\tmmiParam = new MMI_Param();\n\n\t\t// Add the warning listeners:\n\t\tsaParam.addParameterChangeWarningListener(listener);\n\t\tpgaParam.addParameterChangeWarningListener(listener);\n\t\tpgvParam.addParameterChangeWarningListener(listener);\n\n\t\t// create supported list\n\t\tsupportedIMParams.clear();\n\t\tsupportedIMParams.addParameter(saParam);\n\t\tsupportedIMParams.addParameter(pgaParam);\n\t\tsupportedIMParams.addParameter(pgvParam);\n\t\tsupportedIMParams.addParameter(mmiParam);\n\n\t}",
"public void setSpflbm(Integer spflbm) {\n this.spflbm = spflbm;\n }",
"public void boost(double bx, double by, double bz) {\n\t\tdouble b2 = bx * bx + by * by + bz * bz;\n\t\tdouble gamma = 1.0 / Math.sqrt(1.0 - b2);\n\t\t// System.out.println(\"GAMMA = \" + gamma + \" b2 = \" + b2);\n\t\tdouble bp = bx * px() + by * py() + bz * pz();\n\t\tdouble gamma2 = b2 > 0 ? (gamma - 1.0) / b2 : 0.0;\n\n\t\tthis.vector.setXYZ(px() + gamma2 * bp * bx + gamma * bx * e(), py() + gamma2 * bp * by + gamma * by * e(),\n\t\t\t\tpz() + gamma2 * bp * bz + gamma * bz * e());\n\t\tthis.energy = gamma * (e() + bp);\n\t}",
"private void updateBatteryMemoryParameter(int selectionIndex) {\n\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, GDE.STRING_ENTRY);\n\t\t//0=cellType,1=numCells,2=capacity,3=year,4=month,5=day,\n\t\t//6=chargeCurrent,7=deltaPeak,8=preDeltaPeakDelay,9=trickleCurrent,10=chargeOffTemperature,11=chargeMaxCapacity,12=chargeSafetyTimer,13=rePeakCycle,14=chargeVoltage,15=repaekDelay,16=flatLimitCheck,26=storeVoltage\n\t\t//17=dischargeCurrent,18=dischargOffVolage,19=dischargeOffTemp,20=dischargemaxCapacity,21=NiMhMatchVoltage\n\t\t//22=cycleDirection,23=cycleCount,24=chargeEndDelay,25=dischargeEndDelay\n\t\tif (this.lastCellSelectionIndex != selectionIndex) {\n\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, \"cell type changed to : \" + UltraDuoPlusDialog.cellTypeNames[this.memoryValues[0]]); //$NON-NLS-1$\n\t\t\tthis.memoryValues[0] = selectionIndex;\n\t\t\t//update memory parameter table to reflect not edit able parameters for selected cell type\n\t\t\tswitch (this.memoryValues[0]) {\n\t\t\tcase 0: //NiCd\n\t\t\t\tthis.memoryParameters[1].updateValueRange(\"1 ~ 18\", 1, 18, 0); //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[2].updateValueRange(\"100 ~ 9900 mAh\", 100, 9900, -100); //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[9] = this.memoryParameters[9] == null ? new ParameterConfigControl(this.chargeGroup, this.memoryValues, 9, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2279),\n\t\t\t\t\t\t175, Messages.getString(MessageIds.GDE_MSGT2312), 220, false, 50, 150, 0, 550) : this.memoryParameters[9];\n\t\t\t\tif (this.memoryParameters[7] == null)\n\t\t\t\t\tthis.memoryParameters[7] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 7, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2277), 175, \"5 ~ 25mV\", 220, false, 50,\n\t\t\t\t\t\t\t150, 5, 25, 0, false);\n\t\t\t\telse\n\t\t\t\t\tthis.memoryParameters[7].updateValueRange(\"5 ~ 25mV\", 5, 25, 0); //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[8] = this.memoryParameters[8] == null ? new ParameterConfigControl(this.chargeGroup, this.memoryValues, 8, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2278),\n\t\t\t\t\t\t175, \"1 ~ 20min\", 220, false, 50, 150, 1, 20) : this.memoryParameters[8]; //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[13] = this.memoryParameters[13] == null ? new ParameterConfigControl(this.chargeGroup, this.memoryValues, 13, GDE.STRING_EMPTY,\n\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2280), 175, \"1 ~ 5\", 220, false, 50, 150, 1, 5) : this.memoryParameters[13]; //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[14] = this.memoryParameters[14] != null ? this.memoryParameters[14].dispose() : null;\n\t\t\t\tthis.memoryParameters[15] = this.memoryParameters[15] == null ? new ParameterConfigControl(this.chargeGroup, this.memoryValues, 15, GDE.STRING_EMPTY,\n\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2281), 175, \"1 ~ 30min\", 220, false, 50, 150, 1, 30) : this.memoryParameters[15]; //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[16] = this.memoryParameters[16] == null ? new ParameterConfigControl(this.chargeGroup, this.memoryValues, 16, Messages.getString(MessageIds.GDE_MSGT2282), 175,\n\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2241) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2240), 220, UltraDuoPlusDialog.offOnType, 50, 150)\n\t\t\t\t\t\t: this.memoryParameters[16];\n\t\t\t\tthis.memoryParameters[18].updateValueRange(\"100 ~ 1300 mV\", 100, 1300, -100); //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[21] = this.memoryParameters[21] == null ? new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 21, GDE.STRING_EMPTY,\n\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2283), 175, \"1100 ~ 1300 mV\", 220, true, 50, 150, 1100, 1300, -1100, false) : this.memoryParameters[21]; //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[26] = this.memoryParameters[26] != null ? this.memoryParameters[26].dispose() : null;\n\t\t\t\tthis.chargeSelectHeight = 10 * this.parameterSelectHeight;\n\t\t\t\tthis.dischargeSelectHeight = 5 * this.parameterSelectHeight;\n\t\t\t\tthis.memoryParameters[11].updateValueRange(Messages.getString(MessageIds.GDE_MSGT2310), 10, 165);\n\t\t\t\tthis.cycleGroup.setVisible(true);\n\t\t\t\tbreak;\n\t\t\tcase 1: //NiMh\n\t\t\t\tthis.memoryParameters[1].updateValueRange(\"1 ~ 18\", 1, 18, 0);\n\t\t\t\tthis.memoryParameters[2].updateValueRange(\"100 ~ 9900 mAh\", 100, 9900, -100); //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[9] = this.memoryParameters[9] == null ? new ParameterConfigControl(this.chargeGroup, this.memoryValues, 9, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2279),\n\t\t\t\t\t\t175, Messages.getString(MessageIds.GDE_MSGT2312), 220, false, 50, 150, 0, 550) : this.memoryParameters[9];\n\t\t\t\tif (this.memoryParameters[7] == null)\n\t\t\t\t\tthis.memoryParameters[7] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 7, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2277), 175, \"0 ~ 15mV\", 220, false, 50,\n\t\t\t\t\t\t\t150, 0, 15, 0, false);\n\t\t\t\telse\n\t\t\t\t\tthis.memoryParameters[7].updateValueRange(\"0 ~ 15mV\", 0, 15, 0); //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[8] = this.memoryParameters[8] == null ? new ParameterConfigControl(this.chargeGroup, this.memoryValues, 8, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2278),\n\t\t\t\t\t\t175, \"1 ~ 20min\", 220, false, 50, 150, 1, 20) : this.memoryParameters[8]; //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[13] = this.memoryParameters[13] == null ? new ParameterConfigControl(this.chargeGroup, this.memoryValues, 13, GDE.STRING_EMPTY,\n\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2280), 175, \"1 ~ 5\", 220, false, 50, 150, 1, 5) : this.memoryParameters[13]; //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[14] = this.memoryParameters[14] != null ? this.memoryParameters[14].dispose() : null;\n\t\t\t\tthis.memoryParameters[15] = this.memoryParameters[15] == null ? new ParameterConfigControl(this.chargeGroup, this.memoryValues, 15, GDE.STRING_EMPTY,\n\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2281), 175, \"1 ~ 30min\", 220, false, 50, 150, 1, 30) : this.memoryParameters[15]; //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[16] = this.memoryParameters[16] == null ? new ParameterConfigControl(this.chargeGroup, this.memoryValues, 16, Messages.getString(MessageIds.GDE_MSGT2282), 175,\n\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2241) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2240), 220, UltraDuoPlusDialog.offOnType, 50, 150)\n\t\t\t\t\t\t: this.memoryParameters[16];\n\t\t\t\tthis.memoryParameters[18].updateValueRange(\"100 ~ 1300 mV\", 100, 1300, -100); //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[21] = this.memoryParameters[21] == null ? new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 21, GDE.STRING_EMPTY,\n\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2283), 175, \"1100 ~ 1300 mV\", 220, true, 50, 150, 1100, 1300, -1100, false) : this.memoryParameters[21]; //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[26] = this.memoryParameters[26] != null ? this.memoryParameters[26].dispose() : null;\n\t\t\t\tthis.chargeSelectHeight = 10 * this.parameterSelectHeight;\n\t\t\t\tthis.dischargeSelectHeight = 5 * this.parameterSelectHeight;\n\t\t\t\tthis.memoryParameters[11].updateValueRange(Messages.getString(MessageIds.GDE_MSGT2310), 10, 165);\n\t\t\t\tthis.cycleGroup.setVisible(true);\n\t\t\t\tbreak;\n\t\t\tcase 2: //LiIo\n\t\t\t\tthis.memoryParameters[1].updateValueRange(\"1 ~ 7\", 1, 7, 0);\n\t\t\t\tthis.memoryParameters[2].updateValueRange(\"100 ~ 65000 mAh\", 100, 65000, -100); //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[7] = this.memoryParameters[7] != null ? this.memoryParameters[7].dispose() : null;\n\t\t\t\tthis.memoryParameters[8] = this.memoryParameters[8] != null ? this.memoryParameters[8].dispose() : null;\n\t\t\t\tthis.memoryParameters[9] = this.memoryParameters[9] != null ? this.memoryParameters[9].dispose() : null;\n\t\t\t\tthis.memoryParameters[13] = this.memoryParameters[13] != null ? this.memoryParameters[13].dispose() : null;\n\t\t\t\tif (this.memoryParameters[14] == null)\n\t\t\t\t\tthis.memoryParameters[14] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 14, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2267), 175,\n\t\t\t\t\t\t\t\"3600 ~ 4200 mV\", 220, true, 50, 150, 3600, 4200, -3600, false); //$NON-NLS-1$ \n\t\t\t\telse\n\t\t\t\t\tthis.memoryParameters[14].updateValueRange(\"3600 ~ 4200 mV\", 3600, 4200, -3600);\n\t\t\t\tthis.memoryParameters[15] = this.memoryParameters[15] != null ? this.memoryParameters[15].dispose() : null;\n\t\t\t\tthis.memoryParameters[16] = this.memoryParameters[16] != null ? this.memoryParameters[16].dispose() : null;\n\t\t\t\tthis.memoryParameters[18].updateValueRange(\"2500 ~ 4100 mV\", 2500, 4100, -2500); //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[21] = this.memoryParameters[21] != null ? this.memoryParameters[21].dispose() : null;\n\t\t\t\tif (this.memoryParameters[26] == null)\n\t\t\t\t\tthis.memoryParameters[26] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 26, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2276), 175,\n\t\t\t\t\t\t\t\"3600 ~ 3900 mV\", 220, true, 50, 150, 3600, 3900, -3600, false); //$NON-NLS-1$ \n\t\t\t\telse\n\t\t\t\t\tthis.memoryParameters[26].updateValueRange(\"3600 ~ 3900 mV\", 3600, 3900, -3600);\n\t\t\t\tthis.chargeSelectHeight = 6 * this.parameterSelectHeight + 10;\n\t\t\t\tthis.dischargeSelectHeight = 4 * this.parameterSelectHeight;\n\t\t\t\tthis.memoryParameters[11].updateValueRange(Messages.getString(MessageIds.GDE_MSGT2314), 10, 135);\n\t\t\t\tthis.cycleGroup.setVisible(true);\n\t\t\t\tbreak;\n\t\t\tcase 3: //LiPo\n\t\t\t\tthis.memoryParameters[1].updateValueRange(\"1 ~ 7\", 1, 7, 0);\n\t\t\t\tthis.memoryParameters[2].updateValueRange(\"100 ~ 65000 mAh\", 100, 65000, -100); //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[7] = this.memoryParameters[7] != null ? this.memoryParameters[7].dispose() : null;\n\t\t\t\tthis.memoryParameters[8] = this.memoryParameters[8] != null ? this.memoryParameters[8].dispose() : null;\n\t\t\t\tthis.memoryParameters[9] = this.memoryParameters[9] != null ? this.memoryParameters[9].dispose() : null;\n\t\t\t\tthis.memoryParameters[13] = this.memoryParameters[13] != null ? this.memoryParameters[13].dispose() : null;\n\t\t\t\tif (this.memoryParameters[14] == null)\n\t\t\t\t\tthis.memoryParameters[14] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 14, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2267), 175,\n\t\t\t\t\t\t\t\"3700 ~ 4300 mV\", 220, true, 50, 150, 3700, 4300, -3700, false); //$NON-NLS-1$ \n\t\t\t\telse\n\t\t\t\t\tthis.memoryParameters[14].updateValueRange(\"3700 ~ 4300 mV\", 3700, 4300, -3700);\n\t\t\t\tthis.memoryParameters[15] = this.memoryParameters[15] != null ? this.memoryParameters[15].dispose() : null;\n\t\t\t\tthis.memoryParameters[16] = this.memoryParameters[16] != null ? this.memoryParameters[16].dispose() : null;\n\t\t\t\tthis.memoryParameters[18].updateValueRange(\"2500 ~ 4200 mV\", 2500, 4200, -2500); //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[21] = this.memoryParameters[21] != null ? this.memoryParameters[21].dispose() : null;\n\t\t\t\tif (this.memoryParameters[26] == null)\n\t\t\t\t\tthis.memoryParameters[26] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 26, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2276), 175,\n\t\t\t\t\t\t\t\"3700 ~ 4000 mV\", 220, true, 50, 150, 3700, 4000, -3700, false); //$NON-NLS-1$ \n\t\t\t\telse\n\t\t\t\t\tthis.memoryParameters[26].updateValueRange(\"3700 ~ 4000 mV\", 3700, 4000, -3700);\n\t\t\t\tthis.chargeSelectHeight = 6 * this.parameterSelectHeight + 10;\n\t\t\t\tthis.dischargeSelectHeight = 4 * this.parameterSelectHeight;\n\t\t\t\tthis.memoryParameters[11].updateValueRange(Messages.getString(MessageIds.GDE_MSGT2314), 10, 135);\n\t\t\t\tthis.cycleGroup.setVisible(true);\n\t\t\t\tbreak;\n\t\t\tcase 4: //LiFe\n\t\t\t\tthis.memoryParameters[1].updateValueRange(\"1 ~ 7\", 1, 7, 0);\n\t\t\t\tthis.memoryParameters[2].updateValueRange(\"100 ~ 65000 mAh\", 100, 65000, -100); //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[7] = this.memoryParameters[7] != null ? this.memoryParameters[7].dispose() : null;\n\t\t\t\tthis.memoryParameters[8] = this.memoryParameters[8] != null ? this.memoryParameters[8].dispose() : null;\n\t\t\t\tthis.memoryParameters[9] = this.memoryParameters[9] != null ? this.memoryParameters[9].dispose() : null;\n\t\t\t\tthis.memoryParameters[13] = this.memoryParameters[13] != null ? this.memoryParameters[13].dispose() : null;\n\t\t\t\tif (this.memoryParameters[14] == null)\n\t\t\t\t\tthis.memoryParameters[14] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 14, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2267), 175,\n\t\t\t\t\t\t\t\"3300 ~ 3700 mV\", 220, true, 50, 150, 3300, 3700, -3300, false); //$NON-NLS-1$ \n\t\t\t\telse\n\t\t\t\t\tthis.memoryParameters[14].updateValueRange(\"3300 ~ 3700 mV\", 3300, 3700, -3300);\n\t\t\t\tthis.memoryParameters[15] = this.memoryParameters[15] != null ? this.memoryParameters[15].dispose() : null;\n\t\t\t\tthis.memoryParameters[16] = this.memoryParameters[16] != null ? this.memoryParameters[16].dispose() : null;\n\t\t\t\tthis.memoryParameters[18].updateValueRange(\"2000 ~ 3700 mV\", 2000, 3700, -2000); //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[21] = this.memoryParameters[21] != null ? this.memoryParameters[21].dispose() : null;\n\t\t\t\tif (this.memoryParameters[26] == null)\n\t\t\t\t\tthis.memoryParameters[26] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 26, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2276), 175,\n\t\t\t\t\t\t\t\"3300 ~ 3600 mV\", 220, true, 50, 150, 3300, 3600, -3300, false); //$NON-NLS-1$ \n\t\t\t\telse\n\t\t\t\t\tthis.memoryParameters[26].updateValueRange(\"3300 ~ 3600 mV\", 3300, 3600, -3300);\n\t\t\t\tthis.chargeSelectHeight = 6 * this.parameterSelectHeight + 10;\n\t\t\t\tthis.dischargeSelectHeight = 4 * this.parameterSelectHeight;\n\t\t\t\tthis.memoryParameters[11].updateValueRange(Messages.getString(MessageIds.GDE_MSGT2314), 10, 135);\n\t\t\t\tthis.cycleGroup.setVisible(true);\n\t\t\t\tbreak;\n\t\t\tcase 5: //Pb\n\t\t\t\tthis.memoryParameters[1].updateValueRange(\"1 ~ 6, 12\", 1, 12, 0);\n\t\t\t\tthis.memoryParameters[2].updateValueRange(\"500 ~ 65000 mAh\", 500, 65000, -500); //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[7] = this.memoryParameters[7] != null ? this.memoryParameters[7].dispose() : null;\n\t\t\t\tthis.memoryParameters[8] = this.memoryParameters[8] != null ? this.memoryParameters[8].dispose() : null;\n\t\t\t\tthis.memoryParameters[9] = this.memoryParameters[9] != null ? this.memoryParameters[9].dispose() : null;\n\t\t\t\tthis.memoryParameters[13] = this.memoryParameters[13] != null ? this.memoryParameters[13].dispose() : null;\n\t\t\t\tif (this.memoryParameters[14] == null)\n\t\t\t\t\tthis.memoryParameters[14] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 14, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2267), 175,\n\t\t\t\t\t\t\t\"1800 ~ 2450 mV\", 220, true, 50, 150, 1800, 2450, -1800, false); //$NON-NLS-1$ \n\t\t\t\telse\n\t\t\t\t\tthis.memoryParameters[14].updateValueRange(\"1800 ~ 2450 mV\", 1800, 2450, -1800);\n\t\t\t\tthis.memoryParameters[15] = this.memoryParameters[15] != null ? this.memoryParameters[15].dispose() : null;\n\t\t\t\tthis.memoryParameters[16] = this.memoryParameters[16] != null ? this.memoryParameters[16].dispose() : null;\n\t\t\t\tthis.memoryParameters[18].updateValueRange(\"1500 ~ 2000 mV\", 1500, 2000, -1500); //$NON-NLS-1$ \n\t\t\t\tthis.memoryParameters[21] = this.memoryParameters[21] != null ? this.memoryParameters[21].dispose() : null;\n\t\t\t\tthis.memoryParameters[26] = this.memoryParameters[26] != null ? this.memoryParameters[26].dispose() : null;\n\t\t\t\tthis.chargeSelectHeight = 5 * this.parameterSelectHeight + 10;\n\t\t\t\tthis.dischargeSelectHeight = 4 * this.parameterSelectHeight;\n\t\t\t\tthis.memoryParameters[11].updateValueRange(Messages.getString(MessageIds.GDE_MSGT2314), 10, 135);\n\t\t\t\tthis.cycleGroup.setVisible(false);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tthis.chargeGroup.setSize(this.scrolledchargeComposite.getClientArea().width, this.chargeSelectHeight);\n\t\t\tthis.chargeGroup.layout(true);\n\t\t\tthis.scrolledchargeComposite.layout(true);\n\n\t\t\tswitch (this.device.getDeviceTypeIdentifier()) {\n\t\t\tcase UltraDuoPlus50:\n\t\t\tcase UltraDuoPlus60:\n\t\t\t\tif (selectionIndex == 1) { //NiMH\n\t\t\t\t\tif (this.stepChargeTabItem == null || this.stepChargeTabItem.isDisposed()) initStepChargeTab();\n\t\t\t\t\tthis.stepChargeComposite.setStepChargeValues(this.memoryValues[2], this.memoryValues[6], this.memoryStepValues);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (this.stepChargeTabItem != null && !this.stepChargeTabItem.isDisposed()) this.stepChargeTabItem.dispose();\n\t\t\t\t\tthis.stepChargeTabItem = null;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tthis.dischargeGroup.setLayoutData(new RowData(this.dischargeCycleComposite.getClientArea().width - 18, this.dischargeSelectHeight));\n\t\t\tthis.dischargeGroup.layout(true);\n\t\t\tthis.dischargeCycleComposite.layout(true);\n\n\t\t\t//updateBatteryParameterValues();\n\t\t\tthis.lastCellSelectionIndex = this.memoryValues[0];\n\t\t}\n\t\telse if (this.memoryValues[0] == 1) {\n\t\t\tswitch (this.device.getDeviceTypeIdentifier()) {\n\t\t\tcase UltraDuoPlus50:\n\t\t\tcase UltraDuoPlus60:\n\t\t\t\tif (this.stepChargeTabItem == null || this.stepChargeTabItem.isDisposed()) initStepChargeTab();\n\t\t\t\tthis.stepChargeComposite.setStepChargeValues(this.memoryValues[2], this.memoryValues[6], this.memoryStepValues);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, GDE.STRING_EXIT);\n\t}",
"private void setTEMparsFromRunner(){\n\t\t\n\t\tString fdummy=\" \";\n\t\t\n\t\tsoipar_cal sbcalpar = new soipar_cal();\n\t\tvegpar_cal vbcalpar = new vegpar_cal();\t\n\t\t\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_CMAX, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setCmax(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_NMAX, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setNmax(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_CFALL, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setCfall(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_NFALL, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setNfall(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KRB, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setKrb(Float.valueOf(fdummy));\n\t\t\t\t\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCFIB, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdcfib(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCHUM, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdchum(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCMIN, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdcmin(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCSLOW, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdcslow(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_NUP, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setNup(Float.valueOf(fdummy));\n\t\t\n\t\tif (fdummy!=\" \") TEM.runcht.cht.resetCalPar(vbcalpar, sbcalpar);\n\n\t\t//\n\t\tsoipar_bgc sbbgcpar = new soipar_bgc();\n\t\tvegpar_bgc vbbgcpar = new vegpar_bgc();\n\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m1, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM1(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m2, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM2(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m3, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM3(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m4, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM4(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_fsoma, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setFsoma(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_fsompr, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setFsompr(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_fsomcr, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setFsomcr(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_som2co2, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setSom2co2(Float.valueOf(fdummy));\n\t\t\n\t\tif (fdummy!=\" \") TEM.runcht.cht.resetBgcPar(vbbgcpar, sbbgcpar);\n\t\t\t\t\n\t}",
"public static native void OpenMM_AmoebaOutOfPlaneBendForce_setOutOfPlaneBendParameters(PointerByReference target, int index, int particle1, int particle2, int particle3, int particle4, double k);"
] | [
"0.65090424",
"0.6034739",
"0.5749968",
"0.5636031",
"0.5595032",
"0.5494649",
"0.5412343",
"0.5348469",
"0.53454643",
"0.5339448",
"0.53313017",
"0.53016484",
"0.5294289",
"0.5285146",
"0.5247175",
"0.5222087",
"0.5214259",
"0.5207063",
"0.5205761",
"0.5196084",
"0.51956767",
"0.51883775",
"0.51669633",
"0.5160281",
"0.5160281",
"0.5156161",
"0.51508796",
"0.5145685",
"0.5139879",
"0.51366836",
"0.51356727",
"0.5114058",
"0.5112839",
"0.51019406",
"0.5092137",
"0.5081561",
"0.5079879",
"0.506479",
"0.5058669",
"0.5056134",
"0.5044463",
"0.5037573",
"0.5035441",
"0.5025798",
"0.501506",
"0.50034803",
"0.49947834",
"0.4993384",
"0.49923947",
"0.49761918",
"0.4973953",
"0.49704248",
"0.49652",
"0.4957329",
"0.4946864",
"0.4943465",
"0.4935383",
"0.4930221",
"0.49301863",
"0.49278137",
"0.4918795",
"0.4914157",
"0.49099633",
"0.49028412",
"0.4901346",
"0.48958132",
"0.48873666",
"0.48868284",
"0.4870905",
"0.48703763",
"0.48667482",
"0.4862186",
"0.48523584",
"0.4848061",
"0.48474935",
"0.48429555",
"0.4839619",
"0.4834564",
"0.48257437",
"0.48226544",
"0.48221827",
"0.48200637",
"0.48176074",
"0.48175204",
"0.4813027",
"0.48113415",
"0.48052192",
"0.4803692",
"0.4798692",
"0.47977734",
"0.47854695",
"0.4781283",
"0.47810957",
"0.47764295",
"0.47748286",
"0.47703704",
"0.47613415",
"0.47582877",
"0.4757501",
"0.47535473"
] | 0.5995953 | 2 |
/ default set k = 1.2f, b = 0.75f | public BM25Similarity(){
this.b = 0.75f;
this.k = 1.2f;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BM25Similarity(float b, float k){\n this.b = b;\n this.k = k;\n }",
"public String ballColor(long r, long g, long b, long k) {\n if (r == 0 && g == 0) return COLOR.BLUE.toString();\n else if (r == 0 && b == 0) return COLOR.GREEN.toString();\n else if (g == 0 && b == 0) return COLOR.RED.toString();\n\n // min * 3 > k ==> in the min ranges\n // min * 3 < k ==> further calc\n long minVal = min(min(r, g), b);\n if (minVal != 0 && minVal * 3 > k) {\n long temp = k % 3;\n if (temp == 0) return COLOR.BLUE.toString();\n else if (temp == 1) return COLOR.RED.toString();\n else return COLOR.GREEN.toString();\n }\n\n // substract minVal each\n r -= minVal;\n g -= minVal;\n b -= minVal;\n k -= minVal * 3;\n if (k == 0) {\n return COLOR.BLUE.toString();\n }\n\n // check the rest two\n int maximum = 0, maxless = 0;\n if (r == 0) {\n if (g > b) {\n long min = min(g, b);\n if (min * 2 > k) {\n long temp = k % 2;\n if (temp == 0) return COLOR.BLUE.toString();\n else return COLOR.GREEN.toString();\n } else return COLOR.GREEN.toString();\n } else {\n // blue is larger\n long min = min(g, b);\n if (min * 2 > k) {\n long temp = k % 2;\n if (temp == 0) return COLOR.BLUE.toString();\n else return COLOR.GREEN.toString();\n } else return COLOR.BLUE.toString();\n }\n } else if (g == 0) {\n if (r > b) {\n long min = min(r, b);\n if (min * 2 > k) {\n long temp = k % 2;\n if (temp == 0) return COLOR.BLUE.toString();\n else return COLOR.RED.toString();\n } else return COLOR.RED.toString();\n } else {\n // blue is larger\n long min = min(r, b);\n if (min * 2 > k) {\n long temp = k % 2;\n if (temp == 0) return COLOR.BLUE.toString();\n else return COLOR.RED.toString();\n } else return COLOR.BLUE.toString();\n }\n } else {\n // b == 0\n if (r > g) {\n long min = min(r, g);\n if (min * 2 > k) {\n long temp = k % 2;\n if (temp == 0) return COLOR.GREEN.toString();\n else return COLOR.RED.toString();\n } else return COLOR.RED.toString();\n } else {\n long min = min(r, g);\n if (min * 2 > k) {\n long temp = k % 2;\n if (temp == 0) return COLOR.GREEN.toString();\n else return COLOR.RED.toString();\n } else return COLOR.GREEN.toString();\n }\n }\n\n }",
"void mo9703b(float f, float f2);",
"public void k() {\n float f2 = BitmapDescriptorFactory.HUE_RED;\n for (float f3 : this.i) {\n if (f3 > BitmapDescriptorFactory.HUE_RED) {\n f2 += f3;\n }\n }\n if (f2 != BitmapDescriptorFactory.HUE_RED) {\n int length = this.i.length;\n for (int i2 = 0; i2 < length; i2++) {\n float[] fArr = this.i;\n if (fArr[i2] > BitmapDescriptorFactory.HUE_RED) {\n fArr[i2] = fArr[i2] / f2;\n }\n }\n }\n }",
"public void b(float paramFloat)\n/* */ {\n/* 208 */ this.j.g = this.c.g;\n/* 209 */ this.j.f = this.c.f;\n/* 210 */ this.j.c = 0.0F;\n/* 211 */ this.j.d = 0.0F;\n/* 212 */ this.j.a(paramFloat);\n/* */ }",
"public void reconfigure(double cf) {\n if (cf > 20000) {\n cf = 20000;\n } else if (cf < 20) {\n cf = 20;\n }\n Q = (Q == 0) ? 1e-9 : Q;\n center_freq = cf;\n // only used for peaking and shelving filters\n gain_abs = Math.pow(10, gainDB / 40);\n double omega = 2 * Math.PI * cf / sample_rate;\n double sn = Math.sin(omega);\n double cs = Math.cos(omega);\n double alpha = sn / (2 * Q);\n double beta = Math.sqrt(gain_abs + gain_abs);\n switch (type) {\n case BANDPASS:\n b0 = alpha;\n b1 = 0;\n b2 = -alpha;\n a0 = 1 + alpha;\n a1 = -2 * cs;\n a2 = 1 - alpha;\n break;\n case LOWPASS:\n b0 = (1 - cs) / 2;\n b1 = 1 - cs;\n b2 = (1 - cs) / 2;\n a0 = 1 + alpha;\n a1 = -2 * cs;\n a2 = 1 - alpha;\n break;\n case HIGHPASS:\n b0 = (1 + cs) / 2;\n b1 = -(1 + cs);\n b2 = (1 + cs) / 2;\n a0 = 1 + alpha;\n a1 = -2 * cs;\n a2 = 1 - alpha;\n break;\n case NOTCH:\n b0 = 1;\n b1 = -2 * cs;\n b2 = 1;\n a0 = 1 + alpha;\n a1 = -2 * cs;\n a2 = 1 - alpha;\n break;\n case PEAK:\n b0 = 1 + (alpha * gain_abs);\n b1 = -2 * cs;\n b2 = 1 - (alpha * gain_abs);\n a0 = 1 + (alpha / gain_abs);\n a1 = -2 * cs;\n a2 = 1 - (alpha / gain_abs);\n break;\n case LOWSHELF:\n b0 = gain_abs * ((gain_abs + 1) - (gain_abs - 1) * cs + beta * sn);\n b1 = 2 * gain_abs * ((gain_abs - 1) - (gain_abs + 1) * cs);\n b2 = gain_abs * ((gain_abs + 1) - (gain_abs - 1) * cs - beta * sn);\n a0 = (gain_abs + 1) + (gain_abs - 1) * cs + beta * sn;\n a1 = -2 * ((gain_abs - 1) + (gain_abs + 1) * cs);\n a2 = (gain_abs + 1) + (gain_abs - 1) * cs - beta * sn;\n break;\n case HIGHSHELF:\n b0 = gain_abs * ((gain_abs + 1) + (gain_abs - 1) * cs + beta * sn);\n b1 = -2 * gain_abs * ((gain_abs - 1) + (gain_abs + 1) * cs);\n b2 = gain_abs * ((gain_abs + 1) + (gain_abs - 1) * cs - beta * sn);\n a0 = (gain_abs + 1) - (gain_abs - 1) * cs + beta * sn;\n a1 = 2 * ((gain_abs - 1) - (gain_abs + 1) * cs);\n a2 = (gain_abs + 1) - (gain_abs - 1) * cs - beta * sn;\n break;\n }\n // prescale flter constants\n b0 /= a0;\n b1 /= a0;\n b2 /= a0;\n a1 /= a0;\n a2 /= a0;\n }",
"private static double fInterp(double k) {\n return (1.0 - Math.cos(k * Math.PI)) / 2.0;\n }",
"void mo9704b(float f, float f2, int i);",
"public static final void setKF(float[] k_f) {\r\n\t\tK_F = k_f;\r\n\t}",
"@Test\n @Tag(\"bm1000\")\n public void testKB2() {\n CuteNetlibCase.doTest(\"KB2.SIF\", \"-1.74990012991E+03\", \"0.0\", NumberContext.of(7, 4));\n }",
"private void colorBricks(GRect block,int k) {\n\n\t\tif (k < 2) block.setFillColor(Color.RED);\n\t\telse if (k >= 2 && k < 4) block.setFillColor(Color.ORANGE);\n\t\telse if (k >= 4 && k < 6) block.setFillColor(Color.YELLOW);\n\t\telse if (k >= 6 && k < 8) block.setFillColor(Color.GREEN);\n\t\telse if (k >= 8 && k < 10) block.setFillColor(Color.CYAN);\n\t}",
"public HyperbolicTangentThresholdModel(double p_k){\n\t\tsuper(p_k);\n\t}",
"void mo9705c(float f, float f2);",
"private void m113395b(float f) {\n float abs = Math.abs(f);\n if (abs < 350.0f) {\n this.f91930a.f92028d = 255.0f - ((abs / 350.0f) * 25.0f);\n } else {\n this.f91930a.f92028d = 230.0f - ((((abs - 350.0f) * 1.35f) / ((float) this.f91930a.getHeight())) * 255.0f);\n }\n C35169i iVar = this.f91930a;\n float f2 = 0.0f;\n if (this.f91930a.f92028d >= 0.0f) {\n f2 = this.f91930a.f92028d;\n }\n iVar.f92028d = f2;\n }",
"protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }",
"float getB();",
"Bitmap mo1406a(Bitmap bitmap, float f);",
"float getBoost();",
"public void b(Float f) {\n ((b.b) this.b).b(f);\n }",
"public void setB(double b){\n this.b=b;\n }",
"public double blending(double u, int n, int k) {\n // Insert your code here\n return coeff(n, k) * Math.pow(u, k) * Math.pow(1 - u, n - k);\n }",
"public void a(float paramFloat, int paramInt)\r\n/* 15: */ {\r\n/* 16:132 */ bsu.z().N().a(bvo.a);\r\n/* 17:133 */ bub.a(0, 0, 128.0F, 0.0F, 16, 16, 256.0F, 256.0F);\r\n/* 18: */ }",
"public void setParameter(float b) {\r\n\t\tthis.b = b;\r\n\t}",
"void mo9696a(float f, float f2, int i);",
"private void computeHermiteCoefficients (KBKeyFrame kf0,\r\n KBKeyFrame kf1,\r\n KBKeyFrame kf2,\r\n KBKeyFrame kf3) {\r\n\r\n\r\n Point3f deltaP = new Point3f();\r\n Point3f deltaS = new Point3f();\r\n float deltaH;\r\n float deltaT;\r\n float deltaB;\r\n\r\n // Find the difference in position and scale \r\n deltaP.x = kf2.position.x - kf1.position.x;\r\n deltaP.y = kf2.position.y - kf1.position.y;\r\n deltaP.z = kf2.position.z - kf1.position.z;\r\n\r\n deltaS.x = kf2.scale.x - kf1.scale.x;\r\n deltaS.y = kf2.scale.y - kf1.scale.y;\r\n deltaS.z = kf2.scale.z - kf1.scale.z;\r\n\r\n // Find the difference in heading, pitch, and bank\r\n deltaH = kf2.heading - kf1.heading;\r\n deltaT = kf2.pitch - kf1.pitch;\r\n deltaB = kf2.bank - kf1.bank;\r\n \r\n // Incoming Tangent\r\n Point3f dd_pos = new Point3f();\r\n Point3f dd_scale = new Point3f();\r\n float dd_heading, dd_pitch, dd_bank;\r\n\r\n // If this is the first keyframe of the animation \r\n if (kf0.knot == kf1.knot) {\r\n\r\n float ddab = 0.5f * (dda + ddb);\r\n\r\n // Position\r\n dd_pos.x = ddab * deltaP.x;\r\n dd_pos.y = ddab * deltaP.y;\r\n dd_pos.z = ddab * deltaP.z;\r\n\r\n // Scale \r\n dd_scale.x = ddab * deltaS.x;\r\n dd_scale.y = ddab * deltaS.y;\r\n dd_scale.z = ddab * deltaS.z;\r\n\r\n // Heading, Pitch and Bank\r\n dd_heading = ddab * deltaH;\r\n dd_pitch = ddab * deltaT;\r\n dd_bank = ddab * deltaB;\r\n\r\n } else {\r\n\r\n float adj0 = (kf1.knot - kf0.knot)/(kf2.knot - kf0.knot);\r\n\r\n // Position\r\n dd_pos.x = adj0 * \r\n ((ddb * deltaP.x) + (dda * (kf1.position.x - kf0.position.x)));\r\n dd_pos.y = adj0 *\r\n ((ddb * deltaP.y) + (dda * (kf1.position.y - kf0.position.y)));\r\n dd_pos.z = adj0 * \r\n ((ddb * deltaP.z) + (dda * (kf1.position.z - kf0.position.z)));\r\n\r\n // Scale \r\n dd_scale.x = adj0 * \r\n ((ddb * deltaS.x) + (dda * (kf1.scale.x - kf0.scale.x)));\r\n dd_scale.y = adj0 * \r\n ((ddb * deltaS.y) + (dda * (kf1.scale.y - kf0.scale.y)));\r\n dd_scale.z = adj0 * \r\n ((ddb * deltaS.z) + (dda * (kf1.scale.z - kf0.scale.z)));\r\n\r\n // Heading, Pitch and Bank\r\n dd_heading = adj0 * \r\n ((ddb * deltaH) + (dda * (kf1.heading - kf0.heading)));\r\n dd_pitch = adj0 * \r\n ((ddb * deltaT) + (dda * (kf1.pitch - kf0.pitch)));\r\n dd_bank = adj0 * \r\n ((ddb * deltaB) + (dda * (kf1.bank - kf0.bank)));\r\n }\r\n \r\n // Outgoing Tangent\r\n Point3f ds_pos = new Point3f();\r\n Point3f ds_scale = new Point3f();\r\n float ds_heading, ds_pitch, ds_bank;\r\n\r\n // If this is the last keyframe of the animation \r\n if (kf2.knot == kf3.knot) {\r\n\r\n float dsab = 0.5f * (dsa + dsb);\r\n\r\n // Position\r\n ds_pos.x = dsab * deltaP.x;\r\n ds_pos.y = dsab * deltaP.y;\r\n ds_pos.z = dsab * deltaP.z;\r\n \r\n // Scale\r\n ds_scale.x = dsab * deltaS.x;\r\n ds_scale.y = dsab * deltaS.y;\r\n ds_scale.z = dsab * deltaS.z;\r\n\r\n // Heading, Pitch and Bank\r\n ds_heading = dsab * deltaH;\r\n ds_pitch = dsab * deltaT;\r\n ds_bank = dsab * deltaB;\r\n\r\n } else {\r\n\r\n float adj1 = (kf2.knot - kf1.knot)/(kf3.knot - kf1.knot);\r\n\r\n // Position\r\n ds_pos.x = adj1 * \r\n ((dsb * (kf3.position.x - kf2.position.x)) + (dsa * deltaP.x));\r\n ds_pos.y = adj1 * \r\n ((dsb * (kf3.position.y - kf2.position.y)) + (dsa * deltaP.y));\r\n ds_pos.z = adj1 * \r\n ((dsb * (kf3.position.z - kf2.position.z)) + (dsa * deltaP.z));\r\n\r\n // Scale\r\n ds_scale.x = adj1 * \r\n ((dsb * (kf3.scale.x - kf2.scale.x)) + (dsa * deltaS.x));\r\n ds_scale.y = adj1 * \r\n ((dsb * (kf3.scale.y - kf2.scale.y)) + (dsa * deltaS.y));\r\n ds_scale.z = adj1 * \r\n ((dsb * (kf3.scale.z - kf2.scale.z)) + (dsa * deltaS.z));\r\n\r\n // Heading, Pitch and Bank \r\n ds_heading = adj1 * \r\n ((dsb * (kf3.heading - kf2.heading)) + (dsa * deltaH));\r\n ds_pitch = adj1 * \r\n ((dsb * (kf3.pitch - kf2.pitch)) + (dsa * deltaT));\r\n ds_bank = adj1 * \r\n ((dsb * (kf3.bank - kf2.bank)) + (dsa * deltaB));\r\n }\r\n\r\n // Calculate the coefficients of the polynomial for position\r\n c0 = new Point3f();\r\n c0.x = kf1.position.x;\r\n c0.y = kf1.position.y;\r\n c0.z = kf1.position.z;\r\n\r\n c1 = new Point3f();\r\n c1.x = dd_pos.x;\r\n c1.y = dd_pos.y;\r\n c1.z = dd_pos.z;\r\n\r\n c2 = new Point3f();\r\n c2.x = 3*deltaP.x - 2*dd_pos.x - ds_pos.x;\r\n c2.y = 3*deltaP.y - 2*dd_pos.y - ds_pos.y;\r\n c2.z = 3*deltaP.z - 2*dd_pos.z - ds_pos.z;\r\n\r\n c3 = new Point3f();\r\n c3.x = -2*deltaP.x + dd_pos.x + ds_pos.x;\r\n c3.y = -2*deltaP.y + dd_pos.y + ds_pos.y;\r\n c3.z = -2*deltaP.z + dd_pos.z + ds_pos.z;\r\n\r\n // Calculate the coefficients of the polynomial for scale \r\n e0 = new Point3f();\r\n e0.x = kf1.scale.x;\r\n e0.y = kf1.scale.y;\r\n e0.z = kf1.scale.z;\r\n\r\n e1 = new Point3f();\r\n e1.x = dd_scale.x;\r\n e1.y = dd_scale.y;\r\n e1.z = dd_scale.z;\r\n\r\n e2 = new Point3f();\r\n e2.x = 3*deltaS.x - 2*dd_scale.x - ds_scale.x;\r\n e2.y = 3*deltaS.y - 2*dd_scale.y - ds_scale.y;\r\n e2.z = 3*deltaS.z - 2*dd_scale.z - ds_scale.z;\r\n\r\n e3 = new Point3f();\r\n e3.x = -2*deltaS.x + dd_scale.x + ds_scale.x;\r\n e3.y = -2*deltaS.y + dd_scale.y + ds_scale.y;\r\n e3.z = -2*deltaS.z + dd_scale.z + ds_scale.z;\r\n\r\n // Calculate the coefficients of the polynomial for heading, pitch \r\n // and bank\r\n h0 = kf1.heading;\r\n p0 = kf1.pitch;\r\n b0 = kf1.bank;\r\n\r\n h1 = dd_heading;\r\n p1 = dd_pitch;\r\n b1 = dd_bank;\r\n\r\n h2 = 3*deltaH - 2*dd_heading - ds_heading;\r\n p2 = 3*deltaT - 2*dd_pitch - ds_pitch;\r\n b2 = 3*deltaB - 2*dd_bank - ds_bank;\r\n\r\n h3 = -2*deltaH + dd_heading + ds_heading;\r\n p3 = -2*deltaT + dd_pitch + ds_pitch;\r\n b3 = -2*deltaB + dd_bank + ds_bank;\r\n }",
"public void setB(double value) {\n this.b = value;\n }",
"private double gaussprob(int k, double r)\n\t{\n\t\treturn \tMath.exp( -0.5*Math.pow( ((double)k-r)/data_bg_std , 2 ) ) * \n\t\t\t\tMath.pow( 2*Math.PI, -0.5 ) / data_bg_std;\n\t}",
"void mo9694a(float f, float f2);",
"public void byConstant(double k){\r\n if (k<0){\r\n double aux = firstExtreme;\r\n firstExtreme = k*secondExtreme;\r\n secondExtreme = k*aux;\r\n }else{\r\n firstExtreme = k*firstExtreme;\r\n secondExtreme = k*secondExtreme;\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tdouble[] x = new double[SIZE];\r\n\t\tdouble[] y = new double[SIZE];\r\n\t\tdouble[] a = new double[SIZE];\r\n\t\tdouble[] b = new double[SIZE];\r\n\t\tdouble[] c = new double[SIZE];\r\n\t\tdouble[] d = new double[SIZE];\r\n\t\tdouble[] ksi = new double[SIZE];\r\n\t\tdouble[] eta = new double[SIZE];\r\n\t\tdouble hPow2 = Math.pow(h, 2);\r\n\t\tdouble alpha0 = -1.95, alpha1 = 2.0;\r\n\t\tdouble A1 = 0.0, B1 = -6.02;\r\n\t\tdouble beta0 = -1.2, beta1 = 1.0;\r\n\t\tksi[1] = -(alpha1/alpha0);\r\n\t\teta[1] = -(A1/alpha0);\r\n\t\tfor(int k = 1; k < SIZE; k++){\r\n\t\t\ta[k] = 1.0;\r\n\t\t\tx[k] = A + k*h;\r\n\t\t\tb[k] = 2 + hPow2*(x[k]+1);\r\n\t\t\tc[k] = 1.0;\r\n\t\t\td[k] = hPow2*(Math.pow(x[k],5)+Math.pow(x[k],3)-6*x[k]);\r\n\t\t\tif(k!=SIZE-1){\r\n\t\t\t\tksi[k+1] = (c[k])/(b[k]-ksi[k]*c[k]);\r\n\t\t\t\teta[k+1] = (a[k]*eta[k]-d[k])/(b[k]-ksi[k]*c[k]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tint n = SIZE - 1;\r\n\t\ty[n] = (B1-beta0*eta[n])/(beta1+beta0*ksi[n]);\r\n\t\tfor(int k = n-1; k > 0; k--){\r\n\t\t\ty[k] = ksi[k+1]*y[k+1] + eta[k+1];\r\n\t\t\tSystem.out.print(\"ksi: \" + ksi[k] + \" eta: \" + eta[k] + \" y: \"+ y[k]);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"dkk mo4508f();",
"void mo34547J(float f, float f2);",
"public void setBh(Float bh) {\r\n this.bh = bh;\r\n }",
"void bucketSort(float arr[], int k) {\r\n \tif(k<=0)\r\n \t\treturn;\r\n \t\r\n \tLinkedList<Float> buckets[] = new LinkedList[k];\r\n \tfor(int i=0; i<k; i++) {\r\n \t\tbuckets[i]= new LinkedList<Float>();\r\n \t}\r\n \tfor(int i=0; i<arr.length; i++) {\r\n \t\tfloat index=arr[i]*k;\r\n \t\tbuckets[(int)index].add(arr[i]);\r\n \t}\r\n \tfor(int i=0; i<k; i++) {\r\n \t\tCollections.sort(buckets[i]);\r\n \t}\r\n \tint index=0;\r\n \tfor(int i=0;i<k; i++) {\r\n \t\tfor(int j=0; j<buckets[i].size(); j++) {\r\n \t\t\tarr[index++]=buckets[i].get(j);\r\n \t\t}\r\n \t}\r\n }",
"public bty(bto parambto, oa paramoa, cug paramcug, boolean paramBoolean)\r\n/* 40: */ {\r\n/* 41: 55 */ this.g = paramoa;\r\n/* 42: 56 */ this.h = paramcug;\r\n/* 43: 57 */ this.k = paramBoolean;\r\n/* 44: */ \r\n/* 45: 59 */ paramcug.a(this.g);\r\n/* 46: 62 */ for (int i1 = 0; i1 < 32; i1++)\r\n/* 47: */ {\r\n/* 48: 63 */ int i2 = (i1 >> 3 & 0x1) * 85;\r\n/* 49: 64 */ int i3 = (i1 >> 2 & 0x1) * 170 + i2;\r\n/* 50: 65 */ int i4 = (i1 >> 1 & 0x1) * 170 + i2;\r\n/* 51: 66 */ int i5 = (i1 >> 0 & 0x1) * 170 + i2;\r\n/* 52: 68 */ if (i1 == 6) {\r\n/* 53: 69 */ i3 += 85;\r\n/* 54: */ }\r\n/* 55: 72 */ if (parambto.e)\r\n/* 56: */ {\r\n/* 57: 73 */ int i6 = (i3 * 30 + i4 * 59 + i5 * 11) / 100;\r\n/* 58: 74 */ int i7 = (i3 * 30 + i4 * 70) / 100;\r\n/* 59: 75 */ int i8 = (i3 * 30 + i5 * 70) / 100;\r\n/* 60: 76 */ i3 = i6;\r\n/* 61: 77 */ i4 = i7;\r\n/* 62: 78 */ i5 = i8;\r\n/* 63: */ }\r\n/* 64: 81 */ if (i1 >= 16)\r\n/* 65: */ {\r\n/* 66: 82 */ i3 /= 4;\r\n/* 67: 83 */ i4 /= 4;\r\n/* 68: 84 */ i5 /= 4;\r\n/* 69: */ }\r\n/* 70: 87 */ this.f[i1] = ((i3 & 0xFF) << 16 | (i4 & 0xFF) << 8 | i5 & 0xFF);\r\n/* 71: */ }\r\n/* 72: 90 */ d();\r\n/* 73: */ }",
"public void set_knots_bezier() {\n int segments = nr_of_segments;\n int nr_of_points = points_per_segment;\n int i;\n surface_type = 1;\n\n u[0] = 0;\n u[1] = 0;\n u[2] = 0;\n u[3] = 0;\n v[0] = 0;\n v[1] = 0;\n v[2] = 0;\n v[3] = 0;\n\n for (i = 4; i < segments - 4; i = i + 3) {\n u[i] = (i - 1) / 3;\n u[i + 1] = (i - 1) / 3;\n u[i + 2] = (i - 1) / 3;\n }\n\n for (i = 4; i < nr_of_points - 4; i = i + 3) {\n v[i] = (i - 1) / 3;\n v[i + 1] = (i - 1) / 3;\n v[i + 2] = (i - 1) / 3;\n }\n\n u[segments - 4] = (segments - 5) / 3;\n u[segments - 3] = (segments - 5) / 3;\n u[segments - 2] = (segments - 5) / 3;\n u[segments - 1] = (segments - 5) / 3;\n\n v[nr_of_points - 4] = (nr_of_points - 5) / 3;\n v[nr_of_points - 3] = (nr_of_points - 5) / 3;\n v[nr_of_points - 2] = (nr_of_points - 5) / 3;\n v[nr_of_points - 1] = (nr_of_points - 5) / 3;\n\n }",
"public void setB(String units,float value){\r\n\t\t//this.addChild(new PointingMetadata(\"lat\",\"\"+latitude));\r\n\t\tthis.setFloatField(\"b\", value);\r\n\t\tthis.setUnit(\"b\", units);\r\n\t}",
"public BloomFilter(double c, int n, int k) {\r\n\t\tthis.expectedNumberOfFilterElements = n;\r\n\t\tthis.k = k;\r\n\t\tthis.bitsPerElement = c;\r\n\t\tthis.bitSetSize = (int) Math.ceil(c * n);\r\n\t\tnumberOfAddedElements = 0;\r\n\t\tthis.bitset = new BitSet(bitSetSize);\r\n\t\ttry {\r\n\t\t\tdigestFunction.getInstance(\"MD5\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"double getDegreesCoolingPerMBPerK();",
"private static void m147525a(VKApiPhotoSize vKApiPhotoSize, float f, int i, int i2) {\n if (f > 1.0f) {\n vKApiPhotoSize.f121136b = i;\n vKApiPhotoSize.f121137c = (int) (((float) vKApiPhotoSize.f121136b) / f);\n return;\n }\n vKApiPhotoSize.f121137c = i2;\n vKApiPhotoSize.f121136b = (int) (((float) vKApiPhotoSize.f121137c) * f);\n }",
"private void blpf(Complex[] F, int width, int height) {\r\n\t\tint centerY = width / 2;\r\n\t\tint centerX = height / 2;\r\n\t\tint D0 = 30;\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t\tdouble value = 0;\r\n \r\n\t\tfor (int y = 0; y < width; y++)\r\n {\r\n for (int x = 0; x < height; x++)\r\n {\r\n int distance = (int)(Math.pow(x-centerX, 2)+Math.pow(y-centerY, 2));\r\n value = distance/Math.pow(D0, 2);\r\n value = value+1;\r\n value = 1/value;\r\n\r\n F[x*width+y] = F[x*width+y].mul(value); \r\n \r\n\t\t \t\t\t}\r\n }\t\t\r\n\t}",
"private int b(String paramString, float paramFloat1, float paramFloat2, int paramInt, boolean paramBoolean)\r\n/* 426: */ {\r\n/* 427:421 */ if (paramString == null) {\r\n/* 428:422 */ return 0;\r\n/* 429: */ }\r\n/* 430:424 */ if (this.l) {\r\n/* 431:425 */ paramString = c(paramString);\r\n/* 432: */ }\r\n/* 433:428 */ if ((paramInt & 0xFC000000) == 0) {\r\n/* 434:429 */ paramInt |= 0xFF000000;\r\n/* 435: */ }\r\n/* 436:432 */ if (paramBoolean) {\r\n/* 437:433 */ paramInt = (paramInt & 0xFCFCFC) >> 2 | paramInt & 0xFF000000;\r\n/* 438: */ }\r\n/* 439:436 */ this.m = ((paramInt >> 16 & 0xFF) / 255.0F);\r\n/* 440:437 */ this.n = ((paramInt >> 8 & 0xFF) / 255.0F);\r\n/* 441:438 */ this.o = ((paramInt & 0xFF) / 255.0F);\r\n/* 442:439 */ this.p = ((paramInt >> 24 & 0xFF) / 255.0F);\r\n/* 443: */ \r\n/* 444:441 */ cjm.c(this.m, this.n, this.o, this.p);\r\n/* 445: */ \r\n/* 446:443 */ this.i = paramFloat1;\r\n/* 447:444 */ this.j = paramFloat2;\r\n/* 448:445 */ a(paramString, paramBoolean);\r\n/* 449: */ \r\n/* 450:447 */ return (int)this.i;\r\n/* 451: */ }",
"private float deadBand(float f) {\r\n\t\t// The K joypad seems to need a little more dead band to prevent\r\n\t\t// creep.\r\n\t\tif (f > -0.01f && f < 0.01f) {\r\n\t\t\treturn 0.0f;\r\n\t\t}\r\n\t\treturn f;\r\n\t}",
"public cvt(cwk paramcwk)\r\n/* 24: */ {\r\n/* 25: 29 */ this.f = paramcwk;\r\n/* 26: */ }",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"protected void o()\r\n/* 156: */ {\r\n/* 157:179 */ int i = 15 - aib.b(this);\r\n/* 158:180 */ float f = 0.98F + i * 0.001F;\r\n/* 159: */ \r\n/* 160:182 */ this.xVelocity *= f;\r\n/* 161:183 */ this.yVelocity *= 0.0D;\r\n/* 162:184 */ this.zVelocity *= f;\r\n/* 163: */ }",
"void mo9695a(float f, float f2, float f3, float f4, float f5);",
"void mo196b(float f) throws RemoteException;",
"static double k1(final double x) {\n final double z = 0.5 * x;\n if (z <= 0) {\n return Double.NaN;\n }\n if (x <= 2) {\n return Math.log(z) * Bessel.i1(x) + chebyshev(x * x - 2, K1A) / x;\n }\n return Math.exp(-x) * chebyshev(8 / x - 2, K1B) / Math.sqrt(x);\n }",
"static void set_bnd ( int N, int b, double[] x )\r\n{\nint i;\r\nfor ( i=1 ; i<=N ; i++ ) {\r\nx[getIndex(0 ,i)] = b==1 ? -x[getIndex(1,i)] : x[getIndex(1,i)];\r\nx[getIndex(N+1,i)] = b==1 ? -x[getIndex(N,i)] : x[getIndex(N,i)];\r\nx[getIndex(i,0 )] = b==2 ? -x[getIndex(i,1)] : x[getIndex(i,1)];\r\nx[getIndex(i,N+1)] = b==2 ? -x[getIndex(i,N)] : x[getIndex(i,N)];\r\n}\r\nx[getIndex(0 ,0 )] = 0.5f*(x[getIndex(1,0 )]+x[getIndex(0 ,1)]);\r\nx[getIndex(0 ,N+1)] = 0.5f*(x[getIndex(1,N+1)]+x[getIndex(0 ,N )]);\r\nx[getIndex(N+1,0 )] = 0.5f*(x[getIndex(N,0 )]+x[getIndex(N+1,1)]);\r\nx[getIndex(N+1,N+1)] = 0.5f*(x[getIndex(N,N+1)]+x[getIndex(N+1,N )]);\r\n\r\n//System.out.println(\"dopo\");\r\n//draw_dens ( N, x );\r\n}",
"private void testDifferentKValues()\r\n\t{\r\n\t\tLinkedHashMap<Integer, LinkedHashMap<Integer, Double>> energies;\r\n\r\n\t\tif (isEType) {\r\n\t\t\tenergies = ENERGIES_E;\r\n\t\t} else {\r\n\t\t\tenergies = ENERGIES_A;\r\n\t\t}\r\n\r\n\t\tfor (Map.Entry<Integer, LinkedHashMap<Integer, Double>> entry : energies.entrySet()) {\r\n\t\t\t\r\n\t\t\titerationsGoneThrough++;\r\n\t\t\tint percent = (int) ((iterationsGoneThrough / numberOfKIterations) * 80 + 20);\r\n\t\t\tmultiThreadingObj.myPublish(\"msg Generating assignments: \" + percent + \"%\");\r\n\t\t\tmultiThreadingObj.myPublish(\"val \" + percent);\r\n\t\t\t\r\n\t\t\tcurrentK = entry.getKey();\r\n\t\t\tenergiesForCurrentK = entry.getValue();\r\n\t\t\t\r\n\t\t\ttestDifferentJRangesForConstantK();\r\n\t\t}\r\n\t}",
"private static void m147527b(VKApiPhotoSize vKApiPhotoSize, float f, int i) {\n m147524a(vKApiPhotoSize, Math.min(1.5f, f), i);\n }",
"private static void setParameters(CollisionShape shape, float b) {\n boolean flag = (b > 0.15f && b < 0.45f);\n shape.setContactFilterEnabled(flag);\n }",
"float getBatt();",
"private BandPassFilter constructBPF(float r) {\n float width = 0.20f/r;\n BandPassFilter bpf = new BandPassFilter(0.0,0.5/r,width,0.01);\n return bpf;\n }",
"public void setBandWidth(double b) {\n\t\tbw = b / _mySampleRate;\n\t}",
"private int K(int t)\n {\n if(t<=19)\n return 0x5a827999;\n else if(t<=39)\n return 0x6ed9eba1;\n else if(t<=59)\n return 0x8f1bbcdc;\n else \n return 0xca62c1d6;\n }",
"private void giveTriangularBranchesHeaders(ArrayList<Map<Integer, Double>> branches, int kOffset)\r\n\t{\r\n\t\tint upperKValue;\r\n\t\tint lowerKValue = Math.abs(currentK + kOffset);\r\n\r\n\t\tif (kOffset > 0) {\r\n\t\t\tupperKValue = Math.abs(currentK + 1);\r\n\t\t} else {\r\n\t\t\tupperKValue = Math.abs(currentK - 1);\r\n\t\t}\r\n\r\n\t\tif (isEType) {\r\n\t\t\tfindLineMatchesFromPredictions(branches,\r\n\t\t\t\t\t\"R (Upper state K=\" + upperKValue + \", Lower state K=\" + lowerKValue + \")\",\r\n\t\t\t\t\t\"P (Upper state K=\" + upperKValue + \", Lower state K=\" + lowerKValue + \")\",\r\n\t\t\t\t\t\"Q (Upper state K=\" + upperKValue + \", Lower state K=\" + lowerKValue + \")\");\r\n\t\t} else {\r\n\t\t\tif (currentK >= 0) {\r\n\t\t\t\tif (IS_EVEN_SELECTION_RULES) {\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches,\r\n\t\t\t\t\t\t\t\"R (Upper state K=\" + upperKValue + \"+, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"+)\",\r\n\t\t\t\t\t\t\t\"P (Upper state K=\" + upperKValue + \"+, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"+)\",\r\n\t\t\t\t\t\t\t\"Q (Upper state K=\" + upperKValue + \"-, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"+)\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches,\r\n\t\t\t\t\t\t\t\"R (Upper state K=\" + upperKValue + \"-, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"+\" + \")\",\r\n\t\t\t\t\t\t\t\"P (Upper state K=\" + upperKValue + \"-, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"+\" + \")\",\r\n\t\t\t\t\t\t\t\"Q (Upper state K=\" + upperKValue + \"-, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"-)\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (IS_EVEN_SELECTION_RULES) {\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches,\r\n\t\t\t\t\t\t\t\"R (Upper state K=\" + upperKValue + \"-, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"-)\",\r\n\t\t\t\t\t\t\t\"P (Upper state K=\" + upperKValue + \"-, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"-)\",\r\n\t\t\t\t\t\t\t\"Q (Upper state K=\" + upperKValue + \"+, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"-)\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfindLineMatchesFromPredictions(branches,\r\n\t\t\t\t\t\t\t\"R (Upper state K=\" + upperKValue + \"+, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"-)\",\r\n\t\t\t\t\t\t\t\"P (Upper state K=\" + upperKValue + \"+, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"-)\",\r\n\t\t\t\t\t\t\t\"Q (Upper state K=\" + upperKValue + \"+, Lower state K=\" + lowerKValue\r\n\t\t\t\t\t\t\t\t\t+ \"+)\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setSmooth_factor(double smooth_factor){ \n this.smooth_factor = smooth_factor; \n }",
"public LInfSCBLens(float mm){\n\tsuper(mm);\n }",
"private void setParameters(BetterCharacterControl bcc, float b) {\n bcc.setDuckedFactor(b + 0.01f);\n bcc.setPhysicsDamping(b + 0.08f);\n\n bcc.setJumpForce(new Vector3f(b + 0.05f, b + 0.06f, b + 0.07f));\n bcc.setViewDirection(new Vector3f(b + 0.10f, b + 0.11f, b + 0.12f));\n bcc.setWalkDirection(new Vector3f(b + 0.13f, b + 0.14f, b + 0.15f));\n bcc.setGravity(new Vector3f(b + 0.02f, b + 0.03f, b + 0.04f));\n }",
"static void bucket_partition2(int b_size, LikenessBuckets bk){\n\t\tint parts = b_size/partition_size; //#partitions per bucket\n\t\tfloat ratio; int offsetB; int offsetB2; int offsetP;\n\t\tint chunk_size; int partSA; int partSA2;\n\t\tshort[][] tmpBucket;\n\n\t\tif(parts == 0){\n\t\t\tparts = 1;\n\t\t\tchunk_sizes.add(b_size);\n\t\t}else{\n\t\t\tfor(int i=0; i<parts-1; i++){\n\t\t\t\tchunk_sizes.add(partition_size);\n\t\t\t}\n\t\t\tif ((b_size % partition_size) <= (partition_size/2)){\n\t\t\t\tchunk_sizes.addFirst(partition_size + (b_size % partition_size));\n\t\t\t}else{\n\t\t\t\tparts++;\n\t\t\t\tchunk_sizes.add(partition_size);\n\t\t\t\tchunk_sizes.addLast(b_size % partition_size);\n\t\t\t}\n\t\t}\n\n\t\tfor(int b=0; b<buckNum; b++){//for every bucket\n\t\t\ttmpBucket = new short[bucket_size][dims];\n\t\t\t//tuples of most freq SA:\n\t\t\tArrayList<Integer> chg = bk.changeSA.get(b);\n\t\t\tint first = 0; int last = chg.get(0);\n\t\t\tif((last-first) > 0){ // (last-first+1) > 1.\n\t\t\t\t//System.out.println(\"sorting bucket[\"+b+\"][\"\n\t\t\t\t//\t\t\t\t +first+\"--\"+last+\"]\");\n\t\t\t\tquickSortBucket(first, last, b);\n\t\t\t}\n\t\t\t//remaining tuples:\n\t\t\tif((bucket_size - last) > 3){ // (bucket_size-1 -last-1) > 1.\n\t\t\t\t//System.out.println(\"sorting bucket[\"+b+\"][\"\n\t\t\t\t//\t\t\t\t +(last+1)+\"--\"+(bucket_size-1)+\"]\");\n\t\t\t\tquickSortBucket(last+1, bucket_size-1, b);\n\t\t\t}\n\t\t\toffsetB = 0;\n\t\t\toffsetP = 0;\n\t\t\toffsetB2 = last+1;\n\t\t\tfor(int jj=0; jj<parts; jj++){//for every partition\n\t\t\t\tchunk_size = chunk_sizes.get(jj);\n\t\t\t\t//ratio = ((float)chunk_size) / ((float)bucket_size);\n\t\t\t\t//partSA = Math.round(ratio * ((float)(last-first+1))); //freq SA\n\t\t\t\tpartSA = (int)Math.ceil(((double)(last-offsetB+1)) / ((double)(parts-jj)));\n\t\t\t\tpartSA2 = chunk_size - partSA; //remaining SAs\n\t\t\t\tfor(int j=0; j<partSA; j++){\n\t\t\t\t\ttmpBucket[offsetP + j] = buckets[b][offsetB + j];\n\t\t\t\t}\n\t\t\t\toffsetB += partSA;\n\t\t\t\tfor(int j=0; j<partSA2; j++){\n\t\t\t\t\ttmpBucket[offsetP + partSA + j] = buckets[b][offsetB2 + j];\n\t\t\t\t}\n\t\t\t\toffsetB2 += partSA2;\n\t\t\t\toffsetP += chunk_size;\n\t\t\t}\n\t\t\tbuckets[b] = tmpBucket;\n\t\t}\n\t}",
"@Override\r\n \t\t\tpublic float a2(String x, int b) {\n \t\t\t\treturn 2.5f;\r\n \t\t\t}",
"public Builder setB(float value) {\n bitField0_ |= 0x00000002;\n b_ = value;\n onChanged();\n return this;\n }",
"private void mo3747b() {\n this.f1427B.add(this.f1490s);\n this.f1427B.add(this.f1491t);\n this.f1427B.add(this.f1492u);\n this.f1427B.add(this.f1493v);\n this.f1427B.add(this.f1495x);\n this.f1427B.add(this.f1496y);\n this.f1427B.add(this.f1497z);\n this.f1427B.add(this.f1494w);\n }",
"public void f()\r\n {\r\n float var1 = 0.5F;\r\n float var2 = 0.125F;\r\n float var3 = 0.5F;\r\n this.a(0.5F - var1, 0.5F - var2, 0.5F - var3, 0.5F + var1, 0.5F + var2, 0.5F + var3);\r\n }",
"public void setB_(double b_) {\n\t\tthis.b_ = b_;\n\t}",
"private static RoundingParams m100695c(ICatalogVHRightTopTag fVar, CatalogVHData bVar) {\n RoundingParams b = RoundingParams.m21228b(0.0f, (float) m100696d(fVar, bVar), 0.0f, 0.0f);\n C32569u.m150513a((Object) b, \"RoundingParams.fromCorne…Float(), 0F, 0F\\n )\");\n return b;\n }",
"public static double saturation(double value, double k) {\n return value / (k + value);\n }",
"public void a(zf zfVar, Canvas canvas, float f, float f2) {\n }",
"public void setK(int k) {\n this.k = k;\n }",
"@Override\n\tpublic String toString(){\n\t\tif(this.getColor()==1){\n\t\t\treturn \"wK\";\n\t\t}else{\n\t\t\treturn \"bK\";\n\t\t}\n\t}",
"public void mo6198b(float f, float f2) {\n this.f4750b.set(f, f2);\n }",
"float mo56157b();",
"public void a() {\n int i = f5624a.getResources().getDisplayMetrics().densityDpi;\n q.l = i;\n if (i <= 320) {\n q.j = 256;\n } else if (i <= 480) {\n q.j = 384;\n } else {\n q.j = 512;\n }\n if (i <= 120) {\n q.f6266a = 0.5f;\n } else if (i <= 160) {\n q.f6266a = 0.6f;\n q.a(18);\n } else if (i <= 240) {\n q.f6266a = 0.87f;\n } else if (i <= 320) {\n q.f6266a = 1.0f;\n } else if (i <= 480) {\n q.f6266a = 1.5f;\n } else {\n q.f6266a = 1.8f;\n }\n if (q.f6266a <= 0.6f) {\n q.f6268c = 18;\n }\n }",
"public void a(float paramFloat)\r\n/* 498: */ {\r\n/* 499:508 */ paramFloat /= 4.0F;\r\n/* 500:509 */ if (paramFloat < 1.0F) {\r\n/* 501:510 */ paramFloat = 1.0F;\r\n/* 502: */ }\r\n/* 503:512 */ for (int i = 0; i < this.b.length; i++) {\r\n/* 504:513 */ if ((this.b[i] != null) && ((this.b[i].b() instanceof ajn)))\r\n/* 505: */ {\r\n/* 506:514 */ this.b[i].a((int)paramFloat, this.d);\r\n/* 507:515 */ if (this.b[i].b == 0) {\r\n/* 508:516 */ this.b[i] = null;\r\n/* 509: */ }\r\n/* 510: */ }\r\n/* 511: */ }\r\n/* 512: */ }",
"private void testDifferentJRangesForConstantK()\r\n\t{\r\n\t\tint minJ = energiesForCurrentK.entrySet().iterator().next().getKey();\r\n\t\tint maxJ = 0;\r\n\r\n\t\tfor (Map.Entry<Integer, Double> entry : energiesForCurrentK.entrySet()) {\r\n\t\t\tmaxJ = entry.getKey();\r\n\t\t}\r\n\r\n\t\tint shiftsOfJPossible = (maxJ - minJ) + inputBranchArray.size() - 1;\r\n\r\n\t\tfor (int i = 0; i < shiftsOfJPossible; i++) {\r\n\t\t\tresetArraysAndHeader();\r\n\t\t\tsetHeaderDisplayState(false);\r\n\t\t\tlowestJValue = maxJ - i;\r\n\t\t\thighestJValue = lowestJValue + inputBranchArray.size() - 1;\r\n\t\t\tassignJValuesToInputBranch();\r\n\t\t\tpublishResults();\r\n\t\t}\r\n\t}",
"abstract float getKeliling();",
"@java.lang.Override\n public float getB() {\n return b_;\n }",
"public void setGsParameters ( double f , double k , double Da, double Db, typeDiffusion typeDiffusion) {\r\n\t\tthis.k = k ;\r\n\t\tthis.f = f ;\r\n\t\tthis.Da = Da ;\r\n\t\tthis.Db = Db ;\r\n\t\tthis.typeDiffusion = typeDiffusion;\r\n\t}",
"@Test\n @Tag(\"bm1000\")\n public void testSC50B() {\n CuteNetlibCase.doTest(\"SC50B.SIF\", \"-7.0000000000E+01\", \"0.0\", NumberContext.of(7, 4));\n }",
"void mo56155a(float f);",
"public static void main(String[] args) {\n\t\tfloat cm = 12.5f;\r\n\t\tfloat inch = 0.3937f * cm;\r\n\t\tSystem.out.printf(\"a. %.2f cm = %.2f inch\\n\", cm, inch);\r\n\r\n\t\t// b. inch to cm\r\n\t\tinch = 4.92f;\r\n\t\tcm = inch / 0.3937f;\r\n\t\tSystem.out.printf(\"b. %.2f inch = %.2f cm\\n\", inch, cm);\r\n\r\n\t\t// c. feet to meter\r\n\t\tfloat feet = 4.92f;\r\n\t\tfloat meter = feet / 3.2808f;\r\n\t\tSystem.out.printf(\"c. %.2f feet = %.2f meter\\n\", feet, meter);\r\n\r\n\t\t// d. meter to feet\r\n\t\tmeter = 1.50f;\r\n\t\tfeet = meter * 3.2808f;\r\n\t\tSystem.out.printf(\"d. %.2f meter = %.2f feet\\n\", meter, feet);\r\n\r\n\t\t// e. pound to kg\r\n\t\tfloat lb = 158.73f;\r\n\t\tfloat kg = lb / 2.2046f;\r\n\t\tSystem.out.printf(\"e. %.2f lb = %.2f kg\\n\", lb, kg);\r\n\r\n\t\t// f. kg to pound\r\n\t\tkg = 72.00f;\r\n\t\tlb = kg * 2.2046f;\r\n\t\tSystem.out.printf(\"f. %.2f kg = %.2f lb\\n\", kg, lb);\r\n\r\n\t\t// g. km to mile\r\n\t\tfloat km = 42.35f;\r\n\t\tfloat mile = km * 0.62137f;\r\n\t\tSystem.out.printf(\"g. %.2f km = %.2f mile\\n\", km, mile);\r\n\r\n\t\t// h. mile to km\r\n\t\tmile = 26.32f;\r\n\t\tkm = mile / 0.62137f;\r\n\t\tSystem.out.printf(\"h. %.2f mile = %.2f km\\n\", mile, km);\r\n\r\n\t\t// i. km/h to mile/h\r\n\t\tkm = 42.35f;\r\n\t\tmile = km * 0.62137f;\r\n\t\tSystem.out.printf(\"i. %.2f km/h = %.2f mile/h\\n\", km, mile);\r\n\r\n\t\t// j. mile/h to km/h\r\n\t\tmile = 26.32f;\r\n\t\tkm = mile / 0.62137f;\r\n\t\tSystem.out.printf(\"j. %.2f mile/h = %.2f km/h\\n\", mile, km);\r\n\t}",
"public double getF() {\n return m_Kf;\n }",
"KBCubicSplineSegment (KBKeyFrame kf0, KBKeyFrame kf1, KBKeyFrame kf2,\r\n KBKeyFrame kf3) {\r\n\r\n // Copy KeyFrame information\r\n keyFrame[0] = new KBKeyFrame(kf0); \r\n keyFrame[1] = new KBKeyFrame(kf1); \r\n keyFrame[2] = new KBKeyFrame(kf2); \r\n keyFrame[3] = new KBKeyFrame(kf3); \r\n\r\n // if linear interpolation is requested then just set linear flag\r\n // if spline interpolation is needed then compute spline coefficients\r\n if (kf2.linear == 1) {\r\n this.linear = 1;\r\n } else {\r\n this.linear = 0;\r\n computeCommonCoefficients (kf0, kf1, kf2, kf3);\r\n computeHermiteCoefficients (kf0, kf1, kf2, kf3);\r\n }\r\n\r\n length = computeLength (1.0f);\r\n // System.out.println (\"Segment length = \" + length);\r\n\r\n }",
"public void bark() {\n\t\tsuper.bark(bark1);\n\t}",
"public static final float[] getKF() {\r\n\t\treturn K_F;\r\n\t}",
"private c b(c blk, int i) {\n/* 585 */ int w = blk.g;\n/* 586 */ int h = blk.h;\n/* */ \n/* */ \n/* 589 */ if (blk.a() != 4) {\n/* 590 */ if (this.j == null || this.j.a() != 4) {\n/* 591 */ this.j = (c)new d();\n/* */ }\n/* 593 */ this.j.g = w;\n/* 594 */ this.j.h = h;\n/* 595 */ this.j.e = blk.e;\n/* 596 */ this.j.f = blk.f;\n/* 597 */ blk = this.j;\n/* */ } \n/* */ \n/* */ \n/* 601 */ float[] outdata = (float[])blk.b();\n/* */ \n/* */ \n/* 604 */ if (outdata == null || outdata.length < w * h) {\n/* 605 */ outdata = new float[h * w];\n/* 606 */ blk.a(outdata);\n/* */ } \n/* */ \n/* */ \n/* 610 */ if (i >= 0 && i <= 2) {\n/* */ int j;\n/* */ \n/* */ \n/* 614 */ if (this.m == null)\n/* 615 */ this.m = new e(); \n/* 616 */ if (this.n == null)\n/* 617 */ this.n = new e(); \n/* 618 */ if (this.o == null)\n/* 619 */ this.o = new e(); \n/* 620 */ this.o.g = blk.g;\n/* 621 */ this.o.h = blk.h;\n/* 622 */ this.o.e = blk.e;\n/* 623 */ this.o.f = blk.f;\n/* */ \n/* */ \n/* 626 */ this.m = (e)this.e.getInternCompData((c)this.m, 0);\n/* 627 */ int[] data0 = (int[])this.m.b();\n/* 628 */ this.n = (e)this.e.getInternCompData((c)this.n, 1);\n/* 629 */ int[] data1 = (int[])this.n.b();\n/* 630 */ this.o = (e)this.e.getInternCompData((c)this.o, 2);\n/* 631 */ int[] data2 = (int[])this.o.b();\n/* */ \n/* */ \n/* 634 */ blk.k = (this.m.k || this.n.k || this.o.k);\n/* */ \n/* 636 */ blk.i = 0;\n/* 637 */ blk.j = w;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 642 */ int k = w * h - 1;\n/* 643 */ int k0 = this.m.i + (h - 1) * this.m.j + w - 1;\n/* 644 */ int k1 = this.n.i + (h - 1) * this.n.j + w - 1;\n/* 645 */ int k2 = this.o.i + (h - 1) * this.o.j + w - 1;\n/* */ \n/* 647 */ switch (i) {\n/* */ \n/* */ case 0:\n/* 650 */ for (j = h - 1; j >= 0; j--) {\n/* 651 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 652 */ outdata[k] = 0.299F * data0[k0] + 0.587F * data1[k1] + 0.114F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 658 */ k0 -= this.m.j - w;\n/* 659 */ k1 -= this.n.j - w;\n/* 660 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ \n/* */ case 1:\n/* 666 */ for (j = h - 1; j >= 0; j--) {\n/* 667 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 668 */ outdata[k] = -0.16875F * data0[k0] - 0.33126F * data1[k1] + 0.5F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 674 */ k0 -= this.m.j - w;\n/* 675 */ k1 -= this.n.j - w;\n/* 676 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ \n/* */ case 2:\n/* 682 */ for (j = h - 1; j >= 0; j--) {\n/* 683 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 684 */ outdata[k] = 0.5F * data0[k0] - 0.41869F * data1[k1] - 0.08131F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 690 */ k0 -= this.m.j - w;\n/* 691 */ k1 -= this.n.j - w;\n/* 692 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ } \n/* */ } else {\n/* 697 */ if (i >= 3) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 702 */ e indb = new e(blk.e, blk.f, w, h);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 707 */ this.e.getInternCompData((c)indb, i);\n/* 708 */ int[] indata = (int[])indb.b();\n/* */ \n/* */ \n/* 711 */ int k = w * h - 1;\n/* 712 */ int k0 = indb.i + (h - 1) * indb.j + w - 1;\n/* 713 */ for (int j = h - 1; j >= 0; j--) {\n/* 714 */ for (int mink = k - w; k > mink; k--, k0--) {\n/* 715 */ outdata[k] = indata[k0];\n/* */ }\n/* */ \n/* 718 */ k0 += indb.g - w;\n/* */ } \n/* */ \n/* */ \n/* 722 */ blk.k = indb.k;\n/* 723 */ blk.i = 0;\n/* 724 */ blk.j = w;\n/* 725 */ return blk;\n/* */ } \n/* */ \n/* */ \n/* 729 */ throw new IllegalArgumentException();\n/* */ } \n/* 731 */ return blk;\n/* */ }",
"public double calcKa() {\n return 0;\n }",
"public void init(\n @ParamInfo(name=\"gBar_K in mS/mm^2\", options=\"value=0.36D\") double gBarK, \n @ParamInfo(name=\"E_K in mV\", options=\"value=-77.00D\")double eK, \n @ParamInfo(name=\"gBar_Na in mS/mm^2\", options=\"value=1.2D\") double gBarNa, \n @ParamInfo(name=\"E_Na in mV\", options=\"value=50.00D\") double eNa, \n @ParamInfo(name=\"gBar_L in mS/mm^2\", options=\"value=0.003D\") double gBarL, \n @ParamInfo(name=\"E_L in mV\", options=\"value=-54.387D\") double eL, \n @ParamInfo(name=\"Membrane capacity in uF/mm^2\", options=\"value=0.01D\") double cm) {\n this.gBarK = gBarK;\n this.eK = eK;\n this.gBarNa = gBarNa;\n this.eNa = eNa;\n this.gBarL = gBarL;\n this.eL = eL;\n this.cm = cm; \n \n }",
"private void BC_bend(Grid gr){\r\n int i, j;\r\n double theta, rate, um, vm, pi=Math.PI;\r\n NSmax=(int)(30.0/dt); repL=0.1;\r\n\t\r\n // boundary conditions of lower side of computational domain\r\n for(i = 0; i<mx; i++) BClow[i]=\"wall\"; \r\n // boundary conditions on upper side \r\n for(i = 0; i<mx; i++) BCupp[i]=\"wall\";\r\n // boundary conditions on left side\r\n for(j = 0; j<my; j++) BClef[j]=\"in\";\r\n // boundary conditions of right side\r\n for(j = 0; j<my; j++) BCrig[j]=\"out\";\r\n\t\t\r\n // initial conditions; all those on other sides are zero. \r\n rate=0.5*pi/(double)(gr.mxRout-gr.mxRin); \r\n for(i = 0; i <= gr.mxRout; i++){ \r\n if(i <= gr.mxRin){ \r\n for(j = 1; j < mym; j++) \t u[i][j]=Umean;\r\n // u[i][j]=2.0*Umean*(1.0-4.0*(gr.y[1][j]+1.0)*(gr.y[1][j]+1.0)); \r\n }else{\r\n theta=rate*(double)(i-gr.mxRin);\r\n for(j = 1; j< mym; j++) u[i][j]=u[0][j]*Math.cos(theta);\r\n }\r\n }\r\n\t\t\r\n for(i = gr.mxRin+1; i < mx; i++){ \r\n if(i <= gr.mxRout){\r\n theta=rate*(double)(i-gr.mxRin);\r\n for(j = 1; j < mym; j++) v[i][j]=u[0][j]*Math.sin(theta);\r\n }else{\r\n for(j = 1; j < mym; j++) v[i][j]=u[0][j];\r\n }\r\n }\r\n }",
"static public double computeBetaFromWavenumber(double k, double freq) {\n double lambda = DBL_LGHT_SPD/freq;\n double beta = DBL_2PI/(k*lambda);\n \n return beta;\n }",
"private void a(String paramString, boolean paramBoolean)\r\n/* 282: */ {\r\n/* 283:293 */ for (int i1 = 0; i1 < paramString.length(); i1++)\r\n/* 284: */ {\r\n/* 285:294 */ char c1 = paramString.charAt(i1);\r\n/* 286: */ int i2;\r\n/* 287: */ int i3;\r\n/* 288:296 */ if ((c1 == '§') && (i1 + 1 < paramString.length()))\r\n/* 289: */ {\r\n/* 290:297 */ i2 = \"0123456789abcdefklmnor\".indexOf(paramString.toLowerCase().charAt(i1 + 1));\r\n/* 291:299 */ if (i2 < 16)\r\n/* 292: */ {\r\n/* 293:300 */ this.r = false;\r\n/* 294:301 */ this.s = false;\r\n/* 295:302 */ this.v = false;\r\n/* 296:303 */ this.u = false;\r\n/* 297:304 */ this.t = false;\r\n/* 298:305 */ if ((i2 < 0) || (i2 > 15)) {\r\n/* 299:306 */ i2 = 15;\r\n/* 300: */ }\r\n/* 301:309 */ if (paramBoolean) {\r\n/* 302:310 */ i2 += 16;\r\n/* 303: */ }\r\n/* 304:313 */ i3 = this.f[i2];\r\n/* 305:314 */ this.q = i3;\r\n/* 306:315 */ cjm.c((i3 >> 16) / 255.0F, (i3 >> 8 & 0xFF) / 255.0F, (i3 & 0xFF) / 255.0F, this.p);\r\n/* 307: */ }\r\n/* 308:316 */ else if (i2 == 16)\r\n/* 309: */ {\r\n/* 310:317 */ this.r = true;\r\n/* 311: */ }\r\n/* 312:318 */ else if (i2 == 17)\r\n/* 313: */ {\r\n/* 314:319 */ this.s = true;\r\n/* 315: */ }\r\n/* 316:320 */ else if (i2 == 18)\r\n/* 317: */ {\r\n/* 318:321 */ this.v = true;\r\n/* 319: */ }\r\n/* 320:322 */ else if (i2 == 19)\r\n/* 321: */ {\r\n/* 322:323 */ this.u = true;\r\n/* 323: */ }\r\n/* 324:324 */ else if (i2 == 20)\r\n/* 325: */ {\r\n/* 326:325 */ this.t = true;\r\n/* 327: */ }\r\n/* 328:326 */ else if (i2 == 21)\r\n/* 329: */ {\r\n/* 330:327 */ this.r = false;\r\n/* 331:328 */ this.s = false;\r\n/* 332:329 */ this.v = false;\r\n/* 333:330 */ this.u = false;\r\n/* 334:331 */ this.t = false;\r\n/* 335: */ \r\n/* 336:333 */ cjm.c(this.m, this.n, this.o, this.p);\r\n/* 337: */ }\r\n/* 338:336 */ i1++;\r\n/* 339: */ }\r\n/* 340: */ else\r\n/* 341: */ {\r\n/* 342:340 */ i2 = \"\".indexOf(c1);\r\n/* 343:342 */ if ((this.r) && (i2 != -1))\r\n/* 344: */ {\r\n/* 345: */ do\r\n/* 346: */ {\r\n/* 347:345 */ i3 = this.b.nextInt(this.d.length);\r\n/* 348:346 */ } while (this.d[i2] != this.d[i3]);\r\n/* 349:347 */ i2 = i3;\r\n/* 350: */ }\r\n/* 351:353 */ float f1 = this.k ? 0.5F : 1.0F;\r\n/* 352:354 */ int i4 = ((c1 == 0) || (i2 == -1) || (this.k)) && (paramBoolean) ? 1 : 0;\r\n/* 353:356 */ if (i4 != 0)\r\n/* 354: */ {\r\n/* 355:357 */ this.i -= f1;\r\n/* 356:358 */ this.j -= f1;\r\n/* 357: */ }\r\n/* 358:360 */ float f2 = a(i2, c1, this.t);\r\n/* 359:361 */ if (i4 != 0)\r\n/* 360: */ {\r\n/* 361:362 */ this.i += f1;\r\n/* 362:363 */ this.j += f1;\r\n/* 363: */ }\r\n/* 364:366 */ if (this.s)\r\n/* 365: */ {\r\n/* 366:367 */ this.i += f1;\r\n/* 367:368 */ if (i4 != 0)\r\n/* 368: */ {\r\n/* 369:369 */ this.i -= f1;\r\n/* 370:370 */ this.j -= f1;\r\n/* 371: */ }\r\n/* 372:372 */ a(i2, c1, this.t);\r\n/* 373:373 */ this.i -= f1;\r\n/* 374:374 */ if (i4 != 0)\r\n/* 375: */ {\r\n/* 376:375 */ this.i += f1;\r\n/* 377:376 */ this.j += f1;\r\n/* 378: */ }\r\n/* 379:378 */ f2 += 1.0F;\r\n/* 380: */ }\r\n/* 381: */ ckx localckx;\r\n/* 382: */ VertexBuffer localciv;\r\n/* 383:381 */ if (this.v)\r\n/* 384: */ {\r\n/* 385:382 */ localckx = ckx.getInstance();\r\n/* 386:383 */ localciv = localckx.getBuffer();\r\n/* 387:384 */ cjm.x();\r\n/* 388:385 */ localciv.begin();\r\n/* 389:386 */ localciv.addVertex(this.i, this.j + this.a / 2, 0.0D);\r\n/* 390:387 */ localciv.addVertex(this.i + f2, this.j + this.a / 2, 0.0D);\r\n/* 391:388 */ localciv.addVertex(this.i + f2, this.j + this.a / 2 - 1.0F, 0.0D);\r\n/* 392:389 */ localciv.addVertex(this.i, this.j + this.a / 2 - 1.0F, 0.0D);\r\n/* 393:390 */ localckx.draw();\r\n/* 394:391 */ cjm.w();\r\n/* 395: */ }\r\n/* 396:394 */ if (this.u)\r\n/* 397: */ {\r\n/* 398:395 */ localckx = ckx.getInstance();\r\n/* 399:396 */ localciv = localckx.getBuffer();\r\n/* 400:397 */ cjm.x();\r\n/* 401:398 */ localciv.begin();\r\n/* 402:399 */ int i5 = this.u ? -1 : 0;\r\n/* 403:400 */ localciv.addVertex(this.i + i5, this.j + this.a, 0.0D);\r\n/* 404:401 */ localciv.addVertex(this.i + f2, this.j + this.a, 0.0D);\r\n/* 405:402 */ localciv.addVertex(this.i + f2, this.j + this.a - 1.0F, 0.0D);\r\n/* 406:403 */ localciv.addVertex(this.i + i5, this.j + this.a - 1.0F, 0.0D);\r\n/* 407:404 */ localckx.draw();\r\n/* 408:405 */ cjm.w();\r\n/* 409: */ }\r\n/* 410:408 */ this.i += (int)f2;\r\n/* 411: */ }\r\n/* 412: */ }\r\n/* 413: */ }",
"public void setK(boolean k) {\n\tthis.k = k;\n }",
"public static native void OpenMM_AmoebaStretchBendForce_getStretchBendParameters(PointerByReference target, int index, IntByReference particle1, IntByReference particle2, IntByReference particle3, DoubleByReference lengthAB, DoubleByReference lengthCB, DoubleByReference angle, DoubleByReference k1, DoubleByReference k2);",
"@java.lang.Override\n public float getB() {\n return b_;\n }",
"void mo72112a(float f);",
"private Color calcDiffusive(double kd, double nl, Color c) {\n if (nl < 0)\n nl = -nl;//to make the angle(zavit) nl (erech moochlat)\n return c.scale(nl * kd);\n }",
"private static int mixSigColor(int c1, int c2, int ratio) {//0~100\r\n return 0xff & (((c2 * ratio) + (c1 * (100 - ratio))) / 100);\r\n }",
"@Override\n public void update(int n, int n2) {\n void mouseY;\n void mouseX;\n super.update((int)mouseX, (int)mouseY);\n float[] hsb = Color.RGBtoHSB(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), null);\n double difference = Math.min(95, Math.max(0, (int)(mouseX - this.getX())));\n this.hueWidth = Float.intBitsToFloat(Float.floatToIntBits(0.012939732f) ^ 0x7EEB012B) * (hsb[0] * Float.intBitsToFloat(Float.floatToIntBits(0.22324012f) ^ 0x7DD0990F) / Float.intBitsToFloat(Float.floatToIntBits(0.07544195f) ^ 0x7E2E814F));\n this.satWidth = Float.intBitsToFloat(Float.floatToIntBits(0.009555363f) ^ 0x7EA18E19) * (hsb[1] * Float.intBitsToFloat(Float.floatToIntBits(0.021556562f) ^ 0x7F049763) / Float.intBitsToFloat(Float.floatToIntBits(0.026331188f) ^ 0x7F63B481));\n this.briWidth = Float.intBitsToFloat(Float.floatToIntBits(0.02392782f) ^ 0x7E790447) * (hsb[2] * Float.intBitsToFloat(Float.floatToIntBits(0.09763377f) ^ 0x7E73F437) / Float.intBitsToFloat(Float.floatToIntBits(0.019418718f) ^ 0x7F2B1401));\n this.alphaWidth = Float.intBitsToFloat(Float.floatToIntBits(0.010174015f) ^ 0x7E9BB0E9) * ((float)this.setting.getValue().getAlpha() / Float.intBitsToFloat(Float.floatToIntBits(0.0089911735f) ^ 0x7F6C4FB7));\n this.changeColor(difference, new Color(Color.HSBtoRGB((float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.15404371830294214) ^ 0x7F9477B45E21F7BFL) * Double.longBitsToDouble(Double.doubleToLongBits(0.050973544293479105) ^ 0x7FDC99345367453FL) / Double.longBitsToDouble(Double.doubleToLongBits(0.03014217321508198) ^ 0x7FE85D9700C1AF0AL)), hsb[1], hsb[2])), new Color(Color.HSBtoRGB(Float.intBitsToFloat(Float.floatToIntBits(1.8279414E38f) ^ 0x7F0984DF), hsb[1], hsb[2])), this.hueDragging);\n this.changeColor(difference, new Color(Color.HSBtoRGB(hsb[0], (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.1223112785883676) ^ 0x7FE88FCABD780F54L) * Double.longBitsToDouble(Double.doubleToLongBits(0.026943886254004668) ^ 0x7FED172D9927021DL) / Double.longBitsToDouble(Double.doubleToLongBits(0.05427001644334754) ^ 0x7FDD4947938E1C55L)), hsb[2])), new Color(Color.HSBtoRGB(hsb[0], Float.intBitsToFloat(Float.floatToIntBits(1.1082437E38f) ^ 0x7EA6BFFF), hsb[2])), this.saturationDragging);\n this.changeColor(difference, new Color(Color.HSBtoRGB(hsb[0], hsb[1], (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.12328622126775308) ^ 0x7FE84FAF90647595L) * Double.longBitsToDouble(Double.doubleToLongBits(0.09854681448488288) ^ 0x7FCFBA5D315669BFL) / Double.longBitsToDouble(Double.doubleToLongBits(0.029067112480345214) ^ 0x7FEB43C4E5F80CC0L)))), new Color(Color.HSBtoRGB(hsb[0], hsb[1], Float.intBitsToFloat(Float.floatToIntBits(3.3573391E38f) ^ 0x7F7C9400))), this.brightnessDragging);\n this.changeAlpha(difference, (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.014823398455503097) ^ 0x7FD99BBADCA7DC11L) * Double.longBitsToDouble(Double.doubleToLongBits(0.013271171619186513) ^ 0x7FE4CDEA80AC0D24L) / Double.longBitsToDouble(Double.doubleToLongBits(0.08218747250746601) ^ 0x7FDAEA3CFA8F7AADL)), this.alphaDragging);\n }"
] | [
"0.73399013",
"0.6109412",
"0.6041723",
"0.59074277",
"0.5733141",
"0.57324886",
"0.5730201",
"0.5726525",
"0.57243675",
"0.5704218",
"0.57024574",
"0.5669937",
"0.5667373",
"0.5660086",
"0.56558853",
"0.5651877",
"0.56367844",
"0.5630764",
"0.56251234",
"0.55839026",
"0.55435956",
"0.5536486",
"0.552778",
"0.5521714",
"0.5507",
"0.5490819",
"0.5483611",
"0.54691887",
"0.546641",
"0.5456492",
"0.5452675",
"0.5437085",
"0.5420786",
"0.54190594",
"0.54135823",
"0.54134434",
"0.5403344",
"0.5398742",
"0.53964216",
"0.53803605",
"0.5358587",
"0.53440344",
"0.5320456",
"0.53163093",
"0.5309073",
"0.5307933",
"0.53029245",
"0.5294762",
"0.5293947",
"0.5275541",
"0.52526236",
"0.5250257",
"0.5244486",
"0.5242557",
"0.5241026",
"0.5238051",
"0.52352625",
"0.5229312",
"0.5222582",
"0.5207836",
"0.5189939",
"0.5179403",
"0.5175194",
"0.51745063",
"0.51732814",
"0.51635706",
"0.51618695",
"0.51328427",
"0.5125023",
"0.5118386",
"0.51080906",
"0.5106042",
"0.5101751",
"0.5099168",
"0.508928",
"0.50797266",
"0.50713456",
"0.50552934",
"0.50434285",
"0.5041189",
"0.5034177",
"0.5033351",
"0.50331765",
"0.5032152",
"0.50273854",
"0.50267047",
"0.50265443",
"0.5025428",
"0.501979",
"0.501948",
"0.50140405",
"0.5012778",
"0.5011835",
"0.50084394",
"0.5006999",
"0.50054413",
"0.50021845",
"0.50017923",
"0.49980962",
"0.49917132"
] | 0.6865867 | 1 |
/ Creates an account using the passed html filename. | public Account(String filename) throws IOException {
htmlfile = filename;
file = new File(filename);
if (!file.exists()) {
throw new IOException();
}
htmlrandom = new RandomAccessFile(file, "rw");
htmlchannel = htmlrandom.getChannel();
lock = htmlchannel.tryLock();
if (lock == null) {
throw new IOException();
}
Document doc = parseFile();
Elements transactions = doc.select("table[id=transactions]");
if (transactions.isEmpty()) {
throw new IOException();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void createAccount() {\t\n\t\t\n\t\tRediffOR.setCreateAccoutLinkClick();\n\t\tRediffOR.getFullNameTextField().sendKeys(\"Kim Smith\");\n\t\tRediffOR.getEmailIDTextField().sendKeys(\"Kim Smith\");\n\t\t\t\t\t\n\t\t\n\t}",
"public void createUserAccount(UserAccount account);",
"Account create();",
"Document createAccount(String username, String accountDisplayName,\n String accountFullName, double balance, double interestRate);",
"public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}",
"void addNewAccountToFile(Account newAccount);",
"public void createAccount() {\n System.out.println(\"Would you like to create a savings or checking account?\");\n String AccountRequest = input.next().toLowerCase().trim();\n createAccount(AccountRequest);\n\n }",
"int createAccount(Account account);",
"public abstract void createAccount(JSONObject account);",
"private static Account createAndStoreAccount(String fileName, String GID, String name, Context activity) {\r\n\t\tAccount newAccount = new Account(GID, name); \r\n\t\tAccount.currentAccount = newAccount;\r\n\t\t\r\n\t try {\r\n\t //use buffering\r\n\t FileOutputStream fos = activity.openFileOutput(fileName, Context.MODE_PRIVATE);\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\r\n\t\t\toos.writeObject(newAccount); \r\n\t try {\r\n\t \toos.writeObject(newAccount);\r\n\t }\r\n\t finally {\r\n\t \toos.close();\r\n\t }\r\n\t } \r\n\t catch(IOException ex){\r\n\t System.out.println(\"Cannot perform output.\");\r\n\t }\r\n\t\t\r\n\t\treturn newAccount;\r\n\t}",
"public static void createAccount3() {\n\n\n System.setProperty(\"webdriver.chrome.driver\",\"resources/chromedriver.exe\");\n\n WebDriver driver = new ChromeDriver();\n\n driver.get(\"https://fasttrackit.org/selenium-test/\");\n driver.findElement(By.cssSelector(\"a[href*=\\\"account\\\"] .label\")).click();\n driver.findElement(By.cssSelector(\"a[title=\\\"Register\\\"]\")).click();\n\n driver.findElement(By.cssSelector(\"#middlename\")).sendKeys(\"test\");\n driver.findElement(By.cssSelector(\"#lastname\")).sendKeys(\"chris\");\n driver.findElement(By.cssSelector(\"#email_address\")).sendKeys(\"[email protected]\");\n driver.findElement(By.cssSelector(\"#password\")).sendKeys(\"test1212\");\n driver.findElement(By.cssSelector(\"#confirmation\")).sendKeys(\"test1212\");\n driver.findElement(By.cssSelector(\"button[title=\\\"Register\\\"]\")).click();\n\n driver.quit();\n\n\n\n }",
"public static Account createNewAccount(String GID, String name, Context activity) {\r\n\t\t\r\n\t\tString[] emailParts = GID.split(\"@\"); \r\n\t\t\r\n\t\t//Check if this Account is already stored\r\n\t\tString fileName = name + \"_\" + emailParts[0] + \"_\" + emailParts[1]; \r\n\t\t\r\n\t\tFile f = new File(activity.getFilesDir(), fileName);\r\n\t\t\r\n\t\tif(f.exists()) {\r\n\t\t try {\r\n\t\t //use buffering\r\n\t\t FileInputStream fis = activity.openFileInput(fileName);\r\n\t\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tAccount recoveredAccount = (Account) ois.readObject();\r\n\t\t\t\t\tcurrentAccount = recoveredAccount;\r\n\t\t\t return recoveredAccount;\r\n\t\t\t\t}\r\n\t\t finally {\r\n\t\t \tois.close();\r\n\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t catch(ClassNotFoundException ex){\r\n\t\t \tSystem.out.println(\"Cannot perform input. Class not found.\");\r\n\t\t \treturn createAndStoreAccount(fileName, GID, name);\r\n\t\t }\r\n\t\t catch(IOException ex){\r\n\t\t System.out.println(\"Cannot perform input.\");\r\n\t\t return createAndStoreAccount(fileName, GID, name);\r\n\t\t }\r\n\t\t \r\n\t\t} else {\r\n\t\t\treturn createAndStoreAccount(fileName, GID, name, activity);\r\n\t\t}\r\n\t}",
"NewAccountPage openNewAccountPage();",
"private void createHTMLFile(Webpage webpage) {\n String filepath = \"resources/tempHTML\" +Thread.currentThread().getName() +\".html\";\n\n try {\n //Create HTML file\n File file = new File(filepath);\n OutputStreamWriter fW = new OutputStreamWriter(new FileOutputStream(file), Charset.forName(\"UTF-8\").newEncoder());\n fW.write(webpage.getHTML());\n fW.flush();\n fW.close();\n\n //Set HTML file size\n webpage.setFileSize(Utils.getFileSize(filepath));\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void createAccount(User user) throws IOException {\n File accounts = new File(\"accounts.txt\");\n if (!accounts.exists()) {\n accounts.createNewFile();\n }\n\n FileOutputStream fileOutputStream = new FileOutputStream(accounts, true);\n BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(fileOutputStream));\n\n bufferedWriter.write(user.getUserName() + \":\" + user.getUserPass());\n bufferedWriter.newLine();\n bufferedWriter.flush();\n }",
"public String createAccount(Account account){\n try {\n List<Account> accounts = new ArrayList<>();\n\n if(!accountsFile.createNewFile()){\n accounts = mapper.readValue(accountsFile, new TypeReference<ArrayList<Account>>(){});\n }\n List<Account> customerAccounts = getAccountsForUSer(accounts, account.getCustomerName());\n if(!customerAccounts.stream().anyMatch(a -> a.getAccountName().equals(account.getAccountName()))){\n accounts.add(account);\n mapper.writerWithDefaultPrettyPrinter().writeValue(accountsFile, accounts);\n } else {\n return messageService.accountAlreadyExist(account.getCustomerName(), account.getAccountName());\n }\n } catch (Exception e) {\n return messageService.unexpectedError(e);\n }\n return messageService.accountCreated(account.getAccountName(), account.getCustomerName());\n }",
"public static void create(@Required String url, @Required String html) {\n\t\tRentalListing rentalListing = new RentalListing(url, html, 950);\n\t\trentalListing.save();\n\t\t\n\t\tString ipv4 = request.remoteAddress;\n\t\ttry {\n\t\t\tInetAddress addr = InetAddress.getByName(ipv4);\n\t\t\tUnauthedUserListing unauthedListing = new UnauthedUserListing(addr, rentalListing);\n\t\t\tunauthedListing.save();\n\t\t} catch(UnknownHostException e) {\n\t\t\tLogger.error(\">>> Invalid ipv4 address: \" + ipv4);\n\t\t}\n\t}",
"public void create_loginFile(String account){\n try {\n outputStreamWriter = new OutputStreamWriter(context.openFileOutput(Constant.LOGIN_FILE, Context.MODE_PRIVATE));\n outputStreamWriter.write(account+\" logged in,\");\n outputStreamWriter.close();\n }\n catch (Exception e){\n Message.logMessages(\"ERROR: \",e.toString());\n }\n }",
"public static Account createNewAccount(String GID, String name) {\r\n\t\t\r\n\t\tString[] emailParts = GID.split(\"@\"); \r\n\t\t\r\n\t\t//Check if this Account is already stored\r\n\t\tString fileName = name + \"_\" + emailParts[0] + \"_\" + emailParts[1]; \r\n\t\t\r\n\t\tFile f = new File(fileName);\r\n\t\t\r\n\t\tif(f.exists()) {\r\n\t\t try {\r\n\t\t //use buffering\r\n\t\t InputStream file = new FileInputStream(fileName);\r\n\t\t InputStream buffer = new BufferedInputStream(file);\r\n\t\t ObjectInput input = new ObjectInputStream(buffer);\r\n\t\t \r\n\t\t try {\r\n\t\t\t //deserialize the Account object\r\n\t\t\t Account recoveredAccount = (Account)input.readObject();\r\n\t\t\t currentAccount = recoveredAccount;\r\n\t\t\t return recoveredAccount;\r\n\t\t }\r\n\t\t \r\n\t\t finally {\r\n\t\t \tinput.close();\r\n\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t catch(ClassNotFoundException ex){\r\n\t\t \tSystem.out.println(\"Cannot perform input. Class not found.\");\r\n\t\t \treturn createAndStoreAccount(fileName, GID, name);\r\n\t\t }\r\n\t\t catch(IOException ex){\r\n\t\t System.out.println(\"Cannot perform input.\");\r\n\t\t return createAndStoreAccount(fileName, GID, name);\r\n\t\t }\r\n\t\t \r\n\t\t} else {\r\n\t\t\treturn createAndStoreAccount(fileName, GID, name);\r\n\t\t}\r\n\t}",
"private void createDriver() {\n account = new Account(\"driver\", \"password\", \"[email protected]\",\n \"Dan\", \"20 Howard Street\", 1234567, 64278182123L,\n new Licence(\"Full for over 2 years\", \"YXF87231\",\n LocalDate.parse(\"12/12/2015\", formatter),\n LocalDate.parse(\"12/12/2020\", formatter)));\n }",
"public void createAccount(){\n System.out.println(\"vi skal starte \");\n }",
"public static void createAccount()throws IOException{\n\t\ttry{\n\t\t\tFile accountInfo = new File(\"account.txt\");\n\t\t\tFile Information = new File(\"information.txt\");\n\t\t\tArrayList<String> temp = new ArrayList<String>();\n\t\t\tArrayList<String> info = new ArrayList<String>();\n\t\t\tScanner inputFromInformation = new Scanner(Information);\n\t\t\tScanner inputFromAccount = new Scanner(accountInfo);\n\t\t\twhile (inputFromAccount.hasNextLine()){\n\t\t\t\ttemp.add(inputFromAccount.nextLine());\n\t\t\t}\n\t\t\tScanner input = new Scanner(System.in);\n\t\t\t// This is where we will start the new account process\n\t\t\t// first by telling us who you are.\n\t\t\tSystem.out.println(\"Enter your First Name\");\n\t\t\tString firstName = input.next();\n\t\t\t\n\t\t\tSystem.out.println(\"Enter your Last Name\");\n\t\t\tString lastName = input.next();\n\t\t\t// This will give the user recommended\n\t\t\t// user names if they cannot think of one.\n\t\t\tRecommendedUserNames(firstName,lastName);\n\t\t\t// here they will be prompt to enter their preferred user name\n\t\t\tSystem.out.println(\"Enter your preferred username\");\n\t\t\tString UserName = input.next();\n\t\t\t// This will prompt the user for a password\n\t\t\t// The password will have to meet these requirements\n\t\t\tSystem.out.println(\"Your password should meet the following requirements:\");\n\t\t\tSystem.out.println(\"-It must have at least eight characters.\\n-It must consist of only letters and digits.\"\n\t\t\t\t\t\t\t+ \"\\n-It must contain more than two digits and two characters.\");\n\t\t\tSystem.out.println(\"\\nEnter your new Password\");\n\t\t\tString Password = input.next();\n\t\t\t\n\t\t\t// this is what will verify the user password and see if it meets the recommended requirements\n\t\t\t// for security reasons of course.\n\t\t\tString Pass;\n\n\t\t\tboolean check=false;\n\t\t\tif(validigits(Password)&&letter_digit_check(Password))check=true;\n\t\t\twhile(!check){\n\t\t\t\tSystem.out.println(\"Please recheck the password requirement and try again.\");\n\t\t\t\tPassword = input.next();\n\t\t\t\tif(validigits(Password)&&letter_digit_check(Password))check=true;\n\t\t\t}\n\t\t\tdo{\n\t\t\t\tSystem.out.println(\"\\nPlease re-enter the Password\");\n\t\t\t\tPass = input.next();\n\t\t\t\tif(!Pass.equals(Password))System.out.println(\"Passwords do not match!\");\n\t\t\t}while(!Pass.equals(Password));\n\t\t\tboolean CreateAccount = true;\n\t\t\tSystem.out.println(\"You need to fill the information for completion of your account registration\");\n\t\t\teditInfo(UserName,CreateAccount);\n\t\t\tPrintWriter output = new PrintWriter(accountInfo);\n\t\t\ttemp.add(UserName+\" \"+Password);\n\t\t\tfor (int i=0; i<temp.size(); i++){\n\t\t\t\toutput.println(temp.get(i));\n\t\t\t}\n\t\t\toutput.close();\n\t\t\tSystem.out.println(\"Your account has been created and your information has been saved\"\n\t\t\t\t\t+ \"\\nYou have been logged out for this session\\n\");\n\t\t\tstarter();\n\t\t}\n\t\tcatch (java.io.IOException ex){\n\t\t\tSystem.out.println(\"I/O Errors: File is not found\");\n\t\t}\t\n\t}",
"public void createAccount() {\n\t\t// Assigns variables based on user input\n\t\tString username = usernameField.getText();\n\t\tString firstName = firstNameField.getText();\n\t\tString lastName = lastNameField.getText();\n\t\tString address = addressField.getText();\n\t\tString postCode = postcodeField.getText();\n\t\tString phoneNumber = phoneNumberField.getText();\n\t\tlong phoneNumberLong;\n\t\tif (username.isEmpty() || firstName.isEmpty() || lastName.isEmpty() || address.isEmpty() || postCode.isEmpty()\n\t\t\t\t|| phoneNumber.isEmpty()) { // Checks if number is correct format\n\n\t\t\tAlert alert = new Alert(AlertType.ERROR); // Error message\n\t\t\talert.setTitle(\"Error\");\n\n\t\t\talert.setHeaderText(\"Could not create an user\");\n\t\t\talert.setContentText(\"Make sure you fill all fields and press button again\");\n\t\t\talert.showAndWait();\n\n\t\t\treturn;\n\t\t}\n\n\t\telse {\n\t\t\ttry {\n\t\t\t\tphoneNumberLong = Long.parseLong(phoneNumber);\n\t\t\t} catch (Exception e) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"Wrong format of phone number\");\n\t\t\t\talert.setContentText(\"Please enter correct phone number\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(FileReader.exists(username)) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"User with the username \"+ username +\" already exists. \");\n\t\t\t\talert.setContentText(\"Please choose another username\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tString userdata = \"\";\n\t\t\tuserdata += \"\\n Username: \" + username;\n\t\t\tuserdata += \"\\n First name: \" + firstName;\n\t\t\tuserdata += \"\\n Last name: \" + lastName;\n\t\t\tuserdata += \"\\n Address: \" + address;\n\t\t\tuserdata += \"\\n Post code: \" + postCode;\n\t\t\tuserdata += \"\\n Phone number: \" + phoneNumberLong;\n\t\t\t\n\n\t\t\tif(custom) {\n\t\t\t\tavatarIndex = 101;\n\t\t\t\t// Gives users the custom avatar\n\t\t\t\tFile file1 = new File(\"artworkImages/\" + username);\n\t\t\t\tfile1.mkdir();\n\t\t\t\tPath path = Paths.get(\"customAvatars/\" + username + \".png\");\n\t\t\t\tString path1 = \"tmpImg.png\";\n\t\t\t\tFile file = new File(path1);\n\n\t\t\t\ttry {\n\t\t\t\t\tFiles.copy(file.toPath(), path, StandardCopyOption.REPLACE_EXISTING);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUser user = new User(username, firstName, lastName, address, postCode, phoneNumberLong, avatarIndex);\n\t\t\tFileReader.addUser(user); // Creates user\n\n\t\t\ttry {\n\t\t\t\tWriter.writeUserFile(user); // Adds user to memory\n\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION); // Success message\n\t\t\talert.setTitle(\"Success\");\n\n\t\t\talert.setHeaderText(\"The user has been created\");\n\t\t\talert.setContentText(\"Close this window to return to login screen\");\n\t\t\talert.showAndWait();\n\n\t\t\tcreateAccountButton.getScene().getWindow().hide();\n\t\t}\n\n\t}",
"private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }",
"Account create(Context context);",
"private void createAccount(String username, String passphrase, String email) {\n\tif (!AccountManager.getUniqueInstance().candidateUsernameExists(username)) {\n\t try {\n\t\tAccountManager.getUniqueInstance().createCandidateAccount(username, \n\t\t\t\t\t\t\t\t\t passphrase, \n\t\t\t\t\t\t\t\t\t email);\n\t } catch (Exception e) {\n\t\tthrow new RuntimeException(\"creation failed\");\n\t }\n\t} else {\n\t throw new RuntimeException(\"username already exists\");\n\t}\n }",
"@Override\n\tpublic String createAccount() {\n\t\treturn \"Created Saving Account Sucessfully\";\n\t}",
"protected void createAccount(JSONArray args, final CallbackContext callbackContext) {\n\t\tLog.d(TAG, \"CREATEACCOUNT\");\n\t\ttry {\n\t\t\tString email = args.getString(0);\n\t\t\tString password = args.getString(1);\n\t\t\tString userName = null;\n\t\t\tif (args.length() == 3) {\n\t\t\t\tuserName = args.optString(2);\n\t\t\t}\n\t\t\tNotificare.shared().createAccount(email, password, userName, new NotificareCallback<Boolean>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(Boolean result) {\n\t\t\t\t\tif (callbackContext == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tcallbackContext.success();\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onError(NotificareError error) {\n\t\t\t\t\tif (callbackContext == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tcallbackContext.error(error.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (JSONException e) {\n\t\t\tcallbackContext.error(\"JSON parse error\");\n\t\t}\n\t}",
"public CoinbaseAccount createCoinbaseAccount(String name) throws IOException {\n\n class Payload {\n @JsonProperty\n String name;\n Payload(String name) {\n this.name = name;\n }\n }\n \n Payload payload = new Payload(name);\n\n String path = \"/v2/accounts\";\n String apiKey = exchange.getExchangeSpecification().getApiKey();\n BigDecimal timestamp = coinbase.getTime(Coinbase.CB_VERSION_VALUE).getData().getEpoch();\n String body = new ObjectMapper().writeValueAsString(payload);\n String signature = getSignature(timestamp, HttpMethod.POST, path, body);\n showCurl(HttpMethod.POST, apiKey, timestamp, signature, path, body);\n \n return coinbase.createAccount(MediaType.APPLICATION_JSON, Coinbase.CB_VERSION_VALUE, apiKey, signature, timestamp, payload).getData();\n }",
"private void createPassenger() {\n account = new Account(\"driver\", \"password\", \"[email protected]\",\n \"Dan\", \"20 Howard Street\", 1234567, 64278182123L);\n }",
"public void createAccount(String username, String password) {\n\t\tString send;\n\t\tsend = \"<NewAccount=\" + username + \",\" + password + \">\";\n\n\t\ttry {\n\t\t\tdos.writeUTF(send);\n\t\t} catch (Exception e) {\n\t\t\t//TODO\n\t\t}\n\t}",
"@Override\n\tpublic void createAccount(String username, Bank bank) {\n\t\ttry {\n\t\tAccount newAccount = new Account(username, bank.getBankID(), bank.getNumOfAccounts()+1);\n\t\tbank.setNumOfAccounts(bank.getNumOfAccounts()+1);\n\t\taddAccount(bank, newAccount);\n\t\t}catch(NullPointerException e) {\n\t\t\tSystem.out.println(\"Could not find bank\");\n\t\t}\n\t\t\n\t}",
"public abstract void createAccount(final GDataAccount account)\n throws ServiceException;",
"public Account createAccount(String accountId) throws LedgerException {\n // Check uniqueness of 'accountId'\n if (getExistingAccount(accountId) != null) {\n throw new LedgerException(\n \"create account\",\n String.format(\"The account '%s' already exists.\", accountId)\n );\n }\n\n // The accountId is unique, so create new account\n Account newAccount = new Account(accountId);\n\n // Update currentBlock with new account\n this.currentBlock.addAccount(newAccount);\n return newAccount;\n }",
"public void createAccount(View view) {\n Intent intent = new Intent(this, UserAccountCreateActivity.class);\n startActivity(intent);\n }",
"private void createNewAccount() {\n\n // if user has not provided valid data, do not create an account and return from method\n if (!validateData()) {\n return;\n }\n\n // If flag value is false, that means email provided by user doesn't exists in database\n // so initialize the loader to create a new account\n if (!mEmailExistsFlag) {\n getLoaderManager().initLoader(CREATE_NEW_ACCOUNT_LOADER_ID, null, this);\n } else {\n // If flag is true, that means email provided by user already exists in database\n // so restart the loader and allow user to enter new email address for account\n getLoaderManager().restartLoader(CREATE_NEW_ACCOUNT_LOADER_ID, null, this);\n }\n\n }",
"public static ATMAccount createAccount() {\r\n\t\tString userName;\r\n\t\tdouble userBalance;\r\n\t\tint digit = -1;\r\n\r\n\t\tSystem.out.println(\"Please enter a name for the account: \");\r\n\t\tuserInput.nextLine();\r\n\t\tuserName = userInput.nextLine();\r\n\r\n\t\t//Requests digits 1 by 1 for the pin number\r\n\t\tString accPin = \"\";\r\n\t\tfor (int i = 1; i < 5; i++) {\r\n\t\t\tdigit = -1;\r\n\t\t\tSystem.out.println(\"Please enter digit #\" + i + \" of\" + \"your pin.\");\r\n\t\t\tdo {\r\n\t\t\t\tdigit = userInput.nextInt();\r\n\t\t\t} while (digit < 0 || digit > 9);\r\n\t\t\taccPin += digit;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Please put the amount of money you would like to \" + \"initially deposit into the account: \");\r\n\t\tuserBalance = userInput.nextDouble();\r\n\t\tRandom accountIDGenerator = new Random();\r\n\t\tint userID = accountIDGenerator.nextInt(2147483647);\r\n\t\tATMAccount account = new ATMAccount(userID, userName, Integer.parseInt(accPin), userBalance);\r\n\t\tSystem.out.println(\"Acount Information: \\n\"+account.toString());\r\n\t\treturn account;\r\n\t}",
"@POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.TEXT_PLAIN)\n public Response createAccount(\n AccountModel input, @Context HttpServletResponse response) {\n if (input.getEmail() == null || input.getEmail().equals(\"\") || input.getPassword() == null || input.getPassword().isEmpty()\n || input.getUserName() == null || input.getUserName().isEmpty()) {\n return Response.status(Response.Status.BAD_REQUEST).build();\n }\n Customer customer = new Customer();\n customer.setEmail(input.getEmail());\n customer.setPassword(input.getPassword());\n customer.setUserName(input.getUserName());\n String sendToken = TokenUtil.getToken(input.getEmail(), input.getPassword());\n customer.setToken(sendToken);\n Long id = customerRef.save(customer);\n if (id != null || id > 0) {\n response.setHeader(\"AuthHeader\", sendToken);\n return Response.status(Response.Status.CREATED).build();\n }\n return Response.status(Response.Status.NOT_IMPLEMENTED).build();\n\n }",
"@Override\n public boolean createAccount(String fullName, String username, String password, String email){\n // will change this if we make some errors.\n if(!usernameToPerson.containsKey(username)) { // check that there is not someone with that username\n Organizer og = new Organizer(fullName, username, password, email);\n updateUsernameToPerson(og.getUsername(), og); // see below\n idToPerson.put(og.getID(), og);\n return true;\n }\n\n return false;\n\n }",
"public Account createAccount(Account account){\n\t\t\n\t\taccount.createdDate = new Date();\n\t\taccount.isActive = true;\n\t\t\n\t\t\n\t\taccount.person = personService.createPerson(account.person);\n\t\taccount.person.personSettings = personalSettingsService.createSettings(account.person.personSettings);\n\t\t\n\t\t\n\t\treturn account;\n\t}",
"public LandingPage registerNewAccount(){\n\t\taction.WaitForWebElement(linkRegisterNewAccount)\n\t\t\t .Click(linkRegisterNewAccount);\n\t\treturn this;\n\t}",
"void activateAccount(File file, int accountID) throws ServiceException;",
"Object create(File file) throws IOException, SAXException, ParserConfigurationException;",
"@Override\n public void createOnlineAccount(String name, \n String ssn, String id, String psw)\n {\n final String url = \n \"jdbc:mysql://mis-sql.uhcl.edu/<username>?useSSL=false\";\n \n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n \n try\n {\n \n //connect to the databse\n connection = DriverManager.getConnection(url, \n db_id, db_password);\n connection.setAutoCommit(false);\n //crate the statement\n statement = connection.createStatement();\n \n //do a query\n resultSet = statement.executeQuery(\"Select * from onlineAccount \"\n + \"where id = '\" + id + \"' or ssn = '\"\n + ssn + \"'\");\n \n if(resultSet.next())\n {\n //either the ssn is used or the id is used\n System.out.println(\"Account creation failed\");\n }\n else\n {\n //insert a record into onlineAccount\n int r = statement.executeUpdate(\"insert into onlineAccount values\"\n + \"('\" + name + \"', '\" + id + \"', '\" + ssn + \"', '\"\n + psw +\"')\");\n System.out.println(\"Account creation successful!\");\n System.out.println();\n }\n connection.commit();\n connection.setAutoCommit(true);\n \n }\n catch (SQLException e)\n {\n System.out.println(\"Something wrong during the creation process!\");\n e.printStackTrace();\n }\n finally\n {\n //close the database\n try\n {\n resultSet.close();\n statement.close();\n connection.close();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n \n }",
"public void creatUser(String name, String phone, String email, String password);",
"private Account createAccount8() {\n Account account = new Account(\"123456008\", \"Jean Sans Enfant\",\n new SimpleDate(4, 23, 1976).asDate(), \"[email protected]\", true, false, new CreditCard(\"4320123412340008\"));\n\n return account;\n }",
"public HTMLFile (File inFile) {\n this.inFile = inFile;\n inName = inFile.toString();\n inURL = null;\n commonConstruction();\n }",
"AionAddress createAccount(String password);",
"private Account createAccount(byte[] address) {\n return new Account(address);\n }",
"public AccountCreator createAccountCreator(String xmlrpcUrl);",
"UserAccount createUserAccount(User user, double amount);",
"public void createAccountOnClick(View v){\n\n String email = emailTextView.getText().toString();\n String password = passwordTextView.getText().toString();\n createEmailAndPasswordAccount(email, password);\n\n }",
"private void createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"public HTMLFile (String inFileName) {\n inFile = new File(inFileName);\n inName = inFileName;\n inURL = null;\n commonConstruction();\n }",
"public HTMLFile (URL url) {\n this.inFile = null;\n inURL = url;\n inName = url.toString();\n commonConstruction();\n }",
"private void CreateUserAccount(final String lname, String lemail, String lpassword, final String lphone, final String laddress, final String groupid, final String grouppass ){\n mAuth.createUserWithEmailAndPassword(lemail,lpassword).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //account creation successful\n showMessage(\"Account Created\");\n //after user account created we need to update profile other information\n updateUserInfo(lname, pickedImgUri,lphone, laddress, groupid, grouppass, mAuth.getCurrentUser());\n }\n else{\n //account creation failed\n showMessage(\"Account creation failed\" + task.getException().getMessage());\n regBtn.setVisibility(View.VISIBLE);\n loadingProgress.setVisibility(View.INVISIBLE);\n\n }\n }\n });\n }",
"GenerateUserAccount () {\r\n }",
"@Override\n\tpublic Account createAccount(Account account) {\n\t\tif(account != null) {\n\t\t\taccountList.add(account);\n\t\t\treturn account;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"Account() { }",
"public static void creator(Website websiteInfo){\n //creates folder using info on current directory\n File newFolder = new File(websiteInfo.currentPath);\n boolean websiteTest = newFolder.mkdir();\n\n if(websiteTest){\n System.out.println(\"Created ./website/\"+ websiteInfo.name);\n htmlFile(websiteInfo);\n createCSSJava(websiteInfo);\n }else{\n System.out.println(\"Could not create website\");\n }\n }",
"public void create(UserValidator account) {\n Account validated = new Account();\n validated.setUsername(account.getUsername());\n validated.setPassword(passwordEncoder.encode(account.getPassword()));\n validated.setFirstName(account.getFirstName());\n validated.setLastName(account.getLastName());\n validated.getAuthorities().add(\"USER\");\n\n this.accountRepository.save(validated);\n }",
"@Override\r\n\tpublic boolean createAccount(Account account) {\n\t\treturn dao.createAccount(account);\r\n\t}",
"@Override\r\n\tpublic boolean create(Account newAccount) {\n\t\treturn daoref.create(newAccount);\r\n\t}",
"String addAccount(UserInfo userInfo);",
"public void openCreateAccount(){\n Intent intent = new Intent(this, createAccountActivity.class);\n startActivity(intent);\n }",
"private String createAccount(String name, double amount) {\n\t\tString accountNumber = \"\";\n\t\tAccount account = new Account();\n\t\taccount.setName(name);\n\t\taccount.setAmount(amount);\n\t\t\n\t\tString requestBody = gson.toJson(account);\n\n\t\tRequestSpecification request = RestAssured.given();\n\t\trequest.body(requestBody);\n\t\tResponse response = request.post(\"/account\");\n\t\tif (response.asString() != null && response.asString().contains(\":\")) {\n\t\t\tString responseArr[] = response.asString().split(\":\");\n\t\t\taccountNumber = responseArr[1].trim();\n\t\t}\n\t\treturn accountNumber;\n\t}",
"private Account createAccount4() {\n Account account = new Account(\"123456004\", \"Chad I. Cobbs\",\n new SimpleDate(4, 23, 1976).asDate(), \"[email protected]\", true, false,\n new CreditCard(\"1234123412340004\"), new CreditCard(\"4320123412340005\"));\n\n final Percentage percent50 = new Percentage(0.5);\n final Percentage percent25 = new Percentage(0.25);\n account.addBeneficiary(\"Jane\", percent25);\n account.addBeneficiary(\"Amy\", percent25);\n account.addBeneficiary(\"Susan\", percent50);\n return account;\n }",
"protected String createContract(String code, Object[] args, String filename) throws APIException, InterruptedException {\n TransactionResult result = contractService.create(null, code, ContractService.CodeType.solidity, args, null, null, null,\n filename, true, \"byzantium\", null);\n assertNotNull(result);\n assertNotNull(result.getId());\n assertTrue(!result.getId().isEmpty());\n\n Transaction tx = transactionService.waitForTx(result, 50, TimeUnit.MILLISECONDS);\n return tx.getContractAddress();\n }",
"public CreateAccountTest(String arg1, int arg2, int arg3, int arg4, int arg5){\n\t\tthis.arg1 = arg1;\n\t\tthis.arg2 = arg2;\n\t\tthis.arg3 = arg3;\n\t\tthis.arg4 = arg4;\n\t\tthis.arg5 = arg5;\n\t}",
"public void createFile(String name, String type) {\n\n final String fileName = name;\n\n final String fileType = type;\n\n // create new contents resource\n Drive.DriveApi.newDriveContents(mGoogleApiClient)\n .setResultCallback(new ResultCallback<DriveApi.DriveContentsResult>() {\n @Override\n public void onResult(DriveApi.DriveContentsResult result) {\n\n if (!result.getStatus().isSuccess()) {\n\n return;\n }\n\n final DriveContents driveContents = result.getDriveContents();\n\n // Perform I/O off the UI thread.\n new Thread() {\n\n @Override\n public void run() {\n\n if (mCRUDapi != null) {\n // write content to DriveContents\n mCRUDapi.onCreateFile(driveContents.getOutputStream());\n }\n\n createFile(fileName, fileType, driveContents);\n }\n }.start();\n\n\n }\n });\n }",
"Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);",
"@Override\n\tpublic void createAccount(Account p) {\n\t\t\n\t\ttry {\n\t\t\tConnection con = conUtil.getConnection();\n\t\t\t//To use our functions/procedure we need to turn off autocommit\n\t\t\tcon.setAutoCommit(false);\n\t\t\t\n\t\t\tString deleteFromTable = \"DELETE FROM accounts WHERE owner_id='8'\";\n\t try (Connection conn = conUtil.getConnection();\n\t PreparedStatement pstmt = conn.prepareStatement(deleteFromTable)) {\n\n\t // set the corresponding param\n\t pstmt.setInt(1, p.getOwner_id());\n\t // execute the delete statement\n\t pstmt.executeUpdate();\n\n\t } catch (SQLException e) {\n\t System.out.println(e.getMessage());\n\t }\n\t\t\t\n\t\t\tString sql = \"insert into accounts( owner_id, balance ) values (?,?)\";\n\t\t\tCallableStatement cs = con.prepareCall(sql);\n\t\t\t\n\t\t\tcs.setInt(1, p.getOwner_id());\n\t\t\tcs.setDouble(2, p.getBalance());\n\t\t\t\n\t\t\tcs.execute();\n\t\t\t\n\t\t\tcon.setAutoCommit(true);\n\t\t\t\n\t\t} catch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"@Test(priority=1, dataProvider=\"User Details\")\n\t\tpublic void registration(String firstname,String lastname,String emailAddress,\n\t\t\t\tString telephoneNum,String address1,String cityName,String postcodeNum,\n\t\t\t\tString country,String zone,String pwd,String confirm_pwd) throws Exception{\n\t\t\t\n\t\t\thomePage = new HomePage(driver);\n//'**********************************************************\t\t\t\n//Calling method to click on 'Create Account' link\n\t\t\tregistraionPageOC = homePage.clickCreateAccount();\n//'**********************************************************\t\t\t\n//Calling method to fill user details in Registration page and verify account is created\n\t\t\tregistraionPageOC.inputDetails(firstname,lastname,emailAddress,telephoneNum,address1,cityName,postcodeNum,country,zone,pwd,confirm_pwd);\n\t\t\ttry{\n\t\t\tAssert.assertEquals(\"Your Account Has Been Created!\", driver.getTitle(),\"Titles Not Matched: New Account Not Created\");\n\t\t\textentTest.log(LogStatus.PASS, \"Registration: New User Account is created\");\n\t\t\t}catch(Exception e){\n\t\t\t\textentTest.log(LogStatus.FAIL, \"Registration is not successful\");\n\t\t\t}\n\t\t}",
"@Override\r\n\tpublic boolean createAccount(Account account) throws Exception {\n\t\tboolean flag = false;\r\n\t\ttry {\r\n\t\t\tflag = this.dao.createAccount(account);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow e;\r\n\t\t}finally {\r\n\t\t\tthis.dbc.close();\r\n\t\t}\r\n\t\treturn flag;\r\n\t}",
"private void createFile() {\n if (mDriveServiceHelper != null) {\n Log.d(\"error\", \"Creating a file.\");\n\n mDriveServiceHelper.createFile()\n .addOnSuccessListener(fileId -> readFile(fileId))\n .addOnFailureListener(exception ->\n Log.e(\"error\", \"Couldn't create file.\", exception));\n }\n }",
"public static void CreateFile (String filename) {\r\n\t\t try {\r\n\t\t File myObj = new File(filename + \".txt\");\r\n\t\t if (myObj.createNewFile()) {\r\n\t\t System.out.println(\"File created: \" + myObj.getName());\r\n\t\t } else {\r\n\t\t System.out.println(\"File already exists.\");\r\n\t\t }\r\n\t\t } catch (IOException e) {\r\n\t\t System.out.println(\"An error occurred.\");\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t }",
"public Account createAccount(String login, String name, String surname, String city, String street, int number) throws Exception {\r\n\t\tif (login==null || login.equals(\"\")) throw(new Exception(\"Nazwa konta nie moze byc pusta\"));\r\n\t\tif (findAccount(login)!=null) throw(new Exception(\"Konto juz istnieje\"));\r\n\t\tAccount newAccount = new Account(login, name, surname, city, street, number);\r\n\t\tlistOfAccounts.add( newAccount );\r\n\t\treturn newAccount;\r\n\t}",
"public void createAccount(Account account) \n\t\t\tthrows SQLException, RegisterAccountDBException {\n\t\t\n\t\tString msg =\"Could not create account\";\n\t\tint updateRows=0;\n\t\t\n\t\ttry {\n\t\t\t//if(!accountExist(account.getPersonnr())) {\n\t\t\tif(getStudentInfo(account.getPersonnr())==null) {\n\t\t\tString personnr = account.getPersonnr();\n\t\t\tcreateAccountStmt.setString(1, personnr);\n\t\t updateRows = createAccountStmt.executeUpdate();\n\t\t if(updateRows!=1) {\n\t\t \thandleException(msg, null);\n\t\t }\n\t\t\tconnection.commit();\n\t\t }\n\t\t}catch (SQLException ex) {\n\t\t\thandleException(msg , ex);\t\n\t\t}\n\t}",
"private void createAccounts(){\r\n for(int i = 0; i < accountInTotal; i++){\r\n try {\r\n Account tempAccount = new Account(startingBonds);\r\n theAccounts.add(tempAccount);\r\n } catch(Exception e){\r\n System.err.println(\"Error\");\r\n }\r\n }\r\n }",
"public void openAccount(Account a) {}",
"@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}",
"public static void addNewUser(String name, String email, int accountLevel)\n\t{\n\t\tString[] names = name.split(\" \");\n\t\tString fname = names[0];\n\t\tString lname = names[1];\n\t\tString sql = \"INSERT INTO UserInfo (firstname, lastname, email, accountlevel) \"\n\t\t\t\t+ \"VALUES (?, ?, ?, ?)\";\n\t\ttry(Connection conn = DriverManager.getConnection(db, user, pwd);\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);)\n\t\t{\n\t\t\tps.setString(1, fname);\n\t\t\tps.setString(2, lname);\n\t\t\tps.setString(3, email);\n\t\t\tps.setInt(4, accountLevel);\n\t\t\tps.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@When(\"^I fill in valid Email address and click on create an account$\")\n\tpublic void I_fill_in_valid_Email_address_and_click_on_create_an_account() throws Throwable {\n\n\t\trandomNumber r = new randomNumber();\n\t\tString emailString = \"Example\" + r.gen();\n\t\tString emailAddress = emailString + \"@gmail.com\";\n\t\tdriver.findElement(By.id(\"email_create\")).sendKeys(emailAddress);\n\t\tdriver.findElement(By.id(\"SubmitCreate\")).submit();\n\t}",
"private static void addUser(String filename, String username, String userkey) {\n\t\ttry {\n\t\t\t// Open the user file, create new one if not exists\n\t\t\tFileWriter fileWriterUser = new FileWriter(filename, true);\n\t\t\t// User BufferedWriter to add new line\n\t\t\tBufferedWriter bufferedWriterdUser = new BufferedWriter(fileWriterUser);\n\n\t\t\t// Concatenate user name and key with a space\n\t\t\tbufferedWriterdUser.write(username + \" \" + userkey);\n\t\t\t// One user one line\n\t\t\tbufferedWriterdUser.newLine();\n\n\t\t\t// Always close files.\n\t\t\tbufferedWriterdUser.close();\n\t\t}\n\t\tcatch(FileNotFoundException ex) {\n\t\t\tSystem.out.println(\"Unable to open file '\" + filename + \"'\");\n\t\t}\n\t\tcatch(IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"HTML createHTML();",
"public CreateInstanceAccountResponse CreateInstanceAccount(CreateInstanceAccountRequest req) throws TencentCloudSDKException{\n JsonResponseModel<CreateInstanceAccountResponse> rsp = null;\n try {\n Type type = new TypeToken<JsonResponseModel<CreateInstanceAccountResponse>>() {\n }.getType();\n rsp = gson.fromJson(this.internalRequest(req, \"CreateInstanceAccount\"), type);\n } catch (JsonSyntaxException e) {\n throw new TencentCloudSDKException(e.getMessage());\n }\n return rsp.response;\n }",
"public static void createAccount()\r\n\t {\r\n\t\t String name;\r\n\t\t String username;\r\n\t\t String password;\r\n\t\t ArrayList<Book> booksLent = null;\r\n\t\t System.out.println(\"Enter your name\");\r\n\t\t Scanner src = new Scanner(System.in);\r\n\t\t name = src.next();\r\n\t\t System.out.println(\"Enter your username\");\r\n\t\t src = new Scanner(System.in);\r\n\t\t username = src.next();\r\n\t\t System.out.println(\"Enter your password\");\r\n\t\t src = new Scanner(System.in);\r\n\t\t password = src.next();\r\n\t\t \r\n\t\t Student stu = new Student(name, username, password, booksLent, 0);\r\n\t\t studentAccount = stu;\r\n\t\t FileReader.getStudents().add(stu);\r\n\t\t FileReader.update();\r\n\t\t Display.studentDisplay(studentAccount);\r\n\t }",
"public void createAccount(String acctId, String pass, String cardNo, String email) {\n accountId = acctId;\n password = pass;\n cardNumber = cardNo;\n customerEmail = email;\n \n try {\n //conect to database\n Class.forName(\"com.mysql.jdbc.Driver\");\n con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/make_order_request\", \"root\", \"admin\");\n Statement mystmt = con.createStatement();\n\n //write SQL query to update code in database\n String query = \"INSERT INTO customer_account(account_id, password, card_no, customer_email) VALUES (?,?,?,?)\";\n PreparedStatement ps = con.prepareStatement(query);\n ps.setString(1, accountId);\n ps.setString(2, password);\n ps.setInt(3, Integer.parseInt(cardNumber));\n ps.setString(4, customerEmail);\n\n ps.executeUpdate();\n\n return;\n\n } catch (Exception e) {\n e.printStackTrace();\n \n }\n\n }",
"public void addAccount(Account account,Person person);",
"public void Create(View view) {\n disableButton = findViewById(R.id.newAccountButton);\n disableButton.setEnabled(false);\n username = ((EditText)findViewById(R.id.createName)).getText().toString();\n password = ((EditText)findViewById(R.id.createPassword)).getText().toString();\n String password2 = ((EditText)findViewById(R.id.recreatePassword)).getText().toString();\n if (username.length() == 0 || password.length() == 0) {\n Toast.makeText(this, \"Fill in all boxes\", Toast.LENGTH_SHORT).show();\n disableButton.setEnabled(true);\n } else if (!password.equals(password2)) {\n Toast.makeText(this, \"passwords must be the same\", Toast.LENGTH_SHORT).show();\n disableButton.setEnabled(true);\n } else {\n PostuserHelper helper = new PostuserHelper(username, password, getApplicationContext(),\n NewaccountActivity.this);\n }\n }",
"public static void main(String[] args) throws IOException {\n\t\t\n\t\tWebDriver driver=new ChromeDriver();\n\t\tdriver.get(\"https://accounts.google.com/signup/v2/webcreateaccount?flowName=GlifWebSignIn&flowEntry=SignUp\");\n\t\t\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t// Now you can do whatever you need to do with it, for example copy somewhere\n\t\tFileUtils.copyFile(scrFile, new File(\"C:\\\\Users\\\\Udani\\\\eclipse-workspace\\\\SeleniumPlu\\\\Google.png\"));\n\n\t}",
"public Account createAccountFromFile(String fileName) {\n try {\n String path = \"src/test/resources/dummy_data/\" + fileName;\n File file = new File(path);\n return mapper.readValue(file, Account.class);\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }",
"void createCustomerAccount(String mobileNumber) throws Exception;",
"public void onClickcreateUserSignup(View view){\n\n String newName = ((EditText)findViewById(R.id.createUserUsername)).getText().toString();\n if(!newName.equals(\"\")) {\n Account.getInstance().setName(newName);\n\n SharedPreferences settings = getSharedPreferences(Utils.ACCOUNT_PREFS, 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"accountName\", newName);\n editor.commit();\n\n startActivity(new Intent(this, MainActivity.class));\n }\n }",
"public void TestAccount1() {\n\n AccountCreator account = new AccountCreator();\n account.setFirstName(\"Bob\");\n account.setLastName(\"Smith\");\n account.setAddress(\"5 Rain Road\");\n account.setPIN();\n account.setTestBalance(300);\n accountList.add(account);\n\n }",
"public void createFile (String filePath){\n try{\n File newFile = new File(filePath);\n if(newFile.createNewFile()){\n System.out.println(\"File created: \"+newFile.getName());\n } else {\n System.out.println(\"File already exists.\");\n }\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }",
"private void uploadTrickHtml(String htmlName, String htmlContent) throws IOException {\n Path webWolfFilePath = Paths.get(webwolfFileDir);\n if (webWolfFilePath.resolve(Paths.get(this.getUser(), htmlName)).toFile().exists()) {\n Files.delete(webWolfFilePath.resolve(Paths.get(this.getUser(), htmlName)));\n }\n\n //upload trick html\n RestAssured.given()\n .when()\n .relaxedHTTPSValidation()\n .cookie(\"WEBWOLFSESSION\", getWebWolfCookie())\n .multiPart(\"file\", htmlName, htmlContent.getBytes())\n .post(webWolfUrl(\"/WebWolf/fileupload\"))\n .then()\n .extract().response().getBody().asString();\n }",
"WebElement getNewAccountButton();",
"public HTMLFile (URL url, String label) {\n this.inFile = null;\n inURL = url;\n inName = url.toString();\n commonConstruction();\n context.setType (label);\n }",
"protected void NewApp(String name, String code, String file, String web,\n String dir) {\n String webRoot = UIHelper.getStoragePath(AppManagerActivity.this);\n webRoot = webRoot + constants.SD_CARD_TBSSOFT_PATH3 + \"/\";\n File newfile = new File(webRoot + dir + \"/\" + file);\n/*\t\tFile newfile2 = new File(webRoot + dir + \"/\"\n + constants.WEB_CONFIG_FILE_NAME);*/\n try {\n newfile.createNewFile();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n\n this.IniFile.writeIniString(webRoot + dir + \"/\" + file, \"TBSAPP\",\n \"defaultUrl\", web);\n this.IniFile.writeIniString(webRoot + dir + \"/\" + file, \"TBSAPP\", \"AppCode\",\n code);\n this.IniFile.writeIniString(webRoot + dir + \"/\" + file, \"TBSAPP\", \"AppName\",\n name);\n this.IniFile.writeIniString(webRoot + dir + \"/\" + file, \"TBSAPP\", \"AppVersion\",\n \"1.0\");\n AppManagerActivity.myThread handThread = new AppManagerActivity.myThread(dir, file);\n handThread.run();\n }"
] | [
"0.64551854",
"0.6131377",
"0.611018",
"0.5992355",
"0.5979738",
"0.59490144",
"0.5897086",
"0.5883058",
"0.5834336",
"0.5830852",
"0.5789279",
"0.57621413",
"0.56969655",
"0.5690169",
"0.5667499",
"0.5665801",
"0.56357306",
"0.5630485",
"0.55852556",
"0.5561175",
"0.5551512",
"0.55486745",
"0.5544746",
"0.5502477",
"0.5465575",
"0.5411949",
"0.5382539",
"0.5362489",
"0.53342",
"0.53190637",
"0.531421",
"0.5298488",
"0.5273558",
"0.5267033",
"0.52653426",
"0.5257872",
"0.5243162",
"0.5232568",
"0.52206314",
"0.5209347",
"0.5204279",
"0.52019644",
"0.5196624",
"0.51767385",
"0.5168325",
"0.5160108",
"0.51398975",
"0.5129262",
"0.5122737",
"0.51208353",
"0.51198125",
"0.511732",
"0.5109286",
"0.51044154",
"0.5100559",
"0.5080016",
"0.5078295",
"0.5076996",
"0.5045162",
"0.5044934",
"0.503579",
"0.5022887",
"0.496508",
"0.49610806",
"0.49549282",
"0.49543217",
"0.49376687",
"0.49173635",
"0.49112862",
"0.4909754",
"0.49039894",
"0.49037296",
"0.48688564",
"0.48680776",
"0.4862201",
"0.48599663",
"0.4856325",
"0.4854598",
"0.48506048",
"0.4846426",
"0.48431662",
"0.4840285",
"0.48309183",
"0.48234776",
"0.48215574",
"0.48179787",
"0.48170248",
"0.48099625",
"0.48079893",
"0.48003215",
"0.47900206",
"0.47895625",
"0.47778037",
"0.47744232",
"0.4769263",
"0.4767109",
"0.4765636",
"0.47436836",
"0.47425506",
"0.4741751"
] | 0.6779958 | 0 |
Gets the contents of the file. | private String instream_to_contents() throws IOException {
htmlrandom.seek(0);
InputStream instream = Channels.newInputStream(htmlrandom.getChannel());
StringBuilder result = new StringBuilder();
int c;
while (-1 != (c = instream.read()))
result.append((char)c);
return result.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getContents(File file) {\n\t //...checks on file are elided\n\t StringBuilder contents = new StringBuilder();\n\t \n\t try {\n\t //use buffering, reading one line at a time\n\t //FileReader always assumes default encoding is OK!\n\t BufferedReader input = new BufferedReader(new FileReader(file));\n\t try {\n\t String line = null; \n\n\t while (( line = input.readLine()) != null){\n\t contents.append(line);\n\t contents.append(\"\\r\\n\");\t }\n\t }\n\t finally {\n\t input.close();\n\t }\n\t }\n\t catch (IOException ex){\n\t log.error(\"Greska prilikom citanja iz fajla: \"+ex);\n\t }\n\t \n\t return contents.toString();\n\t}",
"public String readFileContents(String filename) {\n return null;\n\n }",
"public String getContent() {\n String s = null;\n try {\n s = new String(Files.readAllBytes(Paths.get(filename)), StandardCharsets.UTF_8);\n }\n catch (IOException e) {\n message = \"Problem reading a file: \" + filename;\n }\n return s;\n }",
"public String readFileContent(File file) {\n StringBuilder fileContentBuilder = new StringBuilder();\n if (file.exists()) {\n String stringLine;\n try {\n FileReader fileReader = new FileReader(file);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n while ((stringLine = bufferedReader.readLine()) != null) {\n fileContentBuilder.append(stringLine + \"\\n\");\n }\n bufferedReader.close();\n fileReader.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return fileContentBuilder.toString();\n }",
"static byte[] readContents(File file) {\n if (!file.isFile()) {\n throw new IllegalArgumentException(\"must be a normal file\");\n }\n try {\n return Files.readAllBytes(file.toPath());\n } catch (IOException excp) {\n throw new IllegalArgumentException(excp.getMessage());\n }\n }",
"private static String readFileContents(File file) throws FileNotFoundException {\n StringBuilder fileContents = new StringBuilder((int) file.length());\n\n try (Scanner scanner = new Scanner(file)) {\n while (scanner.hasNext()) {\n fileContents.append(scanner.next());\n }\n return fileContents.toString();\n }\n }",
"public String read() {\n\t\tStringBuffer text = new StringBuffer((int)file.length());\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(fr);\n\t\t\tboolean eof = false;\n\t\t\tString line;\n\t\t\tString ret = \"\\n\";\n\t\t\twhile (!eof) {\n\t\t\t\tline = b.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\teof = true;\n\t\t\t\t} else {\n\t\t\t\t\ttext.append(line);\n\t\t\t\t\ttext.append(ret);\n\t\t\t\t}\n\t\t\t}\n\t\t\tb.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"File \" + file.getName() +\n\t\t\t\t\" is unreadable : \" + e.toString());\n\t\t}\n\t\treturn text.toString();\n\t}",
"public List<String> getFileContent() {\r\n\t\tTextFileProcessor proc = new TextFileProcessor();\r\n\t\tthis.processFile(proc);\r\n\t\treturn proc.strList;\r\n\t}",
"static public String getContents(File aFile) {\n\t\tStringBuilder contents = new StringBuilder();\r\n\r\n\t\ttry {\r\n\t\t\t// use buffering, reading one line at a time\r\n\t\t\t// FileReader always assumes default encoding is OK!\r\n\t\t\tBufferedReader input = new BufferedReader(new FileReader(aFile));\r\n\t\t\ttry {\r\n\t\t\t\tString line = null; // not declared within while loop\r\n\t\t\t\t/*\r\n\t\t\t\t * readLine is a bit quirky : it returns the content of a line\r\n\t\t\t\t * MINUS the newline. it returns null only for the END of the\r\n\t\t\t\t * stream. it returns an empty String if two newlines appear in\r\n\t\t\t\t * a row.\r\n\t\t\t\t */\r\n\t\t\t\twhile ((line = input.readLine()) != null) {\r\n\t\t\t\t\tcontents.append(line);\r\n\t\t\t\t\tcontents.append(System.getProperty(\"line.separator\"));\r\n\t\t\t\t}\r\n\t\t\t} finally {\r\n\t\t\t\tinput.close();\r\n\t\t\t}\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn contents.toString();\r\n\t}",
"private byte[] getContent(File f) {\n byte[] content = null;\n\n try {\n FileInputStream fis = new FileInputStream(f);\n byte[] temp = new byte[fis.available()];\n fis.read(temp);\n fis.close();\n content = temp;\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n\n return content;\n }",
"public static String getContent(IFile file) throws Exception {\n return getContent(file.getContents(true));\n }",
"public static char[] getFileContents(File file) {\n // char array to store the file contents in\n char[] contents = null;\n try {\n BufferedReader br = new BufferedReader(new FileReader(file));\n StringBuffer sb = new StringBuffer();\n String line = \"\";\n while ((line = br.readLine()) != null) {\n // append the content and the lost new line.\n sb.append(line + \"\\n\");\n }\n contents = new char[sb.length()];\n sb.getChars(0, sb.length() - 1, contents, 0);\n\n assert (contents.length > 0);\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n\n return contents;\n }",
"@NonNull\n public String getSourceContents() {\n if (mSourceContents == null) {\n File sourceFile = getSourceFile();\n if (sourceFile != null) {\n mSourceContents = getClient().readFile(mSourceFile);\n }\n\n if (mSourceContents == null) {\n mSourceContents = \"\";\n }\n }\n\n return mSourceContents;\n }",
"public static String readFile() {\n\t\tFileReader file;\n\t\tString textFile = \"\";\n\n\t\ttry {\n\t\t\tfile = new FileReader(path);\n\n\t\t\t// Output string.\n\t\t\ttextFile = new String();\n\n\t\t\tBufferedReader bfr = new BufferedReader(file);\n\n\t\t\ttextFile= bfr.readLine();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading the file\");\n\t\t}\n\t\treturn textFile;\n\n\t}",
"public static String readFile(final File file) throws IOException\n\t{\n\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(\n\t\t\t\tnew FileInputStream(file), FILE_CHARSET_NAME));\n\t\ttry\n\t\t{\n\t\t\tfinal StringBuilder contents = new StringBuilder(BUFFER_SIZE);\n\n\t\t\t// copy from input stream\n\t\t\tfinal char[] charBuffer = new char[BUFFER_SIZE];\n\t\t\tint len;\n\t\t\twhile ((len = input.read(charBuffer)) > 0)\n\t\t\t{\n\t\t\t\tcontents.append(charBuffer, 0, len);\n\t\t\t}\n\n\t\t\treturn contents.toString();\n\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tinput.close();\n\t\t}\n\t}",
"@Override\n public String getContent() throws FileNotFound, CannotReadFile\n {\n Reader input = null;\n try\n {\n input = new InputStreamReader(resource.openStream());\n String content = IOUtils.toString(input).replace(\"\\r\\n\", \"\\n\");\n\n return content;\n } catch (FileNotFoundException ex)\n {\n throw new FileNotFound();\n } catch (IOException ex)\n {\n throw new CannotReadFile();\n } finally\n {\n InternalUtils.close(input);\n }\n }",
"public String readFromFile() throws IOException {\n return br.readLine();\n }",
"public byte[] getFilecontent() {\n return filecontent;\n }",
"public String readFile(File file) {\r\n\t\tString line;\r\n\t\tString allText = \"\";\r\n\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(file))) {\r\n\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\r\n\t\t\t\tallText += line + \"\\n\";\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn allText;\r\n\t}",
"private String readFile(String file) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(file), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n\n }",
"public String getFileContents(String myFile) {\n\n\t\t// Creates a new StringBuilder object.\n\t\tthis.fileContents = new StringBuilder();\n\n\t\t// Creates a new File object.\n\t\tthis.file = new File(myFile);\n\n\t\ttry {\n\t\t\t// Creates a FileReader object.\n\t\t\tthis.fileReader = new FileReader(file);\n\n\t\t\t// Wraps the FileReader in a BufferedReader.\n\t\t\tthis.bufferedReader = new BufferedReader(fileReader);\n\n\t\t\t// Reads from the FileReader via the BufferedReader and appends to the String.\n\t\t\twhile ((this.line = bufferedReader.readLine()) != null) {\n\t\t\t\tfileContents.append(line + \"\\n\");\n\t\t\t}\n\t\t\t// If file cannot be located.\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"[ERROR] File not found: \" + file.toString());\n\t\t\t// If file cannot be read.\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[ERROR] Unable to read file: \" + file.toString());\n\t\t}\n\n\t\ttry {\n\t\t\tbufferedReader.close();\n\t\t\t// If file cannot be closed.\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[ERROR] Unable to close file: \" + file.toString());\n\t\t\t// If file contains a null value.\n\t\t} catch (NullPointerException ex) {\n\t\t\tSystem.out.println(\"[ERROR] \" + file.toString() + \"contains no information.\");\n\t\t}\n\t\treturn fileContents.toString();\n\t}",
"private static String readFile(File file) {\n String result = \"\";\n\n try (BufferedReader bufferedReader = new BufferedReader(\n new FileReader(file))) {\n result = bufferedReader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }",
"public String getFileContent(String filePath) {\n\t\tString content = \"\";\n\t\t// get the path\n\t\tString path = filePath.substring(0, filePath.lastIndexOf(\"/\"));\n\t\t// get the file's name\n\t\tString name = filePath.substring(filePath.lastIndexOf(\"/\") + 1);\n\t\t// iterate through all the files to see if we can find it...\n\t\tfor (FileObjects t : getDirectory(path, directory).getFiles()) {\n\t\t\tif (name.equals(t.getName())) {\n\t\t\t\tcontent = t.getContent();\n\t\t\t}\n\t\t}\n\t\t// return the content of the file, or just an empty string if it's\n\t\t// empty.\n\t\treturn content;\n\n\t}",
"public final File getFile() {\n return file;\n }",
"private String getStringFromFile() throws FileNotFoundException {\n String contents;\n FileInputStream fis = new FileInputStream(f);\n StringBuilder stringBuilder = new StringBuilder();\n try {\n InputStreamReader inputStreamReader = new InputStreamReader(fis, \"UTF-8\");\n 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 // Error occurred when opening raw file for reading.\n } finally {\n contents = stringBuilder.toString();\n }\n return contents;\n }",
"public byte[] getFile() {\n return file;\n }",
"public String read(File file) throws IOException {\n\t\t\tInputStream is = null;\r\n\t\t\tis = new FileInputStream(file);\r\n\t\t\t\r\n\t\t\tAccessTextFile test = new AccessTextFile();\r\n//\t\t\tInputStream is = new FileInputStream(\"E:\\\\test.txt\");\r\n\t\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\ttest.readToBuffer(buffer, is);\r\n\t\t\tSystem.out.println(buffer); // 将读到 buffer 中的内容写出来\r\n\t\t\tis.close();\t\t\r\n\t\t\treturn buffer.toString();\r\n\t\t }",
"public String getFile()\n\t{\n\t\treturn file;\n\t}",
"public String getFile()\n\t{\n\t\treturn file;\n\t}",
"File getFile();",
"File getFile();",
"private String getFileContent(String filePath) {\r\n\r\n\t\ttry {\r\n\t\t\tString text = new String(Files.readAllBytes(Paths.get(filePath)), StandardCharsets.UTF_8);\r\n\t\t\treturn text;\r\n\t\t} catch (Exception ex) {\r\n\t\t\treturn \"-1\";\r\n\t\t}\r\n\t}",
"public String readFile(){\r\n StringBuffer str = new StringBuffer(); //StringBuffer is a mutable string\r\n Charset charset = Charset.forName(\"UTF-8\"); //UTF-8 character encoding\r\n Path file = Paths.get(filename + \".txt\");\r\n try (BufferedReader reader = Files.newBufferedReader(file, charset)) { // Buffer: a memory area that buffered streams read\r\n String line = null;\r\n while ((line = reader.readLine()) != null) { //Readers and writers are on top of streams and converts bytes to characters and back, using a character encoding\r\n str.append(line + \"\\n\");\r\n }\r\n }\r\n catch (IOException x) {\r\n System.err.format(\"IOException: %s%n\", x);\r\n }\r\n return str.toString();\r\n }",
"private static String getText(IFile file) throws CoreException, IOException {\n\t\tInputStream in = file.getContents();\n\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\tbyte[] buf = new byte[1024];\n\t\tint read = in.read(buf);\n\t\twhile (read > 0) {\n\t\t\tout.write(buf, 0, read);\n\t\t\tread = in.read(buf);\n\t\t}\n\t\treturn out.toString();\n\t}",
"public File getFile();",
"public File getFile();",
"public List<String> readFileContents(String filePath) throws APIException;",
"public byte[] getContents() throws VlException\n {\n long len = getLength();\n // 2 GB files cannot be read into memory !\n\n // zero size optimization ! \n\n if (len==0) \n {\n return new byte[0]; // empty buffer ! \n }\n\n if (len > ((long) VRS.MAX_CONTENTS_READ_SIZE))\n throw (new ResourceToBigException(\n \"Cannot read complete contents of a file greater then:\"\n + VRS.MAX_CONTENTS_READ_SIZE));\n\n int intLen = (int) len;\n return getContents(intLen);\n\n }",
"public String readFile(){\n\t\tString res = \"\";\n\t\t\n\t\tFile log = new File(filePath);\n\t\tBufferedReader bf = null;\n\t\t\n\t\ttry{\n\t\t\tbf = new BufferedReader(new FileReader(log));\n\t\t\tString line = bf.readLine();\n\t\t\n\t\t\n\t\t\twhile (line != null){\n\t\t\t\tres += line+\"\\n\";\n\t\t\t\tline = bf.readLine();\n\t\t\t}\n\t\t\n\t\t\treturn res;\n\t\t}\n\t\tcatch(Exception oops){\n\t\t\tSystem.err.println(\"There was an error reading the file \"+oops.getStackTrace());\n\t\t\treturn \"\";\n\t\t}\n\t\tfinally{\n\t\t\ttry {\n\t\t\t\tbf.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"There was an error closing the read Buffer \"+e.getStackTrace());\n\t\t\t}\n\t\t}\n\t}",
"public File getFile() {\n return file;\n }",
"public File getFile() {\n return file;\n }",
"public File getFile() {\n return file;\n }",
"public File getFile() {\n return file;\n }",
"public File getFile() {\n return file;\n }",
"public static String getContentForFileFromDisk(IFile file) {\n\t\treturn getContentForFileFromDisk(file, 0);\n\t}",
"public static String readFile(String path) {\n String contents = \"\";\n try {\n BufferedReader br = new BufferedReader(new FileReader(path));\n\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n sb.append(System.lineSeparator());\n line = br.readLine();\n }\n contents = sb.toString();\n br.close();\n } catch (Exception e) {\n System.out.println(e.toString());\n System.exit(1);\n }\n return contents;\n }",
"public static String read(File file) throws CWLException {\r\n StringBuilder contents = new StringBuilder();\r\n try (FileInputStream in = new FileInputStream(file)) {\r\n byte[] buffer = new byte[1024];\r\n int read = 0;\r\n while ((read = in.read(buffer)) > 0) {\r\n contents.append(new String(buffer, 0, read, StandardCharsets.UTF_8.name()));\r\n }\r\n } catch (IOException e) {\r\n throw new CWLException(\r\n ResourceLoader.getMessage(READ_FILE_FAILED_MSG, file.getAbsolutePath(), e.getMessage()),\r\n 255);\r\n }\r\n return contents.toString();\r\n }",
"String getContents();",
"public static String getTextFromFile(File file) {\n InputStream fis = null;\n InputStreamReader isr = null;\n BufferedReader bufferedReader = null;\n StringBuilder sb = new StringBuilder(\"\");\n try {\n fis = new FileInputStream(file);\n isr = new InputStreamReader(fis);\n bufferedReader = new BufferedReader(isr);\n String line;\n while ((line = bufferedReader.readLine()) != null) sb.append(line);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fis != null && isr != null && bufferedReader != null) {\n try {\n fis.close();\n isr.close();\n bufferedReader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return sb.toString();\n }",
"public File getFile() {\n return new File(this.filePath);\n }",
"FileObject getFile();",
"FileObject getFile();",
"public static String read(String path) {\r\n\t\t\r\n\t\t// open the file\r\n\t\tFile file = new File(path);\r\n\t\t\r\n\t\t\r\n\t\t// if the file does not exist return null\r\n\t\tif (!file.exists())\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString content = \"\";\r\n\t\t\r\n\t\t// write to the file\r\n\t\ttry {\r\n\t\t\t// open stream\r\n\t\t\tFileReader fReader = new FileReader(file);\r\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fReader);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// read all the content of the file\r\n\t\t\tString current = bufferedReader.readLine();\r\n\t\t\twhile (current != null) {\r\n\t\t\t\tcontent = content.concat(current + \"\\n\");\r\n\t\t\t\tcurrent = bufferedReader.readLine();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// close anything was opened\r\n\t\t\tbufferedReader.close();\r\n\t\t\tfReader.close();\r\n\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\t\r\n\t\treturn content;\r\n\t}",
"@Override\n\tpublic byte[] get()\n\t{\n\t\tif (isInMemory())\n\t\t{\n\t\t\tif (cachedContent == null)\n\t\t\t{\n\t\t\t\tcachedContent = dfos.getData();\n\t\t\t}\n\t\t\treturn cachedContent;\n\t\t}\n\n\t\tFile file = dfos.getFile();\n\n\t\ttry\n\t\t{\n\t\t\treturn Files.readBytes(file);\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\tlog.debug(\"failed to read content of file: \" + file.getAbsolutePath(), e);\n\t\t\treturn null;\n\t\t}\n\t}",
"String getFile() {\n\t\treturn file;\n\t}",
"String getFile();",
"String getFile();",
"String getFile();",
"public List<String> readFile() {\n \n try {\n ensureFileExists();\n return Files.readAllLines(filePath);\n } catch (FileNotFoundException ex) {\n return new ArrayList<>();\n } catch (IOException ex) {\n ex.printStackTrace();\n return new ArrayList<>();\n }\n }",
"private String getFileContent(java.io.File fileObj) {\n String returned = \"\";\n try {\n java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.FileReader(fileObj));\n while (reader.ready()) {\n returned = returned + reader.readLine() + lineSeparator;\n }\n } catch (FileNotFoundException ex) {\n JTVProg.logPrint(this, 0, \"файл [\" + fileObj.getName() + \"] не найден\");\n } catch (IOException ex) {\n JTVProg.logPrint(this, 0, \"[\" + fileObj.getName() + \"]: ошибка ввода/вывода\");\n }\n return returned;\n }",
"public String getFile() {\n \n // return it\n return theFile;\n }",
"public String getFormattedFileContents ();",
"public static String getContent(String path){\t\n\t\t\n\t\tStringBuilder content = new StringBuilder();\n\t\tFile file = new File(path);\n\t\t\n\t\ttry{\n\t\t\tScanner fileReader = new Scanner(file);\n\t\t\twhile (fileReader.hasNextLine()) \n\t\t\t\tcontent.append(fileReader.nextLine() + \"\\n\");\t\n\t\t\tfileReader.close();\n\t\t}\n\t\tcatch(FileNotFoundException f){\n\t\t\tf.printStackTrace();\n }\n \n return content.toString();\n\t}",
"public File getFile() { return file; }",
"public String loadFromFile() {\n StringBuilder sb = new StringBuilder();\n try {\n Log.d(\"DEBUG\", this.context.getPackageName());\n Log.d(\"DEBUG\", this.file);\n FileInputStream fis = context.openFileInput(file);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis, this.encoding));\n String line;\n while(( line = br.readLine()) != null ) {\n sb.append( line );\n sb.append( '\\n' );\n }\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n return sb.toString();\n }",
"@Override\n\tpublic File getFile() {\n\t\treturn file;\n\t}",
"public InputStream getInputStream() throws IOException {\r\n return mFile.getInputStream();\r\n }",
"public void get(String file) {\n\n }",
"public File getFile() {\r\n \t\treturn file;\r\n \t}",
"public File getFile() {\n\t\treturn file;\n\t}",
"public static String getText(File file) {\n\t try {\n\t StringBuilder builder = new StringBuilder();\n\t BufferedReader input = new BufferedReader(new FileReader(file));\n\t try {\n\t String lineSeparator = System.getProperty(\"line.separator\");\n\t if (lineSeparator == null) {\n\t lineSeparator = \"\\n\";\n\t }\n\t for (String line; (line = input.readLine()) != null; ) {\n\t builder.append(line);\n\t builder.append(lineSeparator);\n\t }\n\t return builder.toString();\n\t } finally {\n\t input.close();\n\t }\n\t } catch (Exception e) {\n\t throw new RuntimeException(e.getMessage(), e);\n\t }\n\t }",
"public void readFile();",
"public String FetchDataFromFile(File file) {\r\n\t\tStringBuilder sb=new StringBuilder();\r\n\t\ttry {\r\n\t\t\tScanner sc=new Scanner(file);\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tsb.append(sc.nextLine());\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"public File getFile() {\n\t\treturn this.file;\n\t}",
"@Override\n public String getData(File file) throws Exception {\n String data;\n FileInputStream fis = null;\n try {\n if (file == null) {\n // ex. if site root url returns something else than 200 (ex. 403)\n return \"\"; // else cleaner.clean(siteRootFile) throws NullPointerException\n }\n fis = new FileInputStream(file);\n StringBuilder dataBuffer = new StringBuilder();\n int c;\n while ((c = fis.read()) != -1) {\n dataBuffer.append((char) c);\n }\n data = dataBuffer.toString();\n }\n catch (Exception e) {\n data = null;\n }\n finally {\n if (fis != null) {\n fis.close();\n }\n }\n return data;\n }",
"public File getFile() {\n return _file;\n }",
"public File getFile() {\n return file;\n }",
"public InputStream getInputStream() throws IOException {\n return new FileInputStream(_file);\n }",
"public String ReadFile() throws IOException {\n File file = context.getFilesDir();\n File textfile = new File(file + \"/\" + this.fileName);\n\n FileInputStream input = context.openFileInput(this.fileName);\n byte[] buffer = new byte[(int)textfile.length()];\n\n input.read(buffer);\n\n return new String(buffer);\n }",
"public static String readFileContent(String fileName){\r\n String str=null;\r\n BufferedReader reader=null;\r\n try {\r\n reader=new BufferedReader(new FileReader(fileName));\r\n str=reader.readLine();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }finally{\r\n if(reader!=null){\r\n try {\r\n reader.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n return str;\r\n }",
"static Stream<String> readIn(File file) \r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn Files.readAllLines(file.toPath()).stream();\r\n\t\t} \r\n\t\tcatch (IOException ioe) \r\n\t\t{\r\n\t\t\tthrow new UncheckedIOException(ioe);\r\n\t\t}\r\n\t}",
"public File getFile ();",
"public static String getFileContentsAsString(String filename) {\n\n // Java uses Paths as an operating system-independent specification of the location of files.\n // In this case, we're looking for files that are in a directory called 'data' located in the\n // root directory of the project, which is the 'current working directory'.\n final Path path = FileSystems.getDefault().getPath(\"Resources\", filename);\n\n try {\n // Read all of the bytes out of the file specified by 'path' and then convert those bytes\n // into a Java String. Because this operation can fail if the file doesn't exist, we\n // include this in a try/catch block\n return new String(Files.readAllBytes(path));\n } catch (IOException e) {\n // Since we couldn't find the file, there is no point in trying to continue. Let the\n // user know what happened and exit the run of the program. Note: we're only exiting\n // in this way because we haven't talked about exceptions and throwing them in CS 126 yet.\n System.out.println(\"Couldn't find file: \" + filename);\n System.exit(-1);\n return null; // note that this return will never execute, but Java wants it there.\n }\n }",
"public byte[] getFileContent() throws IOException {\n if (data != null) {\n return data;\n }\n if (tempFile != null) {\n return FileUtil.readBytes(tempFile);\n }\n return null;\n }",
"public String read(String filePath) throws IOException {\r\n\t\t//read file into stream\r\n\t\t\treturn new String(Files.readAllBytes(Paths.get(filePath)));\r\n\t}",
"@JsonGetter(\"fileContent\")\r\n public String getFileContent ( ) { \r\n return this.fileContent;\r\n }",
"public String[] read()\n {\n ArrayList<String> input = new ArrayList<String>();\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n if (dir.exists())\n {\n Scanner contacts = new Scanner(dir);\n while (contacts.hasNextLine())\n {\n input.add(contacts.nextLine());\n }\n contacts.close();\n }\n }catch (Exception ex)\n {\n //debug(\"read file contents failure\");\n debug = \"test read failure\";\n }\n return input.toArray(new String[1]);\n }",
"private static List<String> readFile(File file) throws IOException {\n return Files.readAllLines(file.toPath());\n }",
"private static List<String> readFile(File file) throws IOException {\n return Files.readAllLines(file.toPath());\n }",
"public String read() throws Exception {\r\n\t\tBufferedReader reader = null;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tif (input==null) input = new FileInputStream(file);\r\n\t\t\treader = new BufferedReader(new InputStreamReader(input,charset));\r\n\t\t\tchar[] c= null;\r\n\t\t\twhile (reader.read(c=new char[8192])!=-1) {\r\n\t\t\t\tsb.append(c);\r\n\t\t\t}\r\n\t\t\tc=null;\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\treturn sb.toString().trim();\r\n\t}",
"public static String readFile(File file) {\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString line = br.readLine();\n\n\t\t\twhile (line != null) {\n\t\t\t\tsb.append(line);\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(br);\n\t\t}\n\n\t\treturn null;\n\t}",
"Path getContent(String filename);",
"public String getContentsOfFile(IDirectory parentDir, String filePath) {\r\n // Check if the file with the given name does not exist\r\n if (this.getItemGivenPath(parentDir, filePath) == null\r\n || !this.isFile((Directory) parentDir, filePath)) {\r\n return \"Error: File \" + filePath + \" does not exist in this directory!\";\r\n // If the file exists\r\n } else {\r\n // Get and return the file contents\r\n IFile file = (IFile) this.getItemGivenPath(parentDir, filePath);\r\n return file.getData();\r\n }\r\n }",
"private String getFileContent(){\n\t\tString employeesJsonString=\"\";\n\t\ttry {\n\t\t\tScanner sc = new Scanner(file);\n\t\t\twhile(sc.hasNextLine()){\n\t\t\t\temployeesJsonString += sc.nextLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t\tSystem.out.println(\"file error\");\n\t\t}\n\t\treturn employeesJsonString;\n\t}",
"public com.google.protobuf.ByteString getFile() {\n return file_;\n }",
"private File getFile() {\n\t\t// retornamos el fichero a enviar\n\t\treturn this.file;\n\t}",
"public ArrayList<String> readFile(File file) {\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\ttry {\n\t\t\tif (file.exists()) {\n\t\t\t\tFileReader fr = new FileReader(file);\n\t\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\t\tString line;\n\t\t\t\tbr.readLine();\n\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\tal.add(line);\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t\tbr.close();\n\t\t\t}\n\t\t} catch (IOException e) {\t\n\t\t\t}\n\t\treturn al;\n\t\t}",
"public File getFile() {\n\t\treturn new File(filepath);\n\t}",
"public FileObject getFile() {\n return file;\n }",
"public FileObject getFile() {\n return file;\n }",
"public static String readFile(File file) {\n FileInputStream fis = null;\n try {\n fis = new FileInputStream(file);\n byte[] b = Utils.readBytes(fis);\n return new String(b, StandardCharsets.UTF_8);\n } catch (IOException e) {\n e.printStackTrace();\n }finally {\n if(fis != null) {\n try {\n fis.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return null;\n }"
] | [
"0.74846005",
"0.7381515",
"0.724173",
"0.7068182",
"0.6859582",
"0.68505764",
"0.6847007",
"0.68109226",
"0.68102175",
"0.67768127",
"0.67683417",
"0.6730714",
"0.6705004",
"0.6702219",
"0.6664404",
"0.6649012",
"0.66430825",
"0.6637079",
"0.66308767",
"0.6613897",
"0.6607355",
"0.65926135",
"0.65673673",
"0.6564669",
"0.6540511",
"0.6494368",
"0.6493343",
"0.64851254",
"0.64851254",
"0.6479047",
"0.6479047",
"0.6468957",
"0.64619476",
"0.6456669",
"0.6449053",
"0.6449053",
"0.644727",
"0.6432058",
"0.6431031",
"0.6429352",
"0.6416691",
"0.6416691",
"0.6416691",
"0.6416691",
"0.64153874",
"0.6395571",
"0.6390509",
"0.6381178",
"0.63788754",
"0.63722837",
"0.6370999",
"0.6370999",
"0.63689214",
"0.63535386",
"0.635188",
"0.6350415",
"0.6350415",
"0.6350415",
"0.6345518",
"0.6343516",
"0.6331988",
"0.633087",
"0.6330711",
"0.63294953",
"0.6328967",
"0.63203466",
"0.6316449",
"0.63139284",
"0.63053405",
"0.62975013",
"0.6284444",
"0.6284017",
"0.62798214",
"0.6274529",
"0.62657577",
"0.6260222",
"0.62508714",
"0.62339544",
"0.6228198",
"0.6224878",
"0.62245893",
"0.6220034",
"0.6215829",
"0.6209911",
"0.62068564",
"0.62055385",
"0.6165017",
"0.61565113",
"0.61565113",
"0.61394477",
"0.6124036",
"0.6120747",
"0.6117547",
"0.61163646",
"0.61089903",
"0.6097382",
"0.6089261",
"0.60841554",
"0.6082064",
"0.6082064",
"0.60760766"
] | 0.0 | -1 |
Parses the RandomAccessFile into a Jsoup Document. | private Document parseFile() throws IOException {
String contents = instream_to_contents();
Document doc = Jsoup.parse(contents);
return doc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VisibleForTesting\n\tDocument parseLocalFile(String url) throws IOException {\n\t\treturn Jsoup.parse(new File(url), \"UTF-8\", \"\");\n\t}",
"public static final Document parse(final File f) {\r\n String uri = \"file:\" + f.getAbsolutePath();\r\n\r\n if (File.separatorChar == '\\\\') {\r\n uri = uri.replace('\\\\', '/');\r\n }\r\n\r\n return parse(new InputSource(uri));\r\n }",
"public void parseDocument(String fileLocation) {\n List<Object> objects = FileUtility.readObjectsFromFile(fileLocation);\n new File(FILE_DIRECTORY_NAME).mkdir();\n\n // TODO: Parellize the processing of html parsing for each html page\n\n objects.parallelStream().forEach((object) -> {\n HtmlPage htmlPage = (HtmlPage) object;\n String title = DocumentUtility.extractDocumentID(htmlPage.getURL());\n String parsedText = parseTitle(title) + NEWLINE + parseHtmlText(htmlPage);\n parsedHtmlPages.add(new ParsedHtmlPage(title, parsedText));\n });\n }",
"public Document fetchDocument(String url) { \n Document doc = new Document(\"\");\n //http://www.oracle.com/technetwork/java/javase/8u111-relnotes-3124969.html\n //Disable basic authentication for HTTPS tunneling \n System.setProperty(\"jdk.http.auth.tunneling.disabledSchemes\", \"''\");\n System.out.println(\"Acessing url \" + url + \" ...\");\n\n try {\n URL robotsTxT = new URL(url);\n\n Proxy proxy = proxies.get(this.rand.nextInt(proxies.size()));\n \n Authenticator authenticator = new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return (new PasswordAuthentication(USER, PASS.toCharArray()));\n }\n };\n Authenticator.setDefault(authenticator);\n \n HttpURLConnection httpConn = (HttpURLConnection) robotsTxT.openConnection(proxy);\n httpConn.setRequestProperty(\"User-Agent\", agentValue.get(rand.nextInt(agentValue.size())));\n\n Scanner httpResponse = new Scanner(httpConn.getInputStream());\n\n ByteArrayOutputStream response = new ByteArrayOutputStream();\n while(httpResponse.hasNextLine()) {\n response.write(httpResponse.nextLine().getBytes());\n } \n\n response.close();\n httpResponse.close(); \n\n String robotsData = response.toString();\n\n if(robotsData != null) {\n doc = Jsoup.parse(robotsData);\n }\n\n } catch (Exception ex) {\n System.err.println(\"ERROR: \" + ex.getMessage());\n }\n\n return doc;\n }",
"public static Document parse(String filename) throws ParserException {\n\t\t// TODO YOU MUST IMPLEMENT THIS\n\t\t// girish - All the code below is mine\n\t\t\t\n\t\t// Creating the object for the new Document\n\t\t\n\t\t\n\t\tif (filename == null){\n\t\t\tthrow new ParserException();\n\t\t}\n\t\t\n\t\t// Variable indexPos to track the current pointer location in the String Array\n\t\tint indexPos = 0;\n\t\t\n\t\t// Creating an instance of the document class to store the parsed content\n\t\tDocument d = new Document();\n\t\t\n\t\t// to store the result sent from the regexAuthor method and regexPlaceDate method\n\t\tObject[] resultAuthor = {null, null, null};\n\t\tObject[] resultPlaceDate = {null, null, null};\n\t\tStringBuilder news = new StringBuilder();\n\t\t\n\t\t// Next 4 lines contains the code to get the fileID and Category metadata\n\t\tString[] fileCat = new String[2];\n\t\t\n\t\tfileCat = regexFileIDCat(\"/((?:[a-z]|-)+)/([0-9]{7})\", filename);\n\t\t// System.out.println(filename);\n\t\t// throw an exception if the file is blank, junk or null\n\t\tif (fileCat[0] == null){\n\t\t\tthrow new ParserException();\n\t\t}\n\t\td.setField(FieldNames.CATEGORY, fileCat[0]);\n\t\td.setField(FieldNames.FILEID, fileCat[1]);\n\t\t\n\t\t\n\t\t// Now , parsing the file\n\t\tFile fileConnection = new File(filename);\n\t\t\n\t\t// newscollated - it will store the parsed file content on a line by line basis\n\t\tArrayList<String> newscollated = new ArrayList<String>();\n\t\t\n\t\t// String that stores the content obtained from the . readline() operation\n\t\tString temp = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\t\n\t\t\tBufferedReader getInfo = new BufferedReader(new FileReader(fileConnection));\n\t\t\twhile ((temp = getInfo.readLine()) != null)\n\t\t\t{\n\t\t\t\tif(temp.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\t\n\t\t\t\t\ttemp = temp + \" \";\n\t\t\t\t\tnewscollated.add(temp);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tgetInfo.close();\n\t\t\t\n\t\t\t//-- deprecated (REMOVE THIS IF OTHER WORKS)\n\t\t\t// setting the title using the arraylist's 0th index element\n\t\t\t//d.setField(FieldNames.TITLE, newscollated.get(0));\n\t\t\t\n\t\t\t// Appending the lines into one big string using StringBuilder\n\t\t\t\n\t\t\tfor (String n: newscollated)\n\t\t\t{\n\t\t\t\tnews.append(n);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// Obtaining the TITLE of the file\n\t\t\tObject[] titleInfo = new Object[2];\n\t\t\t\n\t\t\ttitleInfo = regexTITLE(\"([^a-z]+)\\\\s{2,}\", news.toString());\n\t\t\td.setField(FieldNames.TITLE, titleInfo[0].toString().trim());\n\t\t\tindexPos = (Integer) titleInfo[1];\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t// Getting the Author and Author Org\n\t\t\tresultAuthor = regexAuthor(\"<AUTHOR>(.*)</AUTHOR>\", news.toString());\n\t\t\t\n\t\t\tif (resultAuthor[0] != null)\n\t\t\t{\n\t\t\t\td.setField(FieldNames.AUTHOR, resultAuthor[0].toString());\n\t\t\t}\n\t\t\t\n\t\t\tif (resultAuthor[1] != null)\n\t\t\t{\n\t\t\t\td.setField(FieldNames.AUTHORORG, resultAuthor[1].toString());\n\t\t\t}\n\t\t \n\t\t \n\t\t \n\t\t if ((Integer) resultAuthor[2] != 0)\n\t\t {\n\t\t \tindexPos = (Integer) resultAuthor[2];\n\t\t }\n\t\t\t\n\t\t \n\t\t \n\t\t // Getting the Place and Date\n \t\t\tresultPlaceDate = regexPlaceDate(\"\\\\s{2,}(.+),\\\\s(?:([A-Z][a-z]+\\\\s[0-9]{1,})\\\\s{1,}-)\", news.toString());\n \t\t\t\n \t\t\tif (resultPlaceDate[0] != null)\n \t\t\t{\n \t\t\t\td.setField(FieldNames.PLACE, resultPlaceDate[0].toString().trim());\n \t\t\t}\n \t\t \n \t\t\tif (resultPlaceDate[1] != null)\n \t\t\t{\n \t\t\t\td.setField(FieldNames.NEWSDATE, resultPlaceDate[1].toString().trim());\n \t\t\t}\n \t\t\t\n \t\t // getting the content\n \t\t \n \t\t if ((Integer) resultPlaceDate[2] != 0)\n\t\t {\n\t\t \tindexPos = (Integer) resultPlaceDate[2];\n\t\t }\n \t\t \n \t\t \n \t\t d.setField(FieldNames.CONTENT, news.substring(indexPos + 1));\n \t\t \n \t\t return d;\n \t\t \n\t\t \n\t\t \n\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch(FileNotFoundException e){\n\t\t\tthrow new ParserException();\n\t\t\t\n\t\t}\n\n\t\tcatch(IOException e){\n\t\t\tthrow new ParserException();\n\t\t}\n\t\t\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\treturn d;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"private Document getDocumentInFileSys()throws Exception{\r\n\t\t\r\n\t\tDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder builder = builderFactory.newDocumentBuilder();\r\n\t\tFile file = new File(DIR,FILE_NAME);\r\n\t\tif(!file.exists())\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tFileInputStream inStream =new FileInputStream(file);\r\n\t\ttry{\r\n\t\t\tDocument doc = builder.parse(inStream);\r\n\t\t\treturn doc;\r\n\t\t}finally{\r\n\t\t\tinStream.close();\r\n\t\t}\r\n\t}",
"private static Document read (File file) throws MalformedURLException, DocumentException {\r\n\t\tSAXReader reader = new SAXReader();\r\n\t\tDocument document = reader.read(file);\r\n\t\treturn document;\r\n\t}",
"public static Document parse(String filename) throws ParserException {\n\t\tif (filename == null) {\n\t\t\tthrow new ParserException();\n\t\t}\n\t\tFile file = new File(filename);\n\t\tif (!file.exists() || !file.isFile()) {\n\t\t\tthrow new ParserException();\n\t\t}\n\t\tFile subDir = file.getParentFile();\n\t\tif (!subDir.exists() || !subDir.isDirectory()) {\n\t\t\tthrow new ParserException();\n\t\t}\n\t\t// Document should be valid by here\n\t\tDocument doc = new Document();\n\t\tFieldNames field = FieldNames.TITLE;\n\t\tList<String> authors = new LinkedList<String>();\n\t\tString content = new String();\n\t\tboolean startContent = false;\n\n\t\tdoc.setField(FieldNames.FILEID, file.getName());\n\t\tdoc.setField(FieldNames.CATEGORY, subDir.getName());\n\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\t\tString line = reader.readLine();\n\n\t\t\twhile (line != null) {\n\t\t\t\tif (!line.isEmpty()) {\n\t\t\t\t\tswitch (field) {\n\t\t\t\t\tcase TITLE:\n\t\t\t\t\t\tdoc.setField(field, line);\n\t\t\t\t\t\tfield = FieldNames.AUTHOR;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase AUTHOR:\n\t\t\t\t\tcase AUTHORORG:\n\t\t\t\t\t\tif (line.startsWith(\"<AUTHOR>\") || !authors.isEmpty()) {\n\t\t\t\t\t\t\tString[] seg = null;\n\t\t\t\t\t\t\tString[] author = null;\n\n\t\t\t\t\t\t\tline = line.replace(\"<AUTHOR>\", \"\");\n\t\t\t\t\t\t\tseg = line.split(\",\");\n\t\t\t\t\t\t\tauthor = seg[0].split(\"and\");\n\t\t\t\t\t\t\tauthor[0] = author[0].replaceAll(\"BY|By|by\", \"\");\n\t\t\t\t\t\t\t// Refines author names\n\t\t\t\t\t\t\tfor (int i = 0; i < author.length; ++i) {\n\t\t\t\t\t\t\t\tauthor[i] = author[i].trim();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tauthor[author.length - 1] = author[author.length - 1]\n\t\t\t\t\t\t\t\t\t.replace(\"</AUTHOR>\", \"\").trim();\n\t\t\t\t\t\t\tauthors.addAll(Arrays.asList(author));\n\n\t\t\t\t\t\t\t// Saves author organization\n\t\t\t\t\t\t\tif (seg.length > 1) {\n\t\t\t\t\t\t\t\tdoc.setField(FieldNames.AUTHORORG, seg[1]\n\t\t\t\t\t\t\t\t\t\t.replace(\"</AUTHOR>\", \"\").trim());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (line.endsWith(\"</AUTHOR>\")) {\n\t\t\t\t\t\t\t\t// Saves author\n\t\t\t\t\t\t\t\tdoc.setField(FieldNames.AUTHOR, authors\n\t\t\t\t\t\t\t\t\t\t.toArray(new String[authors.size()]));\n\t\t\t\t\t\t\t\tfield = FieldNames.PLACE;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// This should be a PLACE\n\t\t\t\t\t\t\tfield = FieldNames.PLACE;\n\t\t\t\t\t\t}\n\t\t\t\t\tcase PLACE:\n\t\t\t\t\t\tif (!line.contains(\"-\")) {\n\t\t\t\t\t\t\tfield = FieldNames.CONTENT;\n\t\t\t\t\t\t\tstartContent = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString[] seg = line.split(\"-\");\n\t\t\t\t\t\t\tString[] meta = seg[0].split(\",\");\n\t\t\t\t\t\t\tif (seg.length != 0 && !seg[0].isEmpty()) {\n\n\t\t\t\t\t\t\t\tif (meta.length > 1) {\n\t\t\t\t\t\t\t\t\tdoc.setField(\n\t\t\t\t\t\t\t\t\t\t\tFieldNames.PLACE,\n\t\t\t\t\t\t\t\t\t\t\tseg[0].substring(0,\n\t\t\t\t\t\t\t\t\t\t\t\t\tseg[0].lastIndexOf(\",\"))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.trim());\n\t\t\t\t\t\t\t\t\tdoc.setField(FieldNames.NEWSDATE,\n\t\t\t\t\t\t\t\t\t\t\tmeta[meta.length - 1].trim());\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmeta[0] = meta[0].trim();\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tnew SimpleDateFormat(\"MMM d\",\n\t\t\t\t\t\t\t\t\t\t\t\tLocale.ENGLISH).parse(meta[0]);\n\t\t\t\t\t\t\t\t\t\t// This is a news date\n\t\t\t\t\t\t\t\t\t\tdoc.setField(FieldNames.NEWSDATE,\n\t\t\t\t\t\t\t\t\t\t\t\tmeta[0]);\n\t\t\t\t\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t\t\t\t\t// This is a place\n\t\t\t\t\t\t\t\t\t\tdoc.setField(FieldNames.PLACE, meta[0]);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfield = FieldNames.CONTENT;\n\t\t\t\t\tcase CONTENT:\n\t\t\t\t\t\tif (!startContent) {\n\t\t\t\t\t\t\t// First line of content\n\t\t\t\t\t\t\tString[] cont = line.split(\"-\");\n\t\t\t\t\t\t\tif (cont.length > 1) {\n\t\t\t\t\t\t\t\tfor (int i = 1; i < cont.length; ++i) {\n\t\t\t\t\t\t\t\t\tcontent += cont[i];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstartContent = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontent += \" \" + line;\n\t\t\t\t\t\t}\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t}\n\t\t\tdoc.setField(FieldNames.CONTENT, content);\n\t\t\tdoc.setField(FieldNames.LENGTH, Integer.toString(content.trim().split(\"\\\\s+\").length));\n\t\t\treader.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new ParserException();\n\t\t}\n\n\t\treturn doc;\n\t}",
"public static Document parse(String filename) throws ParserException {\n\n\t\tString FileID, Category, Title = null, Author = null, AuthorOrg = null, Place = null, NewsDate = null, Content = null, FileN;\n\t\tDocument d = new Document();\n\t\tif (filename == null || filename == \"\")\n\t\t\tthrow new ParserException();\n\t\tFileN = filename;\n\t\tHashMap<Integer, String> map = new HashMap<Integer, String>();\n\t\tBufferedReader r = null;\n\t\tFile file = new File(FileN);\n\t\tif (!file.exists())\n\t\t\tthrow new ParserException();\n\t\tFileID = file.getName();\n\t\tCategory = file.getParentFile().getName();\n\t\ttry {\n\t\t\tr = new BufferedReader(new FileReader(file));\n\t\t\tint i = 1, j = 3;\n\t\t\tBoolean isTitle = true, hasAuthor = false;\n\t\t\tString line;\n\t\t\twhile ((line = r.readLine()) != null) {\n\t\t\t\tline = line.trim();\n\t\t\t\tif (!line.equals(\"\")) {\n\t\t\t\t\tmap.put(i, line);\n\t\t\t\t\tif (isTitle) {\n\t\t\t\t\t\tTitle = line;\n\t\t\t\t\t\tisTitle = false;\n\t\t\t\t\t}\n\t\t\t\t\tif (hasAuthor == false && i == 2) {\n\t\t\t\t\t\tPattern pattern = Pattern\n\t\t\t\t\t\t\t\t.compile(\"<AUTHOR>(.+?)</AUTHOR>\");\n\t\t\t\t\t\tMatcher matcher = pattern.matcher(line);\n\t\t\t\t\t\tif (matcher.find()) {\n\t\t\t\t\t\t\tAuthor = matcher.group(1).replace(\"BY\", \"\");\n\t\t\t\t\t\t\tAuthorOrg = Author.substring(\n\t\t\t\t\t\t\t\t\tAuthor.lastIndexOf(\",\") + 1).trim();\n\t\t\t\t\t\t\tAuthor = Author.split(\",\")[0].trim();\n\t\t\t\t\t\t\thasAuthor = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!hasAuthor && i == 2) {\n\t\t\t\t\t\tString[] str = checkPlace(line);\n\t\t\t\t\t\tContent = str[0];\n\t\t\t\t\t\tPlace = str[1];\n\t\t\t\t\t\tNewsDate = str[2];\n\t\t\t\t\t} else if (hasAuthor && i == 3) {\n\t\t\t\t\t\tString[] str = checkPlace(line);\n\t\t\t\t\t\tContent = str[0];\n\t\t\t\t\t\tPlace = str[1];\n\t\t\t\t\t\tNewsDate = str[2];\n\t\t\t\t\t\tj = 4;\n\t\t\t\t\t}\n\t\t\t\t\tif (i >= j) {\n\t\t\t\t\t\tContent = Content + map.get(i) + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tr.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (Author != null) {\n\t\t\tAuthor = Author.replace(\"By\", \"\").trim();\n\t\t\td.setField(FieldNames.AUTHOR, Author);\n\t\t\td.setField(FieldNames.AUTHORORG, AuthorOrg);\n\t\t} \n\t\td.setField(FieldNames.FILEID, FileID);\n\t\td.setField(FieldNames.CATEGORY, Category);\n\t\td.setField(FieldNames.TITLE, Title);\n\t\td.setField(FieldNames.PLACE, Place);\n\t\td.setField(FieldNames.NEWSDATE, NewsDate);\n\t\td.setField(FieldNames.CONTENT, Content);\n\n\t\treturn d;\n\t}",
"public Document readDocument();",
"private Document parse(String path) throws DocumentException, MalformedURLException {\n File file = new File(path);\r\n SAXReader saxReader = new SAXReader();\r\n return saxReader.read(file);\r\n }",
"public Document parse(File aFile)\n\t\t\t\t throws org.xml.sax.SAXException, java.io.IOException {\n\t\t/**\n\t\t * @todo Fix/implement this later\n\t\t */\n\t\tthrow new SAXException(\"Not supported\");\n\t}",
"private FileXML getFile(Element fileNode) throws ParserException{\n NodeList accessNDList = fileNode.getElementsByTagName(\"access\");\n \n if( accessNDList == null){\n throw new ParserException(\"Missing access definition for file, line: \"+dom.compareDocumentPosition(fileNode));\n }\n List<FileXMLAccess> fileAccessList = new LinkedList();\n String path;\n String host;\n Element fileAccess;\n for(int i=0; i<accessNDList.getLength(); i++){\n fileAccess = (Element) accessNDList.item(i);\n if(!fileAccess.hasAttribute(\"host\")){\n throw new ParserException(\"Missing host in access definition, line: \"+dom.compareDocumentPosition(fileNode));\n }\n if(!fileAccess.hasAttribute(\"path\")){\n throw new ParserException(\"Missing path in access definition, line: \"+dom.compareDocumentPosition(fileNode));\n }\n path = fileAccess.getAttribute(\"path\");\n host = fileAccess.getAttribute(\"host\");\n fileAccessList.add(new FileXMLAccess(mapForAccess.get(host), path));\n }\n return new FileXML(fileAccessList);\n }",
"public Document parse (String filePath) {\n Document document = null;\n try {\n /* DOM parser instance */\n DocumentBuilder builder = builderFactory.newDocumentBuilder();\n /* parse an XML file into a DOM tree */\n document = builder.parse(filePath);\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return document;\n }",
"public void parsePage() {\n seen = true;\n int first = id.indexOf('_', 0);\n int second = id.indexOf('_', first + 1);\n String firstDir = \"result_\" + id.substring(0, first);\n String secondDir = id.substring(0, second);\n String fileName = id + \".page\";\n String wholePath = pagePath + firstDir + File.separator + secondDir\n + File.separator + fileName;\n try {\n BufferedReader reader = new BufferedReader(new FileReader(wholePath));\n String line = null;\n while((line = reader.readLine()) != null) {\n if (line.equals(\"#ThisURL#\")) {\n url = reader.readLine();\n }\n// else if (line.equals(\"#Length#\")) {\n// length = Integer.parseInt(reader.readLine());\n// }\n else if (line.equals(\"#Title#\")) {\n title = reader.readLine();\n }\n else if (line.equals(\"#Content#\")) {\n content = reader.readLine();\n lowerContent = content.toLowerCase();\n break;\n }\n }\n reader.close();\n if (content == null) {\n return;\n }\n valid = true;\n } catch (IOException e) {\n// System.out.println(\"Parse page \" + id + \" not successful\");\n }\n }",
"private void indexDocument(File f) throws IOException {\n\n\t\tHashMap<String, StringBuilder> fm;\n\t\tif (!f.getName().equals(\".DS_Store\")) {\n\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\n\t\t\tString s = \"\";\n\t\t\twhile ((s = br.readLine()) != null) {\n\n\t\t\t\tString temp = \"\";\n\n\t\t\t\tif (s.contains(\"<DOC>\")) {\n\n\t\t\t\t\ts = br.readLine();\n\n\t\t\t\t\twhile (!s.contains(\"</DOC>\")) {\n\n\t\t\t\t\t\ttemp += s + \" \";\n\n\t\t\t\t\t\ts = br.readLine();\n\t\t\t\t\t}\n\n\t\t\t\t\tfm = parseTags(temp);\n\t\t\t\t\tindexDocumentHelper(fm);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tbr.close();\n\t\t}\n\n\t}",
"public static Document getPage() throws IOException {\n\n String url = \"http://pogoda.spb.ru/\";\n Document page = Jsoup.parse(new URL(url), 3000);\n return page;\n\n }",
"IDocument getDocument(File file);",
"private void parseNodes() throws ParserException{\n NodeList fileNodesList = root.getElementsByTagName(\"file\");\n NodeList nodeNodesList = root.getElementsByTagName(\"node\");\n NodeXML tmp;\n for(int i=0; i<nodeNodesList.getLength(); i++){\n tmp = getNode((Element) nodeNodesList.item(i));\n mapForAccess.put(tmp.hostname,tmp);\n if(tmp.isMaster) {\n master = tmp;\n }\n else {\n slaves.add(tmp);\n }\n }\n }",
"ReleaseFile parse( InputStream is ) throws IOException;",
"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}",
"String readDocument(String path, Charset charset);",
"@Override\n public void crawl() {\n Document doc;\n try {\n\n\n doc = Jsoup.connect(rootURL).userAgent(\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A\").get();\n\n Elements articles = doc.select(\"section.list article\");\n\n System.out.println(\"Number of articles found:\"+articles.size());\n //list of links found\n for(Element article: articles){\n\n Element titleLink = article.select(\"a\").first();\n System.out.println(titleLink.attr(\"abs:href\"));\n\n //if the url found is in the cache, do not retrieve the url.\n if(urlCache.contains(titleLink.attr(\"abs:href\"))) {\n System.out.println(\"Doucment found in cache, ignoring document\");\n continue;\n }\n\n storeDocument(Jsoup.connect(titleLink.attr(\"abs:href\")).get());\n\n //add the URL to the cache so that we don't retrieve it again.\n urlCache.add(titleLink.attr(\"abs:href\"));\n }\n\n\n } catch (Exception e){\n logger.log(Level.SEVERE, \"Error Retrieving from URL\", e);\n e.printStackTrace();\n }\n }",
"public static Document parse(final File file) {\r\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder db;\r\n\t\tDocument dom = null;\r\n\t\ttry {\r\n\t\t\tdb = dbf.newDocumentBuilder();\r\n\t\t\tdom = db.parse(file);\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SAXException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn dom;\r\n\t}",
"public static String randomAccessRead() {\n String s = \"\";\n try {\n RandomAccessFile f = new RandomAccessFile(FILES_TEST_PATH, \"r\");\n f.skipBytes(14);\n s = f.readLine();\n f.close();\n } catch(Exception e) {\n e.printStackTrace();\n }\n return s;\n }",
"public Map<String, Object> nextDocument() throws IOException {\n // 1. When called, this API processes one document from corpus, and returns its\n // doc number and content.\n // 2. When no document left, return null, and close the file.\n // 3. the HTML tags should be removed in document content.\n if (fileList.size() > 0) {\n Map<String, Object> r = new HashMap<>();\n File dataFile = fileList.pop();\n\n FileInputStream document = new FileInputStream(dataFile);\n byte[] context = new byte[(int) dataFile.length()];\n document.read(context);\n document.close();\n String text = new String(context, \"UTF-8\");\n char[] valueText = text.replaceAll(\"\\\\p{Cc}\", \"\")\n .replaceAll(\"<[^>]*>\", \" \").trim().toCharArray();\n r.put(dataFile.getPath(), valueText);\n return r;\n }\n\n return null;\n\n }",
"public static Document getDoc(String file){\n Document doc = null;\n try{\n SAXBuilder builder = new SAXBuilder();\n File xml = new File(tempPath+file);\n\n doc = (Document) builder.build(xml);\n } catch (Exception e){\n System.out.println(e.getMessage());\n }\n \n return doc;\n }",
"public Document getDocFromFile(String filename)\r\n throws ParserConfigurationException{\r\n {\r\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder db = dbf.newDocumentBuilder();\r\n Document doc = null;\r\n try{\r\n doc = db.parse(filename);\r\n }\r\n catch (Exception ex){\r\n System.out.println(\"XML parse failure\");\r\n ex.printStackTrace();\r\n }\r\n return doc;\r\n } \r\n }",
"@Override\r\n public FirstElement documentBodyParse(String filePath) {\n return null;\r\n }",
"public void parseResponse(String response) throws JDOMException, IOException {\n SAXBuilder builder = new SAXBuilder();\n Document doc = (Document) builder.build(new ByteArrayInputStream(response.getBytes()));\n\n //returns the RootElement: <RootDirectory>\n Element rootNode = doc.getRootElement();\n \n //adds all Children <File> from the RootElement to the list\n List list = rootNode.getChildren(\"File\");\n\n //runs through the list until the end of it\n for (int i = 0; i < list.size(); i++) {\n \n //gets the item from the list and parses it into an Element\n Element node = (Element) list.get(i);\n \n //returns the value of the Attribute size\n double size = Double.parseDouble(node.getAttributeValue(\"size\"));\n\n //System.out.println(\"File-Name: \" + node.getText());\n //System.out.println(\"File-Size: \" + size);\n \n //adds the element to the list\n add(new DataFile(node.getText(), size));\n }\n super.fireTableDataChanged();\n }",
"private void connect() {\n try {\n document = Jsoup.connect(link).get();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public String getDocumentWithoutComments(URL fileUrl) {\n long start = System.currentTimeMillis();\n\n String documentContent = this.readFile(fileUrl); // Read the file as String.\n Document doc = Jsoup.parse(documentContent, \"\", Parser.xmlParser()); // Parse the file as XML.\n removeComments(doc); // Remove any comments.\n\n long finish = System.currentTimeMillis();\n long timeElapsed = finish - start;\n\n LOG.debug(\"getDocumentWithoutComments: timeElapsed (millisecs) {}\", timeElapsed);\n return (doc.html()); // It doesn't matter that the file is XML. This function html() returns the\n // file\n // as String.\n }",
"public static Document parse(InputStream is) throws IOException\n {\n return parse(is, false);\n }",
"public JSONDocument parse (File fl){\n JSONDocument temp = null;\n String data = \"\";\n if (fl != null){\n try (FileReader fr = new FileReader(fl)){\n int c;\n while((c = fr.read()) != -1) data += (char)c;\n temp = this.parseString(this.cleanString(data));\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }else throw new IllegalArgumentException(\"File cannot be null\");\n return temp;\n }",
"public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }",
"private Document initialize() {\r\n Document doc = null;\r\n try {\r\n File file = new File(\"./evidence.xml\");\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = dbFactory.newDocumentBuilder();\r\n doc = docBuilder.parse(file);\r\n doc.getDocumentElement().normalize();\r\n } catch (ParserConfigurationException | IOException | SAXException e) {\r\n System.err.println(\"Parser failed parse file:\"+e.getMessage());\r\n }\r\n return doc;\r\n }",
"public void parse() {\n File sourceFile = new File(DEFAULT_DS_FILE_PATH);\n\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory\n .newInstance();\n documentBuilderFactory.setNamespaceAware(true);\n DocumentBuilder builder = null;\n try {\n builder = documentBuilderFactory.newDocumentBuilder();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n }\n Document document = null;\n try {\n document = builder.parse(sourceFile);\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n XPathFactory xpathFactory = XPathFactory.newInstance();\n XPath xpath = xpathFactory.newXPath();\n\n //read the database properties and assign to local variables.\n XPathExpression expression = null;\n Node result = null;\n try {\n expression = xpath.compile(DRIVER_CLASS_XPATH);\n result = (Node) expression.evaluate(document, XPathConstants.NODE);\n driverClassName = result.getTextContent();\n expression = xpath.compile(CONNECTION_URL_XPATH);\n result = (Node) expression.evaluate(document, XPathConstants.NODE);\n connectionUrl = result.getTextContent();\n expression = xpath.compile(USER_NAME_XPATH);\n result = (Node) expression.evaluate(document, XPathConstants.NODE);\n userName = result.getTextContent();\n expression = xpath.compile(PASSWORD_XPATH);\n result = (Node) expression.evaluate(document, XPathConstants.NODE);\n password = result.getTextContent();\n\n } catch (XPathExpressionException e) {\n e.printStackTrace();\n }\n System.out.println(driverClassName);\n System.out.println(connectionUrl);\n try {\n\t\t\tSystem.out.println(userName.getBytes(\"EUC-JP\"));\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n System.out.println(password);\n }",
"public static void parseXML(String filename) {\n SAXBuilder builder = new SAXBuilder();\n \n //reading XML document\n Document xml = null;\n try {\n xml = builder.build(new File(filename));\n } catch (JDOMException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n //getting root element from XML document\n Element root = xml.getRootElement();\n if (root != null)\n {\n\t Element queryNode = root.getChild(\"query\");\n\t if (queryNode != null)\n\t {\n\t\t Element rcNode = queryNode.getChild(\"recentchanges\");\n\t\t \n\t\t List<Element> rcList = rcNode.getChildren();\n\t\t \n\t\t \n\t\t \n\t\t //Iterating over all childs in XML\n\t\t Iterator<Element> itr = rcList.iterator();\n\t\t while(itr.hasNext()){\n\t\t \tElement rc = itr.next();\n\t\t \tString user = rc.getAttributeValue(\"user\");\n\t\t \tString userId = rc.getAttributeValue(\"userid\");\n\t\t \tString pageId = rc.getAttributeValue(\"pageid\");\n\t\t \tString title = rc.getAttributeValue(\"title\");\n\t\t \tString timestamp = rc.getAttributeValue(\"timestamp\");\n\t\t \tString comments = rc.getAttributeValue(\"comment\");\n\t\t \tString type = rc.getAttributeValue(\"type\");\n\t\t \tString oldRevId = rc.getAttributeValue(\"old_revid\");\n\t\t \tString newRevId = rc.getAttributeValue(\"revid\");\n\t\t \tString recentChangeId = rc.getAttributeValue(\"rcid\");\n\t\t \t\n\t\t// \t //reading attribute from Element using JDOM\n\t\t// System.out.println(\"User: \" + user + \" | User_ID: \" + userId + \" | Page_ID: \" + pageId + \n\t\t// \t\t\" | Title: \" + title + \" | Timestamp: \" + timestamp + \" | Recent_Change_ID: \" + recentChangeId + \" | Old_Rev_ID: \" + oldRevId + \n\t\t// \t\t\" | New_Rev_ID: \" + newRevId + \" | Type: \" + type); \n\t\t \t\n\t\t \ttry {\n\t\t\t\t\t\tcluster.writeWikiResults(user, userId, timestamp, pageId, title, recentChangeId, oldRevId, newRevId, type);\n\t\t\t\t\t\t System.out.println(count++);\n\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t }\n\t }\n } \n }",
"private void parseIndex() throws IOException {\n\t\tDocument doc = Jsoup.connect(WOLFF + \"/bioscopen/cinestar/\").get();\n\t\tElements movies = doc.select(\".table_agenda td[width=245] a\");\n\t\t\n\t\tSet<String> urls = new HashSet<String>();\n\t\tfor(Element movie : movies) {\n\t\t\turls.add(movie.attr(\"href\"));\n\t\t}\n\t\t\n\t\tfor(String url: urls) {\n\t\t\tparseMovie(url);\n\t\t}\n\t}",
"public void startDocument()\r\n\t{\r\n\t marc_out.add(\"=LDR 00000nam\\\\\\\\22000007a\\\\4500\") ;\r\n\t marc_out.add(\"=001 etd_\" + pid);\r\n\t marc_out.add(\"=003 MiAaPQ\");\r\n\t marc_out.add(\"=006 m\\\\\\\\\\\\\\\\fo\\\\\\\\d\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");\r\n\t marc_out.add(\"=007 cr\\\\mnu\\\\\\\\\\\\aacaa\");\r\n\t marc_out.add(\"=040 \\\\\\\\$aMiAaPQ$beng$cDGW$dDGW\");\r\n\t marc_out.add(\"=049 \\\\\\\\$aDGWW\");\r\n\t marc_out.add(\"=504 \\\\\\\\$aIncludes bibliographical references.\");\r\n\t marc_out.add(\"=538 \\\\\\\\$aMode of access: Internet\");\r\n marc_out.add(\"=996 \\\\\\\\$aNew title added ; 20\" + running_date);\r\n marc_out.add(\"=998 \\\\\\\\$cgwjshieh ; UMI-ETDxml conv ; 20\" + running_date);\r\n\t marc_out.add(\"=852 8\\\\$bgwg ed$hGW: Electronic Dissertation\");\r\n\t marc_out.add(\"=856 40$uhttp://etd.gelman.gwu.edu/\" + pid + \".html$zClick here to access.\");\r\n\r\n }",
"public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }",
"public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }",
"private static void collectVariables(Document document){\n //collecting all the nodes inside a list\n nodeList = document.selectNodes(NOTES);\n\n //initialising the lists\n entriesList = new ArrayList<>();\n locationsList = new ArrayList<>();\n attachmentList = new ArrayList<>();\n tagsForEntryList = new ArrayList<>();\n\n //hashSet for handling the duplicate fileNames\n fileNameSet = new LinkedHashSet<>();\n\n //linkedHashMap for storing the uid for each tag\n uidForEachTag = new LinkedHashMap<>();\n uidForEachLocation = new LinkedHashMap<>();\n\n //id set for storing unique location id\n locationsIdSet = new LinkedHashSet<>();\n\n Tags tags;\n Location location;\n Entry entry;\n Attachment attachment;\n\n byte[] decoded = null;\n\n //looping through the list\n for(Node node : nodeList){\n\n String title = \"\";\n String parsedHtml = \"\";\n String formattedDate = \"\";\n String location_uid = \"\";\n String mime = \"\";\n String fileName = \"\";\n String attachment_uid = null;\n String entry_uid = \"\";\n String type = \"photo\";\n String baseEncoding;\n String tag_uid = \"\";\n\n //get all tags including duplicates\n if( node.selectSingleNode(TAG) !=null) {\n List<Node> evernote_tags = node.selectNodes(TAG);\n for (Node evenote_tag : evernote_tags) {\n //generate unique id for the tag and map it.\n //if the name id pair does not exist\n if(!uidForEachTag.containsKey(evenote_tag.getText())) {\n uidForEachTag.put(evenote_tag.getText(), Entry.generateRandomUid());\n }\n //create new diaro.Tags Object\n tags = new Tags(uidForEachTag.get(evenote_tag.getText()),evenote_tag.getText());\n tagsForEntryList.add(tags);\n }\n }\n\n //get all Locations\n // using diaro.Entry.concatLatLng to add title as {<Latitude></Latitude>,<Longitude></Longitude>}\n if( node.selectSingleNode(LATITUDE) != null && node.selectSingleNode(LONGITUDE) != null) {\n String latitude = String.format(\"%.5f\",Double.parseDouble(node.selectSingleNode(LATITUDE).getText()));\n String longitude = String.format(\"%.5f\",Double.parseDouble(node.selectSingleNode(LONGITUDE).getText()));\n String location_title = (ImportUtils.concatLatLng(latitude, longitude));\n\n //mapping every uid to the address\n if(!uidForEachLocation.containsKey(location_title)) {\n uidForEachLocation.put(location_title, Entry.generateRandomUid());\n }\n location_uid = uidForEachLocation.get(location_title);\n location = new Location(location_uid,latitude,longitude,location_title, location_title, DEFAULT_ZOOM);\n if (!locationsIdSet.contains(location.location_uid)) {\n locationsList.add(location);\n locationsIdSet.add(location.location_uid);\n }\n }\n\n //get all Entries\n if(node.selectSingleNode(TITLE) != null ){\n title = node.selectSingleNode(TITLE).getText();\n }\n if(node.selectSingleNode(CONTENT) != null ){\n String text = node.selectSingleNode(CONTENT).getText();\n // using Jsoup to parseXml HTML inside Content\n parsedHtml = Jsoup.parse(text).text();\n }\n if(node.selectSingleNode(CREATED) != null){\n String date = node.selectSingleNode(CREATED).getText().substring(0, 8);\n String month = date.substring(4, 6);\n String day = date.substring(6, 8);\n String year = date.substring(2, 4);\n formattedDate = String.format(\"%s/%s/%s\", month, day, year);\n }\n\n //get all the tags\n //append all the string stringBuilder\n if(tagsForEntryList.size() != 0){\n for(Tags tag : tagsForEntryList) {\n tag_uid = tag_uid + (\",\") + (String.join(\",\", tag.tagsId));\n }\n tag_uid = tag_uid + (\",\");\n System.out.println(tag_uid);\n\n }\n entry = new Entry();\n entry.setUid(Entry.generateRandomUid());\n entry.setTz_offset(OFFSET);\n entry.setDate(formattedDate);\n entry.setText(parsedHtml);\n entry.setTitle(title);\n entry.setFolder_uid(FOLDER_UID);\n entry.setLocation_uid(location_uid);\n entry.setTags(tag_uid);\n //clear the list\n //clear the tag_uid variable for next loop\n tagsForEntryList.clear();\n tag_uid = \"\";\n //add entry in the list\n entriesList.add(entry);\n\n //get all the attachments\n if (node.selectSingleNode(RESOURCE) != null) {\n List<Node> attachmentsForEachEntry = node.selectNodes(RESOURCE);\n //loop through all the attachments for a single note/entry\n for (Node attachmentForeach : attachmentsForEachEntry) {\n try {\n mime = attachmentForeach.selectSingleNode(MIME).getText();\n\n }catch( NullPointerException e){\n e.printStackTrace();\n }\n // check for a valid attachment\n if(checkForImageMime(mime)) {\n try {\n fileName = attachmentForeach.selectSingleNode(RESOURCE_ATTRIBUTE_FILENAME).getText();\n attachment_uid = Entry.generateRandomUid();\n entry_uid = entry.uid;\n baseEncoding = attachmentForeach.selectSingleNode(DATA).getText();\n //----- please do a check for valid Base64--\n decoded = Base64.getMimeDecoder().decode(baseEncoding);\n // assign primary_photo uid to entry\n entry.primary_photo_uid = attachment_uid;\n }catch(IllegalArgumentException | NullPointerException e){\n e.printStackTrace();\n }\n // check if the fileName already exists\n // if true generate a new fileName to prevent duplicates\n if(fileNameSet.add(fileName)){\n fileNameSet.add(fileName);\n attachment = new Attachment(attachment_uid, entry_uid, type,fileName,decoded);\n }else{\n String newFileName = ImportUtils.generateNewFileName(fileName);\n fileNameSet.add(newFileName);\n attachment = new Attachment(attachment_uid, entry_uid, type,newFileName,decoded);\n }\n attachmentList.add(attachment);\n }\n }\n }\n }\n\n }",
"public Document parseFile(InputStream inputStream) {\r\n \r\n try {\r\n setDocument(docBuilder.parse(inputStream));\r\n }\r\n catch (SAXException e) {\r\n log.debug(\"Wrong XML file structure: \" + e.getMessage());\r\n return null;\r\n }\r\n catch (IOException e) {\r\n \te.printStackTrace();\r\n log.debug(\"Could not read source file: \" + e.getMessage());\r\n }\r\n log.debug(\"XML file parsed\");\r\n return getDocument();\r\n }",
"private AttributionDocument loadAttributionDocument(File file) throws IOException, JAXBException {\n if (file != null) {\n if (!file.canRead()) {\n String s = String.format(\"Can't read input file %s.\", file.getCanonicalPath());\n throw new IOException(s);\n }\n try {\n FileInputStream fis = new FileInputStream(file);\n AttributionDocument attributionDocument = loadAttributionDocumentFromStream(fis);\n fis.close();\n return attributionDocument;\n } catch (JAXBException e) {\n String s = String.format(\"Can't load input file %s.\", file);\n throw new JAXBException(s, e);\n }\n }\n return null;\n }",
"public List<Object> nextDocument() throws IOException {\n\t\t\n\t\tList<Object> reviewList = new ArrayList<>();\n\t\tString line = null;\n\t\tString url = null; \n\t String restID = null;\n\t\tString restName = null;\n\t\tString restDesc = null;\n\t\tString revID = null;\n\t\tString revContent = null;\n\t\tif((line = br.readLine()) != null) {\n\t\t\twhile(!line.equals(\"<restaurant>\")) {\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\t\n\t\t\tif(line.equals(\"<restaurant>\")) { \n\t\t\t\t// Get url\n\t\t\t\tline = br.readLine(); \n\t\t\t\turl = line.substring(5, line.length()-6);\n\t\t\t\t\n\t\t\t\t// Get restaurant's ID \n\t\t\t\tline = br.readLine();\n\t\t\t\trestID = line.substring(5, line.length()-6);\n\t\t\t\t\n\t\t\t\t// Get restaurant's name\n\t\t\t\tline = br.readLine();\n\t\t\t\trestName = line.substring(7, line.length()-8);\n\t\t\t\t\n\t\t\t\t// Get restaurant's description\n\t\t\t\tline = br.readLine();\n\t\t\t\trestDesc = line.substring(13, line.length()-14); \n\t\t\t}\n \n\t\t\twhile (!line.equals(\"<reviews>\")) { \n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\t\n\t\t // Here, we reach the line containing tag \"<reviews>\"\n\t\t\tline = br.readLine();\n\t\t\t\n\t\t\tint i = 1; // Keep track of each review\n\t\t\twhile(!line.equals(\"</reviews>\")) {\t\n\t\t\t\t// Intiate a review object in each interation \n\t\t\t\tReview review = new Review();\n\t\t\t\t\n\t\t\t\t// Set its restaurant's url, name and desc\n\t\t\t\treview.setRestUrl(url);\n\t\t\t\treview.setRestName(restName); \n\t\t\t\treview.setRestDesc(restDesc);\n\t\t\t\t\n\t\t\t\t// Get review's ID\n\t\t\t\trevID = restID + \"-\" + String.valueOf(i); \n\t\t\t\treview.setId(revID);\n\t\t\t\t\n\t\t\t\trevContent = line.replaceAll(HTML_TAG, \" \").replaceAll(\"( )+\", \" \").trim();\n\t\t\t\treview.setOriginalContent(revContent);\n\t\t\t\t\n\t\t\t\treviewList.add(review);\n\t\t\t\t\n\t\t\t\ti++;\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\tbr.readLine();\n\t\t\treturn reviewList;\n\t\t}\n\t\t\n\t\tif(br != null) {\n\t\t\tbr.close();\n\t\t}\n\t\t\t\n\t\treturn null;\n\t}",
"@Override\r\n public List<FirstElement> documentBodyParse(String filePath, int subLength, int subSum) {\n return null;\r\n }",
"public Document loadDomFromFile(String fileName){\n\t\tSAXReader reader = new SAXReader();\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tInputStream inputStream = new FileInputStream(fileName);\n\t\t\tdoc = reader.read(inputStream);\n\t\t} catch (DocumentException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn doc;\n\t}",
"public void open(){\n\t\ttry {\n\t\t\tdocFactory = DocumentBuilderFactory.newInstance();\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t\tdoc = docBuilder.parse(ManipXML.class.getResourceAsStream(path));\n\t\t\t\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void init() {\n File file = new File(FILE);\n if (!file.exists()) {\n File file2 = new File(file.getParent());\n if (!file2.exists()) {\n file2.mkdirs();\n }\n }\n if (this.accessFile == null) {\n try {\n this.accessFile = new RandomAccessFile(FILE, \"rw\");\n } catch (FileNotFoundException unused) {\n }\n }\n }",
"public abstract XMLDocument parse(URL url);",
"public RandomAccessFile getFile()\n {\n \treturn f;\n }",
"public void getCache(int docid){\n try {\n FileReader fr;\n String file_name = ServerThread.collection_path+docid+\".html\";\n fr = new FileReader(file_name);\n BufferedReader file_input = new BufferedReader(fr);\n String line;\n String file_content=\"\";\n while ((line = file_input.readLine()) != null) {\n file_content += line;\n }\n fr.close(); \n send(file_content);\n //System.out.println(file_content); \n } \n catch (IOException ex) {\n Logger.getLogger(ServerThread.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Could not access file: \"+docid);\n } \n }",
"private void parseDocument()\n {\n\tElement docEle = dom.getDocumentElement();\n\n\t// get a nodelist of <employee> elements\n\tNodeList nl = docEle.getElementsByTagName(\"path\");\n\tif (nl != null && nl.getLength() > 0)\n\t{\n\t for (int i = 0; i < nl.getLength(); i++)\n\t {// System.out.println(i);\n\n\t\t// get the employee element\n\t\tElement el = (Element) nl.item(i);\n\n\t\t// get the Employee object\n\t\tmakeRoom(el);\n\n\t }\n\n\t //Log.d(\"NUMROOMS\", \"numRooms = \" + numDetectedRooms + \" \" + \"numHallways = \" + numDetectedHallways);\n\t}\n\t// This will read in the numbers. This is possibly useful for giving the rooms their correct numbers.\n\t// Find all of the glyphs within the room using it's coordinates and the ID designated by roomsMap.\n\t// Organize their coordinates from left to right and translate the filename to what number they are.\n\t// These numbers from left to right are the room number.\n\n\t/*\n\t * NodeList glyphs = docEle.getElementsByTagName(\"use\"); if (nl != null && glyphs.getLength() > 0) { for (int i = 0; i < glyphs.getLength(); i++) {\n\t * \n\t * //get the employee element Element el = (Element) glyphs.item(i); //System.out.println(el.getAttribute(\"id\")); String x = el.getAttribute(\"x\"); String y = el.getAttribute(\"y\");\n\t * \n\t * //Create a new Employee with the value read from the xml nodes\n\t * \n\t * myGlyphs.add(new Point((int)Double.parseDouble(x), (int)(Double.parseDouble(y))));\n\t * \n\t * } }\n\t */\n\n\t//Log.d(Constants.TAG, \"XMLReader::parseDocument() Exiting!\");\n }",
"@Override\n\tprotected void parseDocument(Document doc, File file)\n\t{\n\t\tfinal StatsSet set = new StatsSet();\n\t\t\n\t\t// First element is never read.\n\t\tfinal Node n = doc.getFirstChild();\n\t\t\n\t\tfor (Node o = n.getFirstChild(); o != null; o = o.getNextSibling())\n\t\t{\n\t\t\tif (!\"castle\".equalsIgnoreCase(o.getNodeName()))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tNamedNodeMap attrs = o.getAttributes();\n\t\t\t\n\t\t\tfinal Castle castle = _castles.get(Integer.parseInt(attrs.getNamedItem(\"id\").getNodeValue()));\n\t\t\tif (castle == null)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tcastle.setCircletId(Integer.parseInt(attrs.getNamedItem(\"circletId\").getNodeValue()));\n\t\t\t\n\t\t\tfor (Node d = o.getFirstChild(); d != null; d = d.getNextSibling())\n\t\t\t{\n\t\t\t\tif (\"artifact\".equalsIgnoreCase(d.getNodeName()))\n\t\t\t\t\tcastle.setArtifacts(d.getAttributes().getNamedItem(\"val\").getNodeValue());\n\t\t\t\telse if (\"controlTowers\".equalsIgnoreCase(d.getNodeName()))\n\t\t\t\t{\n\t\t\t\t\tattrs = d.getAttributes();\n\t\t\t\t\tfor (Node e = d.getFirstChild(); e != null; e = e.getNextSibling())\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!\"tower\".equalsIgnoreCase(e.getNodeName()))\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t\tattrs = e.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\tfinal String[] location = attrs.getNamedItem(\"loc\").getNodeValue().split(\",\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tcastle.getControlTowers().add(new TowerSpawnLocation(13002, new SpawnLocation(Integer.parseInt(location[0]), Integer.parseInt(location[1]), Integer.parseInt(location[2]), -1)));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (\"flameTowers\".equalsIgnoreCase(d.getNodeName()))\n\t\t\t\t{\n\t\t\t\t\tattrs = d.getAttributes();\n\t\t\t\t\tfor (Node e = d.getFirstChild(); e != null; e = e.getNextSibling())\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!\"tower\".equalsIgnoreCase(e.getNodeName()))\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t\tattrs = e.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\tfinal String[] location = attrs.getNamedItem(\"loc\").getNodeValue().split(\",\");\n\t\t\t\t\t\tfinal String[] zoneIds = attrs.getNamedItem(\"zones\").getNodeValue().split(\",\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tcastle.getFlameTowers().add(new TowerSpawnLocation(13004, new SpawnLocation(Integer.parseInt(location[0]), Integer.parseInt(location[1]), Integer.parseInt(location[2]), -1), zoneIds));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (\"relatedNpcIds\".equalsIgnoreCase(d.getNodeName()))\n\t\t\t\t\tcastle.setRelatedNpcIds(d.getAttributes().getNamedItem(\"val\").getNodeValue());\n\t\t\t\telse if (\"tickets\".equalsIgnoreCase(d.getNodeName()))\n\t\t\t\t{\n\t\t\t\t\tattrs = d.getAttributes();\n\t\t\t\t\tfor (Node e = d.getFirstChild(); e != null; e = e.getNextSibling())\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!\"ticket\".equalsIgnoreCase(e.getNodeName()))\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t\tattrs = e.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\tset.set(\"itemId\", Integer.valueOf(attrs.getNamedItem(\"itemId\").getNodeValue()));\n\t\t\t\t\t\tset.set(\"type\", attrs.getNamedItem(\"type\").getNodeValue());\n\t\t\t\t\t\tset.set(\"stationary\", Boolean.valueOf(attrs.getNamedItem(\"stationary\").getNodeValue()));\n\t\t\t\t\t\tset.set(\"npcId\", Integer.valueOf(attrs.getNamedItem(\"npcId\").getNodeValue()));\n\t\t\t\t\t\tset.set(\"maxAmount\", Integer.valueOf(attrs.getNamedItem(\"maxAmount\").getNodeValue()));\n\t\t\t\t\t\tset.set(\"ssq\", attrs.getNamedItem(\"ssq\").getNodeValue());\n\t\t\t\t\t\t\n\t\t\t\t\t\tcastle.getTickets().add(new MercenaryTicket(set));\n\t\t\t\t\t\tset.clear();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void parse(String fileName) throws Exception;",
"public HTMLFile (URL url) {\n this.inFile = null;\n inURL = url;\n inName = url.toString();\n commonConstruction();\n }",
"private void parseFiles() throws ParserException{\n NodeList fileNodesList = root.getElementsByTagName(\"file\");\n for(int i=0; i<fileNodesList.getLength(); i++){\n filesToProcess.add(getFile((Element) fileNodesList.item(i)));\n }\n }",
"public static void init() {\n\n\t\tcontentDirectory = new Document();\n\n\t\t//For ass\n\t\t//////////////////////////////////////////////////////////////////////////////////////////\n\t\t//list of links to places (on reddit for example) to scrape from\n\t\tArrayList<String> redditAssLinks = new ArrayList<>();\n\t\tredditAssLinks.add(\"http://www.reddit.com/r/fffffffuuuuuuuuuuuu\"); //add sites here\n\n\t\tredditAssLinks.add(\"http://www.reddit.com/r/memes\");\n\t\tredditAssLinks.add(\"https://www.reddit.com/r/funnymeme/\");\n\t\tredditAssLinks.add(\"https://www.reddit.com/r/adviceanimals\");\n\t\tredditAssLinks.add(\"https://www.reddit.com/r/vertical\");\n\t\tredditAssLinks.add(\"https://www.reddit.com/r/firstworldproblems\");\n\t\tDocument redditAssDoc = new Document();\n\t\tredditAssDoc.append(\"reddit\", redditAssLinks);\n\n\t\t//could also append this when imgur implementation is ready:\n\t\t//contentDirectory.append(\"ass\", imgurAssDoc);\n\t\tcontentDirectory.append(\"ass\", redditAssDoc);\n\t\t//////////////////////////////////////////////////////////////////////////////////////////\n\n\t\t//for workout\n\t\t//////////////////////////////////////////////////////////////////////////////////////////\n\t\tArrayList<String> redditWorkoutLinks = new ArrayList<>();\n\t\tredditWorkoutLinks.add(\"http://www.reddit.com/r/gymfails\");\n\t\tredditWorkoutLinks.add(\"http://www.reddit.com/r/gymmemes\");\n\t\tredditWorkoutLinks.add(\"https://www.reddit.com/r/bodybuilding/\");\n\t\tredditWorkoutLinks.add(\"https://www.reddit.com/r/weightlifting\");\n\t\tDocument redditWorkoutDoc = new Document();\n\t\tredditWorkoutDoc.append(\"reddit\", redditWorkoutLinks);\n\n\t\tcontentDirectory.append(\"workout\", redditWorkoutDoc);\n\t\t//////////////////////////////////////////////////////////////////////////////////////////\n\n\t\t//for minecraft\n\t\t//////////////////////////////////////////////////////////////////////////////////////////\n\t\tArrayList<String> redditMinecraftLinks = new ArrayList<>();\n\t\tredditMinecraftLinks.add(\"http://www.reddit.com/r/Minecraft/\");\n\t\tredditMinecraftLinks.add(\"http://www.reddit.com/r/MinecraftSuggestions\");\n\t\tDocument redditMinecraftDoc = new Document();\n\t\tredditMinecraftDoc.append(\"reddit\", redditMinecraftLinks);\n\n\t\tcontentDirectory.append(\"minecraft\", redditMinecraftDoc);\n\t\t//////////////////////////////////////////////////////////////////////////////////////////\n\n\n\t\t//for minecraft\n\t\t//////////////////////////////////////////////////////////////////////////////////////////\n\t\tArrayList<String> redditKSPLinks = new ArrayList<>();\n\t\tredditKSPLinks.add(\"https://www.reddit.com/r/KerbalSpaceProgram/\");\n\t\tredditKSPLinks.add(\"https://www.reddit.com/r/KSPMemes\");\n\t\tredditKSPLinks.add(\"http://www.reddit.com/r/KerbalAcademy\");\n\t\tredditKSPLinks.add(\"https://www.reddit.com/r/RealSolarSystem/\");\n\t\tDocument redditKSPDoc = new Document();\n\t\tredditKSPDoc.append(\"reddit\", redditKSPLinks);\n\n\t\tcontentDirectory.append(\"KSP\", redditKSPDoc);\n\t\t//////////////////////////////////////////////////////////////////////////////////////////\n\n\t\t//for weed\n\t\t//////////////////////////////////////////////////////////////////////////////////////////\n\t\tArrayList<String> redditWeedLinks = new ArrayList<>();\n\t\tredditWeedLinks.add(\"https://www.reddit.com/r/weed/\");\n\t\tredditWeedLinks.add(\"https://www.reddit.com/r/trees/\");\n\t\tredditWeedLinks.add(\"https://www.reddit.com/r/Picturesoftrees/\");\n\t\tredditWeedLinks.add(\"https://www.reddit.com/r/bakedart/\");\n\t\tredditWeedLinks.add(\"https://www.reddit.com/r/treecomics/\");\n\t\tredditWeedLinks.add(\"https://www.reddit.com/r/nugs/\");\n\t\tredditWeedLinks.add(\"https://www.reddit.com/r/nugporn/\");\n\t\tredditWeedLinks.add(\"https://www.reddit.com/r/TokeSpot/\");\n\n\t\tDocument redditWeedDoc = new Document();\n\t\tredditWeedDoc.append(\"reddit\", redditWeedLinks);\n\n\t\tcontentDirectory.append(\"weed\", redditWeedDoc);\n\t\t//////////////////////////////////////////////////////////////////////////////////////////\n\n\t\t//for drug\n\t\t//////////////////////////////////////////////////////////////////////////////////////////\n\t\tArrayList<String> redditDrugLinks = new ArrayList<>();\n\t\tredditDrugLinks.add(\"https://www.reddit.com/r/DrugArt/\");\n\t\tredditDrugLinks.add(\"https://www.reddit.com/r/trippy/\");\n\t\tredditDrugLinks.add(\"https://www.reddit.com/r/drugmemes/\");\n\t\tDocument redditDrugDoc = new Document();\n\t\tredditDrugDoc.append(\"reddit\", redditDrugLinks);\n\n\t\tcontentDirectory.append(\"drug\", redditDrugDoc);\n\t\t//////////////////////////////////////////////////////////////////////////////////////////\n\n\t\t//for cute animals\n\t\t//////////////////////////////////////////////////////////////////////////////////////////\n\t\tArrayList<String> redditCanimalLinks = new ArrayList<>();\n\t\tredditCanimalLinks.add(\"https://www.reddit.com/r/aww/\");\n\t\tredditCanimalLinks.add(\"http://www.reddit.com/r/cats/\");\n\t\tredditCanimalLinks.add(\"https://www.reddit.com/r/babyanimals/\");\n\t\tredditCanimalLinks.add(\"https://www.reddit.com/r/AnimalsBeingBros\");\n\t\tredditCanimalLinks.add(\"https://www.reddit.com/r/woof_irl/\");\n\t\tDocument reddiCanimalDoc = new Document();\n\t\treddiCanimalDoc.append(\"reddit\", redditCanimalLinks);\n\n\t\tcontentDirectory.append(\"canimal\", reddiCanimalDoc);\n\t\t//////////////////////////////////////////////////////////////////////////////////////////\n\n\n\t}",
"public Account(String filename) throws IOException {\n\thtmlfile = filename;\n\tfile = new File(filename);\n\tif (!file.exists()) {\n\t throw new IOException();\n\t}\n\thtmlrandom = new RandomAccessFile(file, \"rw\");\n\thtmlchannel = htmlrandom.getChannel();\n\tlock = htmlchannel.tryLock();\n\tif (lock == null) {\n\t throw new IOException();\n\t}\n\tDocument doc = parseFile();\n\tElements transactions = doc.select(\"table[id=transactions]\");\n\tif (transactions.isEmpty()) {\n\t throw new IOException();\n\t}\n }",
"public GongDomObject(File file) throws ParserConfigurationException, InvalidTagException, SAXException, IOException {\r\n super(file);\r\n }",
"Object create(File file) throws IOException, SAXException, ParserConfigurationException;",
"protected abstract void parseFile(File f) throws IOException;",
"public com.good.gd.file.RandomAccessFile getRandomAccessFile(String fileName, String mode)\n throws FileNotFoundException {\n return new com.good.gd.file.RandomAccessFile(fileName, mode);\n }",
"public FrameBodyASPI(final RandomAccessFile file) throws IOException, InvalidTagException {\r\n super();\r\n read(file);\r\n }",
"private static SimpleNode parse(String filename) throws ParseException {\n\t\tParser parser;\n\t\t// open file as input stream\n\t\ttry {\n\t\t\tparser = new Parser(new java.io.FileInputStream(filename));\n\t\t}\n\t\tcatch (java.io.FileNotFoundException e) {\n\t\t\tSystem.out.println(\"ERROR: file \" + filename + \" not found.\");\n\t\t\treturn null;\n\t\t}\n\t\t// parse and return root node\n\t\treturn parser.parse();\n\t}",
"@Override\n\tpublic Document loadDocument(String file) {\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tdbf.setNamespaceAware(true);\n\t\tDocumentBuilder db;\n\t\ttry {\n\t\t\tdb = dbf.newDocumentBuilder();\n\t\t\tDocument document = db.parse(new File(file));\n\t\t\treturn document;\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FactoryConfigurationError e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}",
"public static Document parse(InputStream in) throws ParserConfigurationException, SAXException, IOException {\n\t DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t DocumentBuilder db = dbf.newDocumentBuilder();\n\t \n\n\t return db.parse(in);\n\t }",
"private static Document parseXmlFile(String strXml) {\n // get the factory\n final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n try {\n // Using factory get an instance of document builder\n final DocumentBuilder db = dbf.newDocumentBuilder();\n final Document dom;\n File file;\n\n file = new File(strXml);\n if (!file.exists()) {\n strXml = \"data/\" + strXml;\n }\n\n // Parse using builder to get DOM representation of the XML file\n dom = db.parse(strXml);\n\n return dom;\n } catch (final Exception e) {\n Verbose.log(Level.SEVERE, e, \"Laoding Specifications\",\n e.getMessage());\n } // end try\n\n return null;\n }",
"public Page readPage(PageId pid){\n // some code goes here\n try{\n\n RandomAccessFile rAf=new RandomAccessFile(f,\"r\");\n int offset = pid.pageNumber()*BufferPool.PAGE_SIZE;\n byte[] b=new byte[BufferPool.PAGE_SIZE];\n rAf.seek(offset);\n rAf.read(b, 0, BufferPool.PAGE_SIZE);\n HeapPageId hpid=(HeapPageId)pid;\n rAf.close(); \n\n return new HeapPage(hpid, b); \n }catch (IOException e){\n e.printStackTrace();\n }\n throw new IllegalArgumentException();\n }",
"public void extract(String pathToPageFile, String baseUri) throws Exception {\n\n File file = new File(pathToPageFile);\n Document doc = Jsoup.parse(file, \"UTF-8\", baseUri);\n Elements links = doc.select(\"a[href]\");\n Elements media = doc.select(\"[src]\");\n Elements imports = doc.select(\"link[href]\");\n\n printf(\"\\nMedia: %d\", media.size());\n for (Element src: media) {\n printf(\" * %s: <%s>\", src.tagName(), src.attr(\"abs:src\"));\n }\n\n printf(\"\\nImports: %d\", imports.size());\n for (Element link: imports) {\n printf(\" * %s <%s> (%s)\", link.tagName(), link.attr(\"abs:href\"), link.attr(\"rel\"));\n }\n\n printf(\"\\nLinks: %d\", links.size());\n for (Element link: links) {\n printf(\" * %s <%s> (%s)\", link.tagName(), link.attr(\"abs:href\"), trim(link.text(), 35));\n }\n }",
"public static final Document loadTemplate(final String absoluteFilePath) {\r\n if ((absoluteFilePath == null) || (absoluteFilePath.length() == 0)) {\r\n logB.error(\"XmlFactory.loadTemplate : unable to load template : empty file name !\");\r\n\r\n return null;\r\n }\r\n\r\n Document doc = cacheDOM.get(absoluteFilePath);\r\n\r\n if (doc == null) {\r\n final File file = new File(absoluteFilePath);\r\n\r\n if (!file.exists()) {\r\n logB.error(\"XmlFactory.loadTemplate : unable to load template : no file found for : \" + absoluteFilePath);\r\n\r\n return null;\r\n }\r\n\r\n if (logB.isDebugEnabled()) {\r\n logB.debug(\"XmlFactory.loadTemplate : file : \" + file);\r\n }\r\n\r\n doc = parse(file);\r\n\r\n if (doc != null) {\r\n cacheDOM.put(absoluteFilePath, doc);\r\n\r\n if (logB.isDebugEnabled()) {\r\n logB.debug(\r\n \"XmlFactory.loadTemplate : template : \" + Integer.toHexString(doc.hashCode()) + \" : \\n\" + asString(doc));\r\n }\r\n }\r\n }\r\n\r\n if (doc != null) {\r\n if (logB.isDebugEnabled()) {\r\n logB.debug(\"XmlFactory.loadTemplate : template in use : \" + Integer.toHexString(doc.hashCode()));\r\n }\r\n\r\n doc = (Document) doc.cloneNode(true);\r\n }\r\n\r\n if (logB.isDebugEnabled()) {\r\n logB.debug(\"XmlFactory.loadTemplate : xml document :\\n\" + asString(doc));\r\n }\r\n\r\n return doc;\r\n }",
"public Document load(final String filename) throws IOException, SAXException {\n final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n factory.setNamespaceAware(true);\n final DocumentBuilder builder;\n try {\n builder = factory.newDocumentBuilder();\n } catch (final ParserConfigurationException pce) {\n pce.printStackTrace();\n return null;\n }\n final InputStream inputStream = getClass().getResourceAsStream(filename);\n if (inputStream != null) {\n // for files found in JARs\n return builder.parse(inputStream);\n } else {\n // for files directly on the file system\n return builder.parse(new File(filename));\n }\n }",
"public void init() { \n\t\ttry { \n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder(); \n\t\t\tthis.document = builder.newDocument(); \n\t\t\tlogger.info(\"initilize the document success.\");\n\t\t} catch (ParserConfigurationException e) { \n\t\t\t\n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}",
"@Override\r\n protected void parseDocuments()\r\n {\n\r\n }",
"public Document parseFile(String fileName) {\r\n log.debug(\"Parsing XML file... \" + fileName);\r\n DocumentBuilder docBuilder;\r\n Document doc = null;\r\n DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n docBuilderFactory.setIgnoringElementContentWhitespace(true);\r\n try {\r\n docBuilder = docBuilderFactory.newDocumentBuilder();\r\n }\r\n catch (ParserConfigurationException e) {\r\n log.debug(\"Wrong parser configuration: \" + e.getMessage());\r\n return null;\r\n }\r\n File sourceFile = new File(fileName);\r\n try {\r\n doc = docBuilder.parse(sourceFile);\r\n setDocument(doc);\r\n }\r\n catch (SAXException e) {\r\n log.debug(\"Wrong XML file structure: \" + e.getMessage());\r\n return null;\r\n }\r\n catch (IOException e) {\r\n log.debug(\"Could not read source file: \" + e.getMessage());\r\n }\r\n log.debug(\"XML file parsed\");\r\n return doc; \r\n }",
"public AceDocument (String textFileName, String APFfileName) {\n\t\ttry {\n\t\t// initialize APF reader\n\t\tif (builder == null) {\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\tfactory.setValidating(false);\n\t\t\tbuilder = factory.newDocumentBuilder();\n\t\t\t}\n\t\t\tanalyzeDocument (textFileName, APFfileName);\n\t\t} catch (SAXException e) {\n\t\t\tSystem.err.println (\"AceDocument: Exception in initializing APF reader: \" + e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println (\"AceDocument: Exception in initializing APF reader: \" + e);\n\t\t} catch (ParserConfigurationException e) {\n\t\t\tSystem.err.println (\"AceDocument: Exception in initializing APF reader: \" + e);\n\t\t}\n\t}",
"public IndexFile(String url) throws IOException {\n\n /*\n * creates raf\n */\n raf = new RandomAccessFile(url + _shx, \"r\");\n\n /*\n * construct Header as ShapeFileHeader\n */\n fh = new FileHeader(raf);\n\n fileMBR = fh.getFileMBR();\n\n /*\n * construct indexArray\n */\n setIndexArray();\n\n }",
"protected String parseAndSaveHtml() {\n\t\t// the line of the html code\n\t\tString inputLine;\n\n\t\t// creates the folder's name from the domain name\n\t\tString folderName = nameFolder();\n\t\tFile folderNameFile = new File(path + folderName);\n\n\t\t// checks if there is already a folder with the same name\n\t\tif (!existsFolder(folderNameFile)) {\n\t\t\tmakeFolder(folderNameFile);\n\t\t}\n\n\t\t// creates the file with a random unique name\n\t\tString fileName = generateFileName(folderName);\n\t\tFile file = new File(path + folderName + \"\\\\\" + fileName + \".txt\");\n\n\t\ttry {\n\t\t\t// streams which help to read from the url\n\t\t\tInputStreamReader is = new InputStreamReader(url.openStream(), \"UTF-8\");\n\t\t\tBufferedReader br = new BufferedReader(is);\n\t\t\tbr.mark(0);\n\n\t\t\t// streams which help to write from the url\n\t\t\tFileOutputStream fos = new FileOutputStream(file);\n\t\t\tOutputStreamWriter osw = new OutputStreamWriter(fos, \"UTF-8\");\n\t\t\tBufferedWriter bw = new BufferedWriter(osw);\n\n\t\t\t// reads line by line the html code\n\t\t\twhile ((inputLine = br.readLine()) != null) {\n\t\t\t\tbw.write(inputLine);\n\t\t\t\tbw.newLine();\n\t\t\t}\n\t\t\tbr.close();\n\t\t\tbw.close(); //closes the writer stream\n\n\t\t\treturn path + folderName + \"\\\\\" + fileName + \".txt\";\n\t\t} catch (IOException e) {\n\t\t\tfile.delete();\n\t\t\treturn null;\n\t\t}\n\n\t}",
"public void parseDirectory(File directory) throws IOException {\n this.parsedFiles.clear();\n File[] contents = directory.listFiles();\n for (File file : contents) {\n if (file.isFile() && file.canRead() && file.canWrite()) {\n String fileName = file.getPath();\n if (fileName.endsWith(\".html\")) {\n Document parsed;\n parsed = Jsoup.parse(file, \"UTF-8\");\n if (this.isWhiteBearArticle(parsed)) {\n HTMLFile newParsedFile = new HTMLFile(parsed, false);\n String name = file.getName();\n this.parsedFiles.put(name, newParsedFile);\n } else if (this.isMenuPage(parsed)) {\n //HTMLFile newParsedFile = new HTMLFile(parsed, false);\n //String name = file.getName();\n //this.parsedFiles.put(name, newParsedFile);\n }\n }\n }\n }\n }",
"void readAPFdocument (Document apfDoc, String fileText) {\n\t\tNodeList sourceFileElements = apfDoc.getElementsByTagName(\"source_file\");\n\t\tElement sourceFileElement = (Element) sourceFileElements.item(0);\n\t\tsourceFile = sourceFileElement.getAttribute(\"URI\");\n\t\tsourceType = sourceFileElement.getAttribute(\"SOURCE\");\n\n\t\tNodeList documentElements = apfDoc.getElementsByTagName(\"document\");\n\t\tElement documentElement = (Element) documentElements.item(0);\n\t\tdocID = documentElement.getAttribute(\"DOCID\");\n\n\t\tif (Ace.perfectMentions & !Ace.perfectEntities) {\n\t\t\treadPerfectMentions (apfDoc, fileText);\n\t\t\treturn;\n\t\t}\n\n\t\tNodeList entityElements = apfDoc.getElementsByTagName(\"entity\");\n\t\tfor (int i=0; i<entityElements.getLength(); i++) {\n\t\t\tElement entityElement = (Element) entityElements.item(i);\n\t\t\tAceEntity entity = new AceEntity (entityElement, fileText);\n\t\t\taddEntity(entity);\n\t\t}\n\t\tNodeList valueElements = apfDoc.getElementsByTagName(\"value\");\n\t\tfor (int i=0; i<valueElements.getLength(); i++) {\n\t\t\tElement valueElement = (Element) valueElements.item(i);\n\t\t\tAceValue value = new AceValue (valueElement, fileText);\n\t\t\taddValue(value);\n\t\t}\n\t\tNodeList timexElements = apfDoc.getElementsByTagName(\"timex2\");\n\t\tfor (int i=0; i<timexElements.getLength(); i++) {\n\t\t\tElement timexElement = (Element) timexElements.item(i);\n\t\t\tAceTimex timex = new AceTimex (timexElement, fileText);\n\t\t\taddTimeExpression(timex);\n\t\t}\n\t\tNodeList relationElements = apfDoc.getElementsByTagName(\"relation\");\n\t\tfor (int i=0; i<relationElements.getLength(); i++) {\n\t\t\tElement relationElement = (Element) relationElements.item(i);\n\t\t\tAceRelation relation = new AceRelation (relationElement, this, fileText);\n\t\t\taddRelation(relation);\n\t\t}\n\t\tNodeList eventElements = apfDoc.getElementsByTagName(\"event\");\n\t\tfor (int i=0; i<eventElements.getLength(); i++) {\n\t\t\tElement eventElement = (Element) eventElements.item(i);\n\t\t\tAceEvent event = new AceEvent (eventElement, this, fileText);\n\t\t\taddEvent(event);\n\t\t}\n\t}",
"public static void parseHTML(String filename) throws IOException {\n\t\tString folder = \"HTML/sites/\" + filename + \"/\";\n\t\tFile file = new File(folder + \"index.html\");\n\n\t\tFile outputFile = new File(\"Text/\" + filename + \".txt\");\n\t\tPrintWriter writer = new PrintWriter(outputFile);\n\n\t\tDocument doc = Jsoup.parse(file, null);\n\n\t\tElements elements = doc.select(\"title, li\");\n\n\t\tfor (Element e : elements) {\n\t\t\tif (!(e.text().equals(\"\")))\n\t\t\t\twriter.println(e.text());\n\t\t}\n\t\twriter.close();\n\t}",
"public DOECorpus loadFromHTML() {\n\t\tFile[] files = getFileList();\n\t\t\n\t\tSystem.out.println(\"Found \" + files.length + \" documents in \" + this.sourceDir);\n\t\tSystem.out.println(\"Parsing their contents...\");\n\t\tint totalLineCount = 0;\n\t\t\n\t\tDOECorpus corpus = new DOECorpus();\n\t\t\n\t\tfor(File file : files) {\n\t\t\ttry {\n\t\t\t\tDocument htmlDoc = Jsoup.parse(file, null);\n\t\t\t\tString originalLocation = htmlDoc.location();\n\t\t\t\tString shortTitle = htmlDoc.title();\n\t\t\t\tString shortShortTitle = \"\";\n\t\t\t\tString cameronNumber = \"\";\n\t\t\t\t\n\t\t\t\tDOECorpusDocument corpusDoc = new DOECorpusDocument(shortTitle, shortShortTitle, cameronNumber, originalLocation);\n\t\t\t\t\t\t\n\t\t\t\tElements paragraphElements = htmlDoc.select(\"p\");\n\t\t\t\tDOECorpusLine lineBefore = null;\n\t\t\t\t\n\t\t\t\tfor(Element p : paragraphElements) {\n\t\t\t\t\tString text = p.text();\n\t\t\t\t\t\n\t\t\t\t\tif(ignoreLine(text))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\telse if(text.startsWith(SHORT_SHORT_TITLE))\n\t\t\t\t\t\tshortShortTitle = text.replace(SHORT_SHORT_TITLE, \"\");\n\t\t\t\t\t\n\t\t\t\t\telse if(text.startsWith(CAMERON_NUMBER))\n\t\t\t\t\t\tcameronNumber = text.replace(CAMERON_NUMBER, \"\");\n\t\t\t\t\t\n\t\t\t\t\telse if(text.startsWith(\"[\")) {\n\t\t\t\t\t\tString lineID = \"\";\n\t\t\t\t\t\tString line = \"\";\n\t\t\t\t\t\tPattern linePattern = Pattern.compile(\"\\\\[([0-9]+\\\\s\\\\([0-9a-zA-Z\\\\.,\\\\s\\\\(\\\\)]+\\\\))\\\\]\\\\s(.*)\");\n\t\t\t\t\t\tMatcher m = linePattern.matcher(text);\n\t\t\t\t\t\tif (m.matches()) {\n\t\t\t\t\t\t lineID = m.group(1).trim();\n\t\t\t\t\t\t line = m.group(2).trim();\n\t\t\t\t\t\t \n\t\t\t\t\t\t DOECorpusLine newLine = new DOECorpusLine(lineID, line, shortTitle);\n\t\t\t\t\t\t newLine.setLineBefore(lineBefore);\n\t\t\t\t\t\t if(lineBefore != null)\n\t\t\t\t\t\t\t lineBefore.setLineAfter(newLine);\n\t\t\t\t\t\t corpusDoc.addLine(newLine);\n\t\t\t\t\t\t lineBefore = newLine;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(!text.isEmpty())\t// This should be the full title\n\t\t\t\t\t\tcorpusDoc.setFullTitle(text);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttotalLineCount += corpusDoc.getLineCount();\n\t\t\t\tcorpus.addDocument(corpusDoc);\n\t\t\t\t\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\tSystem.out.println(\"Parsing their contents...DONE\");\n\t\tSystem.out.println(\"Total number of lines: \" + totalLineCount);\n\t\t\n\t\tSystem.out.println(\"Splitting lines into sentences...\");\n\t\tcorpus.splitIntoSentences();\n\t\tSystem.out.println(\"Splitting lines into sentences...DONE\");\n\t\t\n\t\tSystem.out.println(\"Tokenizing sentences...\");\n\t\tcorpus.tokenize();\n\t\tSystem.out.println(\"Tokenizing sentences...DONE\");\n\t\tSystem.out.println(\"Total number of tokens: \" + corpus.getTokenCount());\n\t\tSystem.out.println(\"Total number of types: \" + corpus.getTypeCount());\n\t\tSystem.out.println(\"Total number of sentences: \" + corpus.getSentenceCount());\n\t\tSystem.out.println(\"Average sentence length: \" + corpus.getAvgSenLength());\n\t\tSystem.out.println(\"Minimum sentence length: \" + corpus.getMinSenLength());\n\t\tSystem.out.println(\"Maximum sentence length: \" + corpus.getMaxSenLength());\n\t\t\n\t\treturn corpus;\n\t}",
"public void parse(String filename);",
"public RandomAccessOutputStream(String file) throws IOException {\n raos = new ome.scifio.io.RandomAccessOutputStream(file);\n }",
"public String parse(File file);",
"public void parseDocument(String XMLFilePath) {\n\t \n\t SAXParserFactory spf = SAXParserFactory.newInstance();\n\t try {\n\t\tSAXParser sp = spf.newSAXParser();\n\t\tsp.parse(XMLFilePath, this);\n\t }catch(SAXException se) {\n\t\tse.printStackTrace();\n\t }catch(ParserConfigurationException pce) {\n\t\tpce.printStackTrace();\n\t }catch (IOException ie) {\n\t\tie.printStackTrace();\n\t }\n\t}",
"public Document getDirectoryStructure(String folder,\n\t\t\tint recursion_level, boolean absolutePath)\n\t\t\tthrows FileNotFoundException, DOMException, RemoteFileSystemException, VomsException {\n\n\t\toutput = getDocBuilder().newDocument();\n\t\tElement root = output.createElement(\"Files\");\n\t\t\n\t\tif (absolutePath) {\n\t\t\troot.setAttribute(\"absolutePath\", \"true\");\n\t\t} else {\n\t\t\troot.setAttribute(\"absolutePath\", \"false\");\n\t\t}\n\t\troot.setAttribute(\"name\", \"fs_root\");\n\t\t\n\t\toutput.appendChild(root);\n\t\t\n\t\tif (\"/\".equals(folder)) {\n\t\t\tfor (MountPoint mp : user.getAllMountPoints()) {\n\t\t\t\tElement mp_element = output.createElement(\"MountPoint\");\n\t\t\t\tif (absolutePath) {\n\t\t\t\t\tmp_element.setAttribute(\"path\", mp.getRootUrl());\n\t\t\t\t\tmp_element.setAttribute(\"name\", mp.getRootUrl());\n\t\t\t\t} else {\n\t\t\t\t\tmp_element.setAttribute(\"path\", mp.getMountpoint());\n\t\t\t\t\tmp_element.setAttribute(\"name\", mp.getMountpoint().substring(1));\n\t\t\t\t}\n\t\t\t\tif ( recursion_level > 1 ) \n\t\t\t\t\tbuildDirectoryStructure(mp_element, mp, absolutePath, 1, recursion_level);\n\t\t\t\troot.appendChild(mp_element);\n\t\t\t}\n\t\t} else {\n\t\t\tMountPoint mp = null;\n\t\t\tif ( folder.startsWith(\"/\") ) {\n\t\t\t\tmp = user.getResponsibleMountpointForUserSpaceFile(folder);\n\t\t\t} else {\n\t\t\t\tmp = user.getResponsibleMountpointForAbsoluteFile(folder);\n\t\t\t}\n\t\t\tElement root_element = null;\n//\t\t\tif ( mp != null ) {\n//\t\t\t\troot_element = output.createElement(\"MountPoint\");\n//\t\t\t\tif (absolutePath) {\n//\t\t\t\t\troot_element.setAttribute(\"path\", mp.getRootUrl());\n//\t\t\t\t\troot_element.setAttribute(\"name\", mp.getRootUrl());\n//\t\t\t\t} else {\n//\t\t\t\t\troot_element.setAttribute(\"path\", mp.getMountpoint());\n//\t\t\t\t\troot_element.setAttribute(\"name\", mp.getMountpoint().substring(1));\n//\t\t\t\t\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t\tbuildDirectoryStructure(root_element, mp, absolutePath, 0, recursion_level);\n//\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\troot_element = createElement(user.aquireFile(folder), absolutePath, mp);\n\t\t\t\t} catch (FileSystemException e) {\n\t\t\t\t\tthrow new RemoteFileSystemException(\"Could not aquire file: \"+folder+\": \"+e.getMessage());\n\t\t\t\t}\n\t\t\t\tbuildDirectoryStructure(root_element, mp, absolutePath, 1, recursion_level);\n//\t\t\t}\n\t\t\troot.appendChild(root_element);\n\t\t\t\t\n\t\t}\n\n\t\treturn output;\n\t}",
"private ArrayList<String> parseDocsFile(String file_name){\r\n // extract each <DOC> ... </DOC> from file AS string (corpus)\r\n ArrayList<String> list = new ArrayList<>();\r\n Scanner scanner = null;\r\n try{\r\n scanner = new Scanner(new BufferedReader(new FileReader(file_name)));\r\n scanner.useDelimiter(\"</DOC>\"); // END of Next()\r\n while (scanner.hasNext())\r\n {\r\n list.add(scanner.next()+\"</DOC>\");\r\n }\r\n list.remove(list.size()-1);\r\n }\r\n catch (Exception e ){ System.out.println(\"Error reading file -> \"+e.getMessage()); }\r\n finally {\r\n if(scanner != null ){scanner.close();} // close the file\r\n }\r\n return list;\r\n }",
"public Map<String, String> NextDocument() throws IOException {\n\t\tMap<String, String> oneDoc = new HashMap<String, String>();\n\t\tString docId = \"\";\n\t\tString docTxt = \"\";\n\t\tif ((docId = bf_Reader.readLine())!=null){\n\t\t\tdocTxt = bf_Reader.readLine();\n\t\t\toneDoc.put(docId,docTxt); //put docNo-content pairs into map\n\t\t\treturn oneDoc;\n\t\t}\n\n\t\tbf_Reader.close();\n\n\t\treturn null;\n\t}",
"public DBMaker useRandomAccessFile(){\n this.useRandomAccessFile = true;\n return this;\n }",
"public static void readFile(File f){\n\t\tFileInputStream fis = null;\n\t\tObjectInputStream ois = null;\n\t\ttry{\n\t\t\tPage page = null;\n\t\t\tfis = new FileInputStream(f);\n\t\t\tois = new ObjectInputStream(fis);\n\t\t\twhile(true){\n\t\t\t\ttry{\n\t\t\t\t\tObject obj = ois.readObject();\n\t\t\t\t\tpage = (Page)obj;\n\t\t\t\t\theap.add(page);\n\t\t\t\t\t//System.out.println(page.getBuildings());\n\t\t\t\t\tsearch();\n\t\t\t\t\theap.remove(page);\n\t\t\t\t}\n\t\t\t\tcatch(EOFException eoe){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(FileNotFoundException fnf){\n\t\t\tSystem.out.println(fnf.getMessage());\n\t\t\tSystem.out.println(\"Terminating Program\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tcatch(ClassNotFoundException cnf){\n\t\t\tcnf.printStackTrace();\n\t\t}\n\t\tcatch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally{\n\t\t\ttry{\n\t\t\t\tfis.close();\n\t\t\t\tois.close();\n\t\t\t}\n\t\t\tcatch(Exception ee){\n\t\t\t}\n\t\t}\n\t}",
"public static native boolean loadDocument(String doc);",
"public Map<String, String> NextDocument() throws IOException {\n\t\tMap<String, String> map = new HashMap<>();\n\t\tStringBuffer content = new StringBuffer();\n\t\tString line = inputStream.readLine();\n\t\tif(line==null) {\n\t\t\tinputStream.close();\n\t\t\treturn null;\n\t\t} else {\n\t\t\tmap.put(\"DOCNO\", line);\n\t\t\tmap.put(\"CONTENT\", inputStream.readLine());\n\t\t\treturn map;\n\t\t}\n\t}",
"@Override\n protected Void doInBackground(Void... params) {\n try {\n documentoHtml = Jsoup.connect(\"http://eldolarenmexico.com/\").get();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"private void loadSnapshot()\n {\n m_snapshotDoc = null;\n m_Element = null;\n m_ElementStatus = null;\n m_bOffline = false;\n try\n {\n File snapshot = new File(MainFrame.getConfig().getUserPath(),\n SNAPSHOTFILE);\n if(snapshot.exists())\n {\n DocumentBuilder db = RXFileTracker.getDocumentBuilder();\n m_snapshotDoc = db.parse(snapshot.getPath());\n m_Element = m_snapshotDoc.getDocumentElement();\n }\n }\n catch(SAXException | IOException ioe)\n {\n log.error(PSExceptionUtils.getMessageForLog(ioe));\n }\n\n }",
"private void parseXmlFile(InputStream file)\n {\n\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n\ttry\n\t{\n\t // Using factory get an instance of document builder\n\t //Log.d(Constants.TAG, \"XMLReader::parseXmlFile - Creating a new Document Builder.\");\n\t DocumentBuilder db = dbf.newDocumentBuilder();\n\n\t // parse using builder to get DOM representation of the XML file\n\t //Log.d(Constants.TAG, \"XMLReader::parseXmlFile - Attempting to parse the file.\");\n\t // This line causes the program to crash when attempting to read the SVG file, which is in XML format.\n\t dom = db.parse(file);\n\t //Log.d(Constants.TAG, \"XMLReader::parseXmlFile - Finished parsing the file.\");\n\t}\n\tcatch (ParserConfigurationException pce)\n\t{\n\t Log.d(Constants.TAG, \"ParserConfigurationException MSG: \" + pce.getMessage());\n\n\t pce.printStackTrace();\n\t}\n\tcatch (SAXException se)\n\t{\n\t Log.d(Constants.TAG, \"SAXException MSG: \" + se.getMessage());\n\n\t se.printStackTrace();\n\t}\n\tcatch (IOException ioe)\n\t{\n\t Log.d(Constants.TAG, \"IOException MSG: \" + ioe.getMessage());\n\n\t ioe.printStackTrace();\n\t}\n\tcatch (Exception e)\n\t{\n\t Log.d(Constants.TAG, \"Exception MSG: \" + e.getMessage());\n\t e.printStackTrace();\n\t}\n\n\t//Log.d(Constants.TAG, \"XMLReader::parseXmlFile() Exiting!\");\n }",
"Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;",
"public Documento(String camino) {\n File archivo = new File(camino);\n try {\n byte[] temp = new byte[(int) archivo.length()];\n BufferedInputStream entrada = new\n BufferedInputStream(new FileInputStream(archivo));\n\n entrada.read(temp,0,temp.length);\n entrada.close();\n contenido = temp;\n } catch(Exception e) {\n System.out.println(\"El archivo dado no existe.\");\n }\n\n this.camino = camino;\n nombre = archivo.getName();\n\n }",
"RandomAccessData(File f,String mode) throws FileNotFoundException {\n super(f,mode);\n }"
] | [
"0.58401823",
"0.53283924",
"0.5319632",
"0.5230837",
"0.52274024",
"0.5221835",
"0.5178948",
"0.5148904",
"0.51057833",
"0.5089391",
"0.508758",
"0.5085861",
"0.5067321",
"0.501082",
"0.5001697",
"0.4993879",
"0.4990998",
"0.49510843",
"0.49299917",
"0.49280068",
"0.49103102",
"0.49044645",
"0.48823804",
"0.48585394",
"0.48552173",
"0.48456347",
"0.4845241",
"0.48305446",
"0.4767091",
"0.47360602",
"0.4720753",
"0.47023994",
"0.46958554",
"0.46909225",
"0.46897307",
"0.46890667",
"0.46775487",
"0.4674197",
"0.46573064",
"0.46435708",
"0.4637903",
"0.46370178",
"0.46238956",
"0.4617479",
"0.46029016",
"0.45883363",
"0.45881107",
"0.45832494",
"0.45760348",
"0.45758525",
"0.4573431",
"0.45646384",
"0.4548646",
"0.45072013",
"0.4502315",
"0.45009372",
"0.44938186",
"0.44909483",
"0.44870907",
"0.44853354",
"0.4475637",
"0.44718337",
"0.4458928",
"0.44536296",
"0.44370067",
"0.44340107",
"0.442836",
"0.44127017",
"0.44080815",
"0.44062296",
"0.44013354",
"0.4399345",
"0.43977058",
"0.4390303",
"0.4383448",
"0.43782434",
"0.43737778",
"0.4371813",
"0.4363393",
"0.43631715",
"0.4352473",
"0.43461528",
"0.43420646",
"0.43384007",
"0.43378228",
"0.43353772",
"0.43339428",
"0.43333325",
"0.43283582",
"0.4326805",
"0.43223745",
"0.43145603",
"0.43100607",
"0.4308",
"0.4305805",
"0.4299976",
"0.42979833",
"0.42918402",
"0.42888594",
"0.4286382"
] | 0.7036313 | 0 |
Gets the balance from the RandomAccessFile representing the account. | public float balance() throws IOException {
float balance = (float)0.0;
Document doc = parseFile();
Elements transactions = doc.select("table[id=transactions]");
for (Element sub: transactions.select("td")) {
float amount = Float.parseFloat(sub.text().trim());
balance += amount;
}
return balance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getAccountBalance(int account_id){\n Account a = cache.get(account_id);\n if(a != null) return a.getBalance();\n\n try (\n Statement s = rawDataSource.getConnection().createStatement();\n ResultSet res = s.executeQuery(\n \"SELECT BALANCE FROM ACCOUNTS WHERE ACCOUNT_ID = \" + account_id)) {\n\n if (res.next())\n return res.getInt(\"BALANCE\");\n } catch (SQLException ex) {\n return null;\n }\n\n return null;\n }",
"public void getBalance( Integer account_id ){\r\n\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n String url = API_DOMAIN + ACCOUNT_EXT + GET_BALANCE;\r\n this.makeVolleyRequest( url, params );\r\n }",
"public String balance() {\n\t\treturn this.apiCall(\"balance\", \"\", \"\", true);\n\t}",
"public void getBalance() {\n\t\tSystem.out.println(\"Balance in Savings account is\" + balance);\n\t\t//return balance;\n\t}",
"public int getBalance() {\n return total_bal;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getBalanceBytes() {\n java.lang.Object ref = balance_;\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 balance_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public long getBalance() {\n return this.balance;\n }",
"public final float getBalance() {\n return balance;\n }",
"public double getBankAccountBalance() {\r\n\t\t\r\n\t\tdouble balance = 0.0;\r\n\t\t\r\n\t\t\t\tif( customerBankAccountList.contains(this.getCustomer() ) ) \r\n\t\t\t\t{\t\r\n\t\t\t\t\tbalance = this.getCustomer().getBalance();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\treturn balance;\r\n\t\t}",
"public com.google.protobuf.ByteString\n getBalanceBytes() {\n java.lang.Object ref = balance_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n balance_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public long getBalance() {\n\t\n\treturn balance;\n}",
"public java.lang.String getBalance() {\n java.lang.Object ref = balance_;\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 balance_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public float getBalance()\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tDBConnection ToDB = new DBConnection(); //Have a connection to the DB\r\n\t\t\tConnection DBConn = ToDB.openConn();\r\n\t\t\tStatement Stmt = DBConn.createStatement();\r\n\t\t\tString SQL_Command = \"SELECT Balance FROM SavingsAccount WHERE SavingsAccountNumber ='\"+SavingsAccountNumber+\"'\"; //SQL query command for Balance\r\n\t\t\tResultSet Rslt = Stmt.executeQuery(SQL_Command);\r\n\t\t\twhile (Rslt.next())\r\n\t\t\t{\r\n\t\t\t\tBalance = Rslt.getFloat(1);\r\n\t\t\t}\r\n\t\t\tStmt.close();\r\n\t\t\tToDB.closeConn();\r\n\t\t}\r\n\t\tcatch(SQLException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"SQLException: \" + e);\r\n\t\t\twhile (e != null)\r\n\t\t\t{ System.out.println(\"SQLState: \" + e.getSQLState());\r\n\t\t\t\tSystem.out.println(\"Message: \" + e.getMessage());\r\n\t\t\t\tSystem.out.println(\"Vendor: \" + e.getErrorCode());\r\n\t\t\t\te = e.getNextException();\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception: \" + e);\r\n\t\t\te.printStackTrace ();\r\n\t\t}\r\n\t\treturn Balance;\r\n\t}",
"public int getBalance() {\n\t\treturn balance;\n\t}",
"@java.lang.Override\n public java.lang.String getBalance() {\n java.lang.Object ref = balance_;\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 balance_ = s;\n return s;\n }\n }",
"public Integer getBalance() {\n return balance;\n }",
"public Integer getBalance() {\n return balance;\n }",
"public int getBalance() {\n return balance;\n }",
"public int getBalance() {\n return balance;\n }",
"public String getBalance() {\n return balance;\n }",
"public double getBalance() {\r\n\t\t\r\n\t\treturn balance;\r\n\t\t\r\n\t}",
"public double getBalance() \n\t{\n\t\treturn balance;\n\t\t\n\t}",
"public int getBalance()\n {\n return balance;\n }",
"public double getBalance(){\n return balance.getBalance();\n }",
"public String getBalance() {\n return this.balance;\n }",
"public double getBalance() {\n\t\treturn balance;\n\t}",
"public double getBalance() {\n\t\treturn balance;\n\t}",
"public double getBalance() {\n\t\treturn balance;\n\t}",
"public double getBalance() {\n\t\treturn balance;\n\t}",
"public double getBalance() {\n\t\treturn balance;\n\t}",
"public float getBalance() {\n return balance;\n }",
"public java.math.BigDecimal getBalance() {\n return balance;\n }",
"public double getBalance() {\n return balance;\n }",
"public BigDecimal getBalance() {\n return balance;\n }",
"public BigDecimal getBalance() {\n return balance;\n }",
"public double getBalance()\n \n {\n \n return balance;\n \n }",
"public double getBalance(){\r\n\t\treturn balance;\r\n\t}",
"public double getBalance()\r\n\t{\r\n\t\treturn balance;\t\t\r\n\t}",
"public double getBalance()\t{\n\t\treturn balance;\n\t}",
"public double getBalance(){\n\t\treturn balance;\n\t}",
"public double getBalance() {\n return balance;\n }",
"public double getBalance() {\n return balance;\n }",
"public double getBalance() {\n return balance;\n }",
"public double getBalance() {\n return balance;\n }",
"double getBalance() {\n\t\treturn balance;\n\t}",
"public Double getBalance() {\r\n return balance;\r\n }",
"public double getBalance() {\n return this.balance;\n }",
"public double getBal() {\n\t\t return balance;\r\n\t }",
"public double getBalance()\n {\n return balance;\n }",
"public BankAccount getBalance (IDRecord idRecord) {\n\n BankAccount currentBankAccount;\n // extract the bank account number\n int theAcctNum = idRecord.getNumericalID();\n\n // find BankAccount from account -> BankAccount HashMap\n currentBankAccount = hashMapOfAllAccts.get(theAcctNum);\n\n if ( currentBankAccount == null) {\n // if no account was found, generate a generic empty account\n currentBankAccount = new BankAccount();\n\n }\n\n return currentBankAccount;\n }",
"@Override\n public AccountDto getBalance(AccountNumberDto accountNumber) {\n AccountEntity accountEntity = new AccountDaoImpl(new StatementsRunnerImpl()).readBalance(accountNumber);\n return new AccountDto(accountEntity.getId(), accountNumber.getAccountNumber(), accountEntity.getCurrency());\n }",
"public double getCurrentBalance(){\n if(!checkAccountOpen()){\n System.out.println(\"This transaction could not be processed. Please check your account status.\");\n }\n System.out.println(\"Your current balance is: $\"+currentBalance);\n return currentBalance;\n }",
"public int getBalance() {\n return this.balance;\n\n }",
"double getBalance();",
"double getBalance();",
"public double getBalance() {\n\n double balance = 0;\n balance = overDraftLimit;\n return balance;\n\n }",
"double getBalance(UUID name);",
"public Integer getAccountBalance(String address) throws LedgerException {\n // Convenience variable for throwing exceptions\n String action = \"get account balance\";\n\n Account account;\n Block lastBlock;\n\n try {\n // Retrieve most recent completed block\n lastBlock = getBlock(blockMap.size());\n } catch (LedgerException e) {\n // Catch 'Block does not exist' and throw more specific exception\n throw new LedgerException(action, \"No blocks have been commited yet.\");\n }\n\n // If the account does not exist, throw an Exception\n if ( (account = lastBlock.getAccount(address)) == null ) {\n throw new LedgerException(action, \"Account does not exist.\");\n }\n\n return account.getBalance();\n }",
"public synchronized double getBalanceForAccId(int AccId) {\n\t\tConnection dbAccess = DataAccess.getDbAccess();\n\t\tPreparedStatement psttmnt;\n\t\tResultSet rs;\n\t\tString querySting;\n\t\tdouble balance = -1.0;\n\t\ttry {\n\t\t\tquerySting = \"SELECT acc_balance FROM accounts where acc_id = \" + AccId;\n\t\t\tpsttmnt = dbAccess.prepareStatement(querySting);\n\t\t\trs = psttmnt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tbalance = rs.getDouble(\"acc_balance\");\n\t\t\t}\n\t\t\tdbAccess.close();\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\treturn balance;\n\t}",
"@Override\n\tpublic Account getBalance(String username) {\n\t\treturn account.findByUsername(username);\n\t}",
"public BigDecimal getBalance(String accountNumber) throws TransferServiceException {\n\n\t\tAccount acc = repository.findByAccountNumber(accountNumber);\n\t\tisAccountValid(acc);\n\t\treturn acc.getBalance();\n\t}",
"public static Double getCurrentBalance() {\n\t\treturn BankAccount.currentBalance;\n\t}",
"public float getAmount() {\n System.out.println(\"Account Balance:\" + amount);\n return amount;\n }",
"public Money getTotalBalance();",
"public float getBalance(String SavngsAcct) {\n\t\ttry\r\n\t\t{\r\n\t\t\tDBConnection ToDB = new DBConnection(); //Have a connection to the DB\r\n\t\t\tConnection DBConn = ToDB.openConn();\r\n\t\t\tStatement Stmt = DBConn.createStatement();\r\n\t\t\tString SQL_Command = \"SELECT Balance FROM SavingsAccount WHERE SavingsAccountNumber ='\"+SavingsAccountNumber+\"'\"; //SQL query command for Balance\r\n\t\t\tResultSet Rslt = Stmt.executeQuery(SQL_Command);\r\n\t\t\twhile (Rslt.next()) {\r\n\t\t\t\tBalance = Rslt.getFloat(1);\r\n\t\t\t}\r\n\t\t\tStmt.close();\r\n\t\t\tToDB.closeConn();\r\n\t\t}\r\n\t\tcatch(SQLException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"SQLException: \" + e);\r\n\t\t\twhile (e != null)\r\n\t\t\t{ System.out.println(\"SQLState: \" + e.getSQLState());\r\n\t\t\t\tSystem.out.println(\"Message: \" + e.getMessage());\r\n\t\t\t\tSystem.out.println(\"Vendor: \" + e.getErrorCode());\r\n\t\t\t\te = e.getNextException();\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception: \" + e);\r\n\t\t\te.printStackTrace ();\r\n\t\t}\r\n\t\treturn Balance;\r\n\t}",
"public AccountDto getBalanceFor(UUID accountId) {\n Account account = repository.getAccount(accountId);\n return getAccountDtoFor(account);\n }",
"public long balanceForAccount(int acctnum) {\n if (acctnum != -1) {\n return mAccounts.get(acctnum).balance();\n } else {\n long sum = 0;\n for (HDAccount hda : mAccounts)\n sum += hda.balance();\n return sum;\n }\n }",
"public double getBalance(){\n return this.balance;\r\n }",
"@Override\n public ResponseEntity<ResponseAccountBalance> getAccountBalanceById(String accountId) {\n\n final String url = \"https://sandbox.platfr.io/api/gbs/banking/v2/accounts/\"+accountId+\"/balance\";\n //=======================================================================\n //============================= HEADER ==================================\n //=======================================================================\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\n requestHeaders.set(\"Auth-Schema\",\"S2S\");\n\n HttpEntity<AccountBalance> entity = new HttpEntity<>(requestHeaders);\n // Send request with GET method, and Headers.\n return restTemplate.exchange(url,HttpMethod.GET, entity, ResponseAccountBalance.class);\n\n }",
"public abstract int getBalancesRead();",
"public int getBankAccount() {\n return bankAccount;\n }",
"protected double getTotalBalance()\r\n {\r\n return totalBalance;\r\n }",
"public double getBalance(){\n return balance;\n }",
"public java.lang.String getTotalbalance() {\n return totalbalance;\n }",
"public BigDecimal getBalance()\n\t{\n\t\tBigDecimal retValue = Env.ZERO;\n\t//\tlog.config( toString() + \" Balance=\" + retValue);\n\t\treturn retValue;\n\t}",
"public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }",
"@Override\r\n\tpublic double showBalance(String phoneNumber) throws AccountException {\n\t\treturn dao.showBalance(phoneNumber);\r\n\t}",
"public double getTotalBalance(int userAccountNumber) {\r\n return getAccount(userAccountNumber).getTotalBalance();\r\n }",
"public float getAccBalance() {\n\t\treturn accBalance;\n\t}",
"public double getBalance()\n {\n return startingBalance;\n }",
"public String getBalances() {\n\n\t\treturn getJson(API_VERSION, ACCOUNT, \"getbalances\");\n\t}",
"public static double totalBalance() {\n return totalBalance;\n }",
"public double getBalance(){\n return balance;\n }",
"private double getBalance() { return balance; }",
"public double getBalance(){\n return balance;\n }",
"public Long getAvailableBalance() {\n return availableBalance;\n }",
"public double getAvailableBalance(int userAccountNumber) {\r\n return getAccount(userAccountNumber).getAvailableBalance();\r\n }",
"BigDecimal getOpeningDebitBalance();",
"BigDecimal getOpeningDebitBalance();",
"BigDecimal getClosingDebitBalance();",
"@Override\r\n\tpublic double getBalance() {\n\t\treturn (super.getBalance()+cashcredit);\r\n\t}",
"public BigDecimal getBasicAccount() {\r\n return basicAccount;\r\n }",
"public double getBalance(){\n return balance;\r\n }",
"@RequestMapping(value = \"/balance\", method = RequestMethod.GET)\r\n public List<BigDecimal> getBalances(Principal principal) {\r\n try {\r\n return accountDAO.getCurrentBalance(principal.getName());\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n return null;\r\n }",
"public String myAfterBalanceAmount() {\r\n\t\tint count=0;\r\n\t\tList<SavingAccount> acc = null;\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Before Repeat\");\r\n\t\t\tacc = getSavingAccountList();\r\n\r\n\t\t\tfor (SavingAccount savingAcc : acc) {\r\n\t\t\t\tif (!(\"0\".equals(savingAcc.getState()))) {\r\n\t\t\t\t\tif (savingAcc.getState().equals(\"active\")) {\r\n\t\t\t\t\t\tint maxRepeat = Integer.parseInt(savingAcc\r\n\t\t\t\t\t\t\t\t.getRepeatable());\r\n\r\n\t\t\t\t\t\tDate date = new Date();\r\n\t\t\t\t\t\tDate systemDate = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAccSer\r\n\t\t\t\t\t\t\t\t\t\t.convertDateToStringDDmmYYYY(date));\r\n\r\n\t\t\t\t\t\tDate dateEnd = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t.getDateEnd());\r\n\r\n\t\t\t\t\t\tif (systemDate.getTime() == dateEnd.getTime()) {\r\n\t\t\t\t\t\t\tDate newEndDate = DateUtils.addMonths(systemDate,\r\n\t\t\t\t\t\t\t\t\tsavingAcc.getInterestRateId().getMonth());\r\n\r\n\t\t\t\t\t\t\tfloat balance = savingAcc.getBalanceAmount();\r\n\t\t\t\t\t\t\tfloat interest = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getInterestRate();\r\n\r\n\t\t\t\t\t\t\tint month = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getMonth();\r\n\t\t\t\t\t\t\tint days = Days\r\n\t\t\t\t\t\t\t\t\t.daysBetween(\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateStart())),\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateEnd())))\r\n\t\t\t\t\t\t\t\t\t.getDays();\r\n\t\t\t\t\t\t\tfloat amountAll = balance\r\n\t\t\t\t\t\t\t\t\t+ (balance * ((interest / (100)) / 360) * days);\r\n\t\t\t\t\t\t\tsavingAcc.setDateStart(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(systemDate));\r\n\t\t\t\t\t\t\tsavingAcc.setDateEnd(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(newEndDate));\r\n\t\t\t\t\t\t\tsavingAcc.setBalanceAmount(amountAll);\r\n\t\t\t\t\t\t\tsavingAcc.setRepeatable(\"\" + (maxRepeat + 1));\r\n\t\t\t\t\t\t\tupdateSavingAccount(savingAcc);\r\n\t\t\t\t\t\t\tcount+=1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Successfully!! \"+ count +\" Saving Account has been updated. Minh Map!!!\");\r\n\t\t\t\r\n\t\t\treturn \"success\";\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Exception\");\r\n\r\n\t\t}\r\n\t\treturn \"Fail\";\r\n\t}",
"public long read(long accountNumber) {\n ReadMessage message = new ReadMessage(accountNumber);\n long balance = -1;\n try (var conn = openConnection()) {\n // Notify the user of a new connection\\\n var oos = new ObjectOutputStream(conn.getOutputStream());\n var ois = new ObjectInputStream(conn.getInputStream());\n oos.writeObject(message);\n balance = ois.readLong();\n } catch (Exception e) {\n System.err.println(\"Couldn't read from transaction socket!\");\n e.printStackTrace();\n }\n return balance;\n }",
"public float showBalance() {\n\t\treturn dao.showBalance();\r\n\t}",
"public RemoteCall<BigInteger> balanceOf(String account) {\n final Function function = new Function(FUNC_BALANCEOF,\n Arrays.<Type>asList(new org.web3j.abi.datatypes.Address(account)),\n Arrays.<TypeReference<?>>asList(new TypeReference<Uint256>() {}));\n return executeRemoteCallSingleValueReturn(function, BigInteger.class);\n }",
"public Map<String, Integer> getAccountBalances() throws LedgerException {\n Block lastBlock;\n\n try {\n // Retrieve most recent completed block\n lastBlock = getBlock(blockMap.size());\n } catch (LedgerException e) {\n // Catch exception that 'Block does not exist' and throw a more specific error\n throw new LedgerException(\"get account balances\", \"No blocks have been committed yet.\");\n }\n\n // Get accountBalanceMap from the last committed block\n Map<String, Account> accountMap = lastBlock.getBalanceMap();\n\n // Create new map to store values\n Map<String, Integer> accountBalancesMap = new HashMap<String, Integer>();\n\n // Iterate through accounts to retrieve their current balances.\n for (Map.Entry<String, Account> entry : accountMap.entrySet() ) {\n accountBalancesMap.put(entry.getKey(), entry.getValue().getBalance());\n }\n\n return accountBalancesMap;\n }",
"@Override\npublic Money getBalance(Enterprise enterprise, Clerk clerk)\n\t\tthrows PermissionsException {\n\treturn balance;\n}"
] | [
"0.67942774",
"0.6648842",
"0.6645808",
"0.6616513",
"0.65019035",
"0.6486013",
"0.64745486",
"0.6465948",
"0.6451139",
"0.6441955",
"0.6439486",
"0.6418381",
"0.641058",
"0.63821805",
"0.637482",
"0.6370205",
"0.6370205",
"0.63640314",
"0.63640314",
"0.6358583",
"0.6349374",
"0.63424766",
"0.63269496",
"0.6318502",
"0.63129056",
"0.63037395",
"0.63037395",
"0.63037395",
"0.63037395",
"0.63037395",
"0.62911886",
"0.6280647",
"0.6268857",
"0.62633306",
"0.62633306",
"0.6262545",
"0.62603724",
"0.6245878",
"0.6235122",
"0.62242275",
"0.62167877",
"0.62167877",
"0.62167877",
"0.62167877",
"0.621099",
"0.6200595",
"0.6194456",
"0.61885357",
"0.61870354",
"0.61851275",
"0.61504906",
"0.6147971",
"0.61400086",
"0.61278725",
"0.61278725",
"0.61182684",
"0.6092403",
"0.60491264",
"0.6023882",
"0.6019172",
"0.59931326",
"0.59717995",
"0.5969551",
"0.59577507",
"0.59467167",
"0.5938183",
"0.5937659",
"0.5929082",
"0.5915579",
"0.5874587",
"0.58745104",
"0.587113",
"0.5869601",
"0.5847146",
"0.58447665",
"0.5834628",
"0.58280003",
"0.58119076",
"0.58067966",
"0.57490796",
"0.5737028",
"0.5728528",
"0.57283556",
"0.57190686",
"0.57123244",
"0.57091016",
"0.57066643",
"0.57035357",
"0.57035357",
"0.56954575",
"0.5683971",
"0.56716734",
"0.56684077",
"0.56466615",
"0.5637768",
"0.5633583",
"0.5626252",
"0.56163967",
"0.5609257",
"0.5596402"
] | 0.62620574 | 36 |
Function that appends a numeric transaction to the account file. No checking is done whether the amount is valid. It is up to the user to determine whether the transaction (for instance, a withdrawal) is valid, and there is enough money in the account. | public void appendRecord(float num) throws IOException {
Document doc = parseFile();
Elements transactions = doc.select("table[id=transactions]");
Element last = null;
for (Element el: transactions) {
last = el;
}
Elements tbody = last.select("tbody");
for (Element el: tbody) {
last = el;
}
String text = String.format("%.2f", num);
last.appendElement("tr").appendElement("td").text(text);
String newcontents = doc.html();
if (newcontents != null) {
htmlrandom.seek(0);
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(Channels.newOutputStream(htmlrandom.getChannel())));
out.write(newcontents);
out.flush();
htmlrandom.setLength(newcontents.length());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean addTransaction(double amount) {\n if ((this.balance+amount)>=0) {\r\n this.transactions.add(amount);\r\n balance+=amount;\r\n return true;\r\n }else{\r\n System.out.println(\"Balance Insufficient\");\r\n return false;\r\n }\r\n }",
"public void addTransaction(Transaction transaction) throws TransactionFailedException,\n\tLowBalanceException,AccountDoesNotExistException {\n\t\t\n\t\tint amount = 0;\n\t\t\n\t\tAccount account = accountDAO.listByAccountId(transaction.getAccountId());\n\t\n\t\tif(account== null){\n\t\t\tthrow new AccountDoesNotExistException(\"Account with \"+ transaction.getAccountId() +\" does not exists\");\n\t\t}\n\t\tif (transaction.getType().equals(\"D\")) {\n\n\t\t\tif (account.getAmount() >= transaction.getAmount())\n\t\t\t\tamount = account.getAmount() - transaction.getAmount();\n\t\t\telse {\n\t\t\t\tthrow new LowBalanceException(\"Low Balance..!!\");\n\t\t\t}\n\n\t\t} else {\n\t\t\tamount = account.getAmount() + transaction.getAmount();\n\t\t}\n\t\taccount.setAmount(amount);\n\t\taccountDAO.update(account);\n\t\ttransactionDAO.save(transaction);\n\t}",
"public boolean AddTransactionToAccount(Double transaction)\n {\n\n if(this.transactions.add(transaction)){\n System.out.println(\"Failed to add transaction: \" + transaction);\n return false;\n }\n System.out.println(\"Successfully added Transaction: \" + transaction);\n return true;\n }",
"boolean addTransaction(int accountNumber, double transactionAmount,\n int transactionType, String transactionJournalEntry, long transactionTimestamp) {\n if (transactionType == 0 || transactionType == 2) {\n if (AccountList.getInstance(context).getAccount(accountNumber).withdraw(transactionAmount)) {\n databaseHandler.addTransaction(transactionList.size(),\n accountNumber, transactionAmount, transactionType, transactionJournalEntry, transactionTimestamp);\n transactionList.add(new Transaction(transactionList.size() + 1, accountNumber, transactionAmount, transactionType, transactionJournalEntry, transactionTimestamp));\n databaseHandler.updateAccount(accountNumber,\n -transactionAmount);\n return true;\n } else {\n return false;\n }\n } else {\n AccountList.getInstance(context).getAccount(accountNumber).deposit(transactionAmount);\n databaseHandler.addTransaction(transactionList.size(),\n accountNumber, transactionAmount, transactionType, transactionJournalEntry, transactionTimestamp);\n transactionList.add(new Transaction(transactionList.size() + 1, accountNumber, transactionAmount, transactionType, transactionJournalEntry, transactionTimestamp));\n databaseHandler.updateAccount(accountNumber, transactionAmount);\n return true;\n }\n }",
"public void addTransaction(double amount) {\n this.transactions.add(amount);\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewAmount();",
"void addNewAccountToFile(Account newAccount);",
"public boolean addAmount(String accountNumber, int amount) {\n\t\t\t\t\treturn transactiondao.addAmount(accountNumber, amount);\r\n\t\t\t\t}",
"private static void depositAmount(String format, Bank bank, String username) {\n\n\t\tObjectOutputStream oos = null;\n\t\tString outputFile = \"resource/Transactions.txt\";\n\n\t\ttry {\n\t\t\toos = new ObjectOutputStream(new FileOutputStream(outputFile));\n\t\t\tbank.transactions.add(0, format);\n\n//\t\t\tfor (String t:bank.transactions)\n\t\t\toos.writeObject(bank.transactions);\n\t\t\toos.close();\n\t\t\tSystem.out.println(\"serilization is done\");\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\tif (oos != null)\n\t\t\t\ttry {\n\t\t\t\t\toos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t}\n\n\t}",
"void addTransaction(Transaction transaction, long timestamp) throws TransactionNotInRangeException;",
"public static void withdrawMoney(ATMAccount account) throws FileNotFoundException {\r\n\r\n\t\t// File initialization\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t// #ADDED THE 2-D ARRAY\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble withdrawAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to withdraw:\");\r\n\t\t\twithdrawAmount = userInput.nextDouble();\r\n\t\t\tif (account.getBalance() < 0 || withdrawAmount > account.getBalance()) {\r\n\t\t\t\tSystem.out.println(\"Insufficient balance!\");\r\n\t\t\t} else {\r\n\t\t\t\taccount.setWithdraw(withdrawAmount);\r\n\t\t\t}\r\n\r\n\t\t} while (withdrawAmount < 0);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Withdrawing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}",
"public void transfer(double amount, checkingAccount cAccount)throws InsufficientFundsException{\n if (isFrozen == true){\n return;\n }\n if (UserAccount.isAmountValid(amount) == false){\n throw new IllegalArgumentException(\"Amount entered is not possible to be deposited\");\n }\n else if (amount > balance){\n throw new InsufficientFundsException(\"Not enough money\");\n }\n else{\n balance -= amount;\n cAccount.balance += amount;\n savingTransactions[arrayLocation] = \"Transfer from savings account into checkings account of the amount: \" + String.valueOf(amount);\n arrayLocation++;\n }\n }",
"public void enoughForTransfer(double amount) throws BankException {\n if (this.currentAmount + amount > MAX_AMOUNT) {\n logger.warning(\"The amount in the receiving bank account cannot exceed 9 digits\");\n throw new BankException(\"The amount in the receiving bank account cannot exceed 9 digits\");\n }\n }",
"public boolean deposit(String accountNumber, double amount) {\r\n\t\tif (!DaoUtility.isAccountNumberValid(accountNumber))\r\n\t\t\treturn false;\r\n\r\n\t\tConnection conn = null;\r\n\r\n\t\ttry {\r\n\t\t\tStatement st;\r\n\t\t\tResultSet rs;\r\n\t\t\tString sql;\r\n\r\n\t\t\tconn = dbConnector.getConnection();\r\n\t\t\tif (conn == null)\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t// atomic operation\r\n\t\t\tst = conn.createStatement();\r\n\r\n\t\t\t// get the aid and old balance\r\n\t\t\tint aid = 0;\r\n\t\t\tdouble oldbalance = 0;\r\n\t\t\tsql = String.format(\r\n\t\t\t\t\t\"select * from tbAccount where acnumber='%s' \",\r\n\t\t\t\t\taccountNumber);\r\n\r\n\t\t\trs = st.executeQuery(sql);\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\taid = rs.getInt(\"aid\");\r\n\t\t\t\toldbalance = rs.getDouble(\"balance\");\r\n\t\t\t\tboolean isactive = rs.getBoolean(\"isactive\");\r\n\r\n\t\t\t\t// If the account is Frozen(isactive=false), then cannot\r\n\t\t\t\t// deposit.\r\n\t\t\t\tif (!isactive) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t// ac.balance += amount.\r\n\t\t\t// update tbAccount set balance='new balance' where\r\n\t\t\t// acnumber='acnumber'\r\n\t\t\tdouble newBalance = oldbalance + amount;\r\n\t\t\tsql = String.format(\r\n\t\t\t\t\t\"update tbAccount set balance=%f where acnumber='%s' \",\r\n\t\t\t\t\tnewBalance, accountNumber);\r\n\t\t\tst.addBatch(sql);\r\n\r\n\t\t\t// insert a transaction record\r\n\t\t\t// insert into tbTransaction(aid,trtype,amount,description)\r\n\t\t\t// values( select aid from tbAccount where acnumber='acnumber',\r\n\t\t\t// DEPOSIT_TRANSACTION_TYPE_ID,\r\n\t\t\t// amount, 'deposit 123.4 dollars on 2014-09-19')\r\n\t\t\t//\r\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\tjava.util.Date date = new java.util.Date();\r\n\t\t\tString currentDate = dateFormat.format(date); // 2014-08-06\r\n\r\n\t\t\tsql = String.format(\r\n\t\t\t\t\t\"insert into tbTransaction(aid,trtype,amount,description) \"\r\n\t\t\t\t\t\t\t+ \" values( %d, \" + \"\t\t\t%d, \"\r\n\t\t\t\t\t\t\t+ \"\t\t\t%f, 'deposit %.2f dollars on %s' ) \", aid,\r\n\t\t\t\t\tDEPOSIT_TRANSACTION_TYPE_ID, amount, amount, currentDate);\r\n\r\n\t\t\tst.addBatch(sql);\r\n\r\n\t\t\t// Execute transaction\r\n\t\t\tint[] nRes = st.executeBatch();\r\n\t\t\tif (nRes[1] > 0)\r\n\t\t\t\treturn true;\r\n\t\t\telse\r\n\t\t\t\treturn false;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (conn != null)\r\n\t\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}",
"public int transfer(String fromAccNum, String toAccNum, double amount) {\n String output; \n\n Account fromAcc = bank.retrieveAccount(fromAccNum); \n Account toAcc = bank.retrieveAccount(toAccNum);\n\n if (fromAcc.getBalance() >= amount) {\n fromAcc.deduct(amount);\n toAcc.add(amount); \n \n return 0;\n }\n return -1; \n\n\n }",
"public static void agentCheckTransferValid(String accNum, int amount, String accNumB) {\n\t\ttry {\n\t\t\tif (amount >= 0 && amount <= 99999999) {\n\t\t\t\tSystem.out.println(\"Transfer successful!\");\n\t\t\t\tTransactionFileMgr.addXfrTransaction(accNum, Integer.toString(amount), accNumB);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Please enter a number between 0 - 99999999\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}",
"public static void atmCheckTransferValid(String accNum, int amount, String accNumB) {\n\t\ttry {\n\t\t\tif (amount >= 0 && amount <= 1000000) {\n\t\t\t\tif (AccMgr.checkDailyTransferLimit(accNum, amount)) {\n\t\t\t\t\tAccMgr.performDailyTransfer(amount, accNum);\n\t\t\t\t\tTransactionFileMgr.addXfrTransaction(accNum, Integer.toString(amount), accNumB);\n\t\t\t\t\tSystem.out.println(\"Transfer successful!\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"You have exceeded the daily limit\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Please enter a number between 0 - 1000000\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}",
"public TransactionRecord(int accountNumber, double amount) {\n \n this.accountNumber = accountNumber;\n this.amount = amount;\n }",
"public void addCash(double amount) {\r\n cash += amount;\r\n }",
"public void addAccount() {\n\t\t\n\t\ttry {\n\t\t\tlog.log(Level.INFO, \"Please enter name\");\n String custName = scan.next();\n validate.checkName(custName);\n \t\tlog.log(Level.INFO, \"Select Account Type: \\n 1 for Savings \\n 2 for Current \\n 3 for FD \\n 4 for DEMAT\");\n\t\t\tint bankAccType = Integer.parseInt(scan.next());\n\t\t\tvalidate.checkAccType(bankAccType);\n\t\t\tlog.log(Level.INFO, \"Please Enter your Aadar Card Number\");\n\t\t\tString aadarNumber = scan.next();\n\t\t\tlog.log(Level.INFO, \"Please Enter Phone Number: \");\n\t\t\tString custMobileNo = scan.next();\n\t\t\tvalidate.checkPhoneNum(custMobileNo);\n\t\t\tlog.log(Level.INFO, \"Please Enter Customer Email Id: \");\n\t\t\tString custEmail = scan.next();\n\t\t\tvalidate.checkEmail(custEmail);\n\t\t\tbankop.add(accountNumber, custName, bankAccType, custMobileNo, custEmail, aadarNumber);\n\t\t\taccountNumber();\n\t\t\n\t\t} catch (AccountDetailsException message) {\n\t\t\tlog.log(Level.INFO, message.getMessage()); \n }\n\n\t}",
"public static void agentCheckDepositValid(String accNum, int amount) {\n\t\ttry {\n\t\t\tif (amount >= 0 && amount <= 99999999) {\n\t\t\t\tSystem.out.println(\"Deposit successfully!\");\n\t\t\t\tTransactionFileMgr.addDepTransaction(accNum, Integer.toString(amount));\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Please enter a number between 0 - 99999999:\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}",
"public boolean withdraw(CashTransaction transaction)throws IOException {\n if (transaction.getAmount() % 5 != 0)\n {\n JOptionPane.showMessageDialog(null, \"Invalid input\");\n return false;\n }\n\n HashMap<Integer, Integer> billsRetrieved = obtainBills(transaction.getAmount()*-1);\n if (billsRetrieved == null)\n {\n checkAmount();\n return false;\n }\n if (transaction.parse())\n {\n for (int denomination: billsRetrieved.keySet())\n {\n typeOfCash.put(denomination, typeOfCash.get(denomination) - billsRetrieved.get(denomination));\n }\n checkAmount();\n return true;\n }\n return false;\n }",
"@Override\r\n\tpublic boolean transferAmnt(int toAccNo, double money)\r\n\t\t\tthrows EwalletException {\n\t\tAccount ftTemp =new Account();\r\n\t\tif(temp.getCustBal()>=money) {\r\n\t\tftTemp = dao.loginuser(toAccNo);\r\n\t\tif(ftTemp!=null)\r\n\t\t{\r\n\t\t\tftTemp.setCustBal(ftTemp.getCustBal()+money);\r\n\t\t\ttemp.setCustBal(temp.getCustBal()-money);\r\n\t\t\ttemp.settDetails(\"Date :\"+tDate+\" Amount Transfered :\"+money+\" To Acc No: \"+ftTemp.getAccNum()+\" Total Balance :\"+temp.getCustBal());\r\n\t\t\tftTemp.settDetails(\"Date :\"+tDate+\" Depsoited Amount :\"+money+\" From Acc No: \"+temp.getAccNum()+\" Total Balance :\"+ftTemp.getCustBal());\r\n\t\t\tdao.updatedetails(temp.getAccNum(), temp);\r\n\t\t\tdao.updatedetails(ftTemp.getAccNum(), ftTemp);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}\r\n\t\telse if(temp.getCustBal()<money)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Low Balance to transfer\");\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t\tSystem.out.println(\"No such user account\");\r\n\t\treturn false;\r\n\t}",
"@Override\n public void makeDeposit(BigInteger account, BigDecimal amount) {\n Account accountDeposit = accountDao.getAccountByIban(account);\n accountDeposit.setBalance(accountDeposit.getBalance().add(amount));\n accountDao.updateAccount(accountDeposit);\n\n transactionDao.storeTransaction(new Transaction(null, account, amount, TransactionType.DEPOSIT));\n }",
"public static void createTransaction() throws IOException {\n\t\t\n\t\tDate date = new Date((long) random(100000000));\n\t\tString date2 = \"'19\" + date.getYear() + \"-\" + (random(12)+1) + \"-\" + (random(28)+1) + \"'\";\n\t\tint amount = random(10000);\n\t\tint cid = random(SSNmap.size()) + 1;\n\t\tint vid = random(venders.size()) + 1;\n\t\t\n\t\twhile(ownership.get(cid) == null)\n\t\t\tcid = random(SSNmap.size()) + 1;\n\t\tString cc = ownership.get(cid).get(random(ownership.get(cid).size()));\n\t\t\n\t\twriter.write(\"INSERT INTO Transaction (Id, Date, vid, cid, CCNum, amount) Values (\" + tid++ +\", \" \n\t\t\t\t+ date2 + \", \" + vid + \", \" + cid + \", '\" + cc + \"', \" + amount + line);\n\t\twriter.flush();\n\t}",
"public void addToStatement(String account, double amount, String transactionType, String accountType) {\n\t\tList<String> myList = getStatement();\n\t\tDecimalFormat df = new DecimalFormat(\".##\");\n\t\tmyList.add(LocalDate.now() +\"\\t\"+ account +\" \\t\"+ df.format(amount) +\" \\t\"+ df.format(balance) +\" \\t\"+ transactionType +\n\t\t\t\t\" \\t\" + accountType);\n\t}",
"public boolean withdrawMoney(int accountNo, float amount) {\n Account account = getAccountByAccountNo(accountNo);\n //check if account has sufficient balance\n if (checkIfEnough(account, amount)) {\n account.setBalance(account.getBalance() - amount);\n saveOrUpdate(account);\n //save transaction to database\n Transaction transaction = new Transaction();\n transaction.setAccountNo(accountNo);\n transaction.setTime(new Timestamp(new Date().getTime()));\n transaction.setType(\"withdraw\");\n transactionRepository.save(transaction);\n return true;\n }\n return false;\n }",
"void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }",
"public void saveToFile(int type, int userAccountNumber, double amount) {\n switch (type) {\n case WITHDRAWAL: \n case DEPOSIT: \n case TRANSFER: \n save(type, userAccountNumber, amount);\n break;\n }\n\n }",
"public void addCoins(Integer amount) {\n this.amount = ((this.amount + amount) >= 0) ? this.amount+amount : 0;\n\n if (this.amount == 0) {\n setSpace(1);\n return;\n }\n\n int newSpace = (int) Math.ceil((double) this.amount / 1000);\n\n if (newSpace != getSpace())\n setSpace(newSpace);\n }",
"public void deposit(double amount) {\n balance = balance + amount + 10;\n }",
"@Transactional\n\tpublic String addTransaction(int toAccNo, int fromAccNo, Transaction tran) {\n\t\t\tEntityManager entityManager = getEntityManager();\n\t\t\tAccountdetail acc = (Accountdetail) entityManager.createQuery(\"select a from Accountdetail a where a.accountnumber =: toaccNo\").setParameter(\"toaccNo\", toAccNo ).getSingleResult();\n\t\t\tAccountdetail acc1 = (Accountdetail) entityManager.createQuery(\"select ac from Accountdetail ac where ac.accountnumber =: fromAccNo\").setParameter(\"fromAccNo\", fromAccNo ).getSingleResult();\n\t\t\t\n\t\t\t//Validation -----> The Balance amount should be greater than the Amount Transfered \n\t\t\tif(acc1.getCurrentbalance()>=tran.getAmounttransferred()) {\n\t\t\t\t\ttran.setAccountto(acc);\n\t\t\t\t\ttran.setAccountfrom(acc1);\n\t\t\t\t\tentityManager.merge(tran);\n\t\t\t\t\t\n\t\t\t\t\t//Taking the amount transfered\n\t\t\t\t\tint amt = tran.getAmounttransferred();\n\t\t\t\t\tSystem.out.println(toAccNo);\n\t\t\t\t\t\n\t\t\t\t\t//Also crediting and debiting the amount from the accounts \n\t\t\t\t\tacc.setCurrentbalance(acc.getCurrentbalance()+amt);\n\t\t\t\t\tacc1.setCurrentbalance(acc1.getCurrentbalance()-amt);\n\t\t\t\t\t\n\t\t\t\t\t//Mailing the details of the transaction to the Respective Account Numbers\n\t\t\t\t\tString info_deb = \"Amount debited from your account.\\nAmount -->\"+amt+\"\\nTo Account -->\"+acc.getAccountnumber();\n String info_rec = \"Amount credited to your account.\\nAmount -->\"+amt+\"\\nFrom Account -->\"+acc1.getAccountnumber();\n mailService.sendMail(info_deb, acc1.getCustomerdetail().getEmail());\n mailService.sendMail(info_rec, acc.getCustomerdetail().getEmail());\n \n\t\t\t\t\treturn \"Transaction Inserted\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//If Balance is less than the Amount Transfered \n\t\t\t\telse if(acc1.getCurrentbalance()<tran.getAmounttransferred()) {\n\t\t\t\t\treturn \"insufficient funds\";\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//If the Details is wrong\n\t\t\t\telse {\n\t\t\t\t\treturn \"Wrong details. Please try again\";\n\t\t\t\t}\n\t }",
"public void addMoney(T money) {\n transactions.add(new Transaction<T>('+', money));\n }",
"private void createTransaction() {\n\n String inputtedAmount = etAmount.getText().toString().trim().replaceAll(\",\", \"\");\n\n if (inputtedAmount.equals(\"\") || Double.parseDouble(inputtedAmount) == 0) {\n etAmount.setError(getResources().getString(R.string.Input_Error_Amount_Empty));\n return;\n }\n\n if (mAccount == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Account_Empty));\n return;\n }\n\n if(mCategory == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Category_Income_Empty));\n return;\n }\n\n Double amount = Double.parseDouble(etAmount.getText().toString().replaceAll(\",\", \"\"));\n if(amount < 0) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Amount_Invalid));\n return;\n }\n\n int CategoryId = mCategory != null ? mCategory.getId() : 0;\n String Description = tvDescription.getText().toString();\n int accountId = mAccount.getId();\n String strEvent = tvEvent.getText().toString();\n Event event = null;\n\n if (!strEvent.equals(\"\")) {\n event = mDbHelper.getEventByName(strEvent);\n if (event == null) {\n long eventId = mDbHelper.createEvent(new Event(0, strEvent, mCal, null));\n if (eventId != -1) {\n event = mDbHelper.getEvent(eventId);\n }\n }\n }\n\n boolean isDebtValid = true;\n // Less: DebtCollect, More: Borrow\n if(mCategory.getDebtType() == Category.EnumDebt.LESS) { // Income -> Debt Collecting\n List<Debt> debts = mDbHelper.getAllDebtByPeople(tvPeople.getText().toString());\n\n Double lend = 0.0, debtCollect = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) {\n lend += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) {\n debtCollect += debt.getAmount();\n }\n }\n\n if(debtCollect + amount > lend) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_collect_invalid));\n }\n }\n\n if(isDebtValid) {\n Transaction transaction = new Transaction(0,\n TransactionEnum.Income.getValue(),\n amount,\n CategoryId,\n Description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n long newTransactionId = mDbHelper.createTransaction(transaction);\n\n if (newTransactionId != -1) {\n\n if(mCategory.getDebtType() == Category.EnumDebt.LESS || mCategory.getDebtType() == Category.EnumDebt.MORE) {\n Debt newDebt = new Debt();\n newDebt.setCategoryId(mCategory.getId());\n newDebt.setTransactionId((int) newTransactionId);\n newDebt.setAmount(amount);\n newDebt.setPeople(tvPeople.getText().toString());\n\n long debtId = mDbHelper.createDebt(newDebt);\n if(debtId != -1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n\n if(getFragmentManager().getBackStackEntryCount() > 0) {\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n } else {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_transaction_create_fail));\n mDbHelper.deleteTransaction(newTransactionId);\n }\n } else {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n\n if(getFragmentManager().getBackStackEntryCount() > 0) {\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n }\n\n } else {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_transaction_create_fail));\n }\n }\n\n }",
"public void credit(double amount) {\n this.balance += amount;\n }",
"public void withdraw(double amount){\n accTransactions.add(new Transaction('W', amount, balance, \"withdraw\"));\n balance -= amount;\n }",
"public void addTransaction(String transactionNum) {\n\t\tthis.transactions.add(transactionNum);\n\t}",
"Boolean checkAccountHasSufficientBalance(PrintWriter out, Account from, Double amount);",
"@Override\n\tpublic int withdraw(double amount) throws RaiseException {\n\t\tValidator.validateWithdraw(this.getBalance(), amount);\n\t\tif(amount <= this.getBalance()) {\n\t\t\tthis.setBalance(this.getBalance() - amount);\n\t\t\t\n\t\t\t//create a transaction and adding it to the list of transactions of this account \n\t\t\tTransaction tmpTransaction = new Transaction(amount, EnumTypeTransaction.withdraw);\n\t\t\tthis.addTransaction(tmpTransaction);\n\t\t\t\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}",
"public void addMoney(int amount) {\n\t\tcurrentBalance += amount;\n\t}",
"public void PushTransaction(Transaction new_transaction){\n try{\n \n FileWriter fileWriter = new FileWriter(\"C:\\\\Users\\\\cmpun\\\\Desktop\\\\SoftwareEngineeringProject\\\\src\\\\softwareengineeringproject\\\\TransactionLog.txt\", true);\n\n fileWriter.write(new_transaction.Date + \",\" + new_transaction.processed_items + \",\" + new_transaction.Total + \"\\n\");\n \n fileWriter.close();\n\n }catch(Exception E){\n \n System.out.println(\"Unable to enter transaction into Log...\");\n \n }\n \n }",
"public void transferMoney(int customerAccountId, int accountId) throws SQLException {\n // check if the customer has this account\n boolean customerOwnsAccount = false;\n for (int i = 0; i < this.currentCustomer.getAccounts().size(); i++) {\n if (customerAccountId == this.currentCustomer.getAccounts().get(i).getId()) {\n customerOwnsAccount = true;\n break;\n }\n }\n // it is safe to proceed since the customer accounts have been authenticated\n if (customerOwnsAccount) {\n Account customerAccount = DatabaseSelectHelper.getAccountDetails(customerAccountId);\n // try and catch for valid input (int) expected\n try {\n System.out.println(\"Enter amount you wish to transfer:\");\n // take user input as a big decimal\n BigDecimal bigAmount = new BigDecimal(br.readLine());\n if (bigAmount.compareTo(customerAccount.getBalance()) <= 0) {\n // try to update accounts\n try {\n // update the account which received money in database\n DatabaseUpdateHelper.updateAccountBalance(\n bigAmount.add(DatabaseSelectHelper.getBalance(accountId)), accountId);\n // update account which transfered money in database\n DatabaseUpdateHelper.updateAccountBalance(\n customerAccount.getBalance().subtract(bigAmount), customerAccountId);\n // update the customer object for printing reasons for other options\n this.currentCustomer.updateAccounts();\n // Explicitly tell user money is transfered\n System.out.println(\"you have successfully transfered money to account \" + accountId);\n \n } catch (Exception e) {\n System.out.println(\"The account ID you wish to transfer money to does not exist\");\n }\n // error printing\n } else {\n System.out.println(\"This account does not have enough money to send this amount\");\n }\n \n } catch (Exception e) {\n System.out.println(\"Invalid amount\");\n }\n // error printing\n } else {\n System.out.println(\"You do not have access to this account\");\n }\n \n }",
"public void withdrawCashFromSavings(long socialSecurityNumber, String userName, String password, double amount) throws AuthenticationException,UnauthorizedActionException,InsufficientAssetsException{\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n if(getPatron(socialSecurityNumber).getSavingsAccount() == null){\r\n throw new UnauthorizedActionException();\r\n }\r\n try{\r\n Transaction withdraw = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.WITHDRAW, getPatron(socialSecurityNumber).getSavingsAccount(), amount);\r\n withdraw.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(withdraw);\r\n } catch (InsufficientAssetsException e){\r\n throw new InsufficientAssetsException();\r\n }\r\n }",
"UserAccount createUserAccount(User user, double amount);",
"public void addAmount(int amount) {\n if (value() + amount > maxValue)\n throw new RuntimeException(\"Operation exceeds max amount: \" + (value() + amount) + \" > \" + maxValue);\n else\n val.addAmount(amount);\n }",
"void addBalance(double amount) {\n\t\tbalance += amount;\n\t}",
"Transfer updateTransactionNumber(Long id, String transactionNumber);",
"public boolean depositMoney(int accountNo, float amount) {\n Account account = getAccountByAccountNo(accountNo);\n account.setBalance(account.getBalance() + amount);\n saveOrUpdate(account);\n // save transaction to database\n Transaction transaction = new Transaction();\n transaction.setAccountNo(accountNo);\n transaction.setTime(new Timestamp(new Date().getTime()));\n transaction.setType(\"deposit\");\n transactionRepository.save(transaction);\n return true;\n }",
"@Test\n public void savings_account2() {\n Bank bank = new Bank();\n Customer bill = new Customer(\"Bill\");\n Account savingsAccount = new SavingsAccount(bill, Account.SAVINGS);\n bank.addCustomer(new Customer(\"Bill\").openAccount(savingsAccount));\n Transaction t = new CreditTransaction(500.0);\n t.setTransactionDate(getTestDate(-15));\n savingsAccount.addTransaction(t);\n\n assertEquals(Math.pow(1 + 0.001 / 365, 15) * 500.0 - 500, bank.totalInterestPaid(), DOUBLE_DELTA);\n }",
"void addToAmount(double amount) {\n this.currentAmount += amount;\n }",
"public void addPurchaseAmount(double amount)\n\t{\n\t\tcustomerPurchase += amount;\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewCapitalPayed();",
"public void addMoney(int amount) {\n\t\tmoney += amount;\n\t}",
"public void recordPurchase(double amount)\n {\n balance = balance - amount;\n // your code here\n \n }",
"public void transferMoney(float amount, String transferToNumber) {}",
"public void addAccount(String accountNumber, String owner, BigDecimal startBalance) throws SQLException {\r\n\r\n\t\ttry (Connection connection = dbAdministration.getConnection();\r\n\t\t\t\tPreparedStatement preparedStatement = connection\r\n\t\t\t\t\t\t.prepareStatement(\"INSERT INTO account VALUES (?,?,?)\")) {\r\n\t\t\tint id = dbAdministration.getEntryCount(\"account\") + 1;\r\n\t\t\tpreparedStatement.setInt(1, id);\r\n\t\t\tpreparedStatement.setString(2, owner);\r\n\t\t\tpreparedStatement.setString(3, accountNumber);\r\n\t\t\t// Datensatz in die Datenbanktabelle schreiben\r\n\t\t\tpreparedStatement.execute();\r\n\t\t\tlogger.info(\"SQL-Statement ausgeführt: \" + \"INSERT INTO account VALUES (\" + id + \", \" + owner + \", \"\r\n\t\t\t\t\t+ accountNumber + \")\");\r\n\t\t\tlogger.info(\"Neues Konto angelegt. Besitzer: \" + owner + \", Kontonr.: \" + accountNumber + \", Startkapital: \"\r\n\t\t\t\t\t+ startBalance);\r\n\t\t\tif (startBalance.compareTo(BigDecimal.ZERO) == 1) {\r\n\t\t\t\t// Wenn das angeforderte Startguthaben > 0 ist, wird es dem\r\n\t\t\t\t// Konto überwiesen\r\n\t\t\t\tdaTransaction.addTransaction(\"0000\", accountNumber, startBalance, \"STARTGUTHABEN\");\r\n\t\t\t}\r\n\t\t\t// Die reservierte Nummer gehört jetzt zu einem Konto, daher\r\n\t\t\t// kann die Reservierung aufgehoben werden\r\n\t\t\treservedNumbers.remove(accountNumber);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(e);\r\n\t\t}\r\n\t}",
"private void updateTransaction() {\n LogUtils.logEnterFunction(Tag);\n\n String inputtedAmount = etAmount.getText().toString().trim().replaceAll(\",\", \"\");\n if (inputtedAmount.equals(\"\") || Double.parseDouble(inputtedAmount) == 0) {\n etAmount.setError(getResources().getString(R.string.Input_Error_Amount_Empty));\n return;\n }\n\n if (mAccount == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Account_Empty));\n return;\n }\n\n Double amount = Double.parseDouble(inputtedAmount);\n int categoryId = mCategory != null ? mCategory.getId() : 0;\n String description = tvDescription.getText().toString();\n int accountId = mAccount.getId();\n String strEvent = tvEvent.getText().toString();\n Event event = null;\n\n if (!strEvent.equals(\"\")) {\n event = mDbHelper.getEventByName(strEvent);\n if (event == null) {\n long eventId = mDbHelper.createEvent(new Event(0, strEvent, mCal, null));\n if (eventId != -1) {\n event = mDbHelper.getEvent(eventId);\n }\n }\n }\n\n // Less: Repayment, More: Lend\n if(mCategory.getDebtType() == Category.EnumDebt.LESS || mCategory.getDebtType() == Category.EnumDebt.MORE) {\n\n boolean isDebtValid = true;\n if(mCategory.getDebtType() == Category.EnumDebt.LESS) { // Income -> Debt Collecting\n List<Debt> debts = mDbHelper.getAllDebtByPeople(tvPeople.getText().toString());\n\n Double lend = 0.0, debtCollect = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) {\n lend += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) {\n debtCollect += debt.getAmount();\n }\n }\n\n if(debtCollect + amount > lend) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_collect_invalid));\n }\n\n } // End DebtType() == Category.EnumDebt.LESS\n if(isDebtValid) {\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n Debt debt = mDbHelper.getDebtByTransactionId(mTransaction.getId());\n debt.setCategoryId(mCategory.getId());\n debt.setAmount(amount);\n debt.setPeople(tvPeople.getText().toString());\n\n int debtRow = mDbHelper.updateDebt(debt);\n if(debtRow == 1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } else {\n Debt newDebt = new Debt();\n newDebt.setCategoryId(mCategory.getId());\n newDebt.setTransactionId((int) mTransaction.getId());\n newDebt.setAmount(amount);\n newDebt.setPeople(tvPeople.getText().toString());\n\n long debtId = mDbHelper.createDebt(newDebt);\n if(debtId != -1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } // End create new Debt\n\n } // End Update transaction OK\n } // End isDebtValid\n\n } else { // CATEGORY NORMAL\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n mDbHelper.deleteDebt(mDbHelper.getDebtByTransactionId(mTransaction.getId()).getId());\n }\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n }\n\n LogUtils.logLeaveFunction(Tag);\n }",
"private void validateTransaction(Transaction transaction) throws LedgerException {\n // Convenience variable for throwing exceptions\n String action = \"process transaction\";\n\n // Get Accounts related to the transaction\n Account payer = transaction.getPayer();\n Account receiver = transaction.getReceiver();\n Account master = this.currentBlock.getAccount(\"master\");\n\n // Check accounts are linked to valid/exisiting accounts\n if ( payer == null || receiver == null || master == null ) {\n throw new LedgerException(action, \"Transaction is not linked to valid account(s).\");\n }\n\n // Check for transaction id uniqueness\n validateTransactionId(transaction.getTransactionId());\n\n // Get total transaction withdrawal\n int amount = transaction.getAmount();\n int fee = transaction.getFee();\n int withdrawal = amount + fee;\n\n /*\n * Check the transaction is valid.\n *\n * Withdrawal, and receiver's ending balance must be _greater than_ the\n * MIN_ACCOUNT_BALANCE and _less than_ the MAX_ACCOUNT_BALANCE. The number\n * must be checked against both ends of the range in cases where an amount\n * would exceed MAX_ACCOUNT_BALANCE (i.e. Integer.MAX_VALUE), which will\n * wrap around to a value < 0.\n */\n if (withdrawal < MIN_ACCOUNT_BALANCE || withdrawal > MAX_ACCOUNT_BALANCE) {\n throw new LedgerException(action, \"Withdrawal exceeds total available currency.\");\n } else if ( payer.getBalance() < withdrawal ) {\n throw new LedgerException(action, \"Payer has an insufficient balance.\");\n } else if ( fee < MIN_FEE ) {\n throw new LedgerException(action, \"The transaction does not meet the minimum fee requried.\");\n } else if ( (amount + receiver.getBalance()) < MIN_ACCOUNT_BALANCE || (amount + receiver.getBalance()) > MAX_ACCOUNT_BALANCE) {\n throw new LedgerException(action, \"Receiver's balance would exceed maximum allowed.\");\n }\n\n // Valid transaction, Transfer funds\n payer.withdraw(withdrawal);\n receiver.deposit(amount);\n master.deposit(fee);\n }",
"@Override\n public Account withdraw(int accountNo, int amount) throws AccountNotFoundException, InsufficientBalanceException {\n Account account = getAccount(accountNo);\n if (account == null) {\n return null;\n }\n if ((account.getBalance() + 1000) < amount) {\n throw new InsufficientBalanceException(\"Can't withdraw \" + amount + \" when balance is \" + account.getBalance());\n }\n account.setBalance(account.getBalance() - amount);\n\n Transaction transaction = new Transaction();\n transaction.setAccountNo(accountNo);\n transaction.setDate(\"DD/MM/YYYY\");\n transaction.setAction(\"Withdraw\");\n transaction.setAmount(amount);\n notifyObserver(transaction);\n\n return account;\n }",
"public static void atmCheckDepositValid(String accNum, int amount) {\n\t\ttry {\n\t\t\tif (amount >= 0 && amount <= 200000) {\n\t\t\t\tif (AccMgr.checkDailyDepositLimit(accNum, amount)) {\n\t\t\t\t\tAccMgr.performDailyDeposit(amount, accNum);\n\t\t\t\t\tTransactionFileMgr.addDepTransaction(accNum, Integer.toString(amount));\n\t\t\t\t\tSystem.out.println(\"Deposit successfully!\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"You have exceeded the daily limit.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Please enter a number between 0 - 200000:\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}",
"public void withDrawAmount() {\n\t\t\n\t\ttry {\t\n\t\t\tlog.log(Level.INFO, \"Please Enter the account number you want to withdraw: \");\n\t\t\tint withdrawAccountNumber = scan.nextInt();\n\t\t\tlong amount;\n\t\t\tlog.log(Level.INFO, \"Please Enter the amount you want to withdraw : \");\n\t\t\tamount = scan.nextLong();\n\t\t\tbankop.withDraw(withdrawAccountNumber,amount);\n\t\t\t\n\t\t}catch(AccountDetailsException | BalanceException message ) {\n\t\t\tlog.log(Level.INFO, message.getMessage());\n\t\t}\n\n\t}",
"@Override\n\tpublic void addTransactionToDatabase(Transaction trans) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString insertQuery = \"insert into transaction_history values(default, ?, ?, ?, now())\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(insertQuery);\n \n\t\t\tprepStmt.setInt(1, trans.getAccountId());\n\t\t\tprepStmt.setString(2, trans.getUsername());\n\t\t\tprepStmt.setDouble(3, trans.getAmount());\n\t\t\tprepStmt.executeUpdate();\n\t}",
"private Account creditAmount(String accountNumber, BigDecimal amt) throws TransferServiceException\n\t{\n\t\tAccount account = repository.findByAccountNumber(accountNumber);\n\t\tisAccountValid(account);\n\t\taccount.setBalance(getBalance(accountNumber).add(amt));\n\t\treturn account;\n\t}",
"void deposit(float amount) {\n\n float newBalance;\n if (this.transactionHistory.isEmpty()) {\n newBalance = amount;\n } else {\n newBalance = this.transactionHistory.getLastTransaction().getBalanceAfter() + amount;\n }\n Transaction transaction = new Transaction(amount, true, newBalance);\n transactionHistory.addTransaction(transaction);\n }",
"public void deposit(double amount){\n if (isFrozen == true){\n return;\n }\n if (UserAccount.isAmountValid(amount) == false){\n throw new IllegalArgumentException(\"Amount entered is not possible to be deposited\");\n }\n else{\n balance += amount;\n savingTransactions[arrayLocation]= \"Deposit into savings account of the amount: \" + String.valueOf(amount);\n arrayLocation++;\n }\n }",
"public void write(String transactionNum) throws IOException {\n\t\t// write all of the instance variables\n\t\tthis.write();\n\n\t\t// create a filewriter that appends to the customer file (rather than\n\t\t// over writes it)\n\t\tFileWriter wr = new FileWriter(this.customer, true);\n\t\t// write the transaction number to the customer file\n\t\twr.write(\"\\n\" + transactionNum);\n\t\t// close the writer (finished writing)\n\t\twr.close();\n\t}",
"public void addToBalance(double depositBalanceAmount) \n\t{\n\t\taccountBalance += depositBalanceAmount;\n\t}",
"@Override\n\tpublic int deposit(double amount) throws RaiseException {\n\t\tValidator.validateDeposit(amount);\n\t\tif(amount < 0) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\tthis.setBalance(this.getBalance() + amount);\n\t\t\t\n\t\t\t//create a transaction and adding it to the list of transactions of this account \n\t\t\tTransaction tmpTransaction = new Transaction(amount, EnumTypeTransaction.deposit);\n\t\t\tthis.addTransaction(tmpTransaction);\n\t\t\t\n\t\t\treturn 1;\n\t\t}\n\t}",
"private void makeTransfer(String withdrawAmt, String depositAcct){\n //assume this will come as numbers only (Keyboard restricted to numbers)\n Double transferAmt = Double.valueOf(withdrawAmt);\n\n //make transfer\n customer.transferFund(currAcctName, depositAcct, transferAmt);\n\n //reset transfer value\n ((EditText)findViewById(R.id.transferAmt)).setText(\"\");\n\n //update balance\n ((TextView) findViewById(R.id.fromAmt)).setText(customer.getBalanceString(currAcctName));\n }",
"public void addTransaction(EtmPoint transaction) {\n double miliseconds = transaction.getTransactionTime();\n\n measurements++;\n total += miliseconds;\n max = max > miliseconds ? max : miliseconds;\n min = min > miliseconds || min == 0 ? miliseconds : min;\n }",
"@Override\n public boolean depositAmount(TransactionDTO transaction) {\n if(transaction.getAmount()>0){\n CustomerDetails customerDetails=this.viewAccount(transaction.getUserName()); \n customerDetails.setAccountBalance(customerDetails.getAccountBalance()+transaction.getAmount());\n customerRepository.save(customerDetails);\n return true;\n }else{\n return false;\n }\n }",
"void depositByCash(double amount) {\n\t\tif (isSuspended()) {\n\t\t\tSystem.out.println(\"Account is suspended.\");\n\t\t\tSystem.out.println(\"Depositing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tif (amount <= 0) {\n\t\t\tSystem.out.println(\"Amount must be more than 0.\");\n\t\t\tSystem.out.println(\"Depositing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tbalance += amount;\n\t\tSystem.out.println(\"Deposit \" + amount + \" successfully\");\n\t}",
"public void deposit(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql = \"select balance,userId from \"+this.name+\" where accountNumber=?\";\n\t\tps= (PreparedStatement) conn.prepareStatement(sql);\n\t\tps.setString(1, accountNumber.toString());\n\t\tResultSet rs = ps.executeQuery();\n\t\tint nowBalance = 0;\n\t\tString id = \"\";\n\t\twhile(rs.next()) { \n\t\t\tnowBalance=rs.getInt(\"balance\");\n\t\t\tid = rs.getString(\"userId\");\n\t\t}\n\t\tlastBalance = nowBalance + amount;\n\t\t//System.out.println(lastBalance);\n\t\t\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tpp.setInt(1, lastBalance);\n\t\tpp.setString(2, accountNumber.toString());\n\t\tpp.executeUpdate();\n\t\t\n\t\tString logs = \"deposit : \"+ amount+\" / balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tll = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tll.setString(1, logs);\n\t\tll.executeUpdate();\n\t\t\n\t\t}catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t}",
"public double depositInto(double amount)\r\n {\r\n _balance += amount;\r\n\r\n return _balance;\r\n }",
"public void deposit(double amount)\n {\n balance = balance + amount;\n }",
"public void withdraw (double amount)\n {\n super.withdraw (amount);\n imposeTransactionFee ();\n }",
"public void transferFromBrokerageToSavings(long socialSecurityNumber, String userName, String password, double amount) throws AuthenticationException,UnauthorizedActionException, InsufficientAssetsException{\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n if(getPatron(socialSecurityNumber).getSavingsAccount() == null || getPatron(socialSecurityNumber).getBrokerageAccount() == null){\r\n throw new UnauthorizedActionException();\r\n }\r\n try{\r\n Transaction withdraw = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.WITHDRAW, getPatron(socialSecurityNumber).getBrokerageAccount(), amount);\r\n withdraw.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(withdraw);\r\n Transaction deposit = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.DEPOSIT, getPatron(socialSecurityNumber).getSavingsAccount(), amount);\r\n deposit.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(deposit);\r\n } catch (InsufficientAssetsException e){\r\n throw new InsufficientAssetsException();\r\n }\r\n }",
"@Override\n public boolean withdrawAmount(TransactionDTO transaction) {\n CustomerDetails customerDetails=this.viewAccount(transaction.getUserName()); \n if(customerDetails.getAccountBalance()>=transaction.getAmount()){\n customerDetails.setAccountBalance(customerDetails.getAccountBalance()-transaction.getAmount());\n customerRepository.save(customerDetails);\n return true;\n }\n else{\n return false;\n }\n }",
"public void addAccount(Account acct){\n int i = numberOfAccounts++; // Each time we addAccount..\n accounts[i] = acct; //..we store it to the account array.\n \n }",
"private synchronized int getNewTransactionId() throws IOException {\n File file = new File(TA_ID_FILE_NAME);\n int transactionId = 0;\n\n if (file.exists()) {\n FileReader freader = new FileReader(file);\n BufferedReader breader = new BufferedReader(freader);\n\n String stringtaid = breader.readLine();\n transactionId = Integer.parseInt(stringtaid);\n\n breader.close();\n } else {\n file.createNewFile();\n }\n\n FileWriter writer = new FileWriter(TA_ID_FILE_NAME);\n writer.write(Integer.toString(transactionId + 1));\n writer.close();\n\n return transactionId;\n }",
"protected void deposit(double amount)\n\t{\n\t\tacc_balance+=amount;\n\t}",
"public void deposit(double amount) {\n this.balance += amount;\n }",
"public void withdraw(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql = \"select balance,userId from \"+this.name+\" where accountNumber=?\";\n\t\tps= (PreparedStatement) conn.prepareStatement(sql);\n\t\tps.setString(1, accountNumber.toString());\n\t\tResultSet rs = ps.executeQuery();\n\t\tint nowBalance = 0;\n\t\tString id = \"\";\n\t\twhile(rs.next()) { \n\t\t\tnowBalance=rs.getInt(\"balance\");\n\t\t\tid = rs.getString(\"userId\");\n\t\t}\n\t\tif (nowBalance<amount) {\n\t\t\tSystem.out.println(\"No Balance\");\n\t\t\treturn;\n\t\t}\n\t\tlastBalance = nowBalance - amount;\n\t\t//System.out.println(lastBalance);\n\t\t\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tpp.setInt(1, lastBalance);\n\t\tpp.setString(2, accountNumber.toString());\n\t\tpp.executeUpdate();\n\t\t\n\t\tString logs = \"withdraw : \"+ amount+\" / balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tll = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tll.setString(1, logs);\n\t\tll.executeUpdate();\n\t\tSystem.out.println(\"Ypu got $\"+String.valueOf(amount));\n\t\t\n\t\t}catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t\t\n\t}",
"private static void generateMoneyTransfer(int branchID) {\n long accountNo1 = getRandAccountFromBranch(branchID), accountNo2 = getRandAccount();\n int amount = getRandomAmount();\n writeToFile(String.format(\"%d %d %d\\n\", accountNo1, accountNo2, amount));\n }",
"@Override\n\tpublic void transferAccount(Bank recievingBank, String recievingUser,\n\t\t\tBank payingBank, String payingUser, double amount) {\n\t\ttry {\n\t\t\tif (getAccount(payingBank, payingUser).getBalance() >= amount) {\n\t\t\tgetAccount(payingBank, payingUser).withdrawal(amount);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Not enough funds\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t}catch(NullPointerException e){\n\t\t\t\tSystem.out.println(\"User not found\");\n\t\t\t}\n\t\t\n\t\ttry {\n\t\tgetAccount(recievingBank, recievingUser).deposit(amount);\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tSystem.out.println(\"User not found\");\n\t\t\tgetAccount(payingBank, payingUser).deposit(amount);\n\t\t}\n\t}",
"public void deposit(String accountType, double amount) {\r\n\t\tif(accountType.equals(\"savings\")) {\r\n\t\t\tthis.savingsBalance += amount;\r\n\t\t\ttotalAmount += amount;\r\n\t\t}\r\n\t\telse if(accountType.equals(\"checking\")) {\r\n\t\t\tthis.checkingBalance += amount;\r\n\t\t\ttotalAmount += amount;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Deposit failed\");\r\n\t\t}\r\n\t}",
"abstract void addDepositTransaction(Transaction deposit, Ui ui, String bankType) throws BankException;",
"public void deposit(long amount) {\n\t\n\tbalance += amount;\n\t\n\tlog += \"Deposit made to this account in the ammount of \"+amount+\" on \"+date+\"\\n\";\n\tlog += log += \" Current balance is \"+balance+\" \\n\";\n\tupdate();\n}",
"Long addAmount(Integer id, Long value) throws Exception;",
"public void add(int amount) {\n this.amount += amount;\n if (this.amount == 0) {\n this.timestamp -= LIFESPAN;\n } else {\n this.timestamp = System.currentTimeMillis();\n }\n }",
"public long deposit(long amount) {\n balance += amount;\n return balance;\n }",
"public void depositCashIntoSavings(long socialSecurityNumber, String userName, String password, double amount) throws AuthenticationException{\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n try {\r\n Transaction deposit = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.DEPOSIT, getPatron(socialSecurityNumber).getSavingsAccount(), amount);\r\n deposit.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(deposit);\r\n } catch (AuthenticationException | UnauthorizedActionException | InsufficientAssetsException e){\r\n throw new AuthenticationException();\r\n }\r\n }",
"public void deposit (double amount) \r\n {\r\n\r\n balance += amount;\r\n System.out.println (\"Deposit into account shs: \" + account);\r\n System.out.println (\"Standing Amount: \" + amount);\r\n System.out.println (\"Current balance: \" + balance);\r\n System.out.println ();\r\n\r\n }",
"public ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewAmount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount target = null;\n target = (ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount)get_store().add_element_user(AMOUNT$6);\n return target;\n }\n }",
"public void depositAmount() {\n\t\n\t\ttry {\n\t\t\tlog.log(Level.INFO, \"Please Enter the account number you want to deposit: \");\n\t\t\tint depositAccountNumber = scan.nextInt();\n\t\t\tlong amount;\n\t\t\tlog.log(Level.INFO, \"Please Enter the amount you want to Deposit : \");\n\t\t\tamount = scan.nextLong();\n\t\t\tbankop.deposit(depositAccountNumber,amount);\n\t\t\t\n\t\t}catch(AccountDetailsException | BalanceException message ) {\n\t\t\tlog.log(Level.INFO, message.getMessage());\n\t\t}\n\t\t\n\t}",
"private static synchronized void writeTransaction( StmTransaction transaction ) {\n\n // Check for conflicts.\n for ( AbstractVersionedItem versionedItem : transaction.versionedItemsRead ) {\n versionedItem.ensureNotWrittenByOtherTransaction();\n }\n\n // Set the revision number to a committed value.\n transaction.targetRevisionNumber.set( lastCommittedRevisionNumber.incrementAndGet() );\n\n }",
"public boolean makeTransfer(String fromAccountNumber,\r\n\t\t\tString toAccountNumber, double amount, String memo) {\r\n\t\tif (DaoUtility.isAccountNumberValid(fromAccountNumber)\r\n\t\t\t\t&& DaoUtility.isAccountNumberValid(toAccountNumber)) {\r\n\t\t} else\r\n\t\t\treturn false;\r\n\r\n\t\t// do transaction\r\n\t\tConnection conn = dbConnector.getConnection();\r\n\t\tif (conn==null)\r\n\t\t\treturn false;\r\n\t\t\r\n\t\tPreparedStatement st;\r\n\t\tString sql;\r\n\t\tResultSet rs;\r\n\r\n\t\ttry {\r\n\t\t\tconn.setAutoCommit(false);\r\n\t\t\tSavepoint savepnt = conn.setSavepoint();\r\n\r\n\t\t\ttry {\r\n\t\t\t\tint fromAccountId=0;\r\n\t\t\t\tint toAccountId=0;\r\n\t\t\t\tString fromName=\"SECRET USER\";\r\n\t\t\t\tString toName=\"SECRET USER\";\r\n\t\t\t\tString fname,mname,lname;\r\n\t\t\t\t\r\n\t\t\t\tst = conn.prepareStatement(\"select tbAccount.aid,balance,isactive,\"\r\n\t\t\t\t\t\t+ \"fname,mname,lname from tbAccount, tbClient \"\r\n\t\t\t\t\t\t+ \" where acnumber= ? and tbAccount.cid=tbClient.cid\");\r\n\t\t\t\tst.setString(1, fromAccountNumber);\r\n\t\t\t\trs = st.executeQuery();\r\n\t\t\t\tif (rs.next()){\r\n\t\t\t\t\tfromAccountId = rs.getInt(\"aid\");\r\n\t\t\t\t\tdouble balance = rs.getDouble(\"balance\");\r\n\t\t\t\t\tboolean isactive = rs.getBoolean(\"isactive\");\r\n\t\t\t\t\tfname = rs.getString(\"fname\");\r\n\t\t\t\t\tmname = rs.getString(\"mname\");\r\n\t\t\t\t\tlname = rs.getString(\"lname\");\r\n\t\t\t\t\tfromName = fname + \" \" + (mname==null?\"\":mname) + \" \" +lname;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (balance<amount || !isactive) { //not enough money or frozen\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tst = conn.prepareStatement(\"select aid,isactive,\"\r\n\t\t\t\t\t\t+ \" fname,mname,lname from tbAccount,tbClient \"\r\n\t\t\t\t\t\t+ \" where acnumber= ? and tbAccount.cid=tbClient.cid\");\r\n\t\t\t\tst.setString(1, toAccountNumber);\r\n\t\t\t\trs = st.executeQuery();\r\n\t\t\t\tif (rs.next()){\r\n\t\t\t\t\ttoAccountId = rs.getInt(\"aid\");\r\n\t\t\t\t\tboolean isactive = rs.getBoolean(\"isactive\");\r\n\t\t\t\t\tfname = rs.getString(\"fname\");\r\n\t\t\t\t\tmname = rs.getString(\"mname\");\r\n\t\t\t\t\tlname = rs.getString(\"lname\");\r\n\t\t\t\t\ttoName = fname + \" \" + (mname==null?\"\":mname) + \" \" +lname;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!isactive) { //frozen\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// substract balance of fromAccount\r\n\t\t\t\tst = conn.prepareStatement(\r\n\t\t\t\t\t\t\"update tbAccount set balance = balance - ? \"\r\n\t\t\t\t\t\t\t\t+ \" where balance >= ? \"\r\n\t\t\t\t\t\t\t\t+ \" and acnumber = ? \"\r\n\t\t\t\t\t\t\t\t+ \" and isactive=TRUE \");\r\n\t\t\t\tst.setDouble(1, amount);\r\n\t\t\t\tst.setDouble(2, amount);\r\n\t\t\t\tst.setString(3, fromAccountNumber);\r\n\t\t\t\tint nRs = st.executeUpdate();\r\n\t\t\t\tif (nRs <= 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tconn.rollback(savepnt);\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// add balance of toAccount\r\n\t\t\t\tst = conn.prepareStatement(\r\n\t\t\t\t\t\t\"update tbAccount set balance = balance + ? \"\r\n\t\t\t\t\t\t\t\t+ \" where acnumber = ? \"\r\n\t\t\t\t\t\t\t\t+ \" and isactive=TRUE \");\r\n\t\t\t\tst.setDouble(1, amount);\r\n\t\t\t\tst.setString(2, toAccountNumber);\r\n\t\t\t\tnRs = st.executeUpdate();\r\n\t\t\t\tif (nRs <= 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tconn.rollback(savepnt);\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// insert 2 transaction record\r\n\t\t\t\t// insert into tbTransaction(aid, trtype, amount, description)\r\n\t\t\t\t// values( select aid from tbAccount where acnumber='acnumber',\r\n\t\t\t\t// DEPOSIT_TRANSACTION_TYPE_ID,\r\n\t\t\t\t// amount, 'transfer 123.4 dollars to 3333343 on 2014-09-19')\r\n\t\t\t\t//\r\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\t\tjava.util.Date date = new java.util.Date();\r\n\t\t\t\tString currentDate = dateFormat.format(date); // 2014-08-06\r\n\r\n\t\t\t\tsql = String.format(\r\n\t\t\t\t\t\t\"insert into tbTransaction(aid,trtype,amount,description) \"\r\n\t\t\t\t\t\t\t\t+ \" values( %d, \" + \"\t\t\t%d, \"\r\n\t\t\t\t\t\t\t\t+ \"\t\t\t%f, 'Transfer out %.2f dollars to %s(%s) on %s. MEMO: %s' ) \", \r\n\t\t\t\t\t\t\t\tfromAccountId,\r\n\t\t\t\t\tTRANSFER_OUT_TRANSACTION_TYPE_ID, amount, amount,\r\n\t\t\t\t\ttoAccountNumber, toName, currentDate,memo);\r\n\t\t\t\tnRs = st.executeUpdate(sql);\r\n\t\t\t\tif (nRs<=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tconn.rollback(savepnt);\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsql = String.format(\r\n\t\t\t\t\t\t\"insert into tbTransaction(aid,trtype,amount,description) \"\r\n\t\t\t\t\t\t\t\t+ \" values( %d, \" + \" %d, \"\r\n\t\t\t\t\t\t\t\t+ \"\t%f, 'Transfer in %.2f dollars from %s(%s) on %s. MEMO: %s' ) \", \r\n\t\t\t\t\t\t\t\ttoAccountId,\r\n\t\t\t\t\tTRANSFER_IN_TRANSACTION_TYPE_ID, amount, amount,\r\n\t\t\t\t\tfromAccountNumber, fromName, currentDate,memo);\r\n\t\t\t\tnRs = st.executeUpdate(sql);\r\n\t\t\t\tif (nRs<=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tconn.rollback(savepnt);\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn true;\r\n\t\t\t\t\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t\tconn.rollback(savepnt);\r\n\t\t\t} finally {\r\n\t\t\t\tconn.setAutoCommit(true);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (conn != null)\r\n\t\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}",
"@Override\n public void apply(Map<Integer, Account> accounts) {\n Account account = accounts.get(accountNumber);\n if (account == null) {\n throw new ViolatedConstraintException(\n \"Tried to withdraw from non-existent account \" + accountNumber\n );\n }\n\n // Make sure the account is enabled.\n if (!account.isEnabled()) {\n throw new ViolatedConstraintException(\n \"Tried to withdraw from disabled account \" + accountNumber\n );\n }\n\n // Check that the account belongs to accountHolder.\n if (!account.getAccountHolder().equals(accountHolder)) {\n throw new ViolatedConstraintException(\n \"User \\\"\" + accountHolder + \"\\\" tried to perform transaction \" +\n \"on account \" + accountNumber +\n \" which belongs to user \\\"\" + account.getAccountHolder() + \"\\\"\"\n );\n }\n\n // Compute fee based on whether it was admin initiated or not\n // and whether they are a student or not.\n int fee = (adminInitiated) ? 0 : (\n (account.isStudent()) ? Constants.STUDENT_FEE : Constants.NORMAL_FEE\n );\n\n // Check that the final balance of the account after removing the funds\n // and fee is greater than zero.\n int finalBalance = account.getBalance() - amount - fee;\n if (finalBalance < 0) {\n throw new ViolatedConstraintException(\n \"Final balance should be >= 0, got \" + finalBalance\n );\n }\n\n // If the transaction isn't admin initiated, check that the final\n // withdrawal total is less than the withdrawal limit.\n int finalWithdrawalTotal = 0;\n\n if (!adminInitiated) {\n finalWithdrawalTotal = account.getWithdrawalTotal() + amount;\n\n if (finalWithdrawalTotal > Constants.WITHDRAWAL_LIMIT) {\n throw new ViolatedConstraintException(\n \"Final withdrawal total should be <= \" + Constants.WITHDRAWAL_LIMIT +\n \", got \" + finalWithdrawalTotal\n );\n }\n }\n\n // Remove the funds and fee from the account.\n account.setBalance(finalBalance);\n\n // If the transaction isn't admin initiated update withdrawal total\n // and increment the transaction count.\n if (!adminInitiated) {\n account.setWithdrawalTotal(finalWithdrawalTotal);\n account.incrementTransactionCount();\n }\n }",
"public void applyTransaction(Transaction tx, byte[] coinbase) {\n\t\tif (blockchain != null)\n\t\t\tblockchain.addWalletTransaction(tx);\n\n\t\t// TODO: what is going on with simple wallet transfer ?\n\n\t\t// 1. VALIDATE THE NONCE\n\t\tbyte[] senderAddress = tx.getSender();\n\n\t\tAccountState senderAccount = repository.getAccountState(senderAddress);\n\n\t\tif (senderAccount == null) {\n\t\t\tif (stateLogger.isWarnEnabled())\n\t\t\t\tstateLogger.warn(\"No such address: {}\",\n\t\t\t\t\t\tHex.toHexString(senderAddress));\n\t\t\treturn;\n\t\t}\n\n\t\tBigInteger nonce = repository.getNonce(senderAddress);\n\t\tif (nonce.compareTo(new BigInteger(tx.getNonce())) != 0) {\n\t\t\tif (stateLogger.isWarnEnabled())\n\t\t\t\tstateLogger.warn(\"Invalid nonce account.nonce={} tx.nonce={}\",\n\t\t\t\t\t\tnonce.longValue(), new BigInteger(tx.getNonce()));\n\t\t\treturn;\n\t\t}\n\n\t\t// 2.1 PERFORM THE GAS VALUE TX\n\t\t// (THIS STAGE IS NOT REVERTED BY ANY EXCEPTION)\n\n\t\t// first of all debit the gas from the issuer\n\t\tBigInteger gasDebit = tx.getTotalGasValueDebit();\n\n\t\t// The coinbase get the gas cost\n\t\trepository.addBalance(coinbase, gasDebit);\n\n\t\tbyte[] contractAddress;\n\n\t\t// Contract creation or existing Contract call\n\t\tif (tx.isContractCreation()) {\n\n\t\t\t// credit the receiver\n\t\t\tcontractAddress = tx.getContractAddress();\n\t\t\trepository.createAccount(contractAddress);\n\t\t\tstateLogger.info(\"New contract created address={}\",\n\t\t\t\t\tHex.toHexString(contractAddress));\n\t\t} else {\n\n\t\t\tcontractAddress = tx.getReceiveAddress();\n\t\t\tAccountState receiverState = repository.getAccountState(tx\n\t\t\t\t\t.getReceiveAddress());\n\n\t\t\tif (receiverState == null) {\n\t\t\t\trepository.createAccount(tx.getReceiveAddress());\n\t\t\t\tif (stateLogger.isInfoEnabled())\n\t\t\t\t\tstateLogger.info(\"New account created address={}\",\n\t\t\t\t\t\t\tHex.toHexString(tx.getReceiveAddress()));\n\t\t\t}\n\t\t}\n\n\t\t// 2.2 UPDATE THE NONCE\n\t\t// (THIS STAGE IS NOT REVERTED BY ANY EXCEPTION)\n\t\tBigInteger balance = repository.getBalance(senderAddress);\n\t\tif (balance.compareTo(BigInteger.ZERO) == 1) {\n\t\t\trepository.increaseNonce(senderAddress);\n\n\t\t\tif (stateLogger.isInfoEnabled())\n\t\t\t\tstateLogger.info(\n\t\t\t\t\t\t\"Before contract execution the sender address debit with gas total cost, \"\n\t\t\t\t\t\t\t\t+ \"\\n sender={} \\n gas_debit= {}\",\n\t\t\t\t\t\tHex.toHexString(tx.getSender()), gasDebit);\n\t\t}\n\n\t\t// actual gas value debit from the sender\n\t\t// the purchase gas will be available for the\n\t\t// contract in the execution state, and\n\t\t// can be validate using GAS op\n\t\tif (gasDebit.signum() == 1) {\n\t\t\tif (balance.compareTo(gasDebit) == -1) {\n\t\t\t\tlogger.info(\"No gas to start the execution: sender={}\",\n\t\t\t\t\t\tHex.toHexString(tx.getSender()));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\trepository.addBalance(senderAddress, gasDebit.negate());\n\t\t}\n\n\t\t// 3. START TRACKING FOR REVERT CHANGES OPTION !!!\n\t\tRepository trackRepository = repository.getTrack();\n\t\ttrackRepository.startTracking();\n\n\t\ttry {\n\n\t\t\t// 4. THE SIMPLE VALUE/BALANCE CHANGE\n\t\t\tif (tx.getValue() != null) {\n\n\t\t\t\tBigInteger senderBalance = repository.getBalance(senderAddress);\n\t\t\t\tBigInteger contractBalance = repository.getBalance(contractAddress);\n\n\t\t\t\tif (senderBalance.compareTo(new BigInteger(1, tx.getValue())) >= 0) {\n\n\t\t\t\t\trepository.addBalance(contractAddress,\n\t\t\t\t\t\t\tnew BigInteger(1, tx.getValue()));\n\t\t\t\t\trepository.addBalance(senderAddress,\n\t\t\t\t\t\t\tnew BigInteger(1, tx.getValue()).negate());\n\n\t\t\t\t\tif (stateLogger.isInfoEnabled())\n\t\t\t\t\t\tstateLogger.info(\"Update value balance \\n \"\n\t\t\t\t\t\t\t\t+ \"sender={}, receiver={}, value={}\",\n\t\t\t\t\t\t\t\tHex.toHexString(senderAddress),\n\t\t\t\t\t\t\t\tHex.toHexString(contractAddress),\n\t\t\t\t\t\t\t\tnew BigInteger(tx.getValue()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// 3. FIND OUT WHAT IS THE TRANSACTION TYPE\n\t\t\tif (tx.isContractCreation()) {\n\n\t\t\t\tbyte[] initCode = tx.getData();\n\n\t\t\t\tBlock lastBlock = blockchain.getLastBlock();\n\n\t\t\t\tProgramInvoke programInvoke = ProgramInvokeFactory\n\t\t\t\t\t\t.createProgramInvoke(tx, lastBlock, trackRepository);\n\n\t\t\t\tif (logger.isInfoEnabled())\n\t\t\t\t\tlogger.info(\"running the init for contract: addres={}\",\n\t\t\t\t\t\t\tHex.toHexString(tx.getContractAddress()));\n\n\t\t\t\tVM vm = new VM();\n\t\t\t\tProgram program = new Program(initCode, programInvoke);\n\t\t\t\tvm.play(program);\n\t\t\t\tProgramResult result = program.getResult();\n\t\t\t\tapplyProgramResult(result, gasDebit, trackRepository,\n\t\t\t\t\t\tsenderAddress, tx.getContractAddress(), coinbase);\n\n\t\t\t} else {\n\n\t\t\t\tbyte[] programCode = trackRepository.getCode(tx\n\t\t\t\t\t\t.getReceiveAddress());\n\t\t\t\tif (programCode != null) {\n\n\t\t\t\t\tBlock lastBlock = blockchain.getLastBlock();\n\n\t\t\t\t\tif (logger.isInfoEnabled())\n\t\t\t\t\t\tlogger.info(\"calling for existing contract: addres={}\",\n\t\t\t\t\t\t\t\tHex.toHexString(tx.getReceiveAddress()));\n\n\t\t\t\t\tProgramInvoke programInvoke = ProgramInvokeFactory\n\t\t\t\t\t\t\t.createProgramInvoke(tx, lastBlock, trackRepository);\n\n\t\t\t\t\tVM vm = new VM();\n\t\t\t\t\tProgram program = new Program(programCode, programInvoke);\n\t\t\t\t\tvm.play(program);\n\n\t\t\t\t\tProgramResult result = program.getResult();\n\t\t\t\t\tapplyProgramResult(result, gasDebit, trackRepository,\n\t\t\t\t\t\t\tsenderAddress, tx.getReceiveAddress(), coinbase);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (RuntimeException e) {\n\t\t\ttrackRepository.rollback();\n\t\t\treturn;\n\t\t}\n\t\ttrackRepository.commit();\n\t\tpendingTransactions.put(Hex.toHexString(tx.getHash()), tx);\n\t}",
"public void makeTransaction(Transaction transaction)\n throws BalanceNotAvailableException, TransactionIdNotUniqueException, TransactionTypeInCorrectException {\n\n if (checkTransactionId(transaction.getTransactionId())) {\n throw new TransactionIdNotUniqueException(\"Transaction Id should be unique\");\n } else if (transaction.getTransactionType().equalsIgnoreCase(\"debit\")) {\n if (checkAvailableBalance(transaction.getAccountId(), transaction.getAmount())) {\n throw new BalanceNotAvailableException(\"Balance Not Available\");\n }\n updateAccountBalance(transaction.getAccountId(),\n getAccountBalance(transaction.getAccountId()) - transaction.getAmount());\n transactionRepository.save(transaction);\n } else if (transaction.getTransactionType().equalsIgnoreCase(\"credit\")) {\n updateAccountBalance(transaction.getAccountId(),\n getAccountBalance(transaction.getAccountId()) + transaction.getAmount());\n transactionRepository.save(transaction);\n } else {\n throw new TransactionTypeInCorrectException(\"Transaction type should be debit or credit\");\n }\n }"
] | [
"0.6179637",
"0.61529815",
"0.6031668",
"0.595222",
"0.59105855",
"0.59061414",
"0.58959246",
"0.5890564",
"0.5890357",
"0.5772927",
"0.57679117",
"0.56954074",
"0.5655583",
"0.56472397",
"0.56079036",
"0.5601605",
"0.5582143",
"0.558",
"0.5558211",
"0.55514574",
"0.5544021",
"0.5536561",
"0.5507285",
"0.5499504",
"0.54954165",
"0.5481485",
"0.54751396",
"0.54719377",
"0.5462728",
"0.5447219",
"0.54261255",
"0.5421134",
"0.54198736",
"0.54168594",
"0.54026175",
"0.5388181",
"0.5381849",
"0.53785163",
"0.53690386",
"0.53640556",
"0.5363594",
"0.53633386",
"0.53594565",
"0.53578705",
"0.53345966",
"0.5324247",
"0.5323545",
"0.53116477",
"0.52981865",
"0.52910686",
"0.528754",
"0.528715",
"0.52855086",
"0.52850413",
"0.5254269",
"0.52525455",
"0.5249564",
"0.52419305",
"0.52364254",
"0.52336574",
"0.522872",
"0.52237225",
"0.52216136",
"0.52030313",
"0.5199976",
"0.5191088",
"0.5185021",
"0.51836294",
"0.5181749",
"0.5180869",
"0.51708543",
"0.51692927",
"0.51641035",
"0.5158106",
"0.515754",
"0.51525575",
"0.5149251",
"0.5147346",
"0.5147313",
"0.5144646",
"0.51427454",
"0.5141854",
"0.5138738",
"0.51360613",
"0.5135083",
"0.51214755",
"0.51210034",
"0.5115162",
"0.5108344",
"0.51036376",
"0.5089315",
"0.50848603",
"0.50814724",
"0.50811815",
"0.50743175",
"0.50728965",
"0.5072749",
"0.5072432",
"0.50719523",
"0.50712293"
] | 0.5627155 | 14 |
adds an item to the array | public void addItem(JSONObject obj) {
coordinates.put(obj);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unchecked\")\n\tpublic void add(T item){\n\t\t\n\n\t\tif(currentsize == data.length-1){\n\t\t\tgrow();\n\t\t}\n\n\t\t\n\t\tdata[currentsize] = item;\n\t\tcurrentsize++;\n\n\n\t}",
"public void add(int index, Object item)\n {\n items[index] = item;\n numItems++;\n }",
"@Override\n public void add(Object item)\n {\n if (size == list.length)\n {\n Object [] itemInListCurrently = deepCopy();\n list = new Object[size * 2];\n\n System.arraycopy(itemInListCurrently, 0, list, 0, size);\n }\n\n list[size++] = item;\n }",
"void add(Item item);",
"public void push(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}",
"public void add(int Item) {\n\t\t\tif (nowLength < MAXSIZE) {\n\t\t\t\tray[nowLength] = Item;\n\t\t\t\tnowLength++;\n\t\t\t}\n\t}",
"@Override\n public boolean addItem(T item) {\n //Make sure the Set does not already contain the item\n if(!this.contains(item)) {\n //Make sure there is enough room for the item. If there isn't\n //resize the array\n if(numItems == arr.length)\n this.ensureCap();\n //Add the item to the end and increment numItems\n arr[numItems++] = item;\n //return true\n return true;\n }\n //if item was already in set, return false\n return false;\n }",
"@Override\n\tpublic boolean add(E item) {\n\t\tif (this.numberOfElements == this.size) {\n\t\t\tE[] newArrayList = (E[]) new Object[this.size * 2];\n\t\t\tint i = 0;\n\t\t\twhile (i < this.size) {\n\t\t\t\tnewArrayList[i] = this.arrayList[i];\n\t\t\t\ti += 1;\n\t\t\t}\n\t\t\tthis.arrayList = newArrayList;\n\t\t\tthis.size = this.size * 2;\n\t\t}\n\t\tthis.arrayList[this.numberOfElements] = item;\n\t\tthis.numberOfElements += 1;\n\t\treturn true;\n\t}",
"public void add(Item item) {\n for (int i = 0; i < items.length; i++) {\n if (items[i] == null) {\n items[i] = item;\n break;\n }\n }\n }",
"public int addItem(Item i);",
"public void insert(int newItem){\n itemArray[count] = newItem;\n count++;\n }",
"@Override\n public void add(T t) {\n checkIfArrayFull();\n\n arrayList[elementsInArray] = t;\n elementsInArray++;\n }",
"void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}",
"@Override\n\tpublic boolean add(T insertItem) {\n\t\t// TODO Just add the item to the array\n\t\tif (isFull()) {\n\t\t\treturn false;\n\t\t}\n\t\tdata[size++] = insertItem;\n\t\treturn true;\n\t}",
"public void append(Item value) {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an array.\");\n }",
"public synchronized void add(E value) {\n this.array.add(value);\n }",
"public void addItem(Object obj) {\n items.add(obj);\n }",
"@Override\n public boolean add(T item) {\n // if the last spot in the array is unoccupied, item is simply added to the first empty spot\n if (arr[arr.length-1]!=null) {\n arr[size + 1] = item;\n size++;\n }\n // if array is full, number of spots is doubled and item is added\n if (arr[arr.length-1]== null){\n grow();\n arr[size+1] = item;\n size++;\n }\n return true;\n }",
"@Override\n // worst-case complexity: O(n), since it might need to resize itself\n // amortised average-case complexity: O(1), since resizing happens too\n // too infrequent to affect the actual complexity\n public void add(T item) {\n if (size >= arr.length)\n arr = resize(arr, EXPAND_FACTOR);\n // we add the item to the end and then increment the size\n arr[size++] = item;\n }",
"public void add( Object value )\n\t{\n\t\tint n = size();\n\t\tif (addIndex >= n)\n\t\t{\n\t\t\tif (n == 0)\n\t\t\t\tn = 8;\n\t\t\telse\n\t\t\t\tn *= 2;\n\t\t\tObject narray = Array.newInstance( array.getClass().getComponentType(), n );\n\t\t\tSystem.arraycopy( array, 0, narray, 0, addIndex );\n\t\t\tarray = narray;\n\t\t}\n\t\tArray.set( array, addIndex++, value );\n\t}",
"void add(int index, Object element);",
"public void append(Object item);",
"@Override\n public boolean add(int index, T object) {\n T[] newArray;\n if (array[array.length - 1] != null) {\n newArray = (T[]) new Object[array.length * 2];\n } else {\n newArray = (T[]) new Object[array.length];\n }\n for (int i = 0; i < index; i++) {\n newArray[i] = array[i];\n\n }\n newArray[index] = object;\n for (int i = index + 1; i < array.length; i++) {\n newArray[i] = array[i - 1];\n }\n this.size++;\n this.array = newArray;\n return true;\n }",
"public void add(E item);",
"@Override\n public boolean add(T object) {\n T[] newArray;\n if (array[array.length - 1] != null) {\n newArray = (T[]) new Object[array.length * 2];\n } else {\n newArray = (T[]) new Object[array.length];\n }\n for (int i = 0; i < array.length; i++) {\n newArray[i] = array[i];\n }\n newArray[size] = object;\n this.size++;\n this.array = newArray;\n return true;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic void add(int pos, T item){\n\n\t\tif(pos > data.length){\n\t\t\tcurrentsize = currentsize*2;\n\t\t}\n\n\t\n\t\tfor(int i = currentsize; i > pos; i--){\n\t\t\tdata[i] = data[i-1];\n\t\t}\n\t\tdata[pos]= item;\n\t\tcurrentsize++;\n\t}",
"public void add(final int item) {\n if (!contains(item)) {\n set[size] = item;\n size += 1;\n }\n }",
"@Override\n public void add(int index, T element) {\n Object[] newArray = new Object[size + 1];\n for (int i = 0; i < index; i++) {\n newArray[i] = data[i];\n }\n newArray[index] = element;\n for (int i = index + 1; i < newArray.length; i++) {\n newArray[i] = data[i - 1];\n }\n data = newArray;\n size++;\n }",
"public boolean add(Type item);",
"@Override\n\tpublic boolean add(Object e)\n\t{\n\t\tif (size == myArray.length)\n\t\t\tresizeUp();\n\t\tmyArray[size] = e;\n\t\tsize++;\n\t\treturn false;\n\t}",
"public ReturnObject add(Object item) {\n ReturnObjectImpl rtn = new ReturnObjectImpl();\n if (item == null) {\n rtn.setError(ErrorMessage.INVALID_ARGUMENT);\n } else {\n rtn.setObj(item);\n extendArray();\n AL[size()-1] = item;\n }\n return rtn;\n }",
"void add(E item);",
"void add(E item);",
"void add(E item);",
"public void add() {\n\t\tcart.add(item.createCopy());\n\t}",
"void add(T item);",
"public void add( Comparable newVal ) {\n \t//if _data is full, expand the array\n \tif (_size == _data.length){\n\t \texpand();\n \t}\n \t\n\tset(_lastPos + 1, newVal);\n \t//increases _lastPos and _size\n \t_lastPos++;\n \t_size++;\n }",
"void add(int index, int value) {\n int[] newItems = new int[size++];\n\n System.arraycopy(items, 0, newItems, 0, index);\n\n newItems[index] = value;\n\n System.arraycopy(items, index, newItems, index + 1, items.length - index);\n\n items = newItems;\n }",
"@Override\r\n\tpublic void addItem(AbstractItemAPI item) {\n\t\titems.add(item);\r\n\t\t\r\n\t}",
"public void addItem(Item item) {\n items.add(item);\n }",
"public void addItem(Item item) {\n items.add(item);\n }",
"public void add(Coord obj) {\n\t\tif (index > itemcount)\n\t\t\tthrow new RuntimeException(\"Liste ist voll\");\n\t\tarray[index++] = obj;\n\t}",
"@Override\n public void add(int index, T t) {\n checkIfArrayFull();\n\n if(index >= arrayList.length) {\n System.out.println(\"The index is out of bounds for this list\");\n System.exit(-1);\n }\n\n Object ob = arrayList[index];\n arrayList[index] = t;\n\n Object ob2;\n\n /*The loop cycles through the array starting at index. ob2 is given the value of arrayList at i+1 position.\n The arrayList at i+1 position is assigned the value of ob. Then the ob variable is assigned the value of ob2. */\n for(int i = index; i < arrayList.length - 1; i++) {\n ob2 = arrayList[i+1];\n arrayList[i+1] = ob;\n ob = ob2;\n }\n\n elementsInArray++;\n }",
"void push(Object item);",
"public void Add(int[] item) {\n Add(item.length * 4);\n\n\n for (int i = 0; i < item.length; i++) {\n AddInt(item[i]);\n }\n mLenght += Integer.SIZE / 8 * item.length;\n mBackOffset = mLenght;\n }",
"public Item addItem(Item item) {\r\n uniqueCounter++;\r\n items.add(item);\r\n return item;\r\n }",
"public void addFirst(Object item) {\r\n\t\tdata.add(0, item);\r\n\t}",
"public int addItem(Itemset i);",
"public void addItem(Item i) {\n this.items.add(i);\n }",
"void add(int value) {\n size++;\n\n int[] newItems = new int[size];\n\n System.arraycopy(items, 0, newItems, 0, items.length);\n\n newItems[newItems.length - 1] = value;\n\n items = newItems;\n }",
"@Override\r\n\tpublic boolean add(T obj, int index) {\n\t\tif (index < 0 || index > size) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (size >= array.length)\r\n\t\t\tallocate();\r\n\t\tSystem.arraycopy(array, index, array, index + 1, size - index);\r\n\t\tarray[index] = obj;\r\n\t\tsize++;\r\n\t\treturn true;\r\n\t}",
"@Override\n public void addFirst(T item) {\n if (size >= array.length) {\n resize(size * 2);\n array[nextFirst] = item;\n nextFirst = minusOne(nextFirst);\n } else {\n array[nextFirst] = item;\n nextFirst = minusOne(nextFirst);\n }\n size += 1;\n }",
"public void add(T item) {\n if (nextindex >= list.length) {\n resize();\n }\n list[nextindex] = item;\n nextindex++;\n }",
"public void add(Object value) {\n verifyModifiable();\n\n elements.add(value);\n }",
"private String[] addItemToArray(String item, String[] myArray) {\n if (!ApiFunctions.isEmpty(item)) {\n if (ApiFunctions.isEmpty(myArray)) {\n return myArray = new String[] { item };\n }\n else {\n String[] temp = new String[myArray.length + 1];\n System.arraycopy(myArray, 0, temp, 0, myArray.length);\n temp[temp.length - 1] = item;\n return temp;\n }\n }\n else {\n return null;\n }\n }",
"public void addItem(Item param) {\r\n if (localItem == null) {\r\n localItem = new Item[] { };\r\n }\r\n\r\n //update the setting tracker\r\n localItemTracker = true;\r\n\r\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem);\r\n list.add(param);\r\n this.localItem = (Item[]) list.toArray(new Item[list.size()]);\r\n }",
"public void add(int toBeAdded) {\n\t\tif (this.myCount==this.myValues.length){\n\t\t\tSystem.err.println(\"No more space in array\");\n\t\t\tSystem.exit(1);\n\t\t}\n \tthis.myValues[this.myCount] = toBeAdded;\n this.myCount++;\n }",
"void add(int index, T element);",
"void add(int index, T element);",
"void addItem(DataRecord record);",
"public void add(E value){\n if (maxIndex != array.length-1){\n array[++maxIndex] = value;\n }else {\n Object[] tmpArray = new Object[array.length+ capacity];\n for (int i = 0; i < array.length; i++) {\n tmpArray[i] = array[i];\n }\n array = tmpArray;\n array[++maxIndex] = value;\n }\n }",
"@Override\n\tpublic void add(Object value) {\n\t\tinsert(value, size);\n\t}",
"public void addItem(Item toAdd) {\n\t\tthis.items.add(toAdd);\n\t}",
"@Override\r\n\tpublic void push(String item) {\n\t\tvector.addElement(item);\r\n\t\t\r\n\t}",
"@Override\n\tpublic boolean add(T element) {\n\t\titemProbs_.put(element, 1d);\n\t\telementArray_ = null;\n\t\tklSize_ = 0;\n\t\treturn true;\n\t}",
"public abstract void addItem(AbstractItemAPI item);",
"public void push(Item s) {\n\t\tif (N == arr.length)\n\t\t\tresize (arr.length*2);\t\n\t\tarr[N++] = s;\n\t}",
"public void addItem(final Item item) {\n\t\tnumberOfItems++;\n\t}",
"private void addAtIndex(int index, FoodItem item) {\n // store the \"pushed\" forward item\n FoodItem toMoveNext = this._stock[index];\n // and set the new item in index\n this._stock[index] = new FoodItem(item);\n\n // \"push\" forward in the array each item, until no more items to push.\n for (int i = index+1; i < _noOfItems+1; i++) {\n FoodItem tempToMoveNext = _stock[i];\n _stock[i] = toMoveNext;\n toMoveNext = tempToMoveNext;\n }\n\n // we added a new item for _stock, so now increase the noOfItem:\n this._noOfItems++;\n }",
"public void push(E item) {\n addFirst(item);\n }",
"public void addItem(Item item){\r\n items.add(item);\r\n total = items.getTotal();\r\n }",
"public void addItem(Item item) {\n _items.add(item);\n }",
"public boolean add (E item)\n {\n add(size, item); // calling public method add\n return true;\n }",
"public void store(Item item) {\n this.items.add(item);\n }",
"void addFruit(Fruit item){\n\t\tfruitList.add(item);\n\t}",
"public void addItem( Item anItem) {\n currentItems.add(anItem);\n }",
"public void add(Object value) {\n\n\t}",
"@Override\n public final boolean add(final Integer element) {\n // First, check to see that the array can support another element\n ensureCapacity(size);\n // Add the element to the next available slot\n arrayList[size++] = element;\n return true;\n }",
"public boolean add( T element )\n {\n // THIS IS AN APPEND TO THE LOGICAL END OF THE ARRAY AT INDEX count\n if (size() == theArray.length) upSize(); // DOUBLES PHYSICAL CAPACITY\n theArray[ count++] = element; // ADD IS THE \"setter\"\n return true; // success. it was added\n }",
"void add(byte[] element);",
"public void add(T element, int pos);",
"@Override\n public void add(T element) {\n add(size(), element);\n }",
"public void add(final Object value) {\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tif (this.size == this.capacity) {\n\t\t\treallocate();\n\t\t}\n\t\telements[size] = value;\n\t\tsize++;\n\t}",
"void push(T item) {\n contents.addAtHead(item);\n }",
"public void addItem(Item item) {\r\n\t\titems.add(item);\r\n\t}",
"public void add(E a)\n {\n if (size == data.length) { // if the list is at capacity...\n // create a new, larger array\n E[] newData = (E[])(new Object[2*data.length]);\n \n // copy over all of the old elements\n for (int i = 0; i < size; i++)\n newData[i] = data[i];\n \n // redirect the old data reference\n data = newData;\n }\n\n // insert the new element\n data[size] = a;\n size++;\n }",
"public boolean add(E item) {\n if (item == null) { //Checks if the item is null if it is throws a new exception\n throw new IllegalArgumentException(\"Yeah Nah, No thanks null.\");\n }\n\n int index = findIndexOf(item); //For simplification\n\n if (data[index] != null) { //if the item at the index is not null\n if (data[index].equals(item))\n return false;\n }\n for (int i = count; i >= index; i--) { //iterates backward through the collection.\n\n if (i == index || i == 0) { //while iterating it checks if the value i is the same as index or 0, increments count and swaps the item.\n count++;\n ensureCapacity(); //checks capacity works, and if so adds item to and returns true.\n data[i] = item;\n return true;\n }\n data[i] = data[i - 1];\n }\n return false;\n }",
"public void add(int element);",
"public boolean add(Object[] obj) {\n\t\treturn false;\n\t}",
"public void add(T item) {\n\t\tcounts.put(item, counts.getOrDefault(item, 0) + 1);\n\t}",
"public abstract void add(T element, int index);",
"public void add(Thing newThing)\r\n {\r\n \titems.add(newThing);\r\n }",
"public void addItem(Item item) {\n\t\tObjects.requireNonNull(item);\n\t\titems.add(item);\n\t}",
"@Override\n\tpublic void add(int index, Object e) throws IndexOutOfBoundsException\n\t{\n\t\t//just to check if the index is valid\n\t\tif ( index < 0 || index > size )\n \t\tthrow new IndexOutOfBoundsException();\n\t\t//check arraylist size\n\t\tif (size == myArray.length)\n\t\t\tresizeUp();\n\t\t//move all the proceeding elements to make room for the desired element\n\t\tfor ( int i = size; i > index; i-- )\n \t\tmyArray[i] = myArray[i-1];\n \t//plug the element\n\t\tmyArray[index] = e;\n \t++this.size;\n\n\t\t\n\t}",
"public void add(T element){\r\n if (element == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n \r\n // If array is full, double the size\r\n if (size == elements.length) {\r\n resize(elements.length * 2);\r\n }\r\n \r\n elements[size] = element;\r\n size++;\r\n }",
"public void insert(int item) {\n\t\tif(items.length == count) {\n\t\t\t// Create a new Array (Twice the Size)\n\t\t\tint[] newItems = new int[count*2];\n\t\t\t// Copy all the existing items\n\t\t\tfor (int i = 0; i < count; i++)\n\t\t\t\tnewItems[i] = items[i];\n\t\t\t// Set \"items\" to this new array\n\t\t\t\titems = newItems;\n\t\t}\n\t\t// Add the new element at the end.\n\t\titems[count++] = item;\n\t}",
"public void addItem(LibraryItem item){\r\n\t\t// use add method of list.class\r\n\t\tthis.inverntory.add(item);\r\n\t}",
"@Override\n public void addLast(T item) {\n if (size >= array.length) {\n resize(size * 2);\n array[nextLast] = item;\n nextLast = plusOne(nextLast);\n } else {\n array[nextLast] = item;\n nextLast = plusOne(nextLast);\n }\n size += 1;\n }",
"public void enqueue(Item item){\n if (item == null){ throw new NullPointerException(\"Cannot add a null item\"); }\n\n // fill the nulls\n if(itemCount < array.length) {\n for(int i=0;i<array.length;i++) {\n if(array[i] == null) {\n array[i] = item;\n break;\n }\n }\n }\n // resize when too big\n if(itemCount == array.length){\n resize(2*itemCount);\n array[itemCount] = item;\n }\n itemCount++; // Item added!!\n }",
"public E push(E item) {\n try {\n stackImpl.push(item);\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"Array is full. Switching to unbound implementation\");\n StackImplementationIF<E> stackImplTemp = new ListStack<E>();\n for (Enumeration en = new ImplIterator<E>(this); en.hasMoreElements();) {\n E c = (E) en.nextElement();\n stackImplTemp.push(c);\n }\n stackImpl = stackImplTemp;\n stackImpl.push(item);\n }\n return item;\n }",
"private void add() {\n\n\t}"
] | [
"0.7687857",
"0.7496334",
"0.7426352",
"0.73757416",
"0.72901285",
"0.72661066",
"0.7257312",
"0.7253628",
"0.7208123",
"0.71929383",
"0.7190783",
"0.7172444",
"0.7163836",
"0.7155671",
"0.71409196",
"0.7082845",
"0.70673406",
"0.70651144",
"0.70648444",
"0.7038423",
"0.701645",
"0.7000379",
"0.6961627",
"0.6942666",
"0.69243747",
"0.6922477",
"0.69043314",
"0.68830407",
"0.68771285",
"0.6855931",
"0.6849411",
"0.68289715",
"0.68289715",
"0.68289715",
"0.68204117",
"0.6805327",
"0.6803519",
"0.67997175",
"0.67823666",
"0.6769128",
"0.6769128",
"0.67564803",
"0.6746903",
"0.6743994",
"0.6740231",
"0.67391604",
"0.673844",
"0.6709755",
"0.67046666",
"0.67001396",
"0.6699293",
"0.66952187",
"0.66881657",
"0.66838795",
"0.66835535",
"0.66793835",
"0.6669094",
"0.66507643",
"0.66507643",
"0.66476136",
"0.6644549",
"0.663222",
"0.6629555",
"0.6615586",
"0.6601144",
"0.65909344",
"0.65771115",
"0.6576997",
"0.65737885",
"0.6573186",
"0.65726393",
"0.65710926",
"0.65637124",
"0.6559136",
"0.6558586",
"0.65582144",
"0.6553085",
"0.6552954",
"0.65520096",
"0.6550043",
"0.65492773",
"0.6544725",
"0.6533422",
"0.6533075",
"0.6532038",
"0.65308267",
"0.6527924",
"0.6514429",
"0.65142095",
"0.65083927",
"0.6494689",
"0.6482473",
"0.6478041",
"0.6475538",
"0.6466888",
"0.64662653",
"0.6462847",
"0.64617616",
"0.6459717",
"0.6451899",
"0.6449845"
] | 0.0 | -1 |
Opens the add transform wizard. | public AddValidatorWizard() {
super();
initPages();
setWindowTitle(Messages.title_newValidator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clickAddButton() {\n\t\tfilePicker.fileManButton(locAddButton);\n\t}",
"public void goToAddPartScene(ActionEvent event) throws IOException {\n Parent addPartParent = FXMLLoader.load(getClass().getResource(\"AddPart.fxml\"));\n Scene addPartScene = new Scene(addPartParent);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(addPartScene);\n window.show();\n }",
"public void importFurniture() {\n new ImportedFurnitureWizardController(this.home, this.preferences, this, this.viewFactory, \n this.contentManager, this.undoSupport).displayView(getView());\n }",
"public void testWizards() {\n // open new file wizard\n NewFileWizardOperator nfwo = NewFileWizardOperator.invoke();\n nfwo.selectProject(\"SampleProject\");\n nfwo.selectCategory(\"Java\");\n nfwo.selectFileType(\"Java Class\");\n // go to next page\n nfwo.next();\n // create operator for the next page\n NewJavaFileNameLocationStepOperator nfnlso = new NewJavaFileNameLocationStepOperator();\n nfnlso.txtObjectName().typeText(\"MyNewClass\");\n // finish wizard\n //nfnlso.finish();\n // cancel wizard\n nfnlso.cancel();\n }",
"public void addPages() {\n //super.addPages(); //<--- notice we're overriding here\n mainPage = new NewTargetWizardPage(\"newFilePage1\", getSelection());//$NON-NLS-1$\n mainPage.setTitle(TITLE);\n mainPage.setDescription(DESCRIPTION); \n addPage(mainPage);\n }",
"public CartogramWizard ()\n\t{\n\t\n\t\t// Set the window parameters.\n\t\tthis.setTitle(AppContext.shortProgramName + \" _ Cartogram Wizard\");\n\t\tthis.setSize(640, 480);\n\t\tthis.setLocation(30, 40);\n\t\tthis.setResizable(false);\n\t\tthis.setLayout(null);\n\t\t//this.setModal(true);\n\t\tthis.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\n\t\tthis.addWindowListener(new CartogramWizardWindowListener());\n\t\t\n\t\t\n\t\t// Adding the cartogram wizard to the app context.\n\t\tAppContext.cartogramWizard = this;\n\t\t\n\t\t\n\t\t// Add icon panel at the left of the wizard window.\n\t\t// This panel contains the ScapeToad icon.\n\t\tif (mScapeToadIconPanel == null)\n\t\t{\n\t\t\tmScapeToadIconPanel = new ScapeToadIconPanel(this);\n\t\t}\n\t\t\n\t\tmScapeToadIconPanel.setLocation(30, 90);\n\t\tthis.add(mScapeToadIconPanel);\n\t\t\n\t\t\n\t\t\n\t\t// Add title panel.\n\t\tCartogramWizardTitlePanel titlePanel =\n\t\t\tnew CartogramWizardTitlePanel(this);\n\t\t\n\t\ttitlePanel.setLocation(30, 20);\n\t\tthis.add(titlePanel);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Add icon panel at the left of the wizard window.\n\t\t// This panel contains the ScapeToad icon.\n\t\tmWizardStepIconPanel = new WizardStepIconPanel(this);\n\t\tmWizardStepIconPanel.setLocation(380, 20);\n\t\tthis.add(mWizardStepIconPanel);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Ajouter l'introduction au wizard.\n\t\t// Explication des étapes à suivre :\n\t\t// 1. Sélectionner la couche des polygones (master layer).\n\t\t// 2. Sélectionner l'information statistique.\n\t\t// 3. Sélection des couches à transformer simultanément.\n\t\t\n\t\tmPanelZero = new CartogramWizardPanelZero(this);\n\t\tthis.getContentPane().add(mPanelZero);\n\t\t\n\t\tmCurrentStep = 0;\n\t\t\n\t\t\n\t\t\n\t\t// Add the running panel which is already created.\n\t\tmRunningPanel.setVisible(false);\n\t\tthis.add(mRunningPanel);\n\t\t\n\t\t\n\t\t// Add the finished panel which is already created.\n\t\tmFinishedPanel.setVisible(false);\n\t\tthis.add(mFinishedPanel);\n\t\t\n\t\t\t\t\n\t\t// Add the Cancel button.\n\t\tmCancelButton = new JButton(\"Cancel\");\n\t\tmCancelButton.setLocation(30, 404);\n\t\tmCancelButton.setSize(100, 26);\n\t\tmCancelButton.addActionListener(new CartogramWizardCloseAction());\n\t\tthis.getContentPane().add(mCancelButton);\n\t\t\n\t\t\n\t}",
"public NewTargetFileWizard() {\n super();\n }",
"public void addProj() {\n\t\tbtnAdd.click();\n\t}",
"public void actionPerformed(ActionEvent e){\n\t\t\topenAdd();\n\t\t}",
"public void addPages() {\t\t\n\t\tpage1 = new Opera2ActionsTransformationWizardPage1(selection, operaModel);\n\t\taddPage(page1);\t\n\t}",
"@Override\n\tpublic void addPages() {\n\t\t_fileWizard = new NewPlotFilenameWizardPage(selection);\n\t\t_scaleWizard = new ScaleWizardPage(selection);\n\t\t_coastWizard = new CoastWizardPage(selection);\n\t\t_gridWizard = new GridWizardPage(selection);\n\n\t\t// check there's ETOPO data before we add the page\n\t\t_etopoWizard = new ETOPOWizardPage(selection);\n\n\t\taddPage(_fileWizard);\n\t\taddPage(_scaleWizard);\n\t\taddPage(_coastWizard);\n\t\taddPage(_gridWizard);\n\t\tif (_etopoWizard.isAvailable())\n\t\t\taddPage(_etopoWizard);\n\t}",
"public void goToAddProductScene(ActionEvent event) throws IOException {\n Parent addProductParent = FXMLLoader.load(getClass().getResource(\"AddProduct.fxml\"));\n Scene addProductScene = new Scene(addProductParent);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(addProductScene);\n window.show();\n }",
"CartogramWizardPanelThree (JFrame contentFrame)\n\t{\n\t\n\t\tmCartogramWizard = (CartogramWizard)contentFrame;\n\t\t\n\t\tthis.setLocation(160, 90);\n\t\tthis.setSize(440, 340);\n\t\tthis.setLayout(null);\n\t\n\t\t\n\t\t// Button for simultanous layers.\n\t\tJButton simLayerButton = new JButton(\"Layers to transform...\");\n\t\tsimLayerButton.setLocation(0, 0);\n\t\tsimLayerButton.setSize(240, 26);\n\t\tsimLayerButton.addActionListener(\n\t\t\tnew CartogramWizardSimulaneousLayerAction(\"showDialog\", null));\n\t\tthis.add(simLayerButton);\n\n\t\t// Create the text pane which displays the help text for the\n\t\t// simultaneous layers.\n\t\tJTextPane simLayerTextPane = new JTextPane();\n\t\tClassLoader cldr = this.getClass().getClassLoader();\n\t\tString simLayerText = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream inStream = \n\t\t\t\tcldr.getResource(\"SimLayersText.rtf\").openStream();\n\t\t\tStringBuffer inBuffer = new StringBuffer();\n\t\t\tint c;\n\t\t\twhile ((c = inStream.read()) != -1)\n\t\t\t{\n\t\t\t\tinBuffer.append((char)c);\n\t\t\t}\n\t\t\tinStream.close();\n\t\t\tsimLayerText = inBuffer.toString();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\tsimLayerTextPane.setContentType(\"text/rtf\");\n\t\tsimLayerTextPane.setText(simLayerText);\n\t\tsimLayerTextPane.setEditable(false);\n\t\tsimLayerTextPane.setFont(new Font(null, Font.PLAIN, 11));\n\t\tsimLayerTextPane.setBackground(null);\n\t\tsimLayerTextPane.setLocation(40, 35);\n\t\tsimLayerTextPane.setSize(400, 80);\n\t\tthis.add(simLayerTextPane);\n\t\t\n\t\t\n\t\t\n\t\t// Button for constrained layers.\n\t\tJButton constLayersButton = \n\t\t\tnew JButton(\"Constrained transformation...\");\n\t\tconstLayersButton.setLocation(0, 140);\n\t\tconstLayersButton.setSize(240, 26);\n\t\tconstLayersButton.addActionListener(\n\t\t\tnew CartogramWizardConstrainedLayerAction(\"showDialog\", null));\n\t\tthis.add(constLayersButton);\n\t\t\n\t\t// Create the text pane which displays the help text for the\n\t\t// simultaneous layers.\n\t\tJTextPane constLayerTextPane = new JTextPane();\n\t\tString constLayerText = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream inStream = \n\t\t\t\tcldr.getResource(\"ConstLayersText.rtf\").openStream();\n\t\t\tStringBuffer inBuffer = new StringBuffer();\n\t\t\tint c;\n\t\t\twhile ((c = inStream.read()) != -1)\n\t\t\t{\n\t\t\t\tinBuffer.append((char)c);\n\t\t\t}\n\t\t\tinStream.close();\n\t\t\tconstLayerText = inBuffer.toString();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\tconstLayerTextPane.setContentType(\"text/rtf\");\n\t\tconstLayerTextPane.setText(constLayerText);\n\t\tconstLayerTextPane.setEditable(false);\n\t\tconstLayerTextPane.setFont(new Font(null, Font.PLAIN, 11));\n\t\tconstLayerTextPane.setBackground(null);\n\t\tconstLayerTextPane.setLocation(40, 175);\n\t\tconstLayerTextPane.setSize(400, 60);\n\t\tthis.add(constLayerTextPane);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Add the Next button\n\t\tJButton computeButton = new JButton(\"Next >\");\n\t\tcomputeButton.setLocation(340, 314);\n\t\tcomputeButton.setSize(100, 26);\n\t\tcomputeButton.setMnemonic(KeyEvent.VK_ENTER);\n\t\tcomputeButton.addActionListener(new \n\t\t\tCartogramWizardGoToStepAction((CartogramWizard)contentFrame, 4));\n\t\tthis.add(computeButton);\n\t\t\n\t\t\n\t\t\n\t\t// Add the Back button\n\t\tJButton backButton = new JButton(\"< Back\");\n\t\tbackButton.setLocation(235, 314);\n\t\tbackButton.setSize(100, 26);\n\t\tbackButton.addActionListener(new\n\t\t\tCartogramWizardGoToStepAction((CartogramWizard)contentFrame, 2));\n\t\tthis.add(backButton);\n\n\t\t\n\t\t\n\t\t\n\t\t// Create the slave layer list.\n\t\t// By default, we add all layers but the master layer.\n\t\t/*int nlayers = AppContext.layerManager.size();\n\t\tint lyrcnt = 0;\n\t\tVector layerList = new Vector();\n\t\tString masterLayerName = mCartogramWizard.getCartogramLayerName();\n\t\tfor (lyrcnt = 0; lyrcnt < nlayers; lyrcnt++)\n\t\t{\n\t\t\tLayer lyr = AppContext.layerManager.getLayer(lyrcnt);\n\t\t\tif (lyr.getName() != masterLayerName)\n\t\t\t{\n\t\t\t\tlayerList.add(lyr);\n\t\t\t}\n\t\t}\n\t\tmCartogramWizard.setSimultaneousLayers(layerList);*/\n\t\t\n\t\t\n\t\t\n\t\t// ADD THE HELP BUTTON\n\t\t\n\t\t//ClassLoader cldr = this.getClass().getClassLoader();\n\t\t\n\t\tjava.net.URL imageURL = cldr.getResource(\"help-22.png\");\n\t\tImageIcon helpIcon = new ImageIcon(imageURL);\n\n\t\tJButton helpButton = \n\t\t\tnew JButton(helpIcon);\n\t\t\n\t\thelpButton.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\thelpButton.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\thelpButton.setSize(30, 30);\n\t\thelpButton.setLocation(0, 312);\n\t\thelpButton.setFocusable(false);\n\t\thelpButton.setContentAreaFilled(false);\n\t\thelpButton.setBorderPainted(false);\n\t\t\n\t\thelpButton.addActionListener(new CartogramWizardShowURL(\n\t\t\t\"http://chorogram.choros.ch/scapetoad/help/b-other-layers.php\"));\n\t\t\n\t\tthis.add(helpButton);\n\n\t\t\n\t\n\t}",
"@Override\n public void actionPerformed(ActionEvent event)\n {\n TransformationsListener.getListener().setStarted(true);\n if (this.getName().equals(sACTION_TITLE))\n {\n ContentClassInsertionDialog dialog=new ContentClassInsertionDialog();\n if (dialog.getClassName()!=null)\n {\n ElementCollector.ReturnElement cCreatedElement=ReqToConTransformations.createContentClass(dialog.getClassName(),\n TransformationsListener.getListener().getPosition(),((Package)(dialog.getPackage())));\n\n int iAttributes=0;\n int iAssociations=0;\n \n if (dialog.getAttributesCheck())\n {\n iAttributes=ReqToConTransformations.addAttributesToContentClass(cCreatedElement.cClass, dialog.getAssociationsCheck());\n }\n\n if (dialog.getAssociationsCheck())\n {\n iAssociations=ReqToConTransformations.addAssociationsToContentClass(cCreatedElement.cClass,cCreatedElement.cShape);\n }\n \n MessageWriter.log(\"Content class \\\"\"+cCreatedElement.cClass.getName()+\"\\\" including \"+\n iAttributes+\" attributes and \"+iAssociations+\" associations created\",\n Logger.getLogger(ContentModelInsertion.class));\n }\n }\n TransformationsListener.getListener().setStarted(false);\n }",
"public exerciseAddGUI() {\n initComponents();\n }",
"public NewEntryWizard()\n {\n setNeedsProgressMonitor( true );\n }",
"public void ajouter(){\n Main.showPages(\"pageAjoutMateriel.fxml\");\n\n }",
"public void OpenRegisterNewCompany() throws IOException {\n Parent tripViewParent = FXMLLoader.load(getClass().getResource(\"companyRegister.fxml\")); // Carregando o arquivo fxml\n\n // Pegando informações da stage\n Stage window = new Stage();\n window.setResizable(false);\n window.setScene(new Scene(tripViewParent));\n window.show();\n }",
"public void testGenericWizards() {\n // open new project wizard\n NewProjectWizardOperator npwo = NewProjectWizardOperator.invoke();\n npwo.selectCategory(\"Java Web\");\n npwo.selectProject(\"Web Application\");\n npwo.next();\n // create operator for next page\n WizardOperator wo = new WizardOperator(\"Web Application\");\n JTextFieldOperator txtName = new JTextFieldOperator((JTextField) new JLabelOperator(wo, \"Project Name:\").getLabelFor());\n txtName.clearText();\n txtName.typeText(\"MyApp\");\n wo.cancel();\n }",
"public void btn_newEntry() throws IOException, SQLException {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"NewEntry.fxml\"));\n Parent parent = fxmlLoader.load();\n NewEntryController newEntryController = fxmlLoader.<NewEntryController>getController();\n newEntryController.setPresenter(presenter);\n newEntryController.fillComboBox();\n this.stageNewEntry = new Stage();\n stageNewEntry.setTitle(bundle.getString(\"entryNew.title\"));\n stageNewEntry.setScene(new Scene(parent, 400, 400));\n stageNewEntry.setAlwaysOnTop(true);\n stageNewEntry.setResizable(false);\n stageNewEntry.initModality(Modality.APPLICATION_MODAL);\n stageNewEntry.getIcons().add(new Image(String.valueOf(this.getClass().getResource(\"images/logo.png\"))));\n stageNewEntry.show();\n }",
"private void challengeStartNew() {\n FragmentManager fm = getSupportFragmentManager();\n FragmentNewChallenge newChallenge = FragmentNewChallenge.newInstance(\"Titel\");\n newChallenge.show(fm, \"fragment_start_new_challenge\");\n }",
"@FXML\n\t private void loadaddmember(ActionEvent event) throws IOException {\n\t \tloadwindow(\"views/addmember.fxml\", \"Add new Member\");\n\t }",
"public void OpenRegisterNewPhotographer() throws IOException {\n Parent tripViewParent = FXMLLoader.load(getClass().getResource(\"photographerRegister.fxml\")); // Carregando o arquivo fxml\n\n Stage window = new Stage();\n window.setResizable(false);\n window.setScene(new Scene(tripViewParent));\n window.show();\n }",
"@FXML\n void newComparison(ActionEvent event) {\n \ttry {\n \t\tFXMLLoader loader = new FXMLLoader();\n \t\tParent root = loader.load(getClass().getResource(\"ImportPanel.fxml\").openStream());\n \t\tUI ui = loader.getController();\n \t\tui.setStage(mStage);\n \t\t\n \t\tmStage.setTitle(\"Schedule Comparator\");\n \t\tmStage.setFullScreen(true);\n \t\tmStage.setResizable(false);\n \t\tmStage.setScene(new Scene(root));\n \t\tmStage.show();\n \t\t\n\t\t} catch (IOException e) {\n\t\t\t//System.out.println(\"Other Panel could not be loaded!\");\n\t\t\te.printStackTrace();\n\t\t}\n }",
"public void createNewButtonClicked(){\n loadNewScene(apptStackPane, \"Create_New_Appointment.fxml\");\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tadd();\n\t\t\t}",
"@Command\n public void nuevaMateria() {\n\t\t\n\t\tWindow window = (Window)Executions.createComponents(\n \"/WEB-INF/include/Mantenimiento/Materias/vtnMaterias.zul\", null, null);\n window.doModal();\n }",
"CartogramWizardOptionsWindow ()\n\t{\n\t\t\n\t\t// Set the window parameters.\n\t\tthis.setTitle(\"Advanced options\");\n\t\t\t\n\t\tthis.setSize(500, 580);\n\t\tthis.setLocation(40, 50);\n\t\tthis.setResizable(false);\n\t\tthis.setLayout(null);\n\t\tthis.setModal(true);\n\t\t\n\t\t\n\t\t\t\t\n\t\t// GRID LAYER CHECK BOX\n\t\tmGridLayerCheckBox = \n\t\t\tnew JCheckBox(\"Create a transformation grid layer\");\n\t\t\n\t\tmGridLayerCheckBox.setSelected(\n\t\t\tAppContext.cartogramWizard.getCreateGridLayer());\n\t\t\t\n\t\tmGridLayerCheckBox.setFont(new Font(null, Font.BOLD, 11));\n\t\tmGridLayerCheckBox.setLocation(20, 20);\n\t\tmGridLayerCheckBox.setSize(300, 26);\n\t\tthis.add(mGridLayerCheckBox);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// DEFORMATION GRID LAYER HELP TEXT\n\t\t\n\t\tClassLoader cldr = this.getClass().getClassLoader();\n\t\t\n\t\tJTextPane deformationGridPane = new JTextPane();\n\t\tString deformationText = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream inStream = \n\t\t\t\tcldr.getResource(\"DeformationGridLayerText.html\").openStream();\n\t\t\tStringBuffer inBuffer = new StringBuffer();\n\t\t\tint c;\n\t\t\twhile ((c = inStream.read()) != -1)\n\t\t\t{\n\t\t\t\tinBuffer.append((char)c);\n\t\t\t}\n\t\t\tinStream.close();\n\t\t\tdeformationText = inBuffer.toString();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\tdeformationGridPane.setContentType(\"text/html\");\n\t\tdeformationGridPane.setText(deformationText);\n\t\tdeformationGridPane.setEditable(false);\n\t\tdeformationGridPane.addHyperlinkListener(this);\n\t\tdeformationGridPane.setBackground(null);\n\t\tdeformationGridPane.setLocation(45, 45);\n\t\tdeformationGridPane.setSize(400, 30);\n\t\tthis.add(deformationGridPane);\n\t\t\n\t\t\n\t\t\n\t\t// GRID SIZE TEXT FIELD\n\t\tJLabel gridSizeLabel = new JLabel(\"Enter the number of rows:\");\n\t\tgridSizeLabel.setLocation(45, 85);\n\t\tgridSizeLabel.setSize(140, 26);\n\t\tgridSizeLabel.setFont(new Font(null, Font.PLAIN, 11));\n\t\tthis.add(gridSizeLabel);\n\t\t\n\t\tint gridSize = AppContext.cartogramWizard.getDeformationGridSize();\n\t\tString gridSizeString = \"\" + gridSize;\n\t\tmGridSizeTextField = new JTextField(gridSizeString);\n\t\tmGridSizeTextField.setLocation(240, 85);\n\t\tmGridSizeTextField.setSize(50, 26);\n\t\tmGridSizeTextField.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmGridSizeTextField.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tthis.add(mGridSizeTextField);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Separator\n\t\tJSeparator separator = new JSeparator(SwingConstants.HORIZONTAL);\n\t\tseparator.setLocation(20, 120);\n\t\tseparator.setSize(460, 10);\n\t\tthis.add(separator);\n\t\t\n\t\t\n\t\t\n\t\t// ADVANCED OPTIONS CHECK BOX\n\t\tmAdvancedOptionsCheckBox = \n\t\t\tnew JCheckBox(\"Define cartogram parameters manually\");\n\t\t\n\t\tmAdvancedOptionsCheckBox.setSelected(\n\t\t\tAppContext.cartogramWizard.getAdvancedOptionsEnabled());\n\t\t\t\n\t\tmAdvancedOptionsCheckBox.setFont(new Font(null, Font.BOLD, 11));\n\t\tmAdvancedOptionsCheckBox.setLocation(20, 140);\n\t\tmAdvancedOptionsCheckBox.setSize(360, 26);\n\t\tmAdvancedOptionsCheckBox.addChangeListener(this);\n\t\tthis.add(mAdvancedOptionsCheckBox);\n\t\t\n\t\t\n\t\t\n\t\t// Manual parameters text\n\t\tmManualParametersPane = new JTextPane();\n\t\tString manualParametersText = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream inStream = \n\t\t\t\tcldr.getResource(\"ManualParametersText.html\").openStream();\n\t\t\tStringBuffer inBuffer = new StringBuffer();\n\t\t\tint c;\n\t\t\twhile ((c = inStream.read()) != -1)\n\t\t\t{\n\t\t\t\tinBuffer.append((char)c);\n\t\t\t}\n\t\t\tinStream.close();\n\t\t\tmanualParametersText = inBuffer.toString();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\tmManualParametersPane.setContentType(\"text/html\");\n\t\tmManualParametersPane.setText(manualParametersText);\n\t\tmManualParametersPane.setEditable(false);\n\t\tmManualParametersPane.addHyperlinkListener(this);\n\t\tmManualParametersPane.setBackground(null);\n\t\tmManualParametersPane.setLocation(45, 170);\n\t\tmManualParametersPane.setSize(400, 30);\n\t\tmManualParametersPane.setEnabled(mAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mManualParametersPane);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Grid 1 text\n\t\tmGrid1Pane = new JTextPane();\n\t\tString grid1Text = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream inStream = \n\t\t\t\tcldr.getResource(\"Grid1Text.html\").openStream();\n\t\t\tStringBuffer inBuffer = new StringBuffer();\n\t\t\tint c;\n\t\t\twhile ((c = inStream.read()) != -1)\n\t\t\t{\n\t\t\t\tinBuffer.append((char)c);\n\t\t\t}\n\t\t\tinStream.close();\n\t\t\tgrid1Text = inBuffer.toString();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\tmGrid1Pane.setContentType(\"text/html\");\n\t\tmGrid1Pane.setText(grid1Text);\n\t\tmGrid1Pane.setEditable(false);\n\t\tmGrid1Pane.addHyperlinkListener(this);\n\t\tmGrid1Pane.setBackground(null);\n\t\tmGrid1Pane.setLocation(45, 210);\n\t\tmGrid1Pane.setSize(400, 60);\n\t\tmGrid1Pane.setEnabled(mAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mGrid1Pane);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Cartogram grid size\n\t\tmCartogramGridSizeLabel = \n\t\t\tnew JLabel(\"Enter the number of grid rows:\");\n\t\t\t\n\t\tmCartogramGridSizeLabel.setLocation(45, 270);\n\t\tmCartogramGridSizeLabel.setSize(170, 26);\n\t\tmCartogramGridSizeLabel.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmCartogramGridSizeLabel.setEnabled(\n\t\t\tmAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mCartogramGridSizeLabel);\n\t\t\n\t\tint cgGridSizeX = AppContext.cartogramWizard.getCartogramGridSizeInX();\n\t\tint cgGridSizeY = AppContext.cartogramWizard.getCartogramGridSizeInY();\n\t\tint cgGridSize = Math.max(cgGridSizeX, cgGridSizeY);\n\t\tString cgGridSizeString = \"\" + cgGridSize;\n\t\tmCartogramGridSizeTextField = new JTextField(cgGridSizeString);\n\t\tmCartogramGridSizeTextField.setLocation(240, 270);\n\t\tmCartogramGridSizeTextField.setSize(50, 26);\n\t\tmCartogramGridSizeTextField.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmCartogramGridSizeTextField.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tmCartogramGridSizeTextField.setEnabled(\n\t\t\tmAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mCartogramGridSizeTextField);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Grid 2 text\n\t\tmGrid2Pane = new JTextPane();\n\t\tString grid2Text = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream inStream = \n\t\t\t\tcldr.getResource(\"Grid2Text.html\").openStream();\n\t\t\tStringBuffer inBuffer = new StringBuffer();\n\t\t\tint c;\n\t\t\twhile ((c = inStream.read()) != -1)\n\t\t\t{\n\t\t\t\tinBuffer.append((char)c);\n\t\t\t}\n\t\t\tinStream.close();\n\t\t\tgrid2Text = inBuffer.toString();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\tmGrid2Pane.setContentType(\"text/html\");\n\t\tmGrid2Pane.setText(grid2Text);\n\t\tmGrid2Pane.setEditable(false);\n\t\tmGrid2Pane.addHyperlinkListener(this);\n\t\tmGrid2Pane.setBackground(null);\n\t\tmGrid2Pane.setLocation(45, 315);\n\t\tmGrid2Pane.setSize(400, 50);\n\t\tmGrid2Pane.setEnabled(mAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mGrid2Pane);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Diffusion grid size\n\t\tmDiffusionGridSizeLabel = new JLabel(\"Diffusion grid size:\");\n\t\tmDiffusionGridSizeLabel.setLocation(45, 365);\n\t\tmDiffusionGridSizeLabel.setSize(170, 26);\n\t\tmDiffusionGridSizeLabel.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmDiffusionGridSizeLabel.setEnabled(\n\t\t\tmAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mDiffusionGridSizeLabel);\n\t\t\n\t\tmDiffusionGridMenu = new JComboBox();\n\t\tmDiffusionGridMenu.setBounds(240, 365, 100, 26);\n\t\tmDiffusionGridMenu.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmDiffusionGridMenu.setEnabled(mAdvancedOptionsCheckBox.isSelected());\n\t\tmDiffusionGridMenu.addItem(\"64\");\n\t\tmDiffusionGridMenu.addItem(\"128\");\n\t\tmDiffusionGridMenu.addItem(\"256\");\n\t\tmDiffusionGridMenu.addItem(\"512\");\n\t\tmDiffusionGridMenu.addItem(\"1024\");\n\t\t\n\t\tString strGridSize = \n\t\t\t\"\" + AppContext.cartogramWizard.getDiffusionGridSize();\n\t\t\t\n\t\tmDiffusionGridMenu.setSelectedItem(strGridSize);\n\t\t\n\t\tthis.add(mDiffusionGridMenu);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Iterations text\n\t\tmIterPane = new JTextPane();\n\t\tString iterText = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream inStream = \n\t\t\t\tcldr.getResource(\"GastnerIterationsText.html\").openStream();\n\t\t\tStringBuffer inBuffer = new StringBuffer();\n\t\t\tint c;\n\t\t\twhile ((c = inStream.read()) != -1)\n\t\t\t{\n\t\t\t\tinBuffer.append((char)c);\n\t\t\t}\n\t\t\tinStream.close();\n\t\t\titerText = inBuffer.toString();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\tmIterPane.setContentType(\"text/html\");\n\t\tmIterPane.setText(iterText);\n\t\tmIterPane.setEditable(false);\n\t\tmIterPane.addHyperlinkListener(this);\n\t\tmIterPane.setBackground(null);\n\t\tmIterPane.setLocation(45, 405);\n\t\tmIterPane.setSize(400, 45);\n\t\tmIterPane.setEnabled(mAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mIterPane);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Iterations of diffusion algorithm\n\t\tmIterationsLabel = \n\t\t\tnew JLabel(\"Enter the number of iterations:\");\n\t\t\t\n\t\tmIterationsLabel.setLocation(45, 450);\n\t\tmIterationsLabel.setSize(190, 26);\n\t\tmIterationsLabel.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmIterationsLabel.setEnabled(mAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mIterationsLabel);\n\n\t\tmDiffusionIterationsTextField = new JTextField(\n\t\t\t\"\" + AppContext.cartogramWizard.getDiffusionIterations());\n\t\tmDiffusionIterationsTextField.setLocation(240, 450);\n\t\tmDiffusionIterationsTextField.setSize(50, 26);\n\t\tmDiffusionIterationsTextField.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmDiffusionIterationsTextField.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tmDiffusionIterationsTextField.setEnabled(\n\t\t\tmAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mDiffusionIterationsTextField);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Cancel button\n\t\tJButton cancelButton = new JButton(\"Cancel\");\n\t\tcancelButton.setLocation(270, 510);\n\t\tcancelButton.setSize(100, 26);\n\t\t\n\t\tcancelButton.addActionListener(new \n\t\t\tCartogramWizardAdvancedOptionsAction(\n\t\t\t\"closeDialogWithoutSaving\", this));\n\t\t\t\n\t\tthis.add(cancelButton);\n\t\t\n\t\t\n\t\t// Ok button\n\t\tJButton okButton = new JButton(\"OK\");\n\t\tokButton.setLocation(380, 510);\n\t\tokButton.setSize(100, 26);\n\t\t\n\t\tokButton.addActionListener(new \n\t\t\tCartogramWizardAdvancedOptionsAction(\n\t\t\t\"closeDialogWithSaving\", this));\n\t\t\t\n\t\tthis.add(okButton);\n\t\t\n\n\n\n\t\t// ADD THE HELP BUTTON\n\t\t\t\t\n\t\tjava.net.URL imageURL = cldr.getResource(\"help-22.png\");\n\t\tImageIcon helpIcon = new ImageIcon(imageURL);\n\n\t\tJButton helpButton = \n\t\t\tnew JButton(helpIcon);\n\t\t\n\t\thelpButton.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\thelpButton.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\thelpButton.setSize(30, 30);\n\t\thelpButton.setLocation(20, 510);\n\t\thelpButton.setFocusable(false);\n\t\thelpButton.setContentAreaFilled(false);\n\t\thelpButton.setBorderPainted(false);\n\t\t\n\t\thelpButton.addActionListener(new CartogramWizardShowURL(\n\t\t\t\"http://chorogram.choros.ch/scapetoad/help/c-transformation-parameters.php#advanced-options\"));\n\t\t\n\t\tthis.add(helpButton);\n\n\n\n\t\n\t}",
"@Override\r\n\tpublic void addPages() {\n\t\tprojectPage = new NewProjectWizardPage();\r\n\t\taddPage(projectPage);\r\n\t}",
"private void addNewConnection() {\n\t\t IWizard wizard = new NewJmxConnectionWizard();\n\t\t WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), wizard);\n\t\t dialog.open();\n\t\t\n\t}",
"@FXML\n void onActionAddCustomer(ActionEvent event) throws IOException {\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(Objects.requireNonNull(getClass().getResource(\"/Views/AddCustomer.fxml\")));\n stage.setScene(new Scene(scene));\n stage.show();\n }",
"private void addItemScreen() {\n \tIntent intent = new Intent(this, ItemEditor.class);\n \tstartActivity(intent);\n }",
"public void setupImport() {\r\n\t\tmnuImport.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tnew ImportGUI();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"@FXML\n public void OAAddAppointment(ActionEvent event) throws IOException {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/View/AddAppointment.fxml\"));\n Parent add = (Parent) fxmlLoader.load();\n Stage stage = new Stage();\n stage.setScene(new Scene(add));\n stage.show();\n }",
"@OptionsItem(R.id.add_icon)\n void menuAddButton() {\n Intent intent = new Intent(this, FoodWizardPagerActivity.class);\n startActivity(intent);\n finish(); // kill the current activity\n }",
"public void openSaveSelection() {\n\t\ttry {\n\t\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/SaveSelectionView.fxml\"));\n\t\t\tfxmlLoader.setResources(bundle);\n\t\t\tParent root1 = (Parent) fxmlLoader.load();\n\t\t\tStage stage = new Stage();\n\t\t\tSaveSelectionController ssc = fxmlLoader.getController();\n\t\t\tssc.setMainController(this);\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\t\t// stage.initStyle(StageStyle.UNDECORATED);\n\t\t\tstage.setTitle(bundle.getString(\"sSHeaderLabel\"));\n\t\t\tstage.setScene(new Scene(root1));\n\t\t\tstage.show();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void actionNewProject ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDataController.scenarioNewProject();\r\n\r\n\t\t\thelperDisplayProjectFiles();\r\n\r\n\t\t\t//---- Change button icon\r\n\t\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_VIEW_SAMPLES);\r\n\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setIcon(iconButton);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setActionCommand(FormMainHandlerCommands.AC_VIEW_SAMPLES_ON);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setToolTipText(\"View detected samples\");\r\n\r\n\t\t\tmainFormLink.reset();\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tITransformation selectedTransformation = transformations[transformationSelectionBox.getSelectedIndex()];\n\t\t\t\t\n\t\t\t\t// change the parameter selection panel card based on the selected transformation\n\t\t\t\tCardLayout cl = (CardLayout) (parameterSelectionPanel.getLayout());\n\t\t\t cl.show(parameterSelectionPanel, selectedTransformation.toString());\n\t\t\t\t\n\t\t\t\t// transform the image\n\t\t\t\tselectedTransformation.transform();\n\t\t\t}",
"private void actionAddFile ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tJFileChooser fileChooserDriver = new JFileChooser();\r\n\r\n\t\t\tint isFileSelected = fileChooserDriver.showOpenDialog(fileChooserDriver);\r\n\r\n\t\t\tif (isFileSelected == JFileChooser.APPROVE_OPTION)\r\n\t\t\t{\r\n\t\t\t\tString filePath = fileChooserDriver.getSelectedFile().getPath();\r\n\t\t\t\tDataController.scenarioAddFile(filePath);\r\n\r\n\t\t\t\thelperDisplayProjectFiles();\r\n\t\t\t\thelperDisplayInputImage();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\r\n\t}",
"private void onAddPatient() {\n\t\tGuiManager.openFrame(GuiManager.FRAME_ADD_PATIENT);\n\t}",
"@FXML\n void addNewCustomer(ActionEvent event) throws IOException {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/view/AddCustomer.fxml\"));\n loader.load();\n\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n Parent scene = loader.getRoot();\n stage.setScene(new Scene(scene));\n stage.show();\n }",
"@FXML\r\n public void onActionToAddProductScreen(ActionEvent actionEvent) throws IOException {\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/addProduct.fxml\"));\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 980, 560);\r\n stage.setTitle(\"Add Product\");\r\n stage.setScene(scene);\r\n stage.show();\r\n }",
"@FXML\n void OnActionAddAppointment(ActionEvent event) throws IOException {\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/View/AddAppointment.fxml\"));\n stage.setTitle(\"Add Appointment\");\n stage.setScene(new Scene(scene));\n stage.show();\n }",
"CartogramWizardPanelOne (JFrame contentFrame)\n\t{\n\t\t\n\t\tmCartogramWizard = (CartogramWizard)contentFrame;\n\t\n\t\tint width = 440;\n\t\tint height = 340;\n\t\n\t\tthis.setLocation(160, 90);\n\t\tthis.setSize(width, height);\n\t\tthis.setLayout(null);\n\t\t\t\t\n\t\t\n\t\t// Add the Next button\n\t\tmNextButton = new JButton(\"Next >\");\n\t\tmNextButton.setLocation(340, 314);\n\t\tmNextButton.setSize(100, 26);\n\t\tmNextButton.setMnemonic(KeyEvent.VK_ACCEPT);\n\t\t\n\t\tmNextButton.addActionListener(new\n\t\t\tCartogramWizardGoToStepAction(mCartogramWizard, 2));\n\t\t\n\t\tthis.add(mNextButton);\n\t\t\n\t\t\n\t\t// Add the Back button\n\t\tJButton backButton = new JButton(\"< Back\");\n\t\tbackButton.setLocation(235, 314);\n\t\tbackButton.setSize(100, 26);\n\t\t\n\t\tbackButton.addActionListener(new\n\t\t\tCartogramWizardGoToStepAction(mCartogramWizard, 0));\n\t\t\t\n\t\tthis.add(backButton);\n\t\t\n\t\t\n\t\t// Add a pop-up menu with the list of available layers.\n\t\t\n\t\tJLabel layerMenuLabel = new JLabel(\"Spatial coverage:\");\n\t\tlayerMenuLabel.setFont(new Font(null, Font.PLAIN, 11));\n\t\tlayerMenuLabel.setBounds(0, 0, 190, 14);\n\t\tthis.add(layerMenuLabel);\n\t\t\n\t\tmLayerMenu = new JComboBox();\n\t\tmLayerMenu.setBounds(0, 20, 190, 26);\n\t\tmLayerMenu.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmLayerMenu.setMaximumRowCount(20);\n\t\t\n\t\t// Add all polygon layers to the list.\n\t\tint nlayers = AppContext.layerManager.size();\n\t\t\n\t\t// Check for each layer whether it is a polygon layer or not.\n\t\tfor (int lyrcnt = 0; lyrcnt < nlayers; lyrcnt++)\n\t\t{\n\t\t\tLayer lyr = AppContext.layerManager.getLayer(lyrcnt);\n\t\t\tFeatureCollectionWrapper fcw = lyr.getFeatureCollectionWrapper();\n\t\t\tint nfeat = fcw.size();\n\t\t\tif (nfeat > 0)\n\t\t\t{\n\t\t\t\tFeature feat = (Feature)fcw.getFeatures().get(0);\n\t\t\t\tGeometry geom = feat.getGeometry();\n\t\t\t\tif (geom.getArea() != 0.0)\n\t\t\t\t{\n\t\t\t\t\tmLayerMenu.addItem(lyr.getName());\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t// If there is no layer for the cartogram deformation,\n\t\t// add a menu item \"<none>\" and disable the \"Next\" button.\n\t\tif (mLayerMenu.getItemCount() == 0)\n\t\t{\n\t\t\tmLayerMenu.addItem(\"<none>\");\n\t\t\tmNextButton.setEnabled(false);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmNextButton.setEnabled(true);\n\t\t}\n\t\t\n\t\t\t\n\t\tthis.add(mLayerMenu);\n\t\t\n\t\t\n\t\t\n\t\t// Adding the polygon image\n\t\tClassLoader cldr = this.getClass().getClassLoader();\n\t\tURL iconURL = cldr.getResource(\"Topology.png\");\n\t\tImageIcon topologyImage = new ImageIcon(iconURL);\n\n\t\t// Create a new label containing the image.\n\t\tJLabel iconLabel = new JLabel(topologyImage);\n\t\t\n\t\t// Setting the label parameters.\n\t\ticonLabel.setLayout(null);\n\t\ticonLabel.setSize(192, 239);\n\t\ticonLabel.setLocation(240, 30);\n\t\t\n\t\t// Add the icon label to this panel.\n\t\tthis.add(iconLabel);\n\t\t\n\t\t\n\t\t\n\t\t// Adding the explanatory text.\n\t\t// The message itself is read from a RTF file.\n\t\tJTextPane layerMenuTextPane = new JTextPane();\n\t\n\t\t// Get the content from the text file.\n\t\tString layerMenuText = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream inStream = \n\t\t\t\tcldr.getResource(\"LayerMenuText.rtf\").openStream();\n\t\t\t\t\n\t\t\tStringBuffer inBuffer = new StringBuffer();\n\t\t\tint c;\n\t\t\t\n\t\t\twhile ((c = inStream.read()) != -1)\n\t\t\t{\n\t\t\t\tinBuffer.append((char)c);\n\t\t\t}\n\t\t\t\n\t\t\tinStream.close();\n\t\t\tlayerMenuText = inBuffer.toString();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\t\n\t\tlayerMenuTextPane.setContentType(\"text/rtf\");\n\t\tlayerMenuTextPane.setText(layerMenuText);\n\t\tlayerMenuTextPane.setEditable(false);\n\t\tlayerMenuTextPane.setFont(new Font(null, Font.PLAIN, 11));\n\t\tlayerMenuTextPane.setBackground(null);\n\t\tlayerMenuTextPane.setLocation(0, 60);\n\t\tlayerMenuTextPane.setSize(220, 240);\n\t\tthis.add(layerMenuTextPane);\n\t\t\n\t\t\n\t\t\n\t\t// ADD THE HELP BUTTON\n\t\t\n\t\t//ClassLoader cldr = this.getClass().getClassLoader();\n\t\t\n\t\tjava.net.URL imageURL = cldr.getResource(\"help-22.png\");\n\t\tImageIcon helpIcon = new ImageIcon(imageURL);\n\n\t\tJButton helpButton = \n\t\t\tnew JButton(helpIcon);\n\t\t\n\t\thelpButton.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\thelpButton.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\thelpButton.setSize(30, 30);\n\t\thelpButton.setLocation(0, 312);\n\t\thelpButton.setFocusable(false);\n\t\thelpButton.setContentAreaFilled(false);\n\t\thelpButton.setBorderPainted(false);\n\t\t\n\t\thelpButton.addActionListener(new CartogramWizardShowURL(\n\t\t\t\"http://chorogram.choros.ch/scapetoad/help/a-cartogram-creation.php#cartogram-layer\"));\n\t\t\n\t\tthis.add(helpButton);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@FXML\r\n void onActionAddAppointment(ActionEvent event) throws IOException {\r\n\r\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/view/AddAppointment.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n\r\n }",
"@FXML\r\n public void onActionAddPartScreen(ActionEvent actionEvent) throws IOException {\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/addPartInhouse.fxml\"));\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 800, 470);\r\n stage.setTitle(\"Add In-house Part\");\r\n stage.setScene(scene);\r\n stage.show();\r\n }",
"@FXML\n\tvoid addNewTest(MouseEvent event) {\n\t\ttry {\n\t\t\taddNewTest = FXMLLoader.load(getClass().getResource(Navigator.ADDING_NEW_TEST.getVal()));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tGeneralUIMethods.loadPage(contentPaneAnchor, addNewTest);\n\t}",
"public void addPages() {\n\t\tpage = new NewTotoriWizardPage(selection);\n\t\taddPage(page);\n\t}",
"@Override\r\n\tpublic void execute() {\r\n\t\tCreateOperatorWizard wizard = new CreateOperatorWizard(\r\n\t\t\t\t\"TypeOfOperator\");\r\n\t\tWizardDialog dialog = new WizardDialog(shell, wizard);\r\n\t\tdialog.create();\r\n\t\tdialog.getShell().setSize(280, 325);\r\n\r\n\t\tdialog.setTitle(\"Set Operator Wizard\");\r\n\t\tif (dialog.open() == WizardDialog.OK) {\r\n\t\t\ttype = wizard.getType();\r\n\t\t\tnum = wizard.getNum();\r\n\t\t}\r\n\t\toperator.setType(type);\r\n\t\tif(!num.equals(\"\")){\r\n\t\t\toperator.setNum(Integer.parseInt(num));\r\n\t\t}\r\n\t\tparent.addChild(operator);\r\n\t\toperator.setLocation(bounds.getLocation());//这一行以及下一行代码解决了,operator创建的point的问题\r\n\t\toperator.setSize(bounds.getSize());\r\n\t}",
"public void openAddClientAdm(ActionEvent event) throws IOException {\n\t\tFXMLLoader addClientFxml = new FXMLLoader(getClass().getResource(\"Add-Client.fxml\"));\n\t\taddClientFxml.setController(this);\n\t\tParent addRoot = addClientFxml.load();\n\t\tmainPane_AdministratorOptionsWindow.getChildren().setAll(addRoot);\n\t}",
"public ADD_OFFICER() {\n initComponents();\n filltf();\n jLabel12.setText(\"Select a file\");\n setLocationRelativeTo(null);\n }",
"@FXML\n void openAddEventWindow() {\n\n// replaces Element list with Add Timeline window\n menuPane.setContent(addEventScene.getRoot());\n\n// adds Timelines to timeline ChoiceBox\n timelineChoice.getItems().clear();\n for (Timeline timeline : app.timelines)\n timelineChoice.getItems().add(timeline.name);\n\n// removes unnecessary buttons, shows cancel button\n toggleMenuButtonVisibility(false);\n cancelEventButton.setVisible(true);\n\n window.setTitle(\"Timelines: Add Event\");\n }",
"public ADD() {\n initComponents();\n }",
"public ElegirTipoBienWizard(String locale)\r\n {\r\n \t this.locale=locale;\r\n try{\r\n initComponents();\r\n renombrarComponentes();\r\n \r\n } catch (Exception e){\r\n logger.error(\"Error al importar actividades economicas\",e);\r\n }\r\n }",
"public NewPageWizard(IXWikiSpace sapce)\n {\n super();\n setWindowTitle(\"Add New Page...\");\n setNeedsProgressMonitor(false);\n this.space = sapce;\n }",
"private void openAddDialog(){\n DialogFragment dialog = new AddLocationDialog();\n dialog.show(getFragmentManager(), getText(R.string.map_ask_add).toString());\n }",
"private void showAddWayPointActivity() {\n Intent intent = new Intent(this, ActivityNewWaypoint.class);\n this.startActivityForResult(intent,CREATE_WAYPOINT_REQUEST);\n }",
"protected void do_mntmStartNewForm_actionPerformed(ActionEvent arg0) {\n\t\tthis.dispose();\n\t\tmain(null);\n\t}",
"@FXML\n public void addGames() throws IOException {\n Stage stage = (Stage) btnEdit.getScene().getWindow();\n Parent root = FXMLLoader.load(getClass().getResource(\"GameEditInterface.fxml\"));\n\n Scene scene = new Scene(root);\n stage.setScene(scene);\n stage.show();\n }",
"public Add() {\n initComponents();\n }",
"private void onAddGoalsClicked() {\n Intent intent = new Intent(this, GoalCreationActivity.class);\n startActivity(intent);\n }",
"public void testNewFile() {\n // create a new package\n // \"Java Classes\"\n String javaClassesLabel = Bundle.getString(\"org.netbeans.modules.java.project.Bundle\", \"Templates/Classes\");\n NewJavaFileWizardOperator.create(SAMPLE_PROJECT_NAME, javaClassesLabel, \"Java Package\", null, SAMPLE1_PACKAGE_NAME);\n // wait package node is created\n Node sample1Node = new Node(new SourcePackagesNode(SAMPLE_PROJECT_NAME), SAMPLE1_PACKAGE_NAME);\n\n // create a new classes\n\n NewFileWizardOperator.invoke(sample1Node, javaClassesLabel, \"Java Main Class\");\n NewJavaFileNameLocationStepOperator nameStepOper = new NewJavaFileNameLocationStepOperator();\n nameStepOper.setObjectName(SAMPLE1_CLASS_NAME);\n nameStepOper.finish();\n // check class is opened in Editor\n new EditorOperator(SAMPLE1_FILE_NAME);\n NewFileWizardOperator.invoke(sample1Node, javaClassesLabel, \"Java Main Class\");\n nameStepOper = new NewJavaFileNameLocationStepOperator();\n nameStepOper.setObjectName(SAMPLE2_CLASS_NAME);\n nameStepOper.finish();\n // check class is opened in Editor and then close all documents\n new EditorOperator(SAMPLE2_FILE_NAME).closeAllDocuments();\n }",
"@FXML\r\n\tvoid add_btn_clicked(MouseEvent event) {\r\n\t\tswitchScenes(\"/client/boundry/MarketingAgentSalesAddForm.fxml\",\r\n\t\t\t\t\"/client/boundry/MarketingAgentMainCustomer.css\");\r\n\r\n\t}",
"public void actionPerformed(ActionEvent e) {\n \tJFileChooser jfc = new JFileChooser();\n int retValue = jfc.showOpenDialog(KrokiMockupToolApp.getInstance().getKrokiMockupToolFrame());\n if (retValue == JFileChooser.APPROVE_OPTION) {\n File file = jfc.getSelectedFile();\n System.out.println(\"opening from file: \" + file.getAbsolutePath());\n Workspace workspace = null;\n try {\n workspace = (Workspace) SaveUtil.loadXStream(file);\n //KrokiMockupToolApp.getInstance().getWorkspace().addBussinesSubsystem(bussinesSubsystem);\n KrokiMockupToolApp.getInstance().setWorkspace(workspace);\n KrokiMockupToolApp.getInstance().getKrokiMockupToolFrame().getTree().updateUI();\n } catch (Exception ex) {\n \tex.printStackTrace();\n JOptionPane.showMessageDialog(KrokiMockupToolApp.getInstance().getKrokiMockupToolFrame(), \"Opening failed.\");\n }\n\n } else {\n System.out.println(\"opening canceled: \");\n }\n }",
"public add_edit() {\n initComponents();\n \n this.setLocationRelativeTo(null);\n }",
"@FXML\r\n void onActionAddCustomer(ActionEvent event) throws IOException {\r\n\r\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/view/AddCustomer.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n\r\n\r\n }",
"@Override\n\tpublic void perform() {\n\t\tcontrol.openSkillEditor();\n\t}",
"public AddBreakdown() {\n initComponents();\n }",
"private void showAddImageDialog() {\n new AddImageDialog()\n .show(this, new AddImageDialog.OnCompleteListener() {\n @Override\n public void onImageAdded(Item item) {\n inflateViewForItem(item);\n }\n\n @Override\n public void onError(String error) {\n new MaterialAlertDialogBuilder(MainActivity.this)\n .setTitle(\"Error\")\n .setMessage(error)\n .show();\n }\n });\n }",
"private void convert(IProject project, AcceleoProjectWizard wizard, IProgressMonitor monitor) {\n \t\tString projectName = wizard.newProjectPage.getProjectName();\n \t\tString generatorName = this.computeGeneratorName(projectName);\n \n \t\tAcceleoProject acceleoProject = AcceleowizardmodelFactory.eINSTANCE.createAcceleoProject();\n \t\tacceleoProject.setName(projectName);\n \t\tacceleoProject.setGeneratorName(generatorName);\n \n \t\tList<AcceleoModule> allModules = this.newAcceleoModulesCreationPage.getAllModules();\n \t\tfor (AcceleoModule acceleoModule : allModules) {\n \t\t\tString parentFolder = acceleoModule.getParentFolder();\n \n \t\t\tIProject moduleProject = ResourcesPlugin.getWorkspace().getRoot().getProject(\n \t\t\t\t\tacceleoModule.getProjectName());\n \t\t\tif (moduleProject.exists() && moduleProject.isAccessible()\n \t\t\t\t\t&& acceleoModule.getModuleElement() != null\n \t\t\t\t\t&& acceleoModule.getModuleElement().isIsMain()) {\n \t\t\t\tIPath parentFolderPath = new Path(parentFolder);\n \t\t\t\tIFolder folder = moduleProject.getFolder(parentFolderPath.removeFirstSegments(1));\n \t\t\t\tacceleoProject.getExportedPackages().add(\n \t\t\t\t\t\tfolder.getProjectRelativePath().removeFirstSegments(1).toString().replaceAll(\"/\", //$NON-NLS-1$\n \t\t\t\t\t\t\t\t\"\\\\.\")); //$NON-NLS-1$\n \t\t\t}\n \t\t}\n \t\t// Prepare Ant folder\n \t\tIFolder antTasksFolder = project.getFolder(\"tasks\"); //$NON-NLS-1$\n \t\tif (!antTasksFolder.exists()) {\n \t\t\ttry {\n \t\t\t\tantTasksFolder.create(true, false, monitor);\n \t\t\t} catch (CoreException e) {\n \t\t\t\tAcceleoUIActivator.log(e, true);\n \t\t\t}\n \t\t}\n \n \t\t// Generate files\n \t\ttry {\n \t\t\tIProjectDescription description = project.getDescription();\n \t\t\tString[] natureIds = new String[] {IAcceleoConstants.ACCELEO_NATURE_ID,\n \t\t\t\t\tIAcceleoConstants.PLUGIN_NATURE_ID, IAcceleoConstants.JAVA_NATURE_ID, };\n \t\t\tdescription.setNatureIds(natureIds);\n \t\t\tproject.setDescription(description, monitor);\n \t\t} catch (CoreException e) {\n \t\t\tAcceleoUIActivator.log(e, true);\n \t\t}\n \t\tmonitor.beginTask(AcceleoUIMessages.getString(\"AcceleoNewProjectWizard.Monitor\"), 100); //$NON-NLS-1$\n \t\tmonitor.worked(10);\n \t\tAcceleoUIGenerator.getDefault().generateProjectSettings(acceleoProject, project);\n \t\tmonitor.worked(10);\n \t\tAcceleoUIGenerator.getDefault().generateProjectClasspath(acceleoProject, project);\n \t\tmonitor.worked(10);\n \t\tAcceleoUIGenerator.getDefault().generateProjectManifest(acceleoProject, project);\n \t\tmonitor.worked(10);\n \t\tAcceleoUIGenerator.getDefault().generateBuildProperties(acceleoProject, project);\n \t\tmonitor.worked(10);\n \t\tAcceleoUIGenerator.getDefault().generateActivator(acceleoProject, project);\n \n \t\tfor (AcceleoModule acceleoModule : allModules) {\n \t\t\tmonitor.worked(10);\n \t\t\tString parentFolder = acceleoModule.getParentFolder();\n \n \t\t\tIProject moduleProject = ResourcesPlugin.getWorkspace().getRoot().getProject(\n \t\t\t\t\tacceleoModule.getProjectName());\n \t\t\tif (moduleProject.exists() && moduleProject.isAccessible()) {\n \t\t\t\tIPath parentFolderPath = new Path(parentFolder);\n \t\t\t\tIFolder folder = moduleProject.getFolder(parentFolderPath.removeFirstSegments(1));\n \t\t\t\tAcceleoUIGenerator.getDefault().generateAcceleoModule(acceleoModule, folder);\n \n \t\t\t\tif (acceleoModule.isIsInitialized()) {\n \t\t\t\t\tString initializationKind = acceleoModule.getInitializationKind();\n \t\t\t\t\tIAcceleoInitializationStrategy strategy = null;\n \t\t\t\t\tList<IAcceleoInitializationStrategy> initializationStrategy = AcceleoInitializationStrategyUtils\n \t\t\t\t\t\t\t.getInitializationStrategy();\n \t\t\t\t\tfor (IAcceleoInitializationStrategy iAcceleoInitializationStrategy : initializationStrategy) {\n \t\t\t\t\t\tif (iAcceleoInitializationStrategy.getDescription() != null\n \t\t\t\t\t\t\t\t&& iAcceleoInitializationStrategy.getDescription().equals(initializationKind)) {\n \t\t\t\t\t\t\tstrategy = iAcceleoInitializationStrategy;\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tIFile file = folder.getFile(acceleoModule.getName()\n \t\t\t\t\t\t\t+ \".\" + IAcceleoConstants.MTL_FILE_EXTENSION); //$NON-NLS-1$\n \t\t\t\t\tIFile exampleFile = ResourcesPlugin.getWorkspace().getRoot().getFile(\n \t\t\t\t\t\t\tnew Path(acceleoModule.getInitializationPath()));\n \n \t\t\t\t\tString moduleElementKind = IAcceleoInitializationStrategy.TEMPLATE_KIND;\n \t\t\t\t\tif (acceleoModule.getModuleElement().getKind().equals(ModuleElementKind.QUERY)) {\n \t\t\t\t\t\tmoduleElementKind = IAcceleoInitializationStrategy.QUERY_KIND;\n \t\t\t\t\t}\n \n \t\t\t\t\tif (strategy != null && file.exists()) {\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tstrategy.configure(moduleElementKind, acceleoModule.getModuleElement()\n \t\t\t\t\t\t\t\t\t.isGenerateFile(), acceleoModule.getModuleElement().isIsMain(),\n \t\t\t\t\t\t\t\t\tacceleoModule.isGenerateDocumentation());\n \t\t\t\t\t\t\tString content = strategy.getContent(exampleFile, acceleoModule.getName(),\n \t\t\t\t\t\t\t\t\tacceleoModule.getMetamodelURIs(), acceleoModule.getModuleElement()\n \t\t\t\t\t\t\t\t\t\t\t.getParameterType());\n \t\t\t\t\t\t\tByteArrayInputStream javaStream = new ByteArrayInputStream(content\n \t\t\t\t\t\t\t\t\t.getBytes(\"UTF8\")); //$NON-NLS-1$\n \t\t\t\t\t\t\tfile.setContents(javaStream, true, false, new NullProgressMonitor());\n \t\t\t\t\t\t} catch (CoreException e) {\n \t\t\t\t\t\t\tAcceleoUIActivator.log(e, true);\n \t\t\t\t\t\t} catch (UnsupportedEncodingException e) {\n \t\t\t\t\t\t\tAcceleoUIActivator.log(e, true);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \n \t\t}\n \n \t}",
"@FXML\n void OnActionShowAddCustomerScreen(ActionEvent event) throws IOException {\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/View/AddCustomer.fxml\"));\n stage.setTitle(\"Add Customer\");\n stage.setScene(new Scene(scene));\n stage.show();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jTextField1 = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jFormattedTextField1 = new javax.swing.JFormattedTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Aņadir material\");\n setLocationByPlatform(true);\n\n jPanel1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jPanel1MouseClicked(evt);\n }\n });\n\n jLabel1.setText(\"Nombre\");\n\n jLabel2.setText(\"Precio \");\n\n jButton1.setText(\"OK\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Cancel\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jFormattedTextField1.setFormatterFactory(StartWizard.getMyFormatter());\n jFormattedTextField1.setInputVerifier(StartWizard.getVerifier());\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(227, Short.MAX_VALUE)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2)))\n .addGap(25, 25, 25))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButton1, jButton2});\n\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 37, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n }",
"@FXML\n public void newMedico() {\n new MedicoPaneCadastroController().abrirJanela(\"./View/MedicoPaneCadastro.fxml\", \"Novo Médico\", null);\n populaTabela();\n\n }",
"public void openDialog(){\n if (!isAdded()) return;\n homeViewModel.getAllSets().removeObservers(getViewLifecycleOwner());\n ChooseSetDialog dialog = new ChooseSetDialog(setsTitles);\n dialog.show(getChildFragmentManager(), \"choose_set_dialog\");\n dialog.setOnSelectedListener(choice -> {\n Word word = new Word(setsObjects.get(choice).getId(), original, translation);\n homeViewModel.insertWord(word);\n original=\"\"; translation=\"\";\n etOrigWord.setText(\"\"); etTransWord.setText(\"\");\n });\n }",
"@FXML\n private void goToAddEvent(ActionEvent event){\n SceneManager.navigate(SceneName.ADDEVENT);\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\taddNewItem();\n\t\t\t}",
"public void addPages() {\n\t\t\n\t\tProjectUtils projectUtils = new ProjectUtils();\n\t\tIProject proj = projectUtils.getProject(selection);\n\t\t\n\t\t\n\t\t\n\t\tDb db = loadDBParams();\n\t\tDBConnection dbConn = new DBConnection();\n\t\tConnection connection = null;\n\t\t\n\t\t\n\t\ttry {\n\t\t\tconnection = dbConn.loadDriver(proj.getLocation()+\"/\"+db.getDriverClassPath(), db.getDriverClass(), db.getDatabaseURL(), db.getUserName(), db.getPassWord());\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\tpage = new SmartNewWizardPage(selection, connection, proj.getLocation().toString());\n\t\taddPage(page);\n\n\t}",
"public void importButtonClicked() {\n DialogService dialogService = Injector.instantiateModelOrService(DialogService.class);\n ImportEntriesDialog dialog = new ImportEntriesDialog(databaseContext, BackgroundTask.wrap(() -> new ParserResult(resolverResult.getNewEntries())));\n dialog.setTitle(Localization.lang(\"Import entries from LaTeX files\"));\n dialogService.showCustomDialogAndWait(dialog);\n }",
"@FXML\n private void goToCreateProgram(ActionEvent event) throws IOException {\n\n CreateProgramController createProgramController = new CreateProgramController();\n Program programEntity = createProgramController.openView(event);\n createProgram.setSelected(false);\n if (programEntity != null && programListController != null)\n {\n if (programListController.listOfPrograms != null)\n {\n programListController.listOfPrograms.add(programEntity);\n programListController.updateProgramList();\n UsermanagementUtilities.setFeedback(event,\"The program was created\",true);\n }\n } else {\n UsermanagementUtilities.setFeedback(event,\"The program was not created\",false);\n }\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t{\n\t\t\n\t\t// Hide the 3rd wizard panel.\n\t\tmCartogramWizard.getPanelFour().setVisible(false);\n\t\t\n\t\t// Show the running panel.\n\t\tmCartogramWizard.getRunningPanel().setVisible(true);\n\t\t\n\t\tmCartogramWizard.getWizardStepIconPanel().setStepIcon(6);\n\t\t\n\t\t\n\t\t// Get the name of the selected layer.\n\t\tString selectedLayer = mCartogramWizard.getCartogramLayerName();\n\t\t\n\t\t// Get the name of the selected attribute.\n\t\tString selectedAttribute = mCartogramWizard.getCartogramAttributeName();\n\t\t\n\t\t// Get the attribute type (population or density value).\n\t\tboolean isDensityValue = \n\t\t\tmCartogramWizard.getPanelTwo().attributeIsDensityValue();\n\t\t\n\t\t\n\t\tmCartogramWizard.setMissingValue(\n\t\t\tmCartogramWizard.getPanelTwo().getMissingValue());\n\t\t\n\t\t\n\t\t// Create a new cartogram instance and set the parameters.\n\t\tCartogram cg = new Cartogram(mCartogramWizard);\n\t\tcg.setLayerManager(AppContext.layerManager);\n\t\tcg.setMasterLayer(selectedLayer);\n\t\tcg.setMasterAttribute(selectedAttribute);\n\t\tcg.setMasterAttributeIsDensityValue(isDensityValue);\n\t\tcg.setMissingValue(mCartogramWizard.getMissingValue());\n\t\tcg.setSlaveLayers(mCartogramWizard.getSimultaneousLayers());\n\t\tcg.setConstrainedDeformationLayers(\n\t\t\tmCartogramWizard.getConstrainedDeformationLayers());\n\t\t\t\n\t\t\n\t\tcg.setAmountOfDeformation(mCartogramWizard.getAmountOfDeformation());\n\t\t\n\t\tcg.setAdvancedOptionsEnabled(\n\t\t\tmCartogramWizard.getAdvancedOptionsEnabled());\n\t\t\t\n\t\tcg.setGridSize(mCartogramWizard.getCartogramGridSizeInX(),\n\t\t\tmCartogramWizard.getCartogramGridSizeInY());\n\t\t\t\n\t\tcg.setDiffusionGridSize(mCartogramWizard.getDiffusionGridSize());\n\t\tcg.setDiffusionIterations(mCartogramWizard.getDiffusionIterations());\n\t\t\n\t\t\n\t\t\n\t\t// Set the parameters for the deformation grid layer.\n\t\tcg.setCreateGridLayer(mCartogramWizard.getCreateGridLayer());\n\t\tcg.setGridLayerSize(mCartogramWizard.getDeformationGridSize());\n\t\t\n\t\t\n\t\t\n\t\t// Set the parameters for the legend layer.\n\t\t// We have to estimate the legend values.\n\t\tif (isDensityValue)\n\t\t\tcg.setCreateLegendLayer(false);\n\t\telse\n\t\t{\n\t\t\tcg.setCreateLegendLayer(true);\n\t\t}\n\t\t\n\t\tmCartogramWizard.setCartogram(cg);\n\t\t\n\t\t// Start the cartogram computation.\n\t\tcg.start();\n\t\t\n\t\t\n\t}",
"public CreateProjectPanel() {\n isFinished = true;\n }",
"@FXML\n void openAddTimelineWindow() {\n\n// replaces Element list with Add Timeline window\n menuPane.setContent(addTimelineScene.getRoot());\n\n// removes unnecessary buttons, shows cancel button\n toggleMenuButtonVisibility(false);\n cancelTimelineButton.setVisible(true);\n\n window.setTitle(\"Timelines: Add Timeline\");\n }",
"public void openAddGroupeDialog() {\n Log.d(\"DEBUG\", \"Ouverture du dialog d'ajout de groupe\");\n new AddGroupeDialog(this, this.getActivity()).show();\n }",
"public Add_Lecture_Form() {\n initComponents();\n \n this.setVisible(true);\n this.pack();\n this.setLocationRelativeTo(null);\n }",
"public void open() {\n popupWindow = new Window(getTypeCaption());\n popupWindow.addStyleName(\"e-export-form-window\");\n popupWindow.addStyleName(\"opaque\");\n VerticalLayout layout = (VerticalLayout) popupWindow.getContent();\n layout.setMargin(true);\n layout.setSpacing(true);\n layout.setSizeUndefined();\n popupWindow.setSizeUndefined();\n popupWindow.setModal(false);\n popupWindow.setClosable(true);\n\n popupWindow.addComponent(this);\n getMainApplication().getMainWindow().addWindow(popupWindow);\n\n onDisplay();\n }",
"public void newFile() {\n\t\tString filename = \"untitled\";\n\t\tfilename = JOptionPane.showInputDialog(null,\n\t\t\t\t\"Enter the new file name\");\n\t\taddTab(filename+\".minl\");\n\t}",
"private void addActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addActionPerformed\n add();\n }",
"private Wizard(final FXFinder javafxFinder) {\n this.javafxFinder = javafxFinder;\n wizard = new JFrame(\"Apache SIS setup\");\n final Container content = wizard.getContentPane();\n content.setLayout(new BorderLayout());\n /*\n * Back, Next, Cancel button.\n */\n { // For keeping variables in a local scope.\n final Box buttons = Box.createHorizontalBox();\n buttons.setBorder(new EmptyBorder(9, 12, 9, 15)); // Top, left, bottom, right.\n backButton = createButton(buttons, BACK); buttons.add(Box.createHorizontalStrut(10));\n nextButton = createButton(buttons, NEXT); buttons.add(Box.createHorizontalStrut(30));\n cancelButton = createButton(buttons, CANCEL);\n backButton.setEnabled(false);\n\n final JPanel bottom = new JPanel(new BorderLayout());\n bottom.add(new JSeparator(), BorderLayout.NORTH);\n bottom.add(buttons, java.awt.BorderLayout.EAST);\n content.add(bottom, BorderLayout.SOUTH);\n }\n /*\n * Navigation panel on the left side with the following titles\n * (currently shown page is highlighted):\n *\n * - Introduction\n * - Download\n * - Set directory\n * - Summary\n */\n final WizardPage[] pages = WizardPage.values();\n {\n titles = new JLabel[pages.length];\n final EmptyBorder padding = new EmptyBorder(3, 0, 3, 0);\n final Box summary = Box.createVerticalBox();\n for (int i=0; i<pages.length; i++) {\n final String title = (i == 0 ? SELECTED_TITLE_BULLET : TITLE_BULLET) + pages[i].title;\n final JLabel label = new JLabel(title, JLabel.LEFT);\n label.setForeground(i == 0 ? SELECTED_TITLE_COLOR : TITLE_COLOR);\n label.setBorder(padding);\n summary.add(titles[i] = label);\n }\n final JPanel pane = new JPanel();\n pane.setBackground(new Color(169, 204, 227));\n pane.setBorder(new EmptyBorder(40, 15, 9, 24)); // Top, left, bottom, right.\n pane.add(summary);\n content.add(pane, BorderLayout.WEST);\n }\n /*\n * The main content where text is shown, together with download button, directory chooser, etc.\n * The content of each page is created by `createPage(…)`. They all have in common to start with\n * a description text formatted in HTML.\n */\n {\n final Font font = new Font(Font.SERIF, Font.PLAIN, 14);\n javafxPath = new JLabel();\n javafxPath.setBorder(JAVAFX_PATH_BORDER);\n javafxPathError = new JLabel();\n javafxPathError.setForeground(Color.RED);\n javafxPathError.setFont(font);\n inflateProgress = new JProgressBar();\n cardPanel = new JPanel(new CardLayout());\n cardPanel.setBorder(new EmptyBorder(30, 30, 9, 30)); // Top, left, bottom, right.\n cardPanel.setBackground(Color.WHITE);\n for (final WizardPage page : pages) {\n cardPanel.add(createPage(page, font), page.name());\n // The initially visible component is the first added.\n }\n currentPage = pages[0];\n content.add(cardPanel, BorderLayout.CENTER);\n }\n wizard.setSize(WIDTH, 500); // Must be before `setLocationRelativeTo(…)`.\n wizard.setResizable(false);\n wizard.setLocationRelativeTo(null);\n wizard.addWindowListener(new WindowAdapter() {\n @Override public void windowClosing(WindowEvent event) {\n javafxFinder.cancel();\n }\n });\n }",
"@FXML\r\n private void addPane(ActionEvent e) throws IOException {\r\n\r\n eventDialog(\"New\");\r\n eventLabel.setText(\"Are you want to take a new window?\");\r\n\r\n noButton.setOnAction(event -> {\r\n firstLabel.setVisible(false);\r\n lastLabel.setVisible(false);\r\n lineFirstNodeTF.setVisible(false);\r\n lineLastNodeTF.setVisible(false);\r\n setNodeButton.setVisible(false);\r\n resetNodeButton.setVisible(false);\r\n\r\n graphNodeTextArea.setEditable(true);\r\n graphNodeTextArea.setText(\"\");\r\n eventStage.close();\r\n });\r\n\r\n yesButton.setOnAction(event -> {\r\n Parent root = null;\r\n try {\r\n root = FXMLLoader.load(Objects.requireNonNull(getClass().getResource(\"GUI.fxml\")));\r\n } catch (IOException ioException) {\r\n ioException.printStackTrace();\r\n }\r\n Scene scene = new Scene(root);\r\n\r\n Stage primaryStage = new Stage();\r\n primaryStage.setScene(scene);\r\n primaryStage.setTitle(\"Object Oriented Programming Project - Team 1B\");\r\n primaryStage.show();\r\n eventStage.close();\r\n });\r\n\r\n }",
"public void linktomyorderseditbuttonPressed(javafx.event.ActionEvent event) throws IOException {\r\n Parent myorderseditParent = FXMLLoader.load(getClass().getResource(\"myOrdersEdit.fxml\"));\r\n Scene myorderseditScene = new Scene(myorderseditParent);\r\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n window.setScene(myorderseditScene);\r\n window.show();\r\n }",
"public AddVehicleShowPage() {\n initComponents();\n }",
"public void goToAddWord1(View v) {\n Intent myIntent = new Intent(this, AddWord1.class);\n startActivity(myIntent);\n }",
"@FXML\r\n private void addPartAction() throws IOException {\r\n \r\n generateScreen(\"AddModifyPartScreen.fxml\",\"Add Part\");\r\n updatePartsTable(stock.getAllParts());\r\n \r\n }",
"public AddOperationView() {\n super(\"add_operation.fxml\", \"Einsatz hinzufügen\");\n }",
"private void createWizard(String persoName, String persoImage, int persoLife, int attack) {\n\t\tpersoList.add(new Wizard(persoName, persoImage, persoLife, attack));\n\t}",
"@FXML\r\n public void goToTutorial(ActionEvent event) {\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"../view/resources/Tutorial.fxml\"));\r\n \t\tScene scene = new Scene(root);\r\n \t\tMain.setScene(scene);\r\n\t\t}catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"public void add_stage() {\r\n\t\tif (this.controller.getSelectedCatagory() == null)\r\n\t\t\treturn;\r\n\t\tString name = JOptionPane.showInputDialog(this,\r\n\t \t\"Choose a name for the stage\",\r\n\t \"Name Stage\", 1);\r\n\t if (name == null) {\r\n\t \treturn;\r\n\t }\r\n\t // If the stage cannot be added, inform the user\r\n\t\tif (!controller.addStage(name)) {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A Stage with that name already exists\");\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tReaderAddFrame.setReaderAddFrameIsNull();\n\t\tMainFrame.addIFrame(ReaderAddFrame.getReaderAddFrame());\n\t}",
"public void addProjectAction() throws IOException {\n\t\tfinal FXMLSpringLoader loader = new FXMLSpringLoader(appContext);\n\t\tfinal Dialog<Project> dialog = loader.load(\"classpath:view/Home_AddProjectDialog.fxml\");\n\t\tdialog.initOwner(addProject.getScene().getWindow());\n\t\tfinal Optional<Project> result = dialog.showAndWait();\n\t\tif (result.isPresent()) {\n\t\t\tlogger.trace(\"dialog 'add project' result: {}\", result::get);\n\t\t\tprojectsObservable.add(result.get());\n\t\t}\n\t}",
"@FXML\n\tpublic void generarPDFClick(ActionEvent event) {\n\t\tString htmlContent = this.examen.getTitolHtml()+this.examen.getEnunciatHtml()+System.lineSeparator();\n\n\t\tPdfManager manager;\n\t\ttry {\n\t\t\tmanager = new PdfManager(\"Examen.pdf\");\n\n\t\t\tmanager.generarPDF( htmlContent );\n\n\t\t\tFile pdfGenerat = new File(\"Examen.pdf\");\n\n\t\t\tHostServices hostServices = Model.getInstance().getApp().getHostServices();\n\t hostServices.showDocument(pdfGenerat.getAbsolutePath());\n\n\t\t} catch (Excepcio e) {\n\t\t\t//e.printStackTrace();\n\t\t MenuController.mostrarError(\"Examen a PDF\", \"Error generant el document. \"+e.getMessage());\n\t\t}\n\t}"
] | [
"0.5607956",
"0.55788475",
"0.55167234",
"0.55157787",
"0.5482866",
"0.5475973",
"0.544881",
"0.54212904",
"0.54102224",
"0.5396598",
"0.5377895",
"0.5361083",
"0.5348275",
"0.52882975",
"0.5274759",
"0.52587163",
"0.52465075",
"0.52456343",
"0.52326447",
"0.52294165",
"0.5222843",
"0.5221693",
"0.51804835",
"0.5180337",
"0.5167104",
"0.51642",
"0.51602346",
"0.5134238",
"0.5134041",
"0.512748",
"0.51267767",
"0.51198226",
"0.51106966",
"0.508986",
"0.50881386",
"0.50854367",
"0.508405",
"0.5081433",
"0.5078736",
"0.5072656",
"0.5070844",
"0.5059562",
"0.5059133",
"0.5050093",
"0.50481254",
"0.50454634",
"0.5041169",
"0.5034993",
"0.50295824",
"0.50236946",
"0.50200397",
"0.5014536",
"0.50093174",
"0.49985766",
"0.49889085",
"0.4988798",
"0.49770066",
"0.49764416",
"0.4973603",
"0.49660948",
"0.49632505",
"0.4956057",
"0.49543214",
"0.4952237",
"0.4950182",
"0.49472243",
"0.49448174",
"0.49422988",
"0.49419156",
"0.49204975",
"0.49094552",
"0.49032745",
"0.49032393",
"0.49029437",
"0.48946622",
"0.48875982",
"0.4886499",
"0.4883098",
"0.4882185",
"0.4872546",
"0.48724186",
"0.48706707",
"0.4870463",
"0.48657385",
"0.48650375",
"0.486407",
"0.48565897",
"0.48521835",
"0.48482558",
"0.48466545",
"0.48463756",
"0.48399472",
"0.48339504",
"0.48317054",
"0.4830298",
"0.48285148",
"0.48284405",
"0.48273888",
"0.4825283",
"0.48165032"
] | 0.5622781 | 0 |
Instantiates a new Property. | public Property(String owners,int estvalue, String location,char PPR2,String yearsowned,String eircode,String address) {
this.owners = owners;
this.estValue = estvalue;
this.Address = address;
this.postcode = eircode;
this.PPR = PPR2;
this.locationCategory = location;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Property createProperty();",
"public Property() {}",
"public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }",
"public Property() {\n this(0, 0, 0, 0);\n }",
"public Property()\r\n {\r\n }",
"public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }",
"public Property(Property prop, int regNum) {\n // this code provided by Dave Houtman [2020] personal communication\n this(prop.getXLength(), prop.getYWidth(), prop.getXLeft(), prop.getYTop(), regNum);\n }",
"private PropertySingleton(){}",
"protected abstract Property createProperty(String key, Object value);",
"public Property(Property p) {\n\t\tcity=p.getCity();\n\t\towner=p.getOwner();\n\t\tpropertyName=p.getPropertyName();\n\t\trentAmount=p.getRentAmount();\n\t\tplot= new Plot(p.plot);\n\t}",
"public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }",
"public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }",
"public Property(int xLength, int yWidth, int xLeft, int yTop) {\n this(xLength, yWidth, xLeft, yTop, DEFAULT_REGNUM);\n }",
"public static Property createProperty(String key, String value) {\n Property prop = new Property();\n prop.setKey(key);\n prop.setValue(value);\n\n return prop;\n }",
"public Property(Property p) {\r\n\t\tpositive = Arrays.copyOf(p.positive, p.positive.length);\r\n\t\tnegative = Arrays.copyOf(p.negative, p.negative.length);\r\n\t\tstop = Arrays.copyOf(p.stop, p.stop.length);\r\n\t\tscoringmethod = p.scoringmethod;\r\n\t\tmindistance = p.mindistance;\r\n\t}",
"private Property(String value) {\n\t\t\tthis.value = value;\n\t\t}",
"private Property(String value) {\n\t\t\tthis.value = value;\n\t\t}",
"public Property(int xLength, int yWidth, int xLeft, int yTop, int regNum) {\n setXLength(xLength);\n setYWidth(yWidth);\n setXLeft(xLeft);\n setYTop(yTop);\n setRegNum(regNum);\n }",
"public EntityPropertyBean() {}",
"public Property() {\n\t\tcity=\"\";\n\t\towner=\"\";\n\t\tpropertyName=\"\";\n\t\trentAmount=0;\n\t\tplot= new Plot(0,0,1,1);\n\t}",
"public Property() {\r\n\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\tscoringmethod = 0;\r\n\t\tmindistance = 0.5;\r\n\t}",
"public Properties(){\n\n }",
"PropertyType createPropertyType();",
"PropertyReference createPropertyReference();",
"public DPropertyElement() {\n super(null, null);\n }",
"public Property(int location, String name, int group, int[] rent, boolean canBuild, int[] costs, Board myBoard) {\n type = Tile.Type.PROPERTY;\n this.location = location;\n this.name = name;\n this.groupName = group;\n this.rent = rent;\n this.canBuild = canBuild;\n this.costs = costs;\n owner = null;\n this.myBoard = myBoard;\n }",
"public Property(String key, Object value)\r\n {\r\n m_key = key;\r\n m_value = value;\r\n }",
"public SpotPropertyManager() {\r\n\t\tsuper();\r\n\t}",
"public void newProperty(Property property, PieceType type) {\n\t\t_property = property;\n\t\tswitch (type) {\n\t\tcase SETTLEMENT:\n\t\t\t_piece = new Settlement(_coordinates, _property);\n\t\t\tbreak;\n\t\tcase CITY:\n\t\t\t_piece = new City(_coordinates, _property);\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}",
"PropertyType(String propertyType) {\n this.propertyType = propertyType;\n }",
"ReferenceProperty createReferenceProperty();",
"private PropertyHolder() {\n }",
"PropertyRule createPropertyRule();",
"PrimitiveProperty createPrimitiveProperty();",
"public PropertyInstanceTest(String name) {\n\t\tsuper(name);\n\t}",
"public PropertyRefs(Properties p) {\n props = p;\n }",
"public Property(String name, int pos, int rent, int oneH, int twoH, int threeH, int fourH,\n\t int hotel, int value, int houses) {\n\t\tthis.rent = rent;\n\t\tthis.oneH = oneH;\n\t\tthis.twoH = twoH;\n\t\tthis.threeH = threeH;\n\t\tthis.fourH = fourH;\n\t\tthis.hotel = hotel;\n\t\tthis.value = value;\n\t\tthis.houses = houses;\n\t\tbuildings = 0;\n\t\tmonopoly = false;\n\t\towned = false;\n\n\t\tthis.pos = pos;\n\t\tthis.name = name;\n\t}",
"public Constant createProperty(Expression exp) {\r\n\t\tif (exp.isConstant()){\r\n\t\t\t// no regexp, std property\r\n\t\t\treturn (Constant) exp;\r\n\t\t}\r\n\t\tConstant cst = createConstant(RootPropertyQN);\r\n\t\tcst.setExpression(exp);\r\n\t\treturn cst;\r\n\t}",
"A createAttribute( @NonNull final String p_id, @Nonnull final String p_property );",
"public Property(int boardPosition, String name, int value, int rentPrice, int mortgagePrice, int redeemPrice) {\n this.boardPosition = boardPosition;\n this.name = name;\n this.value = value;\n this.rentPrice = rentPrice;\n this.mortgagePrice = mortgagePrice;\n this.isMortgaged = false;\n this.redeemPrice = redeemPrice;\n this.owner = null;\n }",
"PropertyCallExp createPropertyCallExp();",
"private static Property makeNewPropertyFromUserInput() {\n\t\tint regNum = requestRegNum();\r\n\t\t// check if a registrant with the regNum is available\r\n\t\tif (getRegControl().findRegistrant(regNum) == null) {\r\n\t\t\tSystem.out.println(\"Registrant number not found\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString coordinateString = getResponseTo(\"Enter top and left coordinates of property (as X, Y): \");\r\n\t\t// split the xLeft and yTop from the string: \"xLeft, yTop\"\r\n\t\tString[] coordinates = coordinateString.split(\", \");\r\n\t\tString dimensionString = getResponseTo(\"Enter length and width of property (as length, width): \");\r\n\t\t// split the xLength and yWidth from the string: \"xLength, yWidth\"\r\n\t\tString[] dimensions = dimensionString.split(\", \");\r\n\t\t// convert all string in the lists to int and create a new Property object with them\r\n\t\tint xLeft = Integer.parseInt(coordinates[0]);\r\n\t\tint yTop = Integer.parseInt(coordinates[1]);\r\n\t\tint xLength = Integer.parseInt(dimensions[0]);\r\n\t\tint yWidth = Integer.parseInt(dimensions[1]);\r\n\t\t// Limit for registrant for property size minimum 20m x 10m and maximum size 1000m x 1000m\r\n\t\tif (xLength < 20 || yWidth < 10 || (xLength + xLeft) > 1000 || (yTop + yWidth) > 1000) {\r\n\t\t\tSystem.out.println(\"Invalid dimensions/coordinates inputs\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tProperty new_prop = new Property(xLength, yWidth, Integer.parseInt(coordinates[0]),\r\n\t\t\t\tInteger.parseInt(coordinates[1]), regNum);\r\n\t\treturn new_prop;\r\n\t}",
"public Propuestas() {}",
"private StaticProperty() {}",
"@Override public com.hp.hpl.jena.rdf.model.Property createProperty(final String nameSpace, final String localName)\n {\n final com.hp.hpl.jena.rdf.model.Property property = super.createProperty(nameSpace, localName);\n \n if (DEBUG.SEARCH && DEBUG.RDF) {\n final String propName;\n if (property instanceof com.hp.hpl.jena.rdf.model.impl.PropertyImpl)\n propName = \"PropertyImpl\";\n else\n propName = property.getClass().getName();\n Log.debug(\"createProperty \" + Util.tags(nameSpace)\n + String.format(\"+%-18s= %s@%08X[%s]\",\n Util.tags(localName), // note need extra padding for escape codes here:\n propName,\n System.identityHashCode(property),\n property.toString()));\n }\n return property;\n }",
"public SimplePropertyCommand(Value property, String newValue) {\n this.property = property;\n this.newValue = newValue;\n }",
"public PropertySelector(PropertySelector parent, Property property) {\n this.parent = parent;\n this.property = property;\n }",
"private PropertyDefinition getProperty(\n String property,\n String name,\n String description,\n String defaultValue,\n PropertyType type\n ) {\n return PropertyDefinition.builder(property)\n .name(name)\n .description(description)\n .defaultValue(defaultValue)\n .type(type)\n .category(Constants.CATEGORY)\n .subCategory(Constants.SUBCATEGORY)\n .index(propertyIndex++)\n .build();\n }",
"Property(String string2, RealmFieldType realmFieldType, boolean bl, boolean bl2, boolean bl3) {\n int n = realmFieldType.getNativeValue();\n bl3 = !bl3;\n this.nativePtr = Property.nativeCreateProperty(string2, n, bl, bl2, bl3);\n NativeContext.dummyContext.addReference(this);\n }",
"public static PropertyUtil getInstance(){\t\t\n\t\tif(resource==null){\n\t\t\tresource = new PropertyUtil();\n\t\t}\n\t\treturn resource;\n\t}",
"public PropertySelector(Entity root, Property property) {\n this.root = root;\n this.property = property;\n }",
"public TradingProperty createNewTradingProperty(String sessionName, int classKey)\n {\n SimpleIntegerTradingPropertyImpl newTP = new SimpleIntegerTradingPropertyImpl(\"Property\", sessionName, classKey);\n newTP.setTradingPropertyType(getTradingPropertyType());\n return newTP;\n }",
"public PSBeanProperties()\n {\n loadProperties();\n }",
"public PropertyParser()\n\t{\n\t\tthis(System.getProperties());\n\t}",
"public PropertyCriteria() {\n\t\tsuper();\n\t}",
"private ReadProperty()\r\n {\r\n\r\n }",
"public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}",
"public PropertyPresentationConverter(Property<T> property) {\n\t\tsuper();\n\n\t\tObjectUtils.argumentNotNull(property, \"Property must be not null\");\n\n\t\tthis.property = property;\n\t}",
"public DimensionProperties() {\n }",
"PropertyRealization createPropertyRealization();",
"public void init(Properties props) ;",
"public static Property property(Expression expression, String name) {\n\t\treturn Property.create(expression, name);\n\t}",
"private PropertySetFactory() {}",
"private TerminalProperties() {\n this(new TerminalPropertiesBuilder());\n }",
"Property getProperty();",
"Property getProperty();",
"protected PropertyPreference(ExternalKey stakeholderKey, ExternalKey propertyKey,\n String namespace) {\n super(stakeholderKey, namespace);\n setPropertyKey(propertyKey);\n }",
"public PropertyManager(String propFileName) {\n if ((propFileName != null) && (propFileName.length() > 0)) {\n this.propFileName = propFileName;\n recentResult = loadPropertyFile(propFileName);\n }\n }",
"protected PropertyChangeListener createPropertyChangeListener() {\n return new PropertyChangeHandler(); }",
"public TestProperties() {\n\t\tthis.testProperties = new Properties();\n\t}",
"public interface Property extends Assignable\n{\n\t/**\n\t * Property name\n\t */\n\tString getName();\n\n\t/**\n\t * Type.\n\t * \n\t * If this is a getter, the returned value is the getter's return type.\n\t * If this is a setter, the returned value is the type of the input argument of the setter.\n\t */\n\tType getType();\n\n /**\n * [InstanceType]\n *\n * @return null if the instance type metadata is not available or if the\n * instance type is not specified.\n */\n Type getInstanceType();\n\n\t/**\n\t * Is this read only?\n\t */\n\tboolean readOnly();\n\n /**\n\t *\n\t */\n\tboolean hasPublic();\n\n // metadata\n\n\t/**\n\t * [Inspectable]\n\t */\n\tInspectable getInspectable();\n\n\t/**\n\t * [CollapseWhiteSpace]\n\t */\n\tboolean collapseWhiteSpace();\n\n /**\n * [RichTextContent]\n */\n boolean richTextContent();\n\n\t/**\n\t * [Deprecated]\n\t */\n\tDeprecated getDeprecated();\n\n\t/**\n\t * [ChangeEvent]\n\t */\n\tboolean hasChangeEvent(String name);\n\n\n\t/**\n\t * [PercentProxy]\n\t */\n\tString getPercentProxy();\n}",
"public ManagedHsmProperties() {\n }",
"@Override\n\tpublic void addProperty(IProperty property) {\n\t\t\n\t}",
"public\n YutilProperties()\n {\n super(new Properties());\n }",
"protected AeFromPropertyBase(String aVariableName, QName aProperty)\r\n {\r\n setVariableName(aVariableName);\r\n setProperty(aProperty);\r\n }",
"public AbstractWorkspacebaseproperty()\n {\n }",
"public Properties initForRuntime() {\n initProperties();\n return this;\n }",
"private ConfigProperties() {\n\n }",
"public RDFPropertyTest(String name) {\n\t\tsuper(name);\n\t}",
"public Property(String propertyName, ValueType retType,\n List<ValueType> paramsTypes, String tableName,\n String tableItemName, boolean isGlobal,\n String formatTemplate) {\n this.propertyName = propertyName;\n this.retType = retType;\n this.paramsTypes = paramsTypes;\n this.tableName = tableName;\n this.tableItemName = tableItemName;\n this.formatTemplate = formatTemplate;\n this.isGlobal = isGlobal;\n }",
"public void testCtor1() throws Exception {\n assertNotNull(\"Failed to create PropertiesPanel instance.\", new PropertiesPanel(NAMESPACE, manager));\n }",
"Builder addProperty(String name, String value);",
"private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}",
"public EditorPropertyDisplayer(Property p) {\n this(p, null);\n }",
"DefinedProperty nodeAddProperty( long nodeId, int propertyKey, Object value );",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n public ICMakeBuildElement createBuildProperties(Path path) {\n return CMakeBuildProperties.make(path);\n }",
"private GetProperty(Builder builder) {\n super(builder);\n }",
"public PropertyManager() {\n propFileName = System.getProperty(\"user.home\") + File.separator +\n defPropFile;\n\n recentResult = loadPropertyFile(propFileName);\n }",
"@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}",
"@Test public void testConstructor() {\r\n GaeAwarePropertySource source = new GaeAwarePropertySource();\r\n assertNull(source.getProductionModeProperties());\r\n assertNull(source.getDevelopmentModeProperties());\r\n\r\n Properties baseProperties = new Properties();\r\n source.setProductionModeProperties(baseProperties);\r\n assertSame(baseProperties, source.getProductionModeProperties());\r\n\r\n Properties developmentModeProperties = new Properties();\r\n source.setDevelopmentModeProperties(developmentModeProperties);\r\n assertSame(developmentModeProperties, source.getDevelopmentModeProperties());\r\n }",
"public ConstantProduct() {\n constProperty = \"constant\";\n constProperty2 = \"constant2\";\n }",
"@Override\n\tpublic void addProperty(String name) {\n\t}",
"public ApplicationDefinitionProperties() {\n }",
"private mxPropertiesManager()\n\t{\n\t}",
"public OWLProperty (String iri) {\n\t\tthis.classIRI = iri;\n//\t\tthis.domain = domain;\n//\t\tthis.range = range;\n\t}",
"public PropertiesQDoxPropertyExpander() {\n super();\n }",
"public ViewProperty() {\n initComponents();\n }",
"DefinedProperty graphAddProperty( int propertyKey, Object value );",
"public PropertyParser(Properties props)\n\t{\n\t\t_props = props;\n\t}",
"@Override\n public ICMakeBuildElement createBuildProperties(Path path) {\n return CMakeBuildProperties.make();\n }"
] | [
"0.81454855",
"0.77960193",
"0.75461286",
"0.75004905",
"0.7403537",
"0.73892134",
"0.69693536",
"0.6941336",
"0.6858654",
"0.67956656",
"0.67807704",
"0.6747723",
"0.66439116",
"0.6587973",
"0.65769184",
"0.6570794",
"0.6570794",
"0.65387124",
"0.65138334",
"0.6508482",
"0.64683294",
"0.6458786",
"0.6448745",
"0.6273352",
"0.62618756",
"0.6227769",
"0.6218571",
"0.6174308",
"0.6163922",
"0.61237293",
"0.6119509",
"0.6097948",
"0.606657",
"0.6042321",
"0.60331315",
"0.60035145",
"0.5947809",
"0.59274524",
"0.5908701",
"0.58769953",
"0.5841953",
"0.5837483",
"0.5834579",
"0.5822072",
"0.5805435",
"0.5805383",
"0.5790953",
"0.5770852",
"0.5769815",
"0.5765015",
"0.5760522",
"0.57556784",
"0.57425624",
"0.5741701",
"0.57358325",
"0.57203037",
"0.57111657",
"0.5707919",
"0.5707239",
"0.5688714",
"0.5683132",
"0.5675207",
"0.56460524",
"0.5637366",
"0.56203496",
"0.56203496",
"0.559481",
"0.5574815",
"0.5570601",
"0.55591714",
"0.5550955",
"0.55467135",
"0.5545164",
"0.5542224",
"0.55129856",
"0.5502893",
"0.55014116",
"0.54931843",
"0.5484975",
"0.54756445",
"0.546951",
"0.54673463",
"0.545439",
"0.5449222",
"0.5447483",
"0.54415375",
"0.54411566",
"0.54356897",
"0.5432619",
"0.54257184",
"0.5423798",
"0.54057163",
"0.53812605",
"0.5377912",
"0.53684396",
"0.5367814",
"0.5364846",
"0.53535444",
"0.5350461",
"0.53470224",
"0.5313207"
] | 0.0 | -1 |
Get est value int. | public int getEstValue(){
return this.estValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getValue();",
"int getValue();",
"int getValue();",
"int getValue();",
"int getValue();",
"Integer getValue();",
"Integer getValue();",
"public int getValue();",
"public int getValue();",
"public static int getValueInt()\n {\n return Util.valueInt;\n }",
"public int intValue() {\n return value;\n }",
"public int intValue( )\n {\n return value;\n }",
"public int getInt() {\r\n\t\treturn (value.getInt());\r\n\t}",
"public int intValue()\n\t\t{\n\t\t\treturn (int) doubleValue();\n\t\t}",
"public int getValue()\r\n {\r\n return value;\r\n }",
"public int getValue() {\n return intValue;\n }",
"public int getValue() {\n return intValue;\n }",
"int intValue();",
"public int getValue()\n {\n return value;\n }",
"public int getValue()\n {\n return value;\n }",
"public int intValue() {\r\n return _value;\r\n }",
"public int getValue () {\n return value;\n }",
"public int get_int_value()\n\t{\n\t\treturn this.int_value;\n\t}",
"public int getInt(){\n return new BigInteger(this.value).intValue();\n }",
"public int getValue() {\r\n return value;\r\n }",
"public int getValue()\n\t{\n\t\treturn value;\n\t}",
"public int getValue()\n\t{\n\t\treturn value;\n\t}",
"public int getValue()\n\t{\n\t\treturn value;\n\t}",
"public int getValue ()\r\n\t{\r\n\t\treturn (m_value);\r\n\t}",
"public int getInt()\n {\n return intValue;\n }",
"public int getInt()\n {\n return intValue;\n }",
"public int getValue() {\r\n return value;\r\n }",
"public int getIntValue() {\n return (int)getValue();\n }",
"public Integer getValue();",
"public int getValue() {\r\n return value;\r\n }",
"public int getValue() \n {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue()\n {\n return mi_value;\n }",
"public int getValue()\n {\n return mi_value;\n }",
"public int getValue(){\n\t\treturn value;\n\t}",
"public int getIntValue(){\n\t\treturn value.intValue();\n\t}",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value_;\n }",
"public int getValue() {\n return value_;\n }",
"public int getValue() {\n return value_;\n }",
"public int getValue() {\n\t\treturn value;\n\t}",
"public int getValue() {\n\t\treturn value;\n\t}",
"public int getValue() {\n\t\treturn value;\n\t}",
"public int getValue() {\n\t\treturn value;\n\t}",
"public BigDecimal getEstValue() {\n\t\treturn estValue;\n\t}",
"public int getValue() {\n\t\t// Precondition -- The value is a non-negative integer.\n\t\tassert(value >= 0);\n\t\t\n\t\treturn value;\n\t}",
"public int getValue() {\n\t\t\treturn value;\n\t\t}",
"public int getValue() {\r\n\t\treturn this.value;\r\n\t}",
"public int getValue() {\r\n\t\treturn this.value;\r\n\t}",
"public int getValue() \n {\n return value;\n }",
"public final int getInt()\n {\n return intValue;\n }",
"public int getValue() {\r\n return Value;\r\n }",
"public int getIntegerValue()\n {\n// if (val != Math.round(val))\n// System.err.println(\"IntegerYoVariable: returning a different value than what it used to be.\");\n return val;\n }",
"public int getValue() {\n return this.value;\n }",
"public int getValue() {\n return this.value;\n }",
"public int getValue() {\n return this.value;\n }",
"public int getValue() {\n return this.value;\n }",
"public int getValue() {\n return this.value;\n }",
"public int getValue() {\n\t\treturn _value;\n\t}",
"public int getValue() {\n return this.value;\n }",
"public int getValue() {\n\t\treturn this.value;\n\t}",
"public int getValue() {\n return _value;\n }",
"public int getValue(){\n return value;\n }",
"public int intValue();",
"public int getValue() {\n return value_;\n }",
"public int getValue(){\n return this.value;\n }"
] | [
"0.76100475",
"0.76100475",
"0.76100475",
"0.76100475",
"0.76100475",
"0.7517661",
"0.7517661",
"0.7454302",
"0.7454302",
"0.7303798",
"0.7294418",
"0.72942007",
"0.72929126",
"0.72881186",
"0.7261527",
"0.7260007",
"0.7260007",
"0.7238486",
"0.7236489",
"0.7230956",
"0.7220698",
"0.7214491",
"0.72129345",
"0.7211132",
"0.7201802",
"0.71982193",
"0.71982193",
"0.71982193",
"0.7191866",
"0.7191834",
"0.7191834",
"0.7188482",
"0.7182704",
"0.7175102",
"0.7173504",
"0.7167705",
"0.7166215",
"0.7166215",
"0.7166215",
"0.7166215",
"0.7166215",
"0.7166215",
"0.7166215",
"0.7166215",
"0.7166215",
"0.7166215",
"0.7166215",
"0.7166215",
"0.7166215",
"0.7166215",
"0.7166215",
"0.7158689",
"0.7158689",
"0.7155757",
"0.7155757",
"0.7155757",
"0.7155757",
"0.7155757",
"0.7155757",
"0.7155757",
"0.7155757",
"0.71506476",
"0.71506476",
"0.7146171",
"0.7128316",
"0.7123625",
"0.7123625",
"0.7123625",
"0.7123625",
"0.7123625",
"0.7123625",
"0.71164376",
"0.71164376",
"0.711525",
"0.7108571",
"0.7108571",
"0.7108571",
"0.7108571",
"0.709577",
"0.70947737",
"0.7088884",
"0.7086934",
"0.7086934",
"0.708613",
"0.7082212",
"0.7080242",
"0.7079904",
"0.70775235",
"0.7074888",
"0.7074888",
"0.7074888",
"0.7074888",
"0.70727545",
"0.7058056",
"0.7055504",
"0.7053397",
"0.7040338",
"0.7039391",
"0.7034783",
"0.7024128"
] | 0.83245593 | 0 |
Get location category string. | public String getLocationCategory(){
return this.locationCategory;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCategoryString(){\r\n\t\tMarketplaceConfig.Category c = MarketplaceConfig.Category.get(this.category);\r\n\t\tif(c == null || c.name() == null || \"\".equals(c.name())) return \"NONE\";\r\n\t\treturn c.name();\r\n\t}",
"String category();",
"public String toString() {\n\t\treturn category;\n\t}",
"public String getCategory() {\t//TODO - change to array list of categories\n\t\treturn category;\n\t}",
"String getCategory();",
"String getCategory();",
"public String getCategory()\n {\n return (String) getProperty(PropertyIDMap.PID_CATEGORY);\n }",
"public String getCategory() {\n return fullPhoto.getCategory();\n }",
"public java.lang.String getCategory() {\n return category;\n }",
"public String getCategory()\r\n {\r\n return (m_category);\r\n }",
"public String category() {\n return this.category;\n }",
"public String category() {\n return this.category;\n }",
"public String getCatName() {\n return (String)getAttributeInternal(CATNAME);\n }",
"public String getStrCategoryName() {\n return strCategoryName;\n }",
"public String categoryDesc() { //to show the description of the category\n String desc = \"\";\n if (category.equals(\"H\")) {\n desc = \"Trump category: Hardness\";\n } else if (category.equals(\"S\")) {\n desc = \"Trump category: Specific Gravity\";\n } else if (category.equals(\"C\")) {\n desc = \"Trump category: Cleavage\";\n } else if (category.equals(\"CA\")) {\n desc = \"Trump category: Crustal Abundance\";\n } else if (category.equals(\"EV\")) {\n desc = \"Trump category: Economic Value\";\n }\n return desc;\n }",
"public String getCategoryName() {\n return category.getName();\n }",
"protected final String getCategory() {\n\t\tString category = null;\n\n\t\tif (getSplit() != null) {\n\t\t\tcategory = getSplit();\n\t\t} else {\n\t\t\tcategory = getForm().getPayTo();\n\t\t}\n\n\t\treturn category;\n\t}",
"public String getCategory();",
"google.maps.fleetengine.v1.Vehicle.VehicleType.Category getCategory();",
"public String getCategory(){\r\n\t\treturn this.category;\r\n\t}",
"public String getCategoryName() {\n\t\treturn this.category.getName();\n\t}",
"private String getCategoriesForDebugging() {\n StringBuilder sb = new StringBuilder();\n String sep = \"\";\n for (SuggestionsSection section : mSections.values()) {\n sb.append(sep);\n sb.append(section.getCategory());\n sep = \", \";\n }\n\n return sb.toString();\n }",
"public java.lang.String getDocumentCategory()\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_element_user(DOCUMENTCATEGORY$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"@AutoEscape\n public String getCategory();",
"public String getCategory()\n\t{\n\t\treturn category;\n\t}",
"public String getCategory() {\n\t\treturn category;\n\t}",
"public String getCategory() {\n\t\treturn category;\n\t}",
"public String getCategory() {\n return mCategory;\n }",
"public String getCategoryKey() {\n return getCategory().getWordVal();\n }",
"public String getCategory() {\r\n return category;\r\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"java.lang.String getLocation();",
"public String getCategory() {\n return this.category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCat() {\n\t\treturn this.cat;\n\t}",
"public BwString getCategoryWord() {\n if (categoryWord == null) {\n categoryWord = new BwString();\n }\n\n return categoryWord;\n }",
"public String getCategory() {\n //return ATPlugin.CLI_CATEGORY + \" \" + ATPlugin.DEFAULT_CATEGORY;\n return ATPlugin.CLI_CATEGORY;\n }",
"public String getCategory() {\n\t\treturn null;\r\n\t}",
"public String getLocationString() {\n return getCenter().toString();\n }",
"public String getCategory() {\n\t\treturn null;\n\t}",
"public String getCategory() {\n\t\treturn null;\n\t}",
"String location();",
"String location();",
"String location();",
"String location();",
"String location();",
"String location();",
"String location();",
"String location();",
"public ViewObjectImpl getLocationCategoryVo1() {\n return (ViewObjectImpl) findViewObject(\"LocationCategoryVo1\");\n }",
"public String getCategory() {\n return this.category;\n }",
"public String getProductCategory() {\n return (String)getAttributeInternal(PRODUCTCATEGORY);\n }",
"public String getCategory()\n {\n return category;\n }",
"public java.lang.String getLocation() {\n return location;\n }",
"public abstract String getCategory();",
"public abstract String getCategory();",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn getLocation();\r\n\t}",
"public String getCategories() {\n return getProperty(Property.CATEGORIES);\n }",
"public java.lang.String getLocation() {\n return location;\n }",
"@Override\n\tpublic java.lang.String getCategoryCode() {\n\t\treturn _lineaGastoCategoria.getCategoryCode();\n\t}",
"public String getName(){\n return category;\n }",
"public String getCncategory() {\n return cncategory;\n }",
"@java.lang.Override public google.maps.fleetengine.v1.Vehicle.VehicleType.Category getCategory() {\n @SuppressWarnings(\"deprecation\")\n google.maps.fleetengine.v1.Vehicle.VehicleType.Category result = google.maps.fleetengine.v1.Vehicle.VehicleType.Category.valueOf(category_);\n return result == null ? google.maps.fleetengine.v1.Vehicle.VehicleType.Category.UNRECOGNIZED : result;\n }",
"public String toString() {\n\t\treturn String.format(\"%-28s%-16f%-17f\", city,location.getLat(),location.getLng());\n\t}",
"String getLocationLabel();",
"@Override\n public String getCategory() {\n return category;\n }",
"public String getCategoryName() {\n return categoryName;\n }",
"public String getCategoryName() {\n return categoryName;\n }",
"public String getCategoryName() {\n return categoryName;\n }",
"public String getCurrentCategory() {\n String currentCategory = \"none\";\n if (categories.get(indexOfActiveCategory).isActive()) {\n currentCategory = categories.get(indexOfActiveCategory).getName();\n }\n return currentCategory;\n }",
"@java.lang.Override\n public google.maps.fleetengine.v1.Vehicle.VehicleType.Category getCategory() {\n @SuppressWarnings(\"deprecation\")\n google.maps.fleetengine.v1.Vehicle.VehicleType.Category result = google.maps.fleetengine.v1.Vehicle.VehicleType.Category.valueOf(category_);\n return result == null ? google.maps.fleetengine.v1.Vehicle.VehicleType.Category.UNRECOGNIZED : result;\n }",
"public String getName()\r\n\t{\r\n\t\treturn categoryName;\r\n\t}",
"public String getCategCode() {\n return (String) getAttributeInternal(CATEGCODE);\n }",
"public long getCategory() {\r\n\t\treturn this.category;\r\n\t}",
"public String getName() {\n return categoryName;\n }",
"public String getAttributeCategory()\n {\n return (String)getAttributeInternal(ATTRIBUTECATEGORY);\n }",
"CodeType getCategory();",
"@Override\n public String getCategoryLabel() {\n return categoryLabel;\n }",
"String getLocation();",
"String getLocation();",
"String getLocation();",
"public String calculateCategoryAsString(Object value)\r\n\t{\r\n\t\tString valueString = \"\";\r\n\t\ttry {\r\n\t\t\tif (value != null) {\r\n\t\t\t\tif (value instanceof ICategoryHandle) {\r\n\t\t\t\t\tvalueString = itemCommon.resolveHierarchicalName((ICategoryHandle) value, monitor);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\t\treturn valueString;\r\n\t}",
"public String viewCategory() {\n ConversationContext<Category> ctx = CategoryController.newEditContext(getPart().getCategory());\n ctx.setLabelWithKey(\"part_category\");\n getCurrentConversation().setNextContextSubReadOnly(ctx);\n return ctx.view();\n }",
"public CloudCategory getCldCat() {\n return cloudCategory;\n }",
"public String getCostCategory() {\n\t\treturn this.costCategory;\n\t}",
"public String getRouteCategory() {\n\t\treturn routeCategory;\n\t}",
"public static String getProperLocation(String location) {\n switch (location) {\n case \"newjersey\":\n return \"New Jersey\";\n case \"cnj\":\n return \"Central Jersey\";\n case \"southjersey\":\n return \"South Jersey\";\n case \"longisland\":\n return \"Long Island\";\n default:\n return location;\n }\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Category [categoryid=\" + categoryid + \", name=\" + capitalize(name) + \"]\";\n\t}",
"public String getVehicleTypeCategory() {\r\n return vehicleType.getCategory();\r\n }",
"String getCategoria();",
"public String getProductCategory() {\n\t\t// begin\n\t\treturn productCategory;\n\t\t// end\n\t\t// return null;\n\t}",
"public static String autoRelatedCategory(String category){\n if (category.equalsIgnoreCase(SITE_LABEL)){\n return LOCATION_LABEL;\n }\n if (category.equalsIgnoreCase(OBSERVATION_LABEL)){\n return SITE_LABEL;\n }\n return null;\n }"
] | [
"0.72116494",
"0.6939156",
"0.6904806",
"0.6788489",
"0.6608635",
"0.6608635",
"0.6555525",
"0.6444921",
"0.64328855",
"0.6399564",
"0.63573813",
"0.63573813",
"0.63417214",
"0.6292517",
"0.624747",
"0.62238187",
"0.6197776",
"0.6157912",
"0.6134066",
"0.6112289",
"0.61056095",
"0.60961455",
"0.6080041",
"0.6077402",
"0.6071049",
"0.60651785",
"0.60651785",
"0.6050795",
"0.60459447",
"0.60406387",
"0.60269123",
"0.60269123",
"0.60190445",
"0.6018931",
"0.5991137",
"0.5991137",
"0.5991137",
"0.5991137",
"0.5991137",
"0.5991137",
"0.5991137",
"0.5978572",
"0.59662074",
"0.5944874",
"0.5944179",
"0.59248984",
"0.59165126",
"0.59099257",
"0.59099257",
"0.59085697",
"0.59085697",
"0.59085697",
"0.59085697",
"0.59085697",
"0.59085697",
"0.59085697",
"0.59085697",
"0.59041995",
"0.589576",
"0.5888958",
"0.58889556",
"0.5887933",
"0.5880992",
"0.5880992",
"0.5880743",
"0.5879803",
"0.58719784",
"0.5870164",
"0.5865959",
"0.5858816",
"0.5856314",
"0.5852597",
"0.5843019",
"0.5839625",
"0.58158535",
"0.58158535",
"0.5812549",
"0.5799717",
"0.57986206",
"0.579384",
"0.57872653",
"0.5785999",
"0.5785183",
"0.57704675",
"0.57689655",
"0.5753916",
"0.5751672",
"0.5751672",
"0.5751672",
"0.571842",
"0.57023716",
"0.57011944",
"0.5697999",
"0.5684301",
"0.5683724",
"0.5673025",
"0.5672408",
"0.5671916",
"0.5632973",
"0.5632718"
] | 0.78421766 | 0 |
Get market value tax rate double. | public double getMarketValueTaxRate(){
taxlist.add(new Tax(this.estValue,this.PPR,this.yearsowned,this.locationCategory));
count++;
return taxlist.get(count-1).MarketValueTax();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getTaxRate() {\r\n\t\treturn .07;\r\n\t}",
"public BigDecimal getPriceStdWTax();",
"public double taxRate () {\n return taxRate;\n }",
"public BigDecimal getTaxRate() {\n return taxRate;\n }",
"public BigDecimal getTaxAmtPriceStd();",
"public Double getTax();",
"public BigDecimal getLBR_TaxRate();",
"public double getTaxRate() {\n return taxRate;\n }",
"abstract protected BigDecimal getBasicTaxRate();",
"public double taxPaying() {\r\n double tax;\r\n if (profit == true) {\r\n tax = revenue / 10.00;\r\n }\r\n\r\n else\r\n tax = revenue / 2.00;\r\n return tax;\r\n }",
"double getTax();",
"BigDecimal getTax();",
"public BigDecimal getTaxRate() {\n\n\t\tBigDecimal totalTaxRate = getBasicTaxRate().add(getImportTaxRate());\n\n\t\treturn totalTaxRate;\n\t}",
"public BigDecimal getLBR_ICMSST_TaxRate();",
"double getTaxAmount();",
"double taxReturn() {\n\t\tdouble ddv = 0;\n\t\tif (d == 'A') {\n\t\t\tddv = 18;\n\t\t} else if (d == 'B') {\n\t\t\tddv = 5;\n\t\t}\n\t\t\n\t\tif (ddv = 0) {\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tdouble percent = price / 100.0;\n\t\tdouble tax = ddv * percent;\n\t\treturn tax / 100.0 * 15.0;\n\t}",
"public double tradeRate()\n\t{\n\t\treturn _dblTradeRate;\n\t}",
"public double getTaxValue() {\n\t\treturn TaxCalculatorUtil.getTaxValue(getConfiguredPrice(),getPromotionValue(), getCouponDiscountValue(), getTaxRate(), getTaxationType());\n\t}",
"public double getTax() {\r\n\r\n return getSubtotal() * 0.06;\r\n\r\n }",
"public double calcTax() {\n\t\treturn 0.2 * calcGrossWage() ;\n\t}",
"public BigDecimal getLBR_TaxDeferralRate();",
"@Override\n\tpublic double getTax() {\n\t\treturn 0.04;\n\t}",
"public double getTax() {\n return tax_;\n }",
"public double calculateTax(double amount){\n return (amount*TAX_4_1000)/1000;\n }",
"public BigDecimal getPriceLimitWTax();",
"public abstract double getTaxValue(String country);",
"public double getTax() {\n return tax_;\n }",
"public double calculateTax() {\n taxSubtotal = (saleAmount * SALESTAXRATE);\n\n return taxSubtotal;\n }",
"public double taxCharged (){\n return discountedPrice() * taxRate;\n }",
"private BigDecimal getImportTaxRate() {\n\t\treturn isImported ? Product.DEFAULT_IMPORT_TAX_RATE : BigDecimal.ZERO;\n\t}",
"public double useTax() {\n \n return super.useTax() + getValue()\n * PER_AXLE_TAX_RATE * getAxles();\n }",
"public double getTax(){\n\n return this.tax;\n }",
"public BigDecimal getTax() {\n return tax;\n }",
"public double getTaxes() {\n return getArea() * TAX_RATE_PER_M2;\n }",
"public BigDecimal getPriceListWTax();",
"public double getSalesTax() {\r\n return salesTax;\r\n }",
"public static double calculateTax(double price) {\r\n\tfinal double TAX = 0.05;\r\n\tdouble taxAmount = price*TAX;\r\n\treturn taxAmount;\r\n\t}",
"public double getTaxAmount() {\n return taxAmount;\n }",
"public BigDecimal getLBR_TaxRateCredit();",
"public BigDecimal getLBR_TaxAmt();",
"double applyTax(double price);",
"public double netPrice () {\n return discountedPrice() + taxCharged();\n }",
"public BigDecimal getTaxAmtPriceLimit();",
"public float calculateTax(String state, Integer flatRate);",
"public Double getVatRate() {\n return new Double(vatRate);\n }",
"public MMDecimal getTaxAmount() {\r\n return this.taxAmount;\r\n }",
"public Double getReturnRate() {\r\n return returnRate;\r\n }",
"public BigDecimal getLBR_TaxReliefAmt();",
"@Override\t\n\tpublic double getTax() {\n\t\treturn 0;\n\t}",
"public static double getXoRate() {\n\t\treturn xoRate;\n\t}",
"@Override\r\n\tpublic double getTaxValue() {\n\t\treturn 0;\r\n\t}",
"Double getValue();",
"static double tax( double salary ){\n\n return salary*10/100;\n\n }",
"double defaultTaxOnProduct(){\n\t\treturn 12.5;\n\t}",
"@ApiModelProperty(value = \"Applied rate of the tax\")\n\n\n public Float getTaxRate() {\n return taxRate;\n }",
"public BigDecimal getLBR_TaxBaseAmt();",
"public double getRate() {\r\n\t\treturn (getRate(0)+getRate(1))/2.0;\r\n\t}",
"public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}",
"public double getReturnRate() {\n return returnRate;\n }",
"public double calcStandardPrice(){\n double standardPrice = getLocation().getBasePrice() + BASE_RATE;\n return standardPrice;\n }",
"public BigDecimal getPriceStd();",
"public abstract double calculateTax();",
"public double getTaxes(){\n\t\treturn this.getExciseTax() + this.getFlightSegmentTax() + this.get911SecurityFee() + this.getPassengerFacilityFee();\n\t}",
"Double getDoubleValue();",
"public BigDecimal getTaxAmt() {\n\t\treturn taxAmt;\n\t}",
"public double calculateCost() {\n double output = price * (1 + taxRate);\n return output;\n }",
"public BigDecimal getRentPrice() {\n return rentPrice;\n }",
"public int getTax(){\n int tax=0;\n if(this.salary<this.LOWER_LIMIT){\n tax=this.taxableSalary/100*10;\n }else if(this.salary<this.UPPER_LIMIT){\n tax=this.taxableSalary/100*22;\n }else{\n tax=this.UPPER_LIMIT/100*22 + (this.taxableSalary-this.UPPER_LIMIT)/100*40;\n }\n return tax;\n }",
"public NM getVATRate() { \r\n\t\tNM retVal = this.getTypedField(45, 0);\r\n\t\treturn retVal;\r\n }",
"public BigDecimal getLBR_ICMSST_TaxAmt();",
"public BigDecimal getDEALER_TRX_LIMITS_CROSS_RATE() {\r\n return DEALER_TRX_LIMITS_CROSS_RATE;\r\n }",
"public double getPayRate()\r\n\t{\r\n\treturn payRate;\r\n\t}",
"double getRate();",
"public void setPriceStdWTax (BigDecimal PriceStdWTax);",
"@Field(26) \n\tpublic double TradePrice() {\n\t\treturn this.io.getDoubleField(this, 26);\n\t}",
"public BigDecimal getLBR_TaxBase();",
"public double getDoubleValue()\n {\n return (double) getValue() / (double) multiplier;\n }",
"public static double singleTax(double income) {\n\t //all values and calculations based off of 1040 form.\n double tax; //initializing tax, will be returned in the end.\n if (income < 0){ //determine whether income is negative.\n tax = 0;\n } else if (income > 0 && income <= 9275){\n tax = income * 0.1; //decimal is the tax rate for associated income\n } else if (income > 9275 && income <= 37650){\n tax = income * 0.15; \n } else if (income > 37650 && income <= 91150){\n tax = income * 0.25;\n } else if (income > 91150 && income <= 190150){\n tax = income * 0.28 - 6963.25; //incorperates reimbursment at higher incomes\n } else if (income > 190150 && income <= 413350){\n tax = income * 0.33 - 16470.75;\n } else if (income > 413350 && income <= 415050){\n tax = income * 0.35 - 24737.75;\n } else {\n tax = income * 0.396 - 43830.05;\n }\n tax = Math.round(tax * 100.0)/100.0; //rounds tax to nearest cent.\n return tax; //returns tax as value to main\n\t}",
"public static Double getEstimateIncomeInDouble() {\n return estimateIncomeInDouble;\n }",
"public BigDecimal getLBR_DIFAL_TaxRateFCPUFDest();",
"public int calculateTax() {\n int premium = calculateCost();\n return (int) Math.round(premium * vehicle.getType().getTax(surety.getSuretyType()));\n }",
"com.google.protobuf.DoubleValue getTransactionAmountMicros();",
"public double getValue();",
"double getDoubleValue2();",
"public double getTaxa() {\n\t\treturn taxa;\n\t}",
"public BigDecimal getLBR_TaxDeferralAmt();",
"public void setTax(Double tax);",
"public double getDoubleValue() {\n\t\treturn (this.numerator/1.0)/this.denominator;\n\t}",
"public int totalTax()\n {\n double tax = taxRate / 100;\n return (int)Math.round(totalCost() * tax);\n }",
"public Double calculateTax(Employee employee) {\n\n Double tax = 0.0;\n\n if ( employee != null ) {\n\n Double salary = employee.getSalary();\n if ( salary > 0 ) {\n\n if ( salary < 500000 ) {\n\n tax = salary * 0.05;\n } else if ( salary > 500000 && salary < 1000000 ) {\n\n tax = salary * 0.1;\n } else {\n\n tax = salary * 0.2;\n }\n }\n }\n\n return tax;\n }",
"public double getAverageReturnPerTrade(){\n\t\treturn Math.round(averageReturnPerTrade*10000.0)/100.0;\n\t}",
"double getTransRate();",
"public double getTaxedCost()\n\t{\n\t\treturn taxedCost;\n\t}",
"public CoreComponentTypes.apis.ebay.BasicAmountType getTaxAmount() {\r\n return taxAmount;\r\n }",
"public BigDecimal getPriceStdOld();",
"public BigDecimal getLBR_ICMSST_TaxBaseAmt();",
"public BigDecimal getTaxscore() {\n return taxscore;\n }",
"public void changeTaxRate (double value) {\n this.taxRate = value;\n }",
"public double price(){\n if (basePrice() >1000){\n return basePrice() *0.95;\n }else\n return basePrice() * 0.98;\n }",
"public abstract double getDiscountRate();"
] | [
"0.7584088",
"0.7507527",
"0.7462273",
"0.74423814",
"0.7408603",
"0.73902196",
"0.734926",
"0.73331845",
"0.7328995",
"0.7296873",
"0.7276784",
"0.7246322",
"0.7198793",
"0.71926355",
"0.7188573",
"0.7186872",
"0.7130654",
"0.71295416",
"0.6971372",
"0.69662845",
"0.6915637",
"0.68722546",
"0.68179566",
"0.6814037",
"0.68097323",
"0.68093216",
"0.6805629",
"0.67958736",
"0.67769456",
"0.6763046",
"0.67619216",
"0.67485523",
"0.6728578",
"0.67259926",
"0.6674999",
"0.6580398",
"0.6580268",
"0.6563758",
"0.6561178",
"0.65493375",
"0.65271693",
"0.6499455",
"0.64878625",
"0.6468964",
"0.64554304",
"0.6419987",
"0.64198947",
"0.6409476",
"0.6407467",
"0.6383034",
"0.637061",
"0.63673985",
"0.6364332",
"0.63613373",
"0.6351723",
"0.6343994",
"0.6342576",
"0.63420296",
"0.633313",
"0.63313454",
"0.6307833",
"0.63043445",
"0.62977266",
"0.62891173",
"0.6280636",
"0.62757176",
"0.626996",
"0.6263185",
"0.6262473",
"0.62370276",
"0.6234373",
"0.6229895",
"0.6223049",
"0.6201051",
"0.61906147",
"0.618855",
"0.6187505",
"0.6156878",
"0.61509347",
"0.61473805",
"0.61441076",
"0.6142493",
"0.6136939",
"0.61365765",
"0.6125166",
"0.61219734",
"0.610925",
"0.61050785",
"0.61022455",
"0.60914016",
"0.6086763",
"0.60635644",
"0.60603833",
"0.60397744",
"0.6034785",
"0.6033432",
"0.6025267",
"0.60170114",
"0.6015108",
"0.600918"
] | 0.82159775 | 0 |
Get location tax int. | public int getLocationTax(){
taxlist.add(new Tax(this.estValue,this.PPR,this.yearsowned,this.locationCategory));
count++;
return taxlist.get(count-1).LocationTax();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTax(){\n int tax=0;\n if(this.salary<this.LOWER_LIMIT){\n tax=this.taxableSalary/100*10;\n }else if(this.salary<this.UPPER_LIMIT){\n tax=this.taxableSalary/100*22;\n }else{\n tax=this.UPPER_LIMIT/100*22 + (this.taxableSalary-this.UPPER_LIMIT)/100*40;\n }\n return tax;\n }",
"int getLocationtypeValue();",
"String getTaxId();",
"double getTax();",
"public double getTax() {\n return tax_;\n }",
"public String getTaxId()\n {\n return taxId;\n }",
"public double getTax() {\n return tax_;\n }",
"double getTaxAmount();",
"public int totalTax()\n {\n double tax = taxRate / 100;\n return (int)Math.round(totalCost() * tax);\n }",
"public BigDecimal getTax() {\n return tax;\n }",
"public int getLocationtypeValue() {\n return locationtype_;\n }",
"public abstract double getTaxValue(String country);",
"public int getLocationtypeValue() {\n return locationtype_;\n }",
"public double getTax(){\n\n return this.tax;\n }",
"@Override\t\n\tpublic double getTax() {\n\t\treturn 0;\n\t}",
"public Double getTax();",
"public int getLocation()\r\n {\n }",
"public int getLocation()\r\n {\r\n return location;\r\n }",
"public java.lang.String getTAX_CODE() {\r\n return TAX_CODE;\r\n }",
"public double getTaxAmount() {\n return taxAmount;\n }",
"@Override\n\tpublic double getTax() {\n\t\treturn 0.04;\n\t}",
"public double taxRate () {\n return taxRate;\n }",
"public double getTaxa() {\n\t\treturn taxa;\n\t}",
"public Tax getTax() {\n if (tax == null) {\n tax = new Tax();\n }\n return tax;\n }",
"public int getLocation() {\n\t\treturn 0;\n\t}",
"BigDecimal getTax();",
"public double getTax() {\r\n\r\n return getSubtotal() * 0.06;\r\n\r\n }",
"public double calcTax() {\n\t\treturn 0.2 * calcGrossWage() ;\n\t}",
"public String getLocationNumber()\n\t{\n\t\tString locationNo = getContent().substring(OFF_ID27_LOCATION, OFF_ID27_LOCATION + LEN_ID27_LOCATION) ;\n\t\treturn (locationNo);\n\t}",
"public int getLBR_ICMSST_TaxUFDue_ID();",
"public int getLocationX() {\r\n\t\treturn x;\r\n\t}",
"public final String getTaxoId() {\n\t\treturn taxoId;\n\t}",
"public int getLat();",
"public double getLocation(){\n\t\treturn location;\n\t}",
"public double getTaxRate() {\n return taxRate;\n }",
"public double useTax() {\n \n return super.useTax() + getValue()\n * PER_AXLE_TAX_RATE * getAxles();\n }",
"public double getTaxValue() {\n\t\treturn TaxCalculatorUtil.getTaxValue(getConfiguredPrice(),getPromotionValue(), getCouponDiscountValue(), getTaxRate(), getTaxationType());\n\t}",
"public double getTaxes() {\n return getArea() * TAX_RATE_PER_M2;\n }",
"double taxReturn() {\n\t\tdouble ddv = 0;\n\t\tif (d == 'A') {\n\t\t\tddv = 18;\n\t\t} else if (d == 'B') {\n\t\t\tddv = 5;\n\t\t}\n\t\t\n\t\tif (ddv = 0) {\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tdouble percent = price / 100.0;\n\t\tdouble tax = ddv * percent;\n\t\treturn tax / 100.0 * 15.0;\n\t}",
"int getLatitude();",
"public String getTaxCalculated()\n\t{\n\t\twaitForVisibility(taxCalculated);\n\t\treturn taxCalculated.getText();\n\t}",
"public int calculateTax() {\n int premium = calculateCost();\n return (int) Math.round(premium * vehicle.getType().getTax(surety.getSuretyType()));\n }",
"public MMDecimal getTaxAmount() {\r\n return this.taxAmount;\r\n }",
"public double getSalesTax() {\r\n return salesTax;\r\n }",
"public BigDecimal getLBR_ICMSST_TaxBase();",
"public int getLocation() {\n\t\tint location=super.getLocation();\n\t\treturn location;\n\t}",
"public int getLocationX( )\n\t{\n\t\treturn locationX;\n\t}",
"public String getLBR_ICMSST_TaxBaseType();",
"public String getLBR_ICMS_TaxStatusTN();",
"public BigDecimal getLBR_TaxBase();",
"public BigDecimal getTaxAmt() {\n\t\treturn taxAmt;\n\t}",
"public String getTotalTaxes(){\n String tax = driver.findElement(oTotalTaxes).getText();\n logger.debug(\"total taxes is\" + tax);\n return tax;\n }",
"@Override\r\n\tpublic double getTaxValue() {\n\t\treturn 0;\r\n\t}",
"int getRegionValue();",
"public CoreComponentTypes.apis.ebay.BasicAmountType getTaxAmount() {\r\n return taxAmount;\r\n }",
"int getLocationID();",
"public double getTaxes(){\n\t\treturn this.getExciseTax() + this.getFlightSegmentTax() + this.get911SecurityFee() + this.getPassengerFacilityFee();\n\t}",
"public double calculateTax() {\n taxSubtotal = (saleAmount * SALESTAXRATE);\n\n return taxSubtotal;\n }",
"public ISalesTax getTaxObject();",
"public BigDecimal getLBR_ICMSST_TaxAdded();",
"@ApiModelProperty(value = \"Total amount of TAX paid(or should be paid)\")\n @JsonProperty(\"tax\")\n public String getTax() {\n return tax;\n }",
"public int getLatitude() {\n checkRep();\n return this.latitude;\n }",
"public double getTaxedCost()\n\t{\n\t\treturn taxedCost;\n\t}",
"public BigDecimal getTaxGroupId() {\n return getTaxGroupIdProperty().getValue();\n }",
"public float calculateTax(String state, Integer flatRate);",
"public double taxPaying() {\r\n double tax;\r\n if (profit == true) {\r\n tax = revenue / 10.00;\r\n }\r\n\r\n else\r\n tax = revenue / 2.00;\r\n return tax;\r\n }",
"public String getLBR_ICMS_TaxStatusSN();",
"public int getAPTaxType()\r\n\t{\r\n\t\tif (isSalesTax())\r\n\t\t\treturn ACCTTYPE_TaxExpense;\r\n\t\treturn ACCTTYPE_TaxCredit;\r\n\t}",
"public int getC_BPartnerRelation_Location_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BPartnerRelation_Location_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"IntPoint getLocation();",
"LocationType getLocationType() {\r\n\t\treturn type;\r\n\t}",
"public float getServiceTax() {\n\t\treturn serviceTax;\n\t}",
"public java.lang.String getTAXJURCODE() {\r\n return TAXJURCODE;\r\n }",
"public String getLocationCode() {\n\t\treturn locationCode.get(this.unitID.substring(0, 2));\n\t}",
"public String getLBR_ICMS_OwnTaxStatus();",
"public String getLBR_ICMS_TaxBaseType();",
"public final double getX() { return location.getX(); }",
"public double getTaxRate() {\r\n\t\treturn .07;\r\n\t}",
"public double calculateTax(double amount){\n return (amount*TAX_4_1000)/1000;\n }",
"static double tax( double salary ){\n\n return salary*10/100;\n\n }",
"int getLongitude();",
"public static int calculateTransportation (double totalCost, String location){\n\t\tint transportation = 0;\n\t\tswitch (location){\n\t\t\tcase \"norte\":\n\t\t\t\tif (totalCost<80000)\n\t\t\t\t\ttransportation = 120000;\n\t\t\t\telse if (totalCost<300000)\n\t\t\t\t\ttransportation = 28000;\n\t\t\t\tbreak;\n\t\t\tcase \"centro\":\n\t\t\t\tif (totalCost<80000)\n\t\t\t\t\ttransportation = 50000;\n\t\t\t\tbreak;\n\t\t\tcase \"sur\":\n\t\t\t\tif (totalCost<80000)\n\t\t\t\t\ttransportation += 120000;\n\t\t\t\telse if (totalCost<300000)\n\t\t\t\t\ttransportation = 55000;\n\t\t\t\tbreak;\n\t\t}\n\t\treturn transportation;\n\t}",
"public BigDecimal getTaxRate() {\n return taxRate;\n }",
"public Number getFederalTaxPayerId() {\n return (Number)getAttributeInternal(FEDERALTAXPAYERID);\n }",
"int locationOffset(Location location);",
"public BigDecimal getIncludedTax()\r\n\t{\r\n\t\treturn m_includedTax;\r\n\t}",
"public int getLocX() {\n return locX;\n }",
"public BigDecimal getTaxscore() {\n return taxscore;\n }",
"public String getTaxcategory() {\r\n return taxcategory;\r\n }",
"public int getX(){\n\t\treturn this.x_location;\n\t}",
"public Number getGisLocationIdFk() {\r\n return (Number) getAttributeInternal(GISLOCATIONIDFK);\r\n }",
"@Override\n\tpublic int getLocationId() {\n\t\treturn _locMstLocation.getLocationId();\n\t}",
"public Number getProvincialTaxPayerId() {\n return (Number)getAttributeInternal(PROVINCIALTAXPAYERID);\n }",
"public LocationType getLocationType(){\n\t\treturn type;\n\t}",
"public int getLocationID() {\n return locationID;\n }",
"public BigDecimal getLBR_TaxBaseOwnOperation();",
"public BigDecimal getLBR_ICMSST_TaxAmt();",
"public java.lang.String getLOCNO()\n {\n \n return __LOCNO;\n }",
"public int getLand();",
"public int getC_BPartner_Location_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BPartner_Location_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}"
] | [
"0.6907165",
"0.67719805",
"0.66574347",
"0.663375",
"0.66106886",
"0.66060245",
"0.65793824",
"0.6388986",
"0.62993336",
"0.6290149",
"0.6288167",
"0.6279394",
"0.6248862",
"0.6244546",
"0.62164223",
"0.6198863",
"0.61985856",
"0.6182293",
"0.6173087",
"0.6159723",
"0.61320543",
"0.60788375",
"0.6042967",
"0.6039902",
"0.6034018",
"0.6033883",
"0.600942",
"0.5997071",
"0.59699816",
"0.5964013",
"0.59467447",
"0.59015095",
"0.5898652",
"0.5893044",
"0.5863234",
"0.58540905",
"0.58531165",
"0.5846449",
"0.583542",
"0.5835352",
"0.5827554",
"0.5826514",
"0.58239305",
"0.5799756",
"0.57994515",
"0.5785186",
"0.57781786",
"0.5777954",
"0.57700485",
"0.5741939",
"0.57409555",
"0.5726111",
"0.5724437",
"0.57205516",
"0.57147825",
"0.56940824",
"0.5693936",
"0.5691127",
"0.56744146",
"0.5674172",
"0.56649804",
"0.56571317",
"0.5656054",
"0.56508017",
"0.5642402",
"0.5633616",
"0.5632076",
"0.562709",
"0.5605619",
"0.5599446",
"0.5594561",
"0.55916506",
"0.5587736",
"0.55700314",
"0.5563095",
"0.555691",
"0.5548583",
"0.5538361",
"0.55333495",
"0.5520211",
"0.5503702",
"0.54942304",
"0.54920375",
"0.5482442",
"0.54726166",
"0.5472051",
"0.5447034",
"0.54465026",
"0.5439585",
"0.5430237",
"0.5426001",
"0.54249066",
"0.54123724",
"0.5411301",
"0.5410433",
"0.5404614",
"0.5396744",
"0.53901786",
"0.53845525",
"0.5383459"
] | 0.8194921 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
int a,b;
System.out.println("to check den is zero");
Scanner scanner =new Scanner(System.in);
a = scanner.nextInt();
b=scanner.nextInt();
number(a,b);
} | {
"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 |
/ GCD: Greatest Common Divisor | public static int gcd(int a, int b){
return a>b ? lnko_ordered(a,b) : lnko_ordered(b,a);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int gcd(){\n\tint min;\n\tint max;\n\tint stor;\n\tif ((numerator == 0) || (denominator == 0)){\n\t return 0;\n\t}\n\telse {\n\t if ( numerator >= denominator ) {\n\t\tmax = numerator;\n\t\tmin = denominator;\n\t }\n\t else {\n\t\tmax = denominator;\n\t\tmin = numerator;\n\t }\n\t while (min != 0){\n\t stor = min;\n\t\tmin = max % min;\n\t\tmax = stor;\n\t }\n\t return max;\n\t}\n }",
"static long getGCD(long x, long y) {\n long a = Math.max(x, y);\n long b = Math.min(x, y);\n\n while (b != 0) {\n long r = a % b;\n a = b;\n b = r;\n }\n\n return a;\n }",
"public static int GCD(int a, int b){\r\n if (b == 0){\r\n return a;\r\n }\r\n return GCD(b,a%b);\r\n }",
"public int getGreatestCommonDivisor(int first, int second) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tint GCD = 0;\n\t\tboolean found = false;\n\t\tArrayList<Integer> firstDivisor = new ArrayList<Integer>();\n\t\tArrayList<Integer> secondDivisor = new ArrayList<Integer>();\n\t\tif(first < 10 || second < 10) {\n\t\t\tGCD = -1;\n\t\t}\n\t\telse {\n\t\t\tfor(int i = 1; i <= first; i++) {\n\t\t\t\tif(first % i == 0) {\n\t\t\t\t\tfirstDivisor.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i <= second; i++) {\n\t\t\t\tif(second % i ==0) {\n\t\t\t\t\tsecondDivisor.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tfor(Integer i: firstDivisor) {\n//\t\t\t\tSystem.out.println(i);\n//\t\t\t}\n//\t\t\tfor(Integer i: secondDivisor) {\n//\t\t\t\tSystem.out.println(i);\n//\t\t\t}\n\t\t\t\n\t\t\tif(firstDivisor.size() >= secondDivisor.size()) {\n\t\t\t\tGCD = firstDivisor.get(0);\n\t\t\t\tfor(int i =0; i < firstDivisor.size(); i++) {\n\t\t\t\t\tfor(int j =0; j < secondDivisor.size(); j++) {\n\t\t\t\t\t\tif(secondDivisor.get(j)==firstDivisor.get(i)) {\n\t\t\t\t\t\t\tfound = true;\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(found == true) {\n\t\t\t\t\t\tif(firstDivisor.get(i) >= GCD) {\n\t\t\t\t\t\t\tGCD = firstDivisor.get(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfound = false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(secondDivisor.size() >= firstDivisor.size()) {\n\t\t\t\tGCD = secondDivisor.get(0);\n\t\t\t\tfor(int i =0; i < secondDivisor.size(); i++) {\n\t\t\t\t\tfor(int j =0; j < firstDivisor.size(); j++) {\n\t\t\t\t\t\tif(firstDivisor.get(j)==secondDivisor.get(i)) {\n\t\t\t\t\t\t\tfound = true;\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(found == true) {\n\t\t\t\t\t\tif(secondDivisor.get(i) >= GCD) {\n\t\t\t\t\t\t\tGCD = secondDivisor.get(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfound = false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\t//System.out.println(GCD);\n\t\treturn GCD;\n\t}",
"public static int gcd(int a, int b){\n int tmp = a;\r\n a = Math.max(a,b);\r\n b = Math.min(tmp,b);\r\n \r\n //write GCD\r\n int remainder;\r\n do{\r\n remainder = a%b;\r\n a = b;\r\n b = remainder;\r\n } while(remainder !=0);\r\n \r\n return a;\r\n }",
"private int gcd(int a, int b){\r\n int r, temp;\r\n if( a<b ){ temp = a; a = b; b = temp; }\r\n while( b!=0 ){ r = a%b; a = b; b = r; }\r\n return a;\r\n }",
"private RunGreatestCommonDivisor() {\r\n\t}",
"public static int GCD(int a, int b){\n\t\tif(b == 0) return a;\n\t\treturn GCD(b, a%b);\n\t}",
"private static int gcd (int a, int b) {\n int m = Math.max (Math.abs (a), Math.abs (b));\n if (m == 0) throw new ArithmeticException (\" zero in gcd \");\n int n = Math.min (Math.abs (a), Math.abs (b));\n while (n > 0) {\n a = m % n;\n m = n;\n n = a;\n }\n return m;\n }",
"private int getGCD(int a, int b) {\r\n if ( b == 0 ) {\r\n return a;\r\n } else {\r\n return getGCD(b, a % b);\r\n }\r\n }",
"private static int gcd(int a, int b)\r\n\t{\r\n\t\tint remainder = a % b;\r\n\t\tif(remainder == 0)\r\n\t\t{\r\n\t\t\treturn b;\r\n\t\t}\r\n\t\treturn gcd(b, remainder);\r\n\t}",
"private int getGCD(int a, int b) {\n \n /** This ensures the larger of the two numbers is in a */\n if(a < b){\n /** Temp variable used for swapping two variables */\n int temp = a;\n a = b;\n b = temp;\n }\n\n /** The remainder needs to be stored to recursively find the gcd */\n int remainder;\n if((remainder = a % b) == 0) {\n return b;\n } else {\n return getGCD(b, remainder);\n }\n }",
"private static int gcd(int a, int b) {\n\t\tif(a==0){\n\t\t\treturn b;\n\t\t}\n\t\treturn gcd(b%a,a);\n\t}",
"int gcd(int a, int b) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t int x,y,r=1;\r\n\t\t if(a<b)\r\n\t\t {\r\n\t\t\t x = b;\r\n\t\t\t y = a;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\t x = a;\r\n\t\t\t y = b;\r\n\t\t }\r\n\t\t while(r!=0)\r\n\t\t {\r\n\t\t r = x%y;\r\n\t\t if(r==0)\r\n\t\t\t break;\r\n\t\t x = y;\r\n\t\t y = r;\r\n\t\t }\r\n\t\t// System.out.println(\"====\"+y);\r\n\t\treturn y;\r\n\t}",
"static int gcd(int a, int b) {\r\n\t\tif (b == 0)\r\n\t\t\treturn a;\r\n\t\treturn gcd(b, a % b);\r\n\t}",
"int gcd(int x,int y)\n\t{\n\t\tif(x>0 && y>0)\n\t\t{\n\t\t\twhile(x!=y)\n\t\t\t{\n\t\t\t\tif(x>y) //If number1>number2\n\t\t\t\t\treturn(gcd(x-y,y)); \n\t\t\t\telse //If number2>number1 \n\t\t\t\t\treturn(gcd(y-x,x));\n\t\t\t}\n\t\t\treturn x; //Return final calculated GCD\n\t\t}\n\t\telse\n\t\t\treturn -1; //If user input is a negative number\n\t}",
"private int gcd(int x, int y) {\n if (y == 0) {\n return x;\n }\n return gcd(y, x % y);\n }",
"@Test\r\n\tpublic void testGreatestCommonDivisorCalculation() {\r\n\r\n\t\tGreatestCommonDivisor testGcd = new GreatestCommonDivisor();\r\n\t\tint testGcdOne = testGcd.greatestCommonDivisorCalculation(21, 180);\r\n\t\tint testGcdTwo = testGcd.greatestCommonDivisorCalculation(5, 10);\r\n\t\tint testGcdTree = testGcd.greatestCommonDivisorCalculation(37, 77);\r\n\t\tint testGcdFour = testGcd.greatestCommonDivisorCalculation(30, 77);\r\n\r\n\t\tAssert.assertEquals(3, testGcdOne);\r\n\t\tAssert.assertEquals(5, testGcdTwo);\r\n\t\tAssert.assertEquals(1, testGcdTree);\r\n\t\tAssert.assertNotEquals(4, testGcdFour);\r\n\t}",
"private static int gcd(int n1,int n2){\n int a = n1>n2?n1:n2;\r\n int b = n1>n2?n2:n1;\r\n int r = a%b;\r\n while(r!=0){\r\n a = b;\r\n b = r;\r\n r = a%b;\r\n }\r\n return b;\r\n }",
"public static int gcd(int a, int b) {\r\n\t\twhile(b > 0) {\r\n\t\t\tint temp = b;\r\n\t\t\tb = a % b;\r\n\t\t\ta = temp;\r\n\t\t}\r\n\t\t\r\n\t\treturn a;\r\n\t}",
"public int findGCD(int num1, int num2)\n {\n if (num1 < num2)\n {\n //calls findGCD with the numbers reversed\n findGCD(num2, num1);\n }\n //if num2 is equal to 0\n else if (num2 == 0)\n {\n //the GCD is num1\n divisor = num1;\n } \n else\n {\n //calls GCD with num2 and the remainder of num1 and num2\n findGCD(num2, (num1%num2)); \n }\n \n //returns the divisor\n return divisor;\n }",
"public static int greatestCommonDivisor(int inputOne, int inputTwo)\n {\n inputOne = Math.abs(inputOne);\t\t\n inputTwo = Math.abs(inputTwo);\t\t\n \t\t\n int smaller = Math.min(inputOne, inputTwo);\t\t\n int greatestCommonDivisor = 1;\n \t\t\n for (int index = 1; index <= smaller; index++)\t\n \tif ((inputOne % index) == 0 && (inputTwo % index) == 0)\n \t\tgreatestCommonDivisor = index;\n return greatestCommonDivisor;\t\t\n }",
"public static int GCD(int A, int B) {\n while (B != 0) {\n int remainder = A % B;\n A = B;\n B = remainder;\n }\n\n return A;\n }",
"private static int greatestCommonDivisor(int alpha, int beta){\n\n\t\talpha = Math.abs(alpha); // take absolute values of operands\n\t\tbeta = Math.abs(beta);\n\t\n\t\tif (beta == 0) // base case\n\t \treturn alpha;\n\t\telse{ // induction step\n\t\t\tint remainder = alpha % beta;\n\t\t\n\t\t\treturn greatestCommonDivisor(beta, remainder);\n\t }\n }",
"public int gcd(int a, int b) {\n // write your code here\n if (b != 0) {\n return gcd(b, a % b);\n }\n else\n return a;\n }",
"private int findGCD(int n1, int n2) {\n //n1 and n2 must always be positive for this GCD algorithm\n n1 = Math.abs(n1);\n n2 = Math.abs(n2);\n\n //continue through the loop if n2 is greater than 0\n while (n2 > 0) {\n int remainder = n1 % n2;\n //n1 will keep track of the GCD value\n n1 = n2;\n //n2 will keep track of the remainder\n n2 = remainder;\n }\n //setting n1 is the gcd value\n return n1;\n }",
"static long gcd(long a, long b) {\n\t\ta = Math.abs(a); b = Math.abs(b);\n\t\tif(a < b) return gcd(b,a);\n\t\tif(b == 0) return a;\n\t\treturn gcd(a%b, b);\n\t}",
"private static boolean gcd(int a, int b) {\n while (b > 0) {\n int temp = b;\n b = a % b;\n a = temp;\n }\n return a == 1;\n }",
"private static int findGCD(int number1, int number2) {\r\n\t\t// base case\r\n\t\tif (number2 == 0) {\r\n\t\t\treturn number1;\r\n\t\t}\r\n\t\treturn findGCD(number2, number1 % number2);\r\n\t}",
"private int getGCD(int[] a) {\r\n\r\n int gcd = a[0];\r\n\r\n for (int i = 1; i < a.length; i++) {\r\n gcd = getGCD(gcd, a[i]);\r\n }\r\n return gcd;\r\n }",
"public static int gcd(int a, int b) {\n\t\t// take absolute values\n\t\tif (a < 0) {\n\t\t\ta *= -1;\n\t\t}\n\t\tif (b < 0) {\n\t\t\tb *= -1;\n\t\t}\n\n\t\t// ensure a > b\n\t\tif (a < b) {\n\t\t\tint temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\t// a = b * (a / b) + (a % b)\n\t\t// then b = (a % b) * ((a % b) / b) + (a % b) % b\n\t\t// by the division algorithm. Execute until some\n\t\t// such product has no remainder, the remainder of\n\t\t// the previous equation is GCD(a, b).\n\t\twhile (b > 0) {\n\t\t\tint temp = b;\n\t\t\tb = a % b;\n\t\t\ta = temp;\n\t\t}\n\t\treturn a;\n\t}",
"private static long gcd(long n, long d) {\n\t long n1 = Math.abs(n);\n\t long n2 = Math.abs(d);\n\t int gcd = 1;\n\t \n\t for (int k = 1; k <= n1 && k <= n2; k++) {\n\t if (n1 % k == 0 && n2 % k == 0) \n\t gcd = k;\n\t }\n\n\t return gcd;\n\t }",
"public int gcd(int x, int y) {\n if (x < y) return gcd(y, x);\n return y == 0 ? x : gcd(y, x % y);\n }",
"private int gcd(int a, int b) {\n // Note that the loop below, as-is, will time out on negative inputs.\n // The gcd should always be a positive number.\n // Add code here to pre-process the inputs so this doesn't happen.\n if ( a < 0 ) {\n a = - a;\n }\n if ( b < 0 ) {\n b = - b;\n }\n\n \twhile (a != b)\n \t if (a > b)\n \t\t a = a - b;\n \t else\n \t\t b = b - a;\n \treturn a;\n }",
"public static int gcd(int a, int b) {\n int t = 0;\n while (b != 0) {\n t = b;\n b = a % b;\n a = t;\n }\n return Math.abs(a);\n }",
"private static int gcd(int m, int n)\n {\n int mx = Math.max(m, n);\n int mn = Math.min(m, n);\n int remainder = 1;\n while (remainder != 0)\n {\n remainder = mx % mn;\n mx = mn;\n mn = remainder;\n }\n return mx;\n }",
"public static int findGCF(int a, int b) {\r\n\t\tint GCF = 1;\r\n\t\tfor (int i = 1; i <= Math.abs(a); i++) {\r\n\t\t\t// loop to find greatest common factor\r\n\t\t\tif (((a % i) == 0) && ((b % i) == 0)) {\r\n\t\t\t\tGCF = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn GCF;\r\n\t}",
"public static void launchEuclidAlgorithmForGCD(int a, int b) {\n int number = Math.max(a, b);\n int divisor = Math.min(a, b);\n int quot = number / divisor;\n int rem = number - (divisor * quot);\n while (rem != 0) {\n System.out.println(number+\" = \"+divisor+\"(\"+quot+\") + \"+rem);\n number = divisor;\n divisor = rem;\n quot = number / divisor;\n rem = number - (divisor * quot);\n }\n System.out.println(number+\" = \"+divisor+\"(\"+quot+\") + \"+rem);\n System.out.println(\" \\u2234 gcd(\"+a+\", \"+b+\") = \"+divisor);\n }",
"public int gcd(int a, int b) {\n\t\tint result;\n\t\tif (a > 0) {\n\t\t\tresult = gcd(b % a, a);\n\t\t} else {\n\t\t\tresult = b;\n\t\t}\n\n\t\treturn result;\n\t}",
"private int gcd(int m, int n) {\n\t\tint r;\n\t\twhile(n != 0) {\n\t\t\tr = m % n;\n\t\t\tm = n;\n\t\t\tn = r;\n\t\t}\n\t\treturn m;\n\t}",
"private static int findGcd(int a, int b) {\n\n\t\tint low = a < b ? a : b;\n\t\tint high = a < b ? b : a;\n\n\t\tif (high % low == 0) {\n\t\t\treturn low;\n\t\t} else {\n\t\t\treturn findGcd(high, high % low);\n\t\t}\n\t}",
"public static int gcd(int a, int b) {\n return BigInteger.valueOf(a).gcd(BigInteger.valueOf(b)).intValue();\n }",
"public static int findGCD(int int1, int int2) {\n\t\tint gcd = 1;\n\t\t\n\t\tfor (int i = 2; i <= int1 && i <= int2; i++) {\n\t\t\tif (int1 % i == 0 && int2 % i == 0)\n\t\t\t\tgcd = i;\n\t\t}\n\t\t\n\t\treturn gcd;\n\t}",
"public static int gcf(int num, int denom) {\n \tint number=1;\t//declare num to equal 1\t\r\n\t\tif(denom<0) { //if denom is negative, multiply by -1 to get a positive denom\r\n\t\t\tdenom *= -1;\r\n\t\t}\r\n\t\tif(num<0) {\t//if the num is negative multiply it by -1 to make it positive\r\n\t\t\tnum *= -1;\r\n\t\t}\r\n\t\tfor(int i = 1; i <= num && i <= denom; i++) {\t//make a for loop that will test to see if i <=x&y (iterate to lowest # possible) to find the gcd\r\n\t\t\tif (isDivisibleBy(num,i) == true && isDivisibleBy(denom,i)==true) { \t// add 1 to i each loop; uses the method to check if i is factor of both integers\r\n\t\t\t\tnumber = i;\t//make num equal to i\r\n\t\t\t}\t\r\n\t\t}\r\n\t\treturn number; //return the number\r\n\t}",
"public void reduce(){\r\n int num = numerator;\r\n int denom = denominator;\r\n int greatest;\r\n \r\n // Find the greater of numerator and denominator\r\n if(numerator < 0){\r\n num = -numerator;\r\n }\r\n if(num > denom){\r\n greatest = num;\r\n }\r\n else\r\n greatest = denom;\r\n \r\n // Find the GCD\r\n int gcd = 0;\r\n // starting from the largest\r\n for(int i = greatest; i > 1; i--){\r\n if((numerator % i == 0) && (denominator % i == 0)){\r\n gcd = i;\r\n break;\r\n }\r\n }\r\n // factor out the gcd in both the numerator and denominator\r\n if(gcd != 0){\r\n numerator /= gcd;\r\n denominator /= gcd;\r\n }\r\n }",
"public static int LCM(int a, int b){\r\n int lowest = a * b / GCD(a,b);\r\n //System.out.print(lowest);\r\n return lowest;\r\n }",
"private static int gcd(int m, int n) {\n if (n == 0)\n return m;\n else\n return gcd(n, m % n);\n }",
"public static int gcd(int m,int n) {\n\t\tint p=m,q=n;\n\t\twhile(p%q!=0) {\n\t\t\tint r=p%q;\n\t\t\tp=q;\n\t\t\tq=r;\n\t\t}\n\t\treturn q;\n\t}",
"@Test\n\tpublic void gcdOfFiboNumsTest() {\n\n\t\tAssert.assertTrue(ifn.gcdOfFiboNums(3, 12) == 2);\n\t}",
"public static int gcd(int m, int n) {\n\t\tif(n==0) return m;\r\n\t\telse{\r\n\t\t\treturn gcd(n,m%n);\r\n\t\t}\r\n\t}",
"private BigInteger gcd(BigInteger n, BigInteger d)\n\t\t{\n\t\t\t// Returns the absolute values of the BigInteger\n\t\t\tBigInteger n1 = n.abs();\n\t\t\tBigInteger n2 = d.abs();\n\t\t\t\n\t\t\t// If n2 equals 0 return n1\n\t\t\tif(n2.equals(BigInteger.ZERO)){\n\t\t\t\treturn n1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t// else recursively return the gcd of n2 and n1%n2\n\t\t\t\treturn gcd(n2,n1.mod(n2));\n\t\t\t}\n\t\t}",
"private static int gcd(int m, int n) {\r\n\t\tif (m % n == 0)\r\n\t\t\treturn n; // Base case\r\n\t\telse // Recursive call\r\n\t\t\treturn gcd(n, m % n);\r\n\t}",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int gcd = 1, lcm = 1;\n int temp = a;\n int temp2 = b;\n // int fact = 1;\n if (a > b) {\n\n for (int i = a; i < a * b;i+=a) {\n if ( i % b == 0) {\n lcm = i;\n break;\n // System.out.println(lcm);\n } \n }\n } else {\n for (int i = b; i < a * b; i+=b) {\n if ( i%a == 0) {\n lcm = i;\n break;\n // System.out.println(lcm);\n } \n }\n\n }\n gcd = (a * b) / lcm;\n System.out.println(gcd);\n System.out.println(lcm);\n }",
"static int gcd2(int m, int n) {\n if (m==0) return n;\n else return gcd2(n%m,m);\n }",
"public static Integer gcd(Integer p, Integer q) {\n\t\tif (q == 0) {\n\t\t return p;\n\t\t}\n\t\treturn gcd(q, p % q);\n\t}",
"static int lcm(int num1, int num2, int hcf){\n return (num1*num2)/hcf;\n }",
"public int gcd() {\n return BigInteger.valueOf(row)\n .gcd(BigInteger.valueOf(column)).intValue();\n }",
"public int getGCD(int numerator, int denominator)\n\t{\n\t\tif (denominator == 0)\n\t\t{\n\t\t\treturn numerator;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn getGCD(denominator, numerator % denominator);\n\t\t}\n\t}",
"public static int gcf(int [] operand) {\r\n \t\tint count = 1;\r\n \t\tint factor = 1;\r\n \t\twhile (count <= Math.min(Math.abs(operand[0]), operand[1])) { \r\n \t\t\t//Java had sign problems here if the numerator was negative\r\n \t\t\tif (Math.abs(operand[0]%count) == 0 && Math.abs(operand[1]%count) ==0) {\r\n \t\t\t\tfactor = count; \r\n \t\t\t}\r\n \t\t\tcount++;\r\n \t\t}\r\n \t\treturn (factor);\r\n \t}",
"public static int greatestCommonFactor(int m, int n)\n\t{\n\t\tif(n == 0)\n\t\t{\n\t\t\treturn m;\n\t\t}\n\t\t\n\t\treturn greatestCommonFactor(n, m%n);\n\t\t\n\t}",
"public static int gcf(int num1, int num2) {\r\n\t\tint maxNumber = max(num1, num2);\r\n\t\tint minNumber = min(num1, num2);\r\n\t\tif (minNumber == 0) \r\n\t\t\treturn maxNumber;\r\n\t\tif (minNumber < 0)\r\n\t\t\tminNumber *= -1;\r\n\t\tSystem.out.println(maxNumber + \" \" + minNumber);\r\n\t\tfor (int i = minNumber; i > 0; i--) {\r\n\t\t\tboolean a = isDivisibleBy(maxNumber, i);\r\n\t\t\tboolean b = isDivisibleBy(minNumber, i);\r\n\t\t\tif (a == true && b == true) {\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 1;\r\n\t}",
"public static long PGCD (int a, int b) {\r\n\r\n\t\tlong pgcd = 0;\r\n\t\tint r = 0;\r\n\r\n\t\ta = Math.abs(a);\r\n\t\tb = Math.abs(b);\r\n\r\n\t\twhile(true){\r\n\t\t\tif (b == 0) {\r\n\t\t\t\tpgcd = a;\r\n\t\t\t\tbreak;\r\n\t\t\t} else {\r\n\t\t\t\tr = a % b;\r\n\t\t\t\ta = b;\r\n\t\t\t\tb = r;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pgcd;\r\n\r\n\t}",
"public static int gcd(int n1, int n2) {\n BigInteger n1_big = BigInteger.valueOf(n1);\n BigInteger n2_big = BigInteger.valueOf(n2);\n return n1_big.gcd(n2_big).intValue();\n }",
"static long lcm(long a, long b) \n\t\t{ \n\t\t\treturn (a*b)/gcd(a, b); \n\t\t}",
"private static int findLCM(int a, int b) {\n return a * (b / findGCD(a, b));\n }",
"private static BigInteger comprime(BigInteger input) {\n \t\n \t//krenemo od dva\n BigInteger candidate = BigInteger.valueOf(2);\n while (true) {\n \t\n \t//kada nadjemo odgovarajuci vratimo ga\n if (input.gcd(candidate).equals(BigInteger.ONE)) {\n return candidate;\n }\n candidate = candidate.add(BigInteger.ONE);\n }\n }",
"@Test\n public void testReduceToGCD_0_0() {\n NaturalNumber n = new NaturalNumber2(0);\n NaturalNumber m = new NaturalNumber2(0);\n CryptoUtilities.reduceToGCD(n, m);\n assertEquals(\"0\", n.toString());\n assertEquals(\"0\", m.toString());\n }",
"public static void main(String[] args){\n int[] testNumbers = {12, 4, 12, 5, -16, 14, 0}; \n for(int i = 1; i < testNumbers.length; i++)\n System.out.println(gcdRecursive(testNumbers[i-1], testNumbers[i]));\n for(int i = 1; i < testNumbers.length; i++)\n System.out.println(gcdLoop(testNumbers[i-1], testNumbers[i])); \n \n }",
"public static int gcds(int n, int d) {\n\tint min;\n\tint max;\n\tint stor;\n\tif ((n == 0) || (d == 0)){\n\t return 0;\n\t}\n\telse {\n\t if ( n >= d ) {\n\t\tmax = n;\n\t\tmin = d;\n\t }\n\t else {\n\t\tmax = d;\n\t\tmin = n;\n\t }\n\t while (min != 0){\n\t stor = min;\n\t\tmin = max % min;\n\t\tmax = stor;\n\t }\n\t return max;\n\t}\n }",
"static int greatestDenominator(int a, int b) {\n int denominator = 0;\n\n // Loops from 0 to max(a, b) to test denominators\n for (int i = 1; i < Math.max(a, b); i++) {\n if (a % i == 0 && b % i == 0) {\n denominator = i;\n }\n }\n\n return denominator;\n }",
"private static int calculateLCM(int a, int b){\n\t\tint gcd = calculateGCD(a, b);\n\t\tint lcm = (a/gcd)*b; //same as a*b/gcd but a*b could be very large number so avoiding that\n\t\treturn lcm;\n\t}",
"static int hcf(int num1, int num2){\n int i = 1;\n int hcf = 0;\n\n while(i<=num1 || i<=num2){\n if (num1%i == 0 && num2%i==0){\n hcf = i;\n }\n i++;\n }\n return hcf;\n }",
"public static int findGCF(int num, int denom)\r\n {\r\n \tif (denom == 0)\r\n \t{\r\n \t\treturn num;\r\n \t}\r\n \treturn findGCF(denom, num % denom);\r\n }",
"private int getLCD(int a, int b){\n return ( (a * b) / getGCD(a, b) ); \n }",
"public int gcd(int e, int phi) {\r\n if(e == 0)\r\n return phi; \r\n else\r\n return gcd(phi % e, e);\r\n }",
"public static int HCF(int a, int b){\r\n int x, i, hcf = 0;\r\n \r\n for(i = 1; i<=a || i<=b; i++){\r\n if(a%i == 0 && b%i == 0){\r\n hcf = i;\r\n }} \r\n //System.out.print(hcf);\r\n return hcf;\r\n }",
"public interface CalculateGCD {\n int calcGCD(int number1, int number2);\n}",
"public static void main (String[] args){\n Scanner in=new Scanner(System.in);\n int n1=in.nextInt();\n int n2=in.nextInt();\n int n3=in.nextInt();\n int ans=gcd(n1,n2,n3);\n System.out.println(ans);\n }",
"public Composite gcd(Composite comp) {\n\t\tint pow = 0;\n\t\tNode head = new Node(0,0);\n\t\tNode divisor = head;\n\t\tNode current_node = this.head;\n\t\tNode first = comp.head;\n\t\tNode comp_head = first;\n\t\twhile(current_node != null){\n\t\t\twhile(comp.head != null){\n\t\t\t\tif(current_node.factor == comp.head.factor){\n\t\t\t\t\tif(current_node.power > comp.head.power){\n\t\t\t\t\t\tpow = comp.head.power;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tpow = current_node.power;\n\t\t\t\t\t}\n\t\t\t\t\tdivisor.next = new Node(current_node.factor, pow);\n\n\t\t\t\t\tdivisor = divisor.next;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcomp.head = comp.head.next;\n\t\t\t}\n\t\t\tcomp.head = comp_head;\n\t\t\tcurrent_node = current_node.next;\n\t\t}\n\t\tComposite head_comp = new Composite();\n\t\tif(head.next == null){\n\t\t\thead_comp.head = new Node(1,1);\n\t\t}\n\t\telse{\n\t\t\thead_comp.head = head.next;\n\t\t}\n\t\tcomp.head = first;\n\t\treturn head_comp;\n\t}",
"public static void main(String[] args) {\n DateTime();\r\n\r\n System.out.println(\"Enter two Positive Integers to Find GCD\");\r\n\r\n //Reading two positive integers\r\n Scanner scan = new Scanner(System.in);\r\n int Num1 = scan.nextInt();\r\n int Num2 = scan.nextInt();\r\n\r\n System.out.println(\"GCD of two number \" + Num1 + \" and \" + Num2 + \" is \" + GCD(Num1, Num2));\r\n\r\n }",
"public static int lcm(int a, int b) {\r\n\t\treturn a * (b / gcd(a, b));\r\n\t}",
"private static int pair_GCF(int a, int b) {\n int t;\n while (b != 0) {\n t = a;\n a = b;\n b = t % b;\n }\n return a;\n }",
"static private long lcm(long x, long y) {\n\t\tif (x != 0 && y != 0) {\n\t\t\tlong firstValue = x;\n\t\t\tlong secondValue = y;\n\t\t\treturn (firstValue * secondValue) / hcf(x, y);\n\t\t} else\n\t\t\treturn 1;\n\n\t}",
"private long maxDivide(long a, long b) {\n\t\twhile (a % b == 0) {\n\t\t\ta = a / b;\n\t\t}\n\t\treturn a;\n\t}",
"public int optimizedCom() {\n\tint b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0;\n\tint a = 1;\n\n\tb = 65;\n\tc = b;\n\n\tif (a != 0) {\n\t b = (b * 100) + 100000;\n\t c = b + 17000;\n\t}\n\n\t// at this point:\n\t// a == 1\n\t// b == 106500\n\t// c == 123500\n\n\t// outer loop terminates when b == c\n\t// c never changes, serves as termination condition\n\t// b only gets +17 added for every execution of the outer loop\n\n\tdo {\n\t f = 1;\n\t d = 2;\n\t do { // jnz g -13\n\t\te = 2;\n\n\t\tdo { // jnz g - 8\n\t\t g = (d * e) - b;\n\n\t\t if (g == 0)\n\t\t\tf = 0;\n\n\t\t e++;\n\n\t\t g = e - b;\n\t\t} while (g != 0);\n\n\t\td++;\n\n\t\tg = d - b;\n\t } while (g != 0);\n\n\t // increments h if register b contains a non-prime number (checked by printing all values)\n\t if (f == 0) {\n\t\th++;\n\t\tSystem.out.println(\"b: \" + b + \" c: \" + c + \" d: \" + d + \" e: \" + e + \" f: \" + f + \" g: \" + g);\n\t }\n\n\t // c does not change, b only gets increased by 17\n\t // if b == c, the method returns h which is the number of non-prime numbers encountered in the loop\n\t g = b - c;\n\n\t if (g == 0)\n\t\treturn h;\n\n\t b += 17;\n\n\t} while (true);\n }",
"public int pgcdByDE(int a, int b) throws Exception{\n if(a <1 || b <1){\n throw new Exception(\"a et b doivent etre >= 1\");\n }\n int reste = a > b ? a % b : b % a;\n if(reste == 0)\n return a > b ? b : a;\n if(a > b){\n a = reste;\n }else b = reste;\n return pgcdByDE(a,b);\n }",
"private BigInteger lcm(BigInteger input1, BigInteger input2) {\n return input1.multiply(input2).divide(input1.gcd(input2));\n }",
"public static BigInteger lcm(String a, String b) \n\t\t{\n\t\t\tBigInteger s = new BigInteger(a); \n\t\t\tBigInteger s1 = new BigInteger(b); \n\n\t\t\t// calculate multiplication of two bigintegers \n\t\t\tBigInteger mul = s.multiply(s1); \n\n\t\t\t// calculate gcd of two bigintegers \n\t\t\tBigInteger gcd = s.gcd(s1); \n\n\t\t\t// calculate lcm using formula: lcm * gcd = x * y \n\t\t\tBigInteger lcm = mul.divide(gcd); \n\t\t\treturn lcm; \n\t\t}",
"public static void modgcd (int a[], int b[], int gcd[]) {\n\t\tif (isZero(a)) { assign (gcd, a); return; }\n\t\tif (isZero(b)) { assign (gcd, b); return; }\n\t\t\n\t\t// align a and b to have same number of digits and work on copies\n\t\ta = copy(normalize(a, b.length));\n\t\tb = copy(normalize(b, a.length));\n\t\t\n\t\t// ensure that a is greater than b. Also return trivial gcd.\n\t\tint rc = compareTo(a,b);\n\t\tif (rc == 0) { assign (gcd, a); return; }\n\t\tif (rc < 0) {\n\t\t\tint t[] = b;\n\t\t\tb = a;\n\t\t\ta = t;\n\t\t}\n\t\t\n\t\tint quot[] = new int[a.length];\n\t\tint remainder[] = new int[a.length];\n\t\twhile (!isZero(b)) {\n\t\t\tint t[] = copy (b);\n\t\t\tdivide (a, b, quot, remainder);\n\t\t\tassign (b, remainder);\t\t\t\n\t\t\tassign (a, t);\n\t\t}\n\n\t\t// value held in a is the computed gcd of (a,b).\n\t\tassign (gcd, a);\n\t}",
"public static int MCD_recursivo(int num1, int num2) {\n if (num2 == 0) {\r\n return num1;\r\n //como el if solo esta impriemindo el resultado aqui tenemos que volver a llamar la funcion recursiva las veces que sea necesario para encontra el maximon comun divisor\r\n } else {\r\n return MCD_recursivo(num2, num1 % num2);\r\n }\r\n }",
"public static void gcd (int a[], int b[], int gcd[]) {\n\t\tif (isZero(a)) { assign (gcd, a); return; }\n\t\tif (isZero(b)) { assign (gcd, b); return; }\n\t\t\n\t\ta = copy (a); // Make copies to ensure\n\t\tb = copy (b); // that a and b are not modified.\n\t\t\n\t\twhile (!isZero(b)) {\n\t\t\t// last argument to subtract represents sign of result which\n\t\t\t// we can ignore since we only subtract smaller from larger.\n\t\t\t// Note compareTo (a, b) is positive if a > b.\n\t\t\tif (compareTo(a, b) > 0) {\n\t\t\t\tsubtract (a, b, gcd, new int[1]);\n\t\t\t\tassign (a, gcd);\n\t\t\t} else {\n\t\t\t\tsubtract (b, a, gcd, new int[1]);\n\t\t\t\tassign (b, gcd);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// value held in a is the computed gcd of original (a,b).\n\t\tassign (gcd, a);\n\t}",
"public static int GCF(int... ints) {\n int gcd = pair_GCF(ints[0], ints[1]);\n for (int i = 2, n = ints.length; i < n; i++) {\n gcd = pair_GCF(ints[2], gcd);\n }\n return gcd;\n }",
"public static int greatestCommonFactor(ArrayList<Integer> num1, ArrayList<Integer> num2)\n {\n //create an ArrayList to hold common factors\n ArrayList<Integer> commonFactors = new ArrayList<Integer>();\n int greatestFactor = 0;\n for(Integer i : num1)\n {\n if(num2.contains(i))\n {\n commonFactors.add(i);\n }\n }\n\n //find the greatest factor by looping through each element in the commonFactors list\n for(Integer a : commonFactors)\n {\n if(a > greatestFactor)\n {\n greatestFactor = a;\n }\n }\n return greatestFactor;\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.print(\"Enter num1: \");\n int num1 = sc.nextInt();\n System.out.print(\"Enter num2: \");\n int num2 = sc.nextInt();\n\n int hcf = hcf(num1, num2);\n int lcm = lcm(num1, num2, hcf);\n\n System.out.println(\"the lcm is: \" + lcm);\n\n }",
"public void reduce()\n\t{\n\t\tint divider = getGCD(myNumerator, myDenominator);\n\t\tmyNumerator /= divider;\n\t\tmyDenominator /= divider;\n\t}",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int a, b;\n\n System.out.println(\"Please input two integers.\");\n a = input.nextInt();\n b = input.nextInt();\n\n System.out.println(\"Greatest common denominator is: \");\n System.out.println(greatestDenominator(a, b));\n\n }",
"public static int MCD_iterativo(int n1, int n2) {\n if (n1 > n2) {\r\n a = n1;\r\n b = n2;\r\n } else {\r\n a = n2;\r\n b = n1;\r\n }\r\n /*Calculamos el maximo comun divisior mediante un ciclo iterativo en el cual nos guiamos con el residuo de dividir el numero mayor entre el menor\r\n y retornamos el valor \r\n */\r\n do {\r\n aux = b;\r\n b = a % b;\r\n a = aux;\r\n } while (b != 0);\r\n return aux;\r\n }",
"public int solve(int A, int B, int C) {\n int lcm = (B * C) / gcd(B, C);\n return A / lcm;\n }",
"private static int cprModFunction(int a, int b) {\n\t\tint res = a % b;\n\t\tif (res < 0)\n\t\t\tres += b;\n\t\treturn res;\n\t}",
"public static BigInteger rho(BigInteger N){\r\n\t\tBigInteger ys = null, x = null;\r\n\t\tBigInteger \r\n\t\t\t\ty = new BigInteger(N.bitLength(),rand), \r\n\t\t\t\tc = new BigInteger(N.bitLength(),rand), \r\n\t\t\t\tm = new BigInteger(N.bitLength(),rand);\r\n\t\tBigInteger \tg = RichardPollard.ONE,\r\n\t\t\t\t\tr = RichardPollard.ONE,\r\n\t\t\t\t\tq = RichardPollard.ONE;\r\n\t\twhile(g.compareTo(RichardPollard.ONE)==0){\r\n//\t\t\tSystem.out.println(\"wa\");\r\n\t\t\tx = y;\r\n\t\t\tfor(int i = 0; i<r.doubleValue();i++){\r\n\t\t\t\ty = y.multiply(y).remainder(N).add(c).remainder(N);\r\n\t\t\t}\r\n\t\t\tBigInteger k = RichardPollard.ZERO;\r\n\t\t\twhile(k.compareTo(r)<1 && g.equals(RichardPollard.ONE)){\r\n\t\t\t\tys = y;\r\n\t\t\t\tBigInteger mrk = r.subtract(k).min(m);\r\n\t\t\t\tfor(BigInteger i = RichardPollard.ZERO; i.compareTo(mrk)<1; i=i.add(RichardPollard.ONE)){\r\n\t\t\t\t\ty = y.multiply(y).remainder(N).add(c).remainder(N);\r\n\t\t\t\t\tq = q.multiply(x.subtract(y).abs()).remainder(N);\r\n\t\t\t\t}\r\n\t\t\t\tg = q.gcd(N);\r\n\t\t\t\tk = k.add(m);\r\n\t\t\t}\r\n\t\t\tr = r.multiply(RichardPollard.TWO);\r\n\t\t\t\r\n\t\t}\r\n\t\tif(g.equals(N)){\r\n\t\t\twhile(true) {\r\n\t\t\t\tys = ys.multiply(ys).remainder(N).add(c).remainder(N);\r\n\t\t\t\tg = x.subtract(ys).abs().gcd(N);\r\n\t\t\t\tif(g.compareTo(RichardPollard.ONE)==1){\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(y.doubleValue()+\" \"+r.doubleValue());\r\n\t\treturn g;\r\n\t\t\r\n\t}"
] | [
"0.78673863",
"0.78573066",
"0.780404",
"0.7778953",
"0.77427256",
"0.77355075",
"0.77293533",
"0.7726766",
"0.76894826",
"0.76439726",
"0.750298",
"0.7463374",
"0.7447984",
"0.74457294",
"0.7443551",
"0.74004376",
"0.7381778",
"0.7379569",
"0.73396474",
"0.7298009",
"0.729768",
"0.7281634",
"0.7278776",
"0.72473055",
"0.72308034",
"0.7199941",
"0.71727467",
"0.7169647",
"0.7155581",
"0.71379477",
"0.71291167",
"0.711268",
"0.7091323",
"0.70832545",
"0.70263845",
"0.70016706",
"0.69729483",
"0.69718224",
"0.69625455",
"0.6941752",
"0.69019145",
"0.6891817",
"0.6867975",
"0.6866792",
"0.68421364",
"0.6818248",
"0.6810922",
"0.67658097",
"0.67312413",
"0.66961783",
"0.66652864",
"0.66269124",
"0.6579108",
"0.65706486",
"0.6560161",
"0.65377384",
"0.6514263",
"0.6507628",
"0.64878845",
"0.64497554",
"0.6449424",
"0.6433862",
"0.6426706",
"0.63666993",
"0.6322389",
"0.6241245",
"0.6240089",
"0.6182682",
"0.6178984",
"0.61766124",
"0.6142724",
"0.613997",
"0.61355317",
"0.60214365",
"0.5998754",
"0.59964347",
"0.59811884",
"0.59758115",
"0.5969915",
"0.5965495",
"0.5954273",
"0.5938791",
"0.59214",
"0.5909989",
"0.59073776",
"0.5903721",
"0.5885217",
"0.5765795",
"0.5763737",
"0.57538086",
"0.5706874",
"0.56916547",
"0.5638906",
"0.5595332",
"0.5594058",
"0.559005",
"0.55845886",
"0.5554956",
"0.55426997",
"0.5505027"
] | 0.70079327 | 35 |
/ Helper method for GCD, where a >= b | public static int lnko_ordered(int a, int b){
if (b==0) return a;
return lnko_ordered(b, a%b);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int gcd(int a, int b){\r\n int r, temp;\r\n if( a<b ){ temp = a; a = b; b = temp; }\r\n while( b!=0 ){ r = a%b; a = b; b = r; }\r\n return a;\r\n }",
"private static int gcd (int a, int b) {\n int m = Math.max (Math.abs (a), Math.abs (b));\n if (m == 0) throw new ArithmeticException (\" zero in gcd \");\n int n = Math.min (Math.abs (a), Math.abs (b));\n while (n > 0) {\n a = m % n;\n m = n;\n n = a;\n }\n return m;\n }",
"public static int gcd(int a, int b){\n int tmp = a;\r\n a = Math.max(a,b);\r\n b = Math.min(tmp,b);\r\n \r\n //write GCD\r\n int remainder;\r\n do{\r\n remainder = a%b;\r\n a = b;\r\n b = remainder;\r\n } while(remainder !=0);\r\n \r\n return a;\r\n }",
"private static boolean gcd(int a, int b) {\n while (b > 0) {\n int temp = b;\n b = a % b;\n a = temp;\n }\n return a == 1;\n }",
"private int gcd(int a, int b) {\n // Note that the loop below, as-is, will time out on negative inputs.\n // The gcd should always be a positive number.\n // Add code here to pre-process the inputs so this doesn't happen.\n if ( a < 0 ) {\n a = - a;\n }\n if ( b < 0 ) {\n b = - b;\n }\n\n \twhile (a != b)\n \t if (a > b)\n \t\t a = a - b;\n \t else\n \t\t b = b - a;\n \treturn a;\n }",
"private static int gcd(int a, int b) {\n\t\tif(a==0){\n\t\t\treturn b;\n\t\t}\n\t\treturn gcd(b%a,a);\n\t}",
"private static int gcd(int a, int b)\r\n\t{\r\n\t\tint remainder = a % b;\r\n\t\tif(remainder == 0)\r\n\t\t{\r\n\t\t\treturn b;\r\n\t\t}\r\n\t\treturn gcd(b, remainder);\r\n\t}",
"static int gcd(int a, int b) {\r\n\t\tif (b == 0)\r\n\t\t\treturn a;\r\n\t\treturn gcd(b, a % b);\r\n\t}",
"public static int gcd(int a, int b){\r\n return a>b ? lnko_ordered(a,b) : lnko_ordered(b,a);\r\n }",
"public static int GCD(int a, int b){\r\n if (b == 0){\r\n return a;\r\n }\r\n return GCD(b,a%b);\r\n }",
"public static int gcd(int a, int b) {\r\n\t\twhile(b > 0) {\r\n\t\t\tint temp = b;\r\n\t\t\tb = a % b;\r\n\t\t\ta = temp;\r\n\t\t}\r\n\t\t\r\n\t\treturn a;\r\n\t}",
"int gcd(int a, int b) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t int x,y,r=1;\r\n\t\t if(a<b)\r\n\t\t {\r\n\t\t\t x = b;\r\n\t\t\t y = a;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\t x = a;\r\n\t\t\t y = b;\r\n\t\t }\r\n\t\t while(r!=0)\r\n\t\t {\r\n\t\t r = x%y;\r\n\t\t if(r==0)\r\n\t\t\t break;\r\n\t\t x = y;\r\n\t\t y = r;\r\n\t\t }\r\n\t\t// System.out.println(\"====\"+y);\r\n\t\treturn y;\r\n\t}",
"public int gcd(int a, int b) {\n // write your code here\n if (b != 0) {\n return gcd(b, a % b);\n }\n else\n return a;\n }",
"private int getGCD(int a, int b) {\r\n if ( b == 0 ) {\r\n return a;\r\n } else {\r\n return getGCD(b, a % b);\r\n }\r\n }",
"static long gcd(long a, long b) {\n\t\ta = Math.abs(a); b = Math.abs(b);\n\t\tif(a < b) return gcd(b,a);\n\t\tif(b == 0) return a;\n\t\treturn gcd(a%b, b);\n\t}",
"public static int GCD(int a, int b){\n\t\tif(b == 0) return a;\n\t\treturn GCD(b, a%b);\n\t}",
"public static int gcd(int a, int b) {\n int t = 0;\n while (b != 0) {\n t = b;\n b = a % b;\n a = t;\n }\n return Math.abs(a);\n }",
"private static int pair_GCF(int a, int b) {\n int t;\n while (b != 0) {\n t = a;\n a = b;\n b = t % b;\n }\n return a;\n }",
"public static int gcd(int a, int b) {\n\t\t// take absolute values\n\t\tif (a < 0) {\n\t\t\ta *= -1;\n\t\t}\n\t\tif (b < 0) {\n\t\t\tb *= -1;\n\t\t}\n\n\t\t// ensure a > b\n\t\tif (a < b) {\n\t\t\tint temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\t// a = b * (a / b) + (a % b)\n\t\t// then b = (a % b) * ((a % b) / b) + (a % b) % b\n\t\t// by the division algorithm. Execute until some\n\t\t// such product has no remainder, the remainder of\n\t\t// the previous equation is GCD(a, b).\n\t\twhile (b > 0) {\n\t\t\tint temp = b;\n\t\t\tb = a % b;\n\t\t\ta = temp;\n\t\t}\n\t\treturn a;\n\t}",
"static long getGCD(long x, long y) {\n long a = Math.max(x, y);\n long b = Math.min(x, y);\n\n while (b != 0) {\n long r = a % b;\n a = b;\n b = r;\n }\n\n return a;\n }",
"private static int gcd(int n1,int n2){\n int a = n1>n2?n1:n2;\r\n int b = n1>n2?n2:n1;\r\n int r = a%b;\r\n while(r!=0){\r\n a = b;\r\n b = r;\r\n r = a%b;\r\n }\r\n return b;\r\n }",
"private int getGCD(int a, int b) {\n \n /** This ensures the larger of the two numbers is in a */\n if(a < b){\n /** Temp variable used for swapping two variables */\n int temp = a;\n a = b;\n b = temp;\n }\n\n /** The remainder needs to be stored to recursively find the gcd */\n int remainder;\n if((remainder = a % b) == 0) {\n return b;\n } else {\n return getGCD(b, remainder);\n }\n }",
"public static void launchEuclidAlgorithmForGCD(int a, int b) {\n int number = Math.max(a, b);\n int divisor = Math.min(a, b);\n int quot = number / divisor;\n int rem = number - (divisor * quot);\n while (rem != 0) {\n System.out.println(number+\" = \"+divisor+\"(\"+quot+\") + \"+rem);\n number = divisor;\n divisor = rem;\n quot = number / divisor;\n rem = number - (divisor * quot);\n }\n System.out.println(number+\" = \"+divisor+\"(\"+quot+\") + \"+rem);\n System.out.println(\" \\u2234 gcd(\"+a+\", \"+b+\") = \"+divisor);\n }",
"private static int findGcd(int a, int b) {\n\n\t\tint low = a < b ? a : b;\n\t\tint high = a < b ? b : a;\n\n\t\tif (high % low == 0) {\n\t\t\treturn low;\n\t\t} else {\n\t\t\treturn findGcd(high, high % low);\n\t\t}\n\t}",
"public int gcd(int a, int b) {\n\t\tint result;\n\t\tif (a > 0) {\n\t\t\tresult = gcd(b % a, a);\n\t\t} else {\n\t\t\tresult = b;\n\t\t}\n\n\t\treturn result;\n\t}",
"public static int GCD(int A, int B) {\n while (B != 0) {\n int remainder = A % B;\n A = B;\n B = remainder;\n }\n\n return A;\n }",
"private int gcd(int x, int y) {\n if (y == 0) {\n return x;\n }\n return gcd(y, x % y);\n }",
"public static int LCM(int a, int b){\r\n int lowest = a * b / GCD(a,b);\r\n //System.out.print(lowest);\r\n return lowest;\r\n }",
"private static int cprModFunction(int a, int b) {\n\t\tint res = a % b;\n\t\tif (res < 0)\n\t\t\tres += b;\n\t\treturn res;\n\t}",
"static long lcm(long a, long b) \n\t\t{ \n\t\t\treturn (a*b)/gcd(a, b); \n\t\t}",
"public static int gcd(int a, int b) {\n return BigInteger.valueOf(a).gcd(BigInteger.valueOf(b)).intValue();\n }",
"private static int greatestCommonDivisor(int alpha, int beta){\n\n\t\talpha = Math.abs(alpha); // take absolute values of operands\n\t\tbeta = Math.abs(beta);\n\t\n\t\tif (beta == 0) // base case\n\t \treturn alpha;\n\t\telse{ // induction step\n\t\t\tint remainder = alpha % beta;\n\t\t\n\t\t\treturn greatestCommonDivisor(beta, remainder);\n\t }\n }",
"int gcd(int x,int y)\n\t{\n\t\tif(x>0 && y>0)\n\t\t{\n\t\t\twhile(x!=y)\n\t\t\t{\n\t\t\t\tif(x>y) //If number1>number2\n\t\t\t\t\treturn(gcd(x-y,y)); \n\t\t\t\telse //If number2>number1 \n\t\t\t\t\treturn(gcd(y-x,x));\n\t\t\t}\n\t\t\treturn x; //Return final calculated GCD\n\t\t}\n\t\telse\n\t\t\treturn -1; //If user input is a negative number\n\t}",
"public static long PGCD (int a, int b) {\r\n\r\n\t\tlong pgcd = 0;\r\n\t\tint r = 0;\r\n\r\n\t\ta = Math.abs(a);\r\n\t\tb = Math.abs(b);\r\n\r\n\t\twhile(true){\r\n\t\t\tif (b == 0) {\r\n\t\t\t\tpgcd = a;\r\n\t\t\t\tbreak;\r\n\t\t\t} else {\r\n\t\t\t\tr = a % b;\r\n\t\t\t\ta = b;\r\n\t\t\t\tb = r;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pgcd;\r\n\r\n\t}",
"public static int findGCF(int a, int b) {\r\n\t\tint GCF = 1;\r\n\t\tfor (int i = 1; i <= Math.abs(a); i++) {\r\n\t\t\t// loop to find greatest common factor\r\n\t\t\tif (((a % i) == 0) && ((b % i) == 0)) {\r\n\t\t\t\tGCF = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn GCF;\r\n\t}",
"private double calcG(int a, int b) {\n return a % 2 == 0 && b % 2 == 0 ? 20 : a % 2 == 1 && b % 2 == 1 ? 1 : 5;\n }",
"private RunGreatestCommonDivisor() {\r\n\t}",
"public int getGreatestCommonDivisor(int first, int second) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tint GCD = 0;\n\t\tboolean found = false;\n\t\tArrayList<Integer> firstDivisor = new ArrayList<Integer>();\n\t\tArrayList<Integer> secondDivisor = new ArrayList<Integer>();\n\t\tif(first < 10 || second < 10) {\n\t\t\tGCD = -1;\n\t\t}\n\t\telse {\n\t\t\tfor(int i = 1; i <= first; i++) {\n\t\t\t\tif(first % i == 0) {\n\t\t\t\t\tfirstDivisor.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i <= second; i++) {\n\t\t\t\tif(second % i ==0) {\n\t\t\t\t\tsecondDivisor.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tfor(Integer i: firstDivisor) {\n//\t\t\t\tSystem.out.println(i);\n//\t\t\t}\n//\t\t\tfor(Integer i: secondDivisor) {\n//\t\t\t\tSystem.out.println(i);\n//\t\t\t}\n\t\t\t\n\t\t\tif(firstDivisor.size() >= secondDivisor.size()) {\n\t\t\t\tGCD = firstDivisor.get(0);\n\t\t\t\tfor(int i =0; i < firstDivisor.size(); i++) {\n\t\t\t\t\tfor(int j =0; j < secondDivisor.size(); j++) {\n\t\t\t\t\t\tif(secondDivisor.get(j)==firstDivisor.get(i)) {\n\t\t\t\t\t\t\tfound = true;\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(found == true) {\n\t\t\t\t\t\tif(firstDivisor.get(i) >= GCD) {\n\t\t\t\t\t\t\tGCD = firstDivisor.get(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfound = false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(secondDivisor.size() >= firstDivisor.size()) {\n\t\t\t\tGCD = secondDivisor.get(0);\n\t\t\t\tfor(int i =0; i < secondDivisor.size(); i++) {\n\t\t\t\t\tfor(int j =0; j < firstDivisor.size(); j++) {\n\t\t\t\t\t\tif(firstDivisor.get(j)==secondDivisor.get(i)) {\n\t\t\t\t\t\t\tfound = true;\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(found == true) {\n\t\t\t\t\t\tif(secondDivisor.get(i) >= GCD) {\n\t\t\t\t\t\t\tGCD = secondDivisor.get(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfound = false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\t//System.out.println(GCD);\n\t\treturn GCD;\n\t}",
"public int pgcdByDE(int a, int b) throws Exception{\n if(a <1 || b <1){\n throw new Exception(\"a et b doivent etre >= 1\");\n }\n int reste = a > b ? a % b : b % a;\n if(reste == 0)\n return a > b ? b : a;\n if(a > b){\n a = reste;\n }else b = reste;\n return pgcdByDE(a,b);\n }",
"private static int findLCM(int a, int b) {\n return a * (b / findGCD(a, b));\n }",
"public static int HCF(int a, int b){\r\n int x, i, hcf = 0;\r\n \r\n for(i = 1; i<=a || i<=b; i++){\r\n if(a%i == 0 && b%i == 0){\r\n hcf = i;\r\n }} \r\n //System.out.print(hcf);\r\n return hcf;\r\n }",
"public static void modgcd (int a[], int b[], int gcd[]) {\n\t\tif (isZero(a)) { assign (gcd, a); return; }\n\t\tif (isZero(b)) { assign (gcd, b); return; }\n\t\t\n\t\t// align a and b to have same number of digits and work on copies\n\t\ta = copy(normalize(a, b.length));\n\t\tb = copy(normalize(b, a.length));\n\t\t\n\t\t// ensure that a is greater than b. Also return trivial gcd.\n\t\tint rc = compareTo(a,b);\n\t\tif (rc == 0) { assign (gcd, a); return; }\n\t\tif (rc < 0) {\n\t\t\tint t[] = b;\n\t\t\tb = a;\n\t\t\ta = t;\n\t\t}\n\t\t\n\t\tint quot[] = new int[a.length];\n\t\tint remainder[] = new int[a.length];\n\t\twhile (!isZero(b)) {\n\t\t\tint t[] = copy (b);\n\t\t\tdivide (a, b, quot, remainder);\n\t\t\tassign (b, remainder);\t\t\t\n\t\t\tassign (a, t);\n\t\t}\n\n\t\t// value held in a is the computed gcd of (a,b).\n\t\tassign (gcd, a);\n\t}",
"static int lcm(int num1, int num2, int hcf){\n return (num1*num2)/hcf;\n }",
"private static int findGCD(int number1, int number2) {\r\n\t\t// base case\r\n\t\tif (number2 == 0) {\r\n\t\t\treturn number1;\r\n\t\t}\r\n\t\treturn findGCD(number2, number1 % number2);\r\n\t}",
"private static long gcd(long n, long d) {\n\t long n1 = Math.abs(n);\n\t long n2 = Math.abs(d);\n\t int gcd = 1;\n\t \n\t for (int k = 1; k <= n1 && k <= n2; k++) {\n\t if (n1 % k == 0 && n2 % k == 0) \n\t gcd = k;\n\t }\n\n\t return gcd;\n\t }",
"public int findGCD(int num1, int num2)\n {\n if (num1 < num2)\n {\n //calls findGCD with the numbers reversed\n findGCD(num2, num1);\n }\n //if num2 is equal to 0\n else if (num2 == 0)\n {\n //the GCD is num1\n divisor = num1;\n } \n else\n {\n //calls GCD with num2 and the remainder of num1 and num2\n findGCD(num2, (num1%num2)); \n }\n \n //returns the divisor\n return divisor;\n }",
"private int findGCD(int n1, int n2) {\n //n1 and n2 must always be positive for this GCD algorithm\n n1 = Math.abs(n1);\n n2 = Math.abs(n2);\n\n //continue through the loop if n2 is greater than 0\n while (n2 > 0) {\n int remainder = n1 % n2;\n //n1 will keep track of the GCD value\n n1 = n2;\n //n2 will keep track of the remainder\n n2 = remainder;\n }\n //setting n1 is the gcd value\n return n1;\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int gcd = 1, lcm = 1;\n int temp = a;\n int temp2 = b;\n // int fact = 1;\n if (a > b) {\n\n for (int i = a; i < a * b;i+=a) {\n if ( i % b == 0) {\n lcm = i;\n break;\n // System.out.println(lcm);\n } \n }\n } else {\n for (int i = b; i < a * b; i+=b) {\n if ( i%a == 0) {\n lcm = i;\n break;\n // System.out.println(lcm);\n } \n }\n\n }\n gcd = (a * b) / lcm;\n System.out.println(gcd);\n System.out.println(lcm);\n }",
"private static int wrap(int a, int b)\n {\n return (a < 0) ? (a % b + b) : (a % b);\n }",
"private int getLCD(int a, int b){\n return ( (a * b) / getGCD(a, b) ); \n }",
"private static int gcd(int m, int n)\n {\n int mx = Math.max(m, n);\n int mn = Math.min(m, n);\n int remainder = 1;\n while (remainder != 0)\n {\n remainder = mx % mn;\n mx = mn;\n mn = remainder;\n }\n return mx;\n }",
"public static int lcm(int a, int b) {\r\n\t\treturn a * (b / gcd(a, b));\r\n\t}",
"private long maxDivide(long a, long b) {\n\t\twhile (a % b == 0) {\n\t\t\ta = a / b;\n\t\t}\n\t\treturn a;\n\t}",
"private static int calculateLCM(int a, int b){\n\t\tint gcd = calculateGCD(a, b);\n\t\tint lcm = (a/gcd)*b; //same as a*b/gcd but a*b could be very large number so avoiding that\n\t\treturn lcm;\n\t}",
"public int gcd(int x, int y) {\n if (x < y) return gcd(y, x);\n return y == 0 ? x : gcd(y, x % y);\n }",
"private int gcd(int m, int n) {\n\t\tint r;\n\t\twhile(n != 0) {\n\t\t\tr = m % n;\n\t\t\tm = n;\n\t\t\tn = r;\n\t\t}\n\t\treturn m;\n\t}",
"public static void gcd (int a[], int b[], int gcd[]) {\n\t\tif (isZero(a)) { assign (gcd, a); return; }\n\t\tif (isZero(b)) { assign (gcd, b); return; }\n\t\t\n\t\ta = copy (a); // Make copies to ensure\n\t\tb = copy (b); // that a and b are not modified.\n\t\t\n\t\twhile (!isZero(b)) {\n\t\t\t// last argument to subtract represents sign of result which\n\t\t\t// we can ignore since we only subtract smaller from larger.\n\t\t\t// Note compareTo (a, b) is positive if a > b.\n\t\t\tif (compareTo(a, b) > 0) {\n\t\t\t\tsubtract (a, b, gcd, new int[1]);\n\t\t\t\tassign (a, gcd);\n\t\t\t} else {\n\t\t\t\tsubtract (b, a, gcd, new int[1]);\n\t\t\t\tassign (b, gcd);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// value held in a is the computed gcd of original (a,b).\n\t\tassign (gcd, a);\n\t}",
"private int getGCD(int[] a) {\r\n\r\n int gcd = a[0];\r\n\r\n for (int i = 1; i < a.length; i++) {\r\n gcd = getGCD(gcd, a[i]);\r\n }\r\n return gcd;\r\n }",
"public int gcd(){\n\tint min;\n\tint max;\n\tint stor;\n\tif ((numerator == 0) || (denominator == 0)){\n\t return 0;\n\t}\n\telse {\n\t if ( numerator >= denominator ) {\n\t\tmax = numerator;\n\t\tmin = denominator;\n\t }\n\t else {\n\t\tmax = denominator;\n\t\tmin = numerator;\n\t }\n\t while (min != 0){\n\t stor = min;\n\t\tmin = max % min;\n\t\tmax = stor;\n\t }\n\t return max;\n\t}\n }",
"public static int gcf(int num1, int num2) {\r\n\t\tint maxNumber = max(num1, num2);\r\n\t\tint minNumber = min(num1, num2);\r\n\t\tif (minNumber == 0) \r\n\t\t\treturn maxNumber;\r\n\t\tif (minNumber < 0)\r\n\t\t\tminNumber *= -1;\r\n\t\tSystem.out.println(maxNumber + \" \" + minNumber);\r\n\t\tfor (int i = minNumber; i > 0; i--) {\r\n\t\t\tboolean a = isDivisibleBy(maxNumber, i);\r\n\t\t\tboolean b = isDivisibleBy(minNumber, i);\r\n\t\t\tif (a == true && b == true) {\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 1;\r\n\t}",
"public static int mod(int a,int b) {\n\t\tif (b == 0) return 0;\n\t\tif (b<0) {\n\t\t\treturn -mod(-a,-b);\n\t\t} else if(a<0) {\n\t\t\twhile (Math.abs(a-b)>b)a+=b;\n\t\t\treturn a;\n\t\t} else {\n\t\t\twhile (a-b>=0) a-=b;\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}",
"static int hcf(int num1, int num2){\n int i = 1;\n int hcf = 0;\n\n while(i<=num1 || i<=num2){\n if (num1%i == 0 && num2%i==0){\n hcf = i;\n }\n i++;\n }\n return hcf;\n }",
"private static int gcd(int m, int n) {\n if (n == 0)\n return m;\n else\n return gcd(n, m % n);\n }",
"public static Integer gcd(Integer p, Integer q) {\n\t\tif (q == 0) {\n\t\t return p;\n\t\t}\n\t\treturn gcd(q, p % q);\n\t}",
"static private long lcm(long x, long y) {\n\t\tif (x != 0 && y != 0) {\n\t\t\tlong firstValue = x;\n\t\t\tlong secondValue = y;\n\t\t\treturn (firstValue * secondValue) / hcf(x, y);\n\t\t} else\n\t\t\treturn 1;\n\n\t}",
"public static int gcf(int [] operand) {\r\n \t\tint count = 1;\r\n \t\tint factor = 1;\r\n \t\twhile (count <= Math.min(Math.abs(operand[0]), operand[1])) { \r\n \t\t\t//Java had sign problems here if the numerator was negative\r\n \t\t\tif (Math.abs(operand[0]%count) == 0 && Math.abs(operand[1]%count) ==0) {\r\n \t\t\t\tfactor = count; \r\n \t\t\t}\r\n \t\t\tcount++;\r\n \t\t}\r\n \t\treturn (factor);\r\n \t}",
"private static BigInteger extEuclid(BigInteger a, BigInteger b, BigInteger u1Out,\n BigInteger u2Out)\n {\n BigInteger u1 = BigInteger.ONE;\n BigInteger u3 = a;\n BigInteger v1 = BigInteger.ZERO;\n BigInteger v3 = b;\n\n while (v3.sign > 0)\n {\n BigInteger[] q = u3.divideAndRemainder(v3);\n\n BigInteger tn = u1.subtract(v1.multiply(q[0]));\n u1 = v1;\n v1 = tn;\n\n u3 = v3;\n v3 = q[1];\n }\n\n if (u1Out != null)\n {\n u1Out.sign = u1.sign;\n u1Out.magnitude = u1.magnitude;\n }\n\n if (u2Out != null)\n {\n BigInteger res = u3.subtract(u1.multiply(a)).divide(b);\n u2Out.sign = res.sign;\n u2Out.magnitude = res.magnitude;\n }\n\n return u3;\n }",
"public static int gcd(int m,int n) {\n\t\tint p=m,q=n;\n\t\twhile(p%q!=0) {\n\t\t\tint r=p%q;\n\t\t\tp=q;\n\t\t\tq=r;\n\t\t}\n\t\treturn q;\n\t}",
"public static int gcf(int num, int denom) {\n \tint number=1;\t//declare num to equal 1\t\r\n\t\tif(denom<0) { //if denom is negative, multiply by -1 to get a positive denom\r\n\t\t\tdenom *= -1;\r\n\t\t}\r\n\t\tif(num<0) {\t//if the num is negative multiply it by -1 to make it positive\r\n\t\t\tnum *= -1;\r\n\t\t}\r\n\t\tfor(int i = 1; i <= num && i <= denom; i++) {\t//make a for loop that will test to see if i <=x&y (iterate to lowest # possible) to find the gcd\r\n\t\t\tif (isDivisibleBy(num,i) == true && isDivisibleBy(denom,i)==true) { \t// add 1 to i each loop; uses the method to check if i is factor of both integers\r\n\t\t\t\tnumber = i;\t//make num equal to i\r\n\t\t\t}\t\r\n\t\t}\r\n\t\treturn number; //return the number\r\n\t}",
"public int optimizedCom() {\n\tint b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0;\n\tint a = 1;\n\n\tb = 65;\n\tc = b;\n\n\tif (a != 0) {\n\t b = (b * 100) + 100000;\n\t c = b + 17000;\n\t}\n\n\t// at this point:\n\t// a == 1\n\t// b == 106500\n\t// c == 123500\n\n\t// outer loop terminates when b == c\n\t// c never changes, serves as termination condition\n\t// b only gets +17 added for every execution of the outer loop\n\n\tdo {\n\t f = 1;\n\t d = 2;\n\t do { // jnz g -13\n\t\te = 2;\n\n\t\tdo { // jnz g - 8\n\t\t g = (d * e) - b;\n\n\t\t if (g == 0)\n\t\t\tf = 0;\n\n\t\t e++;\n\n\t\t g = e - b;\n\t\t} while (g != 0);\n\n\t\td++;\n\n\t\tg = d - b;\n\t } while (g != 0);\n\n\t // increments h if register b contains a non-prime number (checked by printing all values)\n\t if (f == 0) {\n\t\th++;\n\t\tSystem.out.println(\"b: \" + b + \" c: \" + c + \" d: \" + d + \" e: \" + e + \" f: \" + f + \" g: \" + g);\n\t }\n\n\t // c does not change, b only gets increased by 17\n\t // if b == c, the method returns h which is the number of non-prime numbers encountered in the loop\n\t g = b - c;\n\n\t if (g == 0)\n\t\treturn h;\n\n\t b += 17;\n\n\t} while (true);\n }",
"public static byte GMul(int a, int b) {\n\n byte p = 0;\n byte counter;\n byte hi_bit_set;\n for (counter = 0; counter < 8; counter++) {\n if ((b & 1) != 0) {\n p ^= a;\n }\n hi_bit_set = (byte) (a & 0x80);\n a <<= 1;\n if (hi_bit_set != 0) {\n a ^= 0x1b; /* x^8 + x^4 + x^3 + x + 1 */\n }\n b >>= 1;\n }\n return p;\n}",
"public static BigInteger lcm(String a, String b) \n\t\t{\n\t\t\tBigInteger s = new BigInteger(a); \n\t\t\tBigInteger s1 = new BigInteger(b); \n\n\t\t\t// calculate multiplication of two bigintegers \n\t\t\tBigInteger mul = s.multiply(s1); \n\n\t\t\t// calculate gcd of two bigintegers \n\t\t\tBigInteger gcd = s.gcd(s1); \n\n\t\t\t// calculate lcm using formula: lcm * gcd = x * y \n\t\t\tBigInteger lcm = mul.divide(gcd); \n\t\t\treturn lcm; \n\t\t}",
"private long function(long a, long b) {\n if (a == UNIQUE) return b;\n else if (b == UNIQUE) return a;\n\n // return a + b; // sum over a range\n // return (a > b) ? a : b; // maximum value over a range\n return (a < b) ? a : b; // minimum value over a range\n // return a * b; // product over a range (watch out for overflow!)\n }",
"public void reduce(){\r\n int num = numerator;\r\n int denom = denominator;\r\n int greatest;\r\n \r\n // Find the greater of numerator and denominator\r\n if(numerator < 0){\r\n num = -numerator;\r\n }\r\n if(num > denom){\r\n greatest = num;\r\n }\r\n else\r\n greatest = denom;\r\n \r\n // Find the GCD\r\n int gcd = 0;\r\n // starting from the largest\r\n for(int i = greatest; i > 1; i--){\r\n if((numerator % i == 0) && (denominator % i == 0)){\r\n gcd = i;\r\n break;\r\n }\r\n }\r\n // factor out the gcd in both the numerator and denominator\r\n if(gcd != 0){\r\n numerator /= gcd;\r\n denominator /= gcd;\r\n }\r\n }",
"public static int greatestCommonDivisor(int inputOne, int inputTwo)\n {\n inputOne = Math.abs(inputOne);\t\t\n inputTwo = Math.abs(inputTwo);\t\t\n \t\t\n int smaller = Math.min(inputOne, inputTwo);\t\t\n int greatestCommonDivisor = 1;\n \t\t\n for (int index = 1; index <= smaller; index++)\t\n \tif ((inputOne % index) == 0 && (inputTwo % index) == 0)\n \t\tgreatestCommonDivisor = index;\n return greatestCommonDivisor;\t\t\n }",
"@Test\n\tpublic void gcdOfFiboNumsTest() {\n\n\t\tAssert.assertTrue(ifn.gcdOfFiboNums(3, 12) == 2);\n\t}",
"private static BigInteger divideAndRound(BigInteger a, BigInteger b) {\r\n BigInteger result = a.divide(b);\r\n //Case 1: Integer part of the quotient is positive, a%b*2>=b, then the float part of the quotient>=.5, therefore add 1 to quotient\r\n if(result.signum()>0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)>=0)\r\n result = result.add(BigInteger.ONE);\r\n //Case 2: Integer part of the quotient is negative, a%b*2<=b but a%b<>0 , \r\n //then the float part of the quotient<=-0.5, therefore subtract 1 from quotient\r\n else if(result.signum()<0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)<=0 && !a.mod(b).equals(BigInteger.ZERO))\r\n result = result.subtract(BigInteger.ONE);\r\n //Case 3: Integer part of the quotient is zero then two cases arise: a>0 or a<0\r\n else if(result.signum()==0)\r\n { \r\n //Case 1.1: a>0.5 then result=1\r\n if(a.compareTo(BigInteger.ZERO)>0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)>=0)\r\n result = BigInteger.ONE;\r\n //Case 1.1: a<-0.5 then result=-1\r\n else if(a.compareTo(BigInteger.ZERO)<0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)<=0)\r\n result = BigInteger.ZERO.subtract(BigInteger.ONE); //-1 :)\r\n }\r\n return result;\r\n }",
"public static int findGCD(int int1, int int2) {\n\t\tint gcd = 1;\n\t\t\n\t\tfor (int i = 2; i <= int1 && i <= int2; i++) {\n\t\t\tif (int1 % i == 0 && int2 % i == 0)\n\t\t\t\tgcd = i;\n\t\t}\n\t\t\n\t\treturn gcd;\n\t}",
"static int greatestDenominator(int a, int b) {\n int denominator = 0;\n\n // Loops from 0 to max(a, b) to test denominators\n for (int i = 1; i < Math.max(a, b); i++) {\n if (a % i == 0 && b % i == 0) {\n denominator = i;\n }\n }\n\n return denominator;\n }",
"static int gcd2(int m, int n) {\n if (m==0) return n;\n else return gcd2(n%m,m);\n }",
"private BigInteger gcd(BigInteger n, BigInteger d)\n\t\t{\n\t\t\t// Returns the absolute values of the BigInteger\n\t\t\tBigInteger n1 = n.abs();\n\t\t\tBigInteger n2 = d.abs();\n\t\t\t\n\t\t\t// If n2 equals 0 return n1\n\t\t\tif(n2.equals(BigInteger.ZERO)){\n\t\t\t\treturn n1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t// else recursively return the gcd of n2 and n1%n2\n\t\t\t\treturn gcd(n2,n1.mod(n2));\n\t\t\t}\n\t\t}",
"private static int gcd(int m, int n) {\r\n\t\tif (m % n == 0)\r\n\t\t\treturn n; // Base case\r\n\t\telse // Recursive call\r\n\t\t\treturn gcd(n, m % n);\r\n\t}",
"private int[] fader(int[] a, int[] b) {\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(a[i] > b[i]) {\n\t\t\t\ta[i] = a[i]-1;\n\t\t\t} else if(a[i] < b[i]) {\n\t\t\t\ta[i] = a[i]+1;\n\t\t\t}\n\t\t}\n\n\t\treturn a;\n\t}",
"int compFunction(int code) {\r\n if (code % num_buckets < 0) {\r\n return (code % num_buckets) + num_buckets;\r\n } else {\r\n return code % num_buckets;\r\n } \r\n /*int a = 13;\r\n int b = 23;\r\n int p = 1000000 * num_buckets;\r\n while (isPrime(p) == false) { \r\n p += 1; \r\n }\r\n return ((a * code + b) % p) % num_buckets; */\r\n }",
"public double divide(double a, double b, boolean rem){ return rem? a%b: a/b; }",
"public int modulo(int a, int b) {\n return a % b;\n }",
"int compFunction(int code) {\n return Math.abs(((3 * code + 8) % largePrime) % buckets.length);\n }",
"static String kangaroo(int x1, int v1, int x2, int v2) {\n int x=x1-x2;\n int v=v2-v1;\n if(v!=0){\n if(x%v==0 && x/v>0){\n return \"YES\";\n }else {return \"NO\";}\n\n }else {return \"NO\";}\n\n }",
"public int compare(Integer a,Integer b)\n\t{\n\t\treturn a%2-b%2;\n\t}",
"public static float modulus(float a, float b)\n\t{\n\t\treturn (a % b + b) % b;\n\t}",
"private static final int mult (int a, int b, int g) {\n int p = 0;\n while (b != 0) {\n if ((b & 0x01) != 0) p ^= a;\n a <<= 1;\n if (a > 0xFF) a ^= g;\n b >>>= 1;\n }\n return p;\n }",
"public static int gcd(int m, int n) {\n\t\tif(n==0) return m;\r\n\t\telse{\r\n\t\t\treturn gcd(n,m%n);\r\n\t\t}\r\n\t}",
"private int d(@Nullable K ☃) {\r\n/* 127 */ return (xq.f(System.identityHashCode(☃)) & Integer.MAX_VALUE) % this.b.length;\r\n/* */ }\r\n/* */ private int b(@Nullable K ☃, int i) {\r\n/* */ int j;\r\n/* 131 */ for (j = i; j < this.b.length; j++) {\r\n/* 132 */ if (this.b[j] == ☃) {\r\n/* 133 */ return j;\r\n/* */ }\r\n/* 135 */ if (this.b[j] == a) {\r\n/* 136 */ return -1;\r\n/* */ }\r\n/* */ }",
"private BigInteger lcm(BigInteger input1, BigInteger input2) {\n return input1.multiply(input2).divide(input1.gcd(input2));\n }",
"public HugeUInt mod(HugeUInt b) {\r\n \t HugeUInt q = new HugeUInt(this);\r\n HugeUInt t;\r\n HugeUInt m;\r\n int lenA = q.getSize();\r\n int lenB = b.getSize();\r\n int sh = lenA - lenB;\r\n int d; \r\n while (b.compareTo(q) <= 0) {\r\n \tsh = lenA - lenB;\r\n t = q.shiftRight(sh);\r\n if (t.compareTo(b) < 0) {\r\n sh--;\r\n }\r\n d = 9;\r\n m = b.multiply(d).shiftLeft(sh);\r\n while (q.compareTo(m) < 0) {\r\n d--;\r\n m = b.multiply(d).shiftLeft(sh);\r\n }\r\n q = q.subtract(m);\r\n q.trim();\r\n lenA = q.getSize();\r\n }\r\n q.trim();\r\n return q;\r\n }",
"static double sol4(int[] a,int[] b){\r\n \tint mid1=0,mid2= 0;\r\n \tif((a.length+b.length)%2==0) {\r\n \t\tmid1 = (a.length+b.length)/2 -1;\r\n \t\tmid2 = mid1 + 1;\r\n \t\t}else {\r\n \t\t\tmid1 = mid2 = (a.length+b.length)/2;\r\n \t\t}\r\n \t\tint[] ab = new int[a.length+b.length];\r\n \t\tint i=0,j=0,count=0;\r\n\t\twhile (i<a.length && j<b.length){\r\n\t\t\tif (a[i]<b[j]){ \r\n\t\t\t\tab[count++]=a[i++];\r\n\t\t\t}else{\r\n\t\t\t\tab[count++]=b[j++];\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (i==a.length){\r\n\t\t\twhile (j<b.length){\r\n\t\t\t\tab[count++]=b[j++];\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\twhile (i<a.length){\r\n\t\t\t\tab[count++]=a[i++];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//for (int n =0; n< ab.length;n++){\r\n\t\t//\tSystem.out.println(ab[n]);\r\n\t\t//}\r\n\t\tdouble ans = -1;\r\n\t\tif (mid1 == mid2){\r\n\t\t\tans = (double) ab[mid1];\r\n\t\t\treturn ans;\r\n\t\t}\r\n\t\tans = (double) (ab[mid1]+ab[mid2])/2;\r\n\t\treturn ans;\r\n\r\n }",
"public int pgcdBySubstract(int a, int b) throws Exception {\n if(a <1 || b <1){\n throw new Exception(\"a et b doivent etre >= 1\");\n }\n int difference = Math.abs(a-b);\n if(difference == 0)\n return a;\n if(a > b){\n a = difference;\n }else b = difference;\n return pgcdBySubstract(a,b);\n }",
"public static int lowestCommonFactor(int a, int b)\n\t{\n\t\treturn (a * b) / greatestCommonFactor(a, b);\n\t}",
"@Test\r\n\tpublic void testGreatestCommonDivisorCalculation() {\r\n\r\n\t\tGreatestCommonDivisor testGcd = new GreatestCommonDivisor();\r\n\t\tint testGcdOne = testGcd.greatestCommonDivisorCalculation(21, 180);\r\n\t\tint testGcdTwo = testGcd.greatestCommonDivisorCalculation(5, 10);\r\n\t\tint testGcdTree = testGcd.greatestCommonDivisorCalculation(37, 77);\r\n\t\tint testGcdFour = testGcd.greatestCommonDivisorCalculation(30, 77);\r\n\r\n\t\tAssert.assertEquals(3, testGcdOne);\r\n\t\tAssert.assertEquals(5, testGcdTwo);\r\n\t\tAssert.assertEquals(1, testGcdTree);\r\n\t\tAssert.assertNotEquals(4, testGcdFour);\r\n\t}",
"public static int gcd(int n1, int n2) {\n BigInteger n1_big = BigInteger.valueOf(n1);\n BigInteger n2_big = BigInteger.valueOf(n2);\n return n1_big.gcd(n2_big).intValue();\n }",
"int compFunction(int code) {\n int a = 1021;\n int b = 11287;\n int p = Prime.primeLarge(sizeBucket);\n //System.out.println(\"code = \"+ code + \", p = \"+p);\n\n int index = (Math.abs(a * code + b) % p) % sizeBucket;\n return index;\n }"
] | [
"0.79164094",
"0.7691637",
"0.76913905",
"0.7679457",
"0.767875",
"0.7620742",
"0.7568881",
"0.75024575",
"0.7486356",
"0.745356",
"0.7428834",
"0.7336048",
"0.73278975",
"0.7327565",
"0.73260057",
"0.7305247",
"0.724505",
"0.71557933",
"0.7150936",
"0.71310353",
"0.7070161",
"0.70356476",
"0.699106",
"0.69547874",
"0.69456804",
"0.6807831",
"0.66896015",
"0.66808814",
"0.65243345",
"0.64946914",
"0.64863926",
"0.644479",
"0.6436926",
"0.6424412",
"0.64162606",
"0.6335592",
"0.63355225",
"0.6331632",
"0.6314779",
"0.6251041",
"0.62497276",
"0.6234164",
"0.6233386",
"0.62114656",
"0.6211154",
"0.6174222",
"0.6172968",
"0.6150595",
"0.6145349",
"0.6136379",
"0.61121464",
"0.61021096",
"0.60981363",
"0.6097985",
"0.6095587",
"0.6058081",
"0.60469264",
"0.5974587",
"0.5963333",
"0.59338796",
"0.5928637",
"0.59108675",
"0.59094995",
"0.58539766",
"0.5845349",
"0.5837663",
"0.5829487",
"0.5827613",
"0.5818292",
"0.5799085",
"0.57881176",
"0.5771143",
"0.57606167",
"0.57493097",
"0.5725323",
"0.57137555",
"0.5701651",
"0.569083",
"0.56797993",
"0.56513685",
"0.56495166",
"0.563494",
"0.56219953",
"0.56127316",
"0.55968666",
"0.55879986",
"0.55850035",
"0.5579795",
"0.55723333",
"0.55671394",
"0.555832",
"0.55286396",
"0.55174327",
"0.5512364",
"0.5466198",
"0.5460078",
"0.5455711",
"0.54542327",
"0.5452214",
"0.54442567",
"0.5438424"
] | 0.0 | -1 |
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml"); | public static void main(String[] args) throws Exception {
ApplicationContext factory = new AnnotationConfigApplicationContext(AppConfig.class);
ProductService service = (ProductServiceImpl) factory.getBean(ProductServiceImpl.class);
System.out.println("Scanning Items.... ");
service.scanProductId("Item_1");
service.scanProductId("Item_2");
service.scanProductId("Item_3");
service.scanProductId("Item_4");
service.scanProductId("Item_5");
service.scanProductId("Item_6");
service.scanProductId("Item_7");
System.out.println("Calculating order amount....");
service.calculateBill();
//SpringApplication.run(OrderApplication.class, args);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private SpringApplicationContext() {}",
"private static BeanFactory getBeanFactory() {\n\t\tBeanFactory factory = new ClassPathXmlApplicationContext(\"withauto/beans.xml\");\n\t\treturn factory;\n\t}",
"public static void main(String[] args) \r\n\t{\n\t\tString s = \"resources/spring.xml\";\r\nApplicationContext ac = new ClassPathXmlApplicationContext(s);\r\nCar c=(Car)ac.getBean(\"c\");\r\nc.printCarDetails();\r\n\t}",
"public static ApplicationContext getInstance() {\r\n\t\tsynchronized (SpringApplicationContextProvider.class) {\r\n\t\tif (applicationContext == null) {\r\n\t\t\tapplicationContext = new ClassPathXmlApplicationContext(\r\n\t\t\t\t\tnew String[] { \"META-INF/app-context.xml\" });\r\n\t\t}\r\n\t\t}\r\n\t\treturn (ApplicationContext) applicationContext;\r\n\t}",
"public static void main(String[] args){\n ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n /*\n Check to see if the file exists\n File file = new File(\"src/main/java/applicationContext.xml\");\n System.out.println(file.exists());\n \n */\n \n //retrieve bean from spring container\n Coach theCoach = context.getBean(\"myCoach\", Coach.class);\n //call methods on the bean\n System.out.println(theCoach.getDailyWorkout());\n //close the context\n \n context.close();\n \n /*Note: PUT THE FILE IN THE RESOURCES FOLDER, OR ELSE YOU'LL GET A FILE NOT FOUND ERROR*/\n }",
"private SpringApplicationContextProvider() {\r\n\t}",
"public Context getApplicationContext();",
"public ApplicationContext getApplicationContext()\n {\n return this.applicationContext;\n }",
"private AnnotationConfigWebApplicationContext getGlobalApplicationContext() {\r\n\t\tAnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();\r\n\t\t//rootContext.register(ApplicationConfig.class);\r\n\t\trootContext.register(new Class[] {ApplicationConfig.class});\r\n\t\treturn rootContext;\r\n\t}",
"@Before\n public void init() throws IOException {\n ApplicationContext context = new ClassPathXmlApplicationContext(\"config/applicationContext.xml\");\n //this.test();\n bookMapper = context.getBean(BookMapper.class);\n }",
"public ApplicationContext getApplicationContext() {\n return applicationContext;\n }",
"ApplicationContext getAppCtx();",
"public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().getContextClassLoader();\n\t\tThread.currentThread().setContextClassLoader(MY_CLASS_LOADER);\n\t\t//this.setClassLoader(MY_CLASS_LOADER);\n\n\t\tcontext = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tsetParent(context);\n\n\n\t\t// reset the original CL, to try to prevent crashing with\n\t\t// other Java AI implementations\n\t\tThread.currentThread().setContextClassLoader(originalContextClassLoader);\n\t}",
"public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"spring-test.xml\");\n\t\tSystem.out.println(context.getBean(\"test\"));\n\t\tSystem.out.println(context.getBean(MyConfig.class));\n\t\t//context.close();\n\t}",
"public static void main(String args[]) {\n\r\n\t\r\n\tApplicationContext ac = new ClassPathXmlApplicationContext(\"com/springcore/annotations/anootationconfig.xml\");\r\n\t \r\n Employee emp = ac.getBean(\"myemployee\", Employee.class);\r\n System.out.println(emp.toString());\r\n\t}",
"public static void main(String[] args) {\n \n ApplicationContext context =\n new ClassPathXmlApplicationContext(\"spring-beans.xml\");\n \n \n Dependant dependant = context.getBean(\"dependant\", Dependant.class);\n \n }",
"public static void main(String[] args) {\n\t\tApplicationContext container = new ClassPathXmlApplicationContext(\"context.xml\");\n\t\tSystem.out.println(\"container created\");\n\n\t\t//Animal dog = container.getBean(\"animal\", Animal.class);\n\t\t//System.out.println(dog);\n\n\t}",
"public static void main(String[] args) {\n\n ApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext_work.xml\");\n SqlSessionFactory c = context.getBean(\"C\", SqlSessionFactory.class);\n System.out.println(c);\n\n\n }",
"@Test\n public void testOrders(){\n ClassPathXmlApplicationContext context=\n new ClassPathXmlApplicationContext(\"bean4.xml\");\n Orders orders = context.getBean(\"orders\", Orders.class);\n System.out.println(\"第四步 得到bean实例\");\n System.out.println(orders);\n// orders.initMethod();\n context.close();\n }",
"public static void main(String[] args) {\n ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);\n }",
"public static void main(String[] args) {\n\n\n\n\n\n ClassPathXmlApplicationContext contexto=new ClassPathXmlApplicationContext(\"applicationContext3.xml\");\n \n \n\n Empleados Maria=contexto.getBean(\"secretarioEmpleado2\",Empleados.class);\n\n \n \n \n //System.out.println(\"Tareas del director: \"+Maria.getTareas());\n System.out.println(\"Informes del director: \"+Maria.getInformes());\n //System.out.println(\"El correo es: \"+Maria.getEmail());\n //System.out.println(\"El nombre de la empresa es: \"+Maria.getNombreEmpresa());\n \n\n contexto.close();\n\n\n \n }",
"public static void main(String[] args) throws ClassNotFoundException, SQLException {\n\tApplicationContext context=new ClassPathXmlApplicationContext(\"beans.xml\");\n\tStudentDAO studentDao=context.getBean(\"studentDAO\",StudentDAO.class);\n\tstudentDao.selectAllRows(); \n\t((ClassPathXmlApplicationContext)context).close();\n\n}",
"public static void main(String[] args) {\n\n ApplicationContext context = new ClassPathXmlApplicationContext(new String[]{\"applicationContext.xml\",\"application.xml\"});\n\n Student student = (Student) context.getBean(\"student\");\n\n\n// ClassPathResource resource = new ClassPathResource(\"applicationContext.xml\");\n// XmlBeanFactory beanFactory = new XmlBeanFactory(resource);\n// Student student = (Student) beanFactory.getBean(\"student\");\n//\n// //资源\n// ClassPathResource resource = new ClassPathResource(\"applicationContext.xml\");\n// //容器\n// DefaultListableBeanFactory factory = new DefaultListableBeanFactory();\n// //BeanDefinition读取器,通过回调配置给容器\n// XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(factory);\n// //读取配置\n// reader.loadBeanDefinitions(resource);\n\n// Student student = (Student) factory.getBean(\"student\");\n// System.out.println(student);\n }",
"public static void main(String[] args) {\nApplicationContext context=new ClassPathXmlApplicationContext(\"spring.xml\");\r\n\t\r\n\t\r\n\r\n\t\r\n\t\r\n\tCoach coach2=(Coach)context.getBean(\"myCCoach\");\r\n\r\n\t\r\n\tSystem.out.println(coach2);\r\n\t((ClassPathXmlApplicationContext)context).close();\r\n\t\r\n\t\r\n\tSystem.out.println(coach2.getDailyFortune());\r\n\t\r\n\t}",
"public static ApplicationContext getApplicationContext() {\n return appContext;\n }",
"public static void main(String[] args) {\n ApplicationContext ctx=new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n HelloWord h=(HelloWord) ctx.getBean(\"helloWord\");\n h.sayHello();\n Car car=(Car) ctx.getBean(\"car\");\n System.out.println(car);\n Person person=(Person) ctx.getBean(\"person\");\n System.out.println(person);\n\t}",
"@Before\n public void setUp() {\n this.context = new AnnotationConfigApplicationContext(\"com.fxyh.spring.config\");\n// this.context = new ClassPathXmlApplicationContext(\"classpath*:applicationContext-bean.xml\");\n this.user = this.context.getBean(User.class);\n this.user2 = this.context.getBean(User.class);\n this.department = this.context.getBean(Department.class);\n this.userService = (UserService) this.context.getBean(\"userService\");\n }",
"public static ApplicationContext getApplicationContext() {\r\n\t\treturn applicationContext;\r\n\t}",
"public static void main(String[] args) {\n ApplicationContext context = new ClassPathXmlApplicationContext(\"classpath:data.xml\");\n\n Employee emp1 = context.getBean(\"employee1\", Employee.class);\n\n System.out.println(\"Employee Details \" + emp1);\n\n }",
"public static void main( String[] args )\n {\n \tApplicationContext context=new FileSystemXmlApplicationContext(\"beans.xml\");\n \tTraveller traveller=(Traveller)context.getBean(\"traveller\"); //SPRING CONTAINER\n \tSystem.out.println(traveller.getTravelDetails());\n\n }",
"public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext contexto= new ClassPathXmlApplicationContext(\"applicationContext.xml\");\r\n\t\t \r\n\t\tdirectorEmpleado Juan=contexto.getBean(\"miEmpleado\",directorEmpleado.class);\r\n\t\tSystem.out.println(Juan.getTareas());\r\n\t\tSystem.out.println(Juan.getInforme());\r\n\t\tSystem.out.println(Juan.getEmail());\r\n\t\tSystem.out.println(Juan.getNombreEmpresa());\r\n\t\t\r\n\t\t/*secretarioEmpleado Maria=contexto.getBean(\"miSecretarioEmpleado\",secretarioEmpleado.class);\r\n\t\tSystem.out.println(Maria.getTareas());\r\n\t\tSystem.out.println(Maria.getInforme());\r\n\t\tSystem.out.println(\"Email= \"+Maria.getEmail());\r\n\t\tSystem.out.println(\"Nombre Empresa= \"+Maria.getNombreEmpresa());*/\r\n\t\t\r\n\t\tcontexto.close();\r\n\t}",
"public static void main(String[] args) {\n ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);\n//\n// SpeakerService service = context.getBean(\"speakerService\", SpeakerService.class);\n//\n// System.out.println(service);\n//\n// System.out.println(service.findAll().get(0).getFirstName());\n//\n /*\n * In case of Singleton\n * This will not instantiate new object of SpeakerService because it is singleton\n * Same reference will be returned\n * */\n// SpeakerService service2 = context.getBean(\"speakerService\", SpeakerService.class);\n// System.out.println(service2);\n\n // XML Configuration\n// ApplicationContext context = new ClassPathXmlApplicationContext(\"ApplicationContext.xml\");\n// SpeakerService service2 = context.getBean(\"speakerService\", SpeakerService.class);\n// System.out.println(service2);\n }",
"SpringLoader getSpringLoader();",
"public static void main(String[] args) {\r\nApplicationContext context=new ClassPathXmlApplicationContext(\"/beans.xml\");\t\t\r\n\tServlet s=(Servlet)context.getBean(\"servletRef\");\r\n\ts.serviceMethod();\r\n\t}",
"@Override\n public void onStartup(ServletContext container) {\n AnnotationConfigWebApplicationContext rootContext =\n new AnnotationConfigWebApplicationContext();\n rootContext.register(ApplicationConfig.class);\n rootContext.setConfigLocation(\"example.spring\");\n\n // Manage the lifecycle of the root application context\n container.addListener(new ContextLoaderListener(rootContext));\n container.addListener(new RequestContextListener());\n\n // The following line is required to avoid having jersey-spring3 registering it's own Spring root context.\n container.setInitParameter(\"contextConfigLocation\", \"\");\n\n }",
"public static Context getApplicationContext() { return mApplicationContext; }",
"public static void main( String[] args )\n {\n ApplicationContext bean = new ClassPathXmlApplicationContext(\"beans.xml\");\n Movie movie = (Movie) bean.getBean(\"movie1\");\n System.out.println(movie);\n }",
"public static void main(String[] args){\n\t\tAnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MyConfig.class);\n\t\t//applicationContext.addApplicationListener(new MyApplicationStartListener());\n\t\tapplicationContext.setParent(new ClassPathXmlApplicationContext(\"WEB-INF/application-context.xml\"));\n\t\tapplicationContext.start();\n\t\t\n\t\tHelloWorld helloWorld = (HelloWorld) applicationContext.getBean(\"helloWorld\");\n\t\thelloWorld.sayHello();\n\t\t\n\t\t/*BookJdbcTemplate bookJdbcTemplate = new BookJdbcTemplate();\n\t\tJdbcTemplate jdbcTemplate = (JdbcTemplate) applicationContext.getBean(\"jdbcTemplate\");\n\t\tbookJdbcTemplate.setJdbcTemplate(jdbcTemplate);\n\t\tSystem.out.println(\"Total pages are: \" + bookJdbcTemplate.getTotalPages((long)11));\n\t\tlogger.debug(\"Total pages are: \" + bookJdbcTemplate.getTotalPages((long)11));*/\n\t}",
"public static void main(String args[]) {\r\n\t\tApplicationContext appContext=new ClassPathXmlApplicationContext(\"beans.xml\");\r\n\t\tEmployeeBean emp1=(EmployeeBean) appContext.getBean(\"Employee\");\r\n\t\tSystem.out.println(emp1.getName());\r\n\t}",
"public static void main(String[] args) {\n BeanFactory beanFactory = new ClassPathXmlApplicationContext(\"/com/bridgelabz/Spring/bean.xml\"); \n /* beans are loaded as soon as bean factory instance is created but \n * the beans are created only when getBean() method is called.\n * getBean: Return an instance, which may be shared*/\n GreetingMessage obj = (GreetingMessage) beanFactory.getBean(\"greetingMessage\"); \n String message = obj.getMessage();\n System.out.println(message);\n }",
"public static void main(String[] args)\n {\n ApplicationContext context=new ClassPathXmlApplicationContext(\"beans.xml\");\n Movie movie=context.getBean(\"movie\",Movie.class);\n movie.displayActor();\n\n // intialize XmlBeanFactory with beanx.xml\n BeanFactory beanFactory=new XmlBeanFactory(new ClassPathResource(\"beans.xml\"));\n Movie movie1=(Movie) beanFactory.getBean(\"movie\");\n movie1.displayActor();\n // intialize BeanDefinitionRegistry and BeanDefinitionReader with beanx.xml\n DefaultListableBeanFactory factory=new DefaultListableBeanFactory();\n BeanDefinitionRegistry registry=new GenericApplicationContext(factory);\n BeanDefinitionReader reader = new XmlBeanDefinitionReader(registry);\n reader.loadBeanDefinitions(\"beans.xml\");\n Movie picture1 = (Movie) factory.getBean(\"movie\");\n picture1.displayActor();\n\n\n }",
"public static void main(String[] args) {\n\t\tApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);\r\n\t\t \r\n\t\tIMensaje mensaje = context.getBean(\"miBean\", Mensaje.class);\r\n\t\t\r\n\t\tmensaje.printHelloWorld(\"prueba Spring\");\r\n\t\t\r\n\t\t((AnnotationConfigApplicationContext) context).close();\r\n\t}",
"@Test\n public void testBeanFactoryCreateBean() {\n ClassPathResource resource = new ClassPathResource(\"spring-bean.xml\");\n XmlBeanFactory factory = new XmlBeanFactory(resource);\n //\n System.out.println(\"begin get bean.\");\n factory.getBean(\"bean\");\n System.out.println(\"end get bean.\");\n }",
"String getApplicationContextPath();",
"public void setApplicationContext(ApplicationContext applicationContext)\n/* */ throws BeansException\n/* */ {\n/* 106 */ applicationContext = applicationContext;\n/* */ }",
"@Override\r\n public void init() throws Exception {\r\n context = SpringApplication.run(getClass(), savedArgs);\r\n context.getAutowireCapableBeanFactory().autowireBean(this);\r\n }",
"public static void main(String[] args) {\n\n System.out.println(\"开始初始化容器\");\n ApplicationContext ac = new ClassPathXmlApplicationContext(\"classpath:dispatcher-servlet.xml\");\n\n System.out.println(\"xml加载完毕\");\n Person person1 = (Person) ac.getBean(\"person1\");\n System.out.println(person1);\n System.out.println(\"关闭容器\");\n ((ClassPathXmlApplicationContext)ac).close();\n\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Sample Spring Application!!\");\n\t\t\n\t\t//EmployeeService employeeService = new EmployeeServiceImpl();\n ApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\t\t\n\t\t\n\t\tEmployeeService employeeService = applicationContext.getBean(\"employeeService\", EmployeeService.class);\n\t\tSystem.out.println(employeeService.getAllEmployee().get(0).getName());\n\t}",
"@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n\n Context getApplication();\n}",
"@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tApplicationContext ac = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\r\n\t\t//System.out.println(ac.getBean(\"user\"));\r\n\t\t//User user = ac.getBean(User.class);\r\n\t\tString[] beanNames = ac.getBeanNamesForType(User.class);\r\n\t\t//System.out.println(user);\r\n\t\tfor (String string : beanNames) {\r\n\t\t\tSystem.out.println(string);\r\n\t\t\t\r\n\t\t}\r\n\t\tUser user = (User) ac.getBean(\"hkk.spring.javaBeans.User#0\");\r\n\t\tUser user2 = (User) ac.getBean(\"user\");\r\n\t\tUser user3 = (User) ac.getBean(\"user\");\r\n\t\tSystem.out.println(user3==user2);\r\n\t}",
"@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext)\r\n\t\t\tthrows BeansException {\n\t\tcontext = (WebApplicationContext) applicationContext;\r\n\t}",
"public static void main(String[] args) {\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tSystem.out.println(\"context loaded\");\n\t\t// Sim sim = (Sim) context.getBean(\"sim\");\n\t\t/**\n\t\t * Avoid above type casting\n\t\t */\n\t\tSim sim = context.getBean(\"sim\", Sim.class);\n\t\tsim.calling();\n\t\tsim.data();\n\t}",
"public static void main(String[] args) {\n ApplicationContext context =new ClassPathXmlApplicationContext(\"spring.xml\");\n\t \n\t\tService ser= context.getBean(Service.class);\n\t\tSystem.out.println(ser.getAccountID());\n\t}",
"public static void main(String[] args) {\n\t\t\tResource r = new ClassPathResource(\"resources/spring.xml\");\n\t\t\tBeanFactory factory = new XmlBeanFactory(r);\n\t\t//ApplicationContext factory1 = new ClassPathXmlApplicationContext(\"resources/spring.xml\");\n\t\t\n\t\t\n\t\t\t//Test t1 = (Test)factory1.getBean(\"t\");\n\t\t\t//Test t2 = (Test)factory1.getBean(\"t\");\n\t\t\t//t1.hello();\n\t\t\t//t2.hello();\n\t\t\t//System.out.println(t1==t2);\n\t\t\n\t\tfactory.getBean(\"t\");\n\t}",
"@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tApplicationContext context = new AnnotationConfigApplicationContext(JavaConfig.class);\n\nStudent s1 = context.getBean(\"s1\", Student.class);\n\nSystem.out.println(s1);\n\n\n\t}",
"public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext(\"contextApplicationXML.xml\");\n\n\t\t//retrieve bean from spring container\n\t\tCoach coach=context.getBean(\"myCoach\", Coach.class);\n\t\tSystem.out.println(coach.getWorkout());\n\t\t\n\t\t//close the context \n\t\tcontext.close();\n\t}",
"protected Spring() {}",
"public static void main(String[] args) {\n\t\tAbstractApplicationContext appContext = new FileSystemXmlApplicationContext(\"src/ApplicationMetaData.xml\");\n\t\tEmployee employee = appContext.getBean(\"tcsEmployee\", Employee.class);\n\t\t//2.Print out Employee Bean\n\t\tSystem.out.println(\"**************\");\n\t\tSystem.out.println(\"Employee Id::\"+ employee.getEmployeeId());\n\t\tSystem.out.println(\"Employee Name::\" + employee.getEmployeeName());\n\t\tSystem.out.println(\"**************\");\n\t\tappContext.close();\n\n\t}",
"public static void main(String[] args) {\n\t\tResource resource = new ClassPathResource(\"config/p51.xml\");\n\t\tBeanFactory factory = new XmlBeanFactory(resource);\n\t\t\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"config/p51.xml\");\n\t\t//context.getBean()....\n\t\t\n\t\t\n\t\tGreetingService greetingService =(GreetingService)factory.getBean(\"greeting\");\n\t\tSystem.out.println(greetingService.sayHello(\"아무거나 \"));\n\t\tGreetingService greetingService2 =(GreetingService)factory.getBean(\"greeting2\");\n\t\tSystem.out.println(greetingService2.sayHello(\"아무거나 \"));\n\n\t}",
"public static void main(String[] args) {\n ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"beans.xml\");\n Person person = context.getBean(\"person\", Person.class);\n System.out.println(person.getName());\n System.out.println(person.getMessage());\n System.out.println(\"Shutting down...\");\n context.close();\n }",
"@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext)\r\n\t\t\tthrows BeansException {\n\t\tSystem.out.println(\"进入方法。。。\"+applicationContext);\r\n\t\tApplicationContextHolder.app=applicationContext;\r\n\t}",
"public static void main(String[] args) {\n\t\tAbstractApplicationContext ctx=new ClassPathXmlApplicationContext(\"SpringConfig.xml\");\n\n\tClassificationService classificationService = ctx.getBean(\"classificationService\", ClassificationServiceImpl.class);\n\t\t\n//\t\tClassification classification = new Classification();\n//\t\tclassification.setClassificationName(\"spring\");\n//\t\t\n//\t\tclassificationService.storeClassification(classification);\n\t\t\n//\t\tfor(Classification classification:classificationService.getClassification()) {\n//\t\t\tSystem.out.println(classification.getId()+\" \"+classification.getClassificationName());\n//\t\t}\n\t\t\n\t\t\n\t}",
"@Bean\r\n\tpublic ServletContextInitializer initializer() {\r\n\t return new ServletContextInitializer() {\r\n\r\n\t\t\tpublic void onStartup(ServletContext servletContext) throws ServletException {\r\n\t\t\t\tservletContext.setInitParameter(\"log4jConfigLocation\", \"classes/log4j.properties\");\r\n\t\t\t\tservletContext.addListener(\"org.springframework.web.util.Log4jConfigListener\");\r\n\t\t\t\tservletContext.addListener(\"org.springframework.web.util.IntrospectorCleanupListener\");\r\n\t\t\t}\r\n\t \t\r\n\t };\r\n\t}",
"public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tthis.context=context;\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tApplicationContext appContext = \n\t \t new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\t \t\n\t ElectronicDao dao = (ElectronicDao)appContext.getBean(\"d\");\n\t/*\tResource r=new ClassPathResource(\"applicationContext.xml\"); \n\t BeanFactory factory=new XmlBeanFactory(r); \n\t \n\t ElectronicDao dao=(ElectronicDao)factory.getBean(\"d\"); */\n\t \n\t Electronic e= new Electronic(115,\"vasdasra3sdun\",\"asda3s\"); \n\n\t System.out.println(\"Hello1\");\n\t dao.saveElectronic(e); \n\t System.out.println(\"Hello2\");\n\t}",
"public static void main(String args[]){\n ApplicationContext context=new ClassPathXmlApplicationContext(\"bean.xml\");\n Movie movie=context.getBean(\"movie\", Movie.class);\n movie.movieDisplay();\n\n BeanFactory beanfactory=new XmlBeanFactory(new ClassPathResource(\"bean.xml\"));\n //getBean() returns instance\n Movie movie1=beanfactory.getBean(\"movie\", Movie.class);\n movie1.movieDisplay();\n\n DefaultListableBeanFactory defaultListableBeanFactory=new DefaultListableBeanFactory();\n BeanDefinitionRegistry beanDefinitionRegistry=new GenericApplicationContext(defaultListableBeanFactory);\n BeanDefinitionReader beanDefintionReader=new XmlBeanDefinitionReader(beanDefinitionRegistry);\n beanDefintionReader.loadBeanDefinitions(\"bean.xml\");\n Movie movie2=defaultListableBeanFactory.getBean(\"movie\",Movie.class);\n movie2.movieDisplay();\n }",
"@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tcontext=applicationContext;\n\t}",
"public static void main( String[] args )\r\n {\r\n \tApplicationContext context = new ClassPathXmlApplicationContext(\"beans.xml\");\r\n \t\r\n \t/* Recupera un bean avente id='helloWorld' nel file di configurazione\r\n \t * beans.xml */\r\n \tHelloWorld obj = (HelloWorld) context.getBean(\"helloWorld\");\r\n \t\r\n \t/* Invoco il metodo che stampa il messaggio su tale oggetto */\r\n \tSystem.out.println(\"Messaggio: \" + obj.getMessage());\r\n \t\r\n \tobj = (HelloWorld) context.getBean(\"moseca\");\r\n \tSystem.out.println(\"Messaggio: \" + obj.getMessage());\r\n }",
"protected void initSpring() {\n\t\tgetComponentInstantiationListeners().add(new SpringComponentInjector(this));\n\t}",
"public void initApplicationContext()\r\n/* 32: */ throws BeansException\r\n/* 33: */ {\r\n/* 34:103 */ super.initApplicationContext();\r\n/* 35:104 */ registerHandlers(this.urlMap);\r\n/* 36: */ }",
"private static CamelContext configureCamelContext(ApplicationContext context) throws Exception {\n //normal way of getting camel context but i have it defined in camelSpringApplicationContext.xml\n // CamelContext camel = new DefaultCamelContext();\n // CamelContext camel = new SpringCamelContext(context);\n CamelContext camel = (CamelContext) context.getBean(\"myCamelContext\");\n // shows up in jmx with this context name instead of camel-1\n camel.setNameStrategy(new DefaultCamelContextNameStrategy(\"steves_camel_driver\"));\n // camel.setTracing(true); // set in camelSpringApplicationContext.xml\n camel.addStartupListener(new StartupListener() {\n @Override\n public void onCamelContextStarted(CamelContext context, boolean alreadyStarted) throws Exception {\n LOG.info(\"Seeing when startup strategy is called. CamelContext=\" + context);\n }\n });\n\n return camel;\n }",
"public ApplicationContextAwareProcessor(ConfigurableApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}",
"public static void main(String[] args) {\n\n SpringApplication.run(Application.class, args);\n // AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();\n }",
"void setAppCtx(ApplicationContext appCtx);",
"public static void main(String args[])\n {\n ClassPathXmlApplicationContext context = new\n ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\n // retrieve bean from spring container\n Coach theCoach = context.getBean(\"myCoach\",Coach.class);\n\n// call methods on the bean\n System.out.println(theCoach.getDailyWorkout());\n\n// lest call our new method for fortunes\n System.out.println(theCoach.getDailyFortune());\n\n// close the context\n context.close();\n\n\n }",
"public static void main(String[] args) {\n ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(ANNOTATE_XML);\n\n // ask container for the Bean that is ready to use\n Car car = appContext.getBean(\"dmc12autowire\", Car.class);\n car.go();\n\n System.out.println(car.getClass().getName());\n\n appContext.close();\n }",
"public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\r\n\t\t\r\n\t\tCricketCoach coach = context.getBean(\"myCricketCoach\", CricketCoach.class);\r\n\t\t\r\n\t\tSystem.out.println(coach.getDailyWorkout());\r\n\t\t\r\n\r\n\t\tSystem.out.println(coach.getDailyFortune());\r\n\t\t\r\n\t\tSystem.out.println(coach.getEmail());\r\n\t\t\r\n\t\tSystem.out.println(coach.getName());\r\n\t\t\r\n\t\tcoach.print();\r\n\t\t\r\n\t\tcontext.close();\r\n\r\n\t}",
"public void configureContextInitializationComponents(AppConfiguration appConfig,\n\t SpringBeansXMLBuilder builder);",
"public static void main(String[] args) {\n ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContextPart2.xml\");\n // get bean from the application context\n Coach theCoach = context.getBean(\"myCoach\", Coach.class);\n // call the method from the beans\n System.out.println(theCoach.getDailyWorkout());\n System.out.println(theCoach.getFortune());\n\n // close the application context\n context.close();\n\n }",
"@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException\n\t{\n\t\trootApplicationContext = applicationContext;\n\t}",
"public static void main(String[] args) {\n ConfigurableApplicationContext ctx = new ClassPathXmlApplicationContext(\"config.xml\");\n // ctx.start();\n Database d =ctx.getBean(\"mysql\",Database.class);\n System.out.println(\"name --->\" + d.getName() + \" port-->\" + d.getPort());\n d.connect();\n // d.getInteger();\n // d.throwException();\n // d.checkdata(\"richa\");\n // d.getIntdata(200);\n // Dummy dummy = ctx.getBean(\"dummy\", Dummy.class);\n // dummy.display();\n // ctx.stop();\n /* Dummytest dummytest=ctx.getBean(\"dummyTest\",Dummytest.class);\nSystem.out.print(dummytest);\n PersonalisedService personalisedService=ctx.getBean(\"personalisedService\",PersonalisedService.class);\n System.out.println(personalisedService);\n System.out.println(personalisedService.employee.getCity());\n*/\n\n }",
"@BeforeClass\n\tpublic static void prepare() {\n\t\t final ApplicationContext ctx = new\n\t\t ClassPathXmlApplicationContext(\"file:src/main/webapp/WEB-INF/employee-servlet.xml\");\n\t\temployeeDAO = ctx.getBean(\"employeeDAO\", EmployeeDAO.class);\n\t}",
"@Override\n public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n System.out.println(\"## setApplicationContext(appcontext) Application context has been set!\");\n }",
"public static void main(String[] args) {\r\n\tAnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(SwimConfig.class);\r\n\tCoach myCoach=context.getBean(\"swimCoach\",Coach.class);\r\n\tSystem.out.println(myCoach.getDailyFortune());\r\n\tSystem.out.println(myCoach.getDailyWorkOut());\r\n\tcontext.close();\r\n\r\n}",
"public static void main(String[] args) {\n\t\tApplicationContext factory = new ClassPathXmlApplicationContext(\"com/test01/application.xml\");\n\t\t\n\t\tMyClass myclass = (MyClass)factory.getBean(\"myClass\");\n\t\tmyclass.prn();\n\t\t\n//\t\tScore sc = (Score)factory.getBean(\"score\");\n\t\t\n\t\tBeanTst bean = factory.getBean(\"beanTst\", BeanTst.class );\n\t}",
"public static void main(String[] args) {\n\tBeanFactory factory;\n\tfactory=new XmlBeanFactory(new ClassPathResource(\"kcp/spring/configuration/applicationContext.xml\"));\n\tClass c1=null;\n\tc1=factory.getBean(\"c1\",Class.class);\n\tSystem.out.println(c1+\" \"+c1.getClass());\n\t Properties c2=factory.getBean(\"c2\",Properties.class);\n\tSystem.out.println(c2+\" \"+c2.getClass());\n }",
"public static void main(final String... args) {\n\t\tAbstractApplicationContext context =\n\t new ClassPathXmlApplicationContext(\"classpath:META-INF/spring//*-context.xml\");\n\t final ExampleService service = context.getBean(ExampleService.class);\n\t System.out.println(\"endpoint:\" + service.getEndPoint());\n\t logger.info(\"endpoint:\" + service.getEndPoint());\n\t}",
"@Test\n public void findOne(){\n ApplicationContext ac = new AnnotationConfigApplicationContext(SpringConfiguration.class);\n\n AccountService as = ac.getBean(\"accountService\", AccountService.class);\n Account account = as.findAccountById(1);\n System.out.println(account);\n }",
"public void setSpringContext(ApplicationContext springContext) {\n\t\tthis.springContext = springContext;\n\t}",
"private ApplicationContext()\n\t{\n\t}",
"public static void main(String[] args) {\n\t\tApplicationContext context =\n\t\t\t new ClassPathXmlApplicationContext(new String[] {\"services.xml\"});\n\t\t\tHelloBean xmlBean = (HelloBean)context.getBean(\"xmlHelloID\");\n\t\t\tSystem.out.println(xmlBean.getMsg() + \" called \" + xmlBean.getCount() + \" times.\");\n\t\t\t\n\t\t//\tAnnotation example\n\t\t\tApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class);\n\t\t\t HelloBean annotationBean = ctx.getBean(HelloBean.class);\n\t\t\t System.out.println(annotationBean.getMsg() + \" called \" + annotationBean.getCount() + \" times.\");\n\t}",
"public void setApplicationContext(ApplicationContext context) throws BeansException {\n appContext = context;\n }",
"public static void main(String[] args) {\n\t\tApplicationContext ctx=new ClassPathXmlApplicationContext(\"performance.xml\");\r\n\t Performer p=ctx.getBean(\"sonu nigam\", Performer.class); \r\n\t p.Performe();\r\n\t ConfigurableApplicationContext cfgCtx=(ConfigurableApplicationContext) ctx;\r\n\t cfgCtx.close();\r\n\t \r\n\t\r\n\t}",
"public static void main(String[] args) {\n\t\tApplicationContext c = new ClassPathXmlApplicationContext(\"hello.xml\");\r\n\t\tTextEditor t = (TextEditor) c.getBean(\"text\");\r\n\t\tt.test();\r\n\t}",
"public static void main(String[] args) {\n\t\tApplicationContext actx = new FileSystemXmlApplicationContext(\"/src/main/java/com/baby/springStudy/echoMsgConfig.xml\");\n\t\tEchoMsg echoMsg = (EchoMsg)actx.getBean(\"EchoMsg\");\n\t\tSystem.out.println(echoMsg.sayHello());\n\t}",
"public static void main(String[] args) {\n AbstractApplicationContext context = new AnnotationConfigApplicationContext(\"com.ravindra\");\n Product p =(Product)context.getBean(\"product \");\n p.setId(\"123\");\n p.setName(\"Dell\");\n p.setPrice(400);\n System.out.println(p.toString());\n }",
"public static void main(String[] args) {\n ApplicationContext ctx = new ClassPathXmlApplicationContext(\"beans-cp.xml\");\n \n SpringJdbc springJdbc=ctx.getBean(SpringJdbc.class);\n springJdbc.actionMethod();\n \n //Lectura de Bean \n //OrganizationDao organizationDao = (OrganizationDao) ctx.getBean(\"organizationDao\");\n \n ((ClassPathXmlApplicationContext) ctx).close();\n }",
"public static void main(String[] args) {\n ApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"META-INF/dependency-injection-context.xml\");\n\n // 依赖来源一:自定义的bean\n UserRepository userRepository = applicationContext.getBean(UserRepository.class);\n// System.out.println(userRepository.getUsers());\n // 依赖来源二:内建依赖依 赖注入的方式获取BeanFactory\n System.out.println(userRepository.getBeanFactory());\n // 依赖查找的方式获取BeanFactory(报错)\n// System.out.println(beanFactory.getBean(BeanFactory.class));\n // 结果说明依赖注入可以注入容器内建的依赖,且依赖注入和依赖查找两者Bean的来源不一致\n\n System.out.println(userRepository.getObjectFactory().getObject());\n System.out.println(userRepository.getObjectFactory().getObject() == applicationContext);\n\n // 依赖来源三:容器内建Bean(spring内部初始化的bean)\n Environment environment = applicationContext.getBean(Environment.class);\n System.out.println(environment);\n }",
"public Object lookup()\r\n {\n if (applicationInstance != null)\r\n return applicationInstance;\r\n\r\n ApplicationContext appContext = WebApplicationContextUtils.getWebApplicationContext(flex.messaging.FlexContext.getServletConfig().getServletContext());\r\n if (appContext == null)\r\n {\r\n if (Log.isError())\r\n Log.getLogger(\"Configuration\").error(\r\n \"SpringFactory - not able to look up the WebApplicationContext for Spring. Check your web.xml to ensure Spring is installed properly in this web application.\");\r\n return null;\r\n }\r\n String beanName = getSource();\r\n\r\n try\r\n {\r\n Object inst;\r\n if (appContext.isSingleton(beanName))\r\n {\r\n if (Log.isDebug())\r\n Log.getLogger(\"Configuration\").debug(\r\n \"SpringFactory creating singleton component with spring id: \" + beanName + \" for destination: \" + getId());\r\n // We have a singleton instance but no one has initialized it yet.\r\n // We need to sync to prevent two threads from potentially initializing\r\n // the instance at the same time and to ensure we only return\r\n // initialized instances.\r\n synchronized (this)\r\n {\r\n // Someone else got to this before us\r\n if (applicationInstance != null)\r\n return applicationInstance;\r\n inst = appContext.getBean(beanName);\r\n if (inst instanceof FlexConfigurable)\r\n ((FlexConfigurable) inst).initialize(getId(), getProperties());\r\n applicationInstance = inst;\r\n }\r\n }\r\n else\r\n {\r\n if (Log.isDebug())\r\n Log.getLogger(\"Configuration\").debug(\r\n \"SpringFactory creating non-singleton component with spring id: \" + beanName + \" for destination: \" + getId());\r\n inst = appContext.getBean(beanName);\r\n if (inst instanceof FlexConfigurable)\r\n ((FlexConfigurable) inst).initialize(getId(), getProperties());\r\n }\r\n return inst;\r\n }\r\n catch (NoSuchBeanDefinitionException nexc)\r\n {\r\n ServiceException e = new ServiceException();\r\n String msg = \"Spring service named '\" + beanName + \"' does not exist.\";\r\n e.setMessage(msg);\r\n e.setRootCause(nexc);\r\n e.setDetails(msg);\r\n e.setCode(\"Server.Processing\");\r\n throw e;\r\n }\r\n catch (BeansException bexc)\r\n {\r\n ServiceException e = new ServiceException();\r\n String msg = \"Unable to create Spring service named '\" + beanName + \"' \";\r\n e.setMessage(msg);\r\n e.setRootCause(bexc);\r\n e.setDetails(msg);\r\n e.setCode(\"Server.Processing\");\r\n throw e;\r\n }\r\n }"
] | [
"0.72162336",
"0.6856306",
"0.67681146",
"0.67167825",
"0.66992116",
"0.65770245",
"0.65694875",
"0.6530831",
"0.65205806",
"0.6520491",
"0.6433935",
"0.6369355",
"0.6348694",
"0.6334135",
"0.63340926",
"0.63155085",
"0.63096976",
"0.62779135",
"0.6265336",
"0.6261309",
"0.62579983",
"0.6235607",
"0.6208671",
"0.6201699",
"0.61867666",
"0.61845934",
"0.6178677",
"0.61732936",
"0.6150604",
"0.6126308",
"0.6103546",
"0.609984",
"0.6086097",
"0.6085343",
"0.6078913",
"0.60482067",
"0.60159624",
"0.59853",
"0.5959296",
"0.5934936",
"0.59231967",
"0.59048665",
"0.5898104",
"0.58969843",
"0.58896166",
"0.5889596",
"0.58739144",
"0.5864209",
"0.5841656",
"0.5838347",
"0.58378625",
"0.58316594",
"0.58215815",
"0.58108675",
"0.5799406",
"0.5793073",
"0.5773875",
"0.576766",
"0.57649785",
"0.574111",
"0.5695706",
"0.56905174",
"0.5682454",
"0.5679121",
"0.5666332",
"0.5663008",
"0.5653875",
"0.56491166",
"0.562736",
"0.56242937",
"0.5620304",
"0.5616325",
"0.56149673",
"0.5601254",
"0.5597366",
"0.5583174",
"0.55763465",
"0.557289",
"0.5569263",
"0.5552688",
"0.5546918",
"0.5542572",
"0.55367345",
"0.5513544",
"0.5500827",
"0.5494753",
"0.54909194",
"0.5486065",
"0.5481657",
"0.54728734",
"0.54706717",
"0.5465579",
"0.54624254",
"0.5457843",
"0.5455505",
"0.54466575",
"0.5425941",
"0.5419873",
"0.54174614",
"0.5414685",
"0.54104483"
] | 0.0 | -1 |
Return escaped original message | @Override
public Response toResponse(UnrecognizedPropertyException exception) {
return KeycloakErrorHandler.getResponse(session, new BadRequestException(exception.getMessage()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getRawMessage();",
"private String encodeMessage() {\n\t\tString encode = \"\";\n\t\tfor (int i = 0; i < message.length(); i++) {\n\t\t\tencode += map.get(message.charAt(i));\n\t\t}\n\t\tgenerateBack();\n\t\treturn encode;\n\t}",
"private String prettyMessage() {\n Map<String, Object> map = new LinkedHashMap<>(4);\n map.put(\"type\", getType());\n map.put(\"message\", this.message);\n map.put(\"code\", getCode());\n // TODO(\"need to optimize\")\n map.put(\"data\", getData().toString());\n return JsonUtils.getGson().toJson(map);\n }",
"public String getMessage() {\n String message = super.getMessage();\n\n if (message == null) {\n message = \"\";\n }\n\n if (buffer != null) {\n return message + ((message.length() > 0) ? \" \" : \"\")\n + \"(Hexdump: \" + ByteBuffers.getHexdump(buffer) + ')';\n } else {\n return message;\n }\n }",
"@AutoEscape\n\tpublic String getMessageInfo();",
"public String getMessage() {\n\t\tString result = message;\n\t\tresult = result.replaceAll(\"\\\\{(.+?)\\\\}\", Matcher.quoteReplacement(\"<img class='imgHelp' title='\" + caption + \":\") + \"$1\" + Matcher.quoteReplacement(\"' src='images/help/\" + key + \"/\") + \"$1\" + Matcher.quoteReplacement(\"'>\"));\n\t\treturn result;\n\t}",
"public String getMessageTextAsHTML();",
"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}",
"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 return(message);\n }",
"public String getMessage() {\n\t\tString toReturn = message;\n\t\tmessage=\"\";//delete the message\n\t\treturn toReturn;\n\t}",
"public String message() {\n final StringSubstitutor sub = new StringSubstitutor(this.vars);\n return sub.replace(this.message);\n }",
"protected String normalizeExMsg(String msg) {\n return msg;\n }",
"public Object getOriginalMessage()\n\t{\n\t\treturn originalMessage;\n\t}",
"public String toString() {\n if (getMessage() != null) {\n return \"message(\" + getMessage().toString() + \")\";\n } else {\n return \"message(null)\";\n }\n }",
"public void encodeMessage() {\n for (int i = message.length() - 1; i >= 0; i--) {\n message.insert(i, String.valueOf(message.charAt(i)).repeat(2));\n }\n }",
"public String doMessage(){\n\t\treturn messageXhtml;\n\t}",
"@GET\n\t@Produces(\"text/plain\")\n\tpublic String getPlain() {\n\t\treturn msg + \"\\n\";\n\t}",
"@Override\n\tpublic String toMessageString() {\n\t\treturn null;\n\t}",
"protected final String formatDialogMessage(final String text) {\n return JsonPaintTarget.escapeXML(text).replaceAll(\"\\n\", \"<br />\");\n }",
"@Override\n public String toString() {\n return message;\n }",
"public String getMessage() {\n return message == null ? new StringBuilder().append(\"??\").append(key).append(\"??\").toString() : message;\n }",
"protected String formatDialogMessage(final String text) {\n return JsonPaintTarget.escapeXML(text).replaceAll(\"\\n\", \"<br />\");\n }",
"public String toString() {\n return message;\n }",
"private String repMessageCharacter() {\n\t\tString temp = \"\";\n\t\tString interpret = \"\";\n\t\tint messL = message.length();\n\t\tint polyL = polybius.length;\n\t\tint polyR = polybius[0].length;\n\t\tif(this.key != \"\") {\n\t\t\timpArray = new String[messL];\n\t\t\tfor(int i = 0; i < messL; i++) {\n\t\t\t\ttemp = \"\" + message.charAt(i);\n\t\t\t\tfor(int j = 0; j < polyL;j++) {\n\t\t\t\t\tfor(int k = 0; k < polyR; k++) {\n\t\t\t\t\t\tif(temp.equalsIgnoreCase(polybius[j][k])) {\n\t\t\t\t\t\t\timpArray[i] = columnRowIndex(j,k);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < message.length(); i++) {\n\t\t\t\tinterpret += impArray[i];\n\t\t\t}\n\t\t}else {\n\t\t\tinterpret = \"\";\n\t\t}\n\t\t//System.out.println(interpret);\n\t\treturn interpret;\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getMessageId() != null)\n sb.append(\"MessageId: \").append(getMessageId()).append(\",\");\n if (getFromEmailAddress() != null)\n sb.append(\"FromEmailAddress: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getSubject() != null)\n sb.append(\"Subject: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getEmailTags() != null)\n sb.append(\"EmailTags: \").append(getEmailTags()).append(\",\");\n if (getInsights() != null)\n sb.append(\"Insights: \").append(getInsights());\n sb.append(\"}\");\n return sb.toString();\n }",
"@Override\n public String getMessage() {\n String result =\"Audio Message {\\n\";\n result +=\"\\tID: \"+ID+\"\\n\";\n result +=\"\\tBuffer Size: \"+bufferSize+\"\\n\";\n result +=\"}\";\n \n return result;\n }",
"CharSequence formatEIP721Message(\n String messageData);",
"@Override\n public String toString()\n {\n return String.format(\"%s^%s\", fCode, fMessage);\n }",
"public final String toString() {\r\n final String result = String.format(\r\n \"%s(%d,%d,%d): %s\", this.source, this.line, this.start, this.end, this.message\r\n );\r\n\r\n return result.replaceAll(\"<unknown>\", \"\");\r\n }",
"private String buildMessage(String message) {\n\t\tif(message != null && message.contains(\"@record\")) {\n\t\t\tmessage = message.replaceAll(\"@record\", answerUser);\n\t\t\trecorded.put(owner.id(), answerUser);\n\t\t}\n\t\t//o sistema substitui o texto !id pelo id do usuário da conversa\n\t\tif(message != null && message.contains(\"!id\")) {\n\t\t\tmessage = message.replaceAll(\"!id\", owner.id() + \"\");\n\t\t}\n\t\t//o sistema verifica se tem alguma gravacao para o código recebido\n\t\tif(message != null && message.contains(\"#find\")) {\n\t\t\tString gravacao = recorded.get(Integer.parseInt(userLatestAnswer.get(owner.id())));\n\t\t\t//se houver gravacao, o sistema informa qual o desejo do amigo secreto\n\t\t\tif(gravacao != null)\n\t\t\t\tmessage = message.replaceAll(\"#find\", gravacao);\n\t\t\t//caso nao haja gravacao, o sistema notifica o usuário da situacao\n\t\t\telse\n\t\t\t\tmessage = \"O código informado não corresponde ao desejo de um amigo secreto... por favor tente novamente\";\n\t\t}\n\n\t\treturn message;\n\t}",
"public String getMessage() {\r\n\treturn messageSB.toString();\r\n }",
"public String toString() {\n\t\treturn message;\n\t}",
"private String avoidErrorChar (String original) {\n\t\tStringBuffer modSB = new StringBuffer();\n\t\tfor (int j=0; j < original.length(); j++) {\n\t\t\tchar c = original.charAt(j);\n\t\t\tif (c == '\\n') {\n\t\t\t\tmodSB.append(\"\\\\n\"); // rimpiazzo il ritorno a capo con il simbolo \\n\n\t\t\t} else if (c == '\"') {\n\t\t\t\tmodSB.append(\"''\"); // rimpiazzo le doppie virgolette (\") con due apostofi ('')\n\t\t\t} else if ((int)c > 31 || (int)c !=127){ // non stampo i primi 32 caratteri di controllo\n\t\t\t\tmodSB.append(c);\n\t\t\t}\n\t\t}\n\t\treturn modSB.toString();\n\t}",
"public static String encode(Command msg)\n\t{\n\t\tString type = msg.getType();\n\t\tString sender = msg.getSender();\n\t\tString recipient = msg.getReciever()!=null ? msg.getReciever() : \" \";\n\t\tString message = msg.getMessage()!=null? msg.getMessage() : \" \";\n\t\tSystem.out.println(type + \";\" + sender + \";\" + recipient + \";\" + message);\n\t\treturn (type + \";\" + sender + \";\" + recipient + \";\" + message);\n\t}",
"@AutoEscape\n public String getMailShareholder();",
"public String getMessageText();",
"public String readMessage() {\r\n return new String(readMessageAsByte());\r\n }",
"protected String getMessage() {\n if (allMessage == null)\n return allMessage;\n return allMessage.trim();\n }",
"static String getExtendedThrowableMessage(Throwable throwable) {\n StringBuilder messageBuilder = new StringBuilder();\n if (throwable == null) {\n return \"\";\n }\n messageBuilder.append(throwable.getClass().getName()).append(\": \");\n messageBuilder.append(throwable.getMessage());\n Throwable cause = throwable.getCause();\n while (cause != null) {\n if (!isDelimiter(messageBuilder.charAt(messageBuilder.length()-1))) {\n messageBuilder.append(\".\");\n }\n messageBuilder.append(\" Caused by \")\n .append(cause.getClass().getName())\n .append(\": \")\n .append(cause.getMessage());\n cause = cause.getCause();\n }\n return messageBuilder.toString();\n }",
"java.lang.String getTheMessage();",
"public String toString()\r\n\t{\r\n\t\treturn message;\r\n\t}",
"public String getMessageContent() {\n return messageContent;\n }",
"private String appendContextMessage(String msg) {\n\t\treturn msg;\r\n\t}",
"@Override\n public byte[] getMessage() {\n jsonData = textPane.getText();\n return buildData();\n }",
"public String _buildMessage() {\n String msg = super.getMessage();\n if (this._path == null) {\n return msg;\n }\n StringBuilder sb = msg == null ? new StringBuilder() : new StringBuilder(msg);\n sb.append(\" (through reference chain: \");\n StringBuilder sb2 = getPathReference(sb);\n sb2.append(')');\n return sb2.toString();\n }",
"public String toString() {\n\t\treturn getMessage();\n\t}",
"private void printEncodedMessage() {\n System.out.print(\"\\nPrinting the encoded message\");\n System.out.print(\"\\n\" + encodedMessage + \"\\n\");\n System.out.println();\n }",
"java.lang.String getUserMessage();",
"public String getChatMessageInString() {\r\n\t\treturn chatMessage.get();\r\n\t}",
"public String encode(String message)\n\t{\n\t\treturn encode(message, 0);\n\t}",
"@Override\n\tpublic String toString(){\n\t\treturn this.message;\n\t}",
"public static String convertToPlainText(String message) {\n char[] input = message.toCharArray();\n char[] output = new char[input.length];\n int outputSize = 0;\n for (int i = 0, inputLength = input.length; i < inputLength; i++) {\n char c = input[i];\n if (c == ChatColor.ESCAPE) {\n i++;\n } else {\n output[outputSize++] = c;\n }\n }\n return new String(output, 0, outputSize);\n }",
"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();",
"Object getMessage();",
"private String encodageMot(String message) {\n if (message == null || message.equals(\"\")) {\n throw new AssertionError(\"Texte non saisie\");\n } \n return transformWords(message, 1); \n }",
"public String getCodedMessage(){\r\n return codedMessage;\r\n }",
"public String formatMessage(String message) {\n return String.format(\"<h1>%s</h1>\", message);\n// return MessageFormat.format(\"<h1>{0}}</h1>\", message);\n }",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"public String getMessage() {\n\t\treturn adaptee.getMessage();\n\t}",
"public String getMessage(){\n return message;\n }",
"public String fromPacketToString() {\r\n\t\tString message = Integer.toString(senderID) + PACKET_SEPARATOR + Integer.toString(packetID) + PACKET_SEPARATOR + type + PACKET_SEPARATOR;\r\n\t\tfor (String word:content) {\r\n\t\t\tmessage = message + word + PACKET_SEPARATOR;\r\n\t\t}\r\n\t\treturn message;\r\n\t}",
"public String getMessage(){\r\n return message;\r\n }",
"public String getMessage(){\r\n return message;\r\n }",
"public String printMessage() {\r\n\t\tSystem.out.println(message);\r\n\t\treturn message;\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn text.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\").replaceAll(\"[{]\\\\$\", \"\\\\\\\\{\\\\$\");\n\t}",
"protected abstract String transactionContextMessage();",
"public String getMessage()\n {\n return fMessage;\n }",
"public static String build(Message msg)\n {\n // Grab our message data\n String action = msg.getAction() + \"\\n\";\n String clientID = msg.getClientID() + \"\\n\";\n String body = \"\\n\" + msg.getBody() + \"\\n\";\n int recipient = msg.getRecipient();\n\n // Need to store the message somewhere\n String message = action + clientID;\n\n // Recipient will be -1 if not\n // present in message\n if(recipient != -1) {\n message += recipient + \"\\n\";\n }\n\n // Add the body\n message += body;\n return message;\n }",
"String formatMessage(LogMessage ioM);",
"@Override\n protected SimpleMessage prepareMessage() {\n SimpleMessage message = super.prepareMessage();\n message.setContent(onFailure());\n return message;\n }",
"public String getMessage() { return message; }",
"@Override\n\tpublic String getUnformattedTextForChat() {\n\t\tensureInitialized();\n\t\tfinal StringBuilder var1 = new StringBuilder();\n\t\tfinal Iterator var2 = children.iterator();\n\n\t\twhile (var2.hasNext()) {\n\t\t\tfinal IChatComponent var3 = (IChatComponent) var2.next();\n\t\t\tvar1.append(var3.getUnformattedTextForChat());\n\t\t}\n\n\t\treturn var1.toString();\n\t}",
"public static String convertMessage(Component message, String locale) {\n try {\n // Translate any components that require it\n message = RENDERER.render(message, locale);\n\n String legacy = BEDROCK_SERIALIZER.serialize(message);\n\n StringBuilder finalLegacy = new StringBuilder();\n char[] legacyChars = legacy.toCharArray();\n boolean lastFormatReset = false;\n for (int i = 0; i < legacyChars.length; i++) {\n char legacyChar = legacyChars[i];\n if (legacyChar != ChatColor.ESCAPE || i >= legacyChars.length - 1) {\n // No special formatting for Bedrock needed\n // Or, we're at the end of the string\n finalLegacy.append(legacyChar);\n lastFormatReset = false;\n continue;\n }\n\n char next = legacyChars[++i];\n if (BEDROCK_COLORS.indexOf(next) != -1) {\n // Append this color code, as well as a necessary reset code\n if (!lastFormatReset) {\n finalLegacy.append(RESET);\n }\n }\n finalLegacy.append(BASE).append(next);\n lastFormatReset = next == 'r';\n }\n\n return finalLegacy.toString();\n } catch (Exception e) {\n GeyserImpl.getInstance().getLogger().debug(GSON_SERIALIZER.serialize(message));\n GeyserImpl.getInstance().getLogger().error(\"Failed to parse message\", e);\n\n return \"\";\n }\n }",
"public String getEmailInString() {\n\t\tString shortenedBody = StringHelper.shortenString(body, 75, .5);\n\t\tString indentedBody = \"\\t\" + shortenedBody.replace(StringHelper.newline, StringHelper.newline + \"\\t\");\n\t\tString bodyLine = \"(Shortened) Body (html >>> \" + html + \"):\" + StringHelper.newline + indentedBody;\n\n\t\tStringBuilder bodyPartBuilder = new StringBuilder(\"bodyParts:\");\n\t\tfor (MimeBodyPart mimeBodyPart : bodyParts) {\n\t\t\tbodyPartBuilder.append(StringHelper.newline).append(\"\\t\");\n\t\t\ttry {\n\t\t\t\tbodyPartBuilder.append(mimeBodyPart.getFileName());\n\t\t\t} catch (Throwable ex) {\n\t\t\t\t//We don't care if this error is thrown. We don't want this to break anything.\n\t\t\t\tbodyPartBuilder.append(\"N/A\");\n\t\t\t}\n\t\t}\n\t\treturn StringHelper.splitBy(StringHelper.newline,\n\t\t\t\t\t\t\"from: \" + from,\n\t\t\t\t\t\t\"replyTo: \" + StringHelper.splitBy(\", \", replyTo),\n\t\t\t\t\t\t\"to: \" + StringHelper.splitBy(\", \", to),\n\t\t\t\t\t\t\"cc: \" + StringHelper.splitBy(\", \", cc),\n\t\t\t\t\t\t\"bcc: \" + StringHelper.splitBy(\", \", bcc),\n\t\t\t\t\t\t\"subject: \" + subject,\n\t\t\t\t\t\tbodyLine,\n\t\t\t\t\t\tbodyPartBuilder.toString());\n\t}",
"private String getMessage(String path) {\n return ChatColor.translateAlternateColorCodes('&', getConfig().getString(\"message.\" + path));\n }",
"public String getMessage() {\n\t\treturn \" whose content is a\";\n\t}",
"private String geraMensagem(Mensagem msg) {\n\t\treturn new StringBuilder()\n\t\t\t.append(msg.remetente.nome)\n\t\t\t.append(\" enviou para \")\n\t\t\t.append(msg.destinatario.nome)\n\t\t\t.append(\" uma mensagem suspeita.\")\n\t\t\t.toString();\n\t}",
"public String getMessage(){\n return saisieMessage.getText();\n }",
"public String getMessage(){\n return this.message;\n }",
"java.lang.String getAboutRaw();",
"public String getPointMessageInString() {\r\n\t\treturn pointMessage.get();\r\n\t}",
"public String getMessageInJsonFormat(){\n return messageInJsonFormat;\n }"
] | [
"0.6550659",
"0.6377705",
"0.63774014",
"0.6191204",
"0.6175152",
"0.61425644",
"0.6066552",
"0.60431165",
"0.6001836",
"0.59569925",
"0.5891403",
"0.5858719",
"0.5849331",
"0.5805458",
"0.57364273",
"0.5729554",
"0.57126707",
"0.57113487",
"0.5704033",
"0.5674365",
"0.56716347",
"0.5664876",
"0.56488043",
"0.56480795",
"0.5638625",
"0.56019706",
"0.5560566",
"0.5557315",
"0.55523884",
"0.55481595",
"0.554114",
"0.553699",
"0.55334795",
"0.55312806",
"0.5528041",
"0.55196154",
"0.55183697",
"0.5503375",
"0.5493843",
"0.54832894",
"0.54708487",
"0.54699415",
"0.5466863",
"0.5461201",
"0.54582524",
"0.54534423",
"0.54515725",
"0.54434955",
"0.5429897",
"0.54055357",
"0.540303",
"0.53998697",
"0.53986937",
"0.53944296",
"0.53944296",
"0.53944296",
"0.53944296",
"0.53944296",
"0.53944296",
"0.53944296",
"0.53944296",
"0.53944296",
"0.53944296",
"0.53944296",
"0.53944296",
"0.53944296",
"0.53944296",
"0.53944296",
"0.53944296",
"0.53944296",
"0.53827083",
"0.5374666",
"0.536625",
"0.5361675",
"0.5360807",
"0.5360807",
"0.5360807",
"0.53572065",
"0.5330313",
"0.5329657",
"0.5327769",
"0.5327769",
"0.5309379",
"0.5306865",
"0.5303851",
"0.5300803",
"0.52976096",
"0.5295261",
"0.5294604",
"0.529112",
"0.5290583",
"0.52875406",
"0.528044",
"0.5257887",
"0.5255316",
"0.52478033",
"0.5244916",
"0.52436846",
"0.5240702",
"0.52391595",
"0.5233269"
] | 0.0 | -1 |
Open the plugin dialog. | private void process() {
final PluginsDialog dialog = new PluginsDialog();
dialog.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void execute() {\n _plugin.openNavigator();\n }",
"DialogResult show();",
"public void open(){\n dialog.setLocation\n (parent.getLocation().x + 10, parent.getLocation().y + 10);\n dialog.setSize(PREF_SIZE);\n dialog.setResizable(false);\n dialog.setVisible(true);\n dialog.setResizable(true);\n }",
"private void openCreateAccountDialog()\n {\n testDialog();\n\n }",
"public Object open() {\n // Create a new shell object and set the text for the dialog.\n Shell parent = getParent();\n shell = new Shell(parent, SWT.DIALOG_TRIM);\n shell.setText(\"Edit Colormaps\");\n\n // Setup all of the layouts and the controls.\n setup();\n\n // Open the shell to display the dialog.\n shell.open();\n\n // Wait until the shell is disposed.\n Display display = parent.getDisplay();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch())\n display.sleep();\n }\n\n return null;\n }",
"public OpenMonitorInstanceDialog() {\n super();\n setTitle(\"Open Monitor Instance\");\n initComponents();\n setLocationRelativeTo(getOwner());\n getRootPane().setDefaultButton(btnOpen);\n }",
"@Override\n public void onStart() {\n pDialog.show();\n }",
"public void openOptionsWindow() {\n\t\tthis.dispose();\t//built-in method to destroy this GUI.\n\t\tnew SARMain().setVisible(true);\n\t}",
"public void show() {\n listenerHandler.onShow(dialog);\n dialog.show();\n }",
"public void howtouse(View view) {\n showdialog();\n }",
"@FXML\n void launcherButtonOnAction() {\n openParamDialog();\n }",
"@Override\n\tpublic void show() {\n\t\tGameView.VIEW.addDialog(this);\n\t\tsuper.show();\n\t}",
"private void showDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }",
"private void showHelpDialog() {\n\n view.helpDialog();\n }",
"private void open() {\n\t\tint state = fileChooser.showOpenDialog(this);\n\t\tswitch (state) {\n\t\tcase JFileChooser.CANCEL_OPTION:\n\t\t\tbreak;\n\t\tcase JFileChooser.APPROVE_OPTION:\r\n\t\t\tFile file = fileChooser.getSelectedFile();\r\n\t\t\t//System.out.println(\"Getting file...\");\r\n\t\t\ttry {\r\n\t\t\t\tfis = new FileInputStream(file);\r\n\t\t\t\tbyte[] b = new byte[fis.available()];\r\n\t\t\t\tif (fis.read(b) == b.length) {\r\n\t\t\t\t\t//System.out.println(\"File read: \" + file.getName());\r\n\t\t\t\t}\r\n\t\t\t\tdistributable = new Distributable(file.getName(), b);\r\n\t\t\t\tdiscoveryRelay.setDistributable(distributable);\r\n\t\t\t} \r\n\t\t\tcatch (FileNotFoundException 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\tcatch (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}\n\t\t\tbreak;\n\t\tcase JFileChooser.ERROR_OPTION:\n\t\t}\n\t}",
"public static void showDialog() {\n\t\tdialog.setLocationRelativeTo(Cytoscape.getDesktop());\n\t\tdialog.setVisible(true);\n\t}",
"private void openFile() {\n\t\tJDialog fileDialog = new JDialog(this, \"Select File\", true);\n\t\tFileDialog filePanel = new FileDialog(this, this, false, false, false);\n\t\tfileDialog.getContentPane().add(filePanel);\n\t\tfileDialog.pack();\n\n\t\t// set the location.\n\t\tPoint p1 = this.getLocation();\n\t\tDimension d1 = this.getSize();\n\t\tDimension d2 = fileDialog.getSize();\n\t\tfileDialog.setLocation((p1.x + (d1.width / 2)) - (d2.width / 2),\n\t\t\t\t(p1.y + (d1.height / 2)) - (d2.height / 2));\n\n\t\tfilePanel.setCurrentDirectory(Config.getInstance().getBaseHarvestDir());\n\t\tfileDialog.show();\n\t}",
"public void show() {\r\n isOkPressed = false;\r\n\r\n dialog = RitDialog.create(context);\r\n dialog.setTitle(\"Inline Method\");\r\n dialog.setContentPane(contentPanel);\r\n\r\n buttonOk.requestFocus();\r\n\r\n HelpViewer.attachHelpToDialog(dialog, buttonHelp, \"refact.inline_method\");\r\n SwingUtil.initCommonDialogKeystrokes(dialog, buttonOk, buttonCancel, buttonHelp);\r\n\r\n dialog.show();\r\n }",
"private void openUri()\r\n {\r\n JOptionPane optionPane = new JOptionPane(new JLabel(\"URI:\"), \r\n JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);\r\n optionPane.setWantsInput(true);\r\n JDialog dialog = optionPane.createDialog(frame, \"Enter URI\");\r\n dialog.setResizable(true);\r\n dialog.setVisible(true);\r\n Object value = optionPane.getValue();\r\n if (value == null)\r\n {\r\n return;\r\n }\r\n if (!value.equals(JOptionPane.OK_OPTION))\r\n {\r\n return;\r\n }\r\n String uriString = (String)optionPane.getInputValue();\r\n if (uriString == null || uriString.trim().isEmpty())\r\n {\r\n return;\r\n }\r\n URI uri = null;\r\n try\r\n {\r\n uri = new URI(uriString);\r\n } \r\n catch (URISyntaxException e)\r\n {\r\n JOptionPane.showMessageDialog(\r\n frame, \"Invalid URI: \"+e.getMessage(), \r\n \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return;\r\n }\r\n openUriInBackground(uri);\r\n }",
"public abstract void initDialog();",
"private void showpDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }",
"void showFileManagerDialog();",
"void showAddParameterDialog();",
"public void openFileDialog() {\n\tswitch(buttonAction) {\n\t case SELECT_FILES:\n openFileDialog(fileUpload, true);\n break;\n\t case SELECT_FILE:\n default:\n openFileDialog(fileUpload, false);\n break;\n\t}\n }",
"public void openDialog() {\r\n\t\tString filename = this.getFileName();\r\n\t\tif (filename.equals(null) || filename.equals(\"\") ) {\r\n\t\t\ttext.append(\"\\nPlease select valid image\");\r\n\t\t\topenDialog();\r\n\t\t}\r\n\t\tdisplay_img = this.loadImage(filename);\r\n\r\n\t}",
"private File showOpenDialog()\n {\n \tJFileChooser fc = new JFileChooser(m_preferences.get(\"path-load-game\"));\n \tint ret = fc.showOpenDialog(this);\n \tif (ret == JFileChooser.APPROVE_OPTION)\n \t return fc.getSelectedFile();\n \treturn null;\n }",
"public void showDialog(Context context) {\n \n }",
"public void openDialog(){\n DialogforTheboysHeroImage dialogforTheboysHeroImage = new DialogforTheboysHeroImage();\n dialogforTheboysHeroImage.show(getSupportFragmentManager(), \"Heros info\");\n }",
"public String showDialog() {\n setModal(true);\n setLocationRelativeTo(_parent);\n setVisible(true);\n return phpSyntaxTreeURL;\n }",
"private void showDialog() {\n if (!progressDialog.isShowing())\n progressDialog.show();\n }",
"public void onOpen() {\n\t\t\n\t\t//if things are dirty, ask if they're sure they want to do this\n\t\tif(FormDesignerController.getIsDirty())\n\t\t{\n\t\t\t//if the use says no, then bounce\n\t\t\tif(!Window.confirm(LocaleText.get(\"newFormConfirm\")))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\txformsWidget.hideWindow();\n\t\tFormUtil.dlg.setText(\"Opening...\");\n\t\tFormUtil.dlg.show();\n\n\n\t\tScheduler.get().scheduleDeferred(new Command() {\n\t\t\tpublic void execute() {\n\t\t\t\ttry {\n\t\t\t\t\t//openFile();\n\t\t\t\t\txformsWidget.setXform(\"\");\n\t\t\t\t\txformsWidget.showOpenButton(true);\n\t\t\t\t\txformsWidget.showWindow();\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}",
"public void Open() {\r\n\t click();\r\n\t }",
"private void onOK() {\n if (TextUtil.isEmpty(nick.getText())) {\n showMessage(\"插件名称\");\n return;\n }\n if (TextUtil.isEmpty(name.getText())) {\n showMessage(\"插件代号\");\n return;\n }\n if (TextUtil.isEmpty(version.getText())) {\n showMessage(\"插件版本\");\n return;\n }\n if (TextUtil.isEmpty(path.getText())) {\n showMessage(\"插件路径\");\n return;\n }\n String nickV = nick.getText();\n String nameV = name.getText();\n String versionV = version.getText();\n UploadPluginDto dto = RequestManagement.uploadPlugin(selectFile, nameV, versionV, nickV);\n if (dto != null && dto.getResult() != null) {\n if (pluginPanel != null) {\n pluginPanel.addItem(dto.getResult());\n }\n }\n dispose();\n }",
"public void open() {\n try {\n if (element != null) {\n DartUI.openInEditor(element, true);\n } else if (element_OLD != null) {\n DartUI.openInEditor(element_OLD);\n } else {\n String title = DartEditorMessages.OverrideIndicatorManager_open_error_title;\n String message = DartEditorMessages.OverrideIndicatorManager_open_error_message;\n MessageDialog.openError(DartToolsPlugin.getActiveWorkbenchShell(), title, message);\n }\n } catch (Exception e) {\n ExceptionHandler.handle(\n e,\n DartEditorMessages.OverrideIndicatorManager_open_error_title,\n DartEditorMessages.OverrideIndicatorManager_open_error_messageHasLogEntry);\n }\n }",
"private void showImportDialog() {\r\n ImportRecipeDialog dialog = new ImportRecipeDialog();\r\n dialog.addImportRecipeDialogListener(new ImportRecipeDialog.ImportRecipeDialogListener() {\r\n @Override\r\n public void onDialogPositiveClick(String recipeUrl) {\r\n ActivityRecipeList.this.onDialogPositiveClick(recipeUrl);\r\n }\r\n });\r\n String IMPORT_DIALOG = \"ImportRecipeDialog\";\r\n dialog.show(getFragmentManager(), IMPORT_DIALOG);\r\n }",
"private void initDialog() {\n }",
"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 }",
"public void openDialogCovidlanding(){\n DialogforCovidImageonlandingpage dialogfortotalIrish = new DialogforCovidImageonlandingpage();\n dialogfortotalIrish.show(getSupportFragmentManager(), \"Covid Info\");\n }",
"public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\topen(file);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//\topenOptionsMenu();\n\t/*\t\t\t\t\t\t\t\t\tIntent intent = new Intent(MediaStore.INTENT_ACTION_MUSIC_PLAYER);\n\t\t\t\t\t\t\t\t\t\tstartActivity(intent);\n\t*/\t\t\t}",
"@FXML\r\n protected void dialogOpen() throws IOException {\r\n final FileChooser fileChooser = new FileChooser();\r\n File file = fileChooser.showOpenDialog(FracGenApplication.getInstance().stageOpenData);\r\n if (file != null) {\r\n if (file.exists()) {\r\n if (file.getAbsolutePath() != null) {\r\n tfFilename.setText(file.getAbsolutePath());\r\n }\r\n }\r\n }\r\n }",
"public void open() {\n\t\tthis.createContents();\n\n\t\tWindowBuilder delegate = this.getDelegate();\n\t\tdelegate.setTitle(this.title);\n\t\tdelegate.setContents(this);\n\t\tdelegate.setIcon(this.iconImage);\n\t\tdelegate.setMinHeight(this.minHeight);\n\t\tdelegate.setMinWidth(this.minWidth);\n\t\tdelegate.open();\n\t}",
"public void open() {\n popupWindow = new Window(getTypeCaption());\n popupWindow.addStyleName(\"e-export-form-window\");\n popupWindow.addStyleName(\"opaque\");\n VerticalLayout layout = (VerticalLayout) popupWindow.getContent();\n layout.setMargin(true);\n layout.setSpacing(true);\n layout.setSizeUndefined();\n popupWindow.setSizeUndefined();\n popupWindow.setModal(false);\n popupWindow.setClosable(true);\n\n popupWindow.addComponent(this);\n getMainApplication().getMainWindow().addWindow(popupWindow);\n\n onDisplay();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tSystem.err.println(\"action\");\n\t\t\t\tFTPSiteDialog dialog = new FTPSiteDialog(FTP_Client_Frame.this);\n\t\t\t\tdialog.setVisible(true);\n\t\t\t}",
"private void openAbout() {\r\n\t\tJDialogAbout jDialogAbout = new JDialogAbout();\r\n\t\tjDialogAbout.setVisible(true);\r\n\t}",
"private void openFile()\r\n {\r\n int returnState = openFileChooser.showOpenDialog(frame);\r\n if (returnState == JFileChooser.APPROVE_OPTION) \r\n {\r\n File file = openFileChooser.getSelectedFile();\r\n openUriInBackground(file.toURI());\r\n } \r\n }",
"@FXML\n\tpublic void OpenHelpContentPage() {\n\n\t\tif (!Desktop.isDesktopSupported()) {\n\t\t\tSystem.out.println(\"Desktop not supported\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (!Desktop.getDesktop().isSupported(Desktop.Action.OPEN)) {\n\t\t\tSystem.out.println(\"File opening not supported\");\n\t\t\treturn;\n\t\t}\n\n\t\tfinal Task<Void> task = new Task<Void>() {\n\t\t\t@Override\n\t\t\tpublic Void call() throws Exception {\n\t\t\t\ttry {\n\t\t\t\t\tFile sx3InstallLocation = SX3Manager.getInstance().getInstallLocation().getParentFile()\n\t\t\t\t\t\t\t.getAbsoluteFile();\n\t\t\t\t\tDesktop.getDesktop().open(new File(\n\t\t\t\t\t\t\tsx3InstallLocation + File.separator + \"Cypress_EZ-USB_SX3_ConfigurationUtility.pdf\"));\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\n\t\tfinal Thread thread = new Thread(task);\n\t\tthread.setDaemon(true);\n\t\tthread.start();\n\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tpDialog.show();\n\t\t}",
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.show();\n\t\t\t\t}",
"public void showDialog()\n {\n textInputDialog = new TextInputDialog();\n textInputDialog.setTitle(\"Choose File\");\n Pane pane = new Pane();\n pane.setPrefSize(350, 130);\n\n filePath = new TextField();\n filePath.setPrefSize(250, 20);\n filePath.setPromptText(\"Path File :\");\n filePath.setLayoutX(20);\n filePath.setLayoutY(50);\n\n\n JFXButton Browse = new JFXButton(\"Browse\");\n Browse.setStyle(\" -fx-background-color :#ffffff\");\n Browse.setLayoutX(280);\n Browse.setLayoutY(50);\n\n Browse.setButtonType(JFXButton.ButtonType.RAISED);\n\n pane.getChildren().addAll(filePath, Browse);\n textInputDialog.setHeaderText(null);\n textInputDialog.getDialogPane().setContent(pane);\n Browse.setOnMouseClicked(event ->\n {\n FileChooser fileChooser = new FileChooser();\n file = fileChooser.showOpenDialog(rootAnchorPane.getScene().getWindow());\n filePath.setText(file.getAbsolutePath());\n });\n }",
"public void display() {\n dialog.setVisible(true);\n }",
"public void triggerPopup();",
"public void open();",
"public void open();",
"private void showDialog() {\n\t\tAlertDialog.Builder ab = new AlertDialog.Builder(SplashActivity.this);\n\t\tab.setTitle(\"最新版本2.0\");\n\t\tab.setMessage(mDesc);\n\t\tab.setPositiveButton(\"立即更新\", new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// 在这使用xutils异步下载并提示安装,和显示下载进度条\n\n\t\t\t}\n\t\t});\n\n\t\tab.setNegativeButton(\"下次再说\", new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// 进入主界面\n\n\t\t\t}\n\t\t});\n\t\tab.create().show();\n\t}",
"public boolean onPreferenceClick(Preference preference) {\n final Dialog d = new Dialog(getActivity());\n //d.setTitle(R.string.import_dialog_title);\n d.setContentView(R.layout.dialog_guide);\n d.setTitle(\"Import guide\");\n Button dialog_guide_ok_btn = (Button) d.findViewById(R.id.dialog_guide_ok_btn);\n dialog_guide_ok_btn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n d.dismiss();\n }\n });\n d.show();\n\n return true;\n }",
"public void open() {\r\n\t\tthis.setVisible(true);\r\n\t}",
"private void dialogAbout() {\n\t\tGraphicalUserInterfaceAbout.start();\r\n\t}",
"public int openFileChooser(){\n int returnVal = fileChooser.showOpenDialog(getCanvas()); //Parent component as parameter - affects position of dialog\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"ZIP & OSM & BIN\", \"osm\", \"zip\", \"bin\",\"OSM\",\"ZIP\",\"BIN\"); //The allowed files in the filechooser\n fileChooser.setFileFilter(filter); //sets the above filter\n return returnVal;\n }",
"public static void openSettingsForm(){\n\n }",
"private void popupMenuAbout() {\n\t\t//\n\t\t// Display the dialog\n\t\t//\n\t\tAboutDialog aboutDialog = new AboutDialog(parent.getShell(), SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);\n\t\taboutDialog.open();\n\t}",
"private void openLabButton() throws IOException{\n int returnVal = labChooser.showOpenDialog(this);\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n File lab = labChooser.getSelectedFile();\n openLab(lab);\n } \n }",
"public void openAddGroupeDialog() {\n Log.d(\"DEBUG\", \"Ouverture du dialog d'ajout de groupe\");\n new AddGroupeDialog(this, this.getActivity()).show();\n }",
"private void openHelpDialog() {\r\n\t\t// Get view and put relevant information into the view.\r\n\t\tLayoutInflater li = LayoutInflater.from(this);\r\n\t\tView view = li.inflate(R.layout.archive_help_dialog, null);\r\n\r\n\t\tnew AlertDialog.Builder(this)\r\n\t\t\t\t.setTitle(\r\n\t\t\t\t\t\tgetResources().getString(R.string.action_archive)\r\n\t\t\t\t\t\t\t\t+ \" \"\r\n\t\t\t\t\t\t\t\t+ getResources()\r\n\t\t\t\t\t\t\t\t\t\t.getString(R.string.action_help))\r\n\t\t\t\t.setIcon(R.drawable.icon)\r\n\t\t\t\t.setView(view)\r\n\t\t\t\t.setNegativeButton(R.string.dialog_general_button_close,\r\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\tint whichButton) {\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}).show();\r\n\t}",
"protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }",
"public void testGetDialog() {\n System.out.println(\"getDialog\");\n Wizard instance = new Wizard();\n JDialog result = instance.getDialog();\n assertNotNull(result);\n }",
"@Override\r\n public void doHelpAction() {\n BIReportService.getInstance().traceHelpClick(project.getBasePath(), ConversionHelpEnum.PATH_SETTING);\r\n\r\n ApplicationManager.getApplication().invokeLater(() -> {\r\n BrowserUtil.browse(allianceDomain + HmsConvertorBundle.message(\"directory_url\"));\r\n }, ModalityState.any());\r\n }",
"private void showAccessChooserDialog(){\n if (getFragmentManager().findFragmentByTag(ACCESS_RADIAL_FRAGMENT_TAG) != null){\n return;\n }\n AccessRadialDialogFragment fragment = AccessRadialDialogFragment.createFragment(getMainItem());\n fragment.show(getFragmentManager(), ACCESS_RADIAL_FRAGMENT_TAG);\n }",
"private void showAboutDialog() {\n\n view.aboutDialog();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t\t\tshowdialog();\n\n\t\t\t}",
"void openChooser(Property<String> pathProperty);",
"@Override\n protected void onPreExecute()\n {\n dialog.show();\n super.onPreExecute();\n }",
"public void open() {\n display = Display.getDefault();\n createContents();\n shell.open();\n shell.layout();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch()) {\n display.sleep();\n }\n }\n\n // programme stop with exit 0\n System.exit(0);\n\n }",
"public void open(){\n }",
"private void openPressed(){\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showOpenDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\n\t\t\tSaveFile saveFile = null;\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectInputStream input = new ObjectInputStream(new FileInputStream(file));\n\t\t\t\tsaveFile = (SaveFile) input.readObject();\n\t\t\t\tinput.close();\n\t\t\t\tVariable.setList(saveFile.getVariables());\n\t\t\t\tUserFunction.setFunctions(saveFile.getFunctions());\n\t\t\t\tmenuBar.updateFunctions();\n\t\t\t\tSystem.out.println(\"Open Success\");\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Override\n public void run() {\n showDialog(ZDisMainActivity.this,\"dialog\");\n }",
"void showDialog() {\n\t\tDFTimePicker dtf = DFTimePicker.newInstance();\n DialogFragment newFragment = dtf;\n newFragment.show(getFragmentManager(), \"dialog\");\n }",
"public interface Plugin {\n\n /**\n * Invoked when plugin is loaded\n */\n void Initialize();\n\n /**\n * Get plugin name\n * @return plugin name\n */\n String getName();\n\n /**\n * Show the issue management window\n * @param pmsIssue Notification for which the window should be displayed\n * @see PMSIssue\n * @param pmsUser User data\n * @see PMSUser\n *\n * @return window instance\n * @see Stage\n */\n Stage getIssueWindow(PMSIssue pmsIssue, PMSUser pmsUser);\n\n /**\n * Get a PMSManage object to control the project management system\n * @return PMSManage object\n */\n PMSManage getPMSManage();\n\n\n /**\n * When program is shutting down\n */\n void Free();\n}",
"protected abstract JDialog createDialog();",
"@Override\n public void execute () {\n if (Desktop.isDesktopSupported()) {\n try {\n Desktop.getDesktop().browse(new URI(HELP_URL));\n }\n catch (Exception e) {\n\n }\n }\n }",
"private void openDialogHelpJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openDialogHelpJButtonActionPerformed\n setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));\n BareBonesBrowserLaunch.openURL(\"http://cruxtoolkit.sourceforge.net/\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n }",
"@Override\n public void run() {\n showDialog(ZDisMainActivity.this,\"dialog\");\n }",
"private void showChooser() {\n Intent target = FileUtils.createGetContentIntent();\n // Create the chooser Intent\n Intent intent = Intent.createChooser(\n target, getString(R.string.chooser_title));\n try {\n startActivityForResult(intent, REQUEST_CODE);\n } catch (ActivityNotFoundException e) {\n // The reason for the existence of aFileChooser\n }\n }",
"public void onClick(View view) {\n\n openDialog();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdoOpen();\n\t\t\t}",
"public void showOptions() {\n this.popupWindow.showAtLocation(this.layout, 17, 0, 0);\n this.customview.findViewById(R.id.dialog).setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.pdf.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity discussionActivity = DiscussionActivity.this;\n discussionActivity.type = \"pdf\";\n discussionActivity.showPdfChooser();\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.img.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity discussionActivity = DiscussionActivity.this;\n discussionActivity.type = ContentTypes.EXTENSION_JPG_1;\n discussionActivity.showImageChooser();\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.cancel.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n }",
"public String mo6833a() {\n return \"show_dialog\";\n }",
"void openFromFileClicked() {\n\t\tif (GeoGebraJSNativeBridge.get() != null) {\n\t\t\tGeoGebraJSNativeBridge.get().openFromFileClickedNative();\n\t\t}\n\t}",
"public int open() {\n\t\tint value = super.open();\n\t\tif (popupCloser == null) {\n\t\t\tpopupCloser = new PopupCloserListener();\n\t\t}\n\t\tpopupCloser.installListeners();\n\t\tProposal p = getSelectedProposal();\n\t\tif (p != null) {\n\t\t\tshowProposalDescription();\n\t\t}\n\t\treturn value;\n\t}",
"private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}",
"public void start() {\n\t\tPetriNetView pnmlData = ApplicationSettings.getApplicationView()\n\t\t\t\t.getCurrentPetriNetView();\n\t\t//if (pnmlData.getTokenViews().size() > 1) {\n\t\tif(pnmlData.getEnabledTokenClassNumber() > 1){\n\t\t\tExpander expander = new Expander(pnmlData);\n\t\t\tpnmlData = expander.unfold();\n\t\t\tJOptionPane.showMessageDialog(null, \"This is CGSPN. The analysis will only apply to default color (black)\",\n\t\t\t\t\t\"Information\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\t\t// Build interface\n\t\tEscapableDialog guiDialog = new EscapableDialog(\n\t\t\t\tApplicationSettings.getApplicationView(), MODULE_NAME, true);\n\n\t\t// 1 Set layout\n\t\tContainer contentPane = guiDialog.getContentPane();\n\t\tcontentPane.setLayout(new BoxLayout(contentPane, BoxLayout.PAGE_AXIS));\n\n\t\t// 2 Add file browser\n\t\tsourceFilePanel = new PetriNetChooserPanel(\"Source net\", pnmlData);\n\t\tcontentPane.add(sourceFilePanel);\n\n\t\t// 3 Add results pane\n\t\tresults = new ResultsHTMLPane(pnmlData.getPNMLName());\n\t\tcontentPane.add(results);\n\n\t\t// 4 Add button's\n\t\tcontentPane.add(new ButtonBar(\"Analyse GSPN\", runAnalysis, guiDialog\n\t\t\t\t.getRootPane()));\n\n\t\t// 5 Make window fit contents' preferred size\n\t\tguiDialog.pack();\n\n\t\t// 6 Move window to the middle of the screen\n\t\tguiDialog.setLocationRelativeTo(null);\n\n\t\ttry {\n\t\t\tguiDialog.setVisible(true);\n\t\t} catch (NullPointerException e) {\n\t\t}\n\n\t}",
"private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n String message = context.getString(R.string.gps_error_message);\n builder.setMessage(message).setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface d, int id) {\n context.startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS));\n d.dismiss();\n }\n }).setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface d, int id) {\n d.cancel();\n }\n });\n builder.create().show();\n }",
"void openGadget(GadgetMetadata gadgetMetadata, ContainerView view);",
"public ExtensionPicker() {\n initComponents();\n chooser.setControlButtonsAreShown(false);\n setLocationRelativeTo(null);\n this.setVisible(true);\n }",
"@Override\n public void onShow(DialogInterface arg0) {\n\n }",
"@Override\n\tpublic void execute() {\n\t\tProjectOpenAllPrompt prompt = new ProjectOpenAllPrompt();\n\t\tprompt.setProceedEvent(ee -> {\n\t\t\tprompt.close();\n\t\t\tString name = ((Button) ee.getSource()).getId();\n\t\t\tIGameRunner gameRunner = new GameRunner();\n\t gameRunner.playGame(name);\n\t\t});\n\t\tprompt.show();\n\t}",
"public void open() {\r\n\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tOpenscreen.open(\"/admin_main/first_main.fxml\");\r\n\t\t\t}",
"private void openAddDialog(){\n DialogFragment dialog = new AddLocationDialog();\n dialog.show(getFragmentManager(), getText(R.string.map_ask_add).toString());\n }",
"void setDialogueManager(IDialogueManager dialogueManager);"
] | [
"0.7036539",
"0.633256",
"0.6311408",
"0.6298507",
"0.61925894",
"0.6190876",
"0.61001307",
"0.6042616",
"0.6040758",
"0.6040449",
"0.6037011",
"0.60289913",
"0.60035896",
"0.59785175",
"0.5945096",
"0.59336126",
"0.59298867",
"0.5928319",
"0.5925022",
"0.5912791",
"0.59074646",
"0.59044045",
"0.58913994",
"0.5876276",
"0.5863773",
"0.58525544",
"0.585093",
"0.5846809",
"0.5845167",
"0.5843553",
"0.5826586",
"0.5822835",
"0.58126384",
"0.57882637",
"0.5774921",
"0.5742637",
"0.573854",
"0.573745",
"0.57269233",
"0.571658",
"0.5691211",
"0.56600344",
"0.5654914",
"0.56536156",
"0.5639815",
"0.5597114",
"0.55875933",
"0.5587066",
"0.5586826",
"0.55867374",
"0.5583612",
"0.5578439",
"0.5578404",
"0.5578404",
"0.55751437",
"0.5572125",
"0.5572124",
"0.55525064",
"0.5529517",
"0.5524819",
"0.5517201",
"0.55158246",
"0.5498613",
"0.5493823",
"0.54754883",
"0.5472699",
"0.5464571",
"0.54625577",
"0.5460214",
"0.54583645",
"0.54573584",
"0.54565656",
"0.54450744",
"0.5435843",
"0.5430118",
"0.5411746",
"0.5405221",
"0.5404511",
"0.54034686",
"0.5397945",
"0.5392942",
"0.53918207",
"0.538481",
"0.5370549",
"0.5370389",
"0.53635556",
"0.53536475",
"0.53495586",
"0.5340361",
"0.5318686",
"0.5307415",
"0.5301421",
"0.5298515",
"0.5293487",
"0.52921623",
"0.5289677",
"0.5288651",
"0.52857566",
"0.5284294",
"0.5284249"
] | 0.69930303 | 1 |
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity. | public static Ordre createEntity(EntityManager em) {
Ordre ordre = new Ordre()
.name(DEFAULT_NAME)
.status(DEFAULT_STATUS)
.price(DEFAULT_PRICE)
.creationDate(DEFAULT_CREATION_DATE);
return ordre;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Entity createEntity();",
"T createEntity();",
"protected abstract ENTITY createEntity();",
"void create(E entity);",
"void create(T entity);",
"E create(E entity);",
"E create(E entity);",
"protected abstract EntityBase createEntity() throws Exception;",
"TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Test name\");\n testEntity.setCheck(true);\n testEntity.setDateCreated(new Date(System.currentTimeMillis()));\n testEntity.setDescription(\"description\");\n\n Specialization specialization = new Specialization();\n specialization.setName(\"Frontend\");\n specialization.setLevel(\"Senior\");\n specialization.setYears(10);\n\n testEntity.setSpecialization(specialization);\n\n return testEntity;\n }",
"public static TestEntity createEntity(EntityManager em) {\n TestEntity testEntity = new TestEntity();\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n testEntity.setUserOneToMany(user);\n return testEntity;\n }",
"void create(T entity) throws Exception;",
"@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }",
"protected T createSimulatedExistingEntity() {\n final T entity = createNewEntity();\n entity.setId(IDUtil.randomPositiveLong());\n\n when(getDAO().findOne(entity.getId())).thenReturn(entity);\n return entity;\n }",
"public Entity newEntity() { return newMyEntity(); }",
"public Entity newEntity() { return newMyEntity(); }",
"public static TranshipTube createEntity(EntityManager em) {\n TranshipTube transhipTube = new TranshipTube()\n .status(DEFAULT_STATUS)\n .memo(DEFAULT_MEMO)\n .columnsInTube(DEFAULT_COLUMNS_IN_TUBE)\n .rowsInTube(DEFAULT_ROWS_IN_TUBE);\n // Add required entity\n TranshipBox transhipBox = TranshipBoxResourceIntTest.createEntity(em);\n em.persist(transhipBox);\n em.flush();\n transhipTube.setTranshipBox(transhipBox);\n // Add required entity\n FrozenTube frozenTube = FrozenTubeResourceIntTest.createEntity(em);\n em.persist(frozenTube);\n em.flush();\n transhipTube.setFrozenTube(frozenTube);\n return transhipTube;\n }",
"public static Student createEntity(EntityManager em) {\n Student student = new Student()\n .firstName(DEFAULT_FIRST_NAME)\n .middleName(DEFAULT_MIDDLE_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .studentRegNumber(DEFAULT_STUDENT_REG_NUMBER)\n .dateOfBirth(DEFAULT_DATE_OF_BIRTH)\n .regDocType(DEFAULT_REG_DOC_TYPE)\n .registrationDocumentNumber(DEFAULT_REGISTRATION_DOCUMENT_NUMBER)\n .gender(DEFAULT_GENDER)\n .nationality(DEFAULT_NATIONALITY)\n .dateJoined(DEFAULT_DATE_JOINED)\n .deleted(DEFAULT_DELETED)\n .wxtJwtPq55wd(DEFAULT_WXT_JWT_PQ_55_WD);\n // Add required entity\n NextOfKin nextOfKin;\n if (TestUtil.findAll(em, NextOfKin.class).isEmpty()) {\n nextOfKin = NextOfKinResourceIT.createEntity(em);\n em.persist(nextOfKin);\n em.flush();\n } else {\n nextOfKin = TestUtil.findAll(em, NextOfKin.class).get(0);\n }\n student.getRelatives().add(nextOfKin);\n return student;\n }",
"@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }",
"public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT)\n .dateRetour(DEFAULT_DATE_RETOUR);\n // Add required entity\n Usager usager = UsagerResourceIntTest.createEntity(em);\n em.persist(usager);\n em.flush();\n emprunt.setUsager(usager);\n // Add required entity\n Exemplaire exemplaire = ExemplaireResourceIntTest.createEntity(em);\n em.persist(exemplaire);\n em.flush();\n emprunt.setExemplaire(exemplaire);\n return emprunt;\n }",
"public ClientEntity newEntity() {\r\n if (entityType == null) {\r\n entityType = getEntityType(entitySet);\r\n }\r\n return odataClient.getObjectFactory().newEntity(new FullQualifiedName(NAMESPAVE, entityType));\r\n }",
"@Override\n public EntityResponse createEntity(String entitySetName, OEntity entity) {\n return super.createEntity(entitySetName, entity);\n }",
"ID create(T entity);",
"public static MotherBed createEntity(EntityManager em) {\n MotherBed motherBed = new MotherBed()\n .value(DEFAULT_VALUE)\n .status(DEFAULT_STATUS);\n // Add required entity\n Nursery nursery = NurseryResourceIntTest.createEntity(em);\n em.persist(nursery);\n em.flush();\n motherBed.setNursery(nursery);\n return motherBed;\n }",
"private FailingEntity createFailingEntity() {\n FailingEntity entity = app.createAndManageChild(EntitySpec.create(FailingEntity.class)\n .configure(FailingEntity.FAIL_ON_START, true));\n return entity;\n }",
"@Override\n public EntityResponse createEntity(String entitySetName, OEntityKey entityKey, String navProp, OEntity entity) {\n return super.createEntity(entitySetName, entityKey, navProp, entity);\n }",
"public <T extends Entity> T createEntity(EntitySpec<T> spec) {\n Map<String,Entity> entitiesByEntityId = MutableMap.of();\n Map<String,EntitySpec<?>> specsByEntityId = MutableMap.of();\n \n T entity = createEntityAndDescendantsUninitialized(spec, entitiesByEntityId, specsByEntityId);\n initEntityAndDescendants(entity.getId(), entitiesByEntityId, specsByEntityId);\n return entity;\n }",
"public static Prestamo createEntity(EntityManager em) {\n Prestamo prestamo = new Prestamo().observaciones(DEFAULT_OBSERVACIONES).fechaFin(DEFAULT_FECHA_FIN);\n // Add required entity\n Libro libro;\n if (TestUtil.findAll(em, Libro.class).isEmpty()) {\n libro = LibroResourceIT.createEntity(em);\n em.persist(libro);\n em.flush();\n } else {\n libro = TestUtil.findAll(em, Libro.class).get(0);\n }\n prestamo.setLibro(libro);\n // Add required entity\n Persona persona;\n if (TestUtil.findAll(em, Persona.class).isEmpty()) {\n persona = PersonaResourceIT.createEntity(em);\n em.persist(persona);\n em.flush();\n } else {\n persona = TestUtil.findAll(em, Persona.class).get(0);\n }\n prestamo.setPersona(persona);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n prestamo.setUser(user);\n return prestamo;\n }",
"default E create(E entity)\n throws TechnicalException, ConflictException {\n return create(entity, null);\n }",
"public static Rentee createEntity(EntityManager em) {\n Rentee rentee = new Rentee();\n rentee = new Rentee()\n .firstName(DEFAULT_FIRST_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .email(DEFAULT_EMAIL)\n .phoneNumber(DEFAULT_PHONE_NUMBER)\n .password(DEFAULT_PASSWORD);\n return rentee;\n }",
"public static Pocket createEntity(EntityManager em) {\n Pocket pocket = new Pocket()\n .key(DEFAULT_KEY)\n .label(DEFAULT_LABEL)\n .startDateTime(DEFAULT_START_DATE_TIME)\n .endDateTime(DEFAULT_END_DATE_TIME)\n .amount(DEFAULT_AMOUNT)\n .reserved(DEFAULT_RESERVED);\n // Add required entity\n Balance balance = BalanceResourceIntTest.createEntity(em);\n em.persist(balance);\n em.flush();\n pocket.setBalance(balance);\n return pocket;\n }",
"public static ItemSubstitution createEntity(EntityManager em) {\n ItemSubstitution itemSubstitution = new ItemSubstitution()\n .timestamp(DEFAULT_TIMESTAMP)\n .type(DEFAULT_TYPE)\n .substituteType(DEFAULT_SUBSTITUTE_TYPE)\n .substituteNo(DEFAULT_SUBSTITUTE_NO)\n .description(DEFAULT_DESCRIPTION)\n .isInterchangeable(DEFAULT_IS_INTERCHANGEABLE)\n .relationsLevel(DEFAULT_RELATIONS_LEVEL)\n .isCheckedToOriginal(DEFAULT_IS_CHECKED_TO_ORIGINAL)\n .origCheckDate(DEFAULT_ORIG_CHECK_DATE);\n // Add required entity\n Item item;\n if (TestUtil.findAll(em, Item.class).isEmpty()) {\n item = ItemResourceIT.createEntity(em);\n em.persist(item);\n em.flush();\n } else {\n item = TestUtil.findAll(em, Item.class).get(0);\n }\n itemSubstitution.getItems().add(item);\n return itemSubstitution;\n }",
"E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;",
"public static A createEntity(EntityManager em) {\n A a = new A();\n return a;\n }",
"public static Edge createEntity(EntityManager em) {\n Edge edge = new Edge()\n .description(DEFAULT_DESCRIPTION);\n // Add required entity\n Stone from = StoneResourceIntTest.createEntity(em);\n em.persist(from);\n em.flush();\n edge.setFrom(from);\n // Add required entity\n Stone to = StoneResourceIntTest.createEntity(em);\n em.persist(to);\n em.flush();\n edge.setTo(to);\n return edge;\n }",
"public static QuizQuestion createEntity(EntityManager em) {\n QuizQuestion quizQuestion = new QuizQuestion()\n .text(DEFAULT_TEXT)\n .description(DEFAULT_DESCRIPTION);\n // Add required entity\n Quiz quiz;\n if (TestUtil.findAll(em, Quiz.class).isEmpty()) {\n quiz = QuizResourceIT.createEntity(em);\n em.persist(quiz);\n em.flush();\n } else {\n quiz = TestUtil.findAll(em, Quiz.class).get(0);\n }\n quizQuestion.setQuiz(quiz);\n return quizQuestion;\n }",
"public static Partida createEntity(EntityManager em) {\n Partida partida = new Partida()\n .dataPartida(DEFAULT_DATA_PARTIDA);\n return partida;\n }",
"public T create(T entity) {\n\t \tgetEntityManager().getTransaction().begin();\n\t getEntityManager().persist(entity);\n\t getEntityManager().getTransaction().commit();\n\t getEntityManager().close();\n\t return entity;\n\t }",
"public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT);\n return emprunt;\n }",
"public static SitAndGo createEntity(EntityManager em) {\n SitAndGo sitAndGo = new SitAndGo()\n .format(DEFAULT_FORMAT)\n .buyIn(DEFAULT_BUY_IN)\n .ranking(DEFAULT_RANKING)\n .profit(DEFAULT_PROFIT)\n .bounty(DEFAULT_BOUNTY);\n return sitAndGo;\n }",
"public static Exercise createEntity(EntityManager em) {\n Exercise exercise = new Exercise()\n .minutes(DEFAULT_MINUTES);\n return exercise;\n }",
"@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}",
"public static House createEntity(EntityManager em) {\n House house = new House()\n .houseName(DEFAULT_HOUSE_NAME)\n .houseNo(DEFAULT_HOUSE_NO)\n .address(DEFAULT_ADDRESS)\n .houseToFloorNo(DEFAULT_HOUSE_TO_FLOOR_NO)\n .ownToFloorNo(DEFAULT_OWN_TO_FLOOR_NO)\n .lat(DEFAULT_LAT)\n .lon(DEFAULT_LON)\n .createdate(DEFAULT_CREATEDATE)\n .createBy(DEFAULT_CREATE_BY)\n .updateDate(DEFAULT_UPDATE_DATE)\n .updateBy(DEFAULT_UPDATE_BY)\n .image(DEFAULT_IMAGE)\n .imageContentType(DEFAULT_IMAGE_CONTENT_TYPE);\n // Add required entity\n Country country = CountryResourceIntTest.createEntity(em);\n em.persist(country);\n em.flush();\n house.setCountry(country);\n // Add required entity\n State state = StateResourceIntTest.createEntity(em);\n em.persist(state);\n em.flush();\n house.setState(state);\n // Add required entity\n City city = CityResourceIntTest.createEntity(em);\n em.persist(city);\n em.flush();\n house.setCity(city);\n // Add required entity\n Profile profile = ProfileResourceIntTest.createEntity(em);\n em.persist(profile);\n em.flush();\n house.setProfile(profile);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n house.setUser(user);\n return house;\n }",
"public static CourtType createEntity(EntityManager em) {\n CourtType courtType = new CourtType()\n .type(DEFAULT_TYPE);\n return courtType;\n }",
"@Override\r\n public void createNewEntity(String entityName) {\n\r\n }",
"public static Ailment createEntity(EntityManager em) {\n Ailment ailment = new Ailment()\n .name(DEFAULT_NAME)\n .symptoms(DEFAULT_SYMPTOMS)\n .treatments(DEFAULT_TREATMENTS);\n return ailment;\n }",
"public static Articulo createEntity(EntityManager em) {\n Articulo articulo = new Articulo()\n .titulo(DEFAULT_TITULO)\n .contenido(DEFAULT_CONTENIDO)\n .fechaCreacion(DEFAULT_FECHA_CREACION);\n return articulo;\n }",
"void create(Student entity);",
"public static TipoLocal createEntity(EntityManager em) {\n TipoLocal tipoLocal = new TipoLocal()\n .tipo(DEFAULT_TIPO);\n return tipoLocal;\n }",
"public static Testtable2 createEntity(EntityManager em) {\n Testtable2 testtable2 = new Testtable2();\n testtable2.setColumn2(DEFAULT_COLUMN_2);\n return testtable2;\n }",
"@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}",
"public static OrderItem createEntity(EntityManager em) {\n OrderItem orderItem = new OrderItem().quantity(DEFAULT_QUANTITY).totalPrice(DEFAULT_TOTAL_PRICE).status(DEFAULT_STATUS);\n return orderItem;\n }",
"public static Arrete createEntity(EntityManager em) {\n Arrete arrete = new Arrete()\n .intituleArrete(DEFAULT_INTITULE_ARRETE)\n .numeroArrete(DEFAULT_NUMERO_ARRETE)\n .dateSignature(DEFAULT_DATE_SIGNATURE)\n .nombreAgrement(DEFAULT_NOMBRE_AGREMENT);\n return arrete;\n }",
"public static Tenant createEntity() {\n return new Tenant();\n }",
"public static MyOrders createEntity(EntityManager em) {\n MyOrders myOrders = new MyOrders();\n return myOrders;\n }",
"public static Enseigner createEntity(EntityManager em) {\n Enseigner enseigner = new Enseigner().dateDebut(DEFAULT_DATE_DEBUT).dateFin(DEFAULT_DATE_FIN);\n return enseigner;\n }",
"@Test\n public void eventEntityConstructionTest() {\n\n Event event = new EventEntity();\n\n assertThat(event).isNotNull();\n\n }",
"public static EnteteVente createEntity(EntityManager em) {\n EnteteVente enteteVente = new EnteteVente()\n .enteteVenteType(DEFAULT_ENTETE_VENTE_TYPE)\n .enteteVenteTotalHT(DEFAULT_ENTETE_VENTE_TOTAL_HT)\n .enteteVenteTotalTTC(DEFAULT_ENTETE_VENTE_TOTAL_TTC)\n .enteteVenteDateCreation(DEFAULT_ENTETE_VENTE_DATE_CREATION);\n return enteteVente;\n }",
"public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}",
"public static Note createEntity(EntityManager em) {\n Note note = new Note().content(DEFAULT_CONTENT).title(DEFAULT_TITLE).xpos(DEFAULT_XPOS).ypos(DEFAULT_YPOS);\n return note;\n }",
"public static Organizer createEntity(EntityManager em) {\n Organizer organizer = new Organizer()\n .name(DEFAULT_NAME)\n .description(DEFAULT_DESCRIPTION)\n .facebook(DEFAULT_FACEBOOK)\n .twitter(DEFAULT_TWITTER);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n organizer.setUser(user);\n return organizer;\n }",
"public static FillingGapsTestItem createEntity(EntityManager em) {\n FillingGapsTestItem fillingGapsTestItem = new FillingGapsTestItem()\n .question(DEFAULT_QUESTION);\n return fillingGapsTestItem;\n }",
"public Entity build();",
"@Test\n public void createQuejaEntityTest() {\n PodamFactory factory = new PodamFactoryImpl();\n QuejaEntity newEntity = factory.manufacturePojo(QuejaEntity.class);\n QuejaEntity result = quejaPersistence.create(newEntity);\n\n Assert.assertNotNull(result);\n QuejaEntity entity = em.find(QuejaEntity.class, result.getId());\n Assert.assertNotNull(entity);\n Assert.assertEquals(newEntity.getName(), entity.getName());\n}",
"public abstract boolean create(T entity) throws ServiceException;",
"public static Acheteur createEntity(EntityManager em) {\n Acheteur acheteur = new Acheteur()\n .typeClient(DEFAULT_TYPE_CLIENT)\n .nom(DEFAULT_NOM)\n .prenom(DEFAULT_PRENOM)\n .tel(DEFAULT_TEL)\n .cnib(DEFAULT_CNIB)\n .email(DEFAULT_EMAIL)\n .adresse(DEFAULT_ADRESSE)\n .numroBanquaire(DEFAULT_NUMRO_BANQUAIRE)\n .deleted(DEFAULT_DELETED);\n return acheteur;\n }",
"public static RoomGenericProduct createEntity(EntityManager em) {\n RoomGenericProduct roomGenericProduct = new RoomGenericProduct()\n .quantity(DEFAULT_QUANTITY)\n .quantityUnit(DEFAULT_QUANTITY_UNIT);\n return roomGenericProduct;\n }",
"public static TypeOeuvre createEntity(EntityManager em) {\n TypeOeuvre typeOeuvre = new TypeOeuvre()\n .intitule(DEFAULT_INTITULE);\n return typeOeuvre;\n }",
"public static Reservation createEntity(EntityManager em) {\n Reservation reservation = ReservationTest.buildReservationTest(1L);\n //reservation.setUser(User.builder().email(\"adfad\").name(\"\").build());\n return reservation;\n }",
"@Test\n public void testNewEntity() throws Exception {\n\n }",
"public static Model createEntity(EntityManager em) {\n\t\tModel model = new Model().name(DEFAULT_NAME).type(DEFAULT_TYPE).algorithm(DEFAULT_ALGORITHM)\n\t\t\t\t.status(DEFAULT_STATUS).owner(DEFAULT_OWNER).performanceMetrics(DEFAULT_PERFORMANCE_METRICS)\n\t\t\t\t.modelLocation(DEFAULT_MODEL_LOCATION).featureSignificance(DEFAULT_FEATURE_SIGNIFICANCE)\n\t\t\t\t.builderConfig(DEFAULT_BUILDER_CONFIG).createdDate(DEFAULT_CREATED_DATE)\n\t\t\t\t.deployedDate(DEFAULT_DEPLOYED_DATE).trainingDataset(DEFAULT_TRAINING_DATASET)\n .library(DEFAULT_LIBRARY).project(DEFAULT_PROJECT).version(DEFAULT_VERSION);\n\t\treturn model;\n\t}",
"public static ProcessExecution createEntity(EntityManager em) {\n ProcessExecution processExecution = new ProcessExecution()\n .execution(DEFAULT_EXECUTION);\n return processExecution;\n }",
"public static Paiement createEntity(EntityManager em) {\n Paiement paiement = new Paiement()\n .dateTransation(DEFAULT_DATE_TRANSATION)\n .montantTTC(DEFAULT_MONTANT_TTC);\n return paiement;\n }",
"public static Article createEntity(EntityManager em) {\n Article article = new Article()\n .name(DEFAULT_NAME)\n .content(DEFAULT_CONTENT)\n .creationDate(DEFAULT_CREATION_DATE)\n .modificationDate(DEFAULT_MODIFICATION_DATE);\n return article;\n }",
"T makePersistent(T entity);",
"void buildFromEntity(E entity);",
"public static XepLoai createEntity(EntityManager em) {\n XepLoai xepLoai = new XepLoai()\n .tenXepLoai(DEFAULT_TEN_XEP_LOAI);\n return xepLoai;\n }",
"public static Lot createEntity(EntityManager em) {\n Lot lot = new Lot()\n .createdAt(DEFAULT_CREATED_AT)\n .updatedAt(DEFAULT_UPDATED_AT)\n .qte(DEFAULT_QTE)\n .qtUg(DEFAULT_QT_UG)\n .num(DEFAULT_NUM)\n .dateFabrication(DEFAULT_DATE_FABRICATION)\n .peremption(DEFAULT_PEREMPTION)\n .peremptionstatus(DEFAULT_PEREMPTIONSTATUS);\n return lot;\n }",
"private MetaEntityImpl createMetaEntity(Class<?> entityType) {\n String className = entityType.getSimpleName();\n MetaEntityImpl managedEntity = new MetaEntityImpl();\n managedEntity.setEntityType(entityType);\n managedEntity.setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setKeySpace(environment.getConfiguration().getKeySpace());\n return managedEntity;\n }",
"public static EmployeeCars createEntity(EntityManager em) {\n EmployeeCars employeeCars = new EmployeeCars()\n .previousReading(DEFAULT_PREVIOUS_READING)\n .currentReading(DEFAULT_CURRENT_READING)\n .workingDays(DEFAULT_WORKING_DAYS)\n .updateDate(DEFAULT_UPDATE_DATE);\n // Add required entity\n Employee employee = EmployeeResourceIT.createEntity(em);\n em.persist(employee);\n em.flush();\n employeeCars.setEmployee(employee);\n // Add required entity\n Car car = CarResourceIT.createEntity(em);\n em.persist(car);\n em.flush();\n employeeCars.setCar(car);\n return employeeCars;\n }",
"public TransporteTerrestreEntity createTransporte(TransporteTerrestreEntity transporteEntity) throws BusinessLogicException {\n LOGGER.log(Level.INFO, \"Inicia proceso de creación del transporte\");\n super.createTransporte(transporteEntity);\n\n \n persistence.create(transporteEntity);\n LOGGER.log(Level.INFO, \"Termina proceso de creación del transporte\");\n return transporteEntity;\n }",
"public static TaskComment createEntity(EntityManager em) {\n TaskComment taskComment = new TaskComment()\n .value(DEFAULT_VALUE);\n // Add required entity\n Task newTask = TaskResourceIT.createEntity(em);\n Task task = TestUtil.findAll(em, Task.class).stream()\n .filter(x -> x.getId().equals(newTask.getId()))\n .findAny().orElse(null);\n if (task == null) {\n task = newTask;\n em.persist(task);\n em.flush();\n }\n taskComment.setTask(task);\n return taskComment;\n }",
"public static Personel createEntity(EntityManager em) {\n Personel personel = new Personel()\n .fistname(DEFAULT_FISTNAME)\n .lastname(DEFAULT_LASTNAME)\n .sexe(DEFAULT_SEXE);\n return personel;\n }",
"public static Territorio createEntity(EntityManager em) {\n Territorio territorio = new Territorio().nome(DEFAULT_NOME);\n return territorio;\n }",
"@Override\n @LogMethod\n public T create(T entity) throws InventoryException {\n \tInventoryHelper.checkNull(entity, \"entity\");\n repository.persist(entity);\n return repository.getByKey(entity.getId());\n }",
"public static Poen createEntity(EntityManager em) {\n Poen poen = new Poen()\n .tip(DEFAULT_TIP);\n return poen;\n }",
"public static Expediente createEntity(EntityManager em) {\n Expediente expediente = new Expediente()\n .horarioEntrada(DEFAULT_HORARIO_ENTRADA)\n .horarioSaida(DEFAULT_HORARIO_SAIDA)\n .diaSemana(DEFAULT_DIA_SEMANA);\n return expediente;\n }",
"public static Unidade createEntity(EntityManager em) {\n Unidade unidade = new Unidade()\n .descricao(DEFAULT_DESCRICAO)\n .sigla(DEFAULT_SIGLA)\n .situacao(DEFAULT_SITUACAO)\n .controleDeEstoque(DEFAULT_CONTROLE_DE_ESTOQUE)\n .idAlmoxarifado(DEFAULT_ID_ALMOXARIFADO)\n .andar(DEFAULT_ANDAR)\n .capacidade(DEFAULT_CAPACIDADE)\n .horarioInicio(DEFAULT_HORARIO_INICIO)\n .horarioFim(DEFAULT_HORARIO_FIM)\n .localExame(DEFAULT_LOCAL_EXAME)\n .rotinaDeFuncionamento(DEFAULT_ROTINA_DE_FUNCIONAMENTO)\n .anexoDocumento(DEFAULT_ANEXO_DOCUMENTO)\n .setor(DEFAULT_SETOR)\n .idCentroDeAtividade(DEFAULT_ID_CENTRO_DE_ATIVIDADE)\n .idChefia(DEFAULT_ID_CHEFIA);\n // Add required entity\n TipoUnidade tipoUnidade;\n if (TestUtil.findAll(em, TipoUnidade.class).isEmpty()) {\n tipoUnidade = TipoUnidadeResourceIT.createEntity(em);\n em.persist(tipoUnidade);\n em.flush();\n } else {\n tipoUnidade = TestUtil.findAll(em, TipoUnidade.class).get(0);\n }\n unidade.setTipoUnidade(tipoUnidade);\n return unidade;\n }",
"public void spawnEntity(AEntityB_Existing entity){\r\n\t\tBuilderEntityExisting builder = new BuilderEntityExisting(entity.world.world);\r\n\t\tbuilder.loadedFromSavedNBT = true;\r\n\t\tbuilder.setPositionAndRotation(entity.position.x, entity.position.y, entity.position.z, (float) -entity.angles.y, (float) entity.angles.x);\r\n\t\tbuilder.entity = entity;\r\n\t\tworld.spawnEntity(builder);\r\n }",
"public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n .url_s(DEFAULT_URL_S)\n .url_m(DEFAULT_URL_M)\n .url_l(DEFAULT_URL_L);\n return book;\n }",
"private void createTestData() {\n StoreEntity store = new StoreEntity();\n store.setStoreName(DEFAULT_STORE_NAME);\n store.setPecEmail(DEFAULT_PEC);\n store.setPhone(DEFAULT_PHONE);\n store.setImagePath(DEFAULT_IMAGE_PATH);\n store.setDefaultPassCode(STORE_DEFAULT_PASS_CODE);\n store.setStoreCap(DEFAULT_STORE_CAP);\n store.setCustomersInside(DEFAULT_CUSTOMERS_INSIDE);\n store.setAddress(new AddressEntity());\n\n // Create users for store.\n UserEntity manager = new UserEntity();\n manager.setUsercode(USER_CODE_MANAGER);\n manager.setRole(UserRole.MANAGER);\n\n UserEntity employee = new UserEntity();\n employee.setUsercode(USER_CODE_EMPLOYEE);\n employee.setRole(UserRole.EMPLOYEE);\n\n store.addUser(manager);\n store.addUser(employee);\n\n // Create a new ticket.\n TicketEntity ticket = new TicketEntity();\n ticket.setPassCode(INIT_PASS_CODE);\n ticket.setCustomerId(INIT_CUSTOMER_ID);\n ticket.setDate(new Date(new java.util.Date().getTime()));\n\n ticket.setArrivalTime(new Time(new java.util.Date().getTime()));\n ticket.setPassStatus(PassStatus.VALID);\n ticket.setQueueNumber(INIT_TICKET_QUEUE_NUMBER);\n store.addTicket(ticket);\n\n // Persist data.\n em.getTransaction().begin();\n\n em.persist(store);\n em.flush();\n\n // Saving ID generated from SQL after the persist.\n LAST_TICKET_ID = ticket.getTicketId();\n LAST_STORE_ID = store.getStoreId();\n LAST_MANAGER_ID = manager.getUserId();\n LAST_EMPLOYEE_ID = employee.getUserId();\n\n em.getTransaction().commit();\n }",
"@Test\n public void testNewEntity_0args() {\n // newEntity() is not implemented!\n }",
"public Camp newEntity() { return new Camp(); }",
"public static NoteMaster createEntity(EntityManager em) {\n NoteMaster noteMaster = new NoteMaster()\n .semestre(DEFAULT_SEMESTRE)\n .noteCC1(DEFAULT_NOTE_CC_1)\n .noteCC2(DEFAULT_NOTE_CC_2)\n .noteFinal(DEFAULT_NOTE_FINAL)\n .date(DEFAULT_DATE);\n return noteMaster;\n }",
"T create() throws PersistException;",
"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 static Restaurant createEntity(EntityManager em) {\n Restaurant restaurant = new Restaurant()\n .restaurantName(DEFAULT_RESTAURANT_NAME)\n .deliveryPrice(DEFAULT_DELIVERY_PRICE)\n .restaurantAddress(DEFAULT_RESTAURANT_ADDRESS)\n .restaurantCity(DEFAULT_RESTAURANT_CITY);\n return restaurant;\n }",
"@Override\n\tpublic EmploieType creer(EmploieType entity) throws InvalideTogetException {\n\t\treturn emploieTypeRepository.save(entity);\n\t}",
"public static Team createEntity(EntityManager em) {\n Team team = new Team().name(DEFAULT_NAME).description(DEFAULT_DESCRIPTION)\n .level(DEFAULT_LEVEL).totalMember(DEFAULT_TOTAL_MEMBER)\n .extraGroupName(DEFAULT_EXTRA_GROUP_NAME)\n .extraGroupDescription(DEFAULT_EXTRA_GROUP_DESCRIPTION)\n .extraGroupTotalMember(DEFAULT_EXTRA_GROUP_TOTAL_MEMBER);\n return team;\n }",
"public static Produit createEntity(EntityManager em) {\n Produit produit = new Produit()\n .designation(DEFAULT_DESIGNATION)\n .soldeInit(DEFAULT_SOLDE_INIT)\n .prixAchat(DEFAULT_PRIX_ACHAT)\n .prixVente(DEFAULT_PRIX_VENTE)\n .quantiteDispo(DEFAULT_QUANTITE_DISPO)\n .quantiteInit(DEFAULT_QUANTITE_INIT)\n .seuilReaprov(DEFAULT_SEUIL_REAPROV)\n .reference(DEFAULT_REFERENCE);\n return produit;\n }",
"public void constructEntity (EntityBuilder entityBuilder, Position position){\n entityBuilder.createEntity();\n entityBuilder.buildPosition(position);\n entityBuilder.buildName();\n entityBuilder.buildPosition();\n entityBuilder.buildContComp();\n entityBuilder.buildPhysComp(length, width);\n entityBuilder.buildGraphComp(length, width);\n }"
] | [
"0.7723017",
"0.7504376",
"0.7488697",
"0.7361405",
"0.7313408",
"0.71555346",
"0.71555346",
"0.7151172",
"0.715035",
"0.7077452",
"0.70158756",
"0.6803454",
"0.6753353",
"0.67401814",
"0.67401814",
"0.67112446",
"0.6680694",
"0.66662353",
"0.66401017",
"0.6625097",
"0.66247976",
"0.66055924",
"0.65884167",
"0.657558",
"0.65732366",
"0.65658724",
"0.6551181",
"0.6530601",
"0.65301615",
"0.6481037",
"0.6420206",
"0.6386739",
"0.63757294",
"0.6368916",
"0.63134193",
"0.6297383",
"0.62926656",
"0.6258474",
"0.62462336",
"0.624304",
"0.62401915",
"0.6218015",
"0.62077475",
"0.61822873",
"0.6181838",
"0.6175192",
"0.61686647",
"0.6163257",
"0.6161713",
"0.61591715",
"0.61553955",
"0.6151139",
"0.61422545",
"0.61367786",
"0.6135719",
"0.6129926",
"0.61248326",
"0.6120649",
"0.61068034",
"0.61060303",
"0.6102812",
"0.6093314",
"0.6091378",
"0.6080447",
"0.6074031",
"0.6069477",
"0.6066824",
"0.6065875",
"0.60639113",
"0.6058457",
"0.605241",
"0.60410136",
"0.6038198",
"0.60323226",
"0.6027899",
"0.6023329",
"0.6020907",
"0.6019732",
"0.6014147",
"0.6014095",
"0.6012481",
"0.600239",
"0.60014176",
"0.60003924",
"0.59953475",
"0.59950787",
"0.5981965",
"0.59795976",
"0.597422",
"0.5972211",
"0.5967056",
"0.59630877",
"0.59627897",
"0.59521335",
"0.594571",
"0.5943855",
"0.5941897",
"0.5937623",
"0.59304065",
"0.59304047"
] | 0.60024035 | 81 |
Provides services for the workflow consumer. | public interface WorkConsumerService{
/**
* Consumes a single work unit.
* <p>
* Blocks for 15 s or until a work unit becomes consumable, if there is currently none.
*
*/
void consumeWorkUnit();
/**
* Returns the total number of consumed work units by the engine instance at hand since
* the engine's last deployment.
*/
long getConsumedWorkUnits();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected AbstractApplicationContext getServicesContext() {\r\n\t\treturn this.servicesContext;\r\n\t}",
"public interface ServiceFactory\n{\n /**\n * Retrieves a service instance. Is provided for extensibility beyond the core service\n * set.\n *\n * @param type The class name of the service to be retrieved.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n <T extends Service> T getService(Class<T> type)\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a WorkflowService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n WorkflowService getWorkflowService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a UserService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n UserService getUserService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns an AdministrationService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n AdministrationService getAdministrationService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a QueryService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n QueryService getQueryService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a document management service.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n DocumentManagementService getDocumentManagementService()\n throws ServiceNotAvailableException, LoginFailedException;;\n\n /**\n * Provides explicit service resource management. May be used to release resources\n * associated with a service (like connection handles or locked instances) early.\n * <p />\n * Explicitly releasing a service may be help conserving resources but is not necessary\n * as the <code>ServiceFactory</code> provides automatic resource cleanup.\n *\n * @param service The service to be released.\n *\n * @see #close()\n */\n void release(Service service);\n\n /**\n * Releases all resources hold by the service factory and its single services. All\n * services retrieved from this ServiceFactory will be closed too.\n */\n void close();\n\n void setCredentials(Map credentials);\n\n void setProperties(Map properties);\n\n /**\n * Gets the user session id\n * @return the user session id - may be null\n */\n String getSessionId();\n}",
"protected ServiceBundler getServices() {\n return services;\n }",
"public Collection<Service> createServices();",
"public interface LearningSpaceServices {\n\n\n}",
"public interface MarketoService\n{\n List<MarketoField> describeLead();\n\n File extractLead(Date startTime, Date endTime, List<String> extractedFields, String filterField, int pollingTimeIntervalSecond, int bulkJobTimeoutSecond);\n\n File extractAllActivity(List<Integer> activityTypeIds, Date startTime, Date endTime, int pollingTimeIntervalSecond, int bulkJobTimeoutSecond, String landingZone);\n\n Iterable<ObjectNode> getAllListLead(List<String> extractFields);\n\n Iterable<ObjectNode> getAllProgramLead(List<String> extractFields);\n\n Iterable<ObjectNode> getCampaign();\n\n Iterable<ObjectNode> getPrograms();\n\n Iterable<ObjectNode> getProgramsByTag(String tagType, String tagValue);\n\n Iterable<ObjectNode> getProgramsByDateRange(Date earliestUpdatedAt, Date latestUpdatedAt, String filterType, List<String> filterValues);\n\n Iterable<ObjectNode> getCustomObject(String customObjectAPIName, String customObjectFilterType, String customObjectFields, Integer fromValue, Integer toValue);\n\n List<MarketoField> describeCustomObject(String customObjectAPIName);\n\n Iterable<ObjectNode> getActivityTypes();\n}",
"public interface ServiceProvider {\n\n /**\n * This method allows to define a priority for a registered ServiceProvider instance. When multiple providers are\n * registered in the system the provider with the highest priority value is taken.\n *\n * @return the provider's priority (default is 0).\n */\n int getPriority();\n\n /**\n * Access a list of services, given its type. The bootstrap mechanism should\n * order the instance for precedence, hereby the most significant should be\n * first in order. If no such services are found, an empty list should be\n * returned.\n *\n * @param serviceType the service type.\n * @return The instance to be used, never {@code null}\n */\n <T> List<T> getServices(Class<T> serviceType);\n\n /**\n * Access a single service, given its type. The bootstrap mechanism should\n * order the instance for precedence, hereby the most significant should be\n * first in order and returned. If no such services are found, null is\n * returned.\n *\n * @param serviceType the service type.\n * @return The instance, (with highest precedence) or {@code null}, if no such service is available.\n */\n default <T> T getService(Class<T> serviceType) {\n return getServices(serviceType).stream().findFirst().orElse(null);\n }\n}",
"public interface WorkflowOrchestrator {\n\n <T> Workflow<T> start(WorkflowMeta workflowMeta, Entity<T> entity);\n List<Task> onComplete(Task task, ExecutionContext context);\n List<Task> onFailure(Task task);\n}",
"public interface ServiceContext {\r\n /**\r\n * @return configuration for the service.\r\n */\r\n ServiceConfigurable service();\r\n}",
"public interface ProviderService\n{\n /**\n * Get all service provider.\n *\n * @return All service provider artifacts currently available or an empty\n * set if no service providers are available.\n */\n Set<ServiceProducer> getAllServiceProviders();\n\n /**\n * Get a service provider.\n *\n * @param id The id of the service provider to get.\n * @return The service artifact that represents the service provider or\n * <code>null</code> if no Service Producer was found with that id.\n */\n ServiceProducer getServiceProvider(int id);\n}",
"public interface ServiceManagerInterface {\n\n /**\n * add a Service\n * @param servicePackage the service package to register\n * @param configuration The configuration of the client\n * @param profile the client profile\n * @return The added service description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription addService(\n AGServicePackageDescription servicePackage,\n AGParameter[] configuration,\n ClientProfile profile)\n throws IOException, SoapException;\n\n /**\n * gets the service manager description\n * @return service manager description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceManagerDescription getDescription()\n throws IOException, SoapException;\n\n /**\n * gets the url of the node service\n * @return url of node service\n * @throws IOException\n * @throws SoapException\n */\n String getNodeServiceUrl()\n throws IOException, SoapException;\n\n /**\n * gets the available services\n * @return a vector of available services\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription[] getServices()\n throws IOException, SoapException;\n\n /**\n * test whether the service manager is valid\n * @return the 'valid' state\n * @throws IOException\n * @throws SoapException\n */\n int isValid() throws IOException, SoapException;\n\n /**\n * removes a service from the service manager\n * @param serviceDescription the description of the service to be removed\n * @throws IOException\n * @throws SoapException\n */\n void removeService(AGServiceDescription serviceDescription)\n throws IOException, SoapException;\n\n /**\n * removes all services from the service manager\n * @throws IOException\n * @throws SoapException\n */\n void removeServices() throws IOException, SoapException;\n\n /**\n * sets the url for node service\n * @param nodeServiceUri\n * @throws IOException\n * @throws SoapException\n */\n void setNodeServiceUrl(String nodeServiceUri)\n throws IOException, SoapException;\n\n /**\n * shuts down the service manager\n * @throws IOException\n * @throws SoapException\n */\n void shutdown() throws IOException, SoapException;\n\n /**\n * stops all services on service manager\n * @throws IOException\n * @throws SoapException\n */\n void stopServices() throws IOException, SoapException;\n\n /**\n * gets the version number of the service manager\n * @return string with version of service manager\n * @throws IOException\n * @throws SoapException\n */\n String getVersion() throws IOException, SoapException;\n\n\n /**\n * Requests to join a bridge\n * @param bridgeDescription The description of the bridge\n * @throws IOException\n * @throws SoapException\n */\n void joinBridge(BridgeDescription bridgeDescription)\n throws IOException, SoapException;\n\n /**\n * Sets the streams of this service manager\n *\n * @param streamDescriptionList a vector of stream descriptions\n * @throws IOException\n * @throws SoapException\n */\n void setStreams(StreamDescription[] streamDescriptionList)\n throws IOException, SoapException;\n /**\n * adds a stream\n * @param argname stream description of new stream\n * @throws IOException\n * @throws SoapException\n */\n void addStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Removes a stream\n * @param argname The stream to remove\n * @throws IOException\n * @throws SoapException\n */\n void removeStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Sets the point of reference for network traffic\n * @param url The url of the point of reference server\n * @throws IOException\n * @throws SoapException\n */\n void setPointOfReference(String url)\n throws IOException, SoapException;\n\n /**\n * Sets the encryption\n * @param encryption The encryption\n * @throws IOException\n * @throws SoapException\n */\n void setEncryption(String encryption)\n throws IOException, SoapException;\n /**\n * Instructs the client to run automatic bridging\n * @throws IOException\n * @throws SoapException\n */\n void runAutomaticBridging()\n throws IOException, SoapException;\n\n /**\n * Determines if a service is enabled\n * @param service The service to get the status of\n * @return True if enabled, false otherwise\n * @throws IOException\n * @throws SoapException\n */\n boolean isServiceEnabled(AGServiceDescription service)\n throws IOException, SoapException;\n\n /**\n * Enables or disables a service\n * @param service The service to control\n * @param enabled True to enable, false to disable\n * @throws IOException\n * @throws SoapException\n */\n void enableService(AGServiceDescription service, boolean enabled)\n throws IOException, SoapException;\n\n /**\n * Gets the configuration parameters of a service\n * @param service The service to get the configuration of\n * @return The parameters\n * @throws IOException\n * @throws SoapException\n */\n AGParameter[] getServiceConfiguration(AGServiceDescription service)\n throws IOException, SoapException;\n /**\n * Sets the configuration parameters for a service\n * @param service The service to configure\n * @param config The new parameters\n * @throws IOException\n * @throws SoapException\n */\n void setServiceConfiguration(AGServiceDescription service,\n AGParameter[] config)\n throws IOException, SoapException;\n\n /**\n * Sets the client profile\n * @param profile The new profile\n * @throws IOException\n * @throws SoapException\n */\n void setClientProfile(ClientProfile profile)\n throws IOException, SoapException;\n}",
"public interface Service {\n // Service-specific methods go here\n }",
"public static void setupServicesAndParameters(){\n\t\t//replace services in use, e.g.:\n\t\t/*\n\t\tMap<String, ArrayList<String>> systemInterviewServicesMap = new HashMap<>();\n\t\t\n\t\t//CONTROL DEVICES\n\t\tArrayList<String> controlDevice = new ArrayList<String>();\n\t\t\tcontrolDevice.add(MyDeviceControlService.class.getCanonicalName());\n\t\tsystemInterviewServicesMap.put(CMD.CONTROL, controlDevice);\n\t\t\n\t\t//BANKING\n\t\tArrayList<String> banking = new ArrayList<String>();\n\t\t\tbanking.add(MyBankingService.class.getCanonicalName());\n\t\tsystemInterviewServicesMap.put(CMD.BANKING, banking);\n\t\t\t\n\t\tInterviewServicesMap.loadCustom(systemInterviewServicesMap);\n\t\t*/\n\t\t\n\t\t//defaults\n\t\tStart.setupServicesAndParameters();\n\t\t\n\t\t//add\n\t\t//e.g.: ParameterConfig.setHandler(PARAMETERS.ALARM_NAME, Config.parentPackage + \".parameters.AlarmName\");\n\t}",
"public interface AppEnvironment\n{\n /**\n * Registers the given OrderConsumer, such that it will be notified of order based events.\n * \n * @param orderConsumer\n */\n void registerOrderConsumer(OrderConsumer orderConsumer);\n\n /**\n * Performs a run of order processing\n */\n void run();\n\n}",
"private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}",
"public interface MedicalForegroundService {\n\n void loadMedicalData(Consumer<HandleResult> callback);\n\n void saveMedicalData(Medical medical, Consumer<HandleResult> callback);\n\n void setTemp(String key, String tempValue);\n\n String getTemp(String key);\n\n void clearTemp(boolean clearContact);\n\n Doctor getDoctorById(String doctorId);\n\n String getNextExpertDoctorId();\n\n boolean isExpertDoctor(Doctor doctor);\n\n Medical getMedicalData();\n\n void login114();\n\n void listMedicalResource(String hospitalId, String departmentId, String date, boolean amPm, Consumer<HandleResult> callback);\n\n void start(TargetDate targetDate, Consumer<HandleResult> stepCallback);\n\n void submitVerifyCode(String verifyCode);\n}",
"public static Kernel start(int port)\n {\n Kernel app = Kernel.newInstance();\n Container container = app.getContainer();\n\n // Forms\n container.add(new ServiceDefinition<>(AnnualReviewType.class));\n container.add(new ServiceDefinition<>(UserType.class));\n\n // Managers\n container.add(new ServiceDefinition<>(AccessDecisionManager.class, YuconzAccessDecisionManager.class));\n container.add(new ServiceDefinition<>(YuconzAuthenticationManager.class));\n container.add(new ServiceDefinition<>(Hibernate.class));\n container.add(new ServiceDefinition<>(LogManager.class))\n .addMethodCallDefinitions(new MethodCallDefinition(\n \"setAuthenticationManager\",\n new ServiceReference<>(YuconzAuthenticationManager.class)\n ));\n container.add(new ServiceDefinition<>(RecordManager.class));\n container.add(new ServiceDefinition<>(AnnualReviewManager.class));\n container.add(new ServiceDefinition<>(FormManager.class));\n\n container.add(new ServiceDefinition<>(AuthorisationManager.class))\n .addMethodCallDefinitions(new MethodCallDefinition(\n \"setAuthenticationManager\",\n new ServiceReference<>(YuconzAuthenticationManager.class)\n ));\n\n // Resolvers\n container.add(new ServiceDefinition<>(UserResolver.class));\n container.add(new ServiceDefinition<>(RecordResolver.class));\n\n // JTwig Functions\n container.add(new ServiceDefinition<>(CurrentUserFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(CurrentRoleFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(FormRenderFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(FormStartRenderFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(FormEndRenderFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(ActivePageFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(IsGrantedFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(RangeFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(ServiceFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(LocalDateFunction.class)).addTag(\"jtwig.function\");\n\n // Voters\n container.add(new ServiceDefinition<>(PersonalDetailsVoter.class)).addTag(\"authentication.voter\");\n container.add(new ServiceDefinition<>(RecordVoter.class)).addTag(\"authentication.voter\");\n container.add(new ServiceDefinition<>(AnnualReviewVoter.class)).addTag(\"authentication.voter\");\n container.add(new ServiceDefinition<>(AuthorisationVoter.class)).addTag(\"authentication.voter\");\n\n container.getServiceDefinition(FrameworkServer.class).setConfigurationReference(new PlainReference<>(new Configuration()\n {\n @Override\n public int getPort()\n {\n return port;\n }\n }));\n\n app.boot();\n\n Router router = container.get(Router.class);\n\n // Records\n router.registerController(AppController.class);\n router.registerController(StaticController.class);\n router.registerController(AuthenticationController.class);\n router.registerController(DashboardController.class);\n router.registerController(EmployeesController.class);\n router.registerController(RecordController.class);\n router.registerController(AnnualReviewController.class);\n\n FormManager formManager = container.get(FormManager.class);\n\n formManager.getRenderers().removeIf(r -> r.getClass().equals(ChoiceRenderer.class));\n formManager.addRenderer(CustomChoiceRenderer.class);\n formManager.addRenderer(DateRenderer.class);\n\n app.start();\n\n return app;\n }",
"public interface ConsumerService extends AbstractService<Consumer> {\n String sayHello(String name);\n}",
"List<Service> services();",
"public interface ReviewServiceFactory extends ServiceFactory {\n}",
"public interface MVCService {\n // Return if the service has been loaded.\n public boolean isServiceReady();\n\n // Begin loading the service from persistent storage.\n public void beginLoadingService(MVCCallback<MVCService> onServiceLoadedCallback);\n\n // Begin saving the service to persistent storage.\n public void saveService();\n}",
"public interface WorkflowService {\n void parseWf(File ff) throws Exception;\n}",
"public interface AiravataClientAPIService {\n /**\n * Get all workflows available in the apache airavata server\n * @return workflow list\n * @throws PortalException\n */\n public List<Workflow> getAllWorkflows() throws PortalException;\n\n /**\n * Get workflow by workflow id\n * @param identifier unique id for the workflow\n * @return workflow associate with the given workflow id\n * @throws PortalException\n */\n public Workflow getWorkflow(String identifier) throws PortalException;\n\n /**\n * Execute a available workflow in airavata\n * @param inputs inputs of airavata workflow\n * @param workflowId if of the workflow need to be implemented\n * @return\n * @throws Exception\n */\n public Map<String,Object> executeWorkflow(Map<String,Object> inputs,String workflowId) throws Exception;\n\n /**\n * Query previous data associated with experiments performed in airavata\n * @return experiments data list\n * @throws PortalException\n * @throws AiravataAPIInvocationException\n */\n public List<ExperimentData> getExperimentData() throws PortalException, AiravataAPIInvocationException;\n\n /**\n * Get the data of nodes in a experiment performed in the airavata\n * @param experimentData\n * @return node execution data list will be returned\n * @throws ExperimentLazyLoadedException\n * @throws PortalException\n * @throws AiravataAPIInvocationException\n */\n public List<NodeExecutionData> getNodeData(ExperimentData experimentData) throws ExperimentLazyLoadedException, PortalException, AiravataAPIInvocationException;\n\n /**\n * Get workflow experiment data\n * @return\n * @throws PortalException\n * @throws AiravataAPIInvocationException\n * @throws ExperimentLazyLoadedException\n */\n public List<NodeExecutionData> getWorkflowExperimentData(String experimentId) throws PortalException, AiravataAPIInvocationException, ExperimentLazyLoadedException;\n\n public String executeExperiment(Object[] inputs, String workflowId) throws Exception;\n\n public List<MonitorMessage> getEvents();\n\n public void monitorWorkflow(String experimentId) throws PortalException, IOException, AiravataAPIInvocationException, URISyntaxException;\n}",
"public interface CustomService {\n\n boolean processTokenScript(Management management, OauthClient oauthClient, OauthUser oauthUser,\n String scope, String tokenType, String claimJson, String type);\n\n Map processTokenTest(Management management, String userId, String clientId, String scopes,\n String tokenType, String claimJson, String script);\n\n List<String> getUseCaseList(Management management);\n\n boolean inCase(Management management, String useCase);\n}",
"interface Services {\n\tpublic int addEmployee(Connection conn, String empDesignation);\n\n\tpublic void promote(Connection conn);\n\n\tpublic void deleteEmployee(Connection conn, int empId);\n\n\tpublic void changeSupervisor(Connection conn);\n\n\t// public void showEmployeesUnderMe(Map<Integer, Employee> employees, int\n\t// empId);\n}",
"ServicesPackage getServicesPackage();",
"public interface SchedulerService {\n\n /**\n * Schedule cron jobs.\n */\n void scheduleCronJobs() throws WorkflowException;\n\n}",
"public interface ProcessService {\n void save(Process process);\n\n Process update(Process process);\n\n List<Process> getAll();\n\n JSONObject getProcessCount();\n}",
"public interface ChefService {\n\n ListenableFuture<ResponseChefsEvent> requestChefs(final RequestChefsEvent event);\n\n ListenableFuture<ResponseChefEvent> createChef(final CreateChefEvent event);\n\n ListenableFuture<ResponseChefEvent> registerChef(final RegisterChefEvent event);\n\n ListenableFuture<ResponseChefEvent> requestChef(final RequestChefEvent event);\n\n ListenableFuture<ResponseChefEvent> updateChef(final UpdateChefEvent event);\n\n ListenableFuture<ResponseChefEvent> deleteChef(final DeleteChefEvent event);\n}",
"public interface ServiceFactory {\n \n /**\n * Returns a collection of services to be registered.\n * \n * @return an immutable collection of services; never null\n */\n public Collection<Service> createServices();\n \n}",
"public interface WorkflowExecutionListener {}",
"protected Set<IService> getContributedServices() {\n \t\tServiceModelManager smm = ServiceModelManager.getInstance();\n \t\tSet<IService> cppServices = smm.getServices(CCProjectNature.CC_NATURE_ID);\n \t\tSet<IService> cServices = smm.getServices(CProjectNature.C_NATURE_ID);\n \n \t\tSet<IService> allApplicableServices = new LinkedHashSet<IService>();\n \t\tallApplicableServices.addAll(cppServices);\n \t\tallApplicableServices.addAll(cServices);\n \n \t\treturn allApplicableServices;\n \t}",
"public interface CommunityService {\n\n UserParticipationService getUserParticipationService();\n\n UserParticipationConfirmationService getUserParticipationConfirmationService();\n\n OrganizationParticipationService getOrganizationParticipationService();\n\n FeedbackService getFeedbackService();\n\n ModelService getModelService();\n\n void setModelService( ModelService modelService );\n\n Analyst getAnalyst();\n\n AbstractModelObjectDao getDao();\n\n void setPlanCommunity( PlanCommunity planCommunity );\n\n <T extends ModelObject> T find( Class<T> clazz, long id, Date dateOfRecord ) throws NotFoundException;\n\n boolean exists( Class<? extends ModelObject> clazz, Long id, Date dateOfRecord );\n\n boolean canHaveParentAgency( final String name, String parentName );\n\n List<Agency> findAncestors( String agencyName );\n\n boolean isCustodianOf( ChannelsUser user, Organization placeholder );\n\n CommunityCommitments getAllCommitments( Boolean includeToSelf );\n\n CommunityCommitments findAllCommitments( Flow flow, Boolean includeToSelf );\n\n CommunityAssignments getAllAssignments();\n\n CommunityCommitments findAllBypassCommitments( final Flow flow );\n\n void clearCache();\n\n void onDestroy();\n\n PlanCommunity getPlanCommunity();\n\n CollaborationModel getPlan();\n\n ParticipationManager getParticipationManager();\n\n UserRecordService getUserRecordService();\n\n RegisteredOrganizationService getRegisteredOrganizationService();\n\n CollaborationPlanAnalyst getCollaborationPlanAnalyst();\n\n UserUploadService getUserUploadService();\n\n Boolean isCommunityPlanner( ChannelsUser user );\n\n List<ChannelsUser> getCommunityPlanners( );\n\n List<String> getCommunityPlannerUsernames();\n\n\n /**\n * Find all user issues about a model object\n *\n * @param identifiable an object with an id\n * @return list of issues\n */\n List<UserIssue> findAllUserIssues( Identifiable identifiable );\n\n <T extends Identifiable> List<T> listKnownIdentifiables( Class<T> clazz );\n\n <T extends ModelObject> List<T> list( Class<T> clazz );\n\n <T extends ModelEntity> List<T> listActualEntities( Class<T> clazz, boolean mustBeReferenced );\n\n <T extends ModelEntity> T findOrCreate( Class<T> clazz, String name );\n\n <T extends ModelObject> T find( Class<T> clazz, long id ) throws NotFoundException;\n\n <T extends ModelEntity> T findOrCreate( Class<T> clazz, String name, long id );\n\n <T extends ModelEntity> T findOrCreateType( Class<T> clazz, String name, long id );\n\n\n void update( ModelObject mo );\n\n /**\n * Find an actual entity by given name. If none, create it for given domain,\n * renaming it to avoid conflicts if needed.\n *\n * @param clazz the kind of model object\n * @param name the name\n * @param <T> a subclass of model object\n * @return the object or null if name is null or empty\n */\n <T extends ModelEntity> T safeFindOrCreate( Class<T> clazz, String name );\n\n /**\n * Find an actual entity by given name. If none, create it for given domain,\n * renaming it to avoid conflicts if needed.\n * If id is not null, assign the entity the given id if created.\n *\n * @param clazz the kind of model object\n * @param name the name\n * @param id an id\n * @param <T> a subclass of model object\n * @return the object or null if name is null or empty\n */\n <T extends ModelEntity> T safeFindOrCreate( Class<T> clazz, String name, Long id );\n\n /**\n * List all user issues about a given model object.\n * @param modelObject a model object\n * @return a list of issues.\n */\n List<Issue> listUserIssues( ModelObject modelObject );\n\n /**\n * Persist a model object at a given id.\n * @param modelObject a model object\n * @param id an id\n */\n void add( ModelObject modelObject, Long id );\n\n /**\n * Find an entity type by name, if it exists.\n *\n * @param entityClass a model entity class\n * @param name a string\n * @param <T> a subclass of model entity\n * @return a model entity or null\n */\n <T extends ModelEntity> T findEntityType( Class<T> entityClass, String name );\n\n /**\n * Find an actual entity by name, if it exists.\n *\n * @param entityClass a model entity class\n * @param name a string\n * @param <T> a subclass of model entity\n * @return a model entity or null\n */\n <T extends ModelEntity> T findActualEntity( Class<T> entityClass, String name );\n\n /**\n * Whether the community service is for a domain community.\n * @return a boolean\n */\n boolean isForDomain();\n\n /**\n * Remove a persistent model object.\n *\n * @param object the object\n */\n void remove( ModelObject object );\n\n /**\n * Find all placeholder places not bound by the plan community.\n * @return a list of places\n */\n List<Place> findUnboundLocationPlaceholders();\n /**\n * Find all placeholder assets not bound by the plan community.\n * @return a list of assets\n */\n List<MaterialAsset> findUnboundAssetPlaceholders();\n /**\n * resolve a place to itself or its bound location if bound.\n * @param place a place\n * @return the resolved place\n */\n Place resolveLocation( Place place );\n\n /**\n * resolve an asset to itself or its bound asset if bound.\n * @param asset a material asset\n * @return the resolved asset\n */\n MaterialAsset resolveAsset( MaterialAsset asset );\n /**\n * Get the appropriate doctor.\n * @return a doctor\n */\n Doctor getDoctor();\n\n /**\n * Remove obsolete data.\n */\n void cleanUp();\n\n /**\n * Find all media for which contact info is required from the user to fulfill participation requirements.\n * @param user a Channels user\n * @return a list of transmission media\n */\n List<TransmissionMedium> findMissingContactInfoMedia( ChannelsUser user );\n\n /**\n * Make plan community url.\n * @return a string\n */\n String makePlanCommunityUrl();\n\n /**\n * Make plan community participation url.\n * @return a string\n */\n String makePlanCommunityParticipationUrl();\n\n /**\n * Follow the forwarding tree and collect al nodes.\n * @param communityAssignment the assignment to start from\n * @param asset the asset the request for which may be forwarded\n * @param assetIncoming whether the asset is being received (incoming) or delivered\n * @param allCommitments all commitments\n * @return a list oc community assignments\n */\n List<CommunityAssignment> resolveForwarding( CommunityAssignment communityAssignment,\n MaterialAsset asset,\n boolean assetIncoming,\n CommunityCommitments allCommitments );\n\n }",
"public interface JbpmService {\n\n /**\n * Delegate a task owned by sourceUserId to targetUserId\n * \n * @param taskId\n * @param sourceUserId\n * @param targetUserId\n */\n void delegateTask(Long taskId, String sourceUserId, String targetUserId);\n\n List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId, String locale);\n\n /**\n * Gets all tasks assigned to a particular userid filtered by processId(which is same as Task.PROCESSID column or bpmn file process identifier)\n * \n * @param userId\n * @param processId\n * @return\n */\n List<TaskSummary> getTasksAssignedAsPotentialOwnerByProcessId(String userId, String processId);\n\n /**\n * @param userId\n * @param processId\n * @param deploymentId\n * @return\n */\n List<TaskSummary> getTasksAssignedAsPotentialOwnerByProcessId(String userId, String processId, String deploymentId) throws RuntimeException;\n\n /**\n * Claim a taskList by user\n * \n * @param userId\n * @param taskList\n * @return\n */\n void claimTask(String userId, List<TaskSummary> taskList);\n\n /**\n * This Claims a task with taskId by userId\n * \n * @param userId\n * @param taskId\n */\n void claimTask(String userId, Long taskId);\n\n /**\n * This moves to state of task to Complete state.(Reserved->InProgress->Completed)\n * \n * @param userId\n * @param taskId\n * @param results\n */\n void completeTask(String userId, Long taskId, Map<String, Object> results);\n\n /**\n * This api releases the claim by userId on taskid\n * \n * @param userId\n * @param taskId\n */\n void releaseTask(String userId, Long taskId);\n\n /**\n * This api releases the claim by userId on taskList\n * \n * @param userId\n * @param taskList\n * @param results\n */\n void releaseTask(String userId, List<TaskSummary> taskList, Map<String, Object> results);\n\n /**\n * This moves to state of taskList to Complete state.(Reserved->InProgress->Completed)\n * \n * @param userId\n * @param taskList\n * @param results\n * @throws Exception\n */\n void completeTask(String userId, List<TaskSummary> taskList, Map<String, Object> results);\n\n /**\n * Gets all tasks assigned to a particular userid\n * \n * @param processInstanceId\n * @param locale\n * , eg: en-UK or en-US based on task configured in workflow\n * @return\n */\n List<TaskSummary> getTasksByProcessInstanceId(Long processInstanceId, String locale);\n\n /**\n * Start a new process instance. The process (definition) that should be used is referenced by the given process id. Parameters can be passed to the process instance (as name-value pairs), and\n * these will be set as variables of the process instance.\n * \n * @param processId\n * the id of the process that should be started\n * @param parameters\n * the process variables that should be set when starting the process instance\n * @return the ProcessInstance that represents the instance of the process that was started\n * @throws Exception\n */\n ProcessInstance startProcess(String processId, Map<String, Object> params);\n\n /**\n * Nominate a task with taskId to userlist , this is operator only when task is in created state\n * \n * @param userId\n * @param userList\n * @param taskId\n */\n void nominateTask(String userId, List<String> userList, Long taskId);\n\n \n\n /**\n * Gets all tasks assigned to a particular processInstanceId ,statusList and formNameList\n * \n * @param processInstanceId\n * @param locale\n * , eg: en-UK or en-US based on task configured in workflow\n * @return\n */\n List<TaskImpl> getTasksByProcessInstanceIdStatusFormName(Long processInstanceId, List<Status> statusList, List<String> formName);\n\n /**\n * Check if workflow is active or completed.\n * \n * @param processInstanceId\n * @return\n */\n boolean isWorkflowActive(Long processInstanceId);\n\n /**\n * @param processInstanceId\n * @param formName\n * @param action\n * @param approver\n * @param state\n * @throws Exception\n */\n Long completeTask(Long processInstanceId, String formName, String action, String approver, String state);\n\n /**\n * Abort a running process instance.\n * \n * @param processInstanceId\n * the id of the process that already in run.\n * @throws Exception\n */\n void abortProcess(Long processInstanceId);\n\n List<TaskImpl> getTaskPendingByActor(Map<String, Object> params);\n\n Task getTaskById(Long taskId);\n\n /***\n * Gets all tasks assigned to a userId deploymentId\n * \n * @param userId\n * @param deploymentId\n * @return\n * @throws Exception\n */\n List<TaskSummary> getTasksAssignedAsPotentialOwnerByDeploymentId(String userId, String deploymentId);\n\n TaskService getTaskService();\n\n AuditService getAuditService();\n\n RuntimeEngine getEngine();\n\n KieSession getKsession();\n\n AuditLogService getLogService();\n\n RuntimeManager getManager();\n\n}",
"public void initProviders(@Observes AfterDeploymentValidation afterValid, final BeanManager manager,\n final CronQueueInstaller cronQueueInstaller, final CronSchedulingInstaller cronSchedInstaller) {\n log.debug(\"Initializing service providers\");\n // process queue observers if queue provider exists\n final CronQueueProvider queueProvider = CdiUtils.getInstanceByType(manager, CronQueueProvider.class);\n if (queueProvider != null) {\n this.queueProvider = queueProvider;\n handleLifecycleInit(queueProvider);\n cronQueueInstaller.initProviderQueue(manager, queueProvider, allObservers);\n }\n // process scheduling observers if scheduling provider exists\n final CronSchedulingProvider schedProvider = CdiUtils.getInstanceByType(manager, CronSchedulingProvider.class);\n if (schedProvider != null) {\n this.schedulingProvider = schedProvider;\n handleLifecycleInit(schedProvider);\n cronSchedInstaller.initProviderScheduling(manager, schedProvider, allObservers);\n }\n // process aynchronous observers if aynchronous provider exists\n final CronAsynchronousProvider asyncProvider = CdiUtils.getInstanceByType(manager, CronAsynchronousProvider.class);\n if (asyncProvider != null) {\n this.asynchronousProvider = asyncProvider;\n handleLifecycleInit(asyncProvider);\n }\n\n// TODO: (PR): If there's an asynch provider present, check if the interceptor is enabled. See https://jira.jboss.org/jira/browse/WELDX-91\n// final CronAsynchronousProvider asyncProvider = CdiUtils.getInstanceByType(manager, CronAsynchronousProvider.class);\n// if (asyncProvider != null) {\n// assert interceptors.isInterceptorEnabled(AsynchronousInterceptor.class);\n// } \n\n }",
"public interface StatusListService {\n\n /*\n * Returns the statuses associated with a given user\n *\n * @param statusListRequest contains the data required to fulfill the request.\n * @return the status list\n */\n StatusListResponse getStatuses(StatusListRequest statusListRequest) throws IOException, TweeterRemoteException;\n}",
"@Singleton\n@Component(modules = {ContextModule.class, BusModule.class, GithubModule.class, GankModule.class, ZhiHuModule.class, RssModule.class})\npublic interface AppComponent {\n Context getContext();\n GankService getGankService();\n ZhiHuService getZhiHuService();\n RssService getRssService();\n EventBus getBus();\n}",
"private void loadAms2Services() {\n\n // 1st create the spring-bean-loader instance \n // you might consider it as kind of \"bean factory\"\n SpringContextLoader spring = new SpringContextLoader();\n \n // initialize the bean loader\n // with the (spring-beans)config file it should use \n // to lookup the bean definitions\n spring.init(\"spring-ams2-core.xml\");\n \n logger.debug(\"Constants.BEAN_PRINCIPAL_SRV: \" + Constants.BEAN_PRINCIPAL_SRV);\n logger.debug(\"Constants.BEAN_AUTHORIZATION_SRV: \" + Constants.BEAN_AUTHORIZATION_SRV);\n logger.debug(\"Constants.BEAN_FABRIC_SRV: \" + Constants.BEAN_FABRIC_SRV);\n \n \n // load a bean by its id/name:\n // use the service interface as reference!\n pcplSrv = (PrincipalService) spring.getBean(Constants.BEAN_PRINCIPAL_SRV);\n\n // just another ams2 service as example: the \"advanced authorization service\" (managing user-node-rules information)\n authzSrv = (AdvAuthorizationService) spring.getBean(Constants.BEAN_AUTHORIZATION_SRV);\n\n // just another ams2 service as example: the \"rule service\" (providing rules/roles information)\n //RuleService ruleSrv = (RuleService) spring.getBean(Constants.BEAN_RULE_SRV);\n\n // load the needed service: FabricService (designed to wrap further functionality arround corpusstructure api)\n fabricSrv = (FabricService) spring.getBean(Constants.BEAN_FABRIC_SRV);\n\n SpringContextLoader springAuth = new SpringContextLoader();\n springAuth.init(\"spring-ams2-auth.xml\");\n authSrv = (AuthenticationService) springAuth.getBean(Constants.BEAN_INTEGRATED_AUTHENTICATION_SRV);\n \n }",
"public interface IngestHandlerService extends Remote {\r\n\r\n String ingest(String xmlData, String resourceType, SecurityContext securityContext) throws EscidocException,\r\n RemoteException;\r\n\r\n String ingest(String xmlData, String resourceType, String authHandle, Boolean restAccess) throws EscidocException,\r\n RemoteException;\r\n\r\n}",
"ProgramActuatorService createProgramActuatorService();",
"public interface ActionCardService {\n}",
"public interface StreamManagersService {\r\n \r\n /**\r\n * @return all the stream managers\r\n */\r\n public List<StreamManager> getAllStreamManagers();\r\n \r\n /**\r\n * @param name - the name of the stream managers to look for\r\n * @return the stream manager found or null if it was not found\r\n */\r\n public StreamManager getStreamManagerByName(String name);\r\n \r\n /**\r\n * Adds a stream manager by using the given stream spec\r\n * \r\n * @param streamSpec the stream specs with which the stream manager is created\r\n */\r\n public void addStreamManager(StreamSpec streamSpec);\r\n \r\n /**\r\n * Removes the stream manager with the given name\r\n * \r\n * @param name - the name of the stream manager to remove\r\n */\r\n public void removeStreamManager(String name);\r\n\r\n /**\r\n * Performs a flush of the current stream managers\r\n */\r\n public void flushStreamSpecs();\r\n \r\n}",
"public interface ResumeService {\n}",
"public interface Provider {\n Service newService();\n }",
"public interface IMarketingService {\n\t\n\tList<ProviderMarketingBean> getProviderMarketingList(ProviderMarketingFiltersBean filtersBean) throws APIExceptions;\n\n\tint[] sendSelectedMarketingMessage(ProviderMarketingSelectionBean selectionBean, Users authuser) throws APIExceptions;\n\n\tList<RequestMarketingBean> getRequestMarketingList(RequestMarketingFiltersBean filtersBean, Users authuser) throws APIExceptions;\n\t\n\tRequestMarketingMessageDetailBean getRequestMarketingMessageDetails(RequestMarketingDetailFiltersBean filtersBean, boolean showPending, Users authuser) throws APIExceptions;\n\n}",
"Fog_Services createFog_Services();",
"public interface WorkflowProvider {\n\n /** Get the priority that should be specified within a subtask\n * of the specified operation type.\n * The default implementation returns null.\n * @param operationType The operation type of the subtask.\n * @return The priority that should be used, or null, if the\n * provider does not need/want to specify one.\n */\n default Integer defaultPriority(@SuppressWarnings(\"unused\")\n final SubtaskOperationType operationType) {\n return null;\n }\n\n /** Perform a subtask.\n * @param taskInfo The top-level TaskInfo for the subtask.\n * @param subtask The subtask to be performed.\n */\n void doSubtask(TaskInfo taskInfo, Subtask subtask);\n\n}",
"public interface SmartCultureFarmService extends Service<SmartCultureFarm> {\n\n}",
"public interface ConferenceScheduleBuilderService {\n /**\n * Is finish boolean.\n *\n * @return the boolean\n */\n boolean isFinish();\n\n /**\n * Init conference schedule builder service.\n *\n * @param presentationList the presentation list\n * @return the conference schedule builder service\n */\n ConferenceScheduleBuilderService init(List<Presentation> presentationList);\n\n /**\n * Start event conference schedule builder service.\n *\n * @return the conference schedule builder service\n */\n ConferenceScheduleBuilderService startEvent();\n\n /**\n * End event conference schedule builder service.\n *\n * @return the conference schedule builder service\n */\n ConferenceScheduleBuilderService endEvent();\n\n /**\n * Start networking conference schedule builder service.\n *\n * @return the conference schedule builder service\n */\n ConferenceScheduleBuilderService startNetworking();\n\n /**\n * Start lunch conference schedule builder service.\n *\n * @return the conference schedule builder service\n */\n ConferenceScheduleBuilderService startLunch();\n\n /**\n * End lunch conference schedule builder service.\n *\n * @return the conference schedule builder service\n */\n ConferenceScheduleBuilderService endLunch();\n\n /**\n * Create events from start to lunch conference schedule builder service.\n *\n * @return the conference schedule builder service\n */\n ConferenceScheduleBuilderService createEventsFromStartToLunch();\n\n /**\n * Create events from lunch to network conference schedule builder service.\n *\n * @return the conference schedule builder service\n */\n ConferenceScheduleBuilderService createEventsFromLunchToNetwork();\n\n /**\n * Create events from network to end conference schedule builder service.\n *\n * @return the conference schedule builder service\n */\n ConferenceScheduleBuilderService createEventsFromNetworkToEnd();\n\n /**\n * Build conference schedule.\n *\n * @return the conference schedule\n */\n ConferenceSchedule build();\n}",
"protected void setWorkflowService(WorkflowService service) {\n this.workflowService = service;\n }",
"public CMSFormClientServices() {\n // Set up the configuration manager.\n config = new ConfigMgr(\"form.cfg\");\n }",
"public interface SchedulerProvider {\n Scheduler background();\n Scheduler ui();\n}",
"public interface ActivityService {\n\n /**\n * @Description: 获得所有的活动信息\n * @Param: []\n * @return: java.util.List<com.edu.ccnu.app.demo.pojo.Activity>\n * @Author: Anakin\n * @Date: 2020/9/23\n */\n public List<Activity> getAllActivity();\n\n /**\n * @Description: 分页获得活动的信息\n * @Param: []\n * @return: com.github.pagehelper.PageInfo<com.edu.ccnu.app.demo.pojo.Activity>\n * @Author: Anakin\n * @Date: 2020/9/23\n */\n public PageInfo<Activity> getActivityByPage(Integer pageNum, Integer pageSize);\n\n /**\n * @Description: 根据id获得活动的信息\n * @Param: [activityId]\n * @return: com.edu.ccnu.app.demo.pojo.Activity\n * @Author: Anakin\n * @Date: 2020/9/23\n */\n public Activity getActivityById(String activityId);\n\n /**\n * @Description: 插入一条活动的信息\n * @Param: [activity]\n * @return: java.lang.Integer\n * @Author: Anakin\n * @Date: 2020/9/23\n */\n public Activity insertActivity(Activity activity);\n\n /**\n * @Description: 更新一条活动的信息\n * @Param: [activity]\n * @return: java.lang.Integer\n * @Author: Anakin\n * @Date: 2020/9/23\n */\n public Integer updateActivity(Activity activity);\n\n /**\n * @Description: 根据id删除一条活动信息\n * @Param: [activityId]\n * @return: java.lang.Integer\n * @Author: Anakin\n * @Date: 2020/9/23\n */\n public Integer deleteActivityById(String activityId);\n\n /**\n * @Description: 根据一组id对活动进行批量删除\n * @Param: [ids]\n * @return: java.lang.Integer\n * @Author: Anakin\n * @Date: 2020/9/23\n */\n public Integer deleteActivityByIds(String ids);\n\n /**\n * 执行定时任务,做到更新活动状态信息\n */\n void updateActivityState();\n\n\n}",
"public interface SearchClientService {\r\n\t/**\r\n\t * Get Search engine client\r\n\t * \r\n\t * @return\r\n\t */\r\n\tClient getClient();\r\n\r\n\tvoid setup();\r\n\r\n\tvoid shutdown();\r\n}",
"public interface IFeedComponentService {\n C28197y getFeedAdapterService();\n\n C28680d getFeedExperimentService();\n\n C28649y getFeedFragmentPanelService();\n\n C28681e getFeedWidgetService();\n\n C28394j getGuideService();\n\n C28134ag getVideoViewHolderService();\n}",
"public interface CoreServiceInvoker {\n\n\n GWRequest processRequest(Object requestData, InterfaceMapper mapper);\n\n /**\n * 处理请求信息\n */\n GWRequest processRequest(Object requestData, InterfaceMapper mapper, boolean needPackage);\n\n /**\n * 调用核心方法\n */\n GWResponse invoke(GWRequest request, boolean needPackage);\n\n /**\n * 处理返回信息\n */\n Object analysisResponse(GWRequest request, GWResponse response);\n Object analysisResp(GWRequest request, GWResponse response);\n}",
"public interface CommunityPostItemService extends Service<CommunityPostItem> {\n\n}",
"public interface ProducerService {\n}",
"public void service() {\n\t}",
"public interface CommunicationService {\n public String postDeployment(UnitDeliveryResource unitDeliveryResource);\n\n public String postService(UnitServiceResource unitServiceResource);\n\n public boolean checkLocality(UnitDeliveryResource unitDeliveryResource);\n\n public List<SiteReource> getSites();\n}",
"public interface FactoryOrderDetailService {\n\n List<SchedulingDomain> schedulingInfo(Integer factId,Integer soId);\n List<ProductionDetailDomain> productionDetailInfo(Integer factId,Integer soId);\n List<ProductionReportDomain> productionReportInfo(Integer factId,Integer soId);\n List<CompletionDomain> completionInfo(Integer factId,Integer soId);\n List<ProductionRecordDomain> productionRecordInfo();\n\n List<FactoryCapacityDomain> capaTypes();\n}",
"protected void initializeServices() throws Exception {\n String fileName = this.getClass().getSimpleName() + \"Output.csv\";\r\n outputFile = new File(fileName); // located in current run dir \r\n getOutputFile().delete(); // delete any previous version\r\n \r\n // Configure system properties for Velo to work properly (can also be provided as runtime args)\r\n System.setProperty(\"logfile.path\", \"./velo.log\");\r\n if(repositoryPropertiesFile == null) {\r\n System.setProperty(\"repository.properties.path\", \"./repository.properties\");\r\n } else {\r\n System.setProperty(\"repository.properties.path\", repositoryPropertiesFile.getAbsolutePath()); \r\n }\r\n \r\n // Initialize the spring container\r\n if(cmsServicesFile == null && tifServicesFile == null) {\r\n SpringContainerInitializer.loadBeanContainerFromClasspath(null);\r\n \r\n } else {\r\n List<String> beanFilePaths = new ArrayList<String>();\r\n if(cmsServicesFile != null) {\r\n beanFilePaths.add(\"file:\" + cmsServicesFile.getAbsolutePath());\r\n }\r\n if(tifServicesFile != null) {\r\n beanFilePaths.add(\"file:\" + tifServicesFile.getAbsolutePath());\r\n }\r\n SpringContainerInitializer.loadBeanContainerFromFilesystem(beanFilePaths.toArray(new String[beanFilePaths.size()]));\r\n }\r\n \r\n // set the service classes\r\n securityManager = CmsServiceLocator.getSecurityManager();\r\n resourceManager = CmsServiceLocator.getResourceManager();\r\n searchManager = CmsServiceLocator.getSearchManager();\r\n notificationManager = CmsServiceLocator.getNotificationManager();\r\n \r\n if(tifServicesFile != null) {\r\n jobLaunchService = TifServiceLocator.getJobLaunchingService();\r\n codeRegistry = TifServiceLocator.getCodeRegistry();\r\n machineRegistry = TifServiceLocator.getMachineRegistry();\r\n scriptRegistry = TifServiceLocator.getScriptRegistry();\r\n jobConfigService = TifServiceLocator.getJobConfigService();\r\n veloWorkspace = TifServiceLocator.getVeloWorkspace();\r\n }\r\n \r\n \r\n securityManager.login(username, password);\r\n\r\n }",
"@Inject\n public EventService(BackgroundTaskRunnerService taskRunner) {\n this.taskRunner = taskRunner;\n final ConcurrentMap<EventType, List<EventListener<? extends Event>>> tmp = new ConcurrentHashMap<>();\n for (EventType eventType : EventType.values()) {\n tmp.put(eventType, new CopyOnWriteArrayList<>());\n }\n this.eventListeners = tmp;\n }",
"public interface MessageServiceInjector {\n public Consumer getConsumer() ;\n}",
"public interface PaTaskItemPointViewService extends Service<PaTaskItemPointView> {\n\n}",
"private static interface Service {}",
"public interface BusDistributorService extends Services<BusDistributor,Long> {\r\n}",
"public interface TaskService {\r\n\r\n\r\n TaskResponse createTask(TaskRequest taskRequest);\r\n\r\n /**\r\n * @param username\r\n * @return\r\n */\r\n\r\n List<TaskResponse> getTaskNames(String username);\r\n\r\n\r\n /**\r\n * Updates the existing task\r\n *\r\n * @param taskRequest\r\n * @param taskId\r\n * @return the updated task\r\n */\r\n TaskResponse updateTask(TaskRequest taskRequest, Long taskId);\r\n\r\n /**\r\n * Deletes the task\r\n *\r\n * @param taskId\r\n * @throws Exception\r\n */\r\n void deleteTask(Long taskId) throws Exception;\r\n\r\n\r\n}",
"public interface WebServiceListener {\n\n /**\n * Callback method indicating start event of the service. Call it from your service class in order to give begin callback to the presenter layer.\n * @param taskCode : Web service task code against which service has began. This is used for web service type identification.\n */\n void onServiceBegin(int taskCode);\n\n /**\n * Callback method on service success. Call it from your service class in order to give success callback to the presenter layer.\n * @param masterResponse : Response model from the server API\n * @param taskCode : Web service task code against which response is taken. This is used for web service type identification.\n */\n\n void onServiceSuccess(MasterResponse masterResponse, int taskCode);\n\n /**\n * Callback method on service error. Call it from your service class in order to give error callback to the presenter layer.\n * @param message : Error message.\n * @param taskCode : Web service task code against which error is taken. This is used for web service type identification.\n * @param errorType : Error type.\n */\n void onServiceError(String message, int taskCode, int errorType);\n void onValidationError(ValidationError[] validationError, int taskCode);\n\n}",
"public interface FactFeedService {\n\n /**\n * Fetches the fact feeds from appropriate location.\n */\n void fetchFactFeeds();\n}",
"IServiceContext createService(Class<?>... serviceModules);",
"public interface StageService {\n //得到所有的状态\n public ArrayList<StageBean> getAllStages();\n}",
"@Test\n\tpublic void bodyUseService() {\n\t\tLOG.info(\"[#759] bodyUseService part 1\");\n\n\t\tFuture<List<Service>> asyncServices = null;\n\t\tList<Service> services = new ArrayList<Service>();\n\n\t\ttry {\n\t\t\t// Start the service\n\t\t\tLOG.info(\"[#759] Calculator service starting\");\n\t\t\tFuture<ServiceControlResult> asyncStartResult = TestCase759.serviceControl.startService(calculatorServiceId);\n\t\t\tServiceControlResult startResult = asyncStartResult.get();\n\t\t\t// Service can't be started\n\t\t\tif (!startResult.getMessage().equals(ResultMessage.SUCCESS)) {\n\t\t\t\tthrow new Exception(\"Can't start the service. Returned value: \"+startResult.getMessage());\n\t\t\t}\n\t\t\tLOG.info(\"[#759] Calculator service started\");\n\n\t\t\t// -- Test case is now ready to consume the service\n\t\t\t// The injection of ICalc will launch the UpperTester\n\t\t}\n\t\tcatch (ServiceDiscoveryException e) {\n\t\t\tLOG.info(\"[#759] ServiceDiscoveryException\", e);\n\t\t\tfail(\"[#759] ServiceDiscoveryException: \"+e.getMessage());\n\t\t\treturn;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLOG.info(\"[#759] Preamble installService: Unknown Exception\", e);\n\t\t\tfail(\"[#759] Preamble installService: Unknown Exception: \"+e.getMessage());\n\t\t\treturn;\n\t\t}\n\t}",
"public interface ServicesManager {\n\tCompletable sendGCMToken();\n\n\tCompletable clearGCMToken();\n}",
"public interface ShipmentTaskBoundaryService {\n /**\n * Retrieves all tasks.\n *\n * @return a collection of all tasks\n */\n List<ShipmentTaskDS> findAllActive();\n /**\n * Retrieves all enabled plan items for a particular trackingId.\n *\n * @return a collection of all enabled plan items\n */\n List<ShipmentPlanItemDS> findAllEnabled(String trackingId);\n /**\n * Retrieves all completed tasks for a particular trackingId.\n * @return a collection of all completed tasks\n */\n List<ShipmentHistoricTaskInstanceDS> findAllCompleted(String trackingId);\n}",
"public PersistenceServiceXStream() {\n storageServiceClassName = ConfigurationProperties.getConfiguredStorageService();\n }",
"public abstract IOpipeService service();",
"public interface ContinuingEducationService extends EducatonCommonService<ContinuingEducationModel>\r\n{\r\n\tpublic ContinuingEducationModel getByPK(ContinuingEducationPKModel pk) throws AAException;\r\n\t\t\r\n\t/**\r\n\t * Check all the continuing educations in specific cap, if all conditions are matched then return true.\r\n\t *\r\n\t * @param capID\r\n\t * @return true - passed , false - not passed\r\n\t * @throws AAException \r\n\t * @throws RemoteException \r\n\t */\r\n\tpublic boolean isContinuingEducationPassed(CapIDModel capID) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Get the total required hours by cap type\r\n\t *\r\n\t * @param capType\t\t\tthe specific cap type model\r\n\t * @return\r\n\t * @throws RemoteException\r\n\t * @throws AAException\r\n\t */\r\n\tpublic double getTotalRequiredHours(CapTypeModel capType) throws RemoteException, AAException;\r\n\r\n\t/**\r\n\t * Get all continuing education info according to the specific cap ID and merge condition.\r\n\t *\r\n\t * @param source\r\n\t * @param isMergeRef true - merge reference data to daily side. false - only return daily side data. \r\n\t * @return \r\n\t * @throws AAException \r\n\t * @throws RemoteException \r\n\t */\r\n\tList<ContinuingEducationModel> getModelsByCapID(CapIDModel capId, boolean isMergeRef) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Check if task status is allowed to change. If the task status is configuired to be checked \r\n\t * before changing, then check if task's app have passed the continuing education. \r\n\t *\r\n\t * @param taskItem\r\n\t * @return\r\n\t * @throws AAException \r\n\t * @throws RemoteException \r\n\t */\r\n\tboolean isWorkflowStatusCanBeChanged(TaskItemModel taskItem) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Auto approve required cehs.\r\n\t * \r\n\t * @param capId the cap id\r\n\t * @param callerID TODO\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t * @throws RemoteException the remote exception\r\n\t */\r\n\tpublic void autoApproveRequiredCEHs(CapIDModel capId, String callerID) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Auto approve cont edus.\r\n\t * \r\n\t * @param contEduList the cont edu list\r\n\t * @param capID the cap id\r\n\t * @param callerID the caller id\r\n\t * \r\n\t * @return the int\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t * @throws RemoteException the remote exception\r\n\t */\r\n\tpublic int autoApproveContEdus(List<ContinuingEducationModel> contEduList, CapIDModel capID, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\t\r\n}",
"public interface SalesRepresentativeService {\n void addEmployee(Context context, SalesRepresentative employee);\n void updateEmployee(Context context, SalesRepresentative employee);\n}",
"public interface Service {\n\n}",
"public interface Service {\n\n}",
"public interface DateOfBirthServices {\n\t\n\tvoid addDateOfBirth(Context context, DateOfBirthResource dateOfBirthResource);\n\n void resetDateOfBirth(Context context);\n}",
"public interface CreateStudentOrderFor15Service {\n public void create();\n}",
"ImmutableList<T> getServices();",
"public interface ControllcurveService extends Service<Controllcurve> {\n\n}",
"public interface CalendarService {\n\n CalendarVo getCalendarById(String id);\n\n CalendarListVo getCalendarList();\n\n CalendarListVo getCalendarListByPage(int page, int size);\n\n boolean addCalendar(Date days, String title, String description, String remark, UserInfo userInfo);\n\n boolean modifyCalendar(String id, Date days, String title, String description, String remark, UserInfo userInfo);\n\n boolean delCalendarById(String id, UserInfo userInfo);\n}",
"public interface WorkflowListener extends Configurable {\n\n /**\n * Represents change actions on components.\n */\n public enum Action {\n\n /** The add. */\n ADD,\n /** The remove. */\n REMOVE,\n /** The update. */\n UPDATE\n }\n\n /**\n * Notification of transaction starting.\n *\n * @throws Exception the exception\n */\n public void beginTransaction() throws Exception;\n\n /**\n * Notification pre-commit.\n *\n * @throws Exception the exception\n */\n public void preCommit() throws Exception;\n\n /**\n * Notification post-commit.\n *\n * @throws Exception the exception\n */\n public void postCommit() throws Exception;\n\n /**\n * Notification of a cancelled operation.\n */\n public void cancel();\n\n /**\n * Refset changed.\n *\n * @param refset the refset\n * @param action the action\n * @throws Exception the exception\n */\n public void refsetChanged(Refset refset, Action action) throws Exception;\n\n /**\n * Translation changed.\n *\n * @param translation the translation\n * @param action the action\n * @throws Exception the exception\n */\n public void translationChanged(Translation translation, Action action)\n throws Exception;\n\n /**\n * Refset descriptor ref set member changed.\n *\n * @param member the member\n * @param action the action\n * @throws Exception the exception\n */\n public void refsetDescriptorRefsetMemberChanged(\n RefsetDescriptorRefsetMember member, Action action) throws Exception;\n\n /**\n * Description type ref set member changed.\n *\n * @param member the member\n * @param action the action\n * @throws Exception the exception\n */\n public void descriptionTypeRefsetMemberChanged(\n DescriptionType member, Action action) throws Exception;\n\n /**\n * Concept changed.\n *\n * @param concept the concept\n * @param action the action\n * @throws Exception the exception\n */\n public void conceptChanged(Concept concept, Action action) throws Exception;\n\n /**\n * Member changed.\n *\n * @param member the member\n * @param action the action\n * @throws Exception the exception\n */\n public void memberChanged(ConceptRefsetMember member, Action action)\n throws Exception;\n}",
"@ProviderType\npublic interface ComponentContext {\n\t/**\n\t * Returns the component properties for this Component Context.\n\t * \n\t * @return The properties for this Component Context. The Dictionary is read\n\t * only and cannot be modified.\n\t */\n\tpublic Dictionary<String, Object> getProperties();\n\n\t/**\n\t * Returns the service object for the specified reference name.\n\t * <p>\n\t * If the cardinality of the reference is {@code 0..n} or {@code 1..n} and\n\t * multiple services are bound to the reference, the service whose\n\t * {@code ServiceReference} is first in the ranking order is returned. See\n\t * {@code ServiceReference.compareTo(Object)}.\n\t * \n\t * @param name The name of a reference as specified in a {@code reference}\n\t * element in this component's description.\n\t * @return A service object for the referenced service or {@code null} if\n\t * the reference cardinality is {@code 0..1} or {@code 0..n} and no\n\t * bound service is available.\n\t * @throws ComponentException If Service Component Runtime catches an\n\t * exception while activating the bound service.\n\t */\n\tpublic <S> S locateService(String name);\n\n\t/**\n\t * Returns the service object for the specified reference name and\n\t * {@code ServiceReference}.\n\t * \n\t * @param <S> Type of Service.\n\t * @param name The name of a reference as specified in a {@code reference}\n\t * element in this component's description.\n\t * @param reference The {@code ServiceReference} to a bound service. This\n\t * must be a {@code ServiceReference} provided to the component via\n\t * the bind or unbind method for the specified reference name.\n\t * @return A service object for the referenced service or {@code null} if\n\t * the specified {@code ServiceReference} is not a bound service for\n\t * the specified reference name.\n\t * @throws ComponentException If Service Component Runtime catches an\n\t * exception while activating the bound service.\n\t */\n\tpublic <S> S locateService(String name, ServiceReference<S> reference);\n\n\t/**\n\t * Returns the service objects for the specified reference name.\n\t * \n\t * @param name The name of a reference as specified in a {@code reference}\n\t * element in this component's description.\n\t * @return An array of service objects for the referenced service or\n\t * {@code null} if the reference cardinality is {@code 0..1} or\n\t * {@code 0..n} and no bound service is available. If the reference\n\t * cardinality is {@code 0..1} or {@code 1..1} and a bound service\n\t * is available, the array will have exactly one element. There is\n\t * no guarantee that the service objects in the array will be in any\n\t * specific order.\n\t * @throws ComponentException If Service Component Runtime catches an\n\t * exception while activating a bound service.\n\t */\n\tpublic Object[] locateServices(String name);\n\n\t/**\n\t * Returns the {@code BundleContext} of the bundle which declares this\n\t * component.\n\t * \n\t * @return The {@code BundleContext} of the bundle declares this component.\n\t */\n\tpublic BundleContext getBundleContext();\n\n\t/**\n\t * If the component instance is registered as a service using the\n\t * {@code servicescope=\"bundle\"} or {@code servicescope=\"prototype\"}\n\t * attribute, then this method returns the bundle using the service provided\n\t * by the component instance.\n\t * <p>\n\t * This method will return {@code null} if:\n\t * <ul>\n\t * <li>The component instance is not a service, then no bundle can be using\n\t * it as a service.</li>\n\t * <li>The component instance is a service but did not specify the\n\t * {@code servicescope=\"bundle\"} or {@code servicescope=\"prototype\"}\n\t * attribute, then all bundles using the service provided by the component\n\t * instance will share the same component instance.</li>\n\t * <li>The service provided by the component instance is not currently being\n\t * used by any bundle.</li>\n\t * </ul>\n\t * \n\t * @return The bundle using the component instance as a service or\n\t * {@code null}.\n\t */\n\tpublic Bundle getUsingBundle();\n\n\t/**\n\t * Returns the Component Instance object for the component instance\n\t * associated with this Component Context.\n\t * \n\t * @return The Component Instance object for the component instance.\n\t */\n\tpublic <S> ComponentInstance<S> getComponentInstance();\n\n\t/**\n\t * Enables the specified component name. The specified component name must\n\t * be in the same bundle as this component.\n\t * \n\t * <p>\n\t * This method must return after changing the enabled state of the specified\n\t * component name. Any actions that result from this, such as activating or\n\t * deactivating a component configuration, must occur asynchronously to this\n\t * method call.\n\t * \n\t * @param name The name of a component or {@code null} to indicate all\n\t * components in the bundle.\n\t */\n\tpublic void enableComponent(String name);\n\n\t/**\n\t * Disables the specified component name. The specified component name must\n\t * be in the same bundle as this component.\n\t * \n\t * <p>\n\t * This method must return after changing the enabled state of the specified\n\t * component name. Any actions that result from this, such as activating or\n\t * deactivating a component configuration, must occur asynchronously to this\n\t * method call.\n\t * \n\t * @param name The name of a component.\n\t */\n\tpublic void disableComponent(String name);\n\n\t/**\n\t * If the component instance is registered as a service using the\n\t * {@code service} element, then this method returns the service reference\n\t * of the service provided by this component instance.\n\t * <p>\n\t * This method will return {@code null} if the component instance is not\n\t * registered as a service.\n\t * \n\t * @return The {@code ServiceReference} object for the component instance or\n\t * {@code null} if the component instance is not registered as a\n\t * service.\n\t */\n\tpublic ServiceReference<?> getServiceReference();\n}",
"public interface SearchService extends Service {\n Observable<SearchPlacesResponse> doSearchPlacesService(String authorizationKey, int page, int size, SearchPlacesRequest searchPlacesRequest);\n Observable<SearchPlacesResponse> doSearchBreweriesService(String authorizationKey, int page, int size, SearchPlacesRequest searchPlacesRequest);\n Observable<SearchProductResponse> doSearchProductsService(String authorizationKey, int page, int size, SearchProductsRequest searchProductsRequest);\n Observable<List<String>> getSuggestPlacesService(String authorizationKey, String text, int count);\n Observable<List<String>> getSuggestBreweriesService(String authorizationKey, String text, int count);\n Observable<List<String>> getSuggestProductsService(String authorizationKey, String text, int count);\n}",
"public interface SysTaskService extends BaseService<Sys_task> {\n\n}",
"public List/*WsCompileEditorSupport.ServiceSettings*/ getServices();",
"public interface FirewallAsService extends RestService {\n\n /**\n * <p>OpenStack Firewall As a Service <code>(FwaaS) : Firewall</code> Operations API</p>\n *\n * <p>Represents a logical firewall resource that a tenant can instantiate and manage. A firewall is associated with one firewall policy.</p>\n *\n * @return the Firewall Service API\n */\n FirewallService firewall();\n\n /**\n * <p>OpenStack Firewall As a Service <code>(FwaaS) : Firewall Rule</code> Operations API</p>\n *\n * <p>Represents a collection of attributes like ports, ip addresses which define match\n * criteria and action (allow, or deny) that needs to be taken on the matched data traffic</p>\n *\n * @return the Firewall Rule Service API\n */\n FirewallRuleService firewallrule();\n\n /**\n * <p>OpenStack Firewall As a Service <code>(FwaaS) : Firewall Policy</code> Operations API</p>\n *\n * <p>Represents an ordered collection of firewall rules. A firewall policy can be shared across tenants.\n * Thus it can also be made part of an audit workflow wherein the firewall_policy can be audited by the\n * relevant entity that is authorized (and can be different from the tenants which create or use the firewall policy).\n *\n * @return the Firewall Policy Service API\n */\n FirewallPolicyService firewallpolicy();\n}",
"@Singleton\n@Component(\n modules = {\n AppModule.class,\n ObjectBoxModule.class\n })\npublic interface AppComponent {\n void inject(ToDoListActivity activity);\n void inject(TaskEditorActivity activity);\n //void inject(ICommonRepository repository);\n //ICommonRepository repo();\n}",
"public interface InviteService extends Service, ActorService {\r\n\r\n @AsyncInvocation\r\n void save();\r\n @AsyncInvocation\r\n void insert(DbRow dbRow);\r\n @AsyncInvocation\r\n void update(DbRow dbRow);\r\n @AsyncInvocation\r\n void bindInviteCode(RoleInvitePo roleInvitePoFrom, RoleBeInvitePo roleBeInvitePo);\r\n\r\n}",
"public interface UserProcessService {\n\n /**\n * Get user chinese name.\n *\n * @param userName user english name (user id)\n * @return user chinese name\n */\n String getUserCnName(String userName);\n\n /**\n * Query all users.\n *\n * @return all users\n */\n List<User> queryAllUsers();\n\n /**\n * Create a user.\n *\n * @param user\n * @return\n */\n Integer createUser(User user);\n}",
"public interface CommunityService extends WorkspaceService\r\n{\r\n\r\n static final String COMMUNITY_SERVICE_KEY = \"COMMUNITY_SERVICE_KEY\";\r\n\r\n /**\r\n * Creations of a Community object reference.\r\n * @param name the initial name to asign to the community\r\n * @param user_short_pid storage object short pid representing the owner\r\n * @return Community object reference\r\n * @exception CommunityException\r\n */\r\n Community createCommunity( String name, byte[] user_short_pid ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Creations of a Community storage instance.\r\n * @param name the initial name to asign to the community\r\n * @param user_short_pid storage object short pid representing the owner\r\n * @return CommunityStorage community storage\r\n * @exception CommunityException\r\n */\r\n CommunityStorage createCommunityStorage( String name, byte[] user_short_pid ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Creation of a Community object reference based on a supplied storage object.\r\n * @param store a community storage object\r\n * @return Community a Community object reference\r\n * @exception CommunityException\r\n */\r\n Community getCommunityReference( CommunityStorage store ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Returns a reference to a Community given a persistent storage object identifier.\r\n * @param pid community short persistent identifier\r\n * @return Desktop the corresponding PID\r\n * @exception NotFound if the supplied pid does not matach a know desktop\r\n */\r\n Community getCommunityReference( byte[] pid )\r\n throws NotFound;\r\n\r\n}",
"@Override\r public SpiServiceResult handle(SpiServiceProvider provider, SpiServiceRequest request) {",
"public static ServiceProvider createServiceProvider() {\n \t//return new ActiveMQProvider();\n \treturn new RSPServiceProvider();\n }",
"public interface ButtonArticleService extends Service<ButtonArticle> {\n\n}",
"public interface ProgramsService {\n\n /**\n * Retrieves all the programs from EPG.\n * @param date the date to consider\n * @param application the application that request the data\n * @param channels list of channel to consider\n * @return List of programs\n */\n List<Program> findAllPrograms(String date, String application, List<String> channels);\n}"
] | [
"0.58604497",
"0.5857519",
"0.5756275",
"0.57128423",
"0.57102686",
"0.5648647",
"0.56420666",
"0.5598042",
"0.5575188",
"0.5547081",
"0.5521561",
"0.5517567",
"0.55122185",
"0.5496544",
"0.5493415",
"0.54813987",
"0.54790676",
"0.5478973",
"0.5473496",
"0.5450531",
"0.54267204",
"0.5421452",
"0.54185325",
"0.5414959",
"0.5413838",
"0.53946966",
"0.5391925",
"0.53844565",
"0.5383305",
"0.53651094",
"0.53311366",
"0.5320808",
"0.53205067",
"0.5297686",
"0.5287163",
"0.52761716",
"0.5269952",
"0.5259766",
"0.525807",
"0.5253805",
"0.5247284",
"0.5246789",
"0.52349764",
"0.5224271",
"0.5222715",
"0.5212034",
"0.5211374",
"0.5204985",
"0.5202825",
"0.5199137",
"0.51958853",
"0.5193471",
"0.5190897",
"0.5177782",
"0.517492",
"0.517317",
"0.51715595",
"0.51703906",
"0.5163764",
"0.51607484",
"0.5155375",
"0.51552844",
"0.5150458",
"0.51491964",
"0.5144024",
"0.5141582",
"0.5139117",
"0.5138152",
"0.51351696",
"0.5121927",
"0.5119606",
"0.5111279",
"0.5107787",
"0.5106825",
"0.51064205",
"0.51061183",
"0.5105645",
"0.5105579",
"0.5093157",
"0.5092619",
"0.5092619",
"0.5090407",
"0.508505",
"0.5078465",
"0.50782263",
"0.5077982",
"0.5072461",
"0.50702137",
"0.50691706",
"0.50663584",
"0.5064294",
"0.50618625",
"0.5061536",
"0.5059367",
"0.505664",
"0.50542486",
"0.504572",
"0.50429016",
"0.50414723",
"0.50411004"
] | 0.5316892 | 33 |
Consumes a single work unit. Blocks for 15 s or until a work unit becomes consumable, if there is currently none. | void consumeWorkUnit(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface WorkConsumerService{\n\n /**\n * Consumes a single work unit.\n * <p>\n * Blocks for 15 s or until a work unit becomes consumable, if there is currently none. \n * \n */\n void consumeWorkUnit();\n\n /**\n * Returns the total number of consumed work units by the engine instance at hand since\n * the engine's last deployment.\n */\n long getConsumedWorkUnits();\n\n}",
"public void run()\r\n {\r\n\t\tconsume();\r\n }",
"public void consumeEnergy() {\n\t if (!world.isRemote && this.getEnergyCost() > 0 &&\n\t this.getEnergyCurrent() >= this.getEnergyCost()) {\n\t this.energyStorage.extractEnergy(this.getEnergyCost(), false);\n\t //it drained, notify client \n\t this.markDirty();\n\t }\n\t }",
"@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tTask t = bq.take();\n\n\t\t\t\t\n\t\t\t\tThread.sleep(t.getProcessTime() * 1000);\n\t\t\t\twaitingTime.addAndGet((-1) * t.getProcessTime());\n\t\t\t\tSimulator.getFrame().displayData(\"Client \"+t.getNr()+\" left. \\n\");\n\t\t\t\tsize--;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tconsume();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\twhile(true) {\n\t\tsale();\n\t\t}\n\t\t\n\t}",
"public void run() {\n\t\twhile (true) {\n\t\t\tif (queue.size() > 0) {\n\t\t\t\ttry {\n\t\t\t\t\tconsume();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tqueueEfficency.set(0);\n\t\t\t\temptyQueueTime = 0;\n\t\t\t}\n\t\t}\n\t}",
"public synchronized void consume(){\n\t\tif(num==0){\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException 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\tnum--;\n\t\tSystem.out.println(\"Consume 1, now we left \"+num+\" products\");\n\t\tnotify();\n\t}",
"@Override\n\tpublic void run() {\n\t\twhile(true) {//模拟某人不停取钱\n\t\t\tboolean flag = bC.withdrowMoney(1);\n\t\t\t//停止条件\n\t\t\tif(flag==false) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void testDrainToSelfN() {\n SynchronousQueue q = new SynchronousQueue();\n try {\n q.drainTo(q, 0);\n shouldThrow();\n } catch(IllegalArgumentException success) {\n }\n }",
"@Override\n public void run() {\n while (queue.num < 100) {\n try {\n queue.producer();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n }",
"public synchronized void consumeX() {\n while(!produced){\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n //its consuming now\n System.out.println(\"consumed \"+x);\n //after consumption, value is gone, so produced is false\n produced = false;\n // producer to be notified to start production\n notify();\n\n }",
"public synchronized void consume() {\n\t\t// We only want one consumer thread running...\n\t\tif (consumerThread == null) {\n\t\t\tconsumerThread = new ConsumerThread();\n\t\t\t(new Thread(consumerThread)).start();\n\t\t}\n\t}",
"public void consume() throws InterruptedException {\n int count = 0;\n while (true) {\n synchronized (this) {\n // consumer thread waits while list\n // is empty\n while (hydrogen.size() <= 1 || oxygen.size() == 0)\n wait();\n\n // to retrive the ifrst job in the list\n hydrogen.removeFirst();\n hydrogen.removeFirst();\n oxygen.removeFirst();\n count += 1;\n\n\n System.out.println(\"Consumer consumed-\"\n + count);\n\n // Wake up producer thread\n notify();\n\n // and sleep\n Thread.sleep(5000);\n }\n }\n }",
"private void initialBlockOnMoarRunners() throws InterruptedException\n {\n lock.lock();\n try\n {\n if (taskQueue.isEmpty() && runners > 1)\n {\n runners--;\n needMoreRunner.await();\n runners++;\n }\n }\n finally\n {\n lock.unlock();\n }\n }",
"public void consumeFuel(double amount);",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ts.get();\n\t\t\t\t}",
"public void run() {\n\t\ttry{\r\n\t\t\tconnect(\"COM4\"); // name of the COM-port\r\n\t\t\tprotocol.simplePoll();\r\n\t\t\tprotocol.acceptCoins();\r\n\t\t\tprotocol.getLastAccepted();\r\n\t\t\twhile(true){\r\n\t\t\t\tint coin = protocol.getLastAccepted();\r\n\t\t\t\tif(coin != -1) currentMoneyAccepted += coin;\r\n\t\t\t}\r\n\t\t} catch(InterruptedException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Test(timeout = 10000)\r\n public void slowConsumer() throws Exception {\r\n ModuleURN instanceURN = new ModuleURN(PROVIDER_URN, \"mymodule\");\r\n Object [] data = {\"item1\", \"item2\", \"item3\", \"item4\"};\r\n DataFlowID flowID = mManager.createDataFlow(new DataRequest[]{\r\n new DataRequest(CopierModuleFactory.INSTANCE_URN, data),\r\n new DataRequest(instanceURN),\r\n new DataRequest(BlockingModuleFactory.INSTANCE_URN)\r\n });\r\n //wait until copier is done emitting all the data\r\n DataFlowInfo flowInfo;\r\n do {\r\n Thread.sleep(100);\r\n flowInfo = mManager.getDataFlowInfo(flowID);\r\n } while(flowInfo.getFlowSteps()[0].getNumEmitted() < 4);\r\n \r\n for(int i = 0; i < data.length; i++) {\r\n //wait for the data to get delivered\r\n BlockingModuleFactory.getLastInstance().getSemaphore().acquire();\r\n //verify the flow info for the last step\r\n flowInfo = mManager.getDataFlowInfo(flowID);\r\n assertFlowStep(flowInfo.getFlowSteps()[2], BlockingModuleFactory.INSTANCE_URN,\r\n false, 0, 0, null, true, i + 1, 0, null, BlockingModuleFactory.INSTANCE_URN, null);\r\n //verify the jmx flow queue size attribute value\r\n if(i < data.length - 1) {\r\n assertEquals(data.length - 1 - i,\r\n getMBeanServer().getAttribute(instanceURN.toObjectName(),\r\n SimpleAsyncProcessor.ATTRIB_PREFIX + flowID));\r\n }\r\n //consume the data\r\n assertEquals(data[i], BlockingModuleFactory.getLastInstance().getNextData());\r\n }\r\n //verify that the queue size is now zero.\r\n assertEquals(0, getMBeanServer().getAttribute(\r\n instanceURN.toObjectName(),\r\n SimpleAsyncProcessor.ATTRIB_PREFIX + flowID));\r\n //cancel data flow\r\n mManager.cancel(flowID);\r\n }",
"@Override\r\n\tpublic void run() {\n\t\tint i=0;\r\n\t\twhile(i<1000) {\r\n\t\t\tq.get();\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Override\n\t\tpublic void run() {\n\n\t\t\twhile (isRun) {\n\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(500);\n\n\t\t\t\t\tisRun = false;\n\t\t\t\t\thandler.sendEmptyMessage(2);\n\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void consume() throws InterruptedException {\n\n\t\tRandom random = new Random();\n\t\twhile (true) {\n\t\t\tsynchronized (lock) {\n\t\t\t\twhile (buffer.size() == 0) {\n\t\t\t\t\tlock.wait();\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"Consumed : \" + buffer.removeFirst());\n\t\t\t\tlock.notify();\n\n\t\t\t}\n\t\t\tThread.sleep(random.nextInt(1000));\n\t\t}\n\n\t}",
"void drainFused() {\n int n;\n int n2 = 1;\n Subscriber<T> subscriber = this.actual;\n SimpleQueueWithConsumerIndex<Object> simpleQueueWithConsumerIndex = this.queue;\n do {\n if (this.cancelled) {\n simpleQueueWithConsumerIndex.clear();\n return;\n }\n Throwable throwable = (Throwable)this.error.get();\n if (throwable != null) {\n simpleQueueWithConsumerIndex.clear();\n subscriber.onError(throwable);\n return;\n }\n n = simpleQueueWithConsumerIndex.producerIndex() == this.sourceCount ? 1 : 0;\n if (!simpleQueueWithConsumerIndex.isEmpty()) {\n subscriber.onNext(null);\n }\n if (n != 0) {\n subscriber.onComplete();\n return;\n }\n n2 = n = this.addAndGet(-n2);\n } while (n != 0);\n }",
"@Override\n\tpublic void run() {\n\t\twhile(true) {\n\t\t\tqueue.get();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException 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}",
"public void run() {\n TransactionBuilder builder = new TransactionBuilder();\n builder.asciiMessage(\"Hello World!\");\n Transaction toSubmit = builder.build();\n context.getConfiguration();\n\n try {\n while (true) {\n\n ixi.submit(toSubmit);\n System.out.println(\"Sende\");\n\n Thread.sleep(10000);\n }\n } catch (InterruptedException e) {\n if (isRunning()) {\n e.printStackTrace();\n\n throw new RuntimeException(e);\n }\n }\n }",
"public void consume() throws InterruptedException {\n\t\temptyQueueTime = queue.peek().getProcessedTime();\n\t\tThread.sleep(queue.peek().getProcessedTime());\n\t\tqueue.peek().setFinalTime(System.nanoTime() / Controller.divider - Controller.startTime);\n\t\tqueueEfficency.lazySet((int) (queue.peek().getFinalTime() - queue.peek().getArrivalTime()));\n\t\tqueueAverageWaitingTime = queueEfficency.get() / (10 * dividerOfClients++);\n\t\tBufferedWriter out = null;\n\t\ttry {\n\t\t\tFileWriter fstream = new FileWriter(\"out.txt\", true); // true tells\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to append\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// data.\n\t\t\tout = new BufferedWriter(fstream);\n\t\t\tout.write(queue.peek().toString2());\n\t\t\tout.newLine();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t} finally {\n\t\t\tif (out != null) {\n\t\t\t\ttry {\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tqueue.take();\n\t}",
"@NonNull\n @Override\n public Result doWork() {\n\n Log.d(TAG, \"doWork: \");\n savedata();\n createNotification();\n\n OneTimeWorkRequest oneTimeWorkRequest = new OneTimeWorkRequest.Builder(MyWorkManager.class)\n .setInitialDelay(5, TimeUnit.SECONDS).build();\n WorkManager.getInstance().enqueueUniqueWork(\"aaa\", ExistingWorkPolicy.APPEND, oneTimeWorkRequest);\n\n\n return Result.success();\n\n }",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tproduce();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void run() {\n try {\n while (shouldWork) {\n // The TA can sleep indefinitely, until someone wakes him up\n sleepUntilFirstStudent();\n // Help the student which wake the TA up, and all the\n // students waiting in the queue\n while (currentStudent != null) {\n helpStudent();\n currentStudent = getNextWaitingStudent();\n }\n }\n } catch (InterruptedException ex) {\n System.out.println(\"Someone interrupted the TA, closing the office...\");\n }\n }",
"private Subscribable<Integer> aSubscribableWillAsyncFireIntegerOneToFive() {\n return new Subscribable<Integer>() {\n private final ExecutorService executor = Executors.newSingleThreadExecutor();\n private Future<?> future;\n\n @Override\n public void doSubscribe(final Schedulable<? super Integer> source) {\n future = executor.submit(new Runnable() {\n @Override\n public void run() { //produce integers in a different thread\n for (int i = 1; i < 6; i++) {\n source.schedule(i); //schedule integer 1 to 5 to the callback source\n }\n }\n });\n }\n\n @Override\n public void unsubscribe() { //unsubscribe from the source\n try {\n assert future != null;\n future.get(5, TimeUnit.SECONDS); //wait for all the scheduled values fired\n } catch (Exception e) {\n Throwables.propagate(e); //just hide the checked exception\n }\n }\n };\n }",
"@SuppressWarnings(\"deprecation\")\n\tpublic void run() {\n\t\t\n\t\tfor (int i = 1; i <= 10; i++) {\n\t\t\taccount.withdraw(1000,\"Bear\");\n\t\t\tif (i == 10) {\n\t\t\t\tt.stop();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\tProduct p;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tp = c.getProduct();\n\t\t\t\t\t\t\tSystem.out.println(\"消费产品\"+p);\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"protected void doWork() {\n\t\ttry {\n\t\t\twhile ((_cli != null) && _cli.hasNext()) {\n\t\t\t\tConversationMessage cm = _cli.next2();\n\t\t\t\t_messages.add(cm);\n\t\t\t}\n\t\t\tThread.sleep(_DOWORK_WAIT);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Test\n\tpublic void sendMessage() {\n\n\t\tExecutorService executorService = Executors.newFixedThreadPool(1);\n\t\tCountDownLatch endSignal = new CountDownLatch(100);\n\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tfinal int num = i;\n\t\t\t// Runnable run;\n\t\t\texecutorService.execute(() -> {\n\t\t\t\ttry {\n\t\t\t\t\tmessageSender = new MessageSender();\n\t\t\t\t\tmessageSender.sendMessage(\"bitchin' badass\" + num);\n\t\t\t\t\tendSignal.countDown();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"exception\", e);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\ttry {\n\t\t\tendSignal.await();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmessageSender.closeAll();\n\n\t\t}\n\t\texecutorService.shutdown();\n\n\n\t\tval consumeFlag = messageConsumer.consume(\"trans_logs_record\");\n\n\t\ttry {\n\t\t\tThread.sleep(5000l);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tAssert.assertEquals(true, consumeFlag);\n\n\t}",
"protected void syncConsumeLoop(MessageConsumer requestConsumer) {\n try {\n Message message = requestConsumer.receive(5000);\n if (message != null) {\n onMessage(message);\n } else {\n System.err.println(\"No message received\");\n }\n } catch (JMSException e) {\n onException(e);\n }\n }",
"public int drain(MessagePassingQueue.Consumer<E> c, int limit)\r\n/* 362: */ {\r\n/* 363: */ E m;\r\n/* 364:652 */ for (int i = 0; (i < limit) && ((m = relaxedPoll()) != null); i++) {\r\n/* 365:656 */ c.accept(m);\r\n/* 366: */ }\r\n/* 367:658 */ return i;\r\n/* 368: */ }",
"@Override\n\tpublic void run() {\t\n\t\tint maxNum = (maxCustomerNumOnline > maxCustomerNumShop) ? maxCustomerNumOnline : maxCustomerNumShop;\n\t\t\n\t\tfor(int i = 0; i < maxNum; i++) {\n\t\t\t// every number of milliseconds, add customer to end of queue \n\t\t\ttry {\t\t\t\n\t\t\t\t// if online queue exists add to it \n\t\t\t\tif (i < maxCustomerNumOnline) {\n\t\t\t\t\tCustomerQueueOutput out = onlineQueue.addToQueue();\n\t\t\t\t\tCoffeeShop.customerList.put(out.getCustomer().getId(), out.getCustomer());\n\t\t\t\t\t\n\t\t\t\t\tlog.updateLog(\"[QueueHandler]: \"+ \"Queue Handler added customer \" + out.getCustomer().getName() + \n\t\t\t\t\t\t\t\" (ID: \" + out.getCustomer().getId() + \") to online queue -> updated size: \" \n\t\t\t\t\t\t\t+ out.getUpdatedSize());\n\t\t\t\t}\n\n\t\t\t\tif (i < maxCustomerNumShop) {\n\t\t\t\t\t// add to in-shop queue \n\t\t\t\t\tCustomerQueueOutput out = shopQueue.addToQueue();\n\t\t\t\t\tCoffeeShop.customerList.put(out.getCustomer().getId(), out.getCustomer());\n\t\t\t\t\t\n\t\t\t\t\tlog.updateLog(\"[QueueHandler]: \"+ \"Queue Handler added customer \" + out.getCustomer().getName() + \n\t\t\t\t\t\t\t\" (ID: \" + out.getCustomer().getId() + \") to in-shop queue -> updated size: \" \n\t\t\t\t\t\t\t+ out.getUpdatedSize());\n\t\t\t\t}\t\t\t\t\t\t\n\n\t\t\t\t// delay for visualization purposes \n\t\t\t\tThread.sleep(onlineQueue.getDelay());\n\t\t\t\t\n\t\t\t// catch exception for calling sleep() function\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlog.updateLog(\"[QueueHandler]: \"+ \"Interuption in queueHandler\");\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\twhile (running) {\n\t\t\tif (debug)\n\t\t\t\tSystem.out.println(\"WORKER THREAD \" + threadID + \" Waiting for new task\");\n\n\t\t\t// get the next task from the blocking queue\n\t\t\tSelectionKey newTask = manager.nextTask();\n\n\t\t\t// if(debug)\n\t\t\t// System.out.println(\"Worker Thread \" + threadID + \" received new task\");\n\n\t\t\tif (newTask != null) {\n\t\t\t\tif (debug)\n\t\t\t\t\tSystem.out.println(\"Worker Thread \" + threadID + \" received new task: \" + newTask.toString());\n\t\t\t\tSocketChannel channel = (SocketChannel) newTask.channel();\n\t\t\t\tByteBuffer buffer = ByteBuffer.allocate(8000);\n\t\t\t\ttry {\n\t\t\t\t\tchannel.read(buffer);\n\t\t\t\t\tbyte[] packet = buffer.array();\n\t\t\t\t\tif (debug)\n\t\t\t\t\t\tSystem.out.println(\"Worker Thread \" + threadID + \" received new message: \" + packet.toString());\n\t\t\t\t\tMessage message = Serializer.deserializeMessage(packet);\n\t\t\t\t\tif (debug)\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Worker Thread \" + threadID + \" received new message: \" + message.toString());\n\t\t\t\t\tString messageCode = message.getType();\n\t\t\t\t\tbuffer.flip();\n\t\t\t\t\tbuffer.clear();\n\t\t\t\t\tnewTask.interestOps(SelectionKey.OP_WRITE);\n\t\t\t\t\tswitch (messageCode) {\n\t\t\t\t\t/**\n\t\t\t\t\t * This switch statement should be the only thing that has to get edited from\n\t\t\t\t\t * here on out. When we want to add functionality, it should always either be\n\t\t\t\t\t * adding a new case, if a new wireform is needed, or by altering code in the\n\t\t\t\t\t * case of the message being responded to.\n\t\t\t\t\t */\n\t\t\t\t\tcase (USER_REGISTRATION): {\n\t\t\t\t\t\tUserRegistration registrationMessage = (UserRegistration) message;\n\t\t\t\t\t\tString username = registrationMessage.getUsername();\n\t\t\t\t\t\tString password = registrationMessage.getPasswordHash();\n\n\t\t\t\t\t\tboolean created = sql.addUser(new Account(username, password));\n\t\t\t\t\t\tMessage outgoing = null;\n\n\t\t\t\t\t\tif (created) {\n\t\t\t\t\t\t\toutgoing = new UserRegistrationResponse(true, \"User was created successfully\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\toutgoing = new UserRegistrationResponse(false,\n\t\t\t\t\t\t\t\t\t\"Most likely a duplicated username, could also be a failed SQL connection\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsend(outgoing, buffer, channel, debug);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase (USER_LOGON): {\n\t\t\t\t\t\tUserLogon logonMessage = (UserLogon) message;\n\n\t\t\t\t\t\tString username = logonMessage.getUsername();\n\t\t\t\t\t\tString password = logonMessage.getPasswordHash();\n\t\t\t\t\t\t// Returns true if the user is validated\n\t\t\t\t\t\tboolean loggedIn = sql.checkLogin(username, password);\n\t\t\t\t\t\tMessage outgoing = null;\n\n\t\t\t\t\t\tif (loggedIn) {\n\t\t\t\t\t\t\tAccount acc = sql.getAccount(username, password);\n\t\t\t\t\t\t\toutgoing = new UserLogonResponse(true, \"User was verified and logged in\", acc);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\toutgoing = new UserLogonResponse(false, \"User was not Verified.\", null);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Outgoing is the reply to the client program\n\t\t\t\t\t\tsend(outgoing, buffer, channel, debug);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase (RECORDS_REQUEST): {\n\t\t\t\t\t\tRecordsRequest requestMessage = (RecordsRequest) message;\n\t\t\t\t\t\tString requestUser = requestMessage.getUsername();\n\n\t\t\t\t\t\t// done, but relies on methods that are themselves TODO\n\t\t\t\t\t\tAccount update = sql.getAccount(requestUser);\n\t\t\t\t\t\tSystem.out.println(\"ACC: \" + update.getUsername());\n\t\t\t\t\t\tList<Game> games = sql.getGames(update);\n\n\t\t\t\t\t\tfor (Game g : games) {\n\t\t\t\t\t\t\tSystem.out.println(g.toString());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tsend(new RecordsRequestResponse(games, update), buffer, channel, debug);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase (CREATE_INVITATION): {\n\t\t\t\t\t\tCreateInvitation inviteMessage = (CreateInvitation) message;\n\t\t\t\t\t\tString inviter = inviteMessage.getInviter();\n\t\t\t\t\t\tString invitee = inviteMessage.getInvitee();\n\n\t\t\t\t\t\tAccount inviteeAccount = sql.getAccount(invitee);\n\t\t\t\t\t\tinviteeAccount.addInvite(new Invitation(inviter, invitee));\n\t\t\t\t\t\tsql.setAccount(inviteeAccount);\n\n\t\t\t\t\t\tsend(new CreateInvitationResponse(true, \"Invitation Sent\"), buffer, channel, debug);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase (RESPOND_TO_INVITATION): {\n\t\t\t\t\t\tRespondToInvitation respondMessage = (RespondToInvitation) message;\n\t\t\t\t\t\tInvitation acceptedInvite = respondMessage.getInvitation();\n\t\t\t\t\t\tString recipient = acceptedInvite.getRecipient();\n\t\t\t\t\t\tString sender = acceptedInvite.getSender();\n\t\t\t\t\t\tAccount updateRecipient = sql.getAccount(recipient);\n\t\t\t\t\t\tAccount updateSender = sql.getAccount(sender);\n\n\t\t\t\t\t\tif (updateRecipient.getInvites().remove(acceptedInvite)) {\n\t\t\t\t\t\t\tSystem.out.println(\"----------------------------- Removed invite from account: \" + updateRecipient.getUsername());\n\t\t\t\t\t\t\tsql.setAccount(updateRecipient);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (respondMessage.isAccept()) {\n\t\t\t\t\t\t\tPlayer attacker = new Player(updateSender, \"black\");\n\t\t\t\t\t\t\tPlayer defender = new Player(updateRecipient, \"white\");\n\n\t\t\t\t\t\t\tupdateSender.addPlayer(attacker);\n\t\t\t\t\t\t\tupdateRecipient.addPlayer(defender);\n\n\t\t\t\t\t\t\tsql.setAccount(updateSender);\n\t\t\t\t\t\t\tsql.setAccount(updateRecipient);\n\n\t\t\t\t\t\t\tGame g1 = new Game(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\").toString(), attacker,\n\t\t\t\t\t\t\t\t\tdefender);\n\t\t\t\t\t\t\tsql.addGame(sender, recipient, g1);\n\n\t\t\t\t\t\t\tsend(new RespondToInvitationResponse(true, \"Game Added to Account\"), buffer, channel,\n\t\t\t\t\t\t\t\t\tdebug);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsend(new RespondToInvitationResponse(true, \"Invited Rejected\"), buffer, channel, debug);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase (SUBMIT_MOVE): {\n\t\t\t\t\t\tSubmitMove moveMessage = (SubmitMove) message;\n\t\t\t\t\t\tGame gameUpdate = moveMessage.getGameUpdate();\n\t\t\t\t\t\tGame oldGame = sql.getGame(gameUpdate.getAttacker(), gameUpdate.getDefender());\n\n\t\t\t\t\t\tGameResult status;\n\t\t\t\t\t\tif(gameUpdate.getResult() ==GameResult.CONTINUE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tgameUpdate = rules.processCaptures(oldGame, gameUpdate);\n\t\t\t\t\t\t\tstatus = rules.gameHasEnded(gameUpdate);\n\t\t\t\t\t\t\tgameUpdate.setResult(status);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tstatus = gameUpdate.getResult();\n\t\t\t\t\t\tif (status != GameResult.CONTINUE) {\n\t\t\t\t\t\t\tgameUpdate.setEndTime(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\").toString());\n\t\t\t\t\t\t\tAccount defender = gameUpdate.getDefender().getAccount();\n\t\t\t\t\t\t\tAccount attacker = gameUpdate.getAttacker().getAccount();\n\t\t\t\t\t\t\tif (status == GameResult.WHITE) {\n\t\t\t\t\t\t\t\tattacker.getStats().addLoss();\n\t\t\t\t\t\t\t\tdefender.getStats().addWin();\n\t\t\t\t\t\t\t} else if (status == GameResult.BLACK) {\n\t\t\t\t\t\t\t\tattacker.getStats().addWin();\n\t\t\t\t\t\t\t\tdefender.getStats().addLoss();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tattacker.getStats().addLoss();\n\t\t\t\t\t\t\t\tdefender.getStats().addLoss();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsql.setAccount(defender);\n\t\t\t\t\t\t\tsql.setAccount(attacker);\n\t\t\t\t\t\t\tsql.deleteGame(attacker, defender);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\tgameUpdate.changeTurns();\n\t\t\t\t\t\tsql.updateGame(gameUpdate.getAttacker(), gameUpdate.getDefender(), gameUpdate);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsend(new SubmitMoveResponse(true, \"Move Submitted\"), buffer, channel, debug);\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tbuffer.flip();\n\t\t\t\t\tbuffer.clear();\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tnewTask.cancel();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchannel.close();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnewTask.interestOps(SelectionKey.OP_READ);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"THREAD \" + threadID + \" terminating\");\n\t}",
"@Override\n public void run() {\n try {\n boolean busy = true;\n while (busy) {\n AbstractBasicMessage msg = readMsg();\n if (msg != null) {\n busy = msg.operate(this.persistor, this.pushServer);\n }\n }\n } catch (IOException e) {\n // Treat an IOException as a termination of the message\n // exchange, and let this message-processing thread die.\n\n // CODE VON DOZENTEN...\n } catch (OperationNotSupportedException ex) {\n System.out.println(\"Error while reading incoming message\");\n ex.printStackTrace();\n }\n }",
"public void run() {\n\n\t\tSimulation.logEvent(SimulationEvent.cookStarting(this));\n\t\ttry {\n\t\t\twhile(true) {\n\t\t\t\t//YOUR CODE GOES HERE...\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Synchronized on listofOrders\n\t\t\t\t * get the customer order\n\t\t\t\t * notifyAll the threads that is waiting for listofOrders.\n\t\t\t\t * \n\t\t\t\t * get all the orders by the customer\n\t\t\t\t * Synchronized on machine (grill,coffee,fries)\n\t\t\t\t * wait if the capacity of the machine is full\n\t\t\t\t * once the capacity is available \n\t\t\t\t * makefood()\n\t\t\t\t * notify all the threads waiting for the machine\n\t\t\t\t * \n\t\t\t\t * Synchornized on finishedfood\n\t\t\t\t * wait till the food is completed\n\t\t\t\t * notify all the cook once the food is complete\n\t\t\t\t */\n\t\t\t\t\n\n\t\t\t\t//get the customer currently up next\n\t\t\t\tsynchronized(Simulation.listOfOrders){\n\n\t\t\t\t\twhile(Simulation.listOfOrders.isEmpty()){\n\t\t\t\t\t\tSimulation.listOfOrders.wait();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcurrCustomer = checkPriorityCustomer(Simulation.listOfOrders);\n\t\t\t\t\t//Simulation.orderList.remove();\n\t\t\t\t\tSimulation.logEvent(SimulationEvent.cookReceivedOrder(this, currCustomer.getOrder(), currCustomer.getOrderNum()));\n\t\t\t\t\tSimulation.listOfOrders.notifyAll();\n\t\t\t\t}\n\t\t\t\t//sends food to specific machine\n\t\t\t\tfor(int index = 0; index < currCustomer.getOrder().size(); index++){\n\t\t\t\t\tFood currFood = currCustomer.getOrder().get(index);\n\t\t\t\t\tif(currFood.equals(FoodType.burger)){\n\t\t\t\t\t\tsynchronized(Simulation.grill.foodList){\n\t\t\t\t\t\t\twhile(!(Simulation.grill.foodList.size() < Simulation.grill.capacity)){\n\t\t\t\t\t\t\t\tSimulation.grill.foodList.wait();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSimulation.logEvent(SimulationEvent.cookStartedFood(this, FoodType.burger , currCustomer.getOrderNum()));\n\t\t\t\t\t\t\tSimulation.grill.makeFood(this, currCustomer.getOrderNum());\n\t\t\t\t\t\t\tSimulation.grill.foodList.notifyAll();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}else if(currFood.equals(FoodType.fries)){\n\t\t\t\t\t\tsynchronized(Simulation.burner.foodList){\n\t\t\t\t\t\t\twhile(!(Simulation.burner.foodList.size() < Simulation.burner.capacity)){\n\t\t\t\t\t\t\t\tSimulation.burner.foodList.wait();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSimulation.logEvent(SimulationEvent.cookStartedFood(this, FoodType.fries , currCustomer.getOrderNum()));\n\t\t\t\t\t\t\tSimulation.burner.makeFood(this,currCustomer.getOrderNum());\n\t\t\t\t\t\t\tSimulation.burner.foodList.notifyAll();\n\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}else{\n\t\t\t\t\t\tsynchronized(Simulation.braun.foodList){\n\t\t\t\t\t\t\twhile(!(Simulation.braun.foodList.size() < Simulation.braun.capacity)){\n\t\t\t\t\t\t\t\tSimulation.braun.foodList.wait();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSimulation.logEvent(SimulationEvent.cookStartedFood(this, FoodType.coffee , currCustomer.getOrderNum()));\n\t\t\t\t\t\t\tSimulation.braun.makeFood(this,currCustomer.getOrderNum());\n\t\t\t\t\t\t\tSimulation.braun.foodList.notifyAll();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsynchronized(completedFood){\n\t\t\t\t\twhile(!(completedFood.size() == currCustomer.getOrder().size())){\n\t\t\t\t\t\tcompletedFood.wait();\n\t\t\t\t\t\tcompletedFood.notifyAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSimulation.logEvent(SimulationEvent.cookCompletedOrder(this, currCustomer.getOrderNum()));\n\t\t\t\t\n\t\t\t\tsynchronized(Simulation.finishedOrder){\n\t\t\t\t\tSimulation.finishedOrder.put(currCustomer, true);\n\t\t\t\t\tSimulation.finishedOrder.notifyAll();\n\t\t\t\t}\n\t\t\t\tcompletedFood = new LinkedList<Food>();\n\t\t\t\n\t\t\t}\n\t\t}\n\t\tcatch(InterruptedException e) {\n\t\t\t// This code assumes the provided code in the Simulation class\n\t\t\t// that interrupts each cook thread when all customers are done.\n\t\t\t// You might need to change this if you change how things are\n\t\t\t// done in the Simulation class.\n\t\t\tSimulation.logEvent(SimulationEvent.cookEnding(this));\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\tboolean done = false;\n\t\t\n\t\twhile(!done){\n\t\t\tFile file;\n\t\t\ttry {\n\t\t\t\tfile = queue.take();\n\t\t\t\tif(file == FileEnumrationTask.Dummy){\n\t\t\t\t\tdone = true;\n\t\t\t\t\tqueue.put(file);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tserch(file);\n\t\t\t\t}\n\t\t\t} catch (InterruptedException | FileNotFoundException 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}",
"@Override\n public void run() {\n currentContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n while (true) {\n String newlyReadContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n if (!newlyReadContent.equals(currentContent) || !newlyReadContent.isEmpty()){\n notify(newlyReadContent);\n currentContent = newlyReadContent;\n }\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n//end of modifiable zone..................E/bfb5c4c0-88e6-44fa-9add-89d5b4394004\n }",
"private int consumeElement(int index) throws InterruptedException {\n\t while (sharedBuffer.isEmpty()) {\r\n\t synchronized (sharedBuffer) {\r\n\t \tString msg=\"Queue is empty \" + Thread.currentThread().getName()\r\n + \" is waiting , size: \" + sharedBuffer.size();\r\n\t \t\r\n\t // \t System.out.println(msg);\r\n\t\t writeLn(msg);\r\n\r\n\t sharedBuffer.wait();\r\n\t \r\n\t }\r\n\t }\r\n\r\n\t // Consume data from Buffer and Notify Producer that Data has been consumed from Buffer\r\n\t synchronized (sharedBuffer) {\r\n\t \tsharedBuffer.notifyAll();\r\n\t \t\r\n\t return (Integer) sharedBuffer.poll();\r\n\t }\r\n\t }",
"@Override\n\t\t\tpublic void worked(int work) {\n\t\t\t\t\n\t\t\t}",
"public synchronized void produce(){\n\t\tif(num==capacity){\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t}\n\t\tnum++;\n\t\tSystem.out.println(\"Produce 1, now we have \"+num+\" products\");\n\t\tnotify();\n\t}",
"public void callTheWaiter(){\n Student s = (Student) Thread.currentThread();\n\n \tCommunicationChannel com = new CommunicationChannel (serverHostName, serverPortNumb);\n \tObject[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n \tstate_fields[0] = s.getID();\n \tstate_fields[1] = s.getStudentState();\n \t\n Message m_toServer = new Message(7, params, 0, state_fields, 2, null); \n Message m_fromServer; \n \n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n }\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n \n s.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }",
"private void consume()\r\n\t{\r\n\t\twhile (true)\r\n\t\t{\r\n\t\t\tSubscriberMessage sifMsg = queue.blockingPull();\t\t\t\t\r\n\t\t\tif (sifMsg != null)\r\n\t\t\t{\r\n\t\t\t\tlogger.debug(consumerID+\" has receive a message from its SubscriberQueue.\");\r\n\t\t\t\tif (sifMsg.isEvent())\r\n\t\t\t\t{\r\n\t\t\t\t\tSIFEvent sifEvent = new SIFEvent(sifMsg.getSIFObject(), sifMsg.getEventAction());\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubscriber.processEvent(sifEvent, sifMsg.getZone(), sifMsg.getMappingInfo(), consumerID);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.error(\"Failed processing SIF Event for subscriber \"+subscriber.getId()+\": \"+ex.getMessage()+\"\\nEvent Data:\\n\"+sifEvent, ex);\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSIFDataObject sifObj = sifMsg.getSIFObject();\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubscriber.processResponse(sifObj, sifMsg.getZone(), sifMsg.getMappingInfo(), consumerID);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.error(\"Failed processing SIF Object for subscriber \"+subscriber.getId()+\": \"+ex.getMessage()+\"\\nSIF Object Data:\\n\"+((sifObj == null) ? \"null\" : sifObj.toXML()), ex);\t\t\t\t\r\n\t\t\t\t\t}\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\tlogger.error(consumerID+\" has encountered a problem receiving a message from its SubscriberQueue.\");\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"private void run() throws InterruptedException, IOException {\n endpoint.getWcEvents().take();\n\n //process received data\n processRecv();\n\n for (int i=0; i < 1000000; i++) {\n //change data in remote memory\n writeData(i);\n\n //wait for writing remote memory to complete\n endpoint.getWcEvents().take();\n }\n System.out.println(\"ClientWrite::finished!\");\n }",
"@Override\n\tpublic WorkerThread call() throws Exception {\n\t\tsetMessage();\n\t\tclock.messageClock++;\n\t\twhile (clock.messageClock != 10) {\n\t\t\tThread.sleep(1000);\n\t\t}\n\t\tchangeState();\n\t\treturn this;\n\t}",
"public void run() {\r\n PooledConnection pConn;\r\n do {\r\n while (needAddConnSize.get() > 0) {\r\n needAddConnSize.decrementAndGet();\r\n if (!waitQueue.isEmpty()) {\r\n try {\r\n if ((pConn = createPooledConn(CONNECTION_USING)) != null)\r\n recycle(pConn);\r\n } catch (Throwable e) {\r\n if (e instanceof SQLException) {\r\n transferException((SQLException) e);\r\n } else {\r\n transferException(new SQLException(e));\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (needAddConnSize.get() == 0 && createConnThreadState.compareAndSet(THREAD_WORKING, THREAD_WAITING))\r\n park(this);\r\n if (createConnThreadState.get() == THREAD_DEAD) break;\r\n } while (true);\r\n }",
"@Override\n public ListenableFuture<Boolean> issueSpeculativeRequest() {\n return clientCtx.getMainWorkerPool().submitOrdered(lh.getId(), new Callable<Boolean>() {\n @Override\n public Boolean call() throws Exception {\n if (!isComplete() && null != maybeSendSpeculativeRead(heardFromHostsBitSet)) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Send speculative read for {}. Hosts sent are {}, \"\n + \" Hosts heard are {}, ensemble is {}.\",\n this, sentToHosts, heardFromHostsBitSet, ensemble);\n }\n return true;\n }\n return false;\n }\n });\n }",
"@Override\r\n\tpublic void worked(int work) {\n\t}",
"protected void deliverInterest(InterestRegistration ireg) {\n _stats.increment(StatsEnum.DeliverInterest);\n synchronized (_myFilters) {\n for (Filter filter : _myFilters.getValues(ireg.interest.name())) {\n if (filter.owner != ireg.owner) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, formatMessage(\"Schedule delivery for interest: {0}\"), ireg.interest);\n if (filter.add(ireg.interest)) {\n try {\n _threadpool.execute(filter);\n } catch (RejectedExecutionException ree) {\n Log.severe(Log.FAC_NETMANAGER, formatMessage(\"Dispatch thread overflow!!\"));\n }\n }\n }\n }\n }\n }",
"public void testFairTakeFromEmpty() {\n final SynchronousQueue q = new SynchronousQueue(true);\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n q.take();\n\t\t\tthreadShouldThrow();\n } catch (InterruptedException success){ }\n }\n });\n try {\n t.start();\n Thread.sleep(SHORT_DELAY_MS);\n t.interrupt();\n t.join();\n } catch (Exception e){\n unexpectedException();\n }\n }",
"public Object consumeBloqueante();",
"public Runnable getRunnable() {\n return new Runnable(){\n\n @Override\n public void run() {\n while (true) {\n pushPurchases();\n pullBikes();\n try {\n Thread.sleep(WAIT_TIME);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n };\n }",
"public E take() throws InterruptedException {\n return b(0, (Long) null, (TimeUnit) null);\n }",
"@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\twhile(true){\n\t\t\t\tsemaphore.acquire();\n\t\t\t\twhile(list.size()<10){\n\t\t\t\t\tlist.add(1);\n\t\t\t\t\tSystem.out.println(\"生产者放入一个产品,目前有\"+list.size()+\"个产品\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"队列满\"+\"等待消费者消费\");\n\t\t\t\tsemaphore.release();\n\t\t\t\tThread.sleep(500);\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"@Override\n\tpublic void run()\n\t{\n\t\tthis.threadName = Thread.currentThread().getName();\n\t\t\n\t\tsynchronized(currentWorkLock)\n\t\t{\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\twhile(currentWork == null)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tcurrentWorkLock.wait();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(InterruptedException e)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tidle = false;\n\t\t\t\t\n\t\t\t\tfinishWork();\n\t\t\t\t\n\t\t\t\tcurrentWork = null;\n\t\t\t\tidle = true;\n\t\t\t\t\n\t\t\t\tmanager.signalDone(this);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void run() {\n\t\tfor(int i = 0; i < 100; i++){\r\n\t\t\taccount.addAmount(1000);\r\n\t\t}\r\n\t}",
"public T take() throws InterruptedException, IOException {\n lock.lock();\n try {\n T wrapper = this.dequeue();\n if (wrapper == null) {\n while ((wrapper = this.dequeue()) == null) {\n logger.debug(\"Waiting for take condition\");\n await();\n }\n }\n return wrapper;\n } finally {\n lock.unlock();\n }\n }",
"@Override\n public void run() {\n while (testing) {\n // Add it.\n Node<T> n = c.offer(me);\n if (n != null) {\n log.log(\"Added \" + me + \": \" + c.toString());\n pause();\n // Remove it.\n c.remove(n, me);\n log.log(\"Removed \" + me + \": \" + c.toString());\n pause();\n } else {\n // Just go around again.\n pause();\n }\n }\n nTesters.decrementAndGet();\n }",
"@Override\n public void doTask() throws InterruptedException {\n Thread.sleep(5000);\n }",
"public void run() {\n\t\t\t\tfor(int i = 0;i<=50;i++){\n\t\t\t\tbussiness.sub(i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"@Override\n public void run() {\n ICBlock currentBlock = null;\n\n while (running) {\n try {\n currentBlock = mQueue.take();\n currentBlock.doAction();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n\n }\n\n\n }",
"@Override\n\t\t\tpublic void beginTask(String name, int totalWork) {\n\t\t\t\t\n\t\t\t}",
"public void testConsumeEvent_Stress() throws Exception {\n\n // the test start time.\n long startTime = System.currentTimeMillis();\n\n // run the test for RUN_TIMES times.\n for (int i = 0; i < StressTestsHelper.RUN_TIMES; i++) {\n\n MouseEvent event = new MouseEvent(lifelineSegment, 0, 0, 0, 0, 0, 0, false);\n this.lifelineSegment.consumeEvent(event);\n }\n\n // output the time used.\n long endTime = System.currentTimeMillis();\n System.out.println(\"Run \" + StressTestsHelper.RUN_TIMES + \" LifeLine#consumeEvent(event) method takes \"\n + (endTime - startTime) + \"ms\");\n\n }",
"public void run() {\n\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t//Acquires a permit blocking until one is available, or the thread is interrupted.\n\t\t\t\t//View if there is some space f the buffer to produce data\n\t\t\t\tempty.acquire();\n\t\t\t\t\n\t\t\t\t//Acquires a permit blocking until one is available, or the thread is interrupted.\n\t\t\t\t//Semaphore for mutual exclusion, acquires the lock to into critical section\n\t\t\t\tmutex.acquire();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Produciendo un recurso (PRODUCTOR)\");\n\t\t\t\t//Produce data in the buffer\n\t\t\t\tbuffer.fill();\n\t\t\t\tSystem.out.println(\"Liberación (PRODUCTOR)\");\n\t\t\t\t\n\t\t\t\t// sleep the Consumidor to work in different time\n\t\t\t\tsleep((long) ((Math.random())%1000));\n\t\t\t\t\n\t\t\t\t//releases the lock\n\t\t\t\tmutex.release();\n\t\t\t\t\n\t\t\t\t//Releases a permit, increasing the number of available permits by one\n\t\t\t\tfull.release();\n\n\t\t\t\t\n\n\t\t\t} catch (InterruptedException 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}",
"public E take(long timeout, TimeUnit timeUnit) throws InterruptedException,FileQueueClosedException;",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTimeUnit.SECONDS.sleep(10);\r\n\t\t\t\t} catch (InterruptedException 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}\r\n\t\t}",
"@Override\n public void run() {\n\n for (int i = 0; i < NUM_TRANSACTIONS; i++) {\n\n // no contrived delay here\n account.changeBalance(change);\n\n total = total + change;\n info.setText(\"\" + total);\n\n // wait until the next transaction should happen\n // we can try this with and without the delay here\n try {\n sleep(TRANSACTION_INTERVAL);\n } catch (InterruptedException e) {\n System.err.println(e);\n }\n }\n }",
"@Override\r\n\tpublic void run() {\r\n\t\twhile (true) {\r\n\t\t\t// 上锁\r\n\t\t\tlock.lock();\r\n\r\n\t\t\ttry {\r\n\t\t\t\tif (tickets > 0) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \"正在售票,剩余:\" + (--tickets) + \"张\");\r\n\t\t\t\t}\r\n\t\t\t} finally {\r\n\t\t\t\t// 释放锁\r\n\t\t\t\tlock.unlock();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void testFairTimedOffer() {\n final SynchronousQueue q = new SynchronousQueue(true);\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n\n threadAssertFalse(q.offer(new Object(), SHORT_DELAY_MS, TimeUnit.MILLISECONDS));\n q.offer(new Object(), LONG_DELAY_MS, TimeUnit.MILLISECONDS);\n\t\t\tthreadShouldThrow();\n } catch (InterruptedException success){}\n }\n });\n\n try {\n t.start();\n Thread.sleep(SMALL_DELAY_MS);\n t.interrupt();\n t.join();\n } catch (Exception e){\n unexpectedException();\n }\n }",
"public void run() {\n\t\t\tfinal double IDLE_PERIOD = workloadConfiguration.getPaymentPeriod();\n\n\t\t\ttry {\n\t\t\t\t// Initial payment cycle time is the time since workload startup.\n\t\t\t\tdouble lastCycleTime = Utilities.getTime() - startTime;\n\n\t\t\t\t// Pay until interrupted\n\t\t\t\twhile (!Thread.interrupted()) {\n\t\t\t\t\tdouble cycleStartTime = Utilities.getTime();\n\n\t\t\t\t\t// Distributes quota (tokens) to the builders.\n\t\t\t\t\tpayAllBuilders(lastCycleTime);\n\n\t\t\t\t\t// Idle for the specified period\n\t\t\t\t\tUtilities.idle(IDLE_PERIOD - (Utilities.getTime() - cycleStartTime));\n\n\t\t\t\t\t// Measure the time taken by the cycle just completed, including any idle time.\n\t\t\t\t\tlastCycleTime = Utilities.getTime() - cycleStartTime;\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\treturn;\n\t\t\t} catch (Throwable e) {\n\t\t\t\tEvent.RUNTIME_EXCEPTION.issue(e, \"Failure in payer thread.\");\n\t\t\t}\n\t\t}",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true) {\r\n\t\t\t\tsynchronized(a) {\r\n\t\t\t\t\twhile(!a.isEmpty()) {\r\n\t\t\t\t\t\ta.getFirst().cover();\r\n\t\t\t\t\t\ta.removeFirst();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(2000);\r\n\t\t\t\t} catch (InterruptedException 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}\r\n\t\t}",
"@SuppressWarnings(\"unchecked\")\n\t\tpublic void run() {\n long throughputMeasurementStartTime = System.currentTimeMillis();\n\n byte[] reply;\n int reqId;\n int req = 0;\n\n Storage st = new Storage(nTXs);\n\n System.out.println(\"Executing experiment for \" + nTXs + \" ops\");\n\n for (int i = 0; i < nTXs; i++, req++) {\n long last_send_instant = System.nanoTime();\n if (dos) {\n reqId = proxy.generateRequestId((readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n proxy.TOMulticast(request, reqId, (readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n\n } else {\n \tif(readOnly) {\n \t\treply = proxy.invokeUnordered(request);\n \t} else {\n \t\treply = proxy.invokeOrdered(request);\n \t}\n }\n st.store(System.nanoTime() - last_send_instant);\n\n if (timeout > 0) {\n //sleeps timeout ms before sending next request\n try {\n\t\t\t\t\t\tThread.sleep(timeout);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n } \n\n } \n writeReportJSON(throughputMeasurementStartTime, st); \n }",
"@Override\n\tpublic void run() {\n\t\tdispBlocks();\n\t\tsendData();\n\t}",
"public static ConcurrentLinkedQueue<Product> start() throws InterruptedException {\n warehouse = new Warehouse();\n\n FactoryPlan data = null;\n String JSON_PATH = filePath;\n Gson gson = new Gson();\n Type ReviewType = new TypeToken<FactoryPlan>() {\n }.getType();\n try (JsonReader reader = new JsonReader(new FileReader(JSON_PATH))) {\n data = gson.fromJson(reader, ReviewType);\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found\");\n System.exit(1);\n } catch (Exception e) {\n System.out.println(\"Can't format json object\");\n System.exit(2);\n }\n\n int numOfThreads = data.getThreads();\n getDataFromFactoryPlan(data);\n\n if (WSP == null)\n attachWorkStealingThreadPool(new WorkStealingThreadPool(numOfThreads));\n\n ConcurrentLinkedQueue<Manufacture> completedTasks = new ConcurrentLinkedQueue<>();\n List<List<Series>> waves = data.getWaves();\n\n WSP.start();\n\n for (List<Series> wave : waves) {\n int numOfProducts = 0;\n for (Series series : wave) {\n numOfProducts += series.getQty();\n }\n CountDownLatch l = new CountDownLatch(numOfProducts);\n\n for (Series series : wave) {\n long startId = series.getStartId();\n String seriesName = series.getProduct();\n for (int i = 0; i <= series.getQty() - 1; i++) {\n Manufacture task = new Manufacture(new Product(startId + i, seriesName), warehouse);\n completedTasks.add(task);\n WSP.submit(task);\n task.getResult().whenResolved(() -> {\n l.countDown();\n });\n }\n }\n l.await();\n }\n\n WSP.shutdown();\n\n ConcurrentLinkedQueue<Product> simulationResult = new ConcurrentLinkedQueue<>();\n for (Manufacture task : completedTasks) {\n simulationResult.add(task.getResult().get());\n }\n\n return simulationResult;\n }",
"public void deliver() {\n try {\n if (null != this.listener) {\n ContentObject pending = null;\n CCNInterestListener listener = null;\n synchronized (this) {\n if (null != this.data && null != this.listener) {\n pending = this.data;\n this.data = null;\n listener = (CCNInterestListener) this.listener;\n }\n }\n if (null != pending) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback (\" + pending + \" data) for: {0}\", this.interest.name());\n synchronized (this) {\n this.deliveryPending = false;\n }\n manager.unregisterInterest(this);\n Interest updatedInterest = listener.handleContent(pending, interest);\n if (null != updatedInterest) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback: updated interest to express: {0}\", updatedInterest.name());\n manager.expressInterest(this.owner, updatedInterest, listener);\n }\n } else {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback skipped (no data) for: {0}\", this.interest.name());\n }\n } else {\n synchronized (this) {\n if (null != this.sema) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Data consumes pending get: {0}\", this.interest.name());\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINEST)) Log.finest(Log.FAC_NETMANAGER, \"releasing {0}\", this.sema);\n this.sema.release();\n }\n }\n if (null == this.sema) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback skipped (not valid) for: {0}\", this.interest.name());\n }\n }\n } catch (Exception ex) {\n _stats.increment(StatsEnum.DeliverContentFailed);\n Log.warning(Log.FAC_NETMANAGER, \"failed to deliver data: {0}\", ex);\n Log.warningStackTrace(ex);\n }\n }",
"public Result invoke() throws InterruptedException {\n // push the job to the queue. The manager thread will pull.\n queue.add(this);\n \n // wait for the manager to notify of success.\n // a more sophisticated controller could make this an async wait.\n // the purpose though is to force all comms with the camera to be\n // synchronous, and on a single 'controlled' thread.\n synchronized (this) {\n while (!complete) {\n this.wait();\n }\n }\n return result;\n }",
"public void run() {\n\n\t\tSimulation.logEvent(SimulationEvent.customerStarting(this));\n\t\ttry {\n\t\t\t/*\n\t\t\t * Customer attempts to enter the coffee shop here The Semaphore\n\t\t\t * blocks them when it reaches 0.\n\t\t\t */\n\t\t\ttableSpace.acquire();\n\t\t\t/*i do not use reentrantlocks between classes anymore because i need \n\t\t\t * some way for unique synchronization. \n\t\t\t * */\n\t\t\t\n\t\t\t\n\t\t\t/* The simulation logs the event once they have entered in */\n\t\t\tSimulation\n\t\t\t\t\t.logEvent(SimulationEvent.customerEnteredCoffeeShop(this));\n\t\t\t\n\t\t\t\n\t\t\tsynchronized (orders) {\n\t\t\t\torders.add(new FoodOrder(this.orderNum, this.order, this));\n\t\t\t\tSimulation.logEvent(SimulationEvent.customerPlacedOrder(this,\n\t\t\t\t\t\tthis.order, this.orderNum));\n\t\t\t\torders.notifyAll();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t/*This customer is notified that cook has completed the \n\t\t\t * order. It breaks out when the cook has finally placed \n\t\t\t * This notification is unique however.\n\t\t\t * */\n\t\t\twhile(Simulation.custMap.get(this) == false){\n\t\t\t\tThread.sleep(15);\n\t\t\t}\n\t\t\t\t\n\t\t\tSimulation.logEvent(SimulationEvent.customerReceivedOrder(this,\n\t\t\t\t\tthis.order, this.orderNum));\n\t\t\t\n\t\t\tSimulation\n\t\t\t\t\t.logEvent(SimulationEvent.customerLeavingCoffeeShop(this));\n\t\t\ttableSpace.release();\n\n\t\t} catch (InterruptedException e) {\n\n\t\t}\n\t}",
"public void alertTheWaiter(){\n Chef c = (Chef) Thread.currentThread();\n CommunicationChannel com = new CommunicationChannel(serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n state_fields[0] = c.getChefID();\n \tstate_fields[1] = c.getChefState();\n\n Message m_toServer = new Message(1, params, 0, state_fields, 2, null); \n Message m_fromServer;\n\n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n \t}\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n\n c.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }",
"private void waitOnFabric(int additional) {\n try {\n out(\"Wait %d milliseconds for peers to sync with each other\", gossipWaitTime + additional);\n TimeUnit.MILLISECONDS.sleep(gossipWaitTime + additional);\n } catch (InterruptedException e) {\n fail(\"should not have jumped out of sleep mode. No other threads should be running\");\n }\n }",
"@Override\n\t\tpublic void run() {\n\t\t\twhile(true){\n\t\t\t\ttry {\n\t\t\t\t\tsemaphore.acquire();\n\t\t\t\t\twhile(!list.isEmpty()){\n\t\t\t\t\t\tlist.remove(0);\n\t\t\t\t\t\tSystem.out.println(\"消费者消费一个产品,目前所剩\"+list.size()+\"个产品\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"队列空,等待生产者生产\");\n\t\t\t\t\tsemaphore.release();\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\n public void run() {\n while (count > 0) {\n count++;\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if (count == 10)\n customHandler.sendEmptyMessage(COUNT_10);\n if (count == 15)\n customHandler.sendEmptyMessage(COUNT_15);\n\n if (count > 30) {\n customHandler.sendEmptyMessage(COUNT_COMPLETE);\n break;\n }\n\n System.out.println(tag + \":: count =\" + count);\n if (!run)\n break;\n }\n }",
"private void awaitItems() throws IgniteInterruptedCheckedException {\n U.await(takeLatch);\n }",
"void await() throws InterruptedException\n {\n while (streams.containsKey(context))\n Thread.sleep(10);\n }",
"@Override\n public void run() {\n try {\n //noinspection InfiniteLoopStatement\n while (true) {\n int number = random.nextInt(4097);\n boolean successful;\n\n do {\n successful = buffer.add(number);\n\n if (successful) {\n continue;\n }\n\n // If we were not successful, wait until the size of the collection changes and try again.\n // We wait by acquiring a semaphore a first time and then a second time. The semaphore is released\n // in sizeChanged(IntBuffer), which enables the semaphore to be acquired that second time.\n semaphore.acquire();\n semaphore.acquire();\n\n // Now that we have the semaphore, release it so we \"clean up after ourselves,\" and try again.\n semaphore.release();\n } while(!successful);\n }\n\n } catch (InterruptedException ignored) {\n // Exit method because this thread was interrupted\n }\n }",
"@Override\n public void run() {\n transmit_set();\n }",
"void transact(Runnable work) {\n transact(\n () -> {\n work.run();\n return null;\n });\n }",
"public void drain() {\r\n if (getAndIncrement() == 0) {\r\n SimpleQueue<T> simpleQueue = this.queue;\r\n int i = this.consumed;\r\n int i2 = this.bufferSize;\r\n int i3 = i2 - (i2 >> 2);\r\n boolean z = this.sourceMode != 1;\r\n int i4 = 1;\r\n int i5 = i;\r\n SimpleQueue<T> simpleQueue2 = simpleQueue;\r\n int i6 = i5;\r\n while (true) {\r\n if (simpleQueue2 != null) {\r\n long j = LongCompanionObject.MAX_VALUE;\r\n InnerSubscription[] innerSubscriptionArr = (InnerSubscription[]) this.subscribers.get();\r\n boolean z2 = false;\r\n for (InnerSubscription innerSubscription : innerSubscriptionArr) {\r\n long j2 = innerSubscription.get();\r\n if (j2 != Long.MIN_VALUE) {\r\n j = Math.min(j2 - innerSubscription.emitted, j);\r\n z2 = true;\r\n }\r\n }\r\n long j3 = 0;\r\n if (!z2) {\r\n j = 0;\r\n }\r\n while (true) {\r\n if (j == j3) {\r\n break;\r\n }\r\n boolean z3 = this.done;\r\n try {\r\n Object poll = simpleQueue2.poll();\r\n boolean z4 = poll == null;\r\n if (!checkTerminated(z3, z4)) {\r\n if (z4) {\r\n break;\r\n }\r\n int length = innerSubscriptionArr.length;\r\n for (int i7 = 0; i7 < length; i7++) {\r\n InnerSubscription innerSubscription2 = innerSubscriptionArr[i7];\r\n if (!innerSubscription2.isCancelled()) {\r\n innerSubscription2.downstream.onNext(poll);\r\n innerSubscription2.emitted++;\r\n }\r\n }\r\n if (z) {\r\n i6++;\r\n if (i6 == i3) {\r\n ((Subscription) this.upstream.get()).request((long) i3);\r\n i6 = 0;\r\n }\r\n }\r\n j--;\r\n if (innerSubscriptionArr != this.subscribers.get()) {\r\n break;\r\n }\r\n j3 = 0;\r\n } else {\r\n return;\r\n }\r\n } catch (Throwable th) {\r\n Throwable th2 = th;\r\n Exceptions.throwIfFatal(th2);\r\n ((Subscription) this.upstream.get()).cancel();\r\n simpleQueue2.clear();\r\n this.done = true;\r\n signalError(th2);\r\n return;\r\n }\r\n }\r\n if (checkTerminated(this.done, simpleQueue2.isEmpty())) {\r\n return;\r\n }\r\n }\r\n this.consumed = i6;\r\n i4 = addAndGet(-i4);\r\n if (i4 != 0) {\r\n if (simpleQueue2 == null) {\r\n simpleQueue2 = this.queue;\r\n }\r\n } else {\r\n return;\r\n }\r\n }\r\n }\r\n }",
"public void bufferedAmountChange() {\n // Webrtc.org fires the bufferedAmountChange event from a different\n // thread (B) while locking the native send call on the current\n // thread (A). This leads to a deadlock if we try to lock this\n // instance from (B). So, this... pleasant workaround prevents\n // deadlocking the send call.\n CompletableFuture.runAsync(() -> {\n synchronized (this) {\n final long bufferedAmount = this.dc.bufferedAmount();\n // Unpause once low water mark has been reached\n if (bufferedAmount <= this.lowWaterMark && !this.readyFuture.isDone()) {\n log.debug(this.dc.label() + \" resumed (buffered=\" + bufferedAmount + \")\");\n this.readyFuture.complete(null);\n }\n }\n });\n }",
"public boolean isATMReadyTOUse() throws java.lang.InterruptedException;",
"public E take() throws InterruptedException,FileQueueClosedException;",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ta1.deposit(1000);\n\t\t\t}",
"private Mono<Employee> takeCall(Employee employee) {\n val seconds = RandomHelper.nextInt(from, to);\n return Mono.fromCallable(() -> sleepAndReturnEmployee(employee, seconds))\n .doOnSubscribe(s -> log.info(\"Employee {} will be attending a call for {} seconds\", employee, seconds))\n .doOnError(e -> log.error(\"There was an error doing blocking activity we will return employee to the queue {}\", employee))\n .onErrorReturn(employee);\n }",
"protected abstract long waitOnQueue();",
"public void runSynchronous() {\r\n\t\twhile (data.getPlayerNum() < data.getNumPlayers()) {\r\n\t\t\tPlayer player = data.getCurrentPlayer();\r\n\t\t\tString result = randomEventSimulator(player);\r\n\t\t\tMainGameWindow.setMessage(String.format(\"%s: %s\", player.getName(), result));\r\n\t\t\tMULETimer timer = new MULETimer(2000);\r\n\t\t\ttimer.startSynchronous();\r\n\t\t\tdata.nextPlayer();\r\n\t\t\tdata.savePoint();\r\n\t\t}\r\n\t\tdata.resetPlayerNum();\r\n\t\tdata.nextState();\r\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.cusumoer();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.cusumoer();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}"
] | [
"0.5869297",
"0.5671291",
"0.5588342",
"0.5580012",
"0.54532695",
"0.54360193",
"0.5405279",
"0.5325865",
"0.529883",
"0.5197707",
"0.51936036",
"0.5177192",
"0.5168258",
"0.51597404",
"0.51588076",
"0.50962245",
"0.508644",
"0.5084112",
"0.5068738",
"0.5047763",
"0.500785",
"0.50074637",
"0.5001345",
"0.49751145",
"0.49529517",
"0.49307144",
"0.49135384",
"0.49064043",
"0.49061477",
"0.48943335",
"0.48858365",
"0.4882138",
"0.4881154",
"0.48735914",
"0.48341748",
"0.48330536",
"0.48177174",
"0.48129982",
"0.48074174",
"0.4770425",
"0.47335413",
"0.47329018",
"0.47315016",
"0.47309202",
"0.47225395",
"0.4721188",
"0.47101578",
"0.47074428",
"0.47034323",
"0.47030607",
"0.4695735",
"0.4691302",
"0.46862185",
"0.4684159",
"0.46822262",
"0.46779558",
"0.46734998",
"0.4666617",
"0.46660703",
"0.46639645",
"0.4662757",
"0.46621582",
"0.4660343",
"0.46452346",
"0.46274188",
"0.4627381",
"0.4627238",
"0.46235028",
"0.46211234",
"0.46206713",
"0.4620646",
"0.4620642",
"0.46174553",
"0.46157405",
"0.46127",
"0.4609836",
"0.46000502",
"0.45983925",
"0.4594659",
"0.45896545",
"0.458795",
"0.45855287",
"0.45841983",
"0.45839718",
"0.4582586",
"0.4578435",
"0.45760274",
"0.45728368",
"0.4570015",
"0.45690635",
"0.45659104",
"0.45656276",
"0.45647788",
"0.456328",
"0.4562533",
"0.4559439",
"0.45533165",
"0.45523477",
"0.45510176",
"0.45510176"
] | 0.7313785 | 0 |
Returns the total number of consumed work units by the engine instance at hand since the engine's last deployment. | long getConsumedWorkUnits(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int getWorkingUnitsCount()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getService().getWorkingUnitsCount();\n\t}",
"public long getRemainingEstimate() {\n return addedFrontWork.size() + addedBackWork.size();\n }",
"protected long getLiveSetSize() {\n\t\t// Sum of bytes removed from the containers.\n\t\tlong removed = 0;\n\n\t\tfor (int i = 0; i < sets.length; i++)\n\t\t\tremoved += sets[i].getContainer().getBytesRemoved();\n\n\t\t/*\n\t\t * The total number of butes still alive is the throughput minus the number of\n\t\t * bytes either removed from the container or never added in the first place.\n\t\t */\n\t\tlong size = getThroughput() - removed - producerThreadPool.getBytesNeverAdded();\n\n\t\treturn (size > 0) ? size : 0;\n\t}",
"private int getNumberOfMachineUnits() {\r\n\t\tint machineUnitsCount = 0;\r\n\r\n\t\tfor (UnitType unitType : RepairableUnitTypes) {\r\n\t\t\tmachineUnitsCount += this.informationStorage.getCurrentGameInformation().getCurrentUnitCounts()\r\n\t\t\t\t\t.getOrDefault(unitType, 0);\r\n\t\t}\r\n\t\treturn machineUnitsCount;\r\n\t}",
"public Integer getWorkSize(){\r\n\t\treturn work.size();\t\t\r\n\t}",
"public int getTotalWorkerCount() {\n return this.workerCount;\n }",
"public static int consumedPower(){\n int consumedPower = 0;\n for (ElectricalHomeDevice device : allTrunedOnDevices){\n consumedPower += device.getDevicePower();\n }\n return consumedPower;\n }",
"java.math.BigInteger getNumberOfInstallments();",
"public int getRemainingUses() {\n return remainingUses;\n }",
"public long getRemaining() {\n\t\treturn disk_mgr.getRemaining();\n\t}",
"public int getTotalRunTime() {\n return totalRunTime;\n }",
"public int getSpace(){\n // iterate through nodes\n int totalSpace = 0;\n Collection<SupplyNode> nodeCol = t.values();\n Iterator<SupplyNode> it = nodeCol.iterator();\n \n // multiply resource count by resource space\n while (it.hasNext()){\n SupplyNode s = it.next();\n totalSpace += (s.getCurrent()*s.getResource().getCost());\n }\n \n // return\n return totalSpace;\n }",
"public static int totalSupply() {\n return totalSupplyGet();\n }",
"public Double getConsumedCapacityUnits() {\n return consumedCapacityUnits;\n }",
"public int totalCostOfComponents( ){\n\t\tint total=0;\n\t\tfor (Component temp : components){\n\t\t\ttotal+=temp.getCost();\n\t\t}\n\t\treturn total;\n\t}",
"public long getSystemTotal() {\n\t\t\treturn mSystem + mIntr + mSoftIrq;\n\t\t}",
"public double getOccupiedCpus () { return getCpuBaseResource().getOccupiedCapacity(); }",
"public int getMpUsed() {\n if (getLastStep() != null) {\n return getLastStep().getMpUsed();\n }\n return 0;\n }",
"public int getTotalSupply() {\n if (this.totalSupply == -1) {\n int tempTotalSupply = 0;\n for (G good : this.goods) {\n tempTotalSupply += good.getSupply();\n }\n this.totalSupply = tempTotalSupply;\n }\n return this.totalSupply;\n }",
"public static int getSupplyUsed() {\n return Atlantis.getBwapi().getSelf().getSupplyUsed() / 2;\n }",
"public long getTotalUpdates() {\n return executor.getTotalUpdates();\n }",
"public interface WorkConsumerService{\n\n /**\n * Consumes a single work unit.\n * <p>\n * Blocks for 15 s or until a work unit becomes consumable, if there is currently none. \n * \n */\n void consumeWorkUnit();\n\n /**\n * Returns the total number of consumed work units by the engine instance at hand since\n * the engine's last deployment.\n */\n long getConsumedWorkUnits();\n\n}",
"public int getTotalCapacity() {\n return totalCapacity;\n }",
"@Override\n\tpublic long getUsedSpace()\n\t{\n\t\treturn 0;\n\t}",
"public double getTotalUnits() {\n int total = 0;\n for(int i = 0; i < courses.size(); i++) {\n // don't count if units are null? idk how defensive I need to be (I choose not to check, units should never be null)\n // TODO: test with System.out\n Course course = courses.get(i);\n //if(!course.getUnits().equals(null))\n total += course.getUnits();\n }\n return total;\n }",
"public long getSystemTotalDifference() {\n\t\t\treturn (mSystem - mSystemPrevious) + (mIntr - mIntrPrevious) + (mSoftIrq - mSoftIrqPrevious);\n\t\t}",
"public double calcTotalCaloriesBurned() {\n double sum = 0.0;\n for (ExerciseModel exercise : exercises) {\n sum += exercise.getCalories();\n }\n\n return sum;\n }",
"public int currentCapacity() {\n\t\tList<Item> items = super.getItems();\n\n\t\tItem item;\n\t\tint sumCapacity = 0;\n\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\titem = items.get(i);\n\t\t\tsumCapacity += item.getCapacity();\n\t\t}\n\t\treturn sumCapacity;\n\t}",
"public long totalTime() {\n\t\tlong ret = 0;\n\t\tfor (Task l : plan) {\n\t\t\tret += l.getTaskLength();\n\t\t}\n\n\t\treturn ret;\n\t}",
"public final int size() {\r\n\t\tint SIZE = workoutList.size();\r\n\r\n\t\treturn SIZE;\r\n\t}",
"@Override\n\tpublic double calcConsumedEnergy() {\n\t\treturn (getBasicEnergyCost() * 4);\n\t}",
"public int getShipPartsNeededCount() {\n return (maxDays * 2) / 3;\n }",
"public double getTotalNumCpus () { return n.getResources(RESOURCETYPE_CPU).stream().mapToDouble(r->r.getCapacity()).sum (); }",
"int getTotalFree();",
"public int getFreeSpace() {\n\t\treturn this.getWeightLimit() - this.getCarriedWeight();\n\t}",
"int getTotalLength() {\n synchronized (lock) {\n return cache.getTotalLength();\n }\n }",
"public int getExpectedNumber() {\n return getWholeProcessCount();\n }",
"public int getNumActiveCashUnits() {\n int numActiveUnits = 0 ;\n for( final Trade buyTrade : this.posHldCashTrades ) {\n numActiveUnits += buyTrade.getNumActiveUnits() ;\n }\n return numActiveUnits ;\n }",
"public NM getNumberOfItemsPerUnit() { \r\n\t\tNM retVal = this.getTypedField(14, 0);\r\n\t\treturn retVal;\r\n }",
"private int jobLength(){\n LocalDate completedLocalDate = LocalDate.of(this.dateCompleted.getYear(), \n this.dateCompleted.getMonth(), this.dateCompleted.getDay());\n \n LocalDate startedLocalDate = LocalDate.of(this.dateStarted.getYear(), \n this.dateStarted.getMonth(), this.dateStarted.getDay());\n \n return startedLocalDate.until(completedLocalDate).getDays();\n }",
"long getTotalFreeSpaceInBytes();",
"long getTotalFreeSpaceInBytes();",
"public int howManyPieces() {\n int totalPieces = 0;\n // for each item in stock\n for (int i = 0; i < this._noOfItems; i++) {\n // add the quantity of the item to the sum\n totalPieces += this._stock[i].getQuantity();\n }\n // and return the total of quantities\n return totalPieces;\n }",
"public long getRemainingWork(FieldContext fieldContext) {\n\t\treturn 0;\n\t}",
"Integer getTotalStepCount();",
"public int how_many_work_item () throws BaseException {\n throw new BaseException(\"Not implemented\");\n }",
"protected int numberRemainingTickets()\n\t{\n\t\treturn tickets.size();\n\t}",
"public double getTotalUnits() {\n double totalUnits = 0;\n for (int i = 0; i < quarters.size(); i++) {\n totalUnits += quarters.get(i).getTotalUnits();\n }\n return totalUnits;\n }",
"protected int getTotalEnrolled() {\n return getTotalEnrolledEvening() + getTotalEnrolledMorning();\n }",
"public int getWorkRequired() {\n return time;\n }",
"public int totalCostOfComponents()\n\t{\n\t\tint total = 0;\n\t\tfor (Component comp: configuration.values())\n\t\t{\n\t\t\ttotal += comp.getCost();\n\t\t}\n\t\treturn total;\n\t}",
"double getCurrentTfConsumed();",
"@ComputerMethod\n private FloatingLong getEnergyUsage() {\n return getActive() ? energyContainer.getEnergyPerTick() : FloatingLong.ZERO;\n }",
"public static int getSupplyTotal() {\n return Atlantis.getBwapi().getSelf().getSupplyTotal() / 2;\n }",
"public long getAmount() {\n\t\tsynchronized (this.onlineObjects) {\n\t\t\treturn this.onlineObjects.size();\n\t\t}\n\t}",
"public double getCapacity() {\n\t\tIterator<Ball> it = this.contents.iterator();\n\t\tdouble retVal = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tretVal += it.next().getCapacity();\n\t\t}\n\t\treturn retVal;\n\t}",
"public java.lang.Integer getTotalOverdueCount6M30D() {\n return totalOverdueCount6M30D;\n }",
"public java.lang.Integer getTotalOverdueCount12M30D() {\n return totalOverdueCount12M30D;\n }",
"public long getTotalSpace(){\n return totalSpace;\n }",
"public double calculate()\n {\n return ((this.getProduction() * this.getNumberOfStillages() + this.getLastCount() - this.getPrevCount()) * this.getProfileLength());\n }",
"public long memoriaDisponível() {\n int numeroDeParticoes = numeroDeParticoesDeDisco();\n long memoriaDisponivel = 0;\n for (int i = 0; i < numeroDeParticoes; i++) {\n memoriaDisponivel += operatingSystem.getFileSystem().getFileStores()[i].getUsableSpace();\n }\n return memoriaDisponivel;\n }",
"BigInteger getLeftoverCPU() {\n return pm.getCPU().subtract(used_cpu);\n }",
"public int getTotalWait() {\n return totalWait;\n }",
"public long getSystemTotalPrevious() {\n\t\t\treturn mSystemPrevious + mIntrPrevious + mSoftIrqPrevious;\n\t\t}",
"public long getEstimatedWorkspaceSize() {\n return estimatedWorkspaceSize;\n }",
"public java.lang.Integer getTotalOverdueCount6M() {\n return totalOverdueCount6M;\n }",
"public int getTotalResultsAvailable() {\n\t\tint total = 0;\n\t\tif (results != null) {\n\t\t\tBigInteger count = results.getTotalResultsAvailable();\n\t\t\ttotal = count.intValue();\n\t\t}\n\t\treturn total;\n\t}",
"public Duration getActualWork()\r\n {\r\n return (m_actualWork);\r\n }",
"@ComputerMethod\n private FloatingLong getEnergyUsage() {\n return energyContainer.getEnergyPerTick();\n }",
"public int getRemainingCapacity() { // get the remaining capacity\n\t\treturn maximumCapacity - cargoCapacity;\n\t}",
"public double getOccupiedRamGB () { return getRamBaseResource().getOccupiedCapacity(); }",
"public int sumCalories() {\n int calories = 0;\n\n for (Food f : units) {\n calories += f.getCalories();\n }\n\n return calories;\n }",
"private long computeNumChunks() {\n Long storedLastSCId = lobProps.getLastSuperChunkId();\n\n if (storedLastSCId == null) {\n /* Failed between write of first chunk and metadata. */\n storedLastSCId = 1l;\n }\n\n /* Determine the last recorded saved super chunk. */\n long lastSCId = storedLastSCId + 1;\n long lastCId = findLastChunkInSuperChunk(lastSCId);\n if (lastCId == -1) {\n /* Look in the previous super chunk. */\n lastSCId--;\n lastCId = findLastChunkInSuperChunk(lastSCId);\n if (lastCId == -1) {\n if (lastSCId == 1) {\n /* At start, no chunks were written. */\n return 0;\n }\n final String msg = \"Expected at least one chunk for \" +\n lastSCId + \" Delete the LOB and retry.\";\n throw new IllegalStateException(msg);\n\n }\n }\n\n /* Have the last chunk. */\n return ((lastSCId - 1) * chunksPerPartition) + lastCId;\n }",
"public Long getUsedSpace() {\n return usedSpace;\n }",
"public double getConsumedPower() {\n return mPowerComponents.getConsumedPower(UNSPECIFIED_DIMENSIONS);\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getWorkitemsProcessed() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(WORKITEMSPROCESSED_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getWorkitemsProcessed() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(WORKITEMSPROCESSED_PROP.get());\n }",
"public long remainingVolume() {\n return volume - volumeSold() - volumeActiveCritters();\n }",
"public Integer getConsumption() {\r\n return consumption;\r\n }",
"public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }",
"public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }",
"public int getLectureTotalSize() {\n return tutLabGroups.get(\"_LEC\")[1];\n }",
"public double getTotalCost() {\n cost = spr.calculateCost();\n return cost;\n }",
"public java.lang.Integer getTotalOverdueCount24M30D() {\n return totalOverdueCount24M30D;\n }",
"public int getRemaining() {\n\t\treturn activeQuest.getRequirement_left();\n\t}",
"private float getMemoryUsage() {\n\t\tRuntime runtime = Runtime.getRuntime();\n\t\tlong allocatedMemory = runtime.totalMemory();\n\t\tlong freeMemory = runtime.freeMemory();\n\t\treturn (allocatedMemory - freeMemory);\n\t}",
"public java.lang.Integer getUsedCounter() {\n\t\treturn this.usedCounter;\n\t}",
"public final int bytesConsumed() {\n/* 218 */ return this.bytesConsumed;\n/* */ }",
"public Long getProgressTotalToDo();",
"org.apache.xmlbeans.XmlInteger xgetNumberOfInstallments();",
"public int getWeeksElapsed() {\n return weeksElapsed;\n }",
"public long getTotalTime() {\n var timeStarted = getStartTime();\n var timeFinished = getEndTime();\n return timeStarted.until(timeFinished, SECONDS);\n }",
"public int getRunningCount() {\r\n return root.getRunningCount();\r\n }",
"public int size() {\n processQueue();\n return weakCache.size();\n }",
"public default int getActiveRequirementCount() {\n\t\tint result = 0;\n\t\tif (getRequirements() != null) {\n\t\t\tfor (Requirement req : getRequirements()) {\n\t\t\t\tif (!req.isArchived()) {\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"protected long calculateLiveMemoryUsage() {\n // NOTE: MemoryUsageGaugeSet provides memory usage statistics but we do not use them\n // here since it will require extra allocations and incur cost, hence it is cheaper to use\n // MemoryMXBean directly. Ideally, this call should not add noticeable\n // latency to a query -- but if it does, please signify on SOLR-14588\n return MEMORY_MX_BEAN.getHeapMemoryUsage().getUsed();\n }",
"public int getNewSpace() {\n if (!isValid()) return 0;\n int ret = 0;\n ret += (getMode().isCollection()) ? getTransportable().getSpaceTaken()\n : -getTransportable().getSpaceTaken();\n if (hasWrapped()) {\n ret += sum(wrapped, Cargo::getNewSpace);\n }\n return ret;\n }",
"public String getEngineSize() {\r\n return ENGINE_SIZE[engineSize]; }",
"long getExcutorTasksInWorkQueueCount();",
"public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }"
] | [
"0.68623614",
"0.6701468",
"0.65126973",
"0.6466411",
"0.6456755",
"0.6444801",
"0.6379554",
"0.62889105",
"0.6143934",
"0.61260265",
"0.61219305",
"0.60896176",
"0.607011",
"0.60480064",
"0.60337555",
"0.6022919",
"0.6005468",
"0.5998677",
"0.5997268",
"0.5993613",
"0.5993518",
"0.59790003",
"0.59769523",
"0.5971831",
"0.5971111",
"0.5966083",
"0.5965027",
"0.5956184",
"0.5933203",
"0.59286785",
"0.5926583",
"0.59174836",
"0.5902269",
"0.5895785",
"0.58911055",
"0.58861583",
"0.5885056",
"0.5877163",
"0.587395",
"0.5858854",
"0.5853635",
"0.5853635",
"0.58446974",
"0.5842056",
"0.58283204",
"0.58196765",
"0.5817776",
"0.58129716",
"0.580986",
"0.58053046",
"0.58005065",
"0.57986575",
"0.5798283",
"0.57956403",
"0.579538",
"0.57781565",
"0.5768981",
"0.5759654",
"0.57491356",
"0.57374394",
"0.57287353",
"0.57272315",
"0.5727055",
"0.57261854",
"0.57223177",
"0.5716965",
"0.5710885",
"0.570964",
"0.57082105",
"0.57053137",
"0.5704118",
"0.57028735",
"0.56987387",
"0.5689223",
"0.5679176",
"0.56765985",
"0.5675939",
"0.56720185",
"0.5670607",
"0.56675595",
"0.56675595",
"0.56627446",
"0.56618214",
"0.5661689",
"0.5659594",
"0.565547",
"0.5651502",
"0.5650379",
"0.56482697",
"0.5647468",
"0.5642949",
"0.5641667",
"0.56416506",
"0.56396806",
"0.56302774",
"0.56275034",
"0.5624357",
"0.5622947",
"0.56156504",
"0.5614056"
] | 0.76616466 | 0 |
Convert to weird array type. From the documentation of SimpleExpandableListAdapter: StopGroupings: A List of Maps. Each entry in the List corresponds to one group in the list. The Maps contain the data for each group, and should include all the entries specified in "groupFrom". StopGroupings: A List of Maps. Each entry in the List corresponds to one group in the list. The Maps contain the data for each group, and should include all the entries specified in "groupFrom". Stops: A List of List of Maps. Each entry in the outer List corresponds to a group (index by group position), each entry in the inner List corresponds to a child within the group (index by child position), and the Map corresponds to the data for a child (index by values in the childFrom array). The Map contains the data for each child, and should include all the entries specified in "childFrom" | private void initMaps(Context cxt, ObaResponse response) {
if (response.getCode() == ObaApi.OBA_OK) {
final ObaData data = response.getData();
final ObaArray<ObaStop> stops = data.getStops();
final Map<String,ObaStop> stopMap = getStopMap(stops);
final ObaArray<ObaStopGrouping> groupings = data.getStopGroupings();
final int groupingsLen = groupings.length();
for (int groupingIndex = 0; groupingIndex < groupingsLen; ++groupingIndex) {
final ObaStopGrouping grouping = groupings.get(groupingIndex);
final ObaArray<ObaStopGroup> groups = grouping.getStopGroups();
final int groupsLen = groups.length();
for (int i=0; i < groupsLen; ++i) {
final HashMap<String,String> groupMap = new HashMap<String,String>(1);
final ObaStopGroup group = groups.get(i);
// We can initialize the stop grouping values.
groupMap.put("name", group.getName());
// Add this to the groupings map
// Create the sub list (the list of stops in the group)
final List<String> stopIds = group.getStopIds();
final int stopIdLen = stopIds.size();
final ArrayList<HashMap<String,String>> childList =
new ArrayList<HashMap<String,String>>(stopIdLen);
for (int j=0; j < stopIdLen; ++j) {
final String stopId = stopIds.get(j);
final ObaStop stop = stopMap.get(stopId);
HashMap<String,String> groupStopMap =
new HashMap<String,String>(2);
if (stop != null) {
groupStopMap.put("name", stop.getName());
String dir = cxt.getString(
UIHelp.getStopDirectionText(
stop.getDirection()));
groupStopMap.put("direction", dir);
groupStopMap.put("id", stopId);
mStopMap.put(stopId, stop);
}
else {
groupStopMap.put("name", "");
groupStopMap.put("direction", "");
groupStopMap.put("id", stopId);
}
childList.add(groupStopMap);
}
mStopGroups.add(groupMap);
mStops.add(childList);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<AbstractMap.SimpleImmutableEntry<Stop, Integer>> getStops() { return stops;}",
"public Object[] getGroupList() {\n return grouptabs.keySet().toArray();\n }",
"public COSArray toList() \n {\n return array;\n }",
"private void makeArrays()\n\t{\n\t\tfor (String key : sub.keySet())\n\t\t\tsub.put(key, ((List<String>) sub.get(key)).toArray(s0));\n\t\tfor (String key : attrs.keySet())\n\t\t\tattrs.put(key, ((List<String>) attrs.get(key)).toArray(s0));\n\t\tfor (String key : defs.keySet())\n\t\t\tdefs.put(key, ((List<String>) defs.get(key)).toArray(s0));\n\t\tfor (String key : smodes.keySet())\n\t\t{\n\t\t\tList<Integer> list = (List<Integer>) smodes.get(key);\n\t\t\tint[] array = new int[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++)\n\t\t\t\tarray[i] = list.get(i);\n\t\t\tsmodes.put(key, array);\n\t\t}\n\t\tfor (String key : amodes.keySet())\n\t\t{\n\t\t\tList<Integer> list = (List<Integer>) amodes.get(key);\n\t\t\tint[] array = new int[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++)\n\t\t\t\tarray[i] = list.get(i);\n\t\t\tamodes.put(key, array);\n\t\t}\n\t}",
"List<Stop> getStops();",
"protected Object[][] getScheduleData() {\r\n\t\tScheduleItem[] arrScheduleItems = scheduleWindow.getSubmitSchedule().getScheduleItems();\r\n\t\tObject[][] arr = new Object[arrScheduleItems.length][];\r\n\t\tfor (int i = 0; i < arrScheduleItems.length; i++) {\r\n\t\t\tarr[i] = new Object[] { arrScheduleItems[i].toString(true) };\r\n\t\t\t// \r\n\t\t}\r\n\t\treturn arr;\r\n\t}",
"protected POSLineItemWrapper[] getWrappersForGroupings(POSLineItemGrouping[] groups) {\n Vector rtnVal = new Vector();\n for (int idx = 0; idx < groups.length; idx++) {\n POSLineItemGrouping grp = groups[idx];\n POSLineItemDetail[] details = grp.getLineItemDetailsArray();\n for (int dIdx = 0; dIdx < details.length; dIdx++) {\n POSLineItemWrapper wrap = new POSLineItemWrapper(details[dIdx]);\n for (Iterator it = rtnVal.iterator(); it.hasNext(); ) {\n if (((POSLineItemWrapper)it.next()).addWrapper(wrap)) {\n wrap = null;\n break;\n }\n }\n if (wrap != null) {\n rtnVal.add(wrap);\n }\n }\n }\n return ((POSLineItemWrapper[])rtnVal.toArray(new POSLineItemWrapper[0]));\n }",
"Entry<V>[][] getList() {\n @SuppressWarnings(\"unchecked\")\n Entry<V>[][] res = new Entry[4][2 * sizeCache];\n int i = 0;\n for (Entry<V> e = list1.next; e != mid1.next; e = e.next) {\n res[0][i++] = e;\n }\n\n i = 0;\n for (Entry<V> e = mid1.next; e != list1; e = e.next) {\n res[1][i++] = e;\n }\n\n i = 0;\n for (Entry<V> e = list2.next; e != mid2.next; e = e.next) {\n res[2][i++] = e;\n }\n\n i = 0;\n for (Entry<V> e = mid2.next; e != list2; e = e.next) {\n res[3][i++] = e;\n }\n\n\n return res;\n }",
"public String[] obtainStops() {\n\n String[] stopsNone = { \"No stops found\" };\n String[] stopsArbutus = { \"Commons Dr. & Park Rd.\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"Administration Dr. Bus Shelter\", \"Hilltop Cir. & Hilltop Rd.\", \"Hilltop Cir. & Walker Ave.\", \"Hilltop Cir. & Center Rd.\", \"Poplar Ave. & Stadium Lot\", \"TRC @ Linden Ave\", \"Westland Blvd. & Circle Dr.\", \"Westland Blvd. & Courtney Rd.\", \"Maiden Choice La. & Westland Blvd\", \"Maiden Choice La. & Warren Tree\", \"Maiden Choice La. & Wilkens Ave\", \"Maiden Choice La. & Grouse Ct\", \"Maiden Choice La. & Symmington Aven.\"};\n String[] stopsArundel = { \"Commons Dr. & Park Rd.\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"BWI Marc Station\", \"Arundel Mills Mall Visitor Entrace #5\", \"BWI Marc Station\", \"Administration Dr. Bus Shelter\", \"Hilltop Circle & Hilltop Rd.\" };\n String[] stopsCatonsville = { \"Commons Dr. & Park Rd.\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"Administration Dr. Bus Shelter\", \"Rolling Rd @YMCA\", \"Rolling Rd @Valley Rd (CCBC)\", \"Catonsville High @Bloomsbury Ave\", \"Mellor Ave & Bloomsbury Ave\" };\n String[] stopsDowntownA = { \"Commons Dr. & Park Rd\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"Greyhound Station @ Haines\",\"MLK Blvd & Pratt St (UMB)\", \"Green St & Fayette St\", \"Green St & Lombard St (UMB)\" };\n\n if ( this.longName.toLowerCase().contains(\"Arbutus\".toLowerCase()) ) {\n return stopsArbutus;\n }\n if ( this.longName.contains(\"Arundel\") ) {\n return stopsArundel;\n }\n if ( this.longName.contains(\"Catonsville\") ) {\n return stopsCatonsville;\n }\n if ( this.longName.contains(\"Downtown\") ) {\n return stopsDowntownA;\n }\n\n return stopsNone;\n\n }",
"public List<Stop> getStopsMap()\r\n {\r\n return stops_map;\r\n }",
"public Object[] toArray() {\r\n \tObject[] resultForward = new Object[size];\r\n \tboolean closedForward = true;\r\n \tint iForward = 0;\r\n \tfor (Entry e = header.next; e != header && iForward < size; e = e.next) {\r\n \t\tif (e == null) {\r\n \t\t\tclosedForward = false;\r\n \t\t\tbreak;\r\n \t\t}\r\n \t\tresultForward[iForward++] = e.element;\r\n \t}\r\n\r\n \tObject[] resultBackward = new Object[size];\r\n \tboolean closedBackward = true;\r\n \tint iBackward = size;\r\n \tfor (Entry e = header.previous; e != header && iBackward < size; e = e.previous) {\r\n \t\tif (e == null) {\r\n \t\t\tclosedBackward = false;\r\n \t\t\tbreak;\r\n \t\t}\r\n \t\tresultBackward[--iBackward] = e.element;\r\n \t}\r\n\r\n \tif (closedForward || (!closedForward && iBackward == size)) {\r\n \t\treturn resultForward;\r\n \t}\r\n \telse if (closedBackward || (!closedBackward && iForward == 0)) {\r\n \t\treturn resultBackward;\r\n \t}\r\n \telse {\r\n \t\tObject[] result = new Object[size];\r\n \t\tList<?> l = Arrays.asList(resultBackward);\r\n \t\tCollections.reverse(l);\r\n \t\tresultBackward = l.toArray();\r\n \t\tSystem.arraycopy(resultForward, 0, result, 0, iForward);\r\n \t\tif (iForward < size)\r\n \t\t\tSystem.arraycopy(resultBackward, 0, result, iForward, (size - iBackward));\r\n \t\treturn result;\r\n \t}\r\n }",
"public List<List<List<List<Employee>>>> getPlanning() {\n if(planning == null){\n return new ArrayList<>();\n }\n Gson gson = new Gson();\n\n List<List<List<List<LinkedTreeMap>>>> a = gson.fromJson(planning,ArrayList.class);\n\n List<List<List<List<Employee>>>> formattedList= new ArrayList<>();\n for(List<List<List<LinkedTreeMap>>> day: a){\n List<List<List<Employee>>> shiftsADay = new ArrayList<>();\n for(List<List<LinkedTreeMap>> shift: day){\n List<List<Employee>> shiftTypesInShift = new ArrayList<>();\n for(List<LinkedTreeMap> shftType : shift ){\n List<Employee> employeesInShift= new ArrayList<>();\n for(LinkedTreeMap empl : shftType){\n JsonObject j = gson.toJsonTree(empl).getAsJsonObject();\n Employee employee = gson.fromJson(j,Employee.class);\n employeesInShift.add(employee);\n }\n shiftTypesInShift.add(employeesInShift);\n }\n shiftsADay.add(shiftTypesInShift);\n }\n formattedList.add(shiftsADay);\n }\n\n return formattedList;\n }",
"List<Map.Entry<Long, String>> getStopTimeTable(String stopId) throws Exception;",
"@Override\n public List<Entry> toArrayList() {\n return members;\n }",
"public java.util.List<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>> getRoute()\r\n {\r\n List<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>> roads_map = new ArrayList<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>>();\r\n java.util.AbstractMap.SimpleImmutableEntry<Street,Stop> entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(null, null);\r\n\r\n for (Street s : streets_map)\r\n {\r\n if (s.getStops().isEmpty() == false)\r\n {\r\n for (int i = 0; i < s.getStops().size(); i++)\r\n {\r\n entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(s,s.getStops().get(i));\r\n }\r\n\r\n }\r\n else\r\n {\r\n entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(s,null);\r\n }\r\n\r\n roads_map.add(entry);\r\n\r\n }\r\n\r\n return roads_map;\r\n\r\n }",
"private List<ExpandGroup> initData() {\n List<ExpandGroup> parentObjects = new ArrayList<>();\n\n // Initialize outside so we can use it more than once\n ExpandGroup mExpand;\n\n try {\n // For each ParentView\n for (int i = 0; i < myQueue.getInstance().getList().size(); i++) {\n // Create a ExpandGroup that will hold the children of each Parent (The assignment occur_name and due date)\n // ExpandGroup takes a String for the Title and a List<? extends ExpandableGroup>\n String Title = myQueue.getInstance().getList().get(i).toString();\n List<?> myChildList = myQueue.getInstance().getList().get(i).getMyTaskList();\n mExpand = new ExpandGroup(Title, myChildList);\n Log.d(\"childList\", \"myQueue.getInstance().getList().get(i).getMyTaskList() \" + \"of size \" + myQueue.getInstance().getList().get(i).getObjectList().size() + \" inserted into mExpand\");\n Log.d(\"childList\", myQueue.getInstance().getList().get(i).getMyTaskList().get(0).getClass().toString());\n\n parentObjects.add(mExpand);\n }\n } catch (IndexOutOfBoundsException e) {\n Log.d(\"QueueFragment\", \"Nothing in queue, catching \" + e.toString());\n }\n //We finished populating the parents so we can return the list\n return parentObjects;\n }",
"@Nullable\r\n List<VnfdPlacementGroupMaps> getVnfdPlacementGroupMaps();",
"public List<WorkGroupDTO> getWorkGroupToAgent();",
"public com.guidewire.datamodel.DatetimeorderingDocument.Datetimeordering[] getDatetimeorderingArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(DATETIMEORDERING$2, targetList);\r\n com.guidewire.datamodel.DatetimeorderingDocument.Datetimeordering[] result = new com.guidewire.datamodel.DatetimeorderingDocument.Datetimeordering[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }",
"public long[] toArray() {\n/* 406 */ long[] array = new long[(int)(this.max - this.min + 1L)];\n/* 407 */ for (int i = 0; i < array.length; i++) {\n/* 408 */ array[i] = this.min + i;\n/* */ }\n/* 410 */ return array;\n/* */ }",
"public List<LocationGroup> getStopLocationList() {\n return stopLocationList;\n }",
"public POSLineItemWrapper[] getRetailExportLineItemsArray() {\n Vector rtnVal = new Vector();\n POSLineItem[] items = compositePOSTransaction.getLineItemsArray();\n for (int idx = 0; idx < items.length; idx++) {\n //if(!((CMSItem)items[idx].getItem()).isConcessionItem() && !((CMSItem)items[idx].getItem()).getVatCode().equals(\"0\"))\n if (((CMSItem)items[idx].getItem()).getVatRate() != null\n && ((CMSItem)items[idx].getItem()).getVatRate().doubleValue() > 0) {\n rtnVal.add(items[idx]);\n }\n }\n Set set = new HashSet();\n for (Iterator it = rtnVal.iterator(); it.hasNext(); ) {\n POSLineItem line = (POSLineItem)it.next();\n set.add(line.getLineItemGrouping());\n }\n return (getWrappersForGroupings((POSLineItemGrouping[])set.toArray(new POSLineItemGrouping[0])));\n }",
"public org.landxml.schema.landXML11.TimingDocument.Timing[] getTimingArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(TIMING$2, targetList);\r\n org.landxml.schema.landXML11.TimingDocument.Timing[] result = new org.landxml.schema.landXML11.TimingDocument.Timing[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }",
"public float[][] getInkList() {\n/* 501 */ COSBase base = getCOSObject().getDictionaryObject(COSName.INKLIST);\n/* 502 */ if (base instanceof COSArray) {\n/* */ \n/* 504 */ COSArray array = (COSArray)base;\n/* 505 */ float[][] inkList = new float[array.size()][];\n/* 506 */ for (int i = 0; i < array.size(); i++) {\n/* */ \n/* 508 */ COSBase base2 = array.getObject(i);\n/* 509 */ if (base2 instanceof COSArray) {\n/* */ \n/* 511 */ inkList[i] = ((COSArray)array.getObject(i)).toFloatArray();\n/* */ }\n/* */ else {\n/* */ \n/* 515 */ inkList[i] = new float[0];\n/* */ } \n/* */ } \n/* 518 */ return inkList;\n/* */ } \n/* 520 */ return new float[0][0];\n/* */ }",
"ArrayList<TTC> generateSegments() {\n if ((START_STATION instanceof Station) && (endStation instanceof Station)) {\n ArrayList<TTC> route = TTC.SUBWAY_LIST.get(NUMBER);\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n } else {\n ArrayList<TTC> route = TTC.BUS_MAP.get((START_STATION).getNUMBER());\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n }\n }",
"@Override\n public int[] toArray() {\n int[] result = new int[size];\n Entry tmp = first;\n for (int i = 0; i < size; i++) {\n result[i] = tmp.value;\n tmp = tmp.next;\n }\n return result;\n }",
"protected ArrayList<DataToPoint> getToPoints() {\n\t\treturn toPoints.stream().map(e -> e.toPoint)\n\t\t\t\t.collect(Collectors.toCollection(ArrayList::new));\n\t}",
"Object[] getChildArray();",
"private static List<TreeMap<String, String>> formatJSONArray(String value) {\n\t\tJSONArray ja = JSON.parseArray(value);\n\t\tList<TreeMap<String, String>> arrayList = Lists.newArrayList();\n\t\tfor (int i = 0; i < ja.size(); i++) {\n\t\t\tarrayList.add(covertToTreeMap(JSON.toJSONString(ja.get(i))));\n\t\t}\n\t\treturn arrayList;\n\t}",
"@NonNull\n/* */ private Observable<double[]> touchEventToOutlineSegmentArray() {\n/* 207 */ return this.mTouchEventSubject.serialize().observeOn(Schedulers.computation()).map(new Function<InkEvent, double[]>()\n/* */ {\n/* */ public double[] apply(InkEvent inkEvent) throws Exception {\n/* 210 */ Utils.throwIfOnMainThread();\n/* */ \n/* */ \n/* 213 */ InkEventType eventType = inkEvent.eventType;\n/* 214 */ float x = inkEvent.x;\n/* 215 */ float y = inkEvent.y;\n/* 216 */ float pressure = inkEvent.pressure;\n/* */ \n/* 218 */ return PointProcessor.this.handleTouches(eventType, x, y, pressure);\n/* */ }\n/* */ });\n/* */ }",
"public abstract ArrayList<Key> toArrayList();",
"public ArrayList getAddedTargets(String busGroupId) throws Exception {\r\n ArrayList tableName = new ArrayList();\r\n String getAddedTargetMeas = getResourceBundle().getString(\"getAddedTargetMeas\");\r\n String getAddedTargets = getResourceBundle().getString(\"getAddedTargets\");\r\n\r\n Object grpObj[] = new Object[1];\r\n grpObj[0] = busGroupId;\r\n String fgetAddedTargetMeas = buildQuery(getAddedTargetMeas, grpObj);\r\n PbReturnObject tarMeas = execSelectSQL(fgetAddedTargetMeas);\r\n Object measure[] = new Object[1];\r\n String measureId = \"\";\r\n String measureName = \"\";\r\n String targetId = \"\";\r\n String targetName = \"\";\r\n for (int m = 0; m < tarMeas.getRowCount(); m++) {\r\n BusinessGrpsTreeTable table = new BusinessGrpsTreeTable();\r\n measureId = tarMeas.getFieldValueString(m, \"PRG_MEASURE_ID\");\r\n measureName = tarMeas.getFieldValueString(m, \"MEASURE_NAME\");\r\n measure[0] = measureId;\r\n table.setTargetMeasId(measureId);\r\n table.setTargetMeasName(measureName);\r\n String fingetAddedTargets = buildQuery(getAddedTargets, measure);\r\n PbReturnObject tarObj = execSelectSQL(fingetAddedTargets);\r\n if (tarObj.getRowCount() == 0) {\r\n table.setEndTable(\"true\");\r\n }\r\n // tableName.add(table);\r\n tableName.add(table);\r\n for (int y = 0; y < tarObj.getRowCount(); y++) {\r\n BusinessGrpsTreeTable sectable = new BusinessGrpsTreeTable();\r\n targetId = tarObj.getFieldValueString(y, \"TARGET_ID\");\r\n targetName = tarObj.getFieldValueString(y, \"TARGET_NAME\");\r\n sectable.setTargetId(targetId);\r\n sectable.setTargetMinTimeLevel(tarObj.getFieldValueString(y, \"MIN_TIME_LEVEL\"));\r\n sectable.setTargetName(targetName);\r\n\r\n if (y + 1 == tarObj.getRowCount()) {\r\n sectable.setEndTable(\"true\");\r\n }\r\n tableName.add(sectable);\r\n }\r\n\r\n\r\n }\r\n\r\n return tableName;\r\n\r\n }",
"@Explain(displayName = \"grouping sets\")\n @Signature\n public List<Long> getListGroupingSets() {\n if (groupingSetsPresent) {\n return listGroupingSets;\n }\n return null;\n }",
"public Object[] toArray() {\n\t\tint k;\n\t\tNode p;\n\n\t\tObject[] retArray = new Object[mSize];\n\t\tfor (k = 0, p = mHead.next; k < mSize; k++, p = p.next)\n\t\t\tretArray[k] = p.data;\n\t\treturn retArray;\n\t}",
"private List<RouteInfo> createList() {\r\n\r\n List<RouteInfo> results = new ArrayList<>();\r\n\r\n for (String temp [] : stops) {\r\n\r\n RouteInfo info = new RouteInfo();\r\n info.setTitle(temp[0]);\r\n info.setRouteName(\"Stop ID: \" + temp[1]);\r\n info.setRouteDescription(\"Next bus at: \");\r\n results.add(info);\r\n }\r\n\r\n return results;\r\n }",
"public ArrayList<ArrayList<Integer>> buildingOutline(int[][] buildings) {\n ArrayList<ArrayList<Integer>> rst = new ArrayList<>();\n if(buildings==null || buildings.length==0){\n return rst;\n }\n\n ArrayList<Edge> edges = new ArrayList<>();\n PriorityQueue<Integer> heights = new PriorityQueue<>(10, Collections.reverseOrder());\n for(int[] one : buildings){\n edges.add(new Edge(one[0],true,one[2]));\n edges.add(new Edge(one[1],false,one[2]));\n }\n //shit stupid question\n Collections.sort(edges, new Comparator<Edge>(){\n public int compare(Edge b1, Edge b2){\n if(b1.x!=b2.x){\n return b1.x - b2.x;\n } else if(b1.isStart && b2.isStart){\n return b2.h - b1.h;\n } else if(!b1.isStart && !b2.isStart){\n return b1.h - b2.h;\n } else if(b1.isStart){\n return -1;\n } return 1;\n\n }\n });\n\n ArrayList<Integer> otl = new ArrayList<>();\n for(Edge e : edges){\n if(otl.size()==0){\n heights.add(e.h);\n otl.add(e.x);\n continue;\n }\n if(e.isStart==true){\n\n int hi = heights.peek();\n\n heights.add(e.h);\n if(e.h>hi){\n otl.add(e.x);\n otl.add(hi);\n rst.add(otl);\n otl = new ArrayList<>();\n otl.add(e.x);\n }\n }else{\n heights.remove(e.h);\n if(heights.size()==0){\n otl.add(e.x);\n otl.add(e.h);\n rst.add(otl);\n otl = new ArrayList<>();\n continue;\n }\n int hi = heights.peek();\n\n if(e.h>hi){\n otl.add(e.x);\n otl.add(e.h);\n rst.add(otl);\n otl = new ArrayList<>();\n otl.add(e.x);\n }\n }\n\n }\n return rst;\n }",
"public Gr[] fetchObservations (int start, int stop){\n\t\tArrayList<Gr> subAL = new ArrayList<Gr>();\n\t\tint[] pos = grGraph.getBasePositions();\n\t\tfloat[] val = grGraph.getValues();\n\t\tfor (int i=0; i< pos.length; i++){\n\t\t\tif (pos[i]>= start && pos[i]<= stop) subAL.add(new Gr(pos[i], val[i]));\n\t\t}\n\t\tGr[] slice = new Gr[subAL.size()];\n\t\tsubAL.toArray(slice);\n\t\treturn slice;\n\t}",
"public final List<BasePair> values(){\n return new ArrayList<BasePair>(layoutMap.values());\n }",
"public Collection<String> retrieveTraceEventInfoTracingIDWithGroup(Hashtable criteria)\n {\n String mn = \"retrieveTraceEventInfoTracingIDWithGroup\";\n \n Long fromStartDateTime = (Long)criteria.get(IArchiveConstant.CRITERIA_FROM_START_DATE_TIME);\n Long toStartDateTime = (Long)criteria.get(IArchiveConstant.CRITERIA_TO_START_DATE_TIME);\n String groupListInStr = (String)criteria.get(IArchiveConstant.GROUP_INFO);\n Collection<String> groupList = convertStrToCollection(groupListInStr);\n \n if(fromStartDateTime == null)\n throw new NullPointerException(\"[AuditTrailArchiveManager.archiveOrphanTraceEventInfo] fromStartDateTime can't be Null ...\");\n if(toStartDateTime == null)\n {\n throw new NullPointerException(\"[AuditTrailArchiveManager.archiveOrphanTraceEventInfo] toStartDateTime can't be Null ...\");\n } \n else\n {\n ArrayList<String> tracingIDsWithGroup = new ArrayList<String>();\n TraceEventInfoDAO dao = new TraceEventInfoDAO();\n \n List<String> tracingIDs = dao.getTraceEventInfoTracingIDByEventOccuredTime(new Date(fromStartDateTime), new Date(toStartDateTime));\n \n return filterTracingIDs(tracingIDs, true, groupList);\n }\n }",
"public ArrayList buildGroup(AbstractEntityInterface anEntity) {\n/* 25 */ ArrayList resultList = new ArrayList();\n/* 26 */ if (!(anEntity instanceof lrg.memoria.core.Class)) {\n/* 27 */ return resultList;\n/* */ }\n/* 29 */ ModelElementList modelElementList = ((DataAbstraction)anEntity).getAncestorsList();\n/* 30 */ modelElementList.remove(anEntity);\n/* 31 */ return modelElementList;\n/* */ }",
"Object[] elements(Object[] destination) {\n return elements.toArray(destination);\n }",
"public Object[] toArray()\n\t{\n\t\treturn list.toArray();\n\t}",
"public abstract long[] toLongArray();",
"public java.lang.Object[] getTimeLimitAsArray();",
"void transform(Map<String, List<Map<String,String>>> data, long startTime, long endTime);",
"public String[] getChildList() {\n if (this.children == null) {\n return this.pointsByChild.keySet().toArray(new String[this.pointsByChild.size()]);\n } else {\n return this.children.clone();\n }\n }",
"public Hashtable toHashtable() {\n\t\tHashtable ht = new Hashtable();\n\t\t\n\t\tif ((null != groupIDs) && (null != contactIDs)) {\n\t\t\tVector contactIDList = new Vector(contactIDs.length);\n\t\t\t\n\t\t\tfor (int i = 0; i < contactIDs.length; i++) {\n\t\t\t\tcontactIDList.addElement(new Long(contactIDs[i]));\n\t\t\t}\n\t\t\tht.put(KEY_CONTACT_ID_LIST, contactIDList);\n\t\t\t\n\t\t\tVector groupIDList = new Vector(groupIDs.length);\n\t\t\t\n\t\t\tfor (int i = 0; i < groupIDs.length; i++) {\n\t\t\t\tHashtable htGroup = new Hashtable();\n\t\t\t\thtGroup.put(KEY_GROUP_ID, new Long(groupIDs[i]));\n\t\t\t\tgroupIDList.addElement(htGroup);\n\t\t\t}\n\t\t\tht.put(KEY_GROUP_LIST, groupIDList);\n\t\t}\n\t\t\n\t\treturn ht;\n\t}",
"public Object[] toArray() {\r\n\t\treturn this.records.toArray();\r\n\t}",
"public static ArrayList<Double> twoDArrToArrList(Double[][] dataSet) {\n List<Double> collection = Arrays.stream(dataSet) \n .flatMap(Arrays::stream)\n .collect(Collectors.toList());\n\n ArrayList<Double> arrList = new ArrayList<Double>(collection); \n return arrList; \n }",
"List<Group> getGroups();",
"public ArrayList<OrderItem> getOrderArray(){return orderInfo;}",
"private static String[][] getDataForGrid(CWaypoint[] wayPoints) {\r\n\t\tString data[][] = new String[wayPoints.length][1];\r\n\t\tfor (int i = 0; i < data.length; i++) {\r\n\t\t\tdata[i][0] = wayPoints[i].getTime().toString();\r\n\t\t}\r\n\t\treturn data;\r\n\t}",
"public WFJFilterMap[] asArray() {\n synchronized (lock) {\n return array;\n }\n }",
"public ArrayList getDimensions(String grpId) {\r\n ArrayList finalList = new ArrayList();\r\n// PbBussGrpResourceBundle resBundle = new PbBussGrpResourceBundle();\r\n try {\r\n\r\n PbReturnObject retObj = null;\r\n String finalQuery = null;\r\n String[] colNames = null;\r\n Object obj[] = new Object[1];\r\n obj[0] = grpId;\r\n String sql = getResourceBundle().getString(\"getBusinessGroupDimList\");\r\n finalQuery = buildQuery(sql, obj);\r\n retObj = execSelectSQL(finalQuery);\r\n colNames = retObj.getColumnNames();\r\n for (int i = 0; i < retObj.getRowCount(); i++) {\r\n BusinessGrpsTreeTable dimension = new BusinessGrpsTreeTable();\r\n dimension.setDimensionName(retObj.getFieldValueString(i, colNames[1]));\r\n dimension.setDimensionId(String.valueOf(retObj.getFieldValueInt(i, colNames[0])));\r\n ArrayList tableList = new ArrayList();\r\n\r\n tableList = getTableList(String.valueOf(retObj.getFieldValueInt(i, colNames[0])), grpId);\r\n dimension.setDimTableList(tableList);\r\n ArrayList membersList = new ArrayList();\r\n membersList = getMembersList(String.valueOf(retObj.getFieldValueInt(i, colNames[0])), grpId);\r\n dimension.setDimMembersList(membersList);\r\n ArrayList hierarchyList = new ArrayList();\r\n hierarchyList = getHeirarchyList(String.valueOf(retObj.getFieldValueInt(i, colNames[0])), grpId);\r\n dimension.setDimHierarchyList(hierarchyList);\r\n //.println.println(\"hierarchy list==\" + hierarchyList.size());\r\n finalList.add(dimension);\r\n }\r\n } catch (Exception e) {\r\n logger.error(\"Exception:\", e);\r\n }\r\n\r\n return finalList;\r\n }",
"private List<Edge<Stop>> getWalkingEdgesFromStop(long timeAtStop, Stop stop, Set<Stop> found) {\n //Calculate a list of geohashes around the stop\n List<Geohash> nearbyGeohashes = Geohash.getSurroundingGeohashes(\n BigDecimal.valueOf(stop.getLocation().getLatitude()),\n BigDecimal.valueOf(stop.getLocation().getLongitude()), STOP_INDEX_GEOHASH_LEVEL);\n\n return nearbyGeohashes.stream()\n //Get all stops inside the geohashes\n .flatMap(geohash -> stopByGeohashIndex.getItems(geohash).stream())\n //Filter stops that have been already found\n .filter(stopFromIndex -> !found.contains(stopFromIndex))\n //Filter stops that are too far\n .filter(stopFromIndex -> stopFromIndex.getLocation().distanceTo(stop.getLocation()) <= MAX_WALKING_DISTANCE_IN_METERS\n && !stopFromIndex.getId().equals(stop.getId()))\n .map(walkableStop -> new StopEdge(null, //No public transport route used when walking -> route = null, trip = null\n null,\n TransportMode.WALK,\n stop,\n walkableStop,\n //Calculate walking time\n timeAtStop + 1 + Math.round(walkableStop.getLocation().distanceTo(stop.getLocation()) / AVERAGE_WALKING_SPEED_MS),\n timeAtStop))\n .collect(Collectors.toCollection(() -> new TiraArrayList<>()));\n }",
"@Override\n\tpublic String[] toArray() {\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 = \"127.0.0.1\";\n\t\t}\n\t\tstrValue[0] = \"*LINX\"; // 0 :\n\t\tstrValue[1] = strHostName; // 1 :\n\t\tstrValue[5] = \"213\"; // 5 :\n\t\tstrValue[7] = \"0200\"; // 7 :\n\t\tstrValue[8] = \"*DSP\"; // 8 :\n\t\tstrValue[9] = \"MBSD\"; // 9 :\n\t\tstrValue[10] = \"*LINX\"; // 10 :\n\t\tstrValue[14] = \"01\"; // 14 :\n\t\tstrValue[17] = \"BBMBSLNINQFNC\"; // 17 :\n\t\tstrValue[22] = \"1\"; // 22 :\n\t\tstrValue[23] = \"10\"; // 23 :\n\t\tstrValue[24] = calla.getTeller(); // 24 :\n\t\tstrValue[25] = strHostName; // 25 :\n\t\tstrValue[26] = \"86305\"; // 26 :\n\t\tstrValue[27] = \"N\"; // 27 :\n\t\tstrValue[31] = calla.getTeller(); // 31 : User ID\n\t\tstrValue[32] = \"1\"; // 32 : Reference Number\n\t\tstrValue[34] = \"*END\"; // 34 : End of Group Indicator\n\t\tstrValue[36] = \"BTS\"; // 36 : Source ID\n\t\tstrValue[37] = \"RBS\"; // 37 : Destination ID\n\t\tstrValue[39] = strHostName; // 39 : Terminal ID\n\t\tstrValue[40] = \"27\"; // 40 : Bank Number\n\t\tstrValue[41] = calla.getBranch(); // 41 : Branch\n\t\t\t\t\t\t\t\t\t\t\t// Number\n\t\tstrValue[45] = \"86305\"; // Transaction Code\n\t\tstrValue[46] = \"I\"; // \"D\",\"C\" Action Code\n\t\tstrValue[47] = \"R\"; // Transaction Mode\n\t\tstrValue[48] = \"1\"; // No. Of Records To Retrieve\n\t\tstrValue[49] = \"N\"; // More Records Indicator\n\t\tstrValue[50] = \"F\"; // Search Method\n\t\tstrValue[56] = \"D\"; // 56 : Response Reason For Code 3\n\t\tstrValue[67] = calla.getApplicationNo(); // Account number\n\t\tstrValue[68] = calla.getFacilityCode(); // 240\n\t\tstrValue[69] = calla.getFacId();//\n\t\tstrValue[70] = calla.getCollateralId(); //\n\n\t\treturn strValue;\n\t}",
"@Test\n public void testToArray_GenericType() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n Integer[] expResult = { 1, 2, 3, 4, 5, 6 };\n Integer[] result = instance.toArray(new Integer[] {});\n assertArrayEquals(expResult, result);\n }",
"@Override\n public Object[] toArray() {\n Object[] result = new Object[currentSize];\n System.arraycopy(container, 0, result, 0, currentSize);\n return result;\n }",
"public java.lang.String[] getMappingFieldsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MAPPINGFIELDS$28, targetList);\n java.lang.String[] result = new java.lang.String[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();\n return result;\n }\n }",
"public Object[][] toJava2D() {\n\n\t\tObject[][] d = new Object[numRows][numCols];\n\t\tfor ( int j = 0; j < numRows; j++ ) {\n\t\t\tfor ( int i = 0; i < numCols; i++ ) {\n\t\t\t\td[i][j] = get(i, j);\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}",
"java.util.List<com.sanqing.sca.message.ProtocolDecode.SimpleMap> \n getSimpleMapList();",
"@Override\n\tpublic ArrayList<Object[]> tousEmplo() {\n\t\tfor (Employe emplo : treeMap.values()) {\n\t\t\tObject[] aux = { emplo.getId(), emplo.getNom(), emplo.getPrenom(),\n\t\t\t\t\templo.getDate_N(), emplo.getSexe(), emplo.getRue(),\n\t\t\t\t\templo.getNumero(), emplo.getVille(), emplo.getPay(),\n\t\t\t\t\templo.getTelef(), emplo.getClass().getName().substring(13) };\n\t\t\tarray.add(aux);\n\t\t}\n\t\treturn array;\n\t}",
"public String[] getJobArr() {\n String[] jobArr;\n jobArr = new String[jobList.size()];\n\n for(int i=0;i<jobList.size();i++) {\n Log.w(\"MA\", \"\"+jobList.get(i).listString(jobType));\n jobArr[i] = (jobList.get(i)).listString(jobType);\n }\n return jobArr;\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement[] getFinancialStatementsGroupArray();",
"public List<RecordGroup> splitIntoProcessableSubgroups() {\n List<RecordGroup> recordGroupList = new LinkedList<>();\n if (areAllRecordsValid()) {\n isolateHeartbeatRecords(recordGroupList);\n return recordGroupList;\n } else {\n List<AbstractRecord> recordList = new LinkedList<>();\n Boolean valid = null;\n for (AbstractRecord record : records) {\n boolean tempValid = isRecordInvalid(record);\n if (valid == null || Objects.equals(tempValid, valid)) {\n valid = tempValid;\n recordList.add(record);\n } else {\n recordGroupList.add(new RecordGroup(recordList));\n valid = tempValid;\n recordList = new LinkedList<>();\n recordList.add(record);\n }\n }\n if (!recordList.isEmpty()) {\n recordGroupList.add(new RecordGroup(recordList));\n }\n }\n return recordGroupList;\n\n }",
"private void buildGroups() {\n if(groups.size() == 1){\n Group aGroup = groups.get(0);\n for (Team team : teams) {\n aGroup.add(team);\n }\n return;\n }\n\n for (Team team : teams) {\n groups.get(getIndex()).add(team);\n }\n }",
"public long[] toLongArray()\r\n {\r\n long[] a = new long[count];\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n a[i] = (Long) vi.getObject();\r\n vi = vi.getNext();\r\n }\r\n\r\n return a; \r\n }",
"List<StepGroup> stepGroups();",
"public Object[] get_Values(){return new Object[]{ Id, CategoryId, StartTime, BreakTime, EndTime };}",
"public Object[] toArray() {\n Object[] tmp = new Object[this.container.length];\n System.arraycopy(this.container, 0, tmp, 0, tmp.length);\n return tmp;\n }",
"protected ArrayList<DataFromPoint> getFromPoints() {\n\t\treturn fromPoints.stream().map(e -> e.fromPoint)\n\t\t\t\t.collect(Collectors.toCollection(ArrayList::new));\n\t}",
"Collection<Element> getElementTreeFromPlainList() {\n Map<String, Element> values = new HashMap<String, Element>();\n for (String[] s : data) {\n values.put(s[0], new Element(s[2], s[1]));\n }\n\n // creates a result list\n Collection<Element> result = new ArrayList<Element>();\n\n // for each element in the result list that has a parent, put it into it\n // otherwise it is added to the result list\n for (Element e : values.values()) {\n if (e.parent != null) {\n values.get(e.parent).getChildren().add(e);\n } else {\n result.add(e);\n }\n }\n\n return result;\n }",
"Collection<Element> getElementTreeFromPlainList() {\n Map<String, Element> values = new HashMap<String, Element>();\n for (String[] s : data) {\n values.put(s[0], new Element(s[2], s[1]));\n }\n\n // creates a result list\n Collection<Element> result = new ArrayList<Element>();\n\n // for each element in the result list that has a parent, put it into it\n // otherwise it is added to the result list\n for (Element e : values.values()) {\n if (e.parent != null) {\n values.get(e.parent).getChildren().add(e);\n } else {\n result.add(e);\n }\n }\n\n return result;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic T[] asArray() {\n\t\t// have to use explicit cast because we cannot use the alternative signature of toArray(T[]), as you cannot instantiate an array of a\n\t\t// type parameter (not even an empty array)\n\t\treturn (T[]) this.itemList.toArray();\n\t}",
"public static void pullOutSubArrays( GroupIDGen myGIDG, ArrayFloat data, // changed from ArrayInt\n ArraySpec spec, int[] extractionShape,\n int[] ones,\n HashMap<GroupID, Array> returnMap) {\n\n /*LOG.info(\"pullOutSubArrays passed ArraySpec: \" + spec.toString() +\n \" ex shape: \" + Utils.arrayToString(extractionShape));*/\n GroupID[] gids = myGIDG.getBoundingGroupIDs( spec, extractionShape);\n /*LOG.info(\"getBoundingGroupIDs: getBounding returned \" + gids.length + \" gids \" +\n \" for ArraySpec: \" + spec.toString() +\n \" ex shape: \" + Utils.arrayToString(extractionShape));*/\n\n ArraySpec tempArraySpec;\n ArrayFloat tempFloatArray; // changed form ArrayInt\n int[] readCorner = new int[extractionShape.length];\n\n for( GroupID gid : gids ) {\n //System.out.println(\"gid: \" + gid);\n\n tempArraySpec = getGIDArraySpec( spec, gid, extractionShape, ones);\n try {\n\n // note, the tempArraySpec is in the global space\n // need to translate that into the local space prior to pull out the subarray\n for( int i=0; i<readCorner.length; i++) {\n readCorner[i] = tempArraySpec.getCorner()[i] - spec.getCorner()[i];\n }\n\n //System.out.println(\"\\t\\tlocal read corner: \" + Utils.arrayToString(readCorner) );\n tempFloatArray = (ArrayFloat)data.sectionNoReduce(readCorner, tempArraySpec.getShape(), ones);\n\n /* \n System.out.println(\"\\tsubArray ( gid: \" + gid.toString(extractionShape) + \n \" ex shape: \" + Utils.arrayToString(extractionShape) + \")\" + \n \" read corner: \" + Utils.arrayToString(readCorner) + \n \" read shape: \" + Utils.arrayToString(tempArraySpec.getShape()) + \n \"\\n\"); \n */\n\n returnMap.put(gid, tempFloatArray);\n\n } catch (InvalidRangeException ire) {\n System.out.println(\"Caught an ire in GroupIDGen.pullOutSubArrays()\");\n }\n }\n\n return;\n }",
"private IMapData<Integer, String> getHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"a\"),\n KeyValueNode.make(3, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"public static final double[] reGroup(double[] V1)\n {\n\n\tif(periodNum==24) return V1; //don't need to regroup\n\n//\tVector vec = new Vector(periodNum);\ndouble[]vec = new double[periodNum];\n\t\n\t//for(int i=0;i<periodNum;i++)\n\t// vec.insertElementAt((new Double(0)),i);\n\t\n\tint n = 24/periodNum;\n\tint index =6; //start from 7am\n\n\tfor(int i=0;i<periodNum;i++)\n\t{\n\t double d =0;\n\t for(int j=0;j<n;j++)\n\t {\n\t\tint temp = (index%24);\n\t\td+= V1[temp];\n\t\t\t//((Double)V1.elementAt(temp)).doubleValue();\n\t\tindex++;\n\t }\n\t vec[i] = d;\n\t //vec.addElement(new Double(d));\n\t}\n\n\treturn vec;\n }",
"@Override\n public List<E> asList() {\n ArrayList<E> result = null;\n\n while (top.next != null) {\n top = top.next;\n result.add(top.data);\n }\n return result;\n }",
"org.landxml.schema.landXML11.LanesDocument.Lanes[] getLanesArray();",
"public ArrayList<String> transportLinePathIDs()\r\n {\r\n Coordinate next_street1 = null;\r\n Coordinate next_street2 = null;\r\n Street next_street = null;\r\n ArrayList<String> line_coordinates_ids = new ArrayList<String>();\r\n\r\n for (int i = 0; i < getStreetsMap().size(); i++)\r\n {\r\n Street s = getStreetsMap().get(i);\r\n Coordinate this_street1 = s.getCoordinates().get(0);\r\n Coordinate this_street2 = s.getCoordinates().get(2);\r\n\r\n if (i + 1 < getStreetsMap().size())\r\n {\r\n next_street = getStreetsMap().get(i+1);\r\n next_street1 = next_street.getCoordinates().get(0);\r\n next_street2 = next_street.getCoordinates().get(2);\r\n }\r\n else\r\n {\r\n break;\r\n }\r\n\r\n for (Stop stop : getStopsMap())\r\n {\r\n if (stop.getStreet().equals(s))\r\n {\r\n line_coordinates_ids.add(stop.getId());\r\n }\r\n }\r\n\r\n if (s.getCoordinates().get(1) != null)\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n\r\n //11\r\n if (this_street1.getX() == next_street1.getX() && this_street1.getY() == next_street1.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n //12\r\n else if (this_street1.getX() == next_street2.getX() && this_street1.getY() == next_street2.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n // 21\r\n else if (this_street2.getX() == next_street1.getX() && this_street2.getY() == next_street1.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n //22\r\n else if (this_street2.getX() == next_street2.getX() && this_street2.getY() == next_street2.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n }\r\n\r\n line_coordinates_ids.add(getStopsMap().get(getStopsMap().size()-1).getId());\r\n return line_coordinates_ids;\r\n }",
"public String[] infoToArray() {\n\t\tif (this.empty()) {\n\t\t\treturn new String[0];\n\t\t}\n\t\tString[] inOrderInfo = new String[this.size()];\n\t\tAVLNode node = this.findMin();\n\t\tint index = 0;\n\t\twhile (index != inOrderInfo.length) {\n\t\t\tinOrderInfo[index] = node.getValue();\n\t\t\tnode = this.findSuccessor(node);\n\t\t\tindex += 1;\n\t\t}\n\t\treturn inOrderInfo;\n\t}",
"private ArrayList<int[][]> getTimes(String name, ArrayList<String> subNames) {\n ArrayList<int[][]> subTimes = new ArrayList<>();\n for (String sub : subNames) {\n int[] startTime = obtainTimeSafely(name, sub, \"start?\");\n int[] endTime = obtainTimeSafely(name, sub, \"end?\");\n int[] days = obtainDaysSafely(name, sub);\n subTimes.add(new int[][]{startTime, endTime, days});\n }\n return subTimes;\n }",
"public abstract ScaledPathArray getPathList();",
"public Object[] toArray() {\n return Arrays.copyOf(this.values, this.index);\n }",
"@Override\n\tpublic Object[] toArray() {\n\t\tObject[] result = copyArray(elements, size);\n\n\t\treturn result;\n\t}",
"public String[] infoToArray()//changed\r\n\t {\r\n\t\t if(this.size() == 0)\r\n\t\t {\r\n\t\t\t return new String[0];\r\n\t\t }\r\n\t\t String[] arr = new String[this.size()];\r\n\t\t int[] count = new int[1];\r\n\t\t count[0] = 0;\r\n\t\t return this.root.infoToArray(arr, count); \r\n\t }",
"public com.eviware.soapui.coverage.SegmentType[] getSegmentArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List<com.eviware.soapui.coverage.SegmentType> targetList = new java.util.ArrayList<com.eviware.soapui.coverage.SegmentType>();\n get_store().find_all_element_users(SEGMENT$2, targetList);\n com.eviware.soapui.coverage.SegmentType[] result = new com.eviware.soapui.coverage.SegmentType[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public Object[][] buildProblemDataModel() {\r\n\t\t\r\n\t\tint clientNodes[] = TSProblemModel.getInstance().getAllProblemNodes();\r\n\t\t\r\n\t\tObject[][] result = new Object[clientNodes.length][clientNodes.length];\r\n\t\t\r\n\t\tfor (int i = 0; i < clientNodes.length; i++) {\r\n\t\t\tint index = clientNodes[i];\r\n\t\t\t\r\n\t\t\tresult[i][0] = new Integer(index); // ID\r\n\t\t\tresult[i][1] = new Integer(getClientDemand(index)); // Demand\r\n\t\t\t\r\n\t\t\tTimeWindow tw = getClientTimeWindow(index); // TW\r\n\t\t\tresult[i][2] = new Double(tw.begin);\r\n\t\t\tresult[i][3] = new Double(tw.end);\r\n\t\t\tresult[i][4] = new Double(getTWClientServiceTime(index));\r\n\t\t\t\r\n\t\t\ti++;\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"java.util.List<com.sanqing.sca.message.ProtocolDecode.SimpleData> \n getSimpleDataList();",
"public Map<String, List<String>> mo133923b() {\n Map<String, List<String>> map = this.f114455b;\n if (map != null) {\n return map;\n }\n TreeMap treeMap = new TreeMap(String.CASE_INSENSITIVE_ORDER);\n for (Map.Entry<String, String> entry : this.f114454a) {\n ArrayList arrayList = new ArrayList();\n if (treeMap.containsKey(entry.getKey())) {\n arrayList.addAll((Collection) treeMap.get(entry.getKey()));\n }\n arrayList.add(entry.getValue());\n treeMap.put(entry.getKey(), Collections.unmodifiableList(arrayList));\n }\n this.f114455b = Collections.unmodifiableMap(treeMap);\n return this.f114455b;\n }",
"public Object[] toArray(){\n\n \tObject[] o = new Object[list.size()];\n\n o = list.toArray();\n\n \treturn o;\n\n }",
"public final List<TimeKey> mo13029a(Map<String, ? extends Map<String, String>> map) {\n ArrayList arrayList = new ArrayList(map.size());\n for (Map.Entry next : map.entrySet()) {\n Map map2 = (Map) next.getValue();\n Object obj = map2.get(\"encrypted_mobile_id\");\n if (obj != null) {\n String str = (String) obj;\n Object obj2 = map2.get(\"fromDate\");\n if (obj2 != null) {\n long roundToLong = MathKt.roundToLong(((Double) obj2).doubleValue());\n Object obj3 = map2.get(\"tillDate\");\n if (obj3 != null) {\n arrayList.add(new TimeKey((String) next.getKey(), str, TimeKey.DEFAULT_NAME, roundToLong, MathKt.roundToLong(((Double) obj3).doubleValue()), 0, 32, (DefaultConstructorMarker) null));\n } else {\n throw new NullPointerException(\"null cannot be cast to non-null type kotlin.Double\");\n }\n } else {\n throw new NullPointerException(\"null cannot be cast to non-null type kotlin.Double\");\n }\n } else {\n throw new NullPointerException(\"null cannot be cast to non-null type kotlin.String\");\n }\n }\n return arrayList;\n }",
"public ArrayList getDayArray() {\r\n return dayArray; \r\n }",
"@Override\n\tpublic ArrayList<T> toArrayList() {\n\t\tArrayList<T> out = new ArrayList<T>();\n\t\ttoArrayListRecursive(out,root);\n\t\treturn out;\n\t}",
"public Object[][] buildNewGraphDataModel() {\r\n\t\t\r\n\t\tresetDataStructures();\r\n\t\tGraph g = UIFacade.getInstance().getGraph();\r\n\t\t\r\n\t\tObject[][] result = new Object[g.getN()][5];\r\n\t\t\r\n\t\tfor (int i = 0; i < g.getN(); i++) {\r\n\t\t\tNode node = g.getNode(i);\r\n\t\t\tComponentProperties cp = node.getProperties();\r\n //\t\t\t ID\r\n\t\t\tresult[i][0] = new Integer(\r\n\t\t\t\t\t((ID)cp.getPropertyByName(\"ID\")).getValue()); \t\t\t\r\n\t\t\tresult[i][1] = new Integer(DEFAULT_CLIENT_DEMAND); // Demand\t\t\t\r\n\t\t\tresult[i][2] = new Double(DEFAULT_CLIENT_TW_BEGIN);\r\n\t\t\tresult[i][3] = new Double(DEFAULT_CLIENT_TW_END);\r\n\t\t\tresult[i][4] = new Double(DEFAULT_CLIENT_TW_SERVICE);\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"org.landxml.schema.landXML11.LanesDocument.Lanes getLanesArray(int i);",
"public ArrayList< SubLocationHandler >getAllSubLocation (){\n\t\tArrayList< SubLocationHandler> subLocationList = new ArrayList< SubLocationHandler>();\n\t\tString selectQuery = \"SELECT * FROM \" + table_subLocation + \" ORDER BY \" + key_date_entry; \n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tSubLocationHandler subLocationHandlerArray = new SubLocationHandler();\n\t\t\t\tsubLocationHandlerArray.setId(cursor.getInt(0)); \n\t\t\t\tsubLocationHandlerArray.setBase_id(cursor.getInt(1)); \n\t\t\t\tsubLocationHandlerArray.setDate_entry(cursor.getString(2)); \n\t\t\t\tsubLocationHandlerArray.setName(cursor.getString(3)); \n\t\t\t\tsubLocationHandlerArray.setLongitude(cursor.getDouble(4)); \n\t\t\t\tsubLocationHandlerArray.setLatitude(cursor.getDouble(5)); \n\t\t\t\tsubLocationHandlerArray.setLocation_id(cursor.getInt(6)); \n\t\t\t\tsubLocationList.add(subLocationHandlerArray);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\n\t\tdb.close();\n\t\treturn subLocationList;\n\t}",
"java.util.List<message.Figure.FigureData.FigureLevelTable> \n getLevelTableListList();",
"private IMapData<Integer, String> getLinkedHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(1, \"c\"),\n KeyValueNode.make(1, \"b\"),\n KeyValueNode.make(1, \"a\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(1, \"a\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"private TaskListItem[] getListArray() {\n return allLists.toArray(new TaskListItem[allLists.size()]);\n }"
] | [
"0.50260824",
"0.4840493",
"0.48181698",
"0.4801808",
"0.4762825",
"0.47156805",
"0.47072718",
"0.4702159",
"0.46664575",
"0.4661838",
"0.4651486",
"0.4631378",
"0.46122932",
"0.45824748",
"0.45799944",
"0.4559098",
"0.4544584",
"0.45151868",
"0.45131284",
"0.44864392",
"0.44754773",
"0.44679376",
"0.446438",
"0.4452853",
"0.44400954",
"0.4434233",
"0.44301862",
"0.4425739",
"0.4425554",
"0.44252232",
"0.4425029",
"0.44080788",
"0.44078624",
"0.43953943",
"0.43925738",
"0.43919465",
"0.43892655",
"0.4387579",
"0.4385965",
"0.4377956",
"0.4377451",
"0.4377041",
"0.43755543",
"0.43740496",
"0.43681154",
"0.4366696",
"0.43643835",
"0.4352296",
"0.43416694",
"0.4339956",
"0.43377522",
"0.43318203",
"0.4318989",
"0.431429",
"0.43112677",
"0.43105355",
"0.42986706",
"0.42804557",
"0.4279255",
"0.42789507",
"0.42632392",
"0.42585278",
"0.4255166",
"0.4245765",
"0.42380983",
"0.42358282",
"0.4235431",
"0.42251545",
"0.42095536",
"0.42082623",
"0.42043266",
"0.42029473",
"0.42029473",
"0.42002627",
"0.4199133",
"0.41970873",
"0.41947398",
"0.41926828",
"0.41850245",
"0.41839576",
"0.4175206",
"0.4174819",
"0.4174319",
"0.41734704",
"0.41716954",
"0.41697723",
"0.41692743",
"0.41688448",
"0.41651893",
"0.41644257",
"0.41601902",
"0.41584086",
"0.41553405",
"0.41540366",
"0.41537353",
"0.41493362",
"0.41487834",
"0.4147619",
"0.4146238",
"0.41434538"
] | 0.5039694 | 0 |
Helper functions (should be private, but they are mostly accessed by our child classes.) | private void setHeader(ObaResponse routeInfo, boolean addToDb) {
mRouteInfo = routeInfo;
TextView empty = (TextView)findViewById(android.R.id.empty);
if (routeInfo.getCode() == ObaApi.OBA_OK) {
ObaRoute route = routeInfo.getData().getAsRoute();
TextView shortNameText = (TextView)findViewById(R.id.short_name);
TextView longNameText = (TextView)findViewById(R.id.long_name);
TextView agencyText = (TextView)findViewById(R.id.agency);
String shortName = route.getShortName();
String longName = route.getLongNameOrDescription();
shortNameText.setText(shortName);
longNameText.setText(longName);
agencyText.setText(route.getAgencyName());
if (addToDb) {
RoutesDbAdapter.addRoute(this, route.getId(), shortName, longName, true);
}
}
else {
empty.setText(R.string.generic_comm_error);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean func_70814_o() { return true; }",
"public void method_4270() {}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"private void poetries() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"private stendhal() {\n\t}",
"private FormatUtilities() {}",
"private Util() { }",
"private void strin() {\n\n\t}",
"protected boolean func_70041_e_() { return false; }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n public void perish() {\n \n }",
"private void m50366E() {\n }",
"@Override\n protected void getExras() {\n }",
"public abstract void mo56925d();",
"protected abstract Set method_1559();",
"public abstract String mo13682d();",
"public abstract String mo41079d();",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"private ArraySetHelper() {\n\t\t// nothing\n\t}",
"public interface CommonUtils {\n\tpublic static String getPrintStackTrace(Exception e){\n\t\t//StringWriter writes upon the string\n\t\tStringWriter sw = new StringWriter();\n\t\t//PrintWriter integrates with StringWriter\n\t\tPrintWriter pw = new PrintWriter(sw);\n\t\t//This line used to write in catch block then it will writes in the console prints upon the console\n\t\t//Basically prints the data upon the console\n\t\te.printStackTrace(pw);\n\t\t//it will converts to tostring method into some meaningful data\n\t\treturn sw.toString();\n\t}\n}",
"@Override\n\tpublic void initUtils() {\n\n\t}",
"protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }",
"public abstract String mo118046b();",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"private void level7() {\n }",
"private MetallicityUtils() {\n\t\t\n\t}",
"public abstract void mo27386d();",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private void kk12() {\n\n\t}",
"private ProcessorUtils() { }",
"public abstract void mo27385c();",
"Compatibility compatibility();",
"default boolean isSpecial() { return false; }",
"public void smell() {\n\t\t\n\t}",
"public abstract String mo9239aw();",
"abstract int pregnancy();",
"public abstract void mo6549b();",
"private AsciiUtils() {\r\n\t}",
"@Override\n protected void prot() {\n }",
"private boolean isInternal(String name) {\n return name.startsWith(\"java.\")\n || name.startsWith(\"javax.\")\n || name.startsWith(\"com.sun.\")\n || name.startsWith(\"javax.\")\n || name.startsWith(\"oracle.\");\n }",
"public abstract String getPos();",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"public final void mo51373a() {\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"public void method_6349() {\r\n super.method_6349();\r\n }",
"public abstract Object mo26777y();",
"public abstract String mo9751p();",
"private StringUtilities() {\n // nothing to do\n }",
"public abstract int mo9754s();",
"public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }",
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }",
"protected void additionalProcessing() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\r\n\t\tpublic void normalize()\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tprotected void prepare() {\n\t\t\n\t}",
"abstract String mo1748c();",
"protected CombinatoricsUtils() {\n super();\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"abstract protected String getWrapperFileNameBase();",
"private RdfFormatUtils() {\n }",
"@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}",
"public abstract void wrapup();",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private PrngFixes() {\n }",
"public void method_191() {}",
"private Rekenhulp()\n\t{\n\t}",
"public abstract void mo30696a();",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"public abstract void mo35054b();",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"java.lang.String getHowToUse();",
"java.lang.String getHowToUse();",
"@Override\n\tpublic void anular() {\n\n\t}",
"public int getExtendedID()\r\n/* 12: */ {\r\n/* 13:17 */ return 10;\r\n/* 14: */ }",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"private XhtmlUtils()\n\t{\n\t}",
"@Override\n public void preprocess() {\n }",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"private BuilderUtils() {}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"private int parent ( int pos )\n\t{\n\t\treturn -1; // replace this with working code\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"protected Map method_1552() {\n return super.method_1552();\n }",
"@Override\n public void preprocess() {\n }",
"public abstract String mo11611b();",
"@Override public int describeContents() { return 0; }"
] | [
"0.56753516",
"0.55869913",
"0.5506299",
"0.54246676",
"0.54246676",
"0.53628427",
"0.531125",
"0.52857435",
"0.52344126",
"0.522553",
"0.52071214",
"0.5195484",
"0.51920974",
"0.51877564",
"0.5174032",
"0.51740235",
"0.51428044",
"0.51357913",
"0.5115764",
"0.51124144",
"0.5107392",
"0.510373",
"0.5097713",
"0.509317",
"0.5030416",
"0.50229865",
"0.5011274",
"0.49970207",
"0.49928272",
"0.49889418",
"0.49875158",
"0.4985932",
"0.49808344",
"0.49807417",
"0.49666858",
"0.49521172",
"0.4943329",
"0.4929107",
"0.49285483",
"0.48994476",
"0.48786283",
"0.4874991",
"0.48609188",
"0.48582056",
"0.48519564",
"0.48449352",
"0.48447376",
"0.48398435",
"0.48398435",
"0.48398435",
"0.48398435",
"0.48333076",
"0.48323593",
"0.48136133",
"0.4812605",
"0.48102316",
"0.47924608",
"0.4789329",
"0.478877",
"0.47886628",
"0.47815502",
"0.47797376",
"0.47786406",
"0.4778187",
"0.47713932",
"0.4770209",
"0.47676387",
"0.4765199",
"0.4748985",
"0.47463447",
"0.47401023",
"0.47347903",
"0.4733929",
"0.47293276",
"0.47293276",
"0.4729237",
"0.47258177",
"0.47227624",
"0.4721795",
"0.4721704",
"0.4718661",
"0.4716702",
"0.47161973",
"0.47147045",
"0.47147045",
"0.47145677",
"0.47115985",
"0.47110653",
"0.47109428",
"0.470913",
"0.47079736",
"0.47078875",
"0.4707796",
"0.47069",
"0.47060397",
"0.47055277",
"0.47031063",
"0.46998224",
"0.46980828",
"0.4696354",
"0.4694525"
] | 0.0 | -1 |
create objek arraylist cara 1 | public static void main(String[] args) {
ArrayList<MataKuliah> listMatakuliah = new ArrayList<MataKuliah>();
//cara 2
//List<MataKuliah> listMatakuliah = new ArrayList<MataKuliah>();
MataKuliah mk1 = new MataKuliah("IF123", "Alpro1", 4, 'A');
MataKuliah mk2 = new MataKuliah("IF124", "Alpro2", 3, 'B');
MataKuliah mk3 = new MataKuliah("IF125", "KPLBO", 3, 'B');
MataKuliah mk4 = new MataKuliah("IF126", "RKPPL", 2, 'A');
listMatakuliah.add(mk1);
listMatakuliah.add(mk2);
listMatakuliah.add(mk3);
listMatakuliah.add(mk4);
//tampilkan objek matakuliaj dari arraylist (cara 1)
for (MataKuliah mk : listMatakuliah) {
System.out.println(mk.getKode()+","+mk.getIndeksNilai());
}
//(cara 2)
Iterator<MataKuliah> iteratorMK = listMatakuliah.iterator();
while (iteratorMK.hasNext()) {
MataKuliah mk = (MataKuliah) iteratorMK.next();
System.out.println(mk.getKode()+","+mk.getIndeksNilai());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void create() {\n String[] arrays = new String[100];\n ArrayList<String> list1 = new ArrayList(); //Object[10]\n list1.size(); //0\n list1.add(\"Vivek\"); //object[0] = \"Vivek\"\n list1.size(); //1\n list1.get(0);//\"Vivek\"\n\n list1.remove(1);\n\n list1.add(0, \"Vivek\");\n\n\n ArrayList<String> list3 = new ArrayList<String>(list1);\n\n ArrayList<Student> list = new ArrayList<Student>();\n\n\n\n }",
"@Override\n public ArrayList<String> Crear(){\n setVida(3500);\n Creado.add(0, Integer.toString(getVida()));\n Creado.add(1,\"150\");\n Creado.add(2,\"100\");\n Creado.add(3,\"70\");\n return Creado;\n }",
"public grille_chiffre(){\n\tgc=new Object[5][5];\n\tlst_8=new ArrayList<Object>();\n}",
"public NumericObjectArrayList() {\r\n list = new Copiable[10];\r\n count = 0;\r\n }",
"private ArrayList<Entidad> GetArrayItems(){\n // ArrayList<Entidad> listItems = new ArrayList<>();\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n\n return listItems;\n }",
"private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}",
"public MyArrayList() {\n data = new Object[10];\n }",
"public ArreiList() {\n koko = 0;\n }",
"ListType createListType();",
"public Liste(){\n\t\tsuper();\n\t\tthis.liste = new int[this.BASE_LENGTH];\n\t\tthis.nb = 0;\n\t}",
"public List()\n {\n list = new Object [10];\n }",
"public ArrayList<Richiesta> riempi2(){\n ArrayList<Richiesta> array = new ArrayList<>();\n Richiesta elemento = new Richiesta();\n elemento.setIdRichiesta(1);\n elemento.setStato(\"C\");\n elemento.setTipo(\"Prescrizione\");\n elemento.setData_richiesta(\"2016/07/02 alle 08:30 \");\n elemento.setNome_farmaco(\"Brufen\");\n elemento.setQuantita_farmaco(2);\n elemento.setCf_paziente(\"NLSFLP94T45L378G\");\n array.add(elemento);\n\n elemento.setIdRichiesta(2);\n elemento.setStato(\"R\");\n elemento.setTipo(\"Visita specialistica\");\n elemento.setNote_richiesta(\"Specialistica dermatologica presso dottoressa A.TASIN \");\n elemento.setData_richiesta(\"2016/05/06 alle 15:30 \");\n elemento.setCf_paziente(\"MRORSS94T05E378A\");\n array.add(elemento);\n\n elemento.setIdRichiesta(3);\n elemento.setStato(\"R\");\n elemento.setTipo(\"Visita di controllo\");\n elemento.setData_richiesta(\"2016/07/02 alle 08:30 \");\n elemento.setNome_farmaco(\"dermatologica\");\n elemento.setCf_paziente(\"MRORSS94T05E378A\");\n array.add(elemento);\n\n return array;\n }",
"@SuppressWarnings(\"unchecked\")\r\n public void createList() {\r\n items = new int[MAX_LIST];\r\n NumItems = 0;\r\n }",
"public ArrayList<Integer> createList(){\r\n \tArrayList<Integer> test = new ArrayList<>();\r\n \tstarLabels = new ArrayList<>();\r\n \tconstLabels = new ArrayList<>();\r\n \tplanetLabels = new ArrayList<>();\r\n \tmesrLabels = new ArrayList<>();\r\n \tmoonLabel = new ArrayList<>();\r\n \t\r\n \tint a = 0;\r\n \tint b = 1;\r\n \tint c = 2;\r\n \tint d = 3;\r\n \t\r\n \tint size;\r\n \t\r\n \t//Go through the spaceobjectlist\r\n \tfor(int i = 0; i < AlexxWork2.spaceObjList.size(); i++) {\r\n \t\t\r\n \t\t//If object is visible and object has positive altitude continue\r\n \t\tif(AlexxWork2.spaceObjList.get(i).getMagnitude() != null \r\n \t\t\t\t&& (Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) \r\n \t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 0.5) {\r\n\t \t\t\r\n \t\t\t\r\n \t\t\t//Calculate X and Y\r\n \t\t\tint x = getX(2250, 2250, 1000, \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n \t\t\t\r\n\t\t\t\tint y = getY(2250, 2250, 1000, \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\r\n\t\t\t\t//Load stars\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"STAR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\") {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(AlexxWork2.starNamesCB \r\n\t\t\t\t\t\t\t&& Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Filter out number only star names\r\n\t\t\t\t\t\t\tint testInt = Integer.parseInt(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t} catch (NumberFormatException | NullPointerException nfe) {\r\n\t\t\t\t\t\t\t\tstarLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(x));\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(y));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Load constellation data\r\n\t\t\t\t\tif(herculesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadHerculesLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMinorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMajorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(libraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadLibraLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(andromedaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAndromedaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquilaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquilaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ariesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAriesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aurigaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAurigaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(bootesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadBootesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cancerNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCancerLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMajorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMinorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(capricornusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCapricornusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cassiopeiaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCassiopeiaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(centaurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCentaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cepheusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCepheusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cruxNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCruxLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cygnusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCygnusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(dracoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadDracoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(geminiNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadGeminiLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(hydraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadHydraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(leoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLeoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(lyraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLyraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(orionNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadOrionLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(pegasusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPegasusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(perseusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPerseusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(piscesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPiscesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(sagittariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadSagittariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(scorpioNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadScorpioLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(taurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadTaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Add coordinates to list\r\n\t \t\ttest.add(a, x);\r\n\t \t\ttest.add(b, y);\r\n\t \t\t\r\n\t \t\t//Add moon information if visible\r\n\t \t\tif(AlexxWork2.spaceObjList.get(i).getProperName() == \"MOON\") {\r\n size = 22;\r\n String moonName = AlexxWork2.spaceObjList.get(i).getProperName() + \": \" + AlexxWork2.spaceObjList.get(i).getType();\r\n moonLabel.add(0, moonName);\r\n moonLabel.add(1, String.valueOf(x));\r\n moonLabel.add(2, String.valueOf(y));\r\n }\r\n\t \t\t\r\n\t \t\t//If object is planet, set the size\r\n\t \t\telse if(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\"){\r\n\t \t\t\tsize = 16;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else set size based on mag\r\n\t \t\telse{\r\n\t \t\t\tsize = getSize(Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()));\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Add size to list\r\n\t \t\ttest.add(c, size);\r\n\t \t\ttest.add(d, size);\r\n\t \t\ta = d + 1;\r\n\t \t\tb = a + 1;\r\n\t \t\tc = b + 1;\r\n\t \t\td = c + 1;\r\n \t\t}\r\n \t\t\r\n \t\t//Load constellation labels\r\n \t\tif(AlexxWork2.constellationsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"CONST\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tconstLabels.add(AlexxWork2.spaceObjList.get(i).getConstName());\r\n\t\t\t\t\tconstLabels.add(String.valueOf(x));\r\n\t\t\t\t\tconstLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load planet labels\r\n \t\tif(AlexxWork2.planetsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tplanetLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(x));\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load messier labels\r\n \t\tif(AlexxWork2.messierCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"MESR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tmesrLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(x));\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t//Return list \r\n \treturn test;\r\n }",
"public ArrayList<Item> createArrayList(int items) {\n\t\tArrayList<Item> array = new ArrayList<Item>();\n\t\tfor (int i=0;i<items;i++) {\n\t\t\t\n\t\t\tItem item = genItem(i,items);\n\t\t\tarray.add(item);\n\t\t}\n\t\t\n\t\t\n\t\treturn array;\n\t\t\n\t}",
"public MyArrayList(int length) {\n data = new Object[length];\n }",
"public OccList()\n {\n int capacity = 8;\n data = new Occ[capacity];\n // initialize data with empty occ\n for (int i=0; i<capacity; i++) data[i] = new Occ(); \n }",
"OrderedIntList ()\r\n\t{\r\n\t\tarray = new int[10];\r\n\t}",
"public MyArrayList ()\r\n {\r\n \tlist = new Object[100];\r\n \tnumElements = 0;\r\n }",
"public void createListData()\n {\n List<SinhVien> listSinhvien=new ArrayList<>();\n for(int i=0;i<10;i++){\n SinhVien sv=new SinhVien(i+\"\",\"123\",\"0123\",i+1.0f);\n listSinhvien.add(sv);\n }\n PresenterImplDangXuat.onLoadSucess(listSinhvien);\n }",
"public static ArrayList<obj_dos_campos> carga_tipo_producto() {\n ArrayList<obj_dos_campos> lista = new ArrayList<obj_dos_campos>();\n Connection c=null;\n try {\n c = conexion_odbc.Connexion_datos();\n Statement s = c.createStatement();\n ResultSet rs = s.executeQuery(\"select tip_prod_idn as data, tip_prod_nombre as label from tipo_producto order by tip_prod_nombre desc\");\n lista.add(new obj_dos_campos(\"0\",\"-- Seleccione --\"));\n while (rs.next()){\n lista.add(new obj_dos_campos(rs.getString(\"data\"),rs.getString(\"label\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n c.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return lista;\n }",
"public ArrayList61B() {\n\t\tthis.size = 1;\n\t\tthis.arrayList = (E[]) new Object[this.size];\n\t}",
"public AList() {\n size = 0;\n items = (Item[]) new Object[100];\n }",
"public AList() {\n size = 0;\n items = (Item[]) new Object[100];\n }",
"public SimpleArrayList() {\n this.values = new Object[SimpleArrayList.DEFAULT_SIZE];\n }",
"public AList() {\n items = (TypeHere[]) new Object[100];\n size = 0;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList1() {\n\t\telements = (E[]) new Object[CAPACITY];\n\t\tsize = 0;\n\t}",
"private void getArbeitspaketArray(ObservableList<ArbeitspaketTableData> paketList) {\r\n\t\t// Initialisieren des Arrays\r\n\t\tpakete = new Arbeitspaket[paketList.size()];\r\n\r\n\t\tfor (int i = 0; i < paketList.size(); i++) {\r\n\t\t\t// herauslesen der externen ID, damit diese nicht verloren geht (Konstruktor\r\n\t\t\t// nimmt nur einen Parameter für die ID entgegen und setzt die interne und\r\n\t\t\t// externe ID auf diesen Wert)\r\n\t\t\tString idExtern = paketList.get(i).getIdExtern();\r\n\r\n\t\t\t// automatisches Setzen der Vorgangsdauer, da diese in der Tabelle nicht\r\n\t\t\t// angegeben wird\r\n\t\t\tint vorgangsdauer = paketList.get(i).getFez() - paketList.get(i).getFaz() + 1;\r\n\r\n\t\t\t// setzen der einzelnen Werte der Arbeitspakte\r\n\t\t\tpakete[i] = new Arbeitspaket(paketList.get(i).getIdIntern(), paketList.get(i).getFaz(),\r\n\t\t\t\t\tpaketList.get(i).getFez(), paketList.get(i).getSaz(), paketList.get(i).getSez(), vorgangsdauer,\r\n\t\t\t\t\tpaketList.get(i).getMitarbeiteranzahl(), paketList.get(i).getAufwand());\r\n\r\n\t\t\t// Da die externe ID auf die interne ID gesetzt wurde, wird diese nun wieder auf\r\n\t\t\t// die vorher herausgelesene externe ID gesetzt\r\n\t\t\tpakete[i].setIdExtern(idExtern);\r\n\t\t}\r\n\t}",
"public IntegerList(int size)\n {\n list = new int[size];\n }",
"testarray() {\r\n \tarrayList = new Arraylist();\t\r\n\t}",
"public SimpleArrayList(int size) {\n this.values = new Object[size];\n }",
"public TumpukanInteger(int kapasitas){\r\n elemen = new int[kapasitas];\r\n }",
"public void addDatatoArrayList(ArrayList<Object> ar1) {\n\t\tar1.add(1);\n\t\tar1.add(\"anu\");\n\t\tar1.add(1.3);\n\t\tar1.add(true);\n\t\tar1.add('&');\n\t\tar1.add(false);\n\t\tSystem.out.println(\"Data aaded to ArrayList\");\n\t}",
"private ArrayList<Alimento> initLista() {\n try {\n File file = new File(\"C:\\\\Users\\\\Gabri\\\\OneDrive\\\\Ambiente de Trabalho\\\\Calorie\\\\src\\\\Assets\\\\alimentos.txt\");\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n\n ArrayList<Alimento> lista = new ArrayList<>();\n\n int noLines = Integer.parseInt(br.readLine());\n for(int l=0; l<noLines; l++) {\n String[] alimTks = (br.readLine()).split(\",\");\n\n Alimento alimento = new Alimento(idAlimCounter++,alimTks[0],100,Integer.parseInt(alimTks[1]),Float.parseFloat(alimTks[2]),Float.parseFloat(alimTks[3]),Float.parseFloat(alimTks[4]));\n lista.add(alimento);\n }\n\n return lista;\n }catch (Exception e) {\n System.out.println(\"Sistema - getLista() : \"+e.toString());\n }\n return null;\n }",
"public ArrayList() {\n //sets an array with no length\n this.array = (E[]) new Object[0];\n }",
"public static ArrayList IngresarInfoLista(int posarray){\n\n // Definir objeto de la clase constanste para mensajes\n Constantes constantes = new Constantes();\n\n // Definir Array del objeto de la clase BeneficiosCovid\n ArrayList <BeneficiosCovid19> arrayBeneficios = new ArrayList <BeneficiosCovid19>();\n\n System.out.println(\"Por favor ingresar Subsidios para la lista Nro: \" + posarray);\n\n // Variables de trabajo\n String tipoDato = \"\";\n String info = \"\";\n String idrandom;\n String continuar = constantes.TXT_SI;\n //iniciar Ciclo para cargar informacion\n //while (continuar.equals(\"SI\")){\n\n //Definir Objeto de la clase BeneficiosCovid\n BeneficiosCovid19 beneficios_Covid = new BeneficiosCovid19();\n\n //Ingresar Nombre Tipo Alfa\n tipoDato = \"A\";\n info = validarinfo(constantes.TXT_Inp_Nombre,tipoDato);\n beneficios_Covid.setNombre(info);\n\n //Ingresar Valor Subsidio Tipo Numerico\n tipoDato = \"N\";\n info = validarinfo(constantes.TXT_Inp_Subsidio,tipoDato);\n beneficios_Covid.setValorSubsidio(Float.parseFloat(info));\n\n //Obtener el ID de manera aleatoria\n idrandom = getIdBeneficio();\n beneficios_Covid.setId(idrandom);\n\n arrayBeneficios.add(beneficios_Covid);\n\n /**\n * Validacion para continuar o finalizar el ciclo\n * principaly finalizar Main de manera controlada\n * por consola\n **/\n\n /* tipoDato = \"A\";\n continuar = validarinfo(constantes.TXT_Msg_Continuar,tipoDato);\n // Validar valor ingrsado para continuar o finalizar aplicación\n while ( !continuar.equals(\"SI\") && !continuar.equals(\"NO\")) {\n continuar = validarinfo(constantes.TXT_Msg_Continuar, tipoDato);\n }\n\n }\n */\n return arrayBeneficios;\n }",
"public MyArrayList()\n\t{\n\t\tmyArray = new Object[StartSize];\n\t}",
"public MyArrayList(int i) {\n if(i <= 0) {\n System.out.println(\"Negative number given please try again\");\n return;\n }\n\n this.arrayList = new Object[i];\n this.elementsInArray = 0;\n this.size = i;\n }",
"void mo9148a(int i, ArrayList<C0889x> arrayList);",
"public ArrayList() {\n arr = (T[]) new Object[10];\n size = 0;\n }",
"private MyIntegerList generatedPopulatedList() {\n final MyIntegerList mil = new MyIntegerList();\n\n mil.push(1);\n mil.push(2);\n mil.push(1);\n mil.push(6);\n mil.push(6);\n mil.push(7);\n mil.push(2);\n mil.push(2);\n mil.push(0);\n mil.push(5);\n\n return mil;\n }",
"private PyObject[] listtoarray(ArrayList<PyObject> a)\n {\n PyObject[] results = new PyObject[a.size()];\n int iter = 0;\n for (PyObject pt : a) {\n results[iter] = pt;\n iter++;\n }\n return results;\n }",
"public static NodoListaC creaInCoda() {\r\n\t\tNodoListaC a = new NodoListaC();\r\n\t\tNodoListaC p = a; //a rimane in testa alla lista\r\n\t\tp.info = 'A';\r\n\t\tp.next = new NodoListaC();\r\n\t\tp = p.next;\r\n\t\tchar c;\r\n\t\tfor (c = 'B'; c < 'Z'; c++) {\r\n\t\t p.info = c;\r\n\t\t p.next = new NodoListaC();\r\n\t \t p = p.next; \r\n\t\t}\r\n\t\tp.info = 'Z';\r\n\t\tp.next = null;\r\n\t\t\r\n\t\treturn a; \r\n\t}",
"private ArrayIntList buildList(int size) {\n\t\tArrayIntList list = new ArrayIntList();\n\t\tfor (int i=1;i<=size;i++)\n\t\t\tlist.add(i);\n\t\treturn list; \n\t}",
"public Test3()\n {\n for(int i=0; i< horas.length;i++){\n String [] d = horas[i].split(\":\");\n v[i][0] = new CarroGrande(\"URC781\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n v[i][1] = new CarroPequeno(\"URC782\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n v[i][2] = new Moto(\"URC783\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n v[i][3] = new Bicicleta(\"URC784\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n }\n }",
"Array createArray();",
"public void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atraccion = new B();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo C\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new C();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo D\n for (int i = 0; i < 3 ; i++){\n Atraccion atraccion = new D();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo E\n for (int i = 0; i < 7 ; i++){\n Atraccion atraccion = new E();\n atracciones.add(atraccion);\n }\n \n }",
"private void cargarLista(ArrayList<CarritoDTO> arrayList)\n {\n DefaultListModel modelo = new DefaultListModel();\n //Recorrer el contenido del ArrayList\n for(int i=0; i<arrayList.size(); i++) \n {\n CarritoDTO item =(CarritoDTO) arrayList.get(i);\n //Añadir cada elemento del ArrayList en el modelo de la lista\n modelo.add(i, item.toString());\n }\n //Asociar el modelo de lista al JList\n jList1.setModel(modelo);\n }",
"public TiraList() {\n this.list = new Object[8];\n this.nextindex = 0;\n this.startIndex = 0;\n }",
"public MyArrayList() {\r\n\t\tthis.list=new Object[this.capacity];\r\n\t}",
"public DynArrayList() {\n data =(E[]) new Object[CAPACITY];\n }",
"a(ArrayList arrayList) {\n super(1);\n this.$result = arrayList;\n }",
"public void genericIntegerArray() {\n\t\tArrayList<Integer> a1 = new ArrayList<Integer>();\n\t\ta1.add(20);\n\t\ta1.add(11);\n\t\tSystem.out.println(\"Integer generic ArrayList a1: \" + a1);\n\n\t}",
"private static List<Integer> initLista(int tamanho) {\r\n\t\tList<Integer> lista = new ArrayList<Integer>();\r\n\t\tRandom rand = new Random();\r\n\r\n\t\tfor (int i = 0; i < tamanho; i++) {\r\n\t\t\tlista.add(rand.nextInt(tamanho - (tamanho / 10) + 1)\r\n\t\t\t\t\t+ (tamanho / 10));\r\n\t\t}\r\n\t\treturn lista;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n private void initAdjList()\n {\n adjList = new ArrayList[v];\n\n for(int i = 0; i < v; i++)\n {\n adjList[i] = new ArrayList<>();\n }\n }",
"public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}",
"public CirArrayList() {\n // todo: default constructor\n head = tail = curSize = 0;\n data = (E[])new Object[10];\n }",
"public static List<ViajeEntidad> getListaViajesEntidad(){\n List<ViajeEntidad> viajes = new ArrayList<>();\n Date date = new Date();\n ViajeEntidadPK viajePK = new ViajeEntidadPK();\n TaxiEntidad taxiByPkPlacaTaxi = new TaxiEntidad();\n ClienteEntidad clienteByPkCorreoCliente = new ClienteEntidad();\n clienteByPkCorreoCliente.setPkCorreoUsuario(\"[email protected]\");\n TaxistaEntidad taxistaByCorreoTaxi = new TaxistaEntidad();\n taxistaByCorreoTaxi.setPkCorreoUsuario(\"[email protected]\");\n OperadorEntidad agendaOperador = new OperadorEntidad();\n agendaOperador.setPkCorreoUsuario(\"[email protected]\");\n\n viajePK.setPkPlacaTaxi(\"CCC11\");\n viajePK.setPkFechaInicio(\"2019-01-01 01:01:01\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"DDD11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"EEE11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n\n return viajes;\n }",
"private ArrayList<Integer> fillDomain() {\n ArrayList<Integer> elements = new ArrayList<>();\n\n for (int i = 1; i <= 10; i++) {\n elements.add(i);\n }\n\n return elements;\n }",
"public COSArray toList() \n {\n return array;\n }",
"ArrayValue createArrayValue();",
"public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}",
"public ArrayList<producto> bodegaDefault() { \n ArrayList<producto> temporaryProductList = new ArrayList<producto>();\n temporaryProductList.add(new producto(001, \"Mouse Logitech\", 39990, 10));\n temporaryProductList.add(new producto(002, \"Teclado Logitech\", 79990, 20));\n temporaryProductList.add(new producto(003, \"Mousepad Razer\", 19990, 30));\n temporaryProductList.add(new producto(004, \"MSI GTX 970\", 119990, 10));\n return temporaryProductList;\n }",
"public ListDA() {\n elements = new Object[CAPACITY];\n }",
"public ArrayList()\n {\n list = new int[SIZE];\n length = 0;\n }",
"public Lista(int tam, byte tipoOrden) {\n this.tam = tam;\t\t\t\t\t//NOS AHORRAMOS UN METODO \n this.tipoOrden = tipoOrden;\t//NOS AHORRAMOS UN METODO\n tope = 0;\n listaLlena=false;\n listaVacia=true;\n lista = new int[tam];\t\t\t//NOS AHORRAMOS UN METODO\n listaClon = new int[tam]; //PARA EL RECORREDO HACIA DELANTE\n \n }",
"public singlyListNode constructFromArray(int[] a){\n this.head = new singlyListNode(a[0], null);\n singlyListNode ptr = this.head;\n this.listSize = 1;\n for (int i = 1; i < a.length; i ++){\n ptr.setNextNode(a[i]);\n ptr = ptr.getNextNode();\n this.listSize ++;\n }\n this.tail = ptr;\n return this.head;\n }",
"public MyArrayList() {\n mMyArray = new Comparable[10];\n size = 10;\n head = tail = size / 3;\n }",
"private void initList() {\n tempShopList=wdh.getTempShopList();\n final String[] listIndex=new String[tempShopList.size()];\n \n // System.out.println(tempShopList.size());\n \n for(int i=0;i<tempShopList.size();i++)\n listIndex[i]=String.valueOf(i+1); \n \n// jList1=new JList(listIndex);\n// jScrollPane1=new JScrollPane(jList1);\n// jScrollPane1.setViewportView(jList1);\n \n \n jList1.setModel(new javax.swing.AbstractListModel() {\n String[] strings1 = listIndex;\n public int getSize() { return strings1.length; }\n public Object getElementAt(int i) { return strings1[i]; }\n });\n jScrollPane1.setViewportView(jList1);\n \n }",
"public ListaPalabras() {\n\n //pos=0;\n }",
"public ArrayListInt(int cantidadDeNumerosDelArray)\n {\n numerosEnteros = new int[cantidadDeNumerosDelArray];\n tamañoDelArray = cantidadDeNumerosDelArray;\n }",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"public static void main(String[] args) {\n Alumno aaDatos []; // El identificador es nulo\n \n aaDatos = new Alumno[tam];//Creamos un arreglo de 10 \n //alumnos - AQUI HABRA PREGUNTA\n for (int i = 0; i < aaDatos.length; i++) {\n aaDatos[i]= new Alumno(\"Dany\",\"16550518\", 0);//Para cada lugar de arreglo se crea un objeto de la clase alumno\n \n }\n for (Alumno aaDatos1: aaDatos) {\n System.out.println(\"Nombre: \"+ aaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaDatos1.getiCar());\n \n }\n \n \n //CREAMOS UNA COPIA DEL ARREGLO\n Alumno aaCopiaDatos [];\n aaCopiaDatos = new Alumno [tam];\n \n for (int i = 0; i < aaCopiaDatos.length; i++) {\n aaCopiaDatos[i]= new Alumno(aaDatos[i].getsNom(), // <<<Se llenan todos los datos que pide el constructor por argumentos\n aaDatos[i].getsMatri(), \n aaDatos[i].getiCar());\n \n }\n for (Alumno aaCopiaDatos1 : aaCopiaDatos) {\n System.out.println(\"Nombre: \"+ aaCopiaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaCopiaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaCopiaDatos1.getiCar());\n }\n System.out.println(aaDatos);\n System.out.println(aaCopiaDatos);\n }",
"public ArrayList<String> getObjects(){\n ArrayList<String> objs = new ArrayList<>();\n for (int i = 0; i < field.length; i++){\n objs.add(\"Asteroid\");\n }\n return objs;\n }",
"public NumberedList()\n {\n _init=1;\n }",
"private ArrayList<SearchModel> initData() {\n // items in the arraylist\n ArrayList<SearchModel> foodList = new ArrayList<>();\n List<FoodModel> foods = foodModelList;\n for(int i=0; i< foods.size(); i++)\n {\n foodList.add(new SearchModel(foods.get(i).getName()));\n }\n return foodList;\n }",
"public ArrayList() {\n\t\tthis.elements = new Object[5];\n\t\tthis.last = -1;\n\t}",
"PropertyArray() {\n this.myArrayList = new ArrayList<>();\n }",
"public List<New> list();",
"public Individe(int nrAutomjeteve, Point[] pikat) {\r\n pikatEVeturave = new ArrayList[nrAutomjeteve];//cakton sa automjete jane\r\n for (int i = 0; i < nrAutomjeteve; i++) {\r\n pikatEVeturave[i] = new ArrayList<Point>();//i mbush me aaray lista per mes me pas null pointer exeption\r\n }\r\n this.pikat = pikat;\r\n }",
"private static List<Article> createArticleList() {\n List<Article> articles = new ArrayList();\n articles.add(new Article(1l, \"Ball\", new Double(5.5), Type.TOY));\n articles.add(new Article(2l, \"Hammer\", new Double(250.0), Type.TOOL));\n articles.add(new Article(3l, \"Doll\", new Double(12.75), Type.TOY));\n return articles;\n }",
"public MyArrayList() {\n elements = new Object[DEFAULT_CAPACITY];\n }",
"public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }",
"private void initList() {\n\n }",
"public static void main(String[] args)\r\n\t{\nArrayList al = new ArrayList<>();\r\nal.add(10);\r\nal.add(\"manu\");\r\nal.add('m');\r\nObject [] ob=al.toArray();\r\nfor (int i = 0; i < ob.length; i++)\r\n{\r\n\tSystem.out.println(ob[i]);\r\n\t\r\n}\r\n\t}",
"public IntegerList(int size)\n {\n list = new int[size];\n }",
"public static Object createArray(TypeList type) {\n\t\tList<Integer> listDimensions = type.getDimensions();\n\t\tint[] dimensions = new int[listDimensions.size()];\n\t\tfor (int i = 0; i < dimensions.length; i++) {\n\t\t\tdimensions[i] = listDimensions.get(i);\n\t\t}\n\n\t\tType eltType = type.getInnermostType();\n\t\treturn createArray(eltType, dimensions);\n\t}",
"private ArrayList<String> initList(String[] vastitems){\n return new ArrayList<>(Arrays.asList(vastitems));\n }",
"private ArrayList<MeubleModele> initMeubleModeleCatalogue(){\n ArrayList<MeubleModele> catalogue = new ArrayList<>();\n // Création meubles\n MeubleModele Table1 = new MeubleModele(\"Table acier noir\", \"MaCuisine.com\", MeubleModele.Type.Tables,29,110,67);\n MeubleModele Table2 = new MeubleModele(\"Petite table ronde\", \"MaCuisine.com\", MeubleModele.Type.Tables,100,60,60);\n MeubleModele Table3 = new MeubleModele(\"Table 4pers. blanche\", \"MaCuisine.com\", MeubleModele.Type.Tables,499,160,95);\n MeubleModele Table4 = new MeubleModele(\"Table 8pers. noire\", \"MaCuisine.com\", MeubleModele.Type.Tables,599,240,105);\n MeubleModele Table5 = new MeubleModele(\"Table murale blanche\", \"MaCuisine.com\", MeubleModele.Type.Tables,39,74,60);\n MeubleModele Table6 = new MeubleModele(\"Table murale noire\", \"MaCuisine.com\", MeubleModele.Type.Tables,49,90,50);\n MeubleModele Meuble = new MeubleModele(\"Grandes étagères\", \"MaCuisine.com\", MeubleModele.Type.Meubles,99,147,147);\n MeubleModele Chaise = new MeubleModele(\"Chaise blanche cuir\", \"MaCuisine.com\", MeubleModele.Type.Chaises,59,30,30);\n //MeubleModele Machine_A_Laver = new MeubleModele(\"Machine à laver Bosch\", \"Bosch\", MeubleModele.Type.Petits_electromenagers,499,100,100);\n //MeubleModele Plan_de_travail = new MeubleModele(\"Plan de travail avec évier\", \"MaCuisine.com\", MeubleModele.Type.Gros_electromenagers,130,200,60);\n // Images meubles\n //Image i = new Image(getClass().getResourceAsStream(\"../Sprites/table1.png\"));\n //if (i == null) {\n // System.out.println(\"Erreur\");\n //}\n Table1.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table1.png\")));\n Table2.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table2.png\")));\n Table3.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table3.png\")));\n Table4.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table4.png\")));\n Table5.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table5.png\")));\n Table6.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table6.png\")));\n Meuble.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/meuble.png\")));\n Chaise.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/chaise.png\")));\n // add catalogue\n catalogue.add(Table1);\n catalogue.add(Table2);\n catalogue.add(Table3);\n catalogue.add(Table4);\n catalogue.add(Table5);\n catalogue.add(Table6);\n catalogue.add(Meuble);\n catalogue.add(Chaise);\n //catalogue.add(Machine_A_Laver);\n //catalogue.add(Plan_de_travail);\n return catalogue;\n }",
"public ArrayList<Integer> makeIndividual();",
"private ArrayList<String> createList(JList aListComponent) {\n ArrayList<String> aList = new ArrayList<>();\n if (aListComponent.getModel().getSize() > 0) {\n for (int i=0; i < aListComponent.getModel().getSize();i++) {\n aList.add(aListComponent.getModel().getElementAt(i).toString());\n }\n }\n return aList;\n }",
"public Mazo()\n {\n // initialise instance variables\n mazo = new ArrayList<Carta>(40);\n \n int contadorDePalo = 0;\n while (contadorDePalo <= 3) {\n int contadorDeValor = 1;\n while (contadorDeValor <= 12) {\n if (contadorDeValor <= 7 || contadorDeValor >= 10) {\n mazo.add(new Carta(contadorDeValor,contadorDePalo));\n }\n contadorDeValor++;\n }\n contadorDePalo++;\n }\n }",
"public void creoVehiculo() {\n\t\t\n\t\tAuto a= new Auto(false, 0);\n\t\ta.encender();\n\t\ta.setPatente(\"saraza\");\n\t\ta.setCantPuertas(123);\n\t\ta.setBaul(true);\n\t\t\n\t\tSystem.out.println(a);\n\t\t\n\t\tMoto m= new Moto();\n\t\tm.encender();\n\t\tm.frenar();\n\t\tm.setManubrio(true);\n\t\tm.setVelMax(543);\n\t\tm.setPatente(\"zas 241\");\n\t\tVehiculo a1= new Auto(true, 0);\n\t\ta1.setPatente(\"asd 423\");\n\t\t((Auto)a1).setBaul(true);\n\t\t((Auto)a1).setCantPuertas(15);\n\t\tif (a1 instanceof Auto) {\n\t\t\tAuto autito= (Auto) a1;\n\t\t\tautito.setBaul(true);\n\t\t\tautito.setCantPuertas(531);\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Moto) {\n\t\t\tMoto motito=(Moto) a1;\n\t\t\tmotito.setManubrio(false);\n\t\t\tmotito.setVelMax(15313);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Camion) {\n\t\t\tCamion camioncito=(Camion) a1;\n\t\t\tcamioncito.setAcoplado(false);\n\t\t\tcamioncito.setPatente(\"ge\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\tVehiculo a2= new Moto();\n\t\tSystem.out.println(a2);\n\t\ta1.frenar();\n\t\t\n\t\tArrayList<Vehiculo>listaVehiculo= new ArrayList<Vehiculo>();\n\t\tlistaVehiculo.add(new Auto(true, 53));\n\t\tlistaVehiculo.add(new Moto());\n\t\tlistaVehiculo.add(new Camion());\n\t\tfor (Vehiculo vehiculo : listaVehiculo) {\n\t\t\tSystem.out.println(\"clase:\" +vehiculo.getClass().getSimpleName());\n\t\t\tvehiculo.encender();\n\t\t\tvehiculo.frenar();\n\t\t\tSystem.out.println(\"=======================================\");\n\t\t\t\n\t\t}\n\t}",
"public static void generarEmpleados() {\r\n\t\tEmpleado e1 = new Empleado(100,\"34600001\",\"Oscar Ugarte\",new Date(), 20000.00, 2);\r\n\t\tEmpleado e2 = new Empleado(101,\"34600002\",\"Maria Perez\",new Date(), 25000.00, 4);\r\n\t\tEmpleado e3 = new Empleado(102,\"34600003\",\"Marcos Torres\",new Date(), 30000.00, 2);\r\n\t\tEmpleado e4 = new Empleado(1000,\"34600004\",\"Maria Fernandez\",new Date(), 50000.00, 7);\r\n\t\tEmpleado e5 = new Empleado(1001,\"34600005\",\"Augusto Cruz\",new Date(), 28000.00, 3);\r\n\t\tEmpleado e6 = new Empleado(1002,\"34600006\",\"Maria Flores\",new Date(), 35000.00, 2);\r\n\t\tlistaDeEmpleados.add(e1);\r\n\t\tlistaDeEmpleados.add(e2);\r\n\t\tlistaDeEmpleados.add(e3);\r\n\t\tlistaDeEmpleados.add(e4);\r\n\t\tlistaDeEmpleados.add(e5);\r\n\t\tlistaDeEmpleados.add(e6);\r\n\t}",
"public ArrayList<RealmCobaModels> setSemuaDataNama() {\n // mendapatkan data realm berbentuk realmresults\n RealmResults<RealmCobaModels> realmCobaModels = realm.where(RealmCobaModels.class).findAll();\n // mendeklarasi arraylist\n ArrayList<RealmCobaModels> arrayListModels = new ArrayList<>();\n\n // validasi\n if (realmCobaModels.size() > 0) { // jika realmresult lebih dari 0\n // membuat looping data\n for (int i = 0; i < realmCobaModels.size(); i++) {\n RealmCobaModels rcm1 = new RealmCobaModels();\n rcm1.setId(realmCobaModels.get(i).getId());\n rcm1.setNama(realmCobaModels.get(i).getNama());\n rcm1.setUmur(realmCobaModels.get(i).getUmur());\n arrayListModels.add(rcm1); // memasukkan ke array list\n }\n\n // tampil log\n Log.e(TAG, arrayListModels.toString());\n } else { // jika realmresult tidak lebih dari 0, maka kosong!\n // tampil log\n Log.e(TAG, \"Tidak Ada Data!\");\n }\n\n return arrayListModels;\n }",
"public BookList(ObservableList<Book> oList){\r\n //Instantiate the bookList attribute\r\n bookList = new ArrayList<Book>();\r\n //if the parameter oList is not null, then loop through it and create a new Book object from each element,\r\n //using the getters. The enhanced for-loop works great here See Chapter 7.13. Add the new Book to the attribute\r\n //called bookList\r\n if(oList != null){\r\n for(Book bk: oList){\r\n bookList.add(new Book(bk.getTitle(), bk.getPrice()));\r\n }\r\n }\r\n\r\n }",
"public static void main(String[] args) {\n\t\tArrayList<Empleado>listaEmpleados = new ArrayList<Empleado>();\n\t\t//listaEmpleados.ensureCapacity(12); //USAMOS ESTE MÉTODO PARA NO CONSUMIR MÁS MEMORIA QUE 12 ELEMENTOS DEL ARRAYLIST\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\tlistaEmpleados.add(new Empleado(\"Giru\", 10,2000));\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\tlistaEmpleados.add(new Empleado(\"Giru\", 10,2000));\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\tlistaEmpleados.add(new Empleado(\"Giru\", 10,2000));\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\t//PARA ELEGIR LA POSICIÓN DONDE QUEREMOS INCLUIR ELEMENTO.\n\t\tlistaEmpleados.set(5,new Empleado(\"Androide18\", 10,2000));\n\t\t\n\t\t//CORTAMOS EL EXCESO DE MEMORIA QUE ESTÁ SIN USAR\n\t\t//listaEmpleados.trimToSize();\n\t\t\n\t\t//PARA IMPRIMIR UN ELEMENTO DE ARRAYLIST EN ESPECIAL\n\t\tSystem.out.println(listaEmpleados.get(4).dameEmpleados());\n\t\t\n\t\t//IMPRIMIMOS EL TAMAÑO DEL ARRAYLIST\n\t\tSystem.out.println(\"Elementos: \" + listaEmpleados.size());\n\t\t\n\t\t/*//BUCLE FOR-EACH\n\t\tSystem.out.println(\"Elementos: \" + listaEmpleados.size());\n\t\tfor(Empleado x : listaEmpleados) {\n\t\t\tSystem.out.println(x.dameEmpleados());\n\t\t}*/\n\t\t\n\t\t/*//BUCLE FOR\n\t\tfor(int i=0;i<listaEmpleados.size();i++) {\n\t\t\t//ALAMCENAMOS EN \"e\" LOS ELEMENTOS DEL ARRAYLIST\n\t\t\tEmpleado e =listaEmpleados.get(i); \n\t\t\tSystem.out.println(e.dameEmpleados());\n\t\t}*/\n\t\t\n\t\t//GUARDAMOS LA INFORMACIÓN DEL ARRAYLIST EN UN ARRAY CONVENSIONAL Y LO RECORREMOS\n\t\t//CREAMOS ARRAY Y LE DAMOS LA LONGITUD DEL ARRAYLIST:\n\t\tEmpleado arrayEmpleados[]= new Empleado[listaEmpleados.size()];\n\t\t//COPIAMOS LA INFORMACIÓN EN EL ARRAY CONVENSIONAL:\n\t\tlistaEmpleados.toArray(arrayEmpleados);\n\t\t//RECORREMOS\n\t\tfor(int i=0;i<arrayEmpleados.length;i++) {\n\t\t\tSystem.out.println(arrayEmpleados[i].dameEmpleados());\n\t\t}\n\t}",
"private void createClinicList(){\n\n ArrayList<Clinic> clinics = LogIn.clinicDAO.getAllClinics();\n for(Clinic cn : clinics){\n double avgRating = LogIn.rateDAO.getAvgRating(cn.getClinicID());\n clinicList.add(new ClinicItem(cn.getClinicName(), drawable.clinic_logo, \"Singapore\", Double.toString(avgRating)));\n }\n }",
"public void makeArray(){\n for (int i = 0; i<length; i++){\n departements[i] = wallList.get(i).getName();\n }\n }",
"public ArrayList<Integer> obtenerNi(ArrayList<Integer> listay){\n ArrayList<Integer> res=new ArrayList<Integer>();\n \n for (int i=0;i<listay.size();i++){\n res.add(contar(listay,i+1));\n }\n return res;\n }",
"private Complejo[] crearComplejos(double[][] numeros) {\n\t\tComplejo[] complejos = new Complejo[numeros.length];\n\t\tfor (int i = 0; i < numeros.length;i++) {\n\t\t\tcomplejos[i] = new Complejo(numeros[i][0],numeros[i][1]);\n\t\t}\n\t\treturn complejos;\n\t}"
] | [
"0.6488941",
"0.6481975",
"0.6398758",
"0.6235067",
"0.61188835",
"0.6094022",
"0.6083881",
"0.6035422",
"0.6018738",
"0.6010658",
"0.6009539",
"0.5996734",
"0.59805304",
"0.596919",
"0.5963403",
"0.5958482",
"0.59506166",
"0.5931411",
"0.5928566",
"0.59182733",
"0.5912965",
"0.59095234",
"0.588571",
"0.588571",
"0.58801746",
"0.58645654",
"0.58430785",
"0.57979023",
"0.5789208",
"0.5788355",
"0.57810485",
"0.57760715",
"0.5768039",
"0.57634324",
"0.5730196",
"0.5725681",
"0.5720322",
"0.5716765",
"0.57154477",
"0.5707666",
"0.5699296",
"0.5673565",
"0.56415546",
"0.56363606",
"0.56329006",
"0.56253994",
"0.56251335",
"0.56081504",
"0.5603033",
"0.56015277",
"0.5596333",
"0.5594565",
"0.5584852",
"0.55761486",
"0.5568888",
"0.55651426",
"0.5548438",
"0.5527676",
"0.5525764",
"0.5525288",
"0.5519028",
"0.55179226",
"0.5517447",
"0.5511992",
"0.5504953",
"0.55048597",
"0.5496019",
"0.54931194",
"0.54921585",
"0.5490119",
"0.5487536",
"0.54824346",
"0.54800725",
"0.54773945",
"0.547665",
"0.5466325",
"0.54661155",
"0.5462727",
"0.54621434",
"0.5460596",
"0.5458245",
"0.5454949",
"0.5446727",
"0.5446198",
"0.5442877",
"0.5439042",
"0.54376984",
"0.5434331",
"0.5433513",
"0.54242545",
"0.5420651",
"0.5411807",
"0.5409965",
"0.5408698",
"0.5405275",
"0.53996146",
"0.5398609",
"0.53920317",
"0.5391122",
"0.53897434",
"0.5387184"
] | 0.0 | -1 |
Requests a move to a new row and column. | public boolean move(int row, int column) {
// 1. Implement the move method.
// If the move is valid, return true and update `row` and `column` fields.
// If the move is invalid, return false and do not update fields.
// Rules for valid moves:
// - row and column can never be less than 0 or greater than 7 (8 rows and columns on a chess board).
// - can't equal the existing row and column (same location)
// - If the row parameter and field are the same but the column is not, the queen is moving horizontally. That's valid.
// - If the column parameter and field are the same but the row is not, the queen is moving vertically. That's valid.
// - Otherwise, the absolute difference between row parameter and field
// and the absolute difference between the column parameter and field must be the same.
// That represents a diagonal move.
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void move(int row, int col) throws IllegalMoveException;",
"public PuzzleState move(int row, int column, Operation op);",
"public void move(int fromRow, int fromColumn, int toRow, int toColumn) {\n ImmutablePair<Integer, Integer> from = new ImmutablePair<>(fromRow, fromColumn);\n ImmutablePair<Integer, Integer> to = new ImmutablePair<>(toRow, toColumn);\n // Step 2. Generating move action\n ShiftChipAction moveAction = new ShiftChipAction(getPlayer(), from, to);\n // Step 3. Actually performing action\n perform(moveAction);\n }",
"private boolean move(int startRow, int startCol, int toRow, int toCol) {\n return model.getPiece(startRow, startCol).moveTo(toRow, toCol);\n }",
"Move(int r, int c, int dr, int dc)\n\t{\n\t\tpieceRow = r;\n\t\tpieceCol = c;\n\t\tdestRow = dr;\n\t\tdestCol = dc;\n\t}",
"public abstract void move(int newXPosition, int newYPosition, PiecePosition position) throws BoardException;",
"public Move(int fromRow, int fromColumn, int toRow, int toColumn) { // move constructor, parameters for \"from\" location and \"to\" location\r\n\t\tthis.fromRow = fromRow;\r\n\t\tthis.fromColumn = fromColumn;\r\n\t\tthis.toRow = toRow;\r\n\t\tthis.toColumn = toColumn;\r\n\t}",
"private void moveTile()\n {\n int[] moveIndices = null;\n \n int sourceRow = moveIndices[0];\n int sourceCol = moveIndices[1];\n int destRow = moveIndices[2] - 1;\n int destCol = moveIndices[3];\n \n if (sourceRow == 0) \n {\n try\n {\n game.playTileFromHand(sourceCol, destRow, destCol);\n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n else\n {\n sourceRow--;\n try\n {\n game.moveTileInBoard(sourceRow, sourceCol, destRow, destCol); \n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n }",
"@Override\n protected void moveToNextRow(){\n incrementRow();\n resetXPos();\n if(getRow()%2 == 1){\n incrementYPos(getHeight()+getHeight());\n }\n resetCol();\n setPointDirection();\n }",
"public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }",
"public Move(int row, int col) {\n\t\tthis.row = row;\n\t\tthis.col = col;\n\t}",
"public void moveRowRelative(int rows) throws SQLException {\n/* 327 */ notSupported();\n/* */ }",
"public void movePiece(Coordinate from, Coordinate to);",
"private synchronized void sendMove(DataOutputStream out, int row, int column)\n throws IOException {\n out.writeInt(row); // Send row index\n out.writeInt(column); // Send column index\n }",
"private void tryMove(int row, int column) {\n game.move(new Point(row, column));\n }",
"public void move() {\n\t\tif ( board.getLevel() == 5 )\n\t\t\tmovementIndex = ( movementIndex + 1 ) % movement.length;\n\t}",
"public void move(FightCell cell);",
"protected void moveRow (int row)\r\n {\r\n int move = 0;\r\n \r\n if (row < _currentRow)\r\n { move = _currentRow - row; }\r\n \r\n else if (row > _currentRow)\r\n { move = row - _currentRow; }\r\n \r\n _currentRow = row;\r\n }",
"private void playerMove(PlayerPiece playerPiece, String direction) {\n // Row will be -1 from player location with the same column value\n System.out.println(playerPiece + \" trying to move \" + direction + \".\");\n Tile playerLocation = playerPiece.getLocation();\n System.out.println(\"Player in: \" + playerLocation.getRow() + \" \" + playerLocation.getColumn());\n int newRow = playerLocation.getRow();\n int newColumn = playerLocation.getColumn();\n switch (direction) {\n case \"u\":\n newRow -= 1;\n break;\n case \"d\":\n newRow += 1;\n break;\n case \"l\":\n newColumn -= 1;\n break;\n case \"r\":\n newColumn += 1;\n break;\n }\n if (newRow >= 0 && newColumn >= 0 && newRow < this.board.getGrid().getRows() && newColumn < this.board.getGrid().getColumns()) {\n System.out.println(newRow + \" \" + newColumn);\n Tile newLocation = this.board.getGrid().getTile(newRow, newColumn);\n System.out.println(\"New Location:\" + newLocation);\n System.out.println(\"Cords: \" + newLocation.getRow() + \" \" + newLocation.getColumn());\n if (newLocation.isAvailable()) {\n playerLocation.removeOccupier();\n playerPiece.setLocation(newLocation);\n newLocation.setOccupier(playerPiece);\n System.out.println(\"Player moved to: \" + playerLocation.getRow() + \" \" + playerLocation.getColumn());\n this.board.getGrid().print();\n }\n }\n }",
"public void moveUp()\n\t{\n\t\trow++;\n\t}",
"public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }",
"public boolean move(int oldCol, int oldRow, int newCol, int newRow , char promo) {\r\n\r\n\r\n if(isValidMove(oldCol, oldRow, newCol, newRow)) {\r\n\r\n\r\n // not a valid move for current player for ANY piece\r\n // if current players king will be in check as a result\r\n // move is disallowed\r\n if (King.isPlayerKingInCheck(oldRow, oldCol, newRow, newCol)) {\r\n return false;\r\n }\r\n else {\r\n\r\n if (Chessboard.whitesTurn==true) {\r\n Chessboard.whiteincheck=false;\r\n }\r\n if (Chessboard.blacksTurn==true) {\r\n Chessboard.blackincheck=false;\r\n }\r\n }\r\n\r\n\r\n\r\n Chessboard.chessBoard[newRow][newCol].setPiece(Chessboard.chessBoard[oldRow][oldCol].getPiece());\r\n Chessboard.chessBoard[oldRow][oldCol].setPiece(null);\r\n Chessboard.chessBoard[newRow][newCol].getPiece().moved();\r\n\r\n if (King.isOpponentKingInCheck(newRow, newCol)){\r\n if (Chessboard.whitesTurn==true) {\r\n Chessboard.blackincheck=true;\r\n }\r\n if (Chessboard.blacksTurn==true) {\r\n Chessboard.whiteincheck=true;\r\n }\r\n }\r\n else {\r\n if (Chessboard.whitesTurn==true) {\r\n Chessboard.blackincheck=false;\r\n }\r\n if (Chessboard.blacksTurn==true) {\r\n Chessboard.whiteincheck=false;\r\n }\r\n }\r\n if(King.isOpponentKinginCheckmate(newRow, newCol)) {\r\n Chessboard.checkMate=true;\r\n }\r\n\r\n\r\n Pawn.r = -1;\r\n Pawn.c = -1;\r\n return true;\r\n }\r\n return false;\r\n }",
"public void moveCell(long cellId, double x, double y)\n\t{\n\t\tCalicoPacket packet = new CalicoPacket();\n\t\tpacket.putInt(IntentionalInterfacesNetworkCommands.CIC_MOVE);\n\t\tpacket.putLong(cellId);\n\t\tpacket.putInt((int) x);\n\t\tpacket.putInt((int) y);\n\n\t\tpacket.rewind();\n\t\tPacketHandler.receive(packet);\n\t\tNetworking.send(packet);\n\t}",
"public void movePlayerPiece(int newRow, int newCol) {\n int currentPlayerNumber = GameService.getInstance().getCurrentPlayerNum();\n playerPieces[currentPlayerNumber].addPreviousPlayerPosition(playerPiecePositions[currentPlayerNumber]);\n playerPiecePositions[currentPlayerNumber] = new Position(newRow, newCol);\n }",
"public abstract void move(int p_index) ;",
"public void move(double dist){\n VectorMovement newPositionAndLines = myGrid.addMovement(xPos, yPos, myAngle, dist, myPen);\n Point newPosition = newPositionAndLines.getPosition();\n updateUndoBuffers(newPositionAndLines.getLinesAssociatedWithMovement());\n xPos = newPosition.getMyX();\n yPos = newPosition.getMyY();\n }",
"void onMove(Sudoku.State state, Location loc, Numeral num);",
"public void move(int distance);",
"@Override\n\tpublic boolean move(int col, int row, piece[][] board) {\n\t\treturn false;\n\t}",
"void move(char entry, int column, int row) {\n if(!moveIsOnBoard(column, row) ) {\n // throw an exception\n } else if (!this.state[column][row].isEmpty) {\n // throw a different exception\n } else {\n this.state[column][row].makeEntry(entry);\n }\n this.checkIfFull();\n }",
"public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}",
"private void moveNext(PositionTracker tracker) {\n\t\t \n\t\t //initiate if-else statement\n\t\t if(tracker.getExactColumn() == (tracker.getMaxColumns() - 1)) {\n\t\t\t \n\t\t\t //invoke the setExactRow method\n\t\t\t tracker.setExactRow(tracker.getExactRow() + 1);\n\t\t\t \n\t\t\t //invoke the setExactColumn method\n\t\t\t tracker.setExactColumn(0);\n\t\t\t \n\t\t }else {\n\t\t\t \n\t\t\t //invoke the setExactColumn method\n\t\t\t tracker.setExactColumn(tracker.getExactColumn() + 1);\n\t\t }//end if-else\n\t }",
"public void makeMove() throws IOException {\n\n\t\tint row;\n\t\tint col;\n\t\tsocketOut.println(name + \", what row should your next \" + mark + \" be placed in? Enter an integer: \\n\");\n\t\tString rowString = socketIn.readLine();\n\t\trow = Integer.parseInt(rowString);\n\t\tsocketOut.println(name + \", what column should your next \" + mark + \" be placed in? Enter an integer: \\n\");\n\t\tString colString = socketIn.readLine();\n\t\tcol = Integer.parseInt(colString);\n\n\t\tif (row < 0 || col < 0 || row > 2 || col > 2) {\n\t\t\tsocketOut.println(\"Be serious, enter integer 0 - 2, let's try again. Enter an integer: \\n\");\n\t\t\tmakeMove();\n\t\t} else if (board.getMark(row, col) != ' ') {\n\t\t\tsocketOut.println(\"Cheating not allowed! Let's enter again. Enter an integer: \\n\");\n\t\t\tmakeMove();\n\t\t} else {\n\t\t\tboard.addMark(row, col, mark);\n\t\t}\n\t}",
"public static void moveElement(int[][] currentPuzzleState, int row1, int column1, int row2, int column2) {\n int tmp = currentPuzzleState[row1][column1];\n currentPuzzleState[row1][column1] = currentPuzzleState[row2][column2];\n currentPuzzleState[row2][column2] = tmp;\n\t}",
"protected void move(int newX, int newY) {\n if (grid.inBounds(newX, newY)) {\n grid.exit(this, newX, newY);\n }\n if (grid.valid(newX, newY) && System.currentTimeMillis() - lastMovement > 100) {\n grid.addTokenAt(null, positionX, positionY);\n grid.addTokenAt(this, newX, newY);\n positionX = newX;\n positionY = newY;\n lastMovement = System.currentTimeMillis();\n grid.repaint();\n }\n }",
"private void moveCursor( int nr, int nc )\n {\n // moving (or escaping) while editing forces processing of editString\n if( state.equals( \"editing\" ) )\n {\n if( okay( editString ) )\n {\n a[cursorRow][cursorCol] = convert( editString );\n }\n editString = \"\";\n \n }\n else if( state.equals( \"rhsEditing\" ) )\n {\n if( okay( rhsEditString ) )\n {\n a[cursorRow][numCols-1] = convert( rhsEditString );\n }\n rhsEditString = \"\";\n }\n\n // move appropriately (might be illegal request)\n int oldRow=cursorRow, oldCol=cursorCol; // remember so can restore as needed\n\n cursorRow = nr; cursorCol = nc;\n\n if( ( (state.equals( \"editing\" ) && cursorRow == 0) || 1<=cursorRow) // good row\n && cursorRow<numRows && 0<=cursorCol && cursorCol<numCols-1\n )\n {// new position is legal, shift window as needed so cursor visible\n\n // adjust window vertically\n if( cursorRow > 0 ) // when cursor on obj row leave firstWinRow at 1\n {\n if( cursorRow < firstWinRow )\n firstWinRow = cursorRow;\n if( cursorRow > firstWinRow + winRows - 1 )\n firstWinRow = cursorRow - winRows + 1;\n }\n\n // adjust window horizontally\n if( cursorCol < firstWinCol )\n firstWinCol = cursorCol;\n if( firstWinCol+winCols-1 < cursorCol )\n firstWinCol = cursorCol - winCols + 1;\n\n }// new position legal\n else\n {// restore original\n cursorRow=oldRow; cursorCol=oldCol;\n }\n\n }",
"@Override\n public void move(int col) throws ColumnFullException, IllegalColumnException {\n //handle exceptions\n if (col < 0 || col >= NUM_COLS) {\n throw new IllegalColumnException(col);\n }\n if (isColumnFull(col)) {\n throw new ColumnFullException(col);\n }\n\n //loop to next empty space in the col\n //catch errors\n int j = 0;\n try {\n while (getCounterAt(col, j) != EMPTY) {\n j++;\n }\n } catch (IllegalColumnException e) {\n System.out.println(e + \" in MyGameState.java Method move\");\n\n } catch (IllegalRowException e) {\n System.out.println(e + \" in MyGameState.java Method move\");\n }\n\n //set the found position to the current turn\n board[j][col] = whoseTurn();\n //change the turn\n changeTurn();\n //update the last position that was set\n lastPlacedRow = j;\n lastPlacedCol = col;\n\n\n }",
"public void movePiece(int row, int column, BiFunction<Integer, Integer, Boolean> canMove) \r\n\t\t\tthrows IllegalMoveException {\r\n\t\tif(row < 0 || row > 7 || column < 0 || column > 7 ||\r\n\t\t\t\t!canMove.apply(row, column)){\r\n\t\t\tthrow new IllegalMoveException();\r\n\t\t}\r\n\t\tif(this.row == row && this.column == column){\r\n\t\t\tthrow new IllegalMoveException();\r\n\t\t}\r\n\t\tthis.row = row;\r\n\t\tthis.column = column;\r\n\t\tthis.moved = true;\r\n\t}",
"void moveNode( int from, int to );",
"Location newLocation(int line, int col);",
"public Move(int inRow, int inLeft, int inRight){\n\t\trow = inRow; left = inLeft; right = inRight;\n\t}",
"public void move(Cell[][] maze) {\n // check monster still alive or not\n if (!alive) {\n return;\n }\n //four directions: left, right, up, down\n int[][] dirs = {{0, -1}, {0, 1}, {-1, 0}, {1, 0}};\n // a list to store all valid directions to move\n List<int[]> validDir = new ArrayList<>();\n for (int[] dir : dirs) {\n int newRow = this.current_row + dir[0];\n int newCol = this.current_column + dir[1];\n // try finding a location where is not wall, not the previous location, not a place 3 sides surrounded by walls\n // and save it to valid directions list\n if (maze[newRow][newCol].getValue() != 1 && !(newRow == pre_row && newCol == pre_column)\n && validNextMove(newRow, newCol, maze)) {\n int[] newLocation = new int[]{newRow, newCol};\n validDir.add(newLocation);\n }\n }\n //If there is no valid move choice, the monster has to backtrack\n if (validDir.size() == 0) {\n this.current_row = this.pre_row;\n this.current_column = this.pre_column;\n this.pre_row = this.current_row;\n this.pre_column = this.current_column;\n } else {\n // randomly select a valid direction to move\n Random random = new Random();\n int ranNum = random.nextInt(validDir.size());\n int[] newLoc = validDir.get(ranNum);\n int newRow = newLoc[0];\n int newCol = newLoc[1];\n this.pre_row = this.current_row;\n this.pre_column = this.current_column;\n this.current_row = newRow;\n this.current_column = newCol;\n }\n }",
"void moveElement(int elementId, double xCoordinate, double yCoordinate);",
"public char makeMove(Coordinate move);",
"public synchronized void makeMove() throws NumberFormatException, IOException {\r\n\tboolean check=true;\r\n\twhile(check) {\r\n\tsocketOut.println(name+\", what row should your next \"+mark+\" be placed in ?\");\r\n\trow=Integer.parseInt(socketIn.readLine());\r\n\tsocketOut.println(name+\", what column should your next \"+mark+\" be placed in ?\");\r\n\tcol =Integer.parseInt(socketIn.readLine());\r\n\tif((row>=0 && row<=2)&&((col>=0 && col<=2))) {\r\n\tif (board.getMark(row, col)==' ' ) {\r\n\t\t {\r\n\t\t\tboard.addMark(row, col, mark);\r\n\t\t\topponent.board.addMark(row, col, mark);\r\n\t\t\tcheck=false;\r\n\t\t}\r\n\t\t\r\n\t\r\n\t}\r\n\telse {\r\n\t\tsocketOut.println(\"There is a mark there, choose another location\");\r\n\t\t\r\n\t}}}\r\n}",
"public void move(){\n\t\t\n\t}",
"public void paradiseMove(){\n if (!getCurrentMainCellCoordinates().equals(new DiscreteCoordinates(11, 9))) {\n move(30);\n }\n }",
"public void move() {\n if (!canMove) {\n return;\n }\n int moveX = currDirection == EAST ? PACE : currDirection == WEST ? -PACE : 0;\n int moveY = currDirection == NORTH ? PACE : currDirection == SOUTH ? -PACE : 0;\n if (grid == null || grid.isOutside(currX + moveX, currY + moveY)) {\n return;\n }\n currX += moveX;\n currY += moveY;\n }",
"public void move();",
"public void move();",
"void makeMove(String move) {\n if (!isLegal(move)) {\n throw new IllegalArgumentException(\"This is an illegal move.\");\n }\n int column = Integer.parseInt(move.substring(2)) - 1;\n int row = Integer.parseInt(move.substring(0, 1)) - 1;\n _board[column][row] = currPlayer;\n alternatePlayer(currPlayer);\n }",
"public void move(String direction);",
"public void actualMove(int temprow, int tempcolumn, boolean hasMoved) \r\n\t\t\tthrows IllegalMoveException {\r\n\t\tif(temprow < 0 || temprow > 7 || column < 0 || column > 7){\r\n\t\t\tthrow new IllegalMoveException();\r\n\t\t}\r\n\t\tthis.row = temprow;\r\n\t\tthis.column = tempcolumn;\r\n\t\tthis.moved = hasMoved;\r\n\t}",
"Move(Move m)\n\t{\n\t\tif(m != null) {\n\t\t\tpieceRow = m.pieceRow;\n\t\t\tpieceCol = m.pieceCol;\n\t\t\tdestRow = m.destRow;\n\t\t\tdestCol = m.destCol;\n\t\t}\n\t}",
"public void movePlayerPiece(Tile newTile) {\n // Check if the target tile is a position that can be moved to.\n PlayerPiece pp = currentPlayersTurn.getPiece();\n int tileRow = pp.getLocation().getRow();\n int tileCol = pp.getLocation().getColumn();\n List<Pair<Integer, Integer>> neighbours = new ArrayList<>();\n\n // Generate immediately adjacent tiles.\n for (int row = tileRow - 1; row <= tileRow + 1; row++) {\n if (row == tileRow || row > board.getGrid().getRows() ||\n row < 0) {\n continue;\n }\n neighbours.add(new Pair<>(row, tileCol));\n }\n for (int col = tileCol - 1; col <= tileCol + 1; col++) {\n if (col == tileCol || col > board.getGrid().getColumns() ||\n col < 0) {\n continue;\n }\n neighbours.add(new Pair<>(tileRow, col));\n }\n\n boolean canMove = neighbours.contains(new Pair<>(newTile.getRow(),\n newTile.getColumn())) && (currentPlayersSteps > 0)\n && state == GameState.InPlay && !newTile.isOccupied();\n\n if (canMove) {\n currentPlayersTurn.getPiece().getLocation().removeOccupier();\n currentPlayersTurn.getPiece().setLocation(newTile);\n currentPlayersSteps--;\n }\n\n if (currentPlayersSteps <= 0) {\n endTurn();\n }\n }",
"abstract public Tuple move(Tuple c, char [][] forest);",
"public abstract void moveTo(double x, double y);",
"@Override\r\n public void move(int fromRow, int fromCol, int toRow, int toCol) throws IllegalArgumentException {\n if (checkOutOfBounds(fromRow, fromCol, toRow, toCol)) {\r\n throw new IllegalArgumentException(\"Can't have location outside the board limits\");\r\n }\r\n\r\n // Check if locations, from and to, are invalid in the board.\r\n if (board.getPiece(fromRow, fromCol).isInvalid() || board.getPiece(toRow, toCol).isInvalid()) {\r\n throw new IllegalArgumentException(\"Can't move from or to invalid position\");\r\n }\r\n\r\n // Check if the move from and to locations are two spots away for horizontal and vertical moves.\r\n int rowDiff = Math.abs(fromRow - toRow);\r\n int colDiff = Math.abs(fromCol - toCol);\r\n if (!(rowDiff == 0 && colDiff == 2) && !(rowDiff == 2 && colDiff == 0)\r\n && !(rowDiff == 2 && colDiff == 2)) {\r\n throw new IllegalArgumentException(\"From & To locations aren't 2 spots away from each other\");\r\n }\r\n\r\n // Get the middle marble position.\r\n int middleRow = getTriangleMiddleRow(fromRow, fromCol, toRow, toCol);\r\n int middleCol = getTriangleMiddleCol(fromRow, fromCol, toRow, toCol);\r\n\r\n // Make the move by setting correct pieces in the positions.\r\n makeMove(fromRow, fromCol, middleRow, middleCol, toRow, toCol);\r\n\r\n this.score = this.score - 1;\r\n\r\n }",
"public void move() {\n\r\n\t}",
"public void moveBy(Delta delta)\n\t{\n\t\ttry {\n\t\t\tcurrentPosition = Position.fromCoordinates(currentPosition.X + delta.X, currentPosition.Y + delta.Y);\n\t\t}\n\t\tcatch(IllegalArgumentException invalidDelta)\n\t\t{\n\t\t\t// Convert exception to convey the correct semantics \n\t\t\tthrow new IllegalStateException(invalidDelta);\n\t\t}\n\t}",
"public void moveTo(int newX, int newY) {\n xPosition = newX-radius;\n yPosition = newY-radius;\n }",
"public void makeMove(Game game) {\n\t\t\n\t\tint row,col;\n\t\tTickTackToe tttGame = (TickTackToe) game;\n\t\tView.playerNameSet(name);\n while(true){\n \n if(View.selectedCol!=-1){\n col=View.selectedCol;\n View.selectedCol=-1;\n if(tttGame.isValidCell(col))\n break;\n else{\n JOptionPane.showMessageDialog(this,\"Please Choose Another Column\", \"Alert\", JOptionPane.PLAIN_MESSAGE);\n \n }\n }\n }\n \n\t\t/*boolean first = true;\n\t\tdo\n\t\t{\n\t\t\tif(first) \tSystem.out.println(\"Insert column [0,2]\");\n\t\t\telse System.out.println(\"Invalid input! Insert column [0,2] again.\");\n\t\t\t//row = in.nextInt();\n\t\t\tcol = in.nextInt();\n\t\t\tfirst=false;\n\t\t}while(!tttGame.isValidCell(col));*/\n\t\t\n \n for(row=tttGame.row-1;row>=0;row--){\n \n if(tttGame.board[row][col]==-1){\n tttGame.board[row][col] = role;\n \n \n break;\n }\n \n }\n\t\t\n\t}",
"private void move() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n int newX = -1;\n int newY = -1;\n switch (direction) {\n case EAST:\n newX = currentPosition.getX() + 1;\n newY = currentPosition.getY();\n break;\n case WEST:\n newX = currentPosition.getX() - 1;\n newY = currentPosition.getY();\n break;\n case NORTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() + 1;\n break;\n case SOUTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() - 1;\n break;\n }\n\n if(newX < lowerBound.getX() || newY < lowerBound.getY()\n || newX > upperBound.getX() || newY > upperBound.getY()) {\n System.out.println(\"Cannot move to \" + direction);\n return;\n }\n\n currentPosition.setX(newX);\n currentPosition.setY(newY);\n }",
"public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }",
"public void move() {\r\n if(direction == 1) {\r\n if(userRow < grid.getNumRows() - 1) {\r\n userRow++;\r\n handleCollision(userRow, 1);\r\n }\r\n } else if(direction == -1) {\r\n if(userRow > 0) {\r\n userRow--;\r\n handleCollision(userRow, 1);\r\n }\r\n }\r\n }",
"@Override\n\tpublic void excute() {\n\t\tmoveEvent.move(commandinfo.getValue() * 200);\n\t}",
"void move(int steps);",
"public void move(int delta);",
"public void move( char tL, int selectCell ){\r\n boardCells[ selectCell ].setData( tL );\r\n }",
"public void incremetColumn() {\n setRowAndColumn(row, column + 1);\n }",
"public void move(String direction) {\n \n }",
"public void moveRight() {\n this.position.addColumn(1);\n }",
"public void move() throws InstructionExecutionException\r\n\t{\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tStreet street=this.getHeadingStreet();\r\n\t\t\tif(street==null){\r\n\t\t\t\tString err=\"WALL·E says: There is no street in direction \"+this.getCurrentHeading();\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, err);\r\n\t\t\t\t}\r\n\t\t\t\tthrow new InstructionExecutionException(err);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tPlace nextPlace=street.nextPlace(this.currentPlace);\r\n\t\t\tif (street.isOpen()){\r\n\t\t\t\tthis.currentPlace=nextPlace;\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tthis.navigationPanel.updateCell(currentDirection, nextPlace);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}else{\r\n\t\t\t\tString err=\"WALL·E says: Arrggg, there is a street but it is closed!\";\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, err);\r\n\t\t\t\t}\r\n\t\t\t\tthrow new InstructionExecutionException(err);\r\n\t\t\t}\r\n\t\t}catch (Exception e){\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void moveException13() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n exampleBoard.move(0, 0, 0, 2);\n }",
"public void moveDown()\n\t{\n\t\trow--;\n\t}",
"public void doNextMove(Player player) {\r\n int newX = xCoord;\r\n int newY = yCoord;\r\n switch (currentDirection) {\r\n case 1:\r\n newX = xCoord + 1;\r\n break;\r\n case 2:\r\n newY = yCoord + 1;\r\n break;\r\n case -1:\r\n newX = xCoord - 1;\r\n break;\r\n case -2:\r\n newY = yCoord - 1;\r\n break;\r\n }\r\n if (checkValidMove(newX, newY)) {\r\n // System.out.println(xCoord + \" \" + yCoord);\r\n // System.out.println(newX + \" \" + newY);\r\n moveTo(newX, newY);\r\n // System.out.println(xCoord + \" \" + yCoord);\r\n\r\n } else {\r\n turnAround();\r\n doNextMove(player);\r\n }\r\n }",
"public void move() {\n\t\t\tar.setAhead(10 * fahrtrichtung);\n\n\t\t\t// Wie schnell sich der Roboter drehen soll\n\t\t\tar.setTurnRight(45 * drehrichtung);\n\t\t\tar.execute();\n\t\t\tfarbschema = farbschema * (-1);\n\t\t}",
"public boolean doMoveRemote(Player player, Prisoner prisoner, int rowOrCol, int row, int col) throws IClientException, RemoteException;",
"public void AskForMove();",
"private void overwritePosition(int oldRow, int oldCol, int newRow, int newCol){\n gameBoard[newRow][newCol] = gameBoard[oldRow][oldCol];\n gameBoard[oldRow][oldCol] = new EmptyPiece();\n }",
"public void moveTo(double newX, double newY, double newZ){\n pos[0] = newX;\n pos[1] = newY;\n pos[2] = newZ;\n }",
"public void moveToDestination(Move move) {\r\n\t\tx = move.getToX();\r\n\t\ty = move.getToY();\r\n\r\n\t}",
"void move(IntVector delta);",
"public void testMove() throws RepositoryException{\n String src = \"src\";\n String dest=\"dest\";\n \n session.move(src, dest);\n sessionControl.replay();\n sfControl.replay();\n \n jt.move(src, dest);\n }",
"@Override\r\n\tpublic void move(String from, String to) {\n\t\t\r\n\t}",
"public void movePlayer(String direction) {\n if(playerAlive(curPlayerRow, curPlayerCol)){\n if(direction.equals(\"u\")&&(curPlayerRow-1)>=0){\n overwritePosition(curPlayerRow, curPlayerCol, (curPlayerRow-1), curPlayerCol);\n curPlayerRow -= 1;\n }else if(direction.equals(\"d\")&&(curPlayerRow+1)<=7){\n overwritePosition(curPlayerRow, curPlayerCol, (curPlayerRow+1), curPlayerCol);\n curPlayerRow += 1;\n }else if(direction.equals(\"l\")&&(curPlayerCol-1)>=0){\n overwritePosition(curPlayerRow, curPlayerCol, curPlayerRow, (curPlayerCol-1));\n curPlayerCol -= 1;\n }else if(direction.equals(\"r\")&&(curPlayerCol+1)<=9){\n overwritePosition(curPlayerRow, curPlayerCol, curPlayerRow, (curPlayerCol+1));\n curPlayerCol += 1;\n }\n }\n if(playerFoundTreasure(curPlayerRow, curPlayerCol)){\n playerWins();\n }\n adjustPlayerLifeLevel(curPlayerRow, curPlayerCol);\n int[] array = calcNewTrollCoordinates(curPlayerRow, curPlayerCol, curTrollRow, curTrollCol);\n if(curPlayerRow == curTrollRow && curPlayerCol == curTrollCol){\n gameBoard[curTrollRow][curTrollCol] = new TrollPiece();\n }else{\n int newTrollRow = array[0];\n int newTrollCol = array[1];\n overwritePosition(curTrollRow, curTrollCol, newTrollRow, newTrollCol);\n curTrollRow = newTrollRow;\n curTrollCol = newTrollCol;\n }\n }",
"public void move() {\n process(2);\n }",
"public void move(String targetNodeId, String targetPath);",
"private void move(double newXPos){\n this.setX(newXPos);\n }",
"public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}",
"private void undoMove(int row, int column) {\n numbersAdded--;\n square[row * dimensions + column] = 0;\n }",
"public void moveToCurrentRow() throws SQLException {\n\n try {\n debugCodeCall(\"moveToCurrentRow\");\n checkClosed();\n insertRow = null;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public move to_move(int x_in, int y_in)\n {\n return new move(x_in,y_in,x_in+xend,y_in+yend);\n }",
"public void moveRight()\n\t{\n\t\tcol++;\n\t}",
"public void moveTo (Coordinate c) throws Exception\n\t{\n\t\tcurrentLocation = c;\n\t\tgrid[c.x][c.y] = GridChar.VISITED;\n\t}",
"public void makeMove(int move) {\n makeMove(legalMoves[nextPiece][move]);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException1() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n exampleBoard.move(0, 3, 3, 3);\n }",
"protected void move()\n {\n // Find a location to move to.\n Debug.print(\"Fish \" + toString() + \" attempting to move. \");\n Location nextLoc = nextLocation();\n\n // If the next location is different, move there.\n if ( ! nextLoc.equals(location()) )\n {\n // Move to new location.\n Location oldLoc = location();\n changeLocation(nextLoc);\n\n // Update direction in case fish had to turn to move.\n Direction newDir = environment().getDirection(oldLoc, nextLoc);\n changeDirection(newDir);\n Debug.println(\" Moves to \" + location() + direction());\n }\n else\n Debug.println(\" Does not move.\");\n }",
"private Board moveTo(int direction) {\n Board newBoard = new Board(this.state);\n int oZ = this.zero;\n int nZ = oZ;\n switch (direction) {\n case Board.LEFT: nZ = oZ - 1; break;\n case Board.RIGHT: nZ = oZ + 1; break;\n case Board.UP: nZ = oZ - Board.dim; break;\n case Board.DOWN: nZ = oZ + Board.dim; break;\n default: return null;\n }\n newBoard.state[oZ] = state[nZ];\n newBoard.state[nZ] = 0;\n newBoard.zero = nZ;\n\n // update heuristic iteratively except for MAN\n switch(Board.heuristic) {\n case HAM:\n if (state[nZ] == oZ) newBoard.dist = this.dist - 1;\n else if (state[nZ] == nZ) newBoard.dist = this.dist + 1;\n else newBoard.dist = this.dist;\n break;\n case INT: // iterative update the interference\n // this is the most logically complicated code I have\n // done in a while\n int moved = state[nZ];\n int oC;\n newBoard.inter = inter;\n switch (direction) {\n case Board.LEFT:\n case Board.RIGHT: // LEFT AND RIGHT\n if (Board.colOf[state[nZ]] == Board.colOf[nZ]) {\n // we've replaced a piece on its col with a zero\n // interference can only decrease since we know\n // the piece didn't belong to its old column\n //System.out.println(\"Took \" + state[nZ] + \" out of its col\");\n for (int i = Board.colOf[nZ]; i < nZ; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[nZ] &&\n state[i] > state[nZ])\n newBoard.inter--;\n for (int i = nZ + Board.dim; i < state.length; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[nZ] &&\n state[i] < state[nZ])\n newBoard.inter--;\n \n } else if (Board.colOf[state[nZ]] == Board.colOf[oZ]) {\n // we've put a piece on its col that was a zero\n // interference can only increase since we know\n // the piece didn't below to its old column\n //System.out.println(\"Put \" + state[nZ] + \" into its col\");\n for (int i = Board.colOf[oZ]; i < oZ; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[oZ] &&\n state[i] > state[nZ])\n newBoard.inter++;\n for (int i = oZ + Board.dim; i < state.length; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[oZ] &&\n state[i] < state[nZ])\n newBoard.inter++;\n }\n break;\n default: // UP AND DOWN\n if (Board.rowOf[state[nZ]] == Board.rowOf[nZ]) {\n // we've replaced a piece on its row with a zero\n // interference can only decrease since we know\n // the piece didn't belong to its old row\n //System.out.println(\"Took \" + state[nZ] + \" out of its row\");\n for (int i = Board.dim*Board.rowOf[nZ]; i < nZ; i++)\n if (Board.rowOf[state[i]] == Board.rowOf[nZ] &&\n state[i] > state[nZ])\n newBoard.inter--;\n for (int i = nZ+1; i < Board.dim*(Board.rowOf[nZ]+1); i++)\n if (Board.rowOf[state[i]] == Board.rowOf[nZ] &&\n state[i] < state[nZ])\n newBoard.inter--;\n } else if (Board.rowOf[state[nZ]] == Board.rowOf[oZ]) {\n // we've put a piece on its row that was a zero\n // interference can only increase since we know\n // the piece didn't belong to its old row\n //System.out.println(\"Put \" + state[nZ] + \" into its row\");\n for (int i = Board.dim*Board.rowOf[oZ]; i < oZ; i++)\n if (Board.rowOf[state[i]] == Board.rowOf[oZ] &&\n state[i] > state[nZ])\n newBoard.inter++;\n for (int i = oZ+1; i < Board.dim*(Board.rowOf[oZ]+1); i++)\n if (Board.rowOf[state[i]] == Board.rowOf[oZ] &&\n state[i] < state[nZ])\n newBoard.inter++;\n }\n } \n default: // update the manhattan distance\n newBoard.dist = this.dist - \n Board.manhattanTable[state[nZ]][nZ] +\n Board.manhattanTable[state[nZ]][oZ];\n }\n return newBoard;\n }",
"void move();"
] | [
"0.69832444",
"0.68836117",
"0.64953643",
"0.6324764",
"0.62890816",
"0.62650424",
"0.6247166",
"0.62421495",
"0.61931676",
"0.619024",
"0.6089361",
"0.604008",
"0.59741855",
"0.59732157",
"0.5936236",
"0.5930276",
"0.59075886",
"0.5900322",
"0.58807003",
"0.58463913",
"0.5845311",
"0.5817309",
"0.5806086",
"0.5797716",
"0.5794605",
"0.5794128",
"0.5788519",
"0.57817715",
"0.5777025",
"0.57472354",
"0.5720059",
"0.5719571",
"0.5712026",
"0.5697056",
"0.56963384",
"0.5695838",
"0.5676505",
"0.56745523",
"0.5658903",
"0.56563866",
"0.56528354",
"0.5649575",
"0.56441915",
"0.5634779",
"0.56255186",
"0.5622199",
"0.5621211",
"0.560169",
"0.5586372",
"0.5586372",
"0.5586133",
"0.55712295",
"0.5568719",
"0.55682397",
"0.5562543",
"0.5544378",
"0.5541849",
"0.55405265",
"0.5524128",
"0.55234987",
"0.55231786",
"0.5522661",
"0.55023265",
"0.54986227",
"0.5497908",
"0.54880464",
"0.5486274",
"0.5482549",
"0.5480166",
"0.54737633",
"0.5473285",
"0.54541045",
"0.5446739",
"0.5445133",
"0.543705",
"0.54279304",
"0.5423119",
"0.5415088",
"0.5409249",
"0.540696",
"0.5406893",
"0.54062164",
"0.54020894",
"0.5394933",
"0.539006",
"0.53896654",
"0.5382376",
"0.5380889",
"0.53795743",
"0.5375422",
"0.536389",
"0.5361655",
"0.5361511",
"0.5358547",
"0.53562564",
"0.5354372",
"0.53467745",
"0.53435993",
"0.53422666",
"0.5330687"
] | 0.5496733 | 65 |
/ Dan Brickley 7eff189e90a0b21cddb1b490ee39524f3cd2ca3e | public static void main(String[] args) {
Model m = ModelFactory.createDefaultModel();
m.setNsPrefix("foaf", "http://xmlns.com/foaf/0.1/");
Thing img = new Thing("http://rdfweb.org/people/danbri/mugshot/danbri-small.jpeg", m);
img.isa(Foaf.Image.class).sha1("7eff189e90a0b21cddb1b490ee39524f3cd2ca3e");
new Thing(m). // anonymous
isa(Foaf.Person.class).
name_("Dan Brickley"). //this one is an untyped Literal
depiction(img);
// now let's see it with a typed literal
new Thing(m). // anonymous
isa(Foaf.Person.class).
name("Dan Brickley"). //this one is a typed Literal
depiction(img);
m.write(System.out, "RDF/XML-ABBREV");
/*
<foaf:Person>
<foaf:name>Dan Brickley</foaf:name>
<foaf:depiction>
<foaf:Image/>
</foaf:depiction>
</foaf:Person>
*/
m = ModelFactory.createDefaultModel();
m.setNsPrefix("foaf", "http://xmlns.com/foaf/0.1/");
img = new Thing(m);
img.isa(Foaf.Image.class);
new Thing(m).
isa(Foaf.Person.class).
name_("Dan Brickley"). //this one is an untyped Literal
depiction(img); //anonymous image
m.write(System.out, "RDF/XML-ABBREV");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract long mo9229aD();",
"public abstract long mo9743h();",
"C2451d mo3408a(C2457e c2457e);",
"public abstract long mo24409b();",
"public abstract long mo20901UQ();",
"String mo38971b();",
"public String toString()\r\n/* 438: */ {\r\n/* 439:522 */ return \"Luffa-\" + (getDigestLength() << 3);\r\n/* 440: */ }",
"public abstract long mo13681c();",
"long mo1685a(C2369e c2369e);",
"public abstract long mo9746k();",
"byte[] mo38566a();",
"String mo10312id();",
"String mo20730b();",
"public abstract String mo118046b();",
"long mo25074b();",
"long mo20406a();",
"void mo57277b();",
"private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }",
"long getUnknown72();",
"String mo20731c();",
"void mo72113b();",
"public abstract long mo9755t();",
"public abstract void mo53562a(C18796a c18796a);",
"public abstract long mo13679a();",
"dkj mo4367a(dkk dkk);",
"public abstract String mo13682d();",
"void mo57278c();",
"public abstract String mo9239aw();",
"public abstract long mo24412e();",
"public abstract String mo41079d();",
"int mo44965b();",
"public abstract long mo24410c();",
"void mo33731Pw();",
"public abstract long mo131997a() throws IOException;",
"void mo119582b();",
"void mo41086b();",
"void mo60893b();",
"boolean mo30282b();",
"C3676k mo12649b();",
"String mo30285c(long j);",
"byte mo30283c();",
"void mo1943l();",
"Aweme mo62993e();",
"private String m34493b(String str) {\n MessageDigest a = m34492a(\"MD5\");\n a.update(str.getBytes(\"UTF-8\"));\n return m34494b(a.digest());\n }",
"public abstract String mo11611b();",
"void mo12637b();",
"C4945r5 mo19056B();",
"private String m20344d(String str) {\n String valueOf = String.valueOf(Math.abs(str.hashCode() % 100));\n return this.f17416e + File.separator + valueOf;\n }",
"public abstract void mo56925d();",
"abstract String mo1748c();",
"void mo3194r();",
"public String mo34971a() {\n return \"SHA-384\";\n }",
"String mo38972c();",
"String mo131984a();",
"int mo5867a(String str, long j);",
"public void method_4270() {}",
"void mo41083a();",
"void mo5875b(String str, long j);",
"void mo7353b();",
"C3579d mo19708e(String str) throws IOException;",
"int mo27483b();",
"String mo20732d();",
"public abstract Object mo26777y();",
"public abstract int mo4375b();",
"public abstract int mo9797a();",
"public static String m3184a(String str) {\n if (str == null) {\n return null;\n }\n try {\n MessageDigest.getInstance(\"SHA-256\").update(str.getBytes(\"UTF-8\"));\n str = String.format(Locale.US, \"%064x\", new Object[]{new BigInteger(1, r1.digest())});\n } catch (Exception e) {\n C0784a.m3252a(C0766d.class, e);\n str = null;\n }\n return str;\n }",
"private void m91737K() {\n String str = this.f73944a;\n boolean z = true;\n if (this.f73953m != 1) {\n z = false;\n }\n C28141am.m92411a(new C28311ag(str, z), new C28312ah(this.f73949f.hashCode()), this.f73944a);\n }",
"public void mo9233aH() {\n }",
"int getSignature ();",
"String mo21078i();",
"public abstract int mo9747l();",
"long mo117970a();",
"Info mo7564ix();",
"void mo119581a();",
"boolean mo54429b();",
"public abstract int mo13680b();",
"void mo4873a(C4718l c4718l);",
"void mo72114c();",
"public abstract void mo6549b();",
"public abstract C13619e mo34787a();",
"static int size_of_dcr(String passed){\n\t\treturn 1;\n\t}",
"void mo4874b(C4718l c4718l);",
"C5727e mo33224a();",
"void mo56163g();",
"long mo133613a();",
"public void mo21877s() {\n }",
"void mo21073d();",
"C32446a mo21077h() throws Exception;",
"public abstract byte[] mo32305a(String str);",
"public void mo21787L() {\n }",
"void mo88521a();",
"public int arn() {\n return 383;\n }",
"void m8368b();",
"int mo98209b();",
"public abstract int mo123249h();",
"C1529a mo17019b();",
"public abstract void mo70713b();",
"public void mo23438b() {\n }",
"void m8367a();",
"void mo57275a();",
"void mo4833b();"
] | [
"0.61714536",
"0.6151216",
"0.614551",
"0.611319",
"0.60077465",
"0.597802",
"0.5945161",
"0.5943963",
"0.5901361",
"0.58847797",
"0.583715",
"0.58257425",
"0.5818284",
"0.577466",
"0.57567555",
"0.5745999",
"0.57359195",
"0.57341105",
"0.5730976",
"0.5717027",
"0.5710273",
"0.57057995",
"0.57016957",
"0.56933796",
"0.56728554",
"0.5671511",
"0.5664958",
"0.5660387",
"0.5656482",
"0.5656218",
"0.56512266",
"0.5645726",
"0.5645022",
"0.56389683",
"0.56275254",
"0.5627034",
"0.56187916",
"0.5606501",
"0.5606438",
"0.5601503",
"0.55799484",
"0.5577352",
"0.5574871",
"0.5570802",
"0.55700773",
"0.5560409",
"0.55539864",
"0.55446154",
"0.5539586",
"0.55379814",
"0.5536365",
"0.5527069",
"0.5521439",
"0.55205184",
"0.5519541",
"0.5512066",
"0.55074364",
"0.5506492",
"0.5504561",
"0.5503629",
"0.5503219",
"0.55016196",
"0.5494306",
"0.54904914",
"0.5490219",
"0.5489338",
"0.5486499",
"0.5483705",
"0.5483581",
"0.54746133",
"0.5468639",
"0.5466373",
"0.5465086",
"0.54623365",
"0.5461455",
"0.5460227",
"0.54540026",
"0.54529625",
"0.54523265",
"0.5451975",
"0.5439569",
"0.5439439",
"0.5434738",
"0.5433675",
"0.54334813",
"0.54326427",
"0.54321635",
"0.54195565",
"0.54189",
"0.54187775",
"0.5416889",
"0.54136103",
"0.54121363",
"0.5410796",
"0.54079956",
"0.54022294",
"0.53988034",
"0.53987277",
"0.53978837",
"0.5396725",
"0.5387822"
] | 0.0 | -1 |
INSERTION DANS LA TABLE PRODUIT | public static boolean insert(PhotoProduit photo){
boolean retour = false;
int nbLigne = 0;
PreparedStatement ps;
try {
ps = ConnexionBD.getConnection().prepareStatement(queryInsert);
ps.setInt(1,photo.getIdProd());
ps.setString(2,photo.getCheminFtp());
ps.setString(3,photo.getExtensionPic());
ps.setString(4,photo.getAlt());
ps.setInt(5,photo.getIsDefault());
nbLigne = ps.executeUpdate();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// System.out.println("nb ligne " + nbLigne);
if(nbLigne >0 )
retour = true;
ConnexionBD.closeConnection();
return retour;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void insert(CTipoComprobante record) throws SQLException;",
"public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema(equipo, this.problema, true,fecha);\n f.registrarReporte(this.prob);\n \n }",
"void insertSelective(CTipoComprobante record) throws SQLException;",
"public boolean insert(String pTabla, String pDatos) {\n Statement s = null; // se utiliza para inicializar la conexión\n String sentencia = \"\";\n try {\n s = this.conn.createStatement();\n //String campos = \"(cod_articulo, descripcion, precio_sin_impuesto, costo_proveedor, activo, existencia)\";\n sentencia = \"INSERT INTO \" + pTabla /*+ campos */+ \" VALUES (\" + pDatos + \");\"; // se crea el insert\n s.execute(sentencia); //\n return true;\n } catch (Exception e) {\n System.out.printf(\"Error: \" + e.toString());\n return false;\n }\n }",
"int insert(Assist_table record);",
"public void insertar2(String nombre, String apellido, String mail, String celular, String comuna,String profesor,String alumno,String clave) {\n db.execSQL(\"insert into \" + TABLE_NAME + \" values (null,'\" + nombre + \"','\" + apellido + \"','\" + mail + \"','\" + celular + \"','\" + comuna + \"',\" + profesor + \",0,0,0,0,\" + alumno + \",'\" + clave + \"')\");\n }",
"protected String queryInsert() {\n StringBuilder sb = new StringBuilder(\"INSERT INTO \");\n sb.append(tabla).append(\" (\").append(String.join(\",\", campos)).append(\") VALUES (\");\n\n for (int i = 0; i < campos.length; i++) {\n if (i == campos.length -1) {\n sb.append(\"?)\");\n break;\n }\n sb.append(\"?,\");\n }\n\n return sb.toString();\n }",
"public void insert() throws SQLException;",
"@Override\r\n\tpublic void insertar() {\n\t\ttab_nivel_funcion_programa.insertar();\r\n\t\t\t\r\n\t\t\r\n\t}",
"public void insert(String champs,String valeur) throws SQLException {\n\t\t///Cette partie pour créer un string = \"?, ?; ?...\"\n\t\t///tel que le nombre des points d'interrogation égale au nombre des champs.\n\t\t///Pour l'utiliser dans la syntaxe \"INSERT\" du SQL. \n\t\t//Tableau de champs et valeur .\n String[] champsTab = champs.split(\", \");\n String[] valeurTab = valeur.split(\", \");\n\t\tArrayList<String> valueQST = new ArrayList<String>();\n\t\tfor(int i=0; i<(champs.split(\", \")).length; i++) {\n\t\t\tvalueQST.add(\"?\");\n\t\t}\n\t\t//valueQSTStr = \"?, ?, ?...\"\n\t\tString valueQSTStr = valueQST.toString().replaceAll(\"\\\\[|\\\\]\", \"\");\n\t\t/////////////////////////////////////////////////////////////////////\n String sql = \"INSERT INTO personnel(\"+champs+\") VALUES(\"+valueQSTStr+\")\"; \n Connection conn = connecter(); \n PreparedStatement pstmt = conn.prepareStatement(sql);\n int j=0;\n for(int i=0 ; i<champsTab.length;i++) {\n \tj=i+1;\n \tif(!champsTab[i].matches(\"nombre_Enfant|iD_Departement|iD_Cv|salaire\")) {\n \tif(champsTab.length>valeurTab.length) {\n \t\tif(champsTab[i].matches(\"Date_Fin_Contract\")){\n \t\tpstmt.setString(j,\"\");\t\n \t\t}else pstmt.setString(j,valeurTab[i]);\n \t}else pstmt.setString(j,valeurTab[i]);\n \t}\n \tif(champsTab[i].matches(\"salaire\")) {\n \t\tpstmt.setFloat(j,Float.parseFloat(valeurTab[i]));\n \t}\n \tif(champsTab[i].matches(\"nombre_Enfant|iD_Departement|iD_Cv\")) {\n \t\tpstmt.setInt(j,Integer.parseInt(valeurTab[i]));\n \t}\n }\n pstmt.executeUpdate();\n\t\tconn.close();\n }",
"void insert(CTipoPersona record) throws SQLException;",
"int insert(TblMotherSon record);",
"private void insertTupel(Connection c) {\n try {\n String query = \"INSERT INTO \" + getEntityName() + \" VALUES (null,?,?,?,?,?);\";\n PreparedStatement ps = c.prepareStatement(query, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, getAnlagedatum());\n ps.setString(2, getText());\n ps.setString(3, getBild());\n ps.setString(4, getPolizist());\n ps.setString(5, getFall());\n ps.executeUpdate();\n ResultSet rs = ps.getGeneratedKeys();\n rs.next();\n setID(rs.getString(1));\n getPk().setValue(getID());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n\t\tpublic void insertar() {\n\t\t\tutilitario.getTablaisFocus().insertar();\n\n\t\t}",
"public Integer inserir(String tabela, ArrayList<String> campos, ArrayList<String> valores);",
"public final void execute() {\n try {\n\n StringBuffer preparedTableBuf = new StringBuffer();\n preparedTableBuf.append(\"create table if not exists \");\n preparedTableBuf.append(tableName + \" (\");\n\n boolean isCompoundKey = false;\n boolean isAutoKey = \"generated\".equals(pkey);\n\n String[] pkeys = pkey.split(\",\");\n StringBuffer compoundKey = new StringBuffer();\n if (pkeys.length > 1) {\n isCompoundKey = true;\n compoundKey.append(\", PRIMARY KEY (\");\n for (int i = 0; i < pkeys.length; i++) {\n compoundKey.append(pkeys[i] + (i == pkeys.length - 1 ? \")\" : \", \"));\n }\n }\n\n if (isAutoKey) {\n preparedTableBuf\n .append(\"id integer NOT NULL PRIMARY KEY AUTO_INCREMENT, \");\n }\n for (int i = 0; i < fields.length; i++) {\n preparedTableBuf.append(fields[i]\n + \" \"\n + columnTypes[i]\n + (pkey.equals(fields[i]) ? \" NOT NULL UNIQUE PRIMARY KEY\" : \"\")\n + (i == fields.length - 1 ? (isCompoundKey ? compoundKey.toString()\n : \"\") + \")\" : \", \"));\n }\n\n PreparedStatement preparedTableCreate = conn\n .prepareStatement(preparedTableBuf.toString());\n\n log.info(\"Prepared Table Statement : \" + preparedTableBuf.toString());\n preparedTableCreate.executeUpdate();\n conn.commit();\n\n } catch (Exception e) {\n log.error(e);\n }\n\n try {\n\n StringBuffer preparedInsertBuf = new StringBuffer();\n preparedInsertBuf.append(\"insert into \");\n preparedInsertBuf.append(tableName + \" (\");\n\n for (int i = 0; i < fields.length; i++) {\n preparedInsertBuf.append(fields[i]\n + (i == fields.length - 1 ? \")\" : \", \"));\n }\n\n preparedInsertBuf.append(\" values(\");\n\n for (int i = 0; i < fields.length; i++) {\n preparedInsertBuf.append(\"?\" + (i == fields.length - 1 ? \")\" : \", \"));\n }\n\n PreparedStatement insertItemRecord = conn\n .prepareStatement(preparedInsertBuf.toString());\n\n log.info(\"Rows : \" + fileImporter.getRowCount());\n log.info(\"Prepared Insert Statement : \" + preparedInsertBuf.toString());\n\n Iterator<Row> riter = fileImporter.getRowIterator();\n\n int rows = 0;\n\n int[] result = null;\n\n while (riter.hasNext()) {\n Row row = riter.next();\n\n if (!row.isValid()) {\n continue;\n } else {\n rows++;\n }\n\n try {\n for (int i = 0; i < fields.length; i++) {\n if (columnTypes[i].contains(\"char\")) {\n insertItemRecord.setString(i + 1, row.getValue(fields[i]));\n } else if (\"integer\".equals(columnTypes[i])) {\n try {\n Integer value = Integer.parseInt(row.getValue(fields[i]));\n insertItemRecord.setInt(i + 1, value);\n } catch (Exception e) {\n insertItemRecord.setInt(i + 1, 0);\n }\n } else {\n log.error(\"unsupported column type\");\n }\n }\n\n insertItemRecord.addBatch();\n\n if (rows % batchSize == 0) {\n\n try {\n result = insertItemRecord.executeBatch();\n\n conn.commit();\n log.info(\"batch update : \" + result.length);\n } catch (BatchUpdateException e) {\n log.error(\"Batch Update failed\", e);\n log.error(\"result size: \"\n + (result == null ? \"null\" : result.length));\n\n }\n\n }\n } catch (Exception e) {\n log.error(\"couldn't process row properly\", e);\n }\n }\n // the last set of updates will probably not mod to 0\n\n try {\n result = insertItemRecord.executeBatch();\n conn.commit();\n log.info(\"batch update : \" + result.length);\n } catch (BatchUpdateException e) {\n log.error(\"Batch Update failed\", e);\n log.error(\"\");\n }\n\n } catch (Exception e) {\n log.error(e);\n e.printStackTrace();\n }\n }",
"private String createInsertQuery()\n {\n int i = 0;\n StringBuilder sb = new StringBuilder();\n sb.append(\"INSERT INTO \");\n sb.append(type.getSimpleName());\n sb.append(\" (\");\n for(Field field:type.getDeclaredFields()) {i++; if(i != type.getDeclaredFields().length)sb.append(field.getName() +\", \"); else sb.append(field.getName());}\n sb.append(\")\");\n sb.append(\" VALUES (\");\n i = 0;\n for(Field field:type.getDeclaredFields()) {i++; if(i!= type.getDeclaredFields().length)sb.append(\"?, \"); else sb.append(\"?\");}\n sb.append(\");\");\n return sb.toString();\n }",
"public void agregaAntNoPato(String id_antNP, String religion_antNP, String lugarNaci_antNP, String estaCivil_antNP, \n String escolaridad_antNP, String higiene_antNP, String actividadFisica_antNP, int frecuencia_antNP, \n String sexualidad_antNP, int numParejas_antNP, String sangre_antNP, String alimentacion_antNP, String id_paciente,\n boolean escoCompInco_antNP, String frecVeces_antNP, Connection conex){\n String sqlst = \"INSERT INTO antnopato\\n \"+\n \"(`id_antNP`,\\n\" +\n \"`religion_antNP`,\\n\" +\n \"`lugarNaci_antNP`,\\n\" +\n \"`estaCivil_antNP`,\\n\" +\n \"`escolaridad_antNP`,\\n\" +\n \"`higiene_antNP`,\\n\" +\n \"`actividadFisica_antNP`,\\n\" +\n \"`frecuencia_antNP`,\\n\" +\n \"`sexualidad_antNP`,\\n\" +\n \"`numParejas_antNP`,\\n\" +\n \"`sangre_antNP`,\\n\" +\n \"`alimentacion_antNP`,\\n\" +\n \"`id_paciente`,\\n\"+\n \"`escoCompInco_antNP`,\\n\"+\n \"`frecVeces_antNP`)\\n\"+\n \"VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\";\n try(PreparedStatement sttm = conex.prepareStatement(sqlst)) {\n conex.setAutoCommit(false);\n sttm.setString (1, id_antNP);\n sttm.setString (2, religion_antNP);\n sttm.setString (3, lugarNaci_antNP);\n sttm.setString (4, estaCivil_antNP);\n sttm.setString (5, escolaridad_antNP);\n sttm.setString (6, higiene_antNP);\n sttm.setString (7, actividadFisica_antNP);\n sttm.setInt (8, frecuencia_antNP);\n sttm.setString (9, sexualidad_antNP);\n sttm.setInt (10, numParejas_antNP);\n sttm.setString (11, sangre_antNP);\n sttm.setString (12, alimentacion_antNP);\n sttm.setString (13, id_paciente);\n sttm.setBoolean (14, escoCompInco_antNP);\n sttm.setString (15, frecVeces_antNP);\n sttm.addBatch();\n sttm.executeBatch();\n conex.commit();\n aux.informacionUs(\"Antecedentes personales no patológicos guardados\", \n \"Antecedentes personales no patológicos guardados\", \n \"Antecedentes personales no patológicos han sido guardados exitosamente en la base de datos\");\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }",
"@Override\n\tpublic String insertTable(String sql, String pointid, String type) {\n\t\treturn \"insert into history_table_view(sqltext,pointid,type) values('\"+sql+ \"','\"+ pointid +\"','\"+ type +\"')\";\n\t}",
"public void insertIntoTable (String tableName , LinkedList<String> values);",
"public void insertarDatos(String query) throws SQLException{\n Statement st = conexion.createStatement(); // creamos el mismo objeto statement para realizar la insercion a la base de datos\n st.executeUpdate(query); // se ejecuta la consulta en la base de datos\n }",
"public synchronized void criarTabela(){\n \n String sql = \"CREATE TABLE IF NOT EXISTS CPF(\\n\"\n + \"id integer PRIMARY KEY AUTOINCREMENT,\\n\"//Autoincrement\n// + \"codDocumento integer,\\n\"\n + \"numCPF integer\\n\"\n + \");\";\n \n try (Connection c = ConexaoJDBC.getInstance();\n Statement stmt = c.createStatement()) {\n // create a new table\n stmt.execute(sql);\n stmt.close();\n c.close();\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage()); \n// System.out.println(e.getMessage());\n }\n System.out.println(\"Table created successfully\");\n }",
"public void createDepartamentoTable() throws SQLException {\n\t\tString sql = \"create table departamento (piso int, depto varchar(100), expensas double,\ttitular varchar(100))\";\n\t\tConnection c = DBManager.getInstance().connect();\n\t\tStatement s = c.createStatement();\n\t\ts.executeUpdate(sql);\n\t\tc.commit();\n\t\t\t\n\t}",
"int insertSelective(Assist_table record);",
"public void processInsertar() {\n }",
"void insertSelective(CTipoPersona record) throws SQLException;",
"private void insertOperator() {\n int rowsAff = 0;\n int counter = 0;\n String query = \"\";\n System.out.print(\"Table: \");\n String table = sc.nextLine();\n System.out.print(\"Comma Separated Columns: \");\n String cols = sc.nextLine();\n System.out.print(\"Comma Separated Values: \");\n String[] vals = sc.nextLine().split(\",\");\n //transform the user input into a valid SQL insert statement\n query = \"INSERT INTO \" + table + \" (\" + cols + \") VALUES(\";\n for (counter = 0; counter < vals.length - 1; counter++) {\n query = query.concat(\"'\" + vals[counter] + \"',\");\n }\n query = query.concat(\"'\" + vals[counter] + \"');\");\n System.out.println(query);\n rowsAff = sqlMngr.insertOp(query);\n System.out.println(\"\");\n System.out.println(\"Rows affected: \" + rowsAff);\n System.out.println(\"\");\n }",
"@Override\n public SqlDatabaseTable insertIntoTable(SqlDatabaseTable table, List<String> row) {\n executeSql(getInsertSql(table, Collections.singletonList(row)));\n return table;\n }",
"public void insertData(String tableName) {\n //SQL statement\n String query = \"insert into \" + tableName +\n \"(\" +\n \"myName, address) \" +\n \"values ('Michael', 'my adress'), \" +\n \"('Nanna', 'Her adress'), \" +\n \"('Mathias', 'Their adress'), \" +\n \"('Maja', 'Their adress')\";\n\n try {\n //connection\n stmt = con.createStatement();\n //execute query\n stmt.executeUpdate(query);\n System.out.println(\"\\n--Data inserted into table \" + tableName + \"--\");\n } catch (SQLException ex) {\n //Handle SQL exceptions\n System.out.println(\"\\n--Query did not execute--\");\n ex.printStackTrace();\n }\n }",
"@Override\r\n public SqlResultInfo insertRecord(Db_table.TableEntry entry, Db_table table)\r\n {\r\n SqlResultInfo result = new SqlResultInfo(Boolean.FALSE);\r\n if(this.curConnection_ != null && entry != null && entry.containsNotNullEntry())\r\n {\r\n try{\r\n String[] buildSql = entry.buildColumnAndValueList();\r\n String query = \"insert into \" + table.getName() + buildSql[0]\r\n + \" values \" + buildSql[1] + \" ;\";\r\n \r\n \r\n Statement sm = curConnection_.createStatement();\r\n sm.executeUpdate(query);\r\n result.setSucceed();\r\n \r\n }catch(SQLException e)\r\n {\r\n result.setErrInfo(e);\r\n if(e.getClass() == SQLTimeoutException.class)\r\n {\r\n this.CurConnectionFailed();\r\n }\r\n }\r\n }\r\n else\r\n {\r\n result.setErrInfo(\"数据库无可用连接\");\r\n }\r\n return result;\r\n }",
"void insert(OrderPreferential record) throws SQLException;",
"public String getInsertSQL()\n\t{\n\t\tString fieldList = \"parametro, dia, valor\";\n\t\treturn String.format(\"insert into alteracs (%s) values (%d, %d, %s)\",\n\t\t\t\tfieldList, parametro, dia, String.format(\"%.3f\", valor).replace(',', '.'));\n\t}",
"public void insert(Curso curso) throws SQLException {\n String query = \"\";\n Conexion db = new Conexion();\n\n query = \"INSERT INTO curso VALUES (NULL,?,?,?);\";\n \n PreparedStatement ps = db.conectar().prepareStatement(query);\n //Aquí se asignaran a los interrogantes(?) anteriores el valor oportuno en el orden adecuado\n ps.setString(1, curso.getNombre()); \n ps.setInt(2, curso.getFamilia());\n ps.setString(3, curso.getProfesor());\n \n\n if (ps.executeUpdate() > 0) {\n System.out.println(\"El registro se insertó exitosamente.\");\n } else {\n System.out.println(\"No se pudo insertar el registro.\");\n }\n\n ps.close();\n db.conexion.close();\n }",
"public void insereCliente(Cliente cliente){\n cliente.setClieCadDt(new Date());\r\n \r\n //nova conexão\r\n Connection connection = new ConnectionFactory().getConnection();\r\n \r\n //consulta\r\n String query = \"INSERT INTO cliente\"\r\n + \"(clie_debito,\"\r\n + \"clie_debito_ant,\"\r\n + \"clie_cpf,\"\r\n + \"clie_rg,\"\r\n + \"clie_cnh,\"\r\n + \"clie_nasc_dt,\"\r\n + \"clie_cad_dt,\"\r\n + \"clie_nm,\"\r\n + \"clie_end_ds,\"\r\n + \"clie_cid_ds,\"\r\n + \"clie_uf,\"\r\n + \"clie_telefone_ds,\"\r\n + \"clie_telefone_ddd,\"\r\n + \"clie_telefone_ddi)\"\r\n \r\n + \"VALUES(\"\r\n + \"?,\" //clie_debito\r\n + \"?,\" //clie_debito_ant\r\n + \"?,\" //clie_cpf\r\n + \"?,\" //clie_rg\r\n + \"?,\" //clie_cnh\r\n + \"?,\" //clie_nasc_dt\r\n + \"?,\" //clie_cad_dt\r\n + \"?,\" //clie_nm\r\n + \"?,\" //clie_end_ds\r\n + \"?,\" //clie_cid_ds\r\n + \"?,\" //clie_uf\r\n + \"?,\" //clie_telefone_ds\r\n + \"?,\" //clie_telefone_ddd\r\n + \"?)\";//clie_telefone_ddi\r\n \r\n try{\r\n PreparedStatement stmt = connection.prepareStatement(query);\r\n //débito atual do cliente\r\n stmt.setFloat(1, cliente.getClieDebito());\r\n //débito anterior do cliente\r\n stmt.setFloat(2, cliente.getClieDebitoAnt());\r\n //CPF\r\n stmt.setString(3, cliente.getClieCPF());\r\n //RG\r\n stmt.setString(4, cliente.getClieRG());\r\n //CNH\r\n stmt.setString(5, cliente.getClieCNH());\r\n \r\n //Data de nascimento\r\n stmt.setString(6, this.converteDataSimples(cliente.getClieNascDt()));\r\n //Data de cadastro no sistema\r\n stmt.setString(7, this.converteDataSimples(cliente.getClieCadDt()));\r\n \r\n //Nome do cliente\r\n stmt.setString(8, cliente.getClieNm());\r\n \r\n //Endereço do cliente(logradouro e número)\r\n stmt.setString(9, cliente.getClieEndDs());\r\n //Cidade do cliente\r\n stmt.setString(10, cliente.getClieCidDs());\r\n //UF do cliente\r\n stmt.setString(11, cliente.getClieUf());\r\n //Telefone do cliente\r\n stmt.setString(12, cliente.getClieTelefoneDs());\r\n //DDD do telefone\r\n stmt.setString(13, cliente.getClieTelefoneDDD());\r\n //DDI\r\n stmt.setString(14, cliente.getClieTelefoneDDI());\r\n \r\n stmt.execute(); //executa transação\r\n stmt.close(); //fecha conexção com o banco de dados\r\n \r\n }catch(SQLException u){\r\n throw new RuntimeException(u);\r\n }\r\n }",
"int insert(Table2 record);",
"private void insertTableValues(SQLFormater dbCreatorSQLFormater, String[] fields, String[][] values) {\n for(int j = 0; j < values.length; j++)\n {\n String[] rowValues = values[j]; // get massive with all values of current row\n for (int i = 0; i < fields.length; i++) {\n String fieldName = fields[i]; // current field name\n String currentValue = rowValues[i]; // current value\n dbCreatorSQLFormater.insertValue(fieldName, currentValue);\n }\n dbConnection.execute(dbCreatorSQLFormater.getValuesToInsert(j+1)); // inserting values of current row into data base, starting from 1\n }\n }",
"public void inserir(Comentario c);",
"int insert(TABLE41 record);",
"protected String createInsert(T t) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"INSERT INTO \");\n\t\tsb.append(type.getSimpleName());\n\t\tsb.append(\" VALUES \");\n\t\treturn sb.toString();\n\t}",
"public void insertarRubro2(RubrosObject rubro) throws SQLException \r\n { \r\n PreparedStatement prepStmt = null;\r\n\r\n String insertStatement = \"INSERT INTO RUBROS (IDRUBRO, NOMBRE, MONTO, IDPRESUPUESTO,SALDO,TIPO_PAGO) VALUES (?,?,?,?,?,?)\";\r\n \r\n prepStmt = con.prepareStatement(insertStatement);\r\n \r\n prepStmt.setInt(1, Integer.parseInt(rubro.getIdentificador()));\r\n prepStmt.setString(2, rubro.getNombre());\r\n prepStmt.setDouble(3, Double.parseDouble(rubro.getMonto()));\r\n prepStmt.setInt(4, Integer.parseInt(rubro.getIdpresupuesto()));\r\n prepStmt.setDouble(5, Double.parseDouble(rubro.getMonto()));//EL SALDO SE INICIA IGUAL AL MONTO\r\n prepStmt.setString(6, rubro.getTipo_pago().trim());\r\n \r\n prepStmt.executeUpdate();\r\n \r\n \r\n if (prepStmt != null) {\r\n prepStmt.close();\r\n }\r\n\r\n }",
"int insert(Prueba record);",
"int insertSelective(Prueba record);",
"public void createDespesaDetalhe(ArrayList<PagamentoDespesasDetalhe> listaDespesasInseridas, int idDespesa) throws Exception {\n\r\n for(int i=0; i < listaDespesasInseridas.size(); i++){\r\n \r\n open(); //abre conexão com o banco de dados\r\n\r\n //define comando para o banco de dados\r\n stmt = con.prepareStatement(\"INSERT INTO pagamentoDespesasDetalhe(valor, dataPagamento, status, idDespesas, idFormaPagamento) VALUES (?,?,?,?,?)\");\r\n\r\n //atribui os valores das marcações do comando acima \r\n stmt.setFloat(1, listaDespesasInseridas.get(i).getValor());\r\n stmt.setString(2, listaDespesasInseridas.get(i).getDataPagamento());\r\n stmt.setInt(3, listaDespesasInseridas.get(i).getStatus());\r\n stmt.setInt(4, idDespesa);\r\n stmt.setInt(5, listaDespesasInseridas.get(i).getIdFormaPagamento());\r\n\r\n stmt.execute();//executa insert no banco de dados\r\n\r\n close();//fecha conexão com o banco de dados\r\n \r\n } \r\n\r\n }",
"public void Nouvelleligne() {\n int maxEleve = retourneMaxNumber() + 1;\n try {\n Connector1.statement.executeUpdate(\"Insert INTO eleve(id_el) VALUES (\" + maxEleve + \")\");\n Object[] val = {maxEleve, \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"};\n effaceTable(jTable2, mode);\n mode.addRow(val);\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"ERROR \\n\" + e.getMessage());\n\n }\n\n }",
"int insert(Tipologia record);",
"public void crearActividad (Actividad a) {\r\n String query = \"INSERT INTO actividad (identificacion_navegate, numero_matricula, fecha, hora, destino, eliminar) VALUES (\\\"\" \r\n + a.getIdentificacionNavegante()+ \"\\\", \" \r\n + a.getNumeroMatricula() + \", \\\"\" \r\n + a.getFecha() + \"\\\", \\\"\" \r\n + a.getHora() + \"\\\", \\\"\" \r\n + a.getDestino()+ \"\\\" ,false)\";\r\n try {\r\n Statement st = con.createStatement();\r\n st.executeUpdate(query);\r\n st.close();\r\n JOptionPane.showMessageDialog(null, \"Actividad creada\", \"Operación exitosa\", JOptionPane.INFORMATION_MESSAGE);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public void insertarAlimento (int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas, float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float calcio, float magnesio, float cobre, float hierro, float fosforo, float azufre, float cloro, float Fen, float Ileu, float Leu, float Lis, float Met, float Tre, float Tri, float Val, float Acid, float AlCAL);",
"@Override\r\n\tpublic void inserir(Funcionario funcionario) throws SQLException {\n\t\topen();\r\n\t\t\r\n\t\tclose();\r\n\t\t\r\n\t}",
"private void createDataTable() {\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoEditors.TABLE + \" (ID INT IDENTITY PRIMARY KEY, NAME VARCHAR(150) NOT NULL UNIQUE)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.TABLE + \" (ID INT IDENTITY PRIMARY KEY, TITLE VARCHAR(150) NOT NULL UNIQUE, YEAR INT, ISBN10 VARCHAR(20), ISBN13 VARCHAR(13), NOTE INT, PAGES_NUMBER INT, RESUME VARCHAR(2000), THE_EDITOR_FK INT, THE_KIND_FK INT, THE_LANGUAGE_FK INT, THE_LENDING_FK INT, THE_SAGA_FK INT, THE_TYPE_FK INT)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" (THE_BOOK_FK INT NOT NULL, THE_AUTHOR_FK INT NOT NULL)\");\n\n jdbcTemplate.update(\"CREATE INDEX BOOK_EDITOR_IDX ON \" + IDaoEditors.TABLE + \"(ID)\");\n jdbcTemplate.update(\"CREATE INDEX BOOKS_IDX ON \" + IDaoBooks.TABLE + \"(ID)\");\n }",
"private void insertar() {\n try {\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.insertar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Ingresado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para guardar registro!\");\n }\n }",
"public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }",
"private boolean insertaTbrCtaTipDocUsrMod(){\n boolean blnRes=true;\n String strColVec=\"\";\n int w=0;\n String strColTbl=\"\";\n String strCodUsrGrp=\"\";\n int intCodCta=0;\n String strInsCtaUsr=\"\";\n try{\n if(con!=null){\n strInsCtaUsr=\"\";\n stm=con.createStatement();\n for(int i=0; i<objTblModPlaCta.getRowCountTrue(); i++){\n if(objTblModPlaCta.getValueAt(i, INT_TBL_PLA_CTA_LIN)==\"M\"){\n for( int j=(numColModIni); j<=numColModFinGlb; j++ ){\n strColVec=strVecDat[w][2]==null?\"\":strVecDat[w][2];\n strColTbl=\"\"+j;\n while( !(strColVec.equals(\"\")) ){\n if(strColVec.toString().equals(strColTbl)){\n if(objTblModPlaCta.isChecked(i, j)){\n strCodUsrGrp=strVecDat[w][0]==null?\"\":strVecDat[w][0];\n intCodCta=Integer.parseInt(\"\"+objTblModPlaCta.getValueAt(i, INT_TBL_PLA_CTA_COD_CTA));\n \n strSQL=\"\";\n strSQL+=\"INSERT INTO tbr_ctatipdocusr(\";\n strSQL+=\" co_emp, co_loc, co_tipdoc, co_usr, co_cta)\";\n strSQL+=\" VALUES (\";\n strSQL+=\"\" + objParSis.getCodigoEmpresa() + \",\";\n strSQL+=\" \" + objParSis.getCodigoLocal() + \",\";\n strSQL+=\" \" + txtCodTipDoc.getText() + \",\";\n strSQL+=\" \" + strCodUsrGrp + \",\";\n strSQL+=\" \" + intCodCta + \"\";\n strSQL+=\" );\";\n strInsCtaUsr+=strSQL;\n \n }\n }\n w++;\n strColVec=strVecDat[w][2]==null?\"\":strVecDat[w][2];\n }\n w=0;\n } \n }\n }\n System.out.println(\"SQL: \" + strInsCtaUsr);\n stm.executeUpdate(strInsCtaUsr);\n stm.close();\n stm=null;\n }\n }\n catch (java.sql.SQLException e){\n blnRes=false;\n objUti.mostrarMsgErr_F1(this, e);\n }\n catch (Exception e){\n blnRes=false;\n objUti.mostrarMsgErr_F1(this, e);\n }\n return blnRes;\n }",
"private void insertData() {\r\n \r\n TeatroEntity teatro = factory.manufacturePojo(TeatroEntity.class);\r\n em.persist(teatro);\r\n FuncionEntity funcion = factory.manufacturePojo(FuncionEntity.class);\r\n List<FuncionEntity> lista = new ArrayList();\r\n lista.add(funcion);\r\n em.persist(funcion);\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n sala.setFuncion(lista);\r\n em.persist(sala);\r\n data.add(sala);\r\n }\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n em.persist(sala);\r\n sfdata.add(sala);\r\n }\r\n \r\n }",
"@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}",
"public void insere(Pessoa pessoa){\n\t\tdb.save(pessoa);\n\t}",
"public void insert(TdiaryArticle obj) throws SQLException {\n\r\n\t}",
"void insert(GfanCodeBanner record) throws SQLException;",
"public static void inserttea() {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"insert into teacher values ('\"+teaid+\"','\"+teaname+\"','\"+teabirth+\"','\"+protitle+\"','\"+cno+\"')\");\n\t\t\tSystem.out.println(\"cno:\"+cno);\n\t\t\tps.executeUpdate();\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"教师记录添加成功!\", \"提示消息\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}catch (Exception e){\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"数据添加异常!\", \"提示消息\", JOptionPane.ERROR_MESSAGE);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Test\n\tpublic void test() {\n\t\tmyPDO pdo = myPDO.getInstance();\n\t\tString sql = \"INSERT INTO `RESTAURANT` (`NUMRESTO`,`MARGE`,`NBSALLES`,`NBEMPLOYEE`,`ADRESSE`,`PAYS`,`NUMTEL`,`VILLE`,`CP`) VALUES (?,?,?,?,?,?,?,?,?)\";\n\t\tpdo.prepare(sql);\n\t\tObject[] data = new Object[9];\n\t\tdata[0] = null;\n\t\tdata[1] = 10;\n\t\tdata[2] = 2;\n\t\tdata[3] = 2;\n\t\tdata[4] = \"test\";\n\t\tdata[5] = \"France\";\n\t\tdata[6] = \"0656056560\";\n\t\tdata[7] = \"reims\";\n\t\tdata[8] = \"51100\";\n\t\tpdo.execute(data,true);\n\t}",
"private void insertarImpresora() throws SQLException {\n String vCodigoSerie = FarmaLoadCVL.getCVLCode(\"cmbSerie\", cmbSerie.getSelectedIndex());\n String vCodigoComprobante = FarmaLoadCVL.getCVLCode(\"cmbComprobante\", cmbComprobante.getSelectedIndex());\n String vCodigoModelo = cmbModelo.getSelectedItem().toString();\n String vSerieImpr = txtSerieImpr.getText();\n DBImpresoras.ingresaImpresora(FarmaVariables.vCodGrupoCia, FarmaVariables.vCodLocal, vCodigoSerie,\n vCodigoComprobante, txtDescImpresora.getText().trim(),\n txtNroComprobante.getText().trim(), txtColaImpresion.getText().trim(),\n vCodigoModelo,vSerieImpr);\n }",
"@Insert({\n \"insert into soggetto_personale_scolastico (codice_fiscale, \",\n \"id_asr, cognome, nome, \",\n \"data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, \",\n \"telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, \",\n \"email, lat, lng, \",\n \"id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, \",\n \"data_cancellazione, id_medico, id_soggetto_fk)\",\n \"values ( #{codiceFiscale,jdbcType=VARCHAR}, \",\n \"#{idAsr,jdbcType=BIGINT}, #{cognome,jdbcType=VARCHAR}, #{nome,jdbcType=VARCHAR}, \",\n \"#{dataNascitaStr,jdbcType=VARCHAR}, #{comuneResidenzaIstat,jdbcType=VARCHAR}, \",\n \"#{comuneDomicilioIstat,jdbcType=VARCHAR}, #{indirizzoDomicilio,jdbcType=VARCHAR}, \",\n \"#{telefonoRecapito,jdbcType=VARCHAR}, #{dataNascita,jdbcType=DATE}, \",\n \"#{aslResidenza,jdbcType=VARCHAR}, #{aslDomicilio,jdbcType=VARCHAR}, \",\n \"#{email,jdbcType=VARCHAR}, #{lat,jdbcType=NUMERIC}, #{lng,jdbcType=NUMERIC}, \",\n \"#{idTipoSoggetto,jdbcType=INTEGER}, #{utenteOperazione,jdbcType=VARCHAR}, \",\n \"#{dataCreazione,jdbcType=TIMESTAMP}, #{dataModifica,jdbcType=TIMESTAMP}, \",\n \"#{dataCancellazione,jdbcType=TIMESTAMP}, #{idMedico,jdbcType=BIGINT}, #{idSoggettoFk,jdbcType=BIGINT})\"\n })\n @Options(useGeneratedKeys = true, keyProperty = \"idSoggetto\", keyColumn = \"id_soggetto\")\n int insert(SoggettoPersonaleScolastico record);",
"CustomSaveQuery insertInto(String table, String... fields);",
"public void insert(){\r\n\t\tString query = \"INSERT INTO liveStock(name, eyeColor, sex, type, breed, \"\r\n\t\t\t\t+ \"height, weight, age, furColor, vetNumber) \"\r\n\t\t\t\t+ \"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) \";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tPreparedStatement prepareStatement = conn.prepareStatement(query);\r\n\t\t\t\r\n\t\t\tprepareStatement.setString(1, liveStock.getName());\r\n\t\t\tprepareStatement.setString(2, liveStock.getEyeColor());\r\n\t\t\tprepareStatement.setString(3, liveStock.getSex());\r\n\t\t\tprepareStatement.setString(4, liveStock.getAnimalType());\r\n\t\t\tprepareStatement.setString(5, liveStock.getAnimalBreed());\r\n\t\t\tprepareStatement.setString(6, liveStock.getHeight());\r\n\t\t\tprepareStatement.setString(7, liveStock.getWeight());\r\n\t\t\tprepareStatement.setInt(8, liveStock.getAge());\r\n\t\t\tprepareStatement.setString(9, liveStock.getFurColor());\r\n\t\t\tprepareStatement.setInt(10, liveStock.getVetNumber());\r\n\t\t\t\r\n\t\t\tprepareStatement.execute();\r\n\t\t\t\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}\r\n\t}",
"public boolean insertarCreacionHistorialCliente(Cliente cliente) {\n String queryDividido1 = \"INSERT INTO Historial_Cliente(Usuario_Codigo, Nombre, DPI, Direccion, Sexo, Password, Nacimiento, DPI_Escaneado, Tipo, Fecha_Cambio) \"\n + \"VALUES(?,?,?,?,?,aes_encrypt(?,'AES'),?,?,?,?)\";\n java.sql.Date fechaCreacion = new java.sql.Date(Calendar.getInstance().getTime().getTime());\n\n try {\n\n PreparedStatement enviarDividido1 = Conexion.conexion.prepareStatement(queryDividido1);\n\n //Envio de los Datos de Creacion de un Nuevo Cliente a la Tabla Historial_Cliente\n enviarDividido1.setInt(1, cliente.getCodigo());\n enviarDividido1.setString(2, cliente.getNombre());\n enviarDividido1.setString(3, cliente.getDPI());\n enviarDividido1.setString(4, cliente.getDireccion());\n enviarDividido1.setString(5, cliente.getSexo());\n enviarDividido1.setString(6, cliente.getPassword());\n enviarDividido1.setString(7, cliente.getNacimiento());\n enviarDividido1.setBlob(8, cliente.getDPIEscaneado());\n enviarDividido1.setString(9, \"Creacion\");\n enviarDividido1.setString(10, fechaCreacion.toString());\n enviarDividido1.executeUpdate();\n\n \n return true;\n\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n return false;\n }\n\n }",
"void insert(Disproduct record);",
"@Override\n\tpublic void insertar() {\n\t\t\n\t}",
"@Override\n\tpublic boolean insert() {\n\t\tif(num==null||name==null||email==null||phone==null||project==0||school==0)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tString format=\"INSERT INTO tc_student(num,name,email,phone,degree,project,school,is_cap) values ('%s','%s','%s','%s',%d,%d,%d,%d)\";\n\t\tString sql=String.format(format, num,name,email,phone,degree,project,school,is_cap);\n\t\t//System.out.println(sql);\n\t\treturn mysql.execute(sql);\n\t\t}",
"public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }",
"private void insertData() {\n compra = factory.manufacturePojo(CompraVentaEntity.class);\n compra.setId(1L);\n compra.setQuejasReclamos(new ArrayList<>());\n em.persist(compra);\n\n for (int i = 0; i < 3; i++) {\n QuejasReclamosEntity entity = factory.manufacturePojo(QuejasReclamosEntity.class);\n entity.setCompraVenta(compra);\n em.persist(entity);\n data.add(entity);\n compra.getQuejasReclamos().add(entity);\n }\n }",
"public static void insertFournisseur(Fournisseur unFournisseur ) {\n Bdd uneBdd = new Bdd(\"localhost\", \"paruline \", \"root\", \"\");\n\n String checkVille = \"CALL checkExistsCity('\" + unFournisseur.getVille() + \"','\" + unFournisseur.getCp() + \"');\";\n try {\n uneBdd.seConnecter();\n Statement unStat = uneBdd.getMaConnection().createStatement();\n\n ResultSet unRes = unStat.executeQuery(checkVille);\n\n int nb = unRes.getInt(\"nb\");\n\n if (nb == 0) {\n String ajoutVille = \"CALL InsertCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"');\";\n\n try {\n Statement unStatAjout = uneBdd.getMaConnection().createStatement();\n\n unStatAjout.executeQuery(ajoutVille);\n unStatAjout.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + ajoutVille);\n }\n }\n\n String id = \"CALL GetCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"')\";\n\n try {\n Statement unStatId = uneBdd.getMaConnection().createStatement();\n\n ResultSet unResId = unStatId.executeQuery(id);\n\n int id_city = unResId.getInt(\"id_city\");\n\n\n\n String insertFournisseur = \"INSERT INTO fournisseur(id_city, name_f, adresse_f, phoneFour) VALUES (\" + id_city + \", '\" + unFournisseur.getNom() + \"', \" +\n \"'\" + unFournisseur.getAdresse() + \"', '\" + unFournisseur.getTelephone() + \"')\";\n\n try {\n Statement unStatFourn = uneBdd.getMaConnection().createStatement();\n unStatFourn.executeQuery(insertFournisseur);\n\n unStatFourn.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + insertFournisseur);\n }\n\n unResId.close();\n unStatId.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + id);\n }\n\n unRes.close();\n unStat.close();\n uneBdd.seDeConnecter();\n } catch (SQLException exp) {\n System.out.println(\"Erreur : \" + checkVille);\n }\n }",
"int insertSelective(Tipologia record);",
"public void insert() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n if (check == -1){\n stmtIn.executeUpdate(\"INSERT INTO ngaccount.goods (goods_id , product_type_id, post_id) \" +\n \"VALUES ('\" + this.goodID + \"', '\" + this.productRelation.getID() +\n \"', '\" + this.post.getID() + \"');\");\n }\n }",
"private String createInsertQuery() {\r\n StringBuilder query = new StringBuilder();\r\n query.append(\"insert into \").append(m_tableName)\r\n .append(\"(\").append(m_propertyNames[0]);\r\n for (int i = 1; i < m_propertyNames.length; i++) {\r\n query.append(\",\").append(m_propertyNames[i]);\r\n }\r\n query.append(\") values (?\");\r\n for (int i = 1; i < m_propertyNames.length; i++) {\r\n query.append(\",?\");\r\n }\r\n query.append(\")\");\r\n return query.toString();\r\n }",
"private void TambahData(String judul,String penulis,String harga){\n try{ // memanipulasi kesalahan\n String sql = \"INSERT INTO buku VALUES(NULL,'\"+judul+\"','\"+penulis+\"',\"+harga+\")\"; // menambahkan data dengan mengkonekan dari php\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n stt.executeUpdate(sql); \n model.addRow(new Object[]{judul,penulis,harga}); // datanya akan tertambah dibaris baru di tabel model\n \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }",
"private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n VueltasConDemoraEnOficinaEntity entity = factory.manufacturePojo(VueltasConDemoraEnOficinaEntity.class);\n \n em.persist(entity);\n data.add(entity);\n }\n }",
"private boolean validaInsert(Entity e) throws SQLException {\r\n stmt = conn.createStatement();\r\n String sql = \"select * from \" + e.getTableName() + \" where \" + e.getColumnName(0) + \"= \" + e.getCell(0).getValue();\r\n if (e.getTableName().equals(\"Contato\")) {\r\n sql = \"select * from \" + e.getTableName() + \" where \" + e.getColumnName(3) + \"= '\" + String.valueOf(e.getCell(3).getValue()) + \"' and \" + e.getColumnName(1) + \"= '\" + String.valueOf(e.getCell(1).getValue()) + \"';\";\r\n\r\n }\r\n if (e.getTableName().equals(\"Telefone\")) {\r\n sql = \"select * from \" + e.getTableName() + \" where \" + e.getColumnName(2) + \"= '\" + String.valueOf(e.getCell(2).getValue()) + \"' and \" + e.getColumnName(1) + \"= '\" + String.valueOf(e.getCell(1).getValue()) + \"' and \" + e.getColumnName(3) + \"= '\" + String.valueOf(e.getCell(3).getValue()) + \"';\";\r\n\r\n }\r\n if (e.getTableName().equals(\"Solicitacoes\")) {\r\n sql = \"select * from \" + e.getTableName() + \" where \" + e.getColumnName(6) + \"= '\" + String.valueOf(e.getCell(6).getValue()) + \"' and \" + e.getColumnName(7) + \"= '\" + String.valueOf(e.getCell(7).getValue()) + \"';\";\r\n\r\n }\r\n System.out.println(sql);\r\n rs = stmt.executeQuery(sql);\r\n if (rs.next()) {\r\n stmt.close();\r\n rs.close();\r\n return false;\r\n }\r\n stmt.close();\r\n rs.close();\r\n return true;\r\n\r\n }",
"public String getInsertContentSql(String table)\r\n \t{\r\n \t\treturn \"insert into \" + table + \" (RESOURCE_ID, BODY)\" + \" values (? , ? )\";\r\n \t}",
"public boolean insertar(vpoliza dts) {\r\n sSql = \"INSERT INTO poliza\\n\"\r\n + \"(monto_total,fecha_inicio, fecha_venc, cliente_vehiculo_chapaId) \\n\"\r\n + \"VALUES\\n\"\r\n + \"(?,?,?,?);\";\r\n try {\r\n PreparedStatement pst = cn.prepareStatement(sSql);\r\n /*Se crea un objeto pst del tipo PreparedStatement (prepara la consulta sql)\r\n para insertar los datos en la base de datos mediante insert into*/\r\n pst.setInt(1, dts.getMonto_total());\r\n pst.setDate(2, dts.getFecha_inicio());\r\n pst.setDate(3, dts.getFecha_venc());\r\n \r\n pst.setString(4, dts.getCliente_vehiculo_chapaId());\r\n \r\n int n = pst.executeUpdate();\r\n \r\n if (n != 0) {\r\n return true;\r\n }\r\n return false;\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n JOptionPane.showMessageDialog(null, \"LO SENTIMOS HA OCURRIDO UN ERROR >> \" + ex + \" <<\");\r\n return false;\r\n }\r\n }",
"public void insert(taxi ta)throws ClassNotFoundException,SQLException\r\n {\n String taxino=ta.getTaxino();\r\n String drivername=ta.getDrivername();\r\n String driverno=ta.getDriverno();\r\n String taxitype=ta.getTaxitype();\r\n String state=ta.getState();\r\n String priority=ta.getPriority();\r\n connection= dbconnection.createConnection();\r\nString sqlString=\"INSERT INTO taxi (taxino,drivername,driverno,taxitype,state,priority) VALUES ('\"+taxino+\"','\"+drivername+\"','\"+driverno+\"','\"+taxitype+\"','\"+state+\"','\"+priority+\"')\";\r\n PreparedStatement preparedStmt = connection.prepareStatement(sqlString); \r\n preparedStmt.execute(); \r\n connection.close();\r\n \r\n }",
"public void insertar() throws SQLException {\n String sentIn = \" INSERT INTO datosnodoactual(AmigoIP, AmigoPuerto, AmigoCertificado, AmigoNombre, AmigoSobreNombre, AmigoLogueoName, AmigoPassword) \"\r\n + \"VALUES (\" + AmigoIp + \",\" + AmigoPuerto + \",\" + AmigoCertificado + \",\" + AmigoNombre + \",\" + AmigoSobreNombre + \",\" + AmigoLogueoName + \",\" + AmigoPassword + \")\";\r\n System.out.println(sentIn);\r\n InsertApp command = new InsertApp();\r\n try (Connection conn = command.connect();\r\n PreparedStatement pstmt = conn.prepareStatement(sentIn)) {\r\n if (pstmt.executeUpdate() != 0) {\r\n System.out.println(\"guardado\");\r\n } else {\r\n System.out.println(\"error\");\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }",
"@Override\n\tpublic void tableCampagna(String idCampagna, String nombre, String dateIni, String dateFin, String horaIni,\n\t\t\tString horaFin, String typeCampagna, String comodin, String comment) {\n\n\t\tConnection conn = null;\n\n\t\tString query = \"CREATE TABLE IF NOT EXISTS `tblCampagna` (\" + \"`IDCAMPAGNA` varchar(255) NOT NULL, \"\n\t\t\t\t+ \"`NOMBRE` varchar(255) NOT NULL, \" + \"`DATAINICI` DATE NOT NULL, \" + \"`DATAFIN` DATE NOT NULL, \"\n\t\t\t\t+ \"`HORAINICI` Time NOT NULL, \" + \"`HORAFIN` Time NOT NULL, \" + \"`TYPE` varchar(255) NOT NULL, \"\n\t\t\t\t+ \"`COMODIN` varchar(255), \" + \"`COMMENTARIO` varchar(255) NOT NULL \" + \")\";\n\n\t\tString insertQuery = \"INSERT INTO tblCampagna Values(?,?,?,?,?,?,?,?,?)\";\n\n\t\t// String sql = \"UPDATE tableA, tableB\n\t\t// SET tableA.columnToBeUpdated = tableB.columnSourceOfData\n\t\t// WHERE tableA.id = tableB.idOfTableA\n\n\t\ttry {\n\t\t\tconn = jdbcTemplate.getDataSource().getConnection();\n\n\t\t\tStatement stm = conn.createStatement();\n\n\t\t\tstm.execute(query);\n\n\t\t\tSystem.out.println(\"Table campgana created!\");\n\n\t\t\tPreparedStatement ptstm = conn.prepareStatement(insertQuery);\n\n\t\t\tptstm.setString(1, idCampagna);\n\t\t\tptstm.setString(2, nombre);\n\t\t\tptstm.setString(3, dateIni);\n\t\t\tptstm.setString(4, dateFin);\n\t\t\tptstm.setString(5, horaIni);\n\t\t\tptstm.setString(6, horaFin);\n\t\t\tptstm.setString(7, typeCampagna);\n\t\t\tptstm.setString(8, comodin);\n\t\t\tptstm.setString(9, comment);\n\t\t\tptstm.executeUpdate();\n\n\t\t\tSystem.out.println(\"Values inserted into the table campagna!\");\n\n\t\t\tptstm.close();\n\t\t\tstm.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new RuntimeException(e);\n\n\t\t} finally {\n\t\t\tif (conn != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"void insert(BnesBrowsingHis record) throws SQLException;",
"void insertBatch(List<TABLE41> recordLst);",
"@Override\n\tprotected String sql() throws OperationException {\n\t\treturn sql.insert(tbObj, fieldValue);\n\t}",
"public void insereDadosMySQL(String tabela, String colunas, boolean matricula, boolean data, boolean brasao2) throws IOException {\n status = true;\n ByteArrayOutputStream bytesImg = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada, extensao, bytesImg);\n bytesImg.flush();\n byte[] logo = bytesImg.toByteArray();\n bytesImg.close();\n /**\n * Transforma a imagem do logotipo e brasao em um array de bytes para enviar ao banco de dados\n */\n byte[] brasao = null;\n if (brasao2) {\n ByteArrayOutputStream bytesImg2 = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada2, extensao2, bytesImg2);\n bytesImg2.flush();\n brasao = bytesImg2.toByteArray();\n bytesImg2.close();\n }\n\n String[] aux = colunas.split(\",\");\n String values = \"?\";\n for (int i = 0; i < aux.length - 1; i++) {\n values += \",?\";\n }\n try {\n PreparedStatement p = conexao.prepareStatement(\"INSERT INTO \" + tabela + \"(\" + colunas + \") VALUES (\" + values + \")\");\n // System.out.println(\"INSERT INTO \" + tabela + \"(\" + colunas + \") VALUES (\" + values + \")\");\n p.setString(1, dadosTitulo);\n p.setString(2, dados);\n p.setString(3, dados2);\n p.setString(4, dados3);\n if (matricula) {\n p.setString(5, this.matricula.getText());\n if (data) {\n p.setDate(6, new java.sql.Date(dataProva.getDate().getTime()));\n p.setString(7, arquivo.getName());\n p.setBytes(8, logo);\n if (brasao2) {\n p.setString(9, arquivo2.getName());\n p.setBytes(10, brasao);\n }\n } else {\n p.setDate(6, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(7, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.setString(8, arquivo.getName());\n p.setBytes(9, logo);\n if (brasao2) {\n p.setString(10, arquivo2.getName());\n p.setBytes(11, brasao);\n }\n }\n } else {\n if (data) {\n p.setDate(5, new java.sql.Date(dataProva.getDate().getTime()));\n p.setString(6, arquivo.getName());\n p.setBytes(7, logo);\n if (brasao2) {\n p.setString(8, arquivo2.getName());\n p.setBytes(9, brasao);\n }\n } else {\n p.setDate(5, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(6, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.setString(7, arquivo.getName());\n p.setBytes(8, logo);\n if (brasao != null) {\n p.setString(9, arquivo2.getName());\n p.setBytes(10, brasao);\n }\n }\n }\n p.executeUpdate();\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n // System.out.println(\"catch 2\");\n }\n }",
"int insert(Movimiento record);",
"private void insertar() {\n String nombre = edtNombre.getText().toString();\n String telefono = edtTelefono.getText().toString();\n String correo = edtCorreo.getText().toString();\n // Validaciones\n if (!esNombreValido(nombre)) {\n TextInputLayout mascaraCampoNombre = (TextInputLayout) findViewById(R.id.mcr_edt_nombre_empresa);\n mascaraCampoNombre.setError(\"Este campo no puede quedar vacío\");\n } else {\n mostrarProgreso(true);\n String[] columnasFiltro = {Configuracion.COLUMNA_EMPRESA_NOMBRE, Configuracion.COLUMNA_EMPRESA_TELEFONO\n , Configuracion.COLUMNA_EMPRESA_CORREO, Configuracion.COLUMNA_EMPRESA_STATUS};\n String[] valorFiltro = {nombre, telefono, correo, estado};\n Log.v(\"AGET-ESTADO\", \"ENVIADO: \" + estado);\n resultado = new ObtencionDeResultadoBcst(this, Configuracion.INTENT_EMPRESA_CLIENTE, columnasFiltro, valorFiltro, tabla, null, false);\n if (ID.isEmpty()) {\n resultado.execute(Configuracion.PETICION_EMPRESA_REGISTRO, tipoPeticion);\n } else {\n resultado.execute(Configuracion.PETICION_EMPRESA_MODIFICAR_ELIMINAR + ID, tipoPeticion);\n }\n }\n }",
"int insertSelective(Movimiento record);",
"public static boolean Insert(String table, String[][] fields) throws SQLException {\r\n if (fields.length > 0) {\r\n String key, value, data;\r\n data = \"\";\r\n value = \"\";\r\n key = \"\";\r\n for (int i = 0; i < fields.length; i++) {\r\n for (int j = 0; j < fields[i].length; j++) {\r\n\r\n if (i < fields.length - 1) {\r\n\r\n key += fields[i][j];\r\n if (j < fields[i].length - 1) {\r\n key += \", \";\r\n }\r\n } else {\r\n data += fields[i][j];\r\n value += \"?\";\r\n if (j < fields[i].length - 1) {\r\n value += \", \";\r\n }\r\n }\r\n }\r\n }\r\n\r\n try {\r\n Connection con;\r\n con = Apache_Connectionpool.getInstance().getConnection();\r\n \r\n\r\n PreparedStatement ps = con.prepareStatement(\"INSERT INTO \" + table + \"(\" + key + \") VALUES(\" + value + \")\");\r\n\r\n for (int i = 0; i < fields.length; i++) {\r\n for (int j = 0; j < fields[i].length; j++) {\r\n\r\n if (i < fields.length - 1) {\r\n\r\n } else {\r\n data += fields[i][j];\r\n ps.setString(j + 1, fields[i][j]);\r\n\r\n }\r\n }\r\n }\r\n ps.executeUpdate();\r\n con.close();\r\n ps.close();\r\n return true;\r\n\r\n } catch (Exception ex) {\r\n ErrorDAO.Error_Add(new managedModal.Error(\"Insert method\", \"inserting data into table \" + table, \" Message: \" + ex.getMessage(), date));\r\n return false;\r\n }\r\n\r\n }\r\n return false;\r\n }",
"public void insertIntoDado(String query, Double porcentagem, Integer fkHardware, Integer fkComputador) throws IOException {\n erro = false;\n try {\n con.update(query, porcentagem, fkHardware, fkComputador);\n } catch (CannotGetJdbcConnectionException ex) {\n logger.gravarDadosLog(\"ERRO\",\"INSERT\" , \"Não foi possivel inserir dados no banco de dados na Azure\" + Arrays.toString(ex.getStackTrace()));\n erro = true;\n }\n \n String hardware = \"\";\n switch (fkHardware) {\n case 1:\n hardware = \"CPU\";\n break;\n case 2:\n hardware = \"RAM\";\n break;\n case 3:\n hardware = \"GPU\";\n break;\n case 4:\n hardware = \"Disco 1\";\n break;\n case 5:\n hardware = \"Disco 2\";\n break;\n case 6:\n hardware = \"Disco 3\";\n break;\n }\n \n if(!erro){\n logger.gravarDadosLog(\"INFO\", \"INSERT\" , \"O dado coletado de \" + hardware + \"(\" + porcentagem + \"%) foi registrado com sucesso.\");\n } \n erro = false;\n }",
"public void insert(Object objekt) throws SQLException {\r\n\t\t \r\n\t\tPomagaloVO ul = (PomagaloVO) objekt;\r\n\r\n\t\tif (ul == null)\r\n\t\t\tthrow new SQLException(\"Insert \" + tablica\r\n\t\t\t\t\t+ \", ulazna vrijednost je null!\");\r\n\t\t \r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement ps = null;\r\n\r\n\t\ttry {\r\n\t\t\tconn = conBroker.getConnection();\r\n\r\n\t\t\tps = conn.prepareStatement(insertUpit);\r\n\r\n\t\t\tps.setString(1, ul.getSifraArtikla());\r\n\t\t\tps.setString(2, ul.getNaziv());\r\n\t\t\tps.setInt(3, ul.getPoreznaSkupina().intValue());\r\n\r\n\t\t\tif (ul.getCijenaSPDVom() == null\r\n\t\t\t\t\t|| ul.getCijenaSPDVom().intValue() <= 0)\r\n\t\t\t\tps.setNull(4, Types.INTEGER);\r\n\t\t\telse\r\n\t\t\t\tps.setInt(4, ul.getCijenaSPDVom().intValue());\r\n\r\n\t\t\tString op = ul.getOptickoPomagalo() != null\r\n\t\t\t\t\t&& ul.getOptickoPomagalo().booleanValue() ? DA : NE;\r\n\r\n\t\t\tps.setString(5, op);\r\n\t\t\t\r\n\t\t\tps.setTimestamp(6, new Timestamp(System.currentTimeMillis()));\r\n\t\t\tps.setInt(7, NEPOSTOJECA_SIFRA);\r\n\t\t\tps.setTimestamp(8, null);\r\n\t\t\tps.setNull(9, Types.INTEGER);\r\n\r\n\t\t\tint kom = ps.executeUpdate();\r\n\r\n\t\t\tif (kom == 1) {\r\n\t\t\t\tul.setSifra(Integer.valueOf(0)); // po tome i pozivac zna da je\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// insert uspio...\r\n\t\t\t}// if kom==1\r\n\t\t\telse {\r\n\t\t\t\t//Logger.fatal(\"neuspio insert zapisa u tablicu \" + tablica, null);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t// nema catch-anja SQL exceptiona... neka se pozivatelj iznad jebe ...\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tif (ps != null)\r\n\t\t\t\t\tps.close();\r\n\t\t\t} catch (SQLException e1) {\r\n\t\t\t}\r\n\t\t\tconBroker.freeConnection(conn);\r\n\t\t}// finally\r\n\r\n\t}",
"public void guardar() {\n try {\n objConec.conectar();\n objConec.Sql = objConec.con.prepareStatement(\"insert into contacto values(null,?,?,?,?,?)\");\n objConec.Sql.setString(1, getNom_con());\n objConec.Sql.setInt(2, getTel_con()); \n objConec.Sql.setString(3, getEma_con());\n objConec.Sql.setString(4, getAsu_con());\n objConec.Sql.setString(5, getMen_con());\n objConec.Sql.executeUpdate();\n objConec.cerrar();\n JOptionPane.showMessageDialog(null, \"Mensaje enviado correctamente\");\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Error al enviar el mensaje\");\n\n }\n\n }",
"public static void Enitityinsert (int id,String name,String FQN, String container,int potincy,String directtype,String table )\n { \n \n \ttry \n { \n Statement stmt=null; \n ResultSet res=null; \n Class.forName(\"com.mysql.jdbc.Driver\"); \n Connection conn = DriverManager.getConnection(sqldatabase,mysqluser,mysqlpassword); \n stmt = (Statement)conn.createStatement(); \n res= stmt.executeQuery(\"SELECT * from entity \"); \n\n\n // 增加数据\n Statement stm = (Statement) conn.createStatement();// 提交查巡\n String sql = \"select * from entity\";\n ResultSet rs = stm.executeQuery(sql);// 取得查巡結果\n// sql = \"insert into entity (id,name,FQN,container) values ('6','AccountType','Example2.O2.AccountType','Example2.O10')\";\n \n int n = stm.executeUpdate(\"insert into \"+table+\"(id,FQN,name,container,potincy,direct_type) values (\"+\"'\"+id+\"'\"+\",\"+\"'\"+FQN+\"'\"+\",\"+\"'\"+name+\"'\"+\",\"+\"'\"+container+\"'\"+\",\"+\"'\"+potincy+\"'\"+\",\"+\"'\"+directtype+\"'\"+\")\"); // 增加数据 \n if (n > 0) {\n// JOptionPane.showMessageDialog(null, \"成功\");\n \n \n } else {\n// JOptionPane.showMessageDialog(null, \"失败\");\n }\n //增加数据结束\n\n while (res.next()) \n { \n\n } \n } \n \n catch(Exception ex) \n { \n ex.printStackTrace(); \n } \n}",
"public boolean insertarNuevoClienteCA(Cliente cliente, List<Cuenta> listaCuentas) {\n String queryDividido1 = \"INSERT INTO Usuario(Codigo, Nombre, DPI, Direccion, Sexo, Password, Tipo_Usuario) \"\n + \"VALUES(?,?,?,?,?,aes_encrypt(?,'AES'),?)\";\n\n String queryDividido2 = \"INSERT INTO Cliente(Usuario_Codigo, Nombre, Nacimiento, DPI_Escaneado, Estado) \"\n + \"VALUES(?,?,?,?,?)\";\n \n String queryDividido3 = \"INSERT INTO Cuenta(No_Cuenta, Fecha_Creacion, Saldo_Cuenta, Cliente_Usuario_Codigo) \"\n + \"VALUES(?,?,?,?)\";\n int codigoCliente = cliente.getCodigo();\n try {\n\n PreparedStatement enviarDividido1 = Conexion.conexion.prepareStatement(queryDividido1);\n\n //Envio de los Datos Principales del cliente a la Tabla Usuario\n enviarDividido1.setInt(1, cliente.getCodigo());\n enviarDividido1.setString(2, cliente.getNombre());\n enviarDividido1.setString(3, cliente.getDPI());\n enviarDividido1.setString(4, cliente.getDireccion());\n enviarDividido1.setString(5, cliente.getSexo());\n enviarDividido1.setString(6, cliente.getPassword());\n enviarDividido1.setInt(7, 3);\n enviarDividido1.executeUpdate();\n\n //Envia los Datos Complementarios del Usuario a la tabla cliente\n PreparedStatement enviarDividido2 = Conexion.conexion.prepareStatement(queryDividido2);\n enviarDividido2.setInt(1, cliente.getCodigo());\n enviarDividido2.setString(2, cliente.getNombre());\n enviarDividido2.setString(3, cliente.getNacimiento());\n enviarDividido2.setBlob(4, cliente.getDPIEscaneado());\n enviarDividido2.setBoolean(5, cliente.isEstado());\n enviarDividido2.executeUpdate();\n \n //Envia los Datos de la Cuenta Adjudicada al Cliente\n PreparedStatement enviarDividido3 = Conexion.conexion.prepareStatement(queryDividido3);\n\n //Envio de los Datos Principales de una Cuenta a la Tabla Cuenta, perteneciente a un cliente en Especifico\n //Considerando que el cliente puede tener mas de una cuenta\n for (Cuenta cuenta : listaCuentas) {\n \n enviarDividido3.setInt(1, cuenta.getNoCuenta());\n enviarDividido3.setString(2, cuenta.getFechaCreacion());\n enviarDividido3.setDouble(3, cuenta.getSaldo());\n enviarDividido3.setInt(4, codigoCliente);\n enviarDividido3.executeUpdate();\n }\n \n return true;\n\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n return false;\n }\n\n }",
"private static void criarTabela(Connection connection) throws IOException, SQLException {\n final Path sqlFile = Paths.get(\"coursera.sql\");\n String sqlData = new String(Files.readAllBytes(sqlFile));\n Statement statement = connection.createStatement();\n statement.executeUpdate(sqlData);\n statement.close();\n connection.close();\n }",
"int insert(DashboardGoods record);",
"public void insert(String matricula, String nome, String turma, String semestre,\r\n\t\t\tString resposta, String data, int qtdResposta, int codPessoa,int count) throws Exception{\r\n\t\t\r\n\t\tif(getVerificaAlunoCadastrado(matricula, turma, semestre) == 0){\r\n\t\t\tPreparedStatement pst = null;\r\n\t\t\ttry {\r\n\t\t\t\tpst = (PreparedStatement) connGabarito.prepareStatement(\"INSERT INTO ga_aluno \" +\r\n\t\t\t\t\t\t\"(matricula, nome, turma, semestre, resposta, data, qtdResposta, codPessoa,posicao_leitura) \"+\r\n\t\t\t\t\t\t\"VALUES (?,?,?,?,?,?,?,?,?)\");\r\n\t\t\t\tpst.setString(1, matricula);\r\n\t\t\t\tpst.setString(2, nome);\r\n\t\t\t\tpst.setString(3, turma);\r\n\t\t\t\tpst.setString(4, semestre);\r\n\t\t\t\tpst.setString(5, resposta);\r\n\t\t\t\tpst.setString(6, data);\r\n\t\t\t\tpst.setInt(7, qtdResposta);\r\n\t\t\t\tpst.setInt(8, codPessoa);\r\n\t\t\t\tpst.setInt(9, count);\r\n\t\t\t\tpst.executeUpdate();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\t\r\n\t\t} else {\r\n\t\t\t//throw new Exception(\"Aluno jŠ cadastrado: \"+matricula);\r\n\t\t\tSystem.out.println(\"Aluno jŠ cadastrado: \"+ matricula);\r\n\t\t}\r\n\t}",
"public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}",
"void insertQuery (String query) throws SQLException\n\t{\n\t\t/* Creiamo lo Statement per l'esecuzione della query */\n\t\tStatement s = conn.createStatement(); \n\t\t\n\t\t/* eseguiamo la query */\n s.executeUpdate(query);\n\t}",
"@Override\n public synchronized int insert(final UfficioTecnico uff)\n throws SQLException {\n final Connection connection = connectionManager.getConnection();\n try {\n\n final PreparedStatement preparedStatement = connection\n .prepareStatement(INSERT_UFFICIO_TECNICO);\n int i = 1;\n preparedStatement.setString(i++, uff.getNome());\n preparedStatement.setString(i++, uff.getTel());\n preparedStatement.setString(i++, uff.getEmail());\n preparedStatement.setString(i, uff.getUbicazione());\n return preparedStatement.executeUpdate();\n } finally {\n connectionManager.freeConnection(connection);\n }\n }",
"int insert(NjProductTaticsRelation record);"
] | [
"0.70716685",
"0.6936625",
"0.6921497",
"0.6841626",
"0.6835975",
"0.6794958",
"0.67389095",
"0.6708763",
"0.6703533",
"0.6666227",
"0.6654188",
"0.6653741",
"0.6640137",
"0.66235465",
"0.658402",
"0.6580131",
"0.6580056",
"0.6577277",
"0.65503263",
"0.6526052",
"0.6525098",
"0.6516294",
"0.6499944",
"0.6482621",
"0.6474883",
"0.6473572",
"0.64661974",
"0.64622396",
"0.6454363",
"0.64516306",
"0.64399886",
"0.6439612",
"0.6437287",
"0.6430716",
"0.64301795",
"0.63915193",
"0.6388648",
"0.63842815",
"0.6382849",
"0.63708675",
"0.6368541",
"0.63608223",
"0.6360411",
"0.63555163",
"0.63538927",
"0.6350907",
"0.6349306",
"0.6347682",
"0.6339408",
"0.6331797",
"0.63303864",
"0.6321635",
"0.6315637",
"0.63081014",
"0.6306918",
"0.6301902",
"0.6293056",
"0.62852216",
"0.62790036",
"0.62741655",
"0.6273349",
"0.62714136",
"0.62651324",
"0.62648124",
"0.62643963",
"0.62529707",
"0.6252292",
"0.6248871",
"0.62433356",
"0.623858",
"0.6214528",
"0.62139386",
"0.6209512",
"0.6209367",
"0.6203364",
"0.62024856",
"0.619783",
"0.6197811",
"0.61976796",
"0.6191824",
"0.61916155",
"0.6184182",
"0.6175906",
"0.6175826",
"0.61741334",
"0.6172503",
"0.61674494",
"0.6165229",
"0.61584085",
"0.615683",
"0.6153568",
"0.61534065",
"0.6149418",
"0.614786",
"0.6141101",
"0.61297685",
"0.61297345",
"0.6127881",
"0.6127422",
"0.61214554",
"0.61199826"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
System.out.println("Primer commit");
System.out.println("18/05/2020 - segundo commit");
System.out.println("Rosana - tercer commit");
System.out.println("prueba - sexto commit");
} | {
"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 |
load the properties file with environment settings | @BeforeSuite
public void getProperties() throws Exception{
prop.load(new FileInputStream("src/test/resources/properties/env.properties"));
RestAssured.baseURI = prop.getProperty("HOST");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 }",
"@BeforeSuite\n\tpublic void propertiesFileReader(){\n\t\tif(prop == null){\t\t\t\n\t\t\tprop = new Properties();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"qa\")){ prop.load(new\n\t\t\t\t * FileInputStream(qaProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"stage\")){ prop.load(new\n\t\t\t\t * FileInputStream(stagProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"prod\")){ prop.load(new\n\t\t\t\t * FileInputStream(prodProperty)); }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"qa\")) \n\t\t\t\t\tFileUtils.copyFile(new File(qaProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"stage\"))\n\t\t\t\t\tFileUtils.copyFile(new File(stagProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"prod\"))\n\t\t\t\t\tFileUtils.copyFile(new File(prodProperty), new File(defaultProperty));\n\t\t\t\t\n\t\t\t\tprop.load(new FileInputStream(defaultProperty));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"user + pass [\"+prop.getProperty(\"username\")+\"===\"+prop.getProperty(\"password\"));\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void loadConfiguration() {\n Properties prop = new Properties();\n String propFileName = \".env_\" + this.dbmode.name().toLowerCase();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n System.err.println(\"property file '\" + propFileName + \"' not found in the classpath\");\n }\n this.jdbc = prop.getProperty(\"jdbc\");\n this.host = prop.getProperty(\"host\");\n this.port = prop.getProperty(\"port\");\n this.database = prop.getProperty(\"database\");\n this.user = prop.getProperty(\"user\");\n this.password = prop.getProperty(\"password\");\n // this.sslFooter = prop.getProperty(\"sslFooter\");\n } catch (Exception e) {\n System.err.println(\"can't read property file\");\n }\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }",
"@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}",
"public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }",
"private void loadProperties() {\n try (InputStream in = getClass().getClassLoader().getResourceAsStream(PATH_TO_PROPERTIES)) {\n this.prs.load(in);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }",
"public Properties init_prop() {\n\t\tprop = new Properties();\n\t\tString path = null;\n\t\tString env = null;\n\n\t\ttry {\n\n\t\t\tenv = System.getProperty(\"env\");\n\t\t\tSystem.out.println(\"Running on Envirnment: \" + env);\n\n\t\t\tif (env == null) {\n\t\t\t\tSystem.out.println(\"Default Envirnment: \" + \"PROD\");\n\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\n\t\t\t} else {\n\t\t\t\tswitch (env) {\n\t\t\t\tcase \"qa\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.qa.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"dev\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.dev.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"stage\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.stage.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"prod\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Please Pass the Correct Env Value...\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFileInputStream finput = new FileInputStream(path);\n\t\t\tprop.load(finput);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn prop;\n\t}",
"private static String loadPropertiesFileByEnvironement(String propertiesPath) {\n\t\t\tSystem.setProperty(\"ENV\", \"dev\");\n\t\tString env = System.getProperty(\"ENV\");\n\t\tString [] ts = propertiesPath.split(\"/\");\n\t\tfor(int i = 0;i<ts.length;i++){\n\t\t\tif(ts[i].contains(\".cfg.\")){\n\t\t\t\tts[i] = env+\"_\"+ts[i];\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tString newPathProperties = \"\";\n\t\tfor(String s : ts)\n\t\t\tnewPathProperties=newPathProperties +\"/\"+s;\n\t\tnewPathProperties = newPathProperties.substring(1,newPathProperties.length());\n\t\treturn newPathProperties;\n\t}",
"public static void loadProperties()\n {\n Properties props = new Properties();\n try {\n props.load( new BufferedInputStream( ClassLoader.getSystemResourceAsStream(\"bench.properties\") ) );\n } catch (IOException ioe)\n {\n logger.log(Level.SEVERE, ioe.getMessage());\n }\n props.putAll(System.getProperties()); //overwrite\n System.getProperties().putAll(props);\n }",
"private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }",
"public static void loadProperties() {\n properties = new Properties();\n try {\n File f = new File(\"system.properties\");\n if (!(f.exists())) {\n OutputStream out = new FileOutputStream(f);\n }\n InputStream is = new FileInputStream(f);\n properties.load(is);\n lastDir = getLastDir();\n if (lastDir == null) {\n lastDir = \"~\";\n setLastDir(lastDir);\n }\n properties.setProperty(\"lastdir\", lastDir);\n\n // Try loading properties from the file (if found)\n properties.load(is);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"void loadPropertiesFile()\n\t{\n\t\tlogger.info(\"Fetching the properties files\");\n\t\t\n\t\tconfigProp=new Properties(); \n\t\ttry{\tconfigProp.load(loadFile(\"Config.properties\"));\t\t} \n\t\tcatch (IOException e){\tAssert.assertTrue(\"Cannot initialise the Config properties file, Check if the file is corrupted\", false);\t}\t\t\t\n\t}",
"private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n propFile.createNewFile();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n\n props = new Properties();\n try {\n FileInputStream fis = new FileInputStream(propertyFile);\n props.load(fis);\n fis.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }",
"@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }",
"public void init(){\n\t\tif(prop==null){\r\n\t\t\tprop=new Properties();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileInputStream fs = new FileInputStream(System.getProperty(\"user.dir\")+\"//src//test//resources//projectconfig.properties\");\r\n\t\t\t\tprop.load(fs);\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }",
"public static void loadPropertyFile() throws IOException {\n\t\tPropertyFileReader.property = new Properties();\n\t\tPropertyFileReader.targetPlatform = System.getProperty(\"targetPlatform\");\n\t\tPropertyFileReader.targetDevice = System.getProperty(\"targetDevice\");\n\n\t\t// Load the property file based on platform and device\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"android\")) {\n\t\t\tfinal File file = new File(String.valueOf(System.getProperty(\"user.dir\"))\n\t\t\t\t\t+ \"\\\\src\\\\main\\\\resources\\\\testdata\\\\\" + PropertyFileReader.targetPlatform + \"\\\\\"\n\t\t\t\t\t+ PropertyFileReader.targetDevice + \"\\\\capabilities.properties\");\n\t\t\tPropertyFileReader.filereader = new FileReader(file);\n\t\t\tPropertyFileReader.property.load(PropertyFileReader.filereader);\n\t\t}\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"iOS\")) {\n\t\t\t// To do in case of iOS\n\t\t}\n\t}",
"private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1);\n } catch (IOException e2) {\n logger.error(\"Error while reading External properties file!\", e2);\n System.exit(1);\n }\n }",
"private void loadProperties() {\n\t\t\n\t\tString fldr = env.getProperty(\"response.folder\");\n\t\tthis.repo.setRootFolder( new File(fldr));;\n\t\t\n\t\tint nthConfigItem = 1;\n\t\twhile(true) {\n\t\t\tString seq = (\"\"+nthConfigItem++).trim();\n\t\t\t\n\t\t\tString xpathPropName = \"request.\" + seq + \".xpath\";\n\t\t\tString responseTextFilePropName = \"request.\" + seq + \".response.file\";\n\t\t\tString xpath = env.getProperty(xpathPropName);\n\t\t\tString responseTextFileName = env.getProperty(responseTextFilePropName);\n\t\t\tif (xpath!=null && !\"\".equals(xpath.trim())\n\t\t\t\t&& responseTextFileName!=null & !\"\".equals(responseTextFileName.trim())\t) {\n\t\t\t\t\n\t\t\t\trepo.addFile(xpath, responseTextFileName);\n\t\t\t\tController.logAlways(\"Loading config item [\" + seq + \"] xpath: [\" + rpad(xpath, 60) + \"] data file: [\" + rpad(responseTextFileName,25) + \"]\" );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tController.logAlways(\"End of littleMock initialization. No more properties from application.properties will be loaded because either [\" + xpathPropName + \"] or [\" + responseTextFilePropName + \"] was not found in application.properties.\");\n\t\t\t\t//parameters in application.properties must be\n\t\t\t\t//in sequential order, starting at 1.\n\t\t\t\t//When we discover the first missing one, stop looking for more.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\thumanReadableConfig = PlaybackRepository.SINGLETON.humanReadable();\n\t}",
"private static Properties setup() {\n Properties props = System.getProperties();\n try {\n props.load(new FileInputStream(new File(\"src/config.properties\")));\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n return props;\n }",
"private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n config.load(fis);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }",
"public void getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n logger.info(\"BASE URL :\" + properties.getProperty(\"BASEURL\"));\n setBaseUrl(properties.getProperty(\"BASEURL\"));\n setLoginMode(properties.getProperty(\"LOGINMODE\"));\n setProjectId(properties.getProperty(\"PROJECTID\"));\n setReportId(properties.getProperty(\"REPORTID\"));\n if (!(properties.getProperty(\"PASSWORD\").trim().equals(\"\"))) {\n setPassword(properties.getProperty(\"PASSWORD\"));\n }\n if (!(properties.getProperty(\"USERNAME\").trim().equals(\"\"))) {\n setUserName(properties.getProperty(\"USERNAME\"));\n }\n }catch(IOException ex) {\n logger.debug(\"Failed to fetch value from configure file: \", ex);\n }\n\n }",
"private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }",
"public static void loadProperties(String filename) {\n\n if (filename.equals(\"\")) {\n return;\n }\n propfilename = userhome + FS + filename;\n File f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n } else {\n propfilename = userhome + FS + \"Properties\" + FS + filename;\n f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n }\n }\n\n try {\n try (FileInputStream i = new FileInputStream(propfilename)) {\n prop.load(i);\n //prtProperties();\n }\n } catch (FileNotFoundException e) {\n System.out.println(\" ** Properties file not found=\" + propfilename + \" userhome=\" + userhome + \" \" + System.getProperty(\"user.home\"));\n saveProperties();\n } catch (IOException e) {\n System.out.println(\"IOException reading properties file=\" + propfilename);\n System.exit(1);\n }\n }",
"@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }",
"public void loadObject() {\n\n obj = new Properties();\n try {\n obj.load(new FileInputStream(\"./src/test/resources/config.properties\"));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"@BeforeClass\n\tpublic void readConfig() {\n\t\t// object creation of properties file\n\n\t\tProperties prop = new Properties();\n\n\t\t// read the file: inputstream\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(\"\\\\src\\\\main\\\\java\\\\config\\\\config.properties\");\n\t\t\tprop.load(input);\n\t\t\tbrowser = prop.getProperty(\"browser\");\n\t\t//\turl = prop.getProperty(\"url\");\n\t\t\t\n\t\t}\n\n\t\tcatch (IOException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}",
"private static void loadTestEnv() {\n\n\t\tPropertyReader reader = new PropertyReader(GlobalContext.getAppDir(), Constants.FILENAME_TESTENV);\n\n\t\tTestEnv env = new TestEnv();\n\t\tenv.setDefaultHostName(reader.getProperty(Constants.DEFAULT_HOST_NAME));\n\t\tenv.setDefaultHostOS(reader.getProperty(Constants.DEFAULT_HOST_OS));\n\t\tenv.setDefaultCredentials(reader.getProperty(Constants.DEFAULT_CREDENTIALS));\n\t\tenv.setDefaultBrowser(reader.getProperty(Constants.DEFAULT_BROWSER));\n\t\tenv.setAppServer(reader.getProperty(Constants.APP_SERVER));\n\t\tenv.setDatabaseServer(reader.getProperty(Constants.DATABASE_SERVER));\n\t\tenv.setEmailReceipients(reader.getProperty(Constants.EMAIL_RECEIPIENTS));\n\t\tenv.setEmailSender(reader.getProperty(Constants.EMAIL_SENDER));\n\n\t\t// sets to global context.\n\t\tGlobalContext.setTestEnv(env);\n\t}",
"void loadProperties(final String fileName){\n mProperties = new Properties();\n try {\n InputStreamReader stream = new InputStreamReader(CoreLib.getAppContext().getResources().\n getAssets().open(fileName));\n mProperties.load(stream);\n }catch (IOException e){\n throw new Error(\"Make sure you have both properties file(\" + fileName + \")present under assets\");\n }\n }",
"public static void loadPropertyFile() {\r\n\t\t\r\n\t\tif (loaded) {\r\n\t\t\tthrow new IllegalStateException(\"Properties have already been loaded!\"); \r\n\t\t}\r\n\t\tloaded = true; \r\n\t\t\r\n\t\t// if property file was specified, use it instead of standard property\r\n\t\t// file\r\n\r\n\t\tString file = STANDARD_PROPERTY_FILE;\r\n\r\n\t\tif (System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE) != null\r\n\t\t\t\t&& System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE)\r\n\t\t\t\t\t\t.length() != 0) {\r\n\t\t\tfile = System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE);\r\n\t\t}\r\n\r\n\t\t// load property file\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tprops.load(ClassLoader.getSystemResourceAsStream(file));\r\n\t\t\tSystem.setProperties(props);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t}\r\n\r\n\t}",
"public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}",
"private void loadProperties() {\n Path path = getSamplePropertiesPath();\n LOG.info(\"Loading Properties from {}\", path.toString());\n try {\n FileInputStream fis = new FileInputStream(getSamplePropertiesPath().toFile());\n Properties properties = new Properties();\n properties.load(fis);\n\n String privateKey = properties.getProperty(PRIVATE_KEY);\n this.credentials = Credentials.create(privateKey);\n this.contract1Address = properties.getProperty(CONTRACT1_ADDRESS);\n this.contract2Address = properties.getProperty(CONTRACT2_ADDRESS);\n this.contract3Address = properties.getProperty(CONTRACT3_ADDRESS);\n this.contract4Address = properties.getProperty(CONTRACT4_ADDRESS);\n this.contract5Address = properties.getProperty(CONTRACT5_ADDRESS);\n this.contract6Address = properties.getProperty(CONTRACT6_ADDRESS);\n\n } catch (IOException ioEx) {\n // By the time we have reached the loadProperties method, we should be sure the file\n // exists. As such, just throw an exception to stop.\n throw new RuntimeException(ioEx);\n }\n }",
"private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }",
"private void loadLocalConfig()\n {\n try\n {\n // Load the system config file.\n URL fUrl = Config.class.getClassLoader().getResource( PROP_FILE );\n config.setDelimiterParsingDisabled( true );\n if ( fUrl == null )\n {\n String error = \"static init: Error, null cfg file: \" + PROP_FILE;\n LOG.warn( error );\n }\n else\n {\n LOG.info( \"static init: found from: {} path: {}\", PROP_FILE, fUrl.getPath() );\n config.load( fUrl );\n LOG.info( \"static init: loading from: {}\", PROP_FILE );\n }\n\n URL fUserUrl = Config.class.getClassLoader().getResource( USER_PROP_FILE );\n if ( fUserUrl != null )\n {\n LOG.info( \"static init: found user properties from: {} path: {}\", USER_PROP_FILE, fUserUrl.getPath() );\n config.load( fUserUrl );\n }\n }\n catch ( org.apache.commons.configuration.ConfigurationException ex )\n {\n String error = \"static init: Error loading from cfg file: [\" + PROP_FILE\n + \"] ConfigurationException=\" + ex;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_BOOTSTRAP_FAILED, error, ex );\n }\n }",
"private void loadProperties(){\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }",
"private void loadPropertyFile(InputStream stream) throws IOException{\n\t\tproperties = new Properties();\n\t\tproperties.load(stream);\n\t}",
"public static void LoadIntoConfigFiles()\n {\n \tProperties prop = new Properties();\n ///*\n \ttry {\n \t\t//set the properties value\n \n prop.setProperty(\"comp_name\", \"Teledom International Ltd\");\n prop.setProperty(\"com_city\", \"Lagos\");\n \t\tprop.setProperty(\"State\", \"Lagos\");\n \t\tprop.setProperty(\"logo_con\", \"logo.png\");\n \t\tprop.setProperty(\"front_frame\", \"front.png\");\n prop.setProperty(\"back_frame\", \"back.png\");\n \n \n \n \n \t\t//save properties to project root folder\n \t\tprop.store(new FileOutputStream(setupFileName), null);\n \n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n }\n // */\n \n \n \n }",
"static void getProps() throws Exception {\r\n\t\tFileReader fileReader = new FileReader(\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\t\tProperties properties = new Properties();\r\n\r\n\t\tproperties.load(fileReader);\r\n\r\n\t\tSystem.out.println(\"By using File Reader: \" + properties.getProperty(\"username\"));\r\n\r\n\t}",
"@Test\r\n\t\tpublic static void Properties() \r\n\r\n\t\t{\r\n\t\t\ttry{\r\n\t\t\t\tprop = new Properties();\r\n\t\t\t\tfile = new File(\"C:\\\\Users\\\\vardhan\\\\eclipse-workspace\\\\com.makemytrip\\\\prop.properties\");\r\n\t\t\t\tfilereader = new FileReader(file);\r\n\t\t\t\tprop.load(filereader);\r\n\t\t\t\t\r\n\t\t\t }\r\n\t\t\r\n\t\t\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}",
"private static Properties loadProperties() throws SystemException {\r\n final Properties result;\r\n try {\r\n result = getProperties(PROPERTIES_DEFAULT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n throw new SystemException(\"properties not found.\", e);\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Default properties: \" + result);\r\n }\r\n Properties specific;\r\n try {\r\n specific = getProperties(PROPERTIES_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n specific = new Properties();\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading specific properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Specific properties: \" + specific);\r\n }\r\n result.putAll(specific);\r\n \r\n // Load constant properties\r\n Properties constant = new Properties();\r\n try {\r\n constant = getProperties(PROPERTIES_CONSTANT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n if (LOGGER.isWarnEnabled()) {\r\n LOGGER.warn(\"Error on loading contant properties.\");\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading contant properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Constant properties: \" + constant);\r\n }\r\n result.putAll(constant);\r\n \r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Merged properties: \" + result);\r\n }\r\n // set Properties as System-Variables\r\n for (final Object o : result.keySet()) {\r\n final String key = (String) o;\r\n String value = result.getProperty(key);\r\n value = replaceEnvVariables(value);\r\n System.setProperty(key, value);\r\n }\r\n return result;\r\n }",
"public final Properties init() throws FileNotFoundException, IOException{\n /*\n Your properties file must be in the deployed .war file in WEB-INF/classes/tokens. It is there automatically\n if you have it in Source Packages/java/tokens when you build. That is how this will read it in without defining a root location\n https://stackoverflow.com/questions/2395737/java-relative-path-of-a-file-in-a-java-web-application\n */\n String fileLoc =TinyTokenManager.class.getResource(Constant.PROPERTIES_FILE_NAME).toString();\n fileLoc = fileLoc.replace(\"file:\", \"\");\n setFileLocation(fileLoc);\n InputStream input = new FileInputStream(propFileLocation);\n props.load(input);\n input.close();\n currentAccessToken = props.getProperty(\"access_token\");\n currentRefreshToken = props.getProperty(\"refresh_token\");\n currentS3AccessID = props.getProperty(\"s3_access_id\");\n currentS3Secret = props.getProperty(\"s3_secret\");\n currentS3BucketName = props.getProperty(\"s3_bucket_name\");\n currentS3Region = Region.US_WEST_2;\n apiSetting = props.getProperty(\"open_api_cors\");\n return props;\n }",
"public PropertiesUtil() {\n\t\t// Read properties file.\n\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tproperties.load(PropertiesUtil.class.getClassLoader().getResourceAsStream(\"variables.properties\"));\n\t\t\tlog.info(\"variables.properties file loaded successfully\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"variables.properties file not found: \", e);\n\t\t}\n\t}",
"static void getProp() throws Exception {\r\n\r\n\t\tFileInputStream fileInputStream = new FileInputStream(\r\n\t\t\t\t\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(fileInputStream);\r\n\r\n\t\tSystem.out.println(\"By using File Input stream class: \" + properties.getProperty(\"username\"));\r\n\r\n\t}",
"private void loadSystemConfig() {\r\n try {\r\n Properties systemProperties = System.getProperties();\r\n for (Enumeration e = systemProperties.keys(); e.hasMoreElements(); ) {\r\n String key = (String) e.nextElement();\r\n if (key.startsWith(DEFAULT_PROPERTY_PREFIX)) {\r\n Object value = systemProperties.getProperty(key);\r\n properties.put(key, value);\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"Override Scope property \" + key + \" with \" + value);\r\n }\r\n }\r\n }\r\n } catch (SecurityException e) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"Can't access System properties\", e);\r\n }\r\n }\r\n }",
"private void init() {\n\t\tif ( PropertiesConfigurationFilename == null ) {\n\t\t\tlogger.info(\"config.properties is default\");\n\t\t\tconfigProp = createDefaultProperties();\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tlogger.info(\"config.properties is \"+ PropertiesConfigurationFilename.getAbsolutePath());\n\t\t\t\tconfigProp = new PropertiesConfiguration();\n\t\t\t\tconfigProp.load(PropertiesConfigurationFilename);\n\t\t\t} catch (ConfigurationException e) {\n\t\t\t\tlogger.error(\"Unable to open config file: \" + PropertiesConfigurationFilename.getAbsolutePath(), e);\n\t\t\t\tlogger.info(\"config.properties is default\");\n\t\t\t\tconfigProp = createDefaultProperties();\n\t\t\t}\n\t\t}\n\n\n\t\t// Load the locale information\n\t\tString locale = configProp.getString(\"locale\");\n\n\t\tconfigProp.setProperty(\"zmMsg\", ResourceBundle.getBundle(\"ZmMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zhMsg\", ResourceBundle.getBundle(\"ZhMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"ajxMsg\", ResourceBundle.getBundle(\"AjxMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"i18Msg\", ResourceBundle.getBundle(\"I18nMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zsMsg\", ResourceBundle.getBundle(\"ZsMsg\", new Locale(locale)));\n\n\t}",
"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}",
"private void readProperties() throws Exception{\n\t\t InputStream fisGlobal=null,fisModul=null; \n\t\t propiedades = new Properties();\n try {\n \t // Path directorio de configuracion\n \t String pathConf = System.getProperty(\"ad.path.properties\");\n \t \n \t // Propiedades globales\n \t fisGlobal = new FileInputStream(pathConf + \"sistra/global.properties\");\n \t propiedades.load(fisGlobal);\n \t\t \n \t // Propiedades modulo\n \t\t fisModul = new FileInputStream(pathConf + \"sistra/plugins/plugin-firma.properties\");\n \t\t propiedades.load(fisModul);\n \t \t \t\t \n } catch (Exception e) {\n \t propiedades = null;\n throw new Exception(\"Excepcion accediendo a las propiedadades del modulo\", e);\n } finally {\n try{if (fisGlobal != null){fisGlobal.close();}}catch(Exception ex){}\n try{if (fisModul != null){fisModul.close();}}catch(Exception ex){}\n }\t\t\n\t}",
"private static Properties loadProperties() {\n Properties properties;\n try (InputStream in = FHIRServerProperties.class.getClassLoader().getResourceAsStream(HAPI_PROPERTIES)) {\n properties = new Properties();\n properties.load(in);\n } catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties\", e);\n }\n\n Properties overrideProps = loadOverrideProperties();\n if (overrideProps != null) {\n properties.putAll(overrideProps);\n }\n return properties;\n }",
"@PostConstruct\n\tpublic void init() {\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(new ClassPathResource(\"/META-INF/build-info.properties\"));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to load build.properties\", e);\n\t\t\tprops = new Properties();\n\t\t}\n\t}",
"private void loadConfig() throws IOException {\r\n final boolean hasPropertiesFile = configFile != null && configFile.exists() \r\n && configFile.canRead() && configFile.isFile();\r\n if (hasPropertiesFile) {\r\n Properties props = new Properties();\r\n FileInputStream fis = null;\r\n try {\r\n fis = new FileInputStream(configFile);\r\n props.load(fis);\r\n Iterator<Object> keys = props.keySet().iterator();\r\n envVariables = new ArrayList<Variable>();\r\n while (keys.hasNext()) {\r\n String key = (String) keys.next();\r\n if (key.equalsIgnoreCase(GRKeys.GDAL_CACHEMAX)) {\r\n // Setting GDAL_CACHE_MAX Environment variable if available\r\n String cacheMax = null;\r\n try {\r\n cacheMax = (String) props.get(GRKeys.GDAL_CACHEMAX);\r\n if (cacheMax != null) {\r\n int gdalCacheMaxMemory = Integer.parseInt(cacheMax); // Only for validation\r\n Variable var = new Variable();\r\n var.setKey(GRKeys.GDAL_CACHEMAX);\r\n var.setValue(cacheMax);\r\n envVariables.add(var);\r\n }\r\n } catch (NumberFormatException nfe) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the specified property as a number: \"\r\n + cacheMax, nfe);\r\n }\r\n }\r\n } else if (key.equalsIgnoreCase(GRKeys.GDAL_DATA)\r\n || key.equalsIgnoreCase(GRKeys.GDAL_LOGGING_DIR)\r\n || key.equalsIgnoreCase(GRKeys.TEMP_DIR)) {\r\n // Parsing specified folder path\r\n String path = (String) props.get(key);\r\n if (path != null) {\r\n final File directory = new File(path);\r\n if (directory.exists() && directory.isDirectory()\r\n && ((key.equalsIgnoreCase(GRKeys.GDAL_DATA) && directory.canRead()) || directory.canWrite())) {\r\n Variable var = new Variable();\r\n var.setKey(key);\r\n var.setValue(path);\r\n envVariables.add(var);\r\n \r\n } else {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"The specified folder for \" + key + \" variable isn't valid, \"\r\n + \"or it doesn't exist or it isn't a readable directory or it is a \" \r\n + \"destination folder which can't be written: \" + path);\r\n }\r\n }\r\n }\r\n } else if (key.equalsIgnoreCase(GRKeys.EXECUTION_TIMEOUT)) {\r\n // Parsing execution timeout\r\n String timeout = null;\r\n try {\r\n timeout = (String) props.get(GRKeys.EXECUTION_TIMEOUT);\r\n if (timeout != null) {\r\n executionTimeout = Long.parseLong(timeout); // Only for validation\r\n }\r\n } catch (NumberFormatException nfe) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the specified property as a number: \"\r\n + timeout, nfe);\r\n }\r\n }\r\n } else if (key.equalsIgnoreCase(GRKeys.GDAL_WARP_PARAMS)\r\n || key.equalsIgnoreCase(GRKeys.GDAL_TRANSLATE_PARAMS)) {\r\n // Parsing gdal operations custom option parameters\r\n String param = (String) props.get(key);\r\n if (param != null) {\r\n if (key.equalsIgnoreCase(GRKeys.GDAL_WARP_PARAMS)) {\r\n gdalWarpingParameters = param.trim();\r\n } else {\r\n gdalTranslateParameters = param.trim();\r\n }\r\n }\r\n } else if (key.endsWith(\"PATH\")) {\r\n // Dealing with properties like LD_LIBRARY_PATH, PATH, ...\r\n String param = (String) props.get(key);\r\n if (param != null) {\r\n Variable var = new Variable();\r\n var.setKey(key);\r\n var.setValue(param);\r\n envVariables.add(var);\r\n }\r\n }\r\n }\r\n \r\n } catch (FileNotFoundException e) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the config file: \" + configFile.getAbsolutePath(), e);\r\n }\r\n \r\n } catch (IOException e) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the config file: \" + configFile.getAbsolutePath(), e);\r\n }\r\n } finally {\r\n if (fis != null) {\r\n try {\r\n fis.close();\r\n } catch (Throwable t) {\r\n // Does nothing\r\n }\r\n }\r\n }\r\n }\r\n }",
"public void IntialProperties() {\r\n Properties prop = new Properties();\r\n try (FileInputStream input = new FileInputStream(\"./config.properties\")) {\r\n prop.load(input);\r\n generate = prop.getProperty(\"generate\");\r\n solve = prop.getProperty(\"algorithm\");\r\n setChanged();\r\n notifyObservers(\"prop\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"private Properties loadProperties(String propertyFile) {\n\t\toAuthProperties = new Properties();\n\t\ttry {\n\t\t\toAuthProperties.load(App.class.getResourceAsStream(propertyFile));\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to read \" + propertyFile\n\t\t\t\t\t+ \" configuration. Make sure you have a properly formatted \" + propertyFile + \" file.\");\n\t\t\treturn null;\n\t\t}\n\t\treturn oAuthProperties;\n\t}",
"@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }",
"private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properties();\n\n // Set defaults for 'standard' operation.\n // properties.setProperty(FILENAME_KEY, clientHome + \"/bmo-data.tsv\");\n properties.setProperty(BMO_URI_KEY,\n \"http://www.buildingmanageronline.com/members/mbdev_export.php/download.txt\");\n\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propertiesFilename);\n properties.load(stream);\n System.out.println(\"Loading data input client properties from: \" + propertiesFilename);\n }\n catch (IOException e) {\n System.out.println(propertiesFilename\n + \" not found. Using default data input client properties.\");\n throw e;\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n trimProperties(properties);\n }",
"public ReadPropertyFile()\n\t{\n\t prob = new Properties(); \n\t \n\t try\n\t {\n\t FileInputStream fis = new FileInputStream(\".//config.properties\");\n\t prob.load(fis);\n\t }\n\t catch(FileNotFoundException e)\n\t {\n\t\t System.out.println(e.getMessage());\n\t }\n catch(IOException e)\n\t {\n \t System.out.println(e.getMessage());\n\t }\n\t}",
"public void init() {\n\t\tProperties prop = new Properties();\n\t\tInputStream propStream = this.getClass().getClassLoader().getResourceAsStream(\"db.properties\");\n\n\t\ttry {\n\t\t\tprop.load(propStream);\n\t\t\tthis.host = prop.getProperty(\"host\");\n\t\t\tthis.port = prop.getProperty(\"port\");\n\t\t\tthis.dbname = prop.getProperty(\"dbname\");\n\t\t\tthis.schema = prop.getProperty(\"schema\");\n\t\t\tthis.passwd=prop.getProperty(\"passwd\");\n\t\t\tthis.user=prop.getProperty(\"user\");\n\t\t} catch (IOException e) {\n\t\t\tString message = \"ERROR: db.properties file could not be found\";\n\t\t\tSystem.err.println(message);\n\t\t\tthrow new RuntimeException(message, e);\n\t\t}\n\t}",
"public static void loadProperties() {\r\n\t\tif (!isLoaded) {\r\n\t\t\tnew BCProperties() ;\r\n\t\t\tisLoaded = true ;\r\n\t\t}\r\n\t}",
"protected void initialise() {\r\n loadDefaultConfig();\r\n loadCustomConfig();\r\n loadSystemConfig();\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"--- Scope properties ---\");\r\n for (Iterator i = properties.keySet().iterator(); i.hasNext(); ) {\r\n String key = (String) i.next();\r\n Object value = properties.get(key);\r\n LOG.debug(key + \" = \" + value);\r\n }\r\n LOG.debug(\"------------------------\");\r\n }\r\n }",
"public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}",
"public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = ConfigReader.class.getClassLoader().getResourceAsStream(\"source/config.properties\");\n\t\t// on peut remplacer ConfigReader.class par getClass()\n\t\ttry {\n\t\t\tconfigfic.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private final static void getProp() {\n try(InputStream fis = ConnectionBDD.class.getClassLoader().getResourceAsStream(\"conf.properties\")){\n \n props.load(fis);\n \n Class.forName(props.getProperty(\"jdbc.driver.class\"));\n \n url = props.getProperty(\"jdbc.url\");\n login = props.getProperty(\"jdbc.login\");\n password = props.getProperty(\"jdbc.password\");\n \n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }",
"private void LoadConfigFromClasspath() throws IOException \n {\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(\"lrs.properties\");\n config.load(is);\n is.close();\n\t}",
"public static void read_Environment_Variable_for_Web() {\n\t\tProperties prop = new Properties();\n\t\tInputStream input = null;\n\n\t\ttry {\n\n\t\t\tinput = new FileInputStream(\"/Environment File/environmentVariableForWebProduction2.properties\");\n\n\t\t\t// load a properties file\n\t\t\tprop.load(input);\n\n\t\t\t// get the property value and print it out\n\t\t Map<String, Object> map = new HashMap<>();\n\t\t\tfor (Entry<Object, Object> entry : prop.entrySet()) {\n\t\t\t\tmap.put((String) entry.getKey(), entry.getValue());\n\t\t\t}\n\t\t\tEnvironmentVariablesForWeb.setEnvironmentPropertyMap(map);\n\t\t\t/*EnvironmentVariables.PLATFORM_NAME = prop.getProperty(\"PLATFORM_NAME\");\n\t\t\tEnvironmentVariables.VERSION_NAME = prop.getProperty(\"VERSION_NAME\");\n\t\t\tEnvironmentVariables.DEVICE_NAME = prop.getProperty(\"DEVICE_NAME\");\n\t\t\tSystem.out.println(EnvironmentVariables.PLATFORM_NAME);\n\t\t\tSystem.out.println(EnvironmentVariables.VERSION_NAME);\n\t\t\tSystem.out.println(EnvironmentVariables.DEVICE_NAME);*/\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tif (input != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t }",
"private static Properties loadOverrideProperties() {\n String confFile = System.getProperty(HAPI_PROPERTIES);\n if(confFile != null) {\n try {\n Properties props = new Properties();\n props.load(new FileInputStream(confFile));\n return props;\n }\n catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties file: \" + confFile, e);\n }\n }\n\n return null;\n }",
"private void loadProperties() {\n\t\tInputStream propsFile;\n\t\tProperties tempProp = new Properties();\n\n\t\ttry {\n\t\t\t//propsFile = new FileInputStream(\"plugins\\\\balloonplugin\\\\BalloonSegmentation.properties\");\n\t\t\tpropsFile = getClass().getResourceAsStream(\"/BalloonSegmentation.properties\");\n\t\t\ttempProp.load(propsFile);\n\t\t\tpropsFile.close();\n\n\t\t\t// load properties\n\t\t\tinit_channel = Integer.parseInt(tempProp.getProperty(\"init_channel\"));\t\t\t\t// initial channel selected for segmenting the cell architecture 1 - red, 2 - green, 3 - blue\n\t\t\tinit_max_pixel = Integer.parseInt(tempProp.getProperty(\"init_max_pixel\"));\t\t\t// initial max pixel intensity used for finding the doundaries of the colony of cells\n\t\t\tinit_HL = Integer.parseInt(tempProp.getProperty(\"init_HL\"));\t\t\t\t\t\t// initial H*L factor used finding seeds in the population\n\t\t\tinit_min_I = Integer.parseInt(tempProp.getProperty(\"init_min_I\"));\t\t\t\t\t// initial pixel intensity when balloon algorithm starts\n\t\t\tinit_max_I = Integer.parseInt(tempProp.getProperty(\"init_max_I\"));\t\t\t\t\t// final pixel intensity when balloon algorithm stops\n\n\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tIJ.error(\"I/O Exception: cannot read .properties file\");\n\t\t}\n\t}",
"public GlobalSetup(){\n\t\t\n\t\tpropertyData = new Properties();\n\t\t\n\t\ttry{\n\t\t\tInputStream propertyPath = new FileInputStream(\"src/test/resources/properties/categoriesData.properties\");\n\t\t\tpropertyData.load(propertyPath);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t}",
"private synchronized void readProperties()\n {\n \n String workPath = \"webserver\";\n try\n {\n workPath = (String) SageTV.api(\"GetProperty\", new Object[]{\"nielm/webserver/root\",\"webserver\"});\n }\n catch (InvocationTargetException e)\n {\n System.out.println(e);\n }\n \n // check if called within 30 secs (to prevent to much FS access)\n if (fileLastReadTime + 30000 > System.currentTimeMillis())\n {\n return;\n }\n\n // check if file has recently been loaded\n File propsFile=new File(workPath,\"extenders.properties\");\n if (fileLastReadTime >= propsFile.lastModified())\n {\n return;\n }\n\n if (propsFile.canRead())\n {\n BufferedReader in = null;\n contextNames.clear();\n try\n {\n in = new BufferedReader(new FileReader(propsFile));\n String line;\n Pattern p = Pattern.compile(\"([^=]+[^=]*)=(.*)\");\n while (null != (line = in.readLine()))\n {\n line = line.trim();\n if ((line.length() > 0) && (line.charAt(0) != '#'))\n {\n Matcher m =p.matcher(line.trim());\n if (m.matches())\n {\n contextNames.put(m.group(1).trim(), m.group(2).trim());\n }\n else\n {\n System.out.println(\"Invalid line in \"+propsFile+\"\\\"\"+line+\"\\\"\");\n }\n }\n }\n fileLastReadTime=System.currentTimeMillis();\n\n }\n catch (IOException e)\n {\n System.out.println(\"Exception occurred trying to load properties file: \"+propsFile+\"-\" + e);\n }\n finally\n {\n if (in != null)\n {\n try\n {\n in.close();\n }\n catch (IOException e) {}\n }\n }\n } \n }",
"public Properties initProperties() {\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(\"./src/main/java/com/automation/qe/config/config.properties\");\r\n\t\t\tprop.load(fis);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn prop;\r\n\t}",
"public static Properties load(String basedir)\n throws Exception {\n if (!basedir.endsWith(File.separator)) {\n basedir = basedir + File.separator;\n }\n \n Properties prop = null;\n String amConfigProperties = basedir +\n SetupConstants.AMCONFIG_PROPERTIES;\n File file = new File(amConfigProperties);\n if (file.exists()) {\n prop = new Properties();\n InputStream propIn = new FileInputStream(amConfigProperties);\n try {\n prop.load(propIn);\n } finally {\n propIn.close();\n }\n } else {\n isBootstrap = true;\n String bootstrapFile = basedir + BOOTSTRAP;\n String urlBootstrap = readFile(bootstrapFile);\n prop = getConfiguration(urlBootstrap, true);\n }\n \n return prop;\n }",
"public static String getPropertyFromFile(String propName)throws ISException{\n InputStream inputStream;\n Properties prop = new Properties();\n try {\n inputStream = new FileInputStream(new File(System.getenv(\"conf.home\")+\"\\\\application.properties\"));\n prop.load(inputStream);\n if(prop==null){\n throw new ISException(\"getProperty: Cannot open property file!\");\n }\n return prop.getProperty(propName);\n } catch(Exception e){\n throw new ISException(\"getProperty: Cannot open property file!\");\n }\n }",
"public void getPropValues() throws IOException {\r\n try {\r\n Properties prop = new Properties();\r\n String path = System.getProperty(\"user.dir\") +\"\\\\src\\\\es\\\\udc\\\\redes\\\\webserver\\\\resources\\\\\";\r\n\t String filename = \"config.properties\";\r\n inputStream = new FileInputStream(path+filename);\r\n if (inputStream != null) {\r\n prop.load(inputStream);\r\n } else {\r\n\t\tthrow new FileNotFoundException(\"property file '\"+path + filename + \"' not found\");\r\n }\r\n\t // get the property value and set in attributes\r\n\t this.PORT = prop.getProperty(\"PORT\");\r\n this.DIRECTORY_INDEX = prop.getProperty(\"DIRECTORY_INDEX\");\r\n this.DIRECTORY = System.getProperty(\"user.dir\")+ prop.getProperty(\"DIRECTORY\");\r\n this.ALLOW = prop.getProperty(\"ALLOW\");\r\n this.HOSTNAME = prop.getProperty(\"HOSTNAME\");\r\n System.out.println();\r\n } catch (Exception e) {\r\n\t\tSystem.out.println(\"Exception: \" + e);\r\n\t} finally {\r\n\t\tinputStream.close();\r\n\t}\r\n }",
"PropertiesTask setProperties( File propertiesFile );",
"private void loadEnvironment(String filename){\n // Code here to read from the file and set up the environment\n try (BufferedReader br = new BufferedReader(new FileReader(filename))) {\n String line;\n while((line = br.readLine()) != null) {\n String[] values = line.split(\",\");\n String type = values[0].replaceAll(\"[^a-zA-Z0-9]\", \"\"); // remove special characters\n double x = Double.parseDouble(values[1]);\n double y = Double.parseDouble(values[2]);\n switch (type) {\n case \"Zombie\":\n Zombie zombie = new Zombie(x, y);\n this.zombies.put(zombie.getPosition(), zombie);\n break;\n case \"Sandwich\":\n Sandwich sandwich = new Sandwich(x, y);\n this.sandwiches.put(sandwich.getPosition(), sandwich);\n break;\n case \"Player\":\n this.player = new Player(x, y, Integer.parseInt(values[3]));\n break;\n case \"Treasure\":\n this.treasure = new Treasure(x, y);\n break;\n default:\n throw new BagelError(\"Unknown type: \" + type);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"private static void loadConfig()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal Properties props = ManagerServer.loadProperties(ManagerServer.class, \"/resources/conf.properties\");\n\t\t\tasteriskIP = props.getProperty(\"asteriskIP\");\n\t\t\tloginName = props.getProperty(\"userName\");\n\t\t\tloginPwd = props.getProperty(\"password\");\n\t\t\toutboundproxy = props.getProperty(\"outBoundProxy\");\n\t\t\tasteriskPort = Integer.parseInt(props.getProperty(\"asteriskPort\"));\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tLOG.error(\"IO Exception while reading the configuration file.\", ex);\n\t\t}\n\t}",
"public static void loadProps(InputStream in) {\r\n\t\ttry {\r\n properties.load(in);\r\n } catch (IOException e) {\r\n System.out.println( \"No config.properties was found.\");\r\n e.printStackTrace();\r\n }\r\n\t}",
"public ConfigFileReader(){\r\n\t\t \r\n\t\t BufferedReader reader;\r\n\t\t try {\r\n\t\t\t reader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\t properties = new Properties();\r\n\t\t\t try {\r\n\t\t\t\t properties.load(reader);\r\n\t\t\t\t reader.close();\r\n\t\t\t } catch (IOException e) {\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t throw new RuntimeException(\"configuration.properties not found at \" + propertyFilePath);\r\n\t \t } \r\n\t }",
"private Properties loadConfig(String baseFileName, String userPathParamName) throws IOException {\n\t\tString fileName = baseFileName + \".properties\";\n\t\tProperties properties = new Properties();\n\t\ttry (InputStream configStream = ApiInitializer.class.getClassLoader().getResourceAsStream(fileName)) {\n\t\t\tif (configStream != null) {\n\t\t\t\tproperties.load(configStream);\n\t\t\t}\n\t\t}\n\n\t\t// Then, override with whatever the user set up.\n\t\tString userFilePath = servletContext.getInitParameter(userPathParamName);\n\t\tif (userFilePath == null) {\n\t\t\tuserFilePath = \"WEB-INF/\" + baseFileName + \".properties\";\n\t\t} else {\n\t\t\tPath path = Paths.get(userFilePath, baseFileName + \".properties\");\n\t\t\tuserFilePath = path.toString();\n\t\t}\n\t\ttry (InputStream inStream = servletContext.getResourceAsStream(userFilePath);) {\n\t\t\tif (inStream != null) {\n\t\t\t\tproperties.load(inStream);\n\t\t\t}\n\t\t}\n\n\t\treturn properties;\n\t}",
"private static void addSettingsPropertiesToSystem(){\n \t\tProperties props;\n \t\ttry {\n \t\t\tprops = SettingsLoader.loadSettingsFile();\n \t\t\tif(props != null){\n \t\t\t\tIterator it = props.keySet().iterator();\n \t\t\t\twhile(it.hasNext()){\n \t\t\t\t\tString key = (String) it.next();\n \t\t\t\t\tString value = props.getProperty(key);\n \t\t\t\t\tSystem.setProperty(key, value);\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (Exception e) {\n \t\t\tthrow new Error(e);\n \t\t}\n \t}",
"public ReadConfigFile (){\n\t\ttry {\n\t\t\tinput = ReadConfigFile.class.getClassLoader().getResourceAsStream(Constant.CONFIG_PROPERTIES_DIRECTORY);\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}",
"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 }",
"private void initializeProperties() throws IOException {\n String userHome = org.wattdepot.util.logger.WattDepotUserHome.getHomeString();\n String wattDepotHome = userHome + \"/.wattdepot\";\n String clientHome = wattDepotHome + \"/client\";\n String propFile = clientHome + \"/datainput.properties\";\n initializeProperties(propFile);\n }",
"private AppConfigLoader() {\r\n\r\n\t\tProperties appConfigPropertySet = new Properties();\r\n\t\tProperties envConfigPropertySet = new Properties();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// read properties file\r\n\t\t\tInputStream appConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t.getResourceAsStream(\"/config/baseAppConfig.properties\");\r\n\t\t\tappConfigPropertySet.load(appConfigPropertyStream);\r\n\r\n\t\t\tInputStream envConfigPropertyStream = null;\r\n\r\n\t\t\t// check if current environment is defined (QA, Integration or Staging)\r\n\t\t\tif (System.getProperty(\"environment\") != null) {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t\t.getResourceAsStream(\"/config/\" + System.getProperty(\"environment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Runtime'********\");\r\n\t\t\t\tSystem.out.println(\"********'\" + System.getProperty(\"environment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = System.getProperty(\"environment\");\r\n\t\t\t} else {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class.getResourceAsStream(\r\n\t\t\t\t\t\t\"/config/\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Baseapp config property file'********\");\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"********'\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = appConfigPropertySet.getProperty(\"CurrentEnvironment\");\r\n\t\t\t}\r\n\r\n\t\t\tenvConfigPropertySet.load(envConfigPropertyStream);\r\n\r\n\t\t\tthis.sampleURL = envConfigPropertySet.getProperty(\"SampleUrl\");\r\n\t\t\tthis.sampleAPIURL = envConfigPropertySet.getProperty(\"SampleAPIUrl\");\r\n\r\n\t\t\tthis.sampleDbConnectionString = envConfigPropertySet.getProperty(\"SampleConnectionString\");\r\n\r\n\t\t\tenvConfigPropertyStream.close();\r\n\t\t\tappConfigPropertyStream.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static void configureLocal() {\r\n configure(getProperties(true));\r\n }",
"private static synchronized void setProperties(\n final String strPropertiesFilename) {\n if (msbPropertiesLoaded) {\n Verbose.warning(\"Properties already loaded; ignoring request\");\n\n return;\n }\n\n File oFile = new File(strPropertiesFilename);\n\n if (!oFile.exists()) {\n // Try to get it from jar file\n ClassLoader classLoader = Thread.currentThread()\n .getContextClassLoader();\n final InputStream input;\n\n if (classLoader == null) {\n classLoader = Class.class.getClassLoader();\n }\n input = classLoader\n .getResourceAsStream('/' + strPropertiesFilename);\n PropertyDef.setProperties(input, null);\n } else {\n PropertyDef.setProperties(new File(strPropertiesFilename), null,\n false);\n }\n if (strPropertiesFilename == DEFAULT_PROPERTIES_FILENAME) {\n oFile = new File(CUSTOMER_PROPERTIES_FILENAME);\n if (oFile.exists() && oFile.isFile()) {\n PropertyDef.addProperties(oFile);\n }\n }\n AdaptiveReplicationTool.msbPropertiesLoaded = true;\n }",
"private void loadPropertiesFromFile(String propertiesFileName) {\t\t\n\t\tif ( (propertiesFileName != null) && !(propertiesFileName.isEmpty()) ) {\n\t\t\tpropertiesFileName = config_file_name;\n\t \t\ttry {\n\t \t\t\t// FileInputStream lFis = new FileInputStream(config_file_name);\n\t \t\t\t// FileInputStream lFis = getServletContext().getResourceAsStream(config_file_name);\n\t \t\t\tInputStream lFis = Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\");\n\t \t\t\tif (lFis != null) {\n\t\t \t\t\tProperties lConnectionProps = new Properties();\n\t\t \t\t\tlConnectionProps.load(lFis);\n\t\t \t\t\tlFis.close();\n\t\t \t\t\tlLogger.info(DEBUG_PREFIX + \"Using configuration file \" + config_file_name);\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceNname\") != null) ssosvc_name = lConnectionProps.getProperty(\"SsoServiceNname\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceLabel\") != null) ssosvc_label = lConnectionProps.getProperty(\"SsoServiceLabel\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServicePlan\") != null) ssosvc_plan = lConnectionProps.getProperty(\"SsoServicePlan\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_clientId = lConnectionProps.getProperty(\"SsoServiceCredential_clientId\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_secret = lConnectionProps.getProperty(\"SsoServiceCredential_secret\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_serverSupportedScope = lConnectionProps.getProperty(\"SsoServiceCredential_serverSupportedScope\");\n\t\t\tlLogger.info(DEBUG_PREFIX + \"CONFIG FILE parsing, found Scopes = \" + ssosvc_cred_serverSupportedScope + \" for service name = \" + ssosvc_name);\t\n\t\t\t Pattern seperators = Pattern.compile(\".*\\\\[ *(.*) *\\\\].*\");\n\t\t\t if (seperators != null) {\n\t\t\t \tMatcher scopeMatcher = seperators.matcher(ssosvc_cred_serverSupportedScope);\n\t\t\t\t scopeMatcher.find();\n\t\t\t\t ssosvc_cred_serverSupportedScope = scopeMatcher.group(1); // only get the first occurrence\n\t\t\t\t lLogger.info(DEBUG_PREFIX + \"CONFIG FILE parsing, retrieved first Scope = \" + ssosvc_cred_serverSupportedScope);\n\t\t\t }\n\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_issuerIdentifier = lConnectionProps.getProperty(\"SsoServiceCredential_issuerIdentifier\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_tokenEndpointUrl = lConnectionProps.getProperty(\"SsoServiceCredential_tokenEndpointUrl\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_authorizationEndpointUrl = lConnectionProps.getProperty(\"SsoServiceCredential_authorizationEndpointUrl\");\n\t\n\t\t \t\t\tlLogger.info(DEBUG_PREFIX + \"Using config for SSO Service with name \" + ssosvc_name);\n\t \t\t\t} else {\n\t \t\t\t\tlLogger.severe(DEBUG_PREFIX + \"Configuration file not found! Using default settings.\");\n\t \t\t\t}\n\n\t \t\t} catch (FileNotFoundException e) {\n\t \t\t\tlLogger.severe(DEBUG_PREFIX + \"Configuration file = \" + config_file_name + \" not found! Using default settings.\");\n\t \t\t\te.printStackTrace();\n\t \t\t} catch (IOException e) {\n\t \t\t\tlLogger.severe(\"SF-DEBUG: Configuration file = \" + config_file_name + \" not readable! Using default settings.\");\n\t \t\t\te.printStackTrace();\n\t \t\t}\n\t \t} else {\n\t \t\tlLogger.info(DEBUG_PREFIX + \"Configuration file = \" + config_file_name + \" not found! Using default settings.\");\n\t \t}\n\t}",
"public ConfigFileReader(){\r\n\t\tBufferedReader reader;\r\n\t\ttry {\r\n\t\t\treader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\tproperties = new Properties();\r\n\t\t\ttry {\r\n\t\t\t\tproperties.load(reader);\r\n\t\t\t\treader.close();\r\n\t\t\t}catch(IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}catch(FileNotFoundException ex) {\r\n\t\t\tSystem.out.println(\"Configuration.properties not found at \"+propertyFilePath);\r\n\t\t}\r\n\t}",
"public ReadConfigProperty() {\n\n\t\ttry {\n\t\t\tString filename = \"com/unitedcloud/resources/config.properties\";\n\t\t\tinput = ReadConfigProperty.class.getClassLoader().getResourceAsStream(filename);\n\t\t\tif (input == null) {\n\t\t\t\tSystem.out.println(\"Sorry, unable to find \" + filename);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void loadProperties(Properties p, String fileName)throws IOException {\n ClassLoader classLoader = ClassLoader.getSystemClassLoader();\n URL f = classLoader.getResource(fileName);\n FileInputStream fr = new FileInputStream(new File(fileName));\n p.load(fr);\n fr.close();\n }",
"void setEnvironment(Properties properties);",
"protected Properties loadClientProperties(String filename) throws Exception {\n InputStream is = null;\n try {\n Properties props = new Properties();\n\n // Open the properties file specified by the user.\n File f = new File(filename);\n if (f.exists()) {\n is = new FileInputStream(f);\n } else {\n throw new FileNotFoundException(\"Properties file '\" + filename + \"' not found.\");\n }\n\n // Load the properties.\n props.load(is);\n is.close();\n\n return props;\n } finally {\n if (is != null) {\n is.close();\n }\n }\n }",
"public void loadPropertyFile(String filename) {\n try (InputStream is = new FileInputStream(filename)) {\n properties.load(is);\n } catch (IOException x) {\n throw new IllegalArgumentException(x);\n }\n }",
"private void GetRequiredProperties() {\r\n\r\n\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\t\r\n try {\r\n \r\n File file = new File(fileToRead);\r\n \r\n if (file.exists()) {\r\n logger.info(\"Config file exists\");\r\n } else {\r\n logger.error(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n }\r\n \r\n prop.load(new FileInputStream(file));\r\n\r\n } catch (Exception e) {\r\n\r\n logger.error(\"Exception :: GetRequiredProperties :: \" + e.getMessage(), e);\r\n\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: \" + e.getMessage());\r\n }\r\n\r\n\t sifUrl = prop.getProperty(\"MDM_SIF_URL\");\r\n\t orsId = prop.getProperty(\"MDM_ORS_ID\");\r\n\t username = prop.getProperty(\"MDM_USER_NAME\");\r\n\t password = prop.getProperty(\"MDM_PASSWORD\");\r\n\t \r\n\t logger.info(\"SIF URL ::\" + sifUrl);\r\n\t logger.info(\"ORS ID ::\" + orsId );\r\n\t logger.info(\"User Id ::\" + username);\r\n\t logger.info(\"Password ::\" + password);\r\n\t \r\n\t\r\n\t}",
"private void loadProperties() {\n driver = JiveGlobals.getXMLProperty(\"database.defaultProvider.driver\");\n serverURL = JiveGlobals.getXMLProperty(\"database.defaultProvider.serverURL\");\n username = JiveGlobals.getXMLProperty(\"database.defaultProvider.username\");\n password = JiveGlobals.getXMLProperty(\"database.defaultProvider.password\");\n String minCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.minConnections\");\n String maxCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.maxConnections\");\n String conTimeout = JiveGlobals.getXMLProperty(\"database.defaultProvider.connectionTimeout\");\n // See if we should use Unicode under MySQL\n mysqlUseUnicode = Boolean.valueOf(JiveGlobals.getXMLProperty(\"database.mysql.useUnicode\")).booleanValue();\n try {\n if (minCons != null) {\n minConnections = Integer.parseInt(minCons);\n }\n if (maxCons != null) {\n maxConnections = Integer.parseInt(maxCons);\n }\n if (conTimeout != null) {\n connectionTimeout = Double.parseDouble(conTimeout);\n }\n }\n catch (Exception e) {\n Log.error(\"Error: could not parse default pool properties. \" +\n \"Make sure the values exist and are correct.\", e);\n }\n }",
"public final void loadPropertiesFromFile(final String fileName)\n {\n\n Properties tempProp = PropertyLoader.loadProperties(fileName);\n fProp.putAll(tempProp);\n\n }",
"public static void basefn() throws IOException {\r\n\t\t//Below line creates an object of Properties called 'prop'\r\n\t\tprop = new Properties(); \r\n\t\t\r\n\t\t//Below line creates an object of FileInputStream called 'fi'. Give the path of the properties file which you have created\r\n\t\tFileInputStream fi = new FileInputStream(\"D:\\\\Java\\\\workspace\\\\Buffalocart\\\\src\\\\test\\\\resources\\\\config.properties\");\r\n\t\t\r\n\t\t//Below line of code will load the property file\r\n\t\tprop.load(fi);\t\t\t\t\r\n\t}",
"protected SftpPropertyLoad(final String bundleFileName) {\n\n\t\tthis.bundleFileName = bundleFileName;\n\n\t\tfinal Resource res = new ClassPathResource(StringUtil.replace(bundleFileName, \".\", \"/\") + \".properties\");\n\t\tfinal EncodedResource encodedResource = new EncodedResource(res, \"UTF-8\");\n\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(encodedResource);\n\t\t} catch (IOException e) {\n\t\t\tthrow new WebRuntimeException(e);\n\t\t}\n\t}",
"public BaseTest() {\n\n String path = System.getProperty(\"user.dir\") + \"/src/test/resources/config.properties\";\n prop = new Properties();\n /** Stream to read the spreadsheet. */\n FileInputStream fis = null;\n try {\n fis = new FileInputStream(path);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n try {\n prop.load(fis);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }"
] | [
"0.746641",
"0.7431045",
"0.73722726",
"0.73274165",
"0.7266364",
"0.72491133",
"0.72414464",
"0.72265893",
"0.7189714",
"0.7186964",
"0.71243095",
"0.7079094",
"0.70760727",
"0.7071927",
"0.7067775",
"0.7064044",
"0.7055171",
"0.6983254",
"0.6969581",
"0.6942698",
"0.69420934",
"0.6892806",
"0.6888581",
"0.6864111",
"0.68466926",
"0.6834233",
"0.68272966",
"0.68190134",
"0.6817294",
"0.6805742",
"0.6782464",
"0.6775045",
"0.6771291",
"0.67594457",
"0.6757592",
"0.6713034",
"0.6695246",
"0.6662144",
"0.66335",
"0.6633129",
"0.66324407",
"0.6612743",
"0.661125",
"0.6604478",
"0.6596278",
"0.657733",
"0.6544702",
"0.6543882",
"0.65394694",
"0.6537377",
"0.6512107",
"0.65072703",
"0.6504597",
"0.6494011",
"0.6489833",
"0.648954",
"0.6462248",
"0.6453134",
"0.64463",
"0.6446041",
"0.64381415",
"0.6436605",
"0.64325213",
"0.6419686",
"0.6418161",
"0.64109105",
"0.64096004",
"0.63965386",
"0.6391004",
"0.6386745",
"0.6375698",
"0.63523185",
"0.63518864",
"0.6321075",
"0.6307546",
"0.62971777",
"0.62970895",
"0.62689954",
"0.62604004",
"0.62595",
"0.62592787",
"0.6252958",
"0.6240322",
"0.62373364",
"0.6232352",
"0.6219599",
"0.6219194",
"0.621197",
"0.62109095",
"0.618948",
"0.6180625",
"0.61595243",
"0.61580485",
"0.6153078",
"0.6150283",
"0.6144213",
"0.61425644",
"0.6140659",
"0.61286825",
"0.6127302"
] | 0.6677807 | 37 |
create Session ID for the logged in User Read the properties file and convert to jsonObject | @Test(enabled = true)
public String createSession() throws Exception {
JSONParser parser = new JSONParser();
Object obj = parser.parse(new FileReader(JSON_FILE_1));
JSONObject jsonObject = (JSONObject) obj;
Response res =
given().
header("Content-Type","application/json").and().
body(jsonObject.toJSONString()).
when().
post("/rest/auth/1/session").
then().
statusCode(200).log().all().extract().response();
//extracting values from the RestAssured Response
JsonPath jp = res.jsonPath();
String sessionName = jp.get("session.name"); //session Name
String sessionID = jp.get("session.value"); //session Value
System.out.println(sessionName);
System.out.println(sessionID);
return sessionID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@POST\n\t@Consumes({ MediaType.APPLICATION_JSON })\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic Response createSession(@Context HttpServletRequest req,\n\t\t\tJSONObject inputJsonObj, @Context UriInfo ui,\n\t\t\t@Context HttpHeaders hh) {\n\t\tString userName = null; // user inserted fields\n\t\tString attemptedPassword = null; // user inserted fields\n\t\tResponse response = null;\n\t\ttry {\n\t\t\tuserName = (String) inputJsonObj.get(\"userName\");\n\t\t\tattemptedPassword = (String) inputJsonObj.get(\"password\");\n\t\t} catch (JSONException e) {\n\t\t\tSystem.out.println(\"Error Reading the jsonFile\");\n\t\t\treturn Response.status(Status.BAD_REQUEST)\n\t\t\t\t\t.entity(\"Error reading JSON\").build();\n\t\t}\n\t\t// String email = appsMid.getEmailUsingUserName(appId, userName);\n\t\tif(userName == null && attemptedPassword == null)\n\t\t\treturn Response.status(Status.BAD_REQUEST)\n\t\t\t\t\t.entity(\"Error reading JSON\").build();\n\t\tString userId = appsMid.getUserIdUsingUserName(appId, userName);\n\t\tif (userId != null) {\n\t\t\tboolean usersConfirmedOption = appsMid\n\t\t\t\t\t.confirmUsersEmailOption(appId);\n\t\t\t// Remember the order of evaluation in java\n\t\t\tif (usersConfirmedOption) {\n\t\t\t\tif (appsMid.userEmailIsConfirmed(appId, userId)) {\n\t\t\t\t\tSystem.out.println(\"userId of \" + userName + \"is: \"\n\t\t\t\t\t\t\t+ userId);\n\t\t\t\t\tString sessionToken = getRandomString(IDGENERATOR);\n\t\t\t\t\tboolean validation = appsMid.createSession(sessionToken,\n\t\t\t\t\t\t\tappId, userId, attemptedPassword);\n\t\t\t\t\tif (validation) {\n\t\t\t\t\t\tNewCookie identifier = new NewCookie(\"sessionToken\",\n\t\t\t\t\t\t\t\tsessionToken);\n\n\t\t\t\t\t\tresponse = Response.status(Status.OK)\n\t\t\t\t\t\t\t\t.entity(identifier).build();\n\t\t\t\t\t}\n\t\t\t\t\tresponse = Response.status(Status.OK).entity(sessionToken)\n\t\t\t\t\t\t\t.build();\n\t\t\t\t} else {\n\t\t\t\t\tresponse = Response.status(Status.FORBIDDEN)\n\t\t\t\t\t\t\t.entity(EMAILCONFIRMATIONERROR).build();\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tresponse = Response.status(Status.UNAUTHORIZED).entity(\"\")\n\t\t\t\t\t\t.build();\n\t\t} else\n\t\t\tresponse = Response.status(Status.NOT_FOUND).entity(\"\").build();\n\t\treturn response;\n\n\t}",
"java.lang.String getSessionID();",
"String getSessionID();",
"String getSessionID();",
"private static String obtainSessionID(ApiContext apiContext) throws Exception {\n GetSessionIDCall apiCall = new GetSessionIDCall(apiContext);\n\n apiCall.setRuName(ruName);\n String sessionID = apiCall.getSessionID();\n //Handle the result returned\n logger.info(\"sessionID : \" + sessionID);\n return sessionID;\n }",
"private void updateUserLogin() {\n\t\tSessionManager sessionManager = new SessionManager(\n\t\t\t\tMyApps.getAppContext());\n\n\t\tRequestParams params = new RequestParams();\n\t\tparams.add(\"user_id\", sessionManager.getUserDetail().getUserID());\n\n\t\tLog.d(\"EL\", \"userID: \" + sessionManager.getUserDetail().getUserID());\n\n\t\tKraveRestClient.post(WebServiceConstants.AV_UPDATE_USER_PROFILE_DATA_1,\n\t\t\t\tparams, new JsonHttpResponseHandler() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tJSONObject response) {\n\n\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tLog.d(\"EL\", \"response: \" + response.toString(2));\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tThrowable throwable, JSONObject errorResponse) {\n\n\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"public static String parseJSessionID(String input){\n String jSessionID = \"\";\n try {\n JSONParser parser = new JSONParser();\n Object obj = parser.parse(input);\n JSONObject jsonObject = (JSONObject) obj;\n JSONObject sessionJsonObj = (JSONObject) jsonObject.get(\"session\");\n jSessionID = (String) sessionJsonObj.get(\"value\");\n } catch (Exception ex) {\n System.out.println(\"Error in parseJSessionID: \" + ex.getMessage());\n jSessionID = \"ERROR\";\n }\n System.out.println(\"\\njSessionID:\");\n System.out.println(jSessionID);\n return jSessionID;\n }",
"int getClientSessionID();",
"private Session session(Properties props) {\n return Session.getInstance(props,\n new Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\", \"happinessbarometer2014\");\n }\n }\n );\n }",
"public static boolean storeSessionId(User dto){\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\tEntity sessionId = new Entity(\"sessionId\");\n\t\t/*\n\t\tSet the sessionId and the first / last name tied to it.\n\t\tWhile we may not use the first and last name right now,\n\t\twe might in the future, so for now, store em.\n\t\t */\n\t\t\n\t\tsessionId.setProperty(\"sessionId\", dto.getSessionId());\n\t\tsessionId.setProperty(\"firstName\", dto.getFirstName());\n\t\tsessionId.setProperty(\"lastName\", dto.getLastName());\n\n\t\t//Date for a time reference\n\t\tDate date = new Date();\n\t\tlong currentDateMilliseconds = date.getTime();\n\t\t//Putting the date time reference in as a long in Epoch Time\n\t\tsessionId.setProperty(\"dateCreated\", currentDateMilliseconds);\n\t\t\n\t\t//Insert it into the datastore\n\t\ttry{\n\t\t\tdatastore.put(sessionId);\n\t\t\treturn true;\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"private String getTopcatSessionId() {\r\n HttpServletRequest request = this.getThreadLocalRequest();\r\n HttpSession session = request.getSession();\r\n String sessionId = null;\r\n if (session.getAttribute(\"SESSION_ID\") == null) { // First time login\r\n try {\r\n sessionId = userManager.login();\r\n session.setAttribute(\"SESSION_ID\", sessionId);\r\n } catch (AuthenticationException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n } else {\r\n sessionId = (String) session.getAttribute(\"SESSION_ID\");\r\n }\r\n return sessionId;\r\n }",
"private String makeSessionId() {\n if (shareMr3Session) {\n String globalMr3SessionIdFromEnv = System.getenv(MR3_SHARED_SESSION_ID);\n useGlobalMr3SessionIdFromEnv = globalMr3SessionIdFromEnv != null && !globalMr3SessionIdFromEnv.isEmpty();\n if (useGlobalMr3SessionIdFromEnv) {\n return globalMr3SessionIdFromEnv;\n } else {\n return UUID.randomUUID().toString();\n }\n } else {\n return UUID.randomUUID().toString();\n }\n }",
"private String getUserId(JSONObject input) throws JSONException {\n String userId;\n\n if(input.has(\"user_id\")) { //$NON-NLS-1$\n userId = input.getString(\"user_id\"); //$NON-NLS-1$\n } else {\n userId = userSessionService.getUser().getUsername();\n }\n\n return userId;\n }",
"public void startSession(){\n sessionID = client.startSession();\n \n //Get system temporary files path\n String temporaryPath = System.getProperty(\"java.io.tmpdir\").replaceAll(\"\\\\\\\\\",\"/\");\n \n //If temporary file path does not end with /, add it\n if(!temporaryPath.endsWith(\"/\"))\n temporaryPath = temporaryPath + \"/\";\n \n //Create session directory\n sessionDirectory = new File(temporaryPath+sessionID);\n sessionDirectory.mkdir();\n \n }",
"java.lang.String getSessionId();",
"String getSessionId();",
"String getSessionId();",
"String getSessionId();",
"String getSessionId();",
"UUID getSessionId();",
"private void setUserDataFromJson(JSONObject jsonObject) { \n\t\tlogger.debug(\"creating UserData Object from json file \" + fileName);\n\t\t/* \n\t\t * JSON Structure\n\t\t * {\n\t\t * \t\"objectStatus\":\"fail\",\n\t\t * \t\"domain\":\"null\",\n\t\t * \t\"customer\":\"null\",\n\t\t * \t\"sn_id\":\"CC\",\n\t\t * \t\"user_id\":\"9\",\n\t\t * \t\"userName\":\"Cortal_Consors\",\n\t\t * \t\"nickName\":\"Cortal_Consors\",\n\t\t * \t\"postingsCount\":\"0\",\n\t\t * \t\"favoritesCount\":\"0\",\n\t\t * \t\"friends\":\"0\",\n\t\t * \t\"follower\":\"0\",\n\t\t * \t\"userLang\":null,\n\t\t * \t\"listsAndGroupsCount\":\"0\",\n\t\t * \t\"geoLocation\":\"\"\n\t\t * }\n\t\t */\n\t\tif (jsonObject.get(\"domain\") != null) {\n\t\t\tlogger.trace(\" domain\\t\"+jsonObject.get(\"domain\").toString());\n\t\t\tuData.setDomain((String) jsonObject.get(\"domain\"));\n\t\t}\n\t\tif (jsonObject.get(\"customer\") != null) {\n\t\t\tlogger.trace(\" customer\\t\"+jsonObject.get(\"customer\").toString());\n\t\t\tuData.setCustomer((String) jsonObject.get(\"customer\"));\n\t\t}\n\t\tif (jsonObject.get(\"objectStatus\") != null) {\n\t\t\tlogger.trace(\" objectStatus\\t\"+jsonObject.get(\"objectStatus\").toString());\n\t\t\tuData.setObjectStatus((String) jsonObject.get(\"objectStatus\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"sn_id\") != null) {\n\t\t\tlogger.trace(\" sn_id\\t\"+jsonObject.get(\"sn_id\").toString());\n\t\t\tuData.setSnId((String) jsonObject.get(\"sn_id\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"id\") == null) {\n\t\t\tlogger.trace(\" user_id\\t\"+jsonObject.get(\"user_id\").toString());\n\t\t\tuData.setId((String) jsonObject.get(\"user_id\"));\n\t\t} else {\n\t\t\tlogger.trace(\" id\\t\"+jsonObject.get(\"id\").toString());\n\t\t\tuData.setId((String) jsonObject.get(\"id\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"userName\") != null) {\n\t\t\tlogger.trace(\" userName\\t\"+jsonObject.get(\"userName\").toString());\n\t\t\tuData.setUserName((String) jsonObject.get(\"userName\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"nickName\") != null) {\n\t\t\tlogger.trace(\" nickName\\t\"+jsonObject.get(\"nickName\").toString());\n\t\t\tuData.setScreenName((String) jsonObject.get(\"nickName\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"userLang\") != null) {\n\t\t\tlogger.trace(\" userLang\\t\"+jsonObject.get(\"userLang\").hashCode());\n\t\t\tuData.setLang((String) jsonObject.get(\"userLang\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"follower\") != null) {\n\t\t\tlogger.trace(\" follower\\t\"+Long.parseLong(jsonObject.get(\"follower\").toString()));\n\t\t\tuData.setFollowersCount(Long.parseLong(jsonObject.get(\"follower\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"friends\") != null) {\n\t\t\tlogger.trace(\" friends\\t\"+Long.parseLong(jsonObject.get(\"friends\").toString()));\n\t\t\tuData.setFriendsCount(Long.parseLong(jsonObject.get(\"friends\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"postingsCount\") != null) {\n\t\t\tlogger.trace(\" postingsCount\\t\"+Long.parseLong(jsonObject.get(\"postingsCount\").toString()));\n\t\t\tuData.setPostingsCount(Long.parseLong(jsonObject.get(\"postingsCount\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"favoritesCount\") != null) {\n\t\t\tlogger.trace(\" favoritesCount\\t\"+Long.parseLong(jsonObject.get(\"favoritesCount\").toString()));\n\t\t\tuData.setFavoritesCount(Long.parseLong(jsonObject.get(\"favoritesCount\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"listsAndGroupsCount\") != null) {\n\t\t\tlogger.trace(\" listsAndGroupsCount\\t\"+Long.parseLong(jsonObject.get(\"listsAndGroupsCount\").toString()));\n\t\t\tuData.setListsAndGroupsCount(Long.parseLong(jsonObject.get(\"listsAndGroupsCount\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"geoLocation\") != null) {\n\t\t\tlogger.trace(\" geoLocation\\t\"+jsonObject.get(\"geoLocation\"));\n\t\t\tuData.setGeoLocation((String) jsonObject.get(\"geoLocation\"));\n\t\t}\n\t}",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"static String getSessionId() {\n if (SESSION_ID == null) {\n // If there is no runtime value for SESSION_ID, try to load a\n // value from persistent store.\n SESSION_ID = Prefs.INSTANCE.getEventPlatformSessionId();\n\n if (SESSION_ID == null) {\n // If there is no value in the persistent store, generate a new value for\n // SESSION_ID, and write the update to the persistent store.\n SESSION_ID = generateRandomId();\n Prefs.INSTANCE.setEventPlatformSessionId(SESSION_ID);\n }\n }\n return SESSION_ID;\n }",
"private void initSession(HttpServletRequest request, HttpServletResponse response) throws IOException {\n // create new seassion for user\n HttpSession session = request.getSession();\n if (session != null) {\n _sessionId = session.getId();\n }\n\n response.getWriter().write(_sessionId);\n }",
"public void createSession(int uid);",
"public String getUserID(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_ID, null);\n }",
"public String getSessionID ()\n\t{\n\t\treturn sessionID;\n\t}",
"private void loginUser() throws JSONException, UnsupportedEncodingException {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"username\", editUserName.getText().toString());\n jsonObject.put(\"password\", editPassword.getText().toString());\n jsonObject.put(\"DeviceID\", diviceToken);\n jsonObject.put(\"DevicePlatform\", devicePlatform);\n invokeLogin(jsonObject);\n\n\n }",
"private String refreshJsessionId(String username, String password) {\n\t\ttry {\n\t\t\tUnirest.setHttpClient(HttpClientBuilder.create().build());\n\t\t\tGetRequest request;\n\t\t\tHttpResponse<String> response;\n\t\t\t\n\t\t\t//request = Unirest.get(\"https://unimol.esse3.cineca.it/\");\n\t\t\t//this.myUnimolDefaults(request);\n\t\t\t//response = request.asString();\n\t\t\t\n\t\t\trequest = Unirest.get(config.getHomeUrl());\n\t\t\tthis.myUnimolDefaults(request);\n\t\t\tresponse = request.asString();\n\t\t\t\n\t\t\tHeaders headers = response.getHeaders();\n\t\t\tList<String> cookies = headers.get(\"set-cookie\");\n\t\t\tif (cookies == null) {\n\t\t\t\tSystem.out.println(\"No JSESSIONID!\");\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tString cookie = cookies.get(0);\n\t\t\tcookie = cookie.replaceFirst(\"; Path=/; Secure\", \"\");\n\t\t\treturn cookie.replaceFirst(\"JSESSIONID\", \"jsessionid\");\n\t\t} catch (UnirestException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn \"\";\n\t\t}\n\t}",
"String getLoginId();",
"java.lang.String getLoginId();",
"synchronized public String getSessionId()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getSessionID();\n\t\t\t\n\t\treturn null;\n\t}",
"public String getAuthUserId() {\n return (String) session.getAttribute(\"userId\");\n }",
"private String getAgentIDFromFile() throws CatascopiaException {\n \tProperties prop = new Properties();\n \tString id;\n \ttry {\n\t\t\tString agentfile = JCATASCOPIA_AGENT_HOME + File.separator + AGENT_PRIVATE_FILE;\n\t\t\tif((new File(agentfile).isFile())) {\n\t\t\t\t//load agent_private properties file\n\t\t\t\tFileInputStream fis = new FileInputStream(agentfile);\n\t\t\t\tprop.load(fis);\n\t\t\t\tif (fis != null)\n\t\t \t\tfis.close();\n\t\t\t\tid = prop.getProperty(\"agentID\",UUID.randomUUID().toString().replace(\"-\", \"\"));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//first time agent started. Store assigned id to file\n\t\t\t\tid = UUID.randomUUID().toString().replace(\"-\", \"\");\n\t\t\t\tprop.setProperty(\"agentID\", id);\n\t\t\t\tprop.store(new FileOutputStream(agentfile), null);\n\t\t\t}\n \t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\tthrow new CatascopiaException(\"agent_private file not found\", CatascopiaException.ExceptionType.FILE_ERROR);\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\tthrow new CatascopiaException(\"agent_file parsing error\", CatascopiaException.ExceptionType.FILE_ERROR);\n\t\t}\t\n \treturn id;\n\t}",
"int getSessionId();",
"String getUserID();",
"public void createSigninSession(OtpResult data, boolean rememberme) {\n\n\n editor.putString(KEY_ID,data.details.aUId);\n editor.putString(KEY_NUMBER,data.details.mobile);\n editor.putString(KEY_EMAIL,data.details.email);\n editor.putString(KEY_NAME,data.details.name);\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN,true);\n editor.putBoolean(KEY_REMEMBER_ME,rememberme);\n editor.putString(PROFILE_IMG_PATH,data.picPath);\n editor.putString(PROFILE_IMG_URL,data.details.profilePic);\n editor.commit();\n }",
"public String getSessionId() {\n// synchronized (mSessionObj) {\n// return mSessionId;\n// }\n return \"\";\n }",
"public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void fillUser(String jsonString){\n try{\n JSONObject json = new JSONObject(jsonString);\n this.id = json.getInt(\"id\");\n this.username = json.getString(\"username\");\n this.password = json.getString(\"password\");\n }catch(JSONException e){\n e.printStackTrace();\n }\n }",
"public static void startSession (HttpServletRequest request, HttpServletResponse response) throws IOException {\n DBAccess dbAccess = DBAccess.getInstance();\n PreparedStatement pstm;\n PrintWriter out = response.getWriter();\n HttpSession session = request.getSession();\n ObjectMapper objM = new ObjectMapper();\n PropertiesReader props = PropertiesReader.getInstance();\n UserLogin userL = objM.readValue(request.getReader().lines().collect(Collectors.joining(System.lineSeparator())), UserLogin.class);\n String encryptedPass = NitroEncrypted.getNitroPassword(userL.getPassword());\n Response<LoginData> res = new Response<>();\n LoginData loginData = new LoginData();\n String r;\n\n\n try {\n Connection con = dbAccess.createConnection();\n pstm = con.prepareStatement(props.getValue(\"queryLogin\"), ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n pstm.setString(1, userL.getUser());\n pstm.setString(2, encryptedPass);\n ResultSet rs = pstm.executeQuery();\n if (rs.next()){\n\n if (rs.getInt(\"type_id\") == 1){\n System.out.println(props.getValue(\"isAdmin\") + \": \" + userL.getUser());\n res.setMessage(\"Correct Username and Password!\");\n res.setStatus(200);\n loginData.setAdmin(true);\n loginData.setName(rs.getString(props.getValue(\"retName\")));\n loginData.setId(rs.getInt(props.getValue(\"retID\")));\n res.setData(loginData);\n AttrSession.setAttribute(session, \"name\", rs.getString(props.getValue(\"retName\")));\n AttrSession.setAttribute(session, \"id\", rs.getInt(props.getValue(\"retID\")));\n AttrSession.setAttribute(session, \"admin\", true);\n session.setMaxInactiveInterval((3600 * 24));\n }else{\n System.out.println(props.getValue(\"isnotAdmin\") + \": \" + userL.getUser());\n res.setMessage(\"Correct Username and Password!\");\n res.setStatus(200);\n loginData.setAdmin(false);\n loginData.setName(rs.getString(props.getValue(\"retName\")));\n loginData.setId(rs.getInt(props.getValue(\"retID\")));\n res.setData(loginData);\n AttrSession.setAttribute(session, \"name\", rs.getString(props.getValue(\"retName\")));\n AttrSession.setAttribute(session, \"id\", rs.getInt(props.getValue(\"retID\")));\n AttrSession.setAttribute(session, \"admin\", false);\n session.setMaxInactiveInterval((3600 * 24));\n }\n } else{\n System.out.println(\"This username or password entered isn't correct\");\n res.setMessage(\"This username or password entered isn't correct\");\n res.setStatus(404);\n loginData.setAdmin(false);\n loginData.setName(\"\");\n res.setData(loginData);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }finally {\n r = objM.writeValueAsString(res);\n System.out.println(r);\n out.print(r);\n }\n\n }",
"public String getUserID();",
"public String getID()\n\t{\n\t return this.sessionID;\n\t}",
"public String getUserid() {\n return userid;\n }",
"public String getUserid() {\n return userid;\n }",
"public String getSessionID() {\n Object ref = sessionID_;\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 sessionID_ = s;\n return s;\n }\n }",
"public String getSessionID() {\n Object ref = sessionID_;\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 sessionID_ = s;\n return s;\n }\n }",
"long getLoginId();",
"long getLoginId();",
"long getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"public String getUserId() {\n if (this.isTokenValide()) {\n JWT jwt = new JWT(getToken());\n Claim claim = jwt.getClaim(\"user_id\");\n return claim.asString();\n } else {\n return \"\";\n }\n }",
"@Override\n public String getUserID() {\n return user_id;\n }",
"public String getSessionID() {\n\t\treturn sessionId;\n\t}",
"@Override\n\tpublic java.lang.String getSessionId() {\n\t\treturn _userTracker.getSessionId();\n\t}",
"public void generateInstallSessionID() {\n// generateSessionID();\n// hasInstallSession = true;\n }",
"private static UserInfo getUserInfoStandardSession(int idUser)\n {\n User user = null;\n Squad squad = null;\n int countPost = 0;\n int invitationsAvailable = 0;\n try\n {\n user = DAOFactory.getInstance().getUserDAO().getFetched(idUser);\n if (user == null)\n {\n return new UserInfo();\n }\n //squad = DAOFactory.getInstance().getSquadDAO().getFirstByIdUser(idUser);\n squad = user.getFirstSquad();\n countPost = DAOFactory.getInstance().getMatchCommentDAO().countByIdUser(idUser);\n invitationsAvailable = user.getMaxInvitations() - DAOFactory.getInstance().getUserInvitationDAO().getCountUsed(idUser);\n if (invitationsAvailable < 0)\n {\n invitationsAvailable = 0;\n }\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving user info: \" + ex.getMessage());\n }\n boolean squadMarketEnabled = false;\n if (squad != null)\n {\n squadMarketEnabled = squad.getMarketEnabled() && !squad.getHiddenEnabled();\n }\n else\n {\n logger.error(String.format(\"Error on data about iduser %s: User must have almost one squad!!\", idUser));\n }\n // Set values\n Language language = ActionContext.getContext() != null ? UserContext.getInstance().getLanguage() : LanguageManager.chooseUserLanguage(user);\n Cobrand currentCobrand = ActionContext.getContext() != null ? UserContext.getInstance().getCurrentCobrand() : getCobrandByCode(user.getCobrandCode());\n UserInfo userInfo = new UserInfo();\n userInfo.setId(user.getId());\n userInfo.setName(user.getFirstName());\n userInfo.setAnonymousEnabled(user.getAnonymousEnabled());\n\n if (userInfo.isAnonymousEnabled())\n {\n userInfo.setSurname(StringUtils.left(user.getLastName(), 1) + '.');\n }\n else\n {\n userInfo.setSurname(user.getLastName());\n }\n\n userInfo.setCompleteSurname(user.getLastName());\n\n userInfo.setEmail(user.getEmail());\n userInfo.setRecordedMatches(user.getRecordedMatches());\n userInfo.setRecordedChallenges(user.getRecordedChallenges());\n userInfo.setPlayedMatches(user.getPlayedMatches());\n userInfo.setPlayedChallenges(user.getPlayedChallenges());\n userInfo.setCity(user.getCity().getName());\n userInfo.setProvince(user.getProvince().getName());\n userInfo.setCountry(user.getCountry().getName());\n userInfo.setIdCountry(user.getCountry().getId());\n userInfo.setIdProvince(user.getProvince() != null ? user.getProvince().getId() : 0);\n userInfo.setIdCity(user.getCity() != null ? user.getCity().getId() : 0);\n if (user.getNationalityCountry() != null)\n {\n userInfo.setIdNatCountry(user.getNationalityCountry().getId());\n userInfo.setNatCountry(user.getNationalityCountry().getName());\n }\n userInfo.setCreated(user.getCreated());\n userInfo.setBirthdayCity((user.getBirthdayCity() != null) ? user.getBirthdayCity().getName() : EMPTY_FIELD);\n userInfo.setBirthdayProvince((user.getBirthdayProvince() != null) ? user.getBirthdayProvince().getName() : EMPTY_FIELD);\n userInfo.setBirthdayCountry((user.getBirthdayCountry() != null) ? user.getBirthdayCountry().getName() : EMPTY_FIELD);\n userInfo.setPlayerFoot((user.getPlayerFoot() == null) ? EMPTY_FIELD : TranslationProvider.getTranslation(user.getPlayerFoot().getKeyName(), language, currentCobrand).getKeyValue());\n userInfo.setPlayerFootKeyName((user.getPlayerFoot() == null) ? EMPTY_FIELD : user.getPlayerFoot().getKeyName());\n userInfo.setPlayerShirtNumber((user.getPlayerShirtNumber() != null) ? (String.valueOf(user.getPlayerShirtNumber())) : EMPTY_FIELD);\n userInfo.setPlayerRole(user.getPlayerRole() == null ? EMPTY_FIELD : TranslationProvider.getTranslation(user.getPlayerRole().getKeyName(), language, currentCobrand).getKeyValue());\n userInfo.setIdPlayerRole(user.getPlayerRole().getId());\n userInfo.setPlayerRoleKey(user.getPlayerRole().getKeyName());\n userInfo.setPlayerMainFeature(user.getPlayerMainFeature() == null ? EMPTY_FIELD : user.getPlayerMainFeature());\n userInfo.setPlayerShirtNumber((user.getPlayerShirtNumber() != null) ? (String.valueOf(user.getPlayerShirtNumber())) : EMPTY_FIELD);\n userInfo.setAge((user.getBirthDay() != null) ? Utils.getAgefromDate(user.getBirthDay()) : EMPTY_FIELD);\n userInfo.setPlayerHeight((user.getPlayerHeight() != null) ? String.valueOf(user.getPlayerHeight()) : EMPTY_FIELD);\n userInfo.setPlayerWeight((user.getPlayerWeight() != null) ? String.valueOf(user.getPlayerWeight()) : EMPTY_FIELD);\n userInfo.setFootballTeam((user.getFootballTeam() != null) ? user.getFootballTeam().getName() : EMPTY_FIELD);\n userInfo.setPhysicalConditionKey((user.getPhysicalCondition() != null) ? user.getPhysicalCondition().getKeyName() : \"label.condizioneFisica.nonPervenuta\");\n userInfo.setIdPhysicalCondition((user.getPhysicalCondition() != null) ? String.valueOf(user.getPhysicalCondition().getId()) : EMPTY_FIELD);\n userInfo.setInfoFavouritePlayer((user.getInfoFavouritePlayer() != null) ? user.getInfoFavouritePlayer() : EMPTY_FIELD);\n userInfo.setInfoDream((user.getInfoDream() != null) ? user.getInfoDream() : EMPTY_FIELD);\n userInfo.setInfoHobby((user.getInfoHobby() != null) ? user.getInfoHobby() : EMPTY_FIELD);\n userInfo.setInfoAnnounce((user.getInfoAnnounce() != null) ? user.getInfoAnnounce() : EMPTY_FIELD);\n userInfo.setInfoDream((user.getInfoDream() != null) ? user.getInfoDream() : EMPTY_FIELD);\n userInfo.setPlayerTitle((user.getPlayerTitle() != null) ? user.getPlayerTitle() : EMPTY_FIELD);\n //userInfo.setPlayedMatches(user.getRecordedMatches() + user.getRecordedChallenges());//SBAGLIATO TODO,sono le organizzate\n userInfo.setCountryFlagName(String.format(\"%1$s%2$s\", Constants.COUNTRY_FLAG_IMAGE_PREFIX, user.getCountry().getId()));\n userInfo.setBirthday(user.getBirthDay());\n userInfo.setMarketEnabled(user.getMarketEnabled());\n userInfo.setSquadMarketEnabled(squadMarketEnabled);\n userInfo.setStatus(user.getEnumUserStatus());\n userInfo.setAlertOnMatchRegistrationOpen(user.getAlertOnRegistrationStart());\n //userInfo.setPlayedMatches(StatisticManager.getPlayed(userInfo.getId()));//Att è una query in piu'\n\n userInfo.setPostCount(countPost);\n userInfo.setInvitationsAvailable(invitationsAvailable);\n\n //Facebook\n userInfo.setFacebookIdUser(user.getFacebookIdUser());\n userInfo.setFacebookAccessToken(user.getFacebookAccessToken());\n userInfo.setFacebookPostOnMatchCreation(user.isFacebookPostOnMatchCreation());\n userInfo.setFacebookPostOnMatchRecorded(user.isFacebookPostOnMatchRecorded());\n userInfo.setFacebookPostOnMatchRegistration(user.isFacebookPostOnMatchRegistration());\n\n try\n {\n PictureCard pictureCard = null;\n if (user.getEnumUserStatus().equals(EnumUserStatus.Pending))\n {\n pictureCard = DAOFactory.getInstance().getPictureCardDAO().getByStatus(idUser, EnumPictureCardStatus.Pending);\n if (pictureCard != null)\n {\n userInfo.loadPictureCard(pictureCard);\n }\n }\n else\n {\n for (PictureCard pic : user.getPictureCards())\n {\n if (pic.getEnumPictureCardStatus().equals(EnumPictureCardStatus.Current))\n {\n userInfo.loadPictureCard(pic);\n break;\n }\n }\n }\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving current picture card in getUserInfo()\", ex);\n }\n return userInfo;\n\n }",
"private void getValues() {\n session = new UserSession(getApplicationContext());\n\n //validating session\n session.isLoggedIn();\n\n //get User details if logged in\n HashMap<String, String> user = session.getUserDetails();\n\n shopname = user.get(UserSession.KEY_NAME);\n shopemail = user.get(UserSession.KEY_EMAIL);\n shopmobile = user.get(UserSession.KEY_MOBiLE);\n System.out.println(\"nameemailmobile \" + shopname + shopemail + shopmobile);\n }",
"public String getSessionID() {\n Object ref = sessionID_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n sessionID_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getSessionID() {\n Object ref = sessionID_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n sessionID_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public int getSessionId() {\n return sessionId;\n }",
"public void makeSessionFile() {\n sessionData = new File(wnwData, \"session.dat\");\n try {\n sessionData.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n sessionData.setWritable(true);\n }",
"public String getIdToken() throws IOException {\n return (String)userInfo.get(\"id_token\");\n }",
"public int getSessionId() {\n return sessionId_;\n }",
"public int getClientSessionID() {\n return clientSessionID_;\n }",
"public UserSession login () {\n\t\tRandom r = new Random();\n\t\tthis.session_id = Utility.md5(this.avatar + this.alias + System.currentTimeMillis() + r.nextInt());\n\t\tthis.karmaKubes = KarmaKube.find(\"byRecipient_idAndOpenedAndRejected\", this.id, false, false).fetch(1000);\n\t\tthis.lastLogin = Utility.time();\n\t\tthis.populateSuperPowerDetails();\n\t\tthis.excludedUsers = UserExclusion.excludedList(this.id);\n\t\treturn new UserSession(this, this.session_id);\n\t}",
"DefaultSession createSession(String id);",
"public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static Map<String, Object> initUser() {\n\n Map<String, Object> user = new HashMap<String, Object>();\n Map<String, Object> tone = new HashMap<String, Object>();\n\n Map<String, Object> emotionTone = new HashMap<String, Object>();\n emotionTone.put(\"current\", null);\n\n Map<String, Object> socialTone = new HashMap<String, Object>();\n socialTone.put(\"current\", null);\n\n Map<String, Object> languageTone = new HashMap<String, Object>();\n languageTone.put(\"current\", null);\n\n tone.put(\"emotion\", emotionTone);\n tone.put(\"social\", socialTone);\n tone.put(\"language\", languageTone);\n\n user.put(\"tone\", tone);\n\n return user;\n }",
"public String getSessionId() {\n return this.sessionid;\n }",
"public String getLoginID(){\r\n return loginID;\r\n }",
"public void createUserLoginSession(int id, String pic) {\n editor.putString(TAG_profilepic, pic);\n\n editor.commit();\n }",
"@Override\n public User getLoggedUser() {\n User tmp = null;\n try\n {\n\t\tFileInputStream fin = new FileInputStream(System.getProperty(\"user.home\")+\"\\\\user.ser\");\n\t\tObjectInputStream oos = new ObjectInputStream(fin); \n\t\ttmp = (User) oos.readObject();\n\t\toos.close();\t \n\t}\n catch(Exception ex){ ex.printStackTrace();return null;}\n \n return tmp;\n }",
"public CommonSenseAuthUserData(CommonSenseUserData data, String session_id) {\n super(data.getEmail(), data.getUsername(), data.getName(), data.getSurname(), data.getMobile(), data.getPassword(), data.getId(), data.getUUID(), data.getOpenid());\n this.session_id = session_id;\n }",
"public interface Session {\n\n String API_KEY = \"kooloco\";\n String USER_SESSION = \"szg9wyUj6z0hbVDU6nM2vuEmbyigN3PgC5q8EksKTs25\";\n String USER_ID = \"24\";\n String DEVICE_TYPE = \"A\";\n\n String getApiKey();\n\n String getUserSession();\n\n String getUserId();\n\n void setApiKey(String apiKey);\n\n void setUserSession(String userSession);\n\n void setUserId(String userId);\n\n String getDeviceId();\n\n void setUser(User user);\n\n User getUser();\n\n void clearSession();\n\n String getLanguage();\n\n String getCurrency();\n\n String getAppLanguage();\n\n void setCurrency(String currency, String lCurrency);\n\n}",
"String registerUserWithGetCurrentSession(User user);",
"public void createLoginSession(String name, String email, String phone){\n editor.putBoolean(IS_LOGIN, true);\n\n // Storing data in pref\n editor.putString(KEY_NAME, name);\n editor.putString(KEY_EMAIL, email);\n editor.putString(KEY_PHONE, phone);\n\n // commit changes\n editor.commit();\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 }",
"public JoinableSession(JSONObject data) {\n name = data.getString(\"name\");\n id = data.getInt(\"id\");\n }",
"UUID sessionId();",
"private void GetRequiredProperties() {\r\n\r\n\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\t\r\n try {\r\n \r\n File file = new File(fileToRead);\r\n \r\n if (file.exists()) {\r\n logger.info(\"Config file exists\");\r\n } else {\r\n logger.error(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n }\r\n \r\n prop.load(new FileInputStream(file));\r\n\r\n } catch (Exception e) {\r\n\r\n logger.error(\"Exception :: GetRequiredProperties :: \" + e.getMessage(), e);\r\n\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: \" + e.getMessage());\r\n }\r\n\r\n\t sifUrl = prop.getProperty(\"MDM_SIF_URL\");\r\n\t orsId = prop.getProperty(\"MDM_ORS_ID\");\r\n\t username = prop.getProperty(\"MDM_USER_NAME\");\r\n\t password = prop.getProperty(\"MDM_PASSWORD\");\r\n\t \r\n\t logger.info(\"SIF URL ::\" + sifUrl);\r\n\t logger.info(\"ORS ID ::\" + orsId );\r\n\t logger.info(\"User Id ::\" + username);\r\n\t logger.info(\"Password ::\" + password);\r\n\t \r\n\t\r\n\t}"
] | [
"0.6044122",
"0.5786763",
"0.5733866",
"0.5733866",
"0.56624854",
"0.56540984",
"0.5515395",
"0.55088437",
"0.5444523",
"0.5439006",
"0.541892",
"0.5412304",
"0.5379389",
"0.53742343",
"0.53560704",
"0.53524387",
"0.53524387",
"0.53524387",
"0.53524387",
"0.5330053",
"0.532405",
"0.5301747",
"0.5301747",
"0.5301747",
"0.5299823",
"0.5295004",
"0.52770454",
"0.5248475",
"0.5243333",
"0.5242554",
"0.5241899",
"0.524048",
"0.5217756",
"0.5207865",
"0.5205319",
"0.51939845",
"0.517626",
"0.51650685",
"0.5157882",
"0.51466453",
"0.51460207",
"0.51460207",
"0.51418215",
"0.5140887",
"0.5132267",
"0.51281637",
"0.51200664",
"0.51200664",
"0.5113833",
"0.5113833",
"0.511305",
"0.511305",
"0.511305",
"0.51095444",
"0.51095444",
"0.51095444",
"0.51095444",
"0.51095444",
"0.51021975",
"0.51010674",
"0.5099974",
"0.5093859",
"0.50912404",
"0.5084587",
"0.5081196",
"0.5079443",
"0.5079443",
"0.50756824",
"0.5068652",
"0.50665843",
"0.5064498",
"0.50556654",
"0.5049504",
"0.5047141",
"0.5043566",
"0.5043566",
"0.50345796",
"0.5011813",
"0.5010519",
"0.50076616",
"0.5004104",
"0.50028735",
"0.49974865",
"0.4985882",
"0.49847782",
"0.49847147",
"0.49847147",
"0.49847147",
"0.49847147",
"0.49847147",
"0.49847147",
"0.49847147",
"0.49847147",
"0.49847147",
"0.49847147",
"0.49847147",
"0.49847147",
"0.4984498",
"0.49730116",
"0.4969417"
] | 0.6499441 | 0 |
create new issue using already created session Id Read the properties file and convert to jsonObject | @Test(enabled = true)
public String createIssue() throws Exception {
JSONParser parser = new JSONParser();
Object obj = parser.parse(new FileReader(JSON_FILE_2));
JSONObject jsonObject = (JSONObject) obj;
Response res =
given().
header("Cookie","JSESSIONID="+createSession()).and().
header("Content-Type","application/json").
body(jsonObject.toJSONString()).
when().
post("/rest/api/2/issue").
then().
statusCode(201).log().all().extract().response();
//extracting values from the RestAssured Response
JsonPath jp = res.jsonPath();
String issueID = jp.get("id");
System.out.println("New Issue ID:" +issueID);//10005
return issueID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(enabled = true)\n public String createSession() throws Exception {\n JSONParser parser = new JSONParser();\n Object obj = parser.parse(new FileReader(JSON_FILE_1));\n JSONObject jsonObject = (JSONObject) obj;\n\n Response res =\n given().\n header(\"Content-Type\",\"application/json\").and().\n body(jsonObject.toJSONString()).\n when().\n post(\"/rest/auth/1/session\").\n then().\n statusCode(200).log().all().extract().response();\n\n //extracting values from the RestAssured Response\n JsonPath jp = res.jsonPath();\n String sessionName = jp.get(\"session.name\"); //session Name\n String sessionID = jp.get(\"session.value\"); //session Value\n System.out.println(sessionName);\n System.out.println(sessionID);\n return sessionID;\n }",
"@Test(enabled = true)\n public String createComment() throws Exception{\n JSONParser parser = new JSONParser();\n Object obj = parser.parse(new FileReader(JSON_FILE_3));\n JSONObject jsonObject = (JSONObject) obj;\n\n Response res =\n given().\n header(\"cookie\",\"JSESSIONID=\"+createSession()).and().\n header(\"Content-Type\",\"application/json\").\n body(jsonObject.toJSONString()).\n when().\n post(\"/rest/api/2/issue/10008/comment\").\n then().\n statusCode(201).log().all().extract().response();\n //extracting values from the RestAssured Response\n JsonPath jp = res.jsonPath();\n String commentID = jp.get(\"id\");\n System.out.println(\"New Comment ID:\" +commentID);//10002\n return commentID;\n }",
"@Test\n public void createSessionTest() throws Exception {\n deleteUsers();\n try {\n //create user & project first\n String userId = createTestUser();\n //created user\n CloseableHttpResponse response = createProject(\"projectname\", userId);\n String projectid = getIdFromResponse(response);//getIdFromResponse hasn't been implimented in this part\n response.close();\n //created project\n response = createSession(userId, projectid, \"2019-02-18T20:00Z\", \"2019-02-18T20:00Z\", \"0\");\n\n int status = response.getStatusLine().getStatusCode();\n HttpEntity entity;\n if (status == 201) {// Covered user cases 7\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n String strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n String id = getIdFromStringResponse(strResponse);\n\n String expectedJson = \"{\\\"id\\\":\" + id + \",\\\"startTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"counter\\\":0}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //test status 400\n response = createSession(userId, projectid, \"invalid\", \"invalid\", \"0\");\n status = response.getStatusLine().getStatusCode();\n if(status != 400){\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n EntityUtils.consume(response.getEntity());\n response.close();\n //test status 404\n response = createSession(userId + \"100\", projectid, \"2019-02-18T21:00Z\", \"2019-02-18T21:00Z\", \"0\");\n status = response.getStatusLine().getStatusCode();\n if(status != 404){\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n EntityUtils.consume(response.getEntity());\n response.close();\n\n response = createSession(userId, projectid + \"100\", \"2019-02-18T21:00Z\", \"2019-02-18T21:00Z\", \"0\");\n status = response.getStatusLine().getStatusCode();\n if(status != 404){\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n EntityUtils.consume(response.getEntity());\n response.close();\n\n } finally {\n httpclient.close();\n }\n }",
"@POST\n\t@Consumes({ MediaType.APPLICATION_JSON })\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic Response createSession(@Context HttpServletRequest req,\n\t\t\tJSONObject inputJsonObj, @Context UriInfo ui,\n\t\t\t@Context HttpHeaders hh) {\n\t\tString userName = null; // user inserted fields\n\t\tString attemptedPassword = null; // user inserted fields\n\t\tResponse response = null;\n\t\ttry {\n\t\t\tuserName = (String) inputJsonObj.get(\"userName\");\n\t\t\tattemptedPassword = (String) inputJsonObj.get(\"password\");\n\t\t} catch (JSONException e) {\n\t\t\tSystem.out.println(\"Error Reading the jsonFile\");\n\t\t\treturn Response.status(Status.BAD_REQUEST)\n\t\t\t\t\t.entity(\"Error reading JSON\").build();\n\t\t}\n\t\t// String email = appsMid.getEmailUsingUserName(appId, userName);\n\t\tif(userName == null && attemptedPassword == null)\n\t\t\treturn Response.status(Status.BAD_REQUEST)\n\t\t\t\t\t.entity(\"Error reading JSON\").build();\n\t\tString userId = appsMid.getUserIdUsingUserName(appId, userName);\n\t\tif (userId != null) {\n\t\t\tboolean usersConfirmedOption = appsMid\n\t\t\t\t\t.confirmUsersEmailOption(appId);\n\t\t\t// Remember the order of evaluation in java\n\t\t\tif (usersConfirmedOption) {\n\t\t\t\tif (appsMid.userEmailIsConfirmed(appId, userId)) {\n\t\t\t\t\tSystem.out.println(\"userId of \" + userName + \"is: \"\n\t\t\t\t\t\t\t+ userId);\n\t\t\t\t\tString sessionToken = getRandomString(IDGENERATOR);\n\t\t\t\t\tboolean validation = appsMid.createSession(sessionToken,\n\t\t\t\t\t\t\tappId, userId, attemptedPassword);\n\t\t\t\t\tif (validation) {\n\t\t\t\t\t\tNewCookie identifier = new NewCookie(\"sessionToken\",\n\t\t\t\t\t\t\t\tsessionToken);\n\n\t\t\t\t\t\tresponse = Response.status(Status.OK)\n\t\t\t\t\t\t\t\t.entity(identifier).build();\n\t\t\t\t\t}\n\t\t\t\t\tresponse = Response.status(Status.OK).entity(sessionToken)\n\t\t\t\t\t\t\t.build();\n\t\t\t\t} else {\n\t\t\t\t\tresponse = Response.status(Status.FORBIDDEN)\n\t\t\t\t\t\t\t.entity(EMAILCONFIRMATIONERROR).build();\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tresponse = Response.status(Status.UNAUTHORIZED).entity(\"\")\n\t\t\t\t\t\t.build();\n\t\t} else\n\t\t\tresponse = Response.status(Status.NOT_FOUND).entity(\"\").build();\n\t\treturn response;\n\n\t}",
"public void saveDBErrorDetails( String lpgErrorCode,String lpgErrorDesc,String expMessage,String headerattr,ioclcommonproj.com.iocl.beans.UserProfileBean userprofileBn,StringEntity input,String url) throws IOException {\n log.info(\"under Customer saveDBErrorDetails to save in case of error\");\n BufferedReader brInput=null;\n JSONObject jsonObj =null;\n String outputForTrackingId=null;\n StringBuffer strForTrackingId=new StringBuffer();\n Map<String, Object> mapSession = FacesContext.getCurrentInstance()\n .getExternalContext()\n .getSessionMap();\n \n \n String isAuditErrorFlag=\"N\";\n log.info(\"cust:=mapSession.get(SESSION_PORTAP_IOCL_CONFIG)\"+mapSession.get(\"SESSION_PORTAP_IOCL_CONFIG\"));\n if(mapSession.get(\"SESSION_PORTAP_IOCL_CONFIG\")!=null)\n {\n Map<String,String> mapProp=(Map<String,String>)mapSession.get(\"SESSION_PORTAP_IOCL_CONFIG\");\n isAuditErrorFlag=mapProp.get(\"IS_ERROR_TRAIL_ENABLED\")==null?\"N\":mapProp.get(\"IS_ERROR_TRAIL_ENABLED\");\n log.info(\"cust:=mapSession.get(SESSION_PORTAP_IOCL_CONFIG)\"+mapSession.get(\"SESSION_PORTAP_IOCL_CONFIG\")); \n log.info(\"isAuditErrorFlag=\"+isAuditErrorFlag); \n }\n if(isAuditErrorFlag!=null && isAuditErrorFlag.equalsIgnoreCase(\"Y\"))\n {\n Map<String, String> map = FacesContext.getCurrentInstance()\n .getExternalContext()\n .getRequestHeaderMap();\n brInput = new BufferedReader(new InputStreamReader((input.getContent())));\n log.info(\"Output from Server .... \\n\");\n log.info(\"ServiceURl: \"+url);\n try{\n while ((outputForTrackingId = brInput.readLine()) != null) {\n log.info(outputForTrackingId);\n strForTrackingId.append(outputForTrackingId);\n }\n }\n finally{\n if(brInput != null) brInput.close();\n }\n jsonObj = new ioclcommonproj.com.iocl.utils.JSONObject(strForTrackingId.toString());\n String trackId = (String) jsonObj.get(\"TrackingId\");\n ViewObject vo = this.getLpgErrorsTrailEOView1();\n Row newRow = vo.createRow();\n newRow.setAttribute(\"TrackingId\", trackId);\n newRow.setAttribute(\"ServiceInput\", new BlobDomain((String.valueOf(jsonObj)).getBytes()));\n newRow.setAttribute(\"ServiceUrl\", url);\n /**-----------saveDBErrorDetails Setting IdamMobileNo to UserId Field--------------**/\n newRow.setAttribute(\"UserId\", String.valueOf(userprofileBn != null ? userprofileBn.getIdamUserMobileNo() : map.get(\"Mobile\")));\n newRow.setAttribute(\"UserSessionTrackingId\", String.valueOf(mapSession.get(\"UserTrackingId\")));\n log.info(\" saveDBErrorDetails Setting HeaderAttribute\");\n newRow.setAttribute(\"HeaderAttribute\",headerattr);\n newRow.setAttribute(\"ServiceOutput\", new BlobDomain(expMessage.getBytes()));\n \n newRow.setAttribute(\"LpgErrorCode\", lpgErrorCode);\n newRow.setAttribute(\"LpgErrorDesc\", lpgErrorDesc);\n \n vo.insertRow(newRow);\n this.getDBTransaction().commit();\n /*\n * This tracking number will be sent to Admin via mail in case user lands on error page\n */\n mapSession.put(\"TRACKING_NUMBER_MAIL_PORTAL\", String.valueOf(mapSession.get(\"UserTrackingId\")));\n log.info(\"doen Customer saveDBErrorDetails to save in case of error\");\n }\n \n }",
"@Test\n public void updateComment() throws Exception{\n JSONParser parser = new JSONParser();\n Object obj = parser.parse(new FileReader(JSON_FILE_4));\n JSONObject jsonObject = (JSONObject) obj;\n\n Response res =\n given().\n header(\"cookie\",\"JSESSIONID=\"+createSession()).and().\n header(\"Content-Type\",\"application/json\").\n body(jsonObject.toJSONString()).\n when().\n put(\"/rest/api/2/issue/10008/comment/10004\").\n then().\n statusCode(200).log().all().extract().response();\n }",
"@Test(dataProvider=\"getloginData\")\n\tpublic void createBugTests(String username,String password,String name,String errorMessages,String error,String statuscode) throws IOException, ParseException{\n\t\tHashMap<String ,String> m = new HashMap<String ,String>();\n\t\tif(!name.equals(\"null\"))\n\t\t\tm.put(\"session.name\", name);\n\t\tif(!errorMessages.equals(\"null\")){\n\t\t\tm.put(\"errorMessages\", errorMessages);\n\t\t}\n\t\tif(!error.equals(\"null\")){\n\t\t\tm.put(\"errors\", error);\n\t\t}\n\n\t\t// creating defect/issue\n\t\tFileReader f = new FileReader(\"F:\\\\EclipseOxygen\\\\jira-api\\\\src\\\\test\\\\java\\\\files\\\\loginData.json\");\n\t\tJSONObject js = (JSONObject)parser.parse(f);\n\t\tjs.replace(\"username\",username );\n\t\tjs.replace(\"password\",password );\n\t\tSystem.out.println(\"this create issue data : \"+js.toJSONString());\n\n\t\tRestAssured.baseURI = getURLData();\n\t\t//System.out.println(\"resuable methods issue resources : \"+ResuableMethods.getIssueResources());\n\t\t//System.out.println(\"this is session key : \"+ResuableMethods.getSessionKey());\n\t\tSystem.out.println(\"..................................\");\n\t\tResponse res = given().\n\t\t\t\theader(\"Content-Type\",\"application/json\").\n\t\t\t\tbody(js.toJSONString()).\n\t\t\t\twhen().\n\t\t\t\tpost(getResources()).\n\t\t\t\tthen().\n\t\t\t\tstatusCode(Integer.parseInt(statuscode)).and().extract().response();\n\t\tSystem.out.println(\"Response:\"+res.asString());\n\t\tJsonPath jsp = ResuableMethods.rawToJson(res);\n\t\tString issueREs = jsp.prettify();\n\t\tSystem.out.println(\"login response : \"+issueREs);\n\n\t\tSystem.out.println(\"....................................\");\n\t\tResuableMethods.validationFun(res, m);\n\t}",
"public static void main(String[] args) {\n\t\tRestAssured.baseURI=\"http://localhost:8080/\";\n\t\t\n\t\t//Login Scenario\n\t\tSessionFilter session = new SessionFilter();\n\tString response = given()\n\t\t\t.relaxedHTTPSValidation() // method may be needed to be verified through HTTPS protocol (secured protocol)\n\t\t.header(\"Content-Type\", \"application/json\")\n\t\t.body(\"\t{ \\\"username\\\": \\\"usernameforjira\\\", \\\"password\\\": \\\"passwordforjira\\\" }\")\n\t\t.log()\n\t\t.all()\n\t\t.filter(session) // response data will be stored in the session object to be passed in future API requests\n\t\t.when()\n\t\t.post(\"/rest/auth/1/session\")\n\t\t.then()\n\t\t.extract()\n\t\t.response()\n\t\t.asString();\n\tString expectedMessage = \"Hello, how are you?\";\n\t\t\n\t// add comment to issue\n\t\tString addCommentResponse = given()\n\t\t.pathParam(\"key\", \"10100\")\n\t\t.log()\n\t\t.all()\n\t\t.header(\"Content-Type\", \"application/json\")\n\t\t.header(\"JSESSIONID\", \"\")\n\t\t.body(\"{\\r\\n\" + \n\t\t\t\t\" \\\"body\\\": \\\"\" + expectedMessage + \"\\\",\\r\\n\" + \n\t\t\t\t\" \\\"visibility\\\": {\\r\\n\" + \n\t\t\t\t\" \\\"type\\\": \\\"role\\\",\\r\\n\" + \n\t\t\t\t\" \\\"value\\\": \\\"Administrators\\\"\\r\\n\" + \n\t\t\t\t\" }\\r\\n\" + \n\t\t\t\t\"}\")\n\t\t.filter(session)\n\t\t.when()\n\t\t.post(\"/rest/api/2/issue/{key}/comment\")\n\t\t.then()\n\t\t.log()\n\t\t.all()\n\t\t.assertThat()\n\t\t.statusCode(201)\n\t\t.extract()\n\t\t.response()\n\t\t.asString();\n\t\tJsonPath js = new JsonPath(addCommentResponse);\n\t\tString commentId = js.getString(\"id\");\n\t\t\n\t\t// Add attachment to issue\n\t\tgiven()\n\t\t.header(\"X-Atlassian-Token\", \"no-check\")\n\t\t.filter(session)\n\t\t.pathParam(\"key\", \"10100\")\n\t\t.header(\"Content-Type\",\"multipart/form-data\")\n\t\t// Sending files using multiPart() method\n\t\t.multiPart(\"file\", new File(\"C:\\\\Users\\\\SQ363ZW\\\\Desktop\\\\EY Projects\\\\eclipse-workspace\\\\DemoProject\\\\jira.txt\")) // \"file\" is the key, \"file-path\" is the value passed in the new File() Object\n\t\t.when()\n\t\t.post(\"rest/api/2/issue/{key}/attachments\")\n\t\t.then()\n\t\t.log()\n\t\t.all()\n\t\t.assertThat()\n\t\t.statusCode(200);\n\t\t\n\t\t// get issue information\n\t\tString issueDetails =\n\t\tgiven()\n\t\t.filter(session)\n\t\t.pathParam(\"key\", \"10100\")\n\t\t.queryParam(\"fields\", \"comment\") // limit number of fields returned in GET request\n\t\t.when()\n\t\t.get(\"rest/api/2/issue/{key}\")\n\t\t.then()\n\t\t.log()\n\t\t.all()\n\t\t.extract()\n\t\t.response()\n\t\t.asString();\n\t\tSystem.out.println(issueDetails);\n\t\t\n\t\tJsonPath js1 = new JsonPath(issueDetails);\n\t\tint commentsCount = js1.getInt(\"fields.comment.comments.size\");\n\t\tfor (int i=0;i<commentsCount;i++) {\n\t\t\tString commentIdIssue = js1.get(\"fields.comment.comments[\" + i + \"].id\").toString();\n\t\t\tif (commentIdIssue.equalsIgnoreCase(commentId)) {\n\t\t\tString message = js1.get(\"fields.comment.comments[\"+i+\"].body\").toString();\n\t\t\tSystem.out.println(message);\n\t\t\tAssert.assertEquals(message, expectedMessage);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"public void createWorkOrders() {\n Main.orderCount += 1;\n\n WorkOrder newOrder = new WorkOrder();\n\n Scanner scanner = new Scanner(System.in);\n\n System.out.println(\"Create a new Work Order:\");\n\n System.out.println(\"Enter description of work requested:\");\n\n newOrder.setDescription(scanner.nextLine());\n\n System.out.println(\"Enter your full name for our records:\");\n\n newOrder.setSenderName(scanner.nextLine());\n\n newOrder.setStatus(Status.INITIAL);\n\n newOrder.setId(Main.orderCount);\n\n //\n // mapper below\n //\n\n String workOrder = \"\";\n ObjectMapper mapper = new ObjectMapper();\n try {\n workOrder = mapper.writeValueAsString(newOrder);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n String fileTitle = newOrder.getId() + \".json\";\n\n //\n // try catch block below for filewriting\n //\n\n try {\n File file = new File(fileTitle);\n FileWriter fileWriter = new FileWriter(file);\n fileWriter.write(workOrder);\n fileWriter.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n createWorkOrders();\n }",
"@Test(dataProvider = \"Data\")\r\n\tpublic void createNewInc(String filename) {\n\t\tRestAssured.baseURI = \"https://dev78371.service-now.com/api/now/table/incident\";\r\n\t\t\r\n\t\t//Authentication (basic)\r\n\t\tRestAssured.authentication = RestAssured.basic(\"admin\", \"bv0MMhw0tUXC\");\r\n\t\t\r\n\t\t//Create a new File\r\n\t\tFile filesrc = new File(filename);\r\n\t\t\r\n\t\t/*//Create a new File\r\n\t\tFile filesrc = new File(\"./data1.json\");*/\r\n\t\t\r\n\t\t\r\n\t//Request type - post -> Response using file src\r\n\t\tResponse response = RestAssured\r\n\t\t\t\t.given()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t\t.body(filesrc)\r\n\t\t\t\t.post();\r\n\t\t\r\n\t\t\r\n\t\t/*Request type - post -> Response directly\r\n\t\tResponse response = RestAssured\r\n\t\t\t\t.given()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t\t.body(\"{\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"short_description\\\": \\\"Short description created\\\",\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"description\\\": \\\"Description created via postman\\\",\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"category\\\": \\\"Rest API\\\"\\r\\n\" + \r\n\t\t\t\t\t\t\"}\")\r\n\t\t\t\t.post()*/\r\n\t\t\r\n\t\t//Validate Response code\r\n\t\tSystem.out.println(response.getStatusCode());\r\n\t\t\r\n\t\t//Check the response format\r\n\t\tSystem.out.println(response.getContentType());\r\n\t\t\r\n\t\t//print the response from postman console\r\n\t\tresponse.prettyPrint();\r\n\t\t\r\n\t\t//to get the response in json\r\n\t\tJsonPath jsonresponse = response.jsonPath();\r\n\t\t\r\n\t\t//to get a single record\r\n\t\tString sys_id = jsonresponse.get(\"result.sys_id\");\r\n\t\tSystem.out.println(\"The sys_id is: \"+sys_id);\r\n\t\t\r\n\t\t\r\n\r\n\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"private SessionTicket createUniqueSessionTicket() {\n String ticket = UUID.randomUUID().toString();\n SessionTicket sessionTicket = new SessionTicket();\n sessionTicket.setTicket(ticket);\n return sessionTicket;\n }",
"@POST\n public Response createSession(Session session) throws URISyntaxException {\n log.debug(\"REST request to save Session : {}\", session);\n sessionRepository.create(session);\n return HeaderUtil.createEntityCreationAlert(Response.created(new URI(\"/resources/api/session/\" + session.getId())),\n \"session\", session.getId().toString())\n .entity(session).build();\n }",
"private void fingerprintDataConvertedtoJSON() {\n String msgStr = \"\";\n JSONObject jsonObject = new JSONObject();\n\n try {\n /* jsonObject.put(\"errcode\", \"errcode1\");\n jsonObject.put(\"errInfo\", \"errInfo1\");\n jsonObject.put(\"fCount\", \"fCount1\");\n jsonObject.put(\"fType\", \"fType1\");\n jsonObject.put(\"iCount\", \"iCount1\");\n jsonObject.put(\"iType\", \"iType1\");\n jsonObject.put(\"pCount\", \"pCount1\");\n jsonObject.put(\"pType\", \"pType1\");\n jsonObject.put(\"nmPoints\", \"nmPoints1\");\n jsonObject.put(\"qScore\", \"qScor1e\");\n jsonObject.put(\"dpID\", \"dpI1d\");\n jsonObject.put(\"rdsID\", \"rds1ID\");\n jsonObject.put(\"rdsVer\", \"rdsVer\");\n jsonObject.put(\"dc\", \"dc1\");\n jsonObject.put(\"mi\", \"mi1\");\n jsonObject.put(\"mc\", \"mc\");\n jsonObject.put(\"ci\", \"c1i\");\n jsonObject.put(\"sessionKey\", \"SessionK1ey\");\n jsonObject.put(\"hmac\", \"hma1c\");\n jsonObject.put(\"PidDatatype\", \"PidDatat1ype\");\n jsonObject.put(\"Piddata\", \"Pidda1ta\");*/\n jsonObject.put(\"errcode\",errcode);\n jsonObject.put(\"errInfo\",errInfo);\n jsonObject.put(\"fCount\",fCount);\n jsonObject.put(\"fType\",fType);\n jsonObject.put(\"iCount\",iCount);\n jsonObject.put(\"iType\",iType);\n jsonObject.put(\"pCount\",pCount);\n jsonObject.put(\"pType\",pType);\n jsonObject.put(\"nmPoints\",nmPoints);\n jsonObject.put(\"qScore\",qScore);\n jsonObject.put(\"dpID\",dpId);\n jsonObject.put(\"rdsID\",rdsID);\n jsonObject.put(\"rdsVer\",rdsVer);\n jsonObject.put(\"dc\",dc);\n jsonObject.put(\"mi\",mi);\n jsonObject.put(\"mc\",mc);\n jsonObject.put(\"ci\",ci);\n jsonObject.put(\"sessionKey\",SessionKey);\n jsonObject.put(\"hmac\",hmac);\n jsonObject.put(\"PidDatatype\",PidDatatype);\n jsonObject.put(\"Piddata\",Piddata);\n\n pidData_json = jsonObject.toString();\n new apiCall_BalanceEnquiry().execute();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }",
"private String getIssueData(Integer issue) {\r\n String data = \"{}\";\r\n if (issue != null) {\r\n String issuesTable = env.getProperty(\"postgres.local.issuesTable\");\r\n if (issuesTable != null && !issuesTable.isEmpty()) {\r\n /* Other systems will use the issues Postgres table */\r\n Map<String, Object> issueRec = magicDataTpl.queryForMap(\"SELECT * FROM \" + env.getProperty(\"postgres.local.issuesTable\") + \" WHERE id=?\", issue);\r\n data = jsonMapper.toJsonTree(issueRec).toString();\r\n }\r\n if (data == null || data.isEmpty()) {\r\n data = \"{}\";\r\n } \r\n }\r\n System.out.println(\"Issue data \" + data);\r\n return(data);\r\n }",
"@Test\n public void getReportTest() throws Exception {\n httpclient = HttpClients.createDefault();\n //set up user\n deleteUsers();\n String userId = createTestUser();\n //created user\n CloseableHttpResponse response = createProject(\"projectname\", userId);\n String projectid = getIdFromResponse(response);//getIdFromResponse hasn't been implimented in this part\n response.close();\n //created project\n response = createSession(userId, projectid, \"2019-02-18T20:00Z\", \"2019-02-18T20:30Z\", \"1\");\n response.close();\n response = createSession(userId, projectid, \"2019-02-18T21:00Z\", \"2019-02-18T21:30Z\", \"1\");\n response.close();\n\n try {\n //case 1\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", false, false);\n \n int status = response.getStatusLine().getStatusCode();\n HttpEntity entity;\n String strResponse;\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n String expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}]}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //case 2\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, false);\n \n status = response.getStatusLine().getStatusCode();\n\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}],\\\"completedPomodoros\\\":2}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //case 3\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", false, true);\n \n status = response.getStatusLine().getStatusCode();\n\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}],\\\"totalHoursWorkedOnProject\\\":1.00}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //case 4\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, true);\n \n status = response.getStatusLine().getStatusCode();\n\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}],\\\"completedPomodoros\\\":2,\\\"totalHoursWorkedOnProject\\\":1.00}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n\n //test status 400\n response = createReport(userId, projectid, \"invalid\", \"invalid\", true, true);\n status = response.getStatusLine().getStatusCode();\n if(status != 400){\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //test status 404\n response = createReport(userId + \"1\", projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, true);\n status = response.getStatusLine().getStatusCode();\n if(status != 404){\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n EntityUtils.consume(response.getEntity());\n response.close();\n\n response = createReport(userId, projectid + \"1\", \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, true);\n status = response.getStatusLine().getStatusCode();\n if(status != 404){\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n EntityUtils.consume(response.getEntity());\n response.close();\n\n } finally {\n httpclient.close();\n }\n }",
"public static String parseJSessionID(String input){\n String jSessionID = \"\";\n try {\n JSONParser parser = new JSONParser();\n Object obj = parser.parse(input);\n JSONObject jsonObject = (JSONObject) obj;\n JSONObject sessionJsonObj = (JSONObject) jsonObject.get(\"session\");\n jSessionID = (String) sessionJsonObj.get(\"value\");\n } catch (Exception ex) {\n System.out.println(\"Error in parseJSessionID: \" + ex.getMessage());\n jSessionID = \"ERROR\";\n }\n System.out.println(\"\\njSessionID:\");\n System.out.println(jSessionID);\n return jSessionID;\n }",
"private JSONObject importFlowJSON (Path pathToFolder) {\n // Create a JSONParser to parse the content of the file\n JSONParser parser = new JSONParser();\n\n // The JSONObject instance that will be returned\n JSONObject flow;\n\n try{\n // Read and parse the json file\n flow = (JSONObject) parser.parse(new FileReader(pathToFolder.toString() + \"/\" + FLOW_FILE_NAME));\n // If the file has been found and parsed we return it as a JSONObject\n return flow;\n } catch (ParseException | IOException e) {\n // If the file hasn't been found we return null\n e.printStackTrace();\n return null;\n }\n }",
"@Test\n\tpublic static void TC1() throws IOException {\n\t\t// TODO Auto-generated method stub\n \n\t\tInteger n = RandomDataGeneration.randomNumber();\n\n\t\tProperties pr = PropertiesFile.readProperties(\"../APIAutomationFW/URI.properties\");\n\t\tString requestpayload = JsonFile.readJson(\"../APIAutomationFW/src/test/java/org/testing/resources/BodyData.json\");\n\t\trequestpayload = JsonVariableReplacement.jsonReplace(requestpayload, \"id\", n.toString());\n\t\tHttpMethods http = new HttpMethods(pr);\nResponse res =\thttp.postRequest(requestpayload, \"QA_URI\");\nresponseIdValue = JsonParsingUsingOrgJson.jsonParse(res.asString(), \"id\"); \t\n\nSystem.out.println(\"Response code is\" + responseIdValue);\n\t\n\t}",
"public String createJsonObject() {\n JSONObject jsonObject = new JSONObject();\n\n try {\n if (!vslaId.equalsIgnoreCase(\"-1\")) {\n // editing existing information\n jsonObject.put(\"VslaId\", vslaId);\n }\n jsonObject.put(\"GroupSupport\", grpSupportType);\n jsonObject.put(\"VslaName\", vslaName);\n jsonObject.put(\"grpPhoneNumber\", grpPhoneNumber);\n jsonObject.put(\"PhysicalAddress\", physAddress);\n jsonObject.put(\"GpsLocation\", locCoordinates);\n jsonObject.put(\"representativeName\", representativeName);\n jsonObject.put(\"representativePosition\", representativePost);\n jsonObject.put(\"GroupAccountNumber\", grpBankAccount);\n jsonObject.put(\"repPhoneNumber\", repPhoneNumber);\n jsonObject.put(\"RegionName\", regionName);\n jsonObject.put(\"tTrainerId\", tTrainerId);\n jsonObject.put(\"Status\", \"2\");\n jsonObject.put(\"numberOfCycles\", numberOfCycles);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return jsonObject.toString();\n }",
"private void GetRequiredProperties() {\r\n\r\n\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\t\r\n try {\r\n \r\n File file = new File(fileToRead);\r\n \r\n if (file.exists()) {\r\n logger.info(\"Config file exists\");\r\n } else {\r\n logger.error(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n }\r\n \r\n prop.load(new FileInputStream(file));\r\n\r\n } catch (Exception e) {\r\n\r\n logger.error(\"Exception :: GetRequiredProperties :: \" + e.getMessage(), e);\r\n\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: \" + e.getMessage());\r\n }\r\n\r\n\t sifUrl = prop.getProperty(\"MDM_SIF_URL\");\r\n\t orsId = prop.getProperty(\"MDM_ORS_ID\");\r\n\t username = prop.getProperty(\"MDM_USER_NAME\");\r\n\t password = prop.getProperty(\"MDM_PASSWORD\");\r\n\t \r\n\t logger.info(\"SIF URL ::\" + sifUrl);\r\n\t logger.info(\"ORS ID ::\" + orsId );\r\n\t logger.info(\"User Id ::\" + username);\r\n\t logger.info(\"Password ::\" + password);\r\n\t \r\n\t\r\n\t}",
"public Session createSession(String sessionId);",
"public void create(RequestInfo requestInfo, String attachmentPath) throws DefectException, IOException{\r\n\t\tlog.info(\"Start - create\");\r\n\t\tcreateInstance();\r\n\t\t\r\n\t\tif(CommonUtil.isNull(requestInfo)){\r\n\t\t\tlog.error(\"Request Info is null - \"+ requestInfo);\t\t\t\r\n\t\t\tthrow new DefectException(\"failed to create, request information is missing\");\r\n\t\t}\r\n try {\r\n \t\r\n \tJsonObject newEntry = convertMapToJson(requestInfo.getEntry().get(RallyConstants.CREATE));\r\n \tCreateRequest createRequest = new CreateRequest(requestInfo.getRequestType(), newEntry);\r\n\t CreateResponse createResponse = null;\t \r\n\t \r\n\t\t\ttry {\r\n\t\t\t\tcreateResponse = restApi.create(createRequest);\t\t\t\t\r\n\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlog.error(\"failed to create new entry, message : \" + e.toString() + \"RallyInfo -\" + rallyInfo);\r\n\t \tthrow new DefectException(\"failed to create new entry, message : \" + e.toString());\r\n\t\t\t}\r\n\t\t\t\r\n if (createResponse.wasSuccessful()) {\r\n //Read defect\r\n String ref = Ref.getRelativeRef(createResponse.getObject().get(\"_ref\").getAsString());\r\n //String imageFilePath = \"/Users/sonamdeo/Desktop/\";\r\n String imageFileName = \"error.png\";\r\n String fullImageFile = attachmentPath + File.separator + imageFileName;\r\n String imageBase64String;\r\n long attachmentSize;\r\n \r\n // Open file\r\n RandomAccessFile myImageFileHandle;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tmyImageFileHandle = new RandomAccessFile(fullImageFile, \"r\");\r\n long longLength = myImageFileHandle.length();\r\n long maxLength = 5000000;\r\n if (longLength >= maxLength) throw new IOException(\"File size >= 5 MB Upper limit for Rally.\");\r\n int fileLength = (int) longLength; \r\n\r\n // Read file and return data\r\n byte[] fileBytes = new byte[fileLength];\r\n myImageFileHandle.readFully(fileBytes);\r\n imageBase64String = Base64.encodeBase64String(fileBytes);\r\n attachmentSize = fileLength;\r\n \r\n String workspaceRef = \"/\" + RallyConstants.WORKSPACE + \"/\" + TestBedManager.INSTANCE.getDefectConfig().getWorkspaceId();\r\n \r\n // First create AttachmentContent from image string\r\n JsonObject myAttachmentContent = new JsonObject();\r\n \r\n myAttachmentContent.addProperty(\"Workspace\", workspaceRef);\r\n \r\n myAttachmentContent.addProperty(\"Content\", imageBase64String);\r\n CreateRequest attachmentContentCreateRequest = new CreateRequest(\"AttachmentContent\", myAttachmentContent);\r\n CreateResponse attachmentContentResponse = restApi.create(attachmentContentCreateRequest);\r\n String myAttachmentContentRef = attachmentContentResponse.getObject().get(\"_ref\").getAsString();\r\n \r\n //Create the Attachment\r\n JsonObject myAttachment = new JsonObject();\r\n myAttachment.addProperty(\"Artifact\", ref);\r\n myAttachment.addProperty(\"Content\", myAttachmentContentRef);\r\n myAttachment.addProperty(\"Workspace\", workspaceRef);\r\n myAttachment.addProperty(\"Name\", RallyConstants.NAME);\r\n myAttachment.addProperty(\"Description\", RallyConstants.DESCRIPTION);\r\n myAttachment.addProperty(\"ContentType\",RallyConstants.CONTENTTYPE);\r\n myAttachment.addProperty(\"Size\", attachmentSize);\r\n // myAttachment.addProperty(\"User\", userRef); \r\n\r\n CreateRequest attachmentCreateRequest = new CreateRequest(\"Attachment\", myAttachment);\r\n CreateResponse attachmentResponse = restApi.create(attachmentCreateRequest);\r\n \r\n String myAttachmentRef = attachmentResponse.getObject().get(\"_ref\").getAsString();\r\n\r\n if (attachmentResponse.wasSuccessful()) {\r\n \t log.info(\"Successfully created Attachment\");\r\n \r\n } else {\r\n String[] attachmentContentErrors;\r\n attachmentContentErrors = attachmentResponse.getErrors();\r\n System.out.println(\"Error occurred creating Attachment: \");\r\n for (int j=0; j<attachmentContentErrors.length;j++) {\r\n System.out.println(attachmentContentErrors[j]);\r\n }\r\n }\r\n \r\n }catch (FileNotFoundException e1) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception e) {\r\n System.out.println(\"Exception occurred while attempting to create Content and/or Attachment: \");\r\n e.printStackTrace(); \r\n }\r\n\t\t\t\t\t\r\n\r\n } else {\r\n String[] createErrors;\r\n createErrors = createResponse.getErrors();\r\n System.out.println(\"Error occurred creating a defect: \");\r\n for (int j=0; j<createErrors.length;j++) {\r\n System.out.println(createErrors[j]);\r\n }\r\n } \r\n \r\n } finally {\r\n \t\r\n \t try {\r\n\t\t\t\t\trestApi.close();\r\n\t\t\t\t} catch (IOException 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 } \r\n}",
"@Test\r\n public void testOpeningTicketPurposeJsonSerialization() {\r\n System.out.println(\"OpeningTicketPurposeJsonSerialization\");\r\n\r\n String filename = \"OpeningTicketPurpose.json\";\r\n String testFilename = \"testOpeningTicketPurpose.json\";\r\n OpeningTicketPurpose openingTicketPurpose = null;\r\n OpeningTicketPurpose expOpeningTicketPurpose = null;\r\n String json;\r\n\r\n try {\r\n openingTicketPurpose = objectMapper.readValue(new File(filename), OpeningTicketPurpose.class);\r\n System.out.println(\"openingTicketPurpose:\" + openingTicketPurpose);\r\n objectMapper.writeValue(new File(testFilename), openingTicketPurpose);\r\n\r\n json = objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(openingTicketPurpose);\r\n System.out.println(\" json(openingTicketPurpose):\" + json);\r\n\r\n expOpeningTicketPurpose = objectMapper.readValue(new File(filename), OpeningTicketPurpose.class);\r\n System.out.println(\"expOpeningTicketPurpose:\" + expOpeningTicketPurpose);\r\n } catch (IOException ex) {\r\n Logger.getLogger(OpeningTicketPurposeTest.class.getName()).log(Level.SEVERE, null, ex);\r\n fail(ex.getMessage());\r\n }\r\n assertNotNull(openingTicketPurpose);\r\n assertNotNull(expOpeningTicketPurpose);\r\n assertEquals(openingTicketPurpose.toString(), expOpeningTicketPurpose.toString());\r\n }",
"public static void processOIDCresp(HttpServletRequest req,HttpServletResponse resp) throws IOException, InterruptedException, NoSuchAlgorithmException, InvalidKeySpecException, ClassNotFoundException, SQLException\n\t{\n\t\tHttpSession session=req.getSession();\n\t\t//check the state parameters from the response with state parameter in the session,saved during authorization request\n\t\tString state=(String)req.getParameter(\"state\");\n\t\t\n\t\tif(state!=null)\n\t\t{\n\t\t //Pick up the response type associated with the state parameters\n\t\t String response_type=(String)session.getAttribute(state);\n\t\t if(response_type!=null)\n\t\t {\n\t\t\t if(response_type.contains(\"id_token\"))\n\t\t\t {\n\t\t\t\t//If the response type contains id_token(validate the ID Token create one cookie for authenticated users and send to user agent(browser)\n\t\t\t\t//If the response type contains id_token token(validate the ID Token create one cookie for authenticated users and send to user agent(browser) \n\t\t\t\t//and when users needs to access more profile info using access token we can get it.\n\t\t\t\t \n\t\t\t\t //Decode the ID Token(headers and payload)\n\t\t\t\tArrayList<String>decodeParams=decodeIDTokeheadPay(req.getParameter(\"id_token\"));\n\t\t\t\t//Convert the JSON into key value pairs\n\t\t\t Map<String,Object> headers=processJSON(decodeParams.get(0));\n\t\t\t\tMap<String,Object> payloads=processJSON(decodeParams.get(1));\n\t\t\t\t\n\t\t\t\t//Validate the public key by sending request to issuer(URL) by passing clientid and kid as header parameters\n\t\t\t\tif(ValidateIDissuerKey((String) payloads.get(\"iss\"),(String) headers.get(\"kid\"),resp))\n\t\t\t\t {\n\t\t\t\t\t //Decoded the public key from the encoded kid for signature verifications \n\t\t\t\t\t PublicKey pubkeys=pubkeyEncoder(Base64.getDecoder().decode((String) headers.get(\"kid\")));\n\t\t\t\t\t if(ValidateTokenSignature(req.getParameter(\"id_token\"),pubkeys))\n\t\t\t\t\t {\n\t\t\t\t\t\t responseFormat(payloads,resp);\n\t\t\t\t\t\t \n\t\t\t\t\t\t //another flow of implicit(id_token token)\n\t\t\t\t\t\t if(response_type.contains(\"token\"))\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t//save the token in cookie\n\t\t\t\t\t\t\t//Create one session for that authenticated users and redirected to Home Page\n\t\t\t\t\t\t\t Cookie auth_uesr = new Cookie(\"access_token\",req.getParameter(\"access_token\"));\n\t\t\t\t\t\t\t resp.addCookie(auth_uesr);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t //Redirected to Home Page\n\t\t\t\t\t\t //if(!response_type.contains(\"code\"))\n\t\t\t\t\t\t\t//resp.sendRedirect(\"http://localhost:8080/OPENID/phoneBookHome.jsp\");\n\t\t\t\t\t }\n\t\t\t\t\t else\n\t\t\t\t\t {\n\t\t\t\t\t\t //Signature Invalid and Token become Invalid and reauthenticate again\n\t\t\t\t\t\t resp.sendRedirect(\"http://localhost:8080/OPENID/PhoneBookLogin.jsp\");\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t\t //issuer invalid\n\t\t\t\t\t resp.sendRedirect(\"http://localhost:8080/OPENID/PhoneBookLogin.jsp\");\n\t\t\t\t }\n\t\t\t }\n\t\t\t //Token Endpoint request for authorization code Flow\n\t\t /* if(response_type.contains(\"code\"))\n\t\t {\n\t\t \t authCodeProcessModel authModel=new authCodeProcessModel();\n\t\t \t authModel.setClientid(\"mano.lmfsktkmyj\");\n\t\t \t authModel.setClientsecret(\"mano.tpeoeothyc\");\n\t\t \t authModel.setCode((String)req.getParameter(\"code\"));\n\t\t \t authModel.setRedirecturi(\"http://localhost:8080/OPENID/msPhoneBook/response1\");\n\t\t \t \n\t\t \t //Get response from the token endpoint\n\t\t \t Map<String,Object> tokenResp=authCodeProcess(authModel,resp);\n\t\t \t //Check if the response returned any error\n\t\t \t if(tokenResp.containsKey(\"error\"))\n\t\t \t {\n\t\t \t //Token response made error redirected to signin with mano page again\n\t\t \t\t resp.sendRedirect(\"http://localhost:8080/OPENID/PhoneBookLogin.jsp\");\n\t\t \t }\n\t\t \t else\n\t\t \t {\n\t\t \t\t responseFormat(tokenResp,resp);\n\t\t \t\t //Validate ID Token\n\t\t \t\t ArrayList<String>decodeParams=decodeIDTokeheadPay((String) tokenResp.get(\"id_token\"));\n\t\t\t\t\t\t//Convert the JSON into key value pairs\n\t\t\t\t\t Map<String,Object> headers=processJSON(decodeParams.get(0));\n\t\t\t\t\t Map<String,Object> payloads=processJSON(decodeParams.get(1));\n\t\t\t\t\t \n\t\t\t\t\t//Validate the public key by sending request to issuer(URL) by passing clientid and kid as header parameters\n\t\t\t\t\t if(ValidateIDissuerKey((String) payloads.get(\"iss\"),(String) headers.get(\"kid\"),resp))\n\t\t\t\t\t {\n\t\t\t\t\t\t //true check signature\n\t\t\t\t\t\t PublicKey pubkeys=pubkeyEncoder(Base64.getDecoder().decode((String) headers.get(\"kid\")));\n\t\t\t\t\t\t //Validate the signature using public key\n\t\t\t\t\t\t if(ValidateTokenSignature((String) tokenResp.get(\"id_token\"),pubkeys))\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t //Valid the access token with the at_hash values in the ID Token\n\t\t\t\t\t\t\t //First hash the access token and compared with at_hash value in the ID Token\n\t\t\t\t\t\t\t if(payloads.get(\"at_hash\").equals(hashPass((String)tokenResp.get(\"access_token\"))))\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t //save access token along with refresh token to client database used when acces token get expired\n\t\t\t\t\t\t\t\t PhoneBookDAO.saveTokens((String)tokenResp.get(\"access_token\"),(String)tokenResp.get(\"refresh_token\"));\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t//Create one cookie for that authenticated users and redirected to Home Page and send cookie to browser\n\t\t\t\t\t\t\t\t session.setAttribute(\"enduser_name\",payloads.get(\"sub\"));\n\t\t\t\t\t\t\t\t Cookie auth_uesr = new Cookie(\"access_token\",(String) tokenResp.get(\"access_token\"));\n\t\t\t\t\t\t\t\t resp.addCookie(auth_uesr);\n\t\t\t\t\t\t\t\t //Redirected to Home Page\n\t\t\t\t\t\t\t resp.sendRedirect(\"http://localhost:8080/OPENID/phoneBookHome.jsp\");\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t else\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t //Invalid Access Token(Reauthenticate again)\n\t\t\t\t\t\t\t\t resp.sendRedirect(\"http://localhost:8080/OPENID/PhoneBookLogin.jsp\");\n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t }\n\t\t\t\t\t\t else\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t //Signature invalid\n\t\t\t\t\t\t\t resp.sendRedirect(\"http://localhost:8080/OPENID/PhoneBookLogin.jsp\");\n\t\t\t\t\t\t }\n\t\t \t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t //Invalid issuers or public key(reauthenticate again)\n\t\t\t\t resp.sendRedirect(\"http://localhost:8080/OPENID/PhoneBookLogin.jsp\");\n\t\t\t }\n\t\t }\n\t\t }*/\n\t\t }\n\t\t else\n\t\t {\n\t\t\t//If the state value is not matched with the state value generated during authorization request CSRF attack\n\t\t\t//sign up again\n\t\t\t resp.sendRedirect(\"http://localhost:8080/OPENID/PhoneBookLogin.jsp\");\n\t\t }\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//state missing from server,response may be from unknown server,so sign up again\n\t\t\tresp.sendRedirect(\"http://localhost:8080/OPENID/PhoneBookLogin.jsp\");\n\t\t}\n\t}",
"private JsonObject getNewRequestBody(String[] arguments, int tickets, String uuid) throws NumberFormatException {\n JsonObject obj = new JsonObject();\n obj.addProperty(\"userid\", Integer.parseInt(arguments[2]));\n obj.addProperty(\"eventid\", Integer.parseInt(arguments[0]));\n obj.addProperty(\"tickets\", tickets);\n obj.addProperty(\"uuid\", uuid);\n\n return obj;\n }",
"@PostMapping\n @ResponseStatus(HttpStatus.CREATED)\n public Session create(@RequestBody final Session session) {\n return sessionRepository.saveAndFlush(session);\n }",
"private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);\n// session = new EvernoteSession(info, result, getTempDir());\n// }\n ConnectionUtils.connectFirstTime();\n updateUiForLoginState();\n }",
"public SessionDetails getSessionDetails(JobStep js, Sessions s);",
"WithCreate withProperties(JobDetails properties);",
"private void createInstance() throws DefectException{\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString username = TestBedManager.INSTANCE.getDefectConfig().getUsername();\r\n\t\t\t\r\n\t\t\tString password = encrypt_decrypt.getDecodedValue(TestBedManager.INSTANCE.getDefectConfig().getPassword());\r\n\t\t\t\r\n\t\t\t//restApi = new RallyRestApi(new URI(rallyInfo.getUrl()), rallyInfo.getUserName(), rallyInfo.getPassword());\r\n\t\t\trestApi = new RallyRestApi(new URI(rallyInfo.getUrl()),username ,password);\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t\tlog.error(\"failed to connect to rally instance, message : \" + e.toString() + \"RallyInfo -\" + rallyInfo);\r\n\t\t\tthrow new DefectException(\"failed to connect to rally instance, message : \" + e.toString()); \t\r\n\t\t}\r\n\t\tif(rallyInfo.getWsapiVersion() != null)\r\n\t\t\trestApi.setWsapiVersion(rallyInfo.getWsapiVersion());\r\n\t\trestApi.setApplicationName(rallyInfo.getAppName());\r\n\t\t\r\n\t}",
"InternalSession createSession(String sessionId);",
"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 }",
"@PostMapping(\"/api/gamesessions/settings\")\n public GameSessionSettings createGameSessionSettings(@RequestBody GameSessionSettings requestData) { \n GameSessionSettings settings = gameSessionSettingsDao.findById(requestData.getId());\n settings.setCategories(requestData.getCategories());\n gameSessionSettingsDao.persist(settings); \n return settings;\n }",
"MedicalRecord createMedicalRecord(HttpSession session, MedicalRecord medicalRecord);",
"public List<SessionDetails> getSessionDetails(JobStep js);",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\t@Override\r\n\tpublic ResponseDto create(String controllerJson) {\n\t\tMap<String, Object> data = new HashMap<>();\r\n\t\t\r\n\t\tResponseDto response = new ResponseDto();\r\n\t\t\r\n\t\tMap<Object, Object> inputDataMap = new LinkedHashMap<>();\r\n\t\tinputDataMap.put(\"inputString\", controllerJson);\r\n\r\n\t\tGson gson = new Gson();\r\n\t\tContainerDTO dto = gson.fromJson(controllerJson.toString(), ContainerDTO.class);\r\n\t\tList<ContainerDetailsDTO> list = new ArrayList<>();\r\n\t\t// System.out.println(dto.getDELIVERY().getITEM());\r\n\t\tif (dto.getDELIVERY().getITEM() instanceof LinkedTreeMap) {\r\n\t\t\tLinkedTreeMap<String, String> item2 = (LinkedTreeMap) dto.getDELIVERY().getITEM();\r\n\t\t\tContainerDetailsDTO d = getLinkedTreeMapToContainerDetailsDto(item2);\r\n\t\t\tlist.add(d);\r\n\t\t\t// System.out.println(d.getAREACODE());\r\n\t\t} else if (dto.getDELIVERY().getITEM() instanceof ArrayList) {\r\n\t\t\tList<LinkedTreeMap> item2 = (List<LinkedTreeMap>) dto.getDELIVERY().getITEM();\r\n\t\t\tfor (LinkedTreeMap i : item2) {\r\n\t\t\t\tContainerDetailsDTO d = getLinkedTreeMapToContainerDetailsDto(i);\r\n\t\t\t\tlist.add(d);\r\n\t\t\t}\r\n\t\t}\r\n\t\tdto.getDELIVERY().setITEM(list);\r\n\t\tinputDataMap.put(\"processObject\", dto);\r\n\t\t// LOGGER.error(\"INSIDE CREATE CONTAINER SERVIE WITH REQUEST PAYLOAD =>\r\n\t\t// \" + dto);\r\n\t\tif (!ServicesUtil.isEmpty(dto) && !ServicesUtil.isEmpty(dto.getDELIVERY())) {\r\n\t\t\tList<ContainerDetailsDTO> containerDetailsDTOs = (List<ContainerDetailsDTO>) dto.getDELIVERY().getITEM();\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tlong timeStamp = System.currentTimeMillis();\r\n\t\t\t\tString jobIdentity = \"DnProcessJob\" + timeStamp;\r\n\t\t\t\tString group = \"group\" + timeStamp;\r\n\t\t\t\tString triggerName = \"DnProcessTrigger\" + timeStamp;\r\n\t\t\t\tString jobName = \"Job\" + timeStamp;\r\n\t\t\t\tDate currdate = new Date();\r\n\r\n\t\t\t\tJobDetail job = JobBuilder.newJob(ContainerToDeliveryNoteProcessingJob.class)\r\n\t\t\t\t\t\t.withIdentity(jobIdentity, group).build();\r\n\r\n\t\t\t\tSimpleTrigger trigger = (SimpleTrigger) TriggerBuilder.newTrigger().withIdentity(triggerName, group)\r\n\t\t\t\t\t\t.startNow().build();\r\n\t\t\t\tScheduler scheduler = new StdSchedulerFactory().getScheduler();\r\n\r\n\t\t\t\tContainerRecordsDo recordsDo = new ContainerRecordsDo();\r\n\t\t\t\trecordsDo.setPayload(controllerJson.trim());\r\n\t\t\t\trecordsDo.setCreatedAt(currdate);\r\n\r\n\t\t\t\t// containerRecordService.create(recordsDo);\r\n\r\n\t\t\t\tcontainerRecordsDAO.getSession().persist(recordsDo);\r\n\r\n\t\t\t\tcontainerRecordsDAO.getSession().flush();\r\n\t\t\t\tcontainerRecordsDAO.getSession().clear();\r\n\t\t\t\tcontainerRecordsDAO.getSession().getTransaction().commit();\r\n\t\t\t\t\r\n\t\t\t\t// adding data to scheduler context\r\n\t\t\t\tdata.put(\"data\", dto);\r\n\t\t\t\tdata.put(\"timeStamp\", currdate);\r\n\t\t\t\tdata.put(\"containerRecordId\", recordsDo.getId());\r\n\t\t\t\tdata.put(\"jobName\", jobName);\r\n\r\n\t\t\t\tcomp.backgroudDnProcessing(data);\r\n\t\t\t\t\r\n\t\t\t\t// adding data to scheduler context\r\n\t\t\t\tscheduler.getContext().put(\"data\", dto);\r\n\t\t\t\tscheduler.getContext().put(\"timeStamp\", currdate);\r\n\t\t\t\tscheduler.getContext().put(\"containerRecordId\", recordsDo.getId());\r\n\t\t\t\tscheduler.getContext().put(\"jobName\", jobName);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\t * int i=1; for (ContainerDetailsDTO d : containerDetailsDTOs) {\r\n\t\t\t\t * containerDao.create(d, new ContainerDetailsDo());\r\n\t\t\t\t * \r\n\t\t\t\t * if(i % BATCH_SIZE ==0) { containerDao.getSession().flush();\r\n\t\t\t\t * containerDao.getSession().clear(); }\r\n\t\t\t\t * \r\n\t\t\t\t * i++;\r\n\t\t\t\t * \r\n\t\t\t\t * }\r\n\t\t\t\t * \r\n\t\t\t\t * // flushing the session data\r\n\t\t\t\t * containerDao.getSession().flush();\r\n\t\t\t\t * containerDao.getSession().clear();\r\n\t\t\t\t */\r\n\r\n\t\t\t\t/*scheduler.start();\r\n\t\t\t\tscheduler.scheduleJob(job, trigger);*/\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(2000);\r\n\t\t\t\t} catch (InterruptedException 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\t\r\n\t\t\t\tLOGGER.error(\"INSIDE CREATE CONTAINER SERVICE : JOB STARTED ID [ \"+jobName+\" ]\");\r\n\t\t\t\t\r\n\t\t\t\t//scheduler.standby();\r\n\t\t\t\t// scheduler.shutdown(true);\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Object data = createEntryInDeliveryHeader(dto); LOGGER.\r\n\t\t\t\t * error(\"INSIDE CREATE CONTAINER SERVIE WITH RESPONSE PAYLOAD <= \"\r\n\t\t\t\t * + data);\r\n\t\t\t\t */\r\n\t\t\t\tresponse.setStatus(true);\r\n\t\t\t\tresponse.setCode(HttpStatus.SC_OK);\r\n\t\t\t\tresponse.setMessage(Message.SUCCESS + \"\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tresponse.setStatus(false);\r\n\t\t\t\tresponse.setCode(HttpStatus.SC_INTERNAL_SERVER_ERROR);\r\n\t\t\t\tresponse.setMessage(Message.FAILED + \" : \" + e.toString());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tresponse.setStatus(true);\r\n\t\t\tresponse.setMessage(Message.SUCCESS.getValue());\r\n\t\t\tresponse.setCode(HttpStatus.SC_OK);\r\n\t\t}\r\n\r\n\t\treturn response;\r\n\t}",
"public void trackNewSession() {\n if(isTelemetryEnabled()){\n new CreateDataTask(CreateDataTask.DataType.NEW_SESSION).execute();\n }\n }",
"@PostMapping(\"/push-notifications\")\n @Timed\n public ResponseEntity<PushNotificationsEntity> createPushNotifications(@RequestBody PushNotificationsEntity pushNotifications) throws URISyntaxException {\n log.debug(\"REST request to save PushNotifications : {}\", pushNotifications);\n if (pushNotifications.getId() != null) {\n throw new BadRequestAlertException(\"A new pushNotifications cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n PushNotificationsEntity result = pushNotificationsRepository.save(pushNotifications);\n return ResponseEntity.created(new URI(\"/api/push-notifications/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId()))\n .body(result);\n }",
"private String getAgentIDFromFile() throws CatascopiaException {\n \tProperties prop = new Properties();\n \tString id;\n \ttry {\n\t\t\tString agentfile = JCATASCOPIA_AGENT_HOME + File.separator + AGENT_PRIVATE_FILE;\n\t\t\tif((new File(agentfile).isFile())) {\n\t\t\t\t//load agent_private properties file\n\t\t\t\tFileInputStream fis = new FileInputStream(agentfile);\n\t\t\t\tprop.load(fis);\n\t\t\t\tif (fis != null)\n\t\t \t\tfis.close();\n\t\t\t\tid = prop.getProperty(\"agentID\",UUID.randomUUID().toString().replace(\"-\", \"\"));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//first time agent started. Store assigned id to file\n\t\t\t\tid = UUID.randomUUID().toString().replace(\"-\", \"\");\n\t\t\t\tprop.setProperty(\"agentID\", id);\n\t\t\t\tprop.store(new FileOutputStream(agentfile), null);\n\t\t\t}\n \t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\tthrow new CatascopiaException(\"agent_private file not found\", CatascopiaException.ExceptionType.FILE_ERROR);\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\tthrow new CatascopiaException(\"agent_file parsing error\", CatascopiaException.ExceptionType.FILE_ERROR);\n\t\t}\t\n \treturn id;\n\t}",
"private LabWork convertJsonObjIntoLabWork(JSONObject jsonObject) throws java.text.ParseException {\n LabWork lw = new LabWork();\n // set ID\n Long newID = Long.parseLong(String.valueOf(jsonObject.get(\"id\")));\n System.out.println(newID);\n if(CollectionManager.IDChecker.contains(newID)){\n System.out.println(\"ID is duplicate, please insert valid input!\");\n }\n else {\n CollectionManager.IDChecker.add(newID);\n lw.setId(newID);\n }\n //set Name\n lw.setName((String)jsonObject.get(\"Name\"));\n System.out.println(lw.getName());\n\n // set Coordinates\n JSONObject coordinatesObj = (JSONObject) jsonObject.get(\"coordinates\");\n lw.setCoordinates(new Coordinates(Math.toIntExact(Long.parseLong(String.valueOf(coordinatesObj.get(\"x\")))), Double.parseDouble(String.valueOf(coordinatesObj.get(\"y\")))));\n\n /*\n parse String to LocalDateTime\n */\n\n// // date in String\n// String dateString = (String)jsonObject.get(\"creationDate\");\n//\n// //build formatter\n// DateTimeFormatter formatter = DateTimeFormatter.ISO_DATE_TIME;\n// //Parse String to LocalDateTime\n// LocalDateTime dateTime = LocalDateTime.parse(dateString,formatter);\n// lw.setCreationDate(dateTime);\n// //System.out.println(p.getCreationDate());\n\n // set minimalPoint\n lw.setMinimalPoint(Long.parseLong(String.valueOf(jsonObject.get(\"minpoint\"))));\n\n // set difficulty\n String difficultyString = (String)jsonObject.get(\"difficulty\");\n Difficulty difficultyEnum = Difficulty.valueOf(difficultyString);\n lw.setDifficulty(difficultyEnum);\n\n\n// set weight\n// lw.setWeight(Math.toIntExact(Long.parseLong(String.valueOf(jsonObject.get(\"weight\")))));\n\n// // set nationality\n// String countryString = (String)jsonObject.get(\"nationality\");\n// Country countryEnum = Country.valueOf(countryString);\n// lw.setNationality(countryEnum);\n //set author\n// set location\n JSONObject authorObj = (JSONObject)jsonObject.get(\"author\");\n JSONObject locationObj = (JSONObject)authorObj.get(\"location\");\n //System.out.println(locationObj);\n// lw.setLocation(new Location(\n// Math.toIntExact(Long.parseLong(String.valueOf(locationObj.get(\"x\")))),\n// Long.parseLong(String.valueOf(locationObj.get(\"y\"))),\n// (String)locationObj.get(\"name\")\n// ));\n\n lw.setAuthor(new Person(\n (String)authorObj.get(\"name\"), Double.parseDouble(String.valueOf(authorObj.get(\"weight\"))),Color.valueOf(String.valueOf(authorObj.get(\"eye color\"))),HairColor.valueOf(String.valueOf(authorObj.get(\"hair color\"))),Country.valueOf(String.valueOf(authorObj.get(\"nationality\"))), new Location(\n Integer.parseInt((String.valueOf(locationObj.get(\"x\")))),\n Long.parseLong(String.valueOf(locationObj.get(\"y\"))),\n (String)locationObj.get(\"name\")\n )\n ));\n\n\n\n return lw;\n }",
"private static String obtainSessionID(ApiContext apiContext) throws Exception {\n GetSessionIDCall apiCall = new GetSessionIDCall(apiContext);\n\n apiCall.setRuName(ruName);\n String sessionID = apiCall.getSessionID();\n //Handle the result returned\n logger.info(\"sessionID : \" + sessionID);\n return sessionID;\n }",
"NoteDTO create(String login, CreateNoteDTO createNoteDTO);",
"protected abstract SESSION newSessionObject() throws EX;",
"@PostMapping(consumes = \"application/json\")\n\tpublic void create (@Valid @RequestBody Bug bug) {\n\t\tbugService.createBug(bug);\n\t}",
"@PostMapping(\"/tickets\")\n @Timed\n public ResponseEntity<Ticket> createTicket(@Valid @RequestBody Ticket ticket) throws URISyntaxException {\n log.debug(\"REST request to save Ticket : {}\", ticket);\n if (ticket.getId() != null) {\n throw new BadRequestAlertException(\"A new ticket cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Ticket result = ticketRepository.save(ticket);\n return ResponseEntity.created(new URI(\"/api/tickets/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"DefaultSession createSession(String id);",
"@Override\n\tpublic GetJiraTicketResponseDTO createJiraTicket(Integer id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic JSONObject insertFuliao(String jsonStr) throws Exception {\n\t\ttry {\n\t\t\t JSONObject allData = JSONObject.fromObject(jsonStr);\n\t\t\t String shop_name = allData.getString(\"shop_name\");\n\t\t\t String accepter = allData.getString(\"person\");\n\t\t\t String date = String.format(\"%tF\",new Date());\n\t\t\t GetSecMaterials getSecMaterials = new GetSecMaterials();\n\t\t\t getSecMaterials.setShop_name(shop_name);\n\t\t\t getSecMaterials.setApply_data(date);\n\t\t\t getSecMaterials.setApplyer(accepter);\n\t\t\t getSecMaterials.setIs_apply(0);\n\t\t\t getSecMaterials.setIs_approve(0);\n\t\t\t getSecMaterials.setIs_pushed(0);\n\t\t\t getSecMaterials.setIs_return(0);\n\t\t\t fuliaoMapper.insertFuliao(getSecMaterials);\n\t\t\t JSONArray jsonArray = allData.getJSONArray(\"detail\");\n\t\t\t List<GetSecDetail> getSecDetails = new ArrayList<>();\n\t\t\t for(int i=0;i<jsonArray.size();i++) {\n\t\t\t\t JSONObject jsonObject = jsonArray.getJSONObject(i);\n\t\t\t\t GetSecDetail getSecDetail = new GetSecDetail();\n\t\t\t\t getSecDetail.setGet_materials_id(getSecMaterials.getGet_materials_id());\n\t\t\t\t getSecDetail.setReshop_name(shop_name);\n\t\t\t\t getSecDetail.setSec_material_no(jsonObject.getString(\"fuliao_no\"));\n\t\t\t\t getSecDetail.setSec_material_name(jsonObject.getString(\"fuliao_name\"));\n\t\t\t\t getSecDetail.setType(jsonObject.getString(\"type\"));\n\t\t\t\t getSecDetail.setUnit(jsonObject.getString(\"unit\"));\n\t\t\t\t getSecDetail.setNum(jsonObject.getString(\"num\"));\n\t\t\t\t getSecDetail.setIs_return(0);\n\t\t\t\t getSecDetails.add(getSecDetail);\n\t\t\t }\n\t\t\t GetSecDetailVo getSecDetailVo = new GetSecDetailVo();\n\t\t\t getSecDetailVo.setGet_sec_details(getSecDetails);\n\t\t\t fuliaoMapper.insertFuliaoDetail(getSecDetails);\n\t\t\t JSONObject is_ok = new JSONObject();\n\t \t\t is_ok.put(\"is_ok\", \"1\");\n\t \t\t return is_ok;\n\t\t }catch(Exception e) {\n\t\t\t e.printStackTrace();\n\t\t\t TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();\n\t\t\t JSONObject is_ok = new JSONObject();\n\t \t\t is_ok.put(\"is_ok\", \"0\");\n\t \t\t return is_ok;\n\t\t }\n\t}",
"public void addNewSession() {\n //Create an explicit intent for RecordingIntentService\n Intent saveSessionIntent = new Intent(this, RecordingIntentService.class);\n //Set the action of the intent to ACTION_SAVE_SESSION\n saveSessionIntent.setAction(RecordLapTasks.ACTION_SAVE_SESSION);\n\n //add the current session object info to the intent so it can be retrieved\n saveSessionIntent.putExtra(\"session_driver\", mySession.getDriver());\n saveSessionIntent.putExtra(\"session_track\", mySession.getTrackName());\n saveSessionIntent.putExtra(\"session_bestLap\", mySession.getBestLapString());\n saveSessionIntent.putExtra(\"session_laptimes\", mySession.getLaptimesAsString());\n saveSessionIntent.putExtra(\"session_numLaps\", mySession.getNumberOfLaps());\n\n //Call startService and pass the explicit intent\n startService(saveSessionIntent);\n }",
"@Override\n\tpublic String createJiraConfig(JiraParametersDTO jiraParametersDTO) {\n\t\treturn null;\n\t}",
"private void updateSessionDetailsInDB(GlusterGeoRepSession session) {\n for (GlusterGeoRepSessionDetails sessDetails : session.getSessionDetails()) {\n sessDetails.setSessionId(session.getId());\n }\n getGeoRepDao().saveOrUpdateDetailsInBatch(session.getSessionDetails());\n }",
"public IssueResponse(Issue issue) {\n\t\tthis.id = issue.getId();\n\t\tthis.name = issue.getName();\n\t\tthis.shortDate = issue.getShortDate();\n\t\tthis.testIssue = issue.getTestIssue();\n\t}",
"public void AddSession(String session, Long id){ validSessions.put(session, id); }",
"private static JsonSession toBasicJson(Session session) {\r\n\t\tJsonSession jsonSession = new JsonSession();\r\n\t\tapplyBasicJsonValues(jsonSession, session);\r\n\t\treturn jsonSession;\r\n\t}",
"public static JSONObject createJSONObject(RequirementForm req)\r\n{\r\n\tString keys[] = {\"id\", \"nameReq\",\"nameGroup\",\"startDate\",\"endDate\",\"process\",\"statusReq\", \"lateDate\", \"stage\" };\r\n \r\n\tJSONObject uc = new JSONObject(keys);\r\n uc.getObject().put(keys[0], String.valueOf(req.getId()));\r\n uc.getObject().put(keys[1], CommonUtil.convertNVLFor(req.getNameReq()));\r\n uc.getObject().put(keys[2], req.getNameGroup());\r\n uc.getObject().put(keys[3], req.getStartDate());\r\n uc.getObject().put(keys[4], req.getEndDate());\r\n uc.getObject().put(keys[5], String.valueOf(req.getProcess()));\r\n uc.getObject().put(keys[6], String.valueOf(req.getStatusReq()));\r\n uc.getObject().put(keys[7], String.valueOf(req.getLateDate()));\r\n uc.getObject().put(keys[8], String.valueOf(req.getStage()));\r\n\r\n return uc; \r\n}",
"private JSONObject buildTrackingItemObject(String eventIndex, String event, String params, long time){\n JSONObject trackingObject = null;\n\n if (deviceTrackingObjectDefault == null) {\n trackingObject = new JSONObject();\n deviceTrackingObjectDefault = new JSONObject();\n\n for (Entry<String, String> entry : deviceInformationUtils.getTrackingDeviceInfo().entrySet()) {\n try {\n trackingObject.put(entry.getKey() , entry.getValue());\n deviceTrackingObjectDefault.put(entry.getKey() , entry.getValue());\n } catch (JSONException e) {\n log.error(e.getMessage(), e);\n }\n }\n } else {\n try {\n trackingObject = new JSONObject(deviceTrackingObjectDefault.toString());\n } catch (JSONException e) {\n log.error(e.getMessage(), e);\n }\n }\n\n try {\n trackingObject.put(DataKeys.TRACK_EVENT_INDEX, eventIndex);\n trackingObject.put(DataKeys.TRACK_EVENT_NAME, event);\n trackingObject.put(DataKeys.TRACK_EVENT_PARAM, params);\n trackingObject.put(DataKeys.TRACK_EVENT_TIME, Utils.convertMillisAndFormatDate(time) + \"\");\n trackingObject.put(DataKeys.TRACK_EVENT_TIME_EPOCH, time);\n } catch (JSONException e) {\n log.error(e.getMessage(), e);\n }\n\n try {\n JSONObject attributionObject = new JSONObject();\n\n if (event.equals(TrackingEvents.FIRST_APP_LAUNCH)) {\n Thread.sleep(5000);\n }\n\n attributionObject.put(DataKeys.TRACK_ATD_CLICK_ID, DataContainer.getInstance().pullValueString(InstallReceiver.UTM_CLICK_ID, context));\n attributionObject.put(DataKeys.TRACK_ATD_AFFILIATE_ID, DataContainer.getInstance().pullValueString(InstallReceiver.UTM_AFFILIATE_ID, context));\n attributionObject.put(DataKeys.TRACK_ATD_CAMPAIGN_ID, DataContainer.getInstance().pullValueString(InstallReceiver.UTM_CAMPAIGN_ID, context));\n\n trackingObject.put(DataKeys.TRACK_ATTRIBUTION_DATA, attributionObject);\n\n } catch (JSONException e) {\n log.error(e.getMessage(), e);\n } catch (InterruptedException e) {\n log.error(e.getMessage(), e);\n }\n\n trackingObject = trackingObjectCleanup(trackingObject);\n\n return trackingObject;\n }",
"@Test\r\n public void generateJWEToAddInstanceAndBindUser() {\r\n System.out.println(\"generateJWEToAddPassAndBindUser begin.\\n\");\r\n\r\n // This is the app ID registered on Huawei AGC website.\r\n String appId = \"Replace with your app ID\";\r\n // Read a new event ticket instance.\r\n String newInstanceJson = CommonUtil.readJSONFile(\"EventTicketInstance.json\");\r\n JSONObject newInstanceJsonObject = JSONObject.parseObject(newInstanceJson);\r\n newInstanceJsonObject.put(\"iss\", appId);\r\n String payload = newInstanceJsonObject.toJSONString();\r\n\r\n // You generated a pair of RSA keys while applying for services on AGC. Use that private key here.\r\n String jweSignPrivateKey = \"Replace with your private key.\";\r\n\r\n // Generate a JWE.\r\n String jwe = JweUtil.generateJwe(jweSignPrivateKey, payload);\r\n System.out.println(\"JWE String: \" + jwe + \"\\n\");\r\n\r\n // Replace {walletkit_website_url} with one of the following strings according to your account location.\r\n // walletpass-drcn.cloud.huawei.com for China\r\n // walletpass-drru.cloud.huawei.com for Russia\r\n // walletpass-dra.cloud.huawei.com for Asia, Africa, and Latin America\r\n // walletpass-dre.cloud.huawei.com for Europe\r\n System.out.println(\"JWE link to be viewed in a browser: \"\r\n + \"https://{walletkit_website_url}/walletkit/consumer/pass/save?jwt=\" + URLEncoder.encode(jwe));\r\n }",
"@RequestMapping(\"/note\")\r\n\tpublic ResponseEntity<Note> createNote(@RequestBody Note note,HttpSession session) {\r\n\t\tString userId = (String) session.getAttribute(\"loggedInUserId\");\r\n\t\tif(userId==null) {\r\n\t\t\treturn new ResponseEntity<Note>(HttpStatus.UNAUTHORIZED);\r\n\t\t}\r\n\t\tboolean bool = false;\r\n\t\ttry {\r\n\t\t\tnote.setCreatedBy(userId);\r\n\t\t\tbool = noteService.createNote(note);\r\n\t\t} catch (Exception e) {}\r\n\t\tif(bool==true) {\r\n\t\t\treturn new ResponseEntity<Note>(HttpStatus.CREATED);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn new ResponseEntity<Note>(HttpStatus.CONFLICT);\r\n\t\t}\r\n\t}",
"public CreateSessionReq(CreateSessionReq other) {\n if (other.isSetUser()) {\n this.user = TBaseHelper.deepCopy(other.user);\n }\n if (other.isSetGraph_addr()) {\n this.graph_addr = TBaseHelper.deepCopy(other.graph_addr);\n }\n if (other.isSetClient_ip()) {\n this.client_ip = TBaseHelper.deepCopy(other.client_ip);\n }\n }",
"public void createSession(int uid);",
"public IssueTypeSchemeID createIssueTypeScheme(IssueTypeSchemeDetails issueTypeSchemeDetails, Map<String, Object> params) throws IOException {\n HttpResponse response = createIssueTypeSchemeForHttpResponse(issueTypeSchemeDetails, params);\n TypeReference<IssueTypeSchemeID> typeRef = new TypeReference<IssueTypeSchemeID>() {};\n return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);\n }",
"public void createJSON(String filePath, JSONObject jsonObject) throws ExistException, UnimplementedException, UnderlyingStorageException {\n \t\tSystem.err.println(jsonObject);\n \t\tjsonObject=cspace264Hack_munge(jsonObject,filePath);\n \t\tautocreateJSON(\"\",jsonObject);\n \t\t// XXX End of here's what we do because of CSPACE-264\t\t\n \t\t// Here's what we should do ->\n \t\t// throw new UnimplementedException(\"Cannot create collectionobject at known path, use autocreateJSON\");\n \t}",
"public void signUp(String email, String password) {\n\n headers = new HashMap<>();\n //headers.put(\"req_type\", \"signUp\");\n headers.put(\"mail\", email.toString());\n headers.put(\"password\", password.toString());\n headers.put(\"enterpriseName\", \"\");\n headers.put(\"propritor\", \"\");\n headers.put(\"contactNo\", \"0\");\n headers.put(\"profilePhoto\", \"\");\n headers.put(\"retailerId\",\"1675\");\n headers.put(\"latLocation\", \"0.0\");\n headers.put(\"longLocation\", \"0.0\");\n headers.put(\"address\", \"\");\n headers.put(\"city\", \"\");\n headers.put(\"state\", \"\");\n headers.put(\"country\", \"\");\n headers.put(\"membership\", \"0\");\n headers.put(\"subDate\", \"2010-01-01\");\n headers.put(\"openCloseIsManual\", \"0\");\n headers.put(\"shopOpenTime\", \"00:00:00\");\n headers.put(\"shopCloseTime\", \"00:00:00\");\n headers.put(\"shopOpenTime2\", \"00:00:00\");\n headers.put(\"shopCloseTime2\", \"00:00:00\");\n headers.put(\"shopPhoto\", \"\");\n headers.put(\"shopActLicense\", \"\");\n headers.put(\"currentState\", \"0\");\n headers.put(\"Content-Type\", \"application/json\");\n\n try {\n\n jsonObject = new JSONObject();\n //jsonObject.put(\"req_type\", \"signUp\");\n jsonObject.put(\"mail\", email.toString());\n jsonObject.put(\"password\", password.toString());\n jsonObject.put(\"enterpriseName\", \"\");\n jsonObject.put(\"propritor\", \"\");\n jsonObject.put(\"retailerId\",\"1001\");\n jsonObject.put(\"contactNo\", \"0\");\n jsonObject.put(\"profilePhoto\", \"\");\n jsonObject.put(\"latLocation\", \"0.0\");\n jsonObject.put(\"longLocation\", \"0.0\");\n jsonObject.put(\"address\", \"\");\n jsonObject.put(\"city\", \"\");\n jsonObject.put(\"state\", \"\");\n jsonObject.put(\"country\", \"\");\n jsonObject.put(\"membership\", \"0\");\n jsonObject.put(\"subDate\", \"2010-01-01\");\n jsonObject.put(\"openCloseIsManual\", \"0\");\n jsonObject.put(\"shopOpenTime\", \"00:00:00\");\n jsonObject.put(\"shopCloseTime\", \"00:00:00\");\n jsonObject.put(\"shopOpenTime2\", \"00:00:00\");\n jsonObject.put(\"shopCloseTime2\", \"00:00:00\");\n jsonObject.put(\"shopPhoto\", \"\");\n jsonObject.put(\"shopActLicense\", \"\");\n jsonObject.put(\"currentState\", \"0\");\n reqBody = jsonObject.toString();\n\n databaseURL = \"http://ec2-18-216-46-195.us-east-2.compute.amazonaws.com:6868/add_retailer_info_temp\";\n sendRequest(databaseURL);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Test\n public void testCreateIssueEntityFromJson() throws Exception {\n String json = \"\"\n + \"{\\n\"\n + \" \\\"issues_in_text\\\": {\\n\"\n + \" \\\"context\\\": \\\"vimger test context\\\",\\n\"\n + \" \\\"k12n\\\": \\\"000\\\",\\n\"\n + \" \\\"subject\\\": \\\"000\\\",\\n\"\n + \" \\\"dod\\\": 60,\\n\"\n + \" \\\"type\\\": \\\"000\\\",\\n\"\n + \" \\\"qas\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"question\\\": \\\"which one is right?\\\",\\n\"\n + \" \\\"options\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"A. 1+1=1\\\",\\n\"\n + \" \\\"answer\\\": \\\"1\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"B. 1+1=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"0\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"C. 2+2=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"1\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"D. 2+2=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"0\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \"}\";\n \n IssueEntity issue = converter.createIssueEntityFromJson(json);\n \n assertEquals(\"vimger test context\", issue.getContext());\n assertEquals(\"000\", issue.getK12n());\n assertEquals(\"000\", issue.getSubject());\n assertEquals(60, issue.getDod(), 0.1);\n assertEquals(\"000\", issue.getType());\n }",
"public JoinableSession(JSONObject data) {\n name = data.getString(\"name\");\n id = data.getInt(\"id\");\n }",
"private NewIssueDTO createIssueDTO(String title, String content, IssueState state, List<Long> idList, List<Long> attachments) {\n Issue simpleIssue = new Issue();\n simpleIssue.setContent(content);\n simpleIssue.setDate(new Date());\n simpleIssue.setTitle(title);\n simpleIssue.setState(state);\n\n NewIssueDTO issueDto = new NewIssueDTO();\n issueDto.setIssue(simpleIssue);\n issueDto.setLabelIdList(idList);\n issueDto.setAttachments(attachments);\n return issueDto;\n }",
"@Test\n public void testCreateJsonFromIssueEntity() throws Exception {\n List<IssueEntity> issueEntities = new ArrayList<IssueEntity>();\n \n String json1 = \"\"\n + \"{\\n\"\n + \" \\\"issues_in_text\\\": {\\n\"\n + \" \\\"context\\\": \\\"vimger test context\\\",\\n\"\n + \" \\\"k12n\\\": \\\"000\\\",\\n\"\n + \" \\\"subject\\\": \\\"000\\\",\\n\"\n + \" \\\"dod\\\": 60,\\n\"\n + \" \\\"type\\\": \\\"000\\\",\\n\"\n + \" \\\"qas\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"question\\\": \\\"which one is right?\\\",\\n\"\n + \" \\\"options\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"A. 1+1=1\\\",\\n\"\n + \" \\\"answer\\\": \\\"1\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"B. 1+1=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"0\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"C. 2+2=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"1\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"D. 2+2=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"0\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \"}\";\n IssueEntity issue1 = converter.createIssueEntityFromJson(json1);\n issueEntities.add(issue1);\n \n String json2 = \"\"\n + \"{\\n\"\n + \" \\\"issues_in_text\\\": {\\n\"\n + \" \\\"context\\\": \\\"vimger test context\\\",\\n\"\n + \" \\\"k12n\\\": \\\"010\\\",\\n\"\n + \" \\\"subject\\\": \\\"010\\\",\\n\"\n + \" \\\"dod\\\": 70,\\n\"\n + \" \\\"type\\\": \\\"010\\\",\\n\"\n + \" \\\"qas\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"question\\\": \\\"which one is wrong?\\\",\\n\"\n + \" \\\"options\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"A. 1+1=1\\\",\\n\"\n + \" \\\"answer\\\": \\\"0\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"B. 1+1=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"1\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"C. 2+2=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"0\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"D. 2+2=4\\\",\\n\"\n + \" \\\"answer\\\": \\\"1\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \"}\";\n IssueEntity issue2 = converter.createIssueEntityFromJson(json2);\n issueEntities.add(issue2);\n \n String actual = converter.createJsonFromIssueEntity(issueEntities);\n \n assertEquals(issue1, actual);\n }",
"@PostMapping(\"/chat-rooms\")\n public ResponseEntity<ChatRoom> createChatRoom(@RequestBody ChatRoom chatRoom) throws URISyntaxException {\n log.debug(\"REST request to save ChatRoom : {}\", chatRoom);\n if (chatRoom.getId() != null) {\n throw new BadRequestAlertException(\"A new chatRoom cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n ChatRoom result = chatRoomRepository.save(chatRoom);\n return ResponseEntity.created(new URI(\"/api/chat-rooms/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"public Project procreate(Project pud) throws IOException {\n\t\tString ur = url + \"/procreate\";\n\t\tProject us = restTemplate().postForObject(ur, pud, Project.class);\n\t\tSystem.out.println(us.toString());\n\t\t//UserDetails user = om.readValue(us,UserDetails.class);\n\t\treturn us;\n\t}",
"public void makeSessionFile() {\n sessionData = new File(wnwData, \"session.dat\");\n try {\n sessionData.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n sessionData.setWritable(true);\n }",
"public void startSession(){\n sessionID = client.startSession();\n \n //Get system temporary files path\n String temporaryPath = System.getProperty(\"java.io.tmpdir\").replaceAll(\"\\\\\\\\\",\"/\");\n \n //If temporary file path does not end with /, add it\n if(!temporaryPath.endsWith(\"/\"))\n temporaryPath = temporaryPath + \"/\";\n \n //Create session directory\n sessionDirectory = new File(temporaryPath+sessionID);\n sessionDirectory.mkdir();\n \n }",
"Session createSession(Long courseId, Long studentId, Session session);",
"public static void main(String[] args){\n \n String loginResponse = \"\";\n String jSessionID = \"\";\n String jsonData = \"\";\n String csvData = \"\";\n String writeToFileOutput = \"\";\n // Change the baseURL to your own jira server's address and port number\n // Note: adding \"rest/\" at the end may not be necessary in your \n // environment\n String baseURL = \"http://ec2-18-235-248-253.compute-1.amazonaws.com:2990/jira/rest/\";\n String loginURL = \"auth/1/session\";\n String biExportURL = \"getbusinessintelligenceexport/1.0/message\";\n // The analysisStartData and analysisEndDate specify an inclusive\n // period over time over which you want to extract issues that \n // have been either added or updated.\n String analysisStartDate = \"01-DEC-18\";\n String analysisEndDate = \"31-DEC-18\";\n // The loginUserName and loginPassWord are the credentials for a user\n // who has permission to view the issues that you wish to export.\n String loginUserName = \"admin\";\n String loginPassWord = \"admin\";\n boolean errorsOccurred = false;\n String exportDirectory = \"./downloads/\";\n \n if(!errorsOccurred)\n {\n loginResponse = loginToJira(baseURL, loginURL, loginUserName, loginPassWord);\n if(loginResponse == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n jSessionID = parseJSessionID(loginResponse);\n if(jSessionID == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n jsonData = getJsonData(baseURL, biExportURL, jSessionID, analysisStartDate, analysisEndDate);\n if(jsonData == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n csvData = formatAsCSV(jsonData);\n if(csvData == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n writeToFileOutput = writeToFile(csvData, exportDirectory);\n if(writeToFileOutput == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n System.out.println(\"SUCCESS\");\n } else {\n System.out.println(\"FAILURE\");\n }\n }",
"@Override\n\tprotected Serializable doCreate(Session session) {\n\t\treturn null;\n\t}",
"private Session session(Properties props) {\n return Session.getInstance(props,\n new Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\", \"happinessbarometer2014\");\n }\n }\n );\n }",
"@Schema(description = \"The ID of the issue this worklog is for.\")\n public String getIssueId() {\n return issueId;\n }",
"String allocateId() throws SessionStorageException;",
"private void setUserDataFromJson(JSONObject jsonObject) { \n\t\tlogger.debug(\"creating UserData Object from json file \" + fileName);\n\t\t/* \n\t\t * JSON Structure\n\t\t * {\n\t\t * \t\"objectStatus\":\"fail\",\n\t\t * \t\"domain\":\"null\",\n\t\t * \t\"customer\":\"null\",\n\t\t * \t\"sn_id\":\"CC\",\n\t\t * \t\"user_id\":\"9\",\n\t\t * \t\"userName\":\"Cortal_Consors\",\n\t\t * \t\"nickName\":\"Cortal_Consors\",\n\t\t * \t\"postingsCount\":\"0\",\n\t\t * \t\"favoritesCount\":\"0\",\n\t\t * \t\"friends\":\"0\",\n\t\t * \t\"follower\":\"0\",\n\t\t * \t\"userLang\":null,\n\t\t * \t\"listsAndGroupsCount\":\"0\",\n\t\t * \t\"geoLocation\":\"\"\n\t\t * }\n\t\t */\n\t\tif (jsonObject.get(\"domain\") != null) {\n\t\t\tlogger.trace(\" domain\\t\"+jsonObject.get(\"domain\").toString());\n\t\t\tuData.setDomain((String) jsonObject.get(\"domain\"));\n\t\t}\n\t\tif (jsonObject.get(\"customer\") != null) {\n\t\t\tlogger.trace(\" customer\\t\"+jsonObject.get(\"customer\").toString());\n\t\t\tuData.setCustomer((String) jsonObject.get(\"customer\"));\n\t\t}\n\t\tif (jsonObject.get(\"objectStatus\") != null) {\n\t\t\tlogger.trace(\" objectStatus\\t\"+jsonObject.get(\"objectStatus\").toString());\n\t\t\tuData.setObjectStatus((String) jsonObject.get(\"objectStatus\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"sn_id\") != null) {\n\t\t\tlogger.trace(\" sn_id\\t\"+jsonObject.get(\"sn_id\").toString());\n\t\t\tuData.setSnId((String) jsonObject.get(\"sn_id\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"id\") == null) {\n\t\t\tlogger.trace(\" user_id\\t\"+jsonObject.get(\"user_id\").toString());\n\t\t\tuData.setId((String) jsonObject.get(\"user_id\"));\n\t\t} else {\n\t\t\tlogger.trace(\" id\\t\"+jsonObject.get(\"id\").toString());\n\t\t\tuData.setId((String) jsonObject.get(\"id\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"userName\") != null) {\n\t\t\tlogger.trace(\" userName\\t\"+jsonObject.get(\"userName\").toString());\n\t\t\tuData.setUserName((String) jsonObject.get(\"userName\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"nickName\") != null) {\n\t\t\tlogger.trace(\" nickName\\t\"+jsonObject.get(\"nickName\").toString());\n\t\t\tuData.setScreenName((String) jsonObject.get(\"nickName\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"userLang\") != null) {\n\t\t\tlogger.trace(\" userLang\\t\"+jsonObject.get(\"userLang\").hashCode());\n\t\t\tuData.setLang((String) jsonObject.get(\"userLang\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"follower\") != null) {\n\t\t\tlogger.trace(\" follower\\t\"+Long.parseLong(jsonObject.get(\"follower\").toString()));\n\t\t\tuData.setFollowersCount(Long.parseLong(jsonObject.get(\"follower\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"friends\") != null) {\n\t\t\tlogger.trace(\" friends\\t\"+Long.parseLong(jsonObject.get(\"friends\").toString()));\n\t\t\tuData.setFriendsCount(Long.parseLong(jsonObject.get(\"friends\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"postingsCount\") != null) {\n\t\t\tlogger.trace(\" postingsCount\\t\"+Long.parseLong(jsonObject.get(\"postingsCount\").toString()));\n\t\t\tuData.setPostingsCount(Long.parseLong(jsonObject.get(\"postingsCount\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"favoritesCount\") != null) {\n\t\t\tlogger.trace(\" favoritesCount\\t\"+Long.parseLong(jsonObject.get(\"favoritesCount\").toString()));\n\t\t\tuData.setFavoritesCount(Long.parseLong(jsonObject.get(\"favoritesCount\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"listsAndGroupsCount\") != null) {\n\t\t\tlogger.trace(\" listsAndGroupsCount\\t\"+Long.parseLong(jsonObject.get(\"listsAndGroupsCount\").toString()));\n\t\t\tuData.setListsAndGroupsCount(Long.parseLong(jsonObject.get(\"listsAndGroupsCount\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"geoLocation\") != null) {\n\t\t\tlogger.trace(\" geoLocation\\t\"+jsonObject.get(\"geoLocation\"));\n\t\t\tuData.setGeoLocation((String) jsonObject.get(\"geoLocation\"));\n\t\t}\n\t}",
"private JSONObject constructJsonNotification( MassNotificationTaskConfig config, HtmlTemplate html, ResourceExtenderHistory resourceExtenderHistory, Map<String, Object> model )\n {\n Map<String, Object> map = new HashMap< >( );\n \n map.put( FormsExtendConstants.JSON_OBJECT, AppTemplateService.getTemplateFromStringFtl( config.getSubjectForDashboard( ), null, model ).getHtml( ) );\n map.put( FormsExtendConstants.JSON_SENDER, config.getSenderForDashboard( ) );\n map.put( FormsExtendConstants.JSON_MESSAGE, html.getHtml( ) );\n map.put( FormsExtendConstants.JSON_ID_USER, resourceExtenderHistory.getUserGuid( ) );\n\n return new JSONObject( map );\n }",
"public String autocreateJSON(String filePath, JSONObject jsonObject) throws ExistException, UnderlyingStorageException, UnimplementedException {\n \t\ttry {\n \t\t\tDocument doc=cspace266Hack_munge(jxj.json2xml(jsonObject));\n \t\t\tSystem.err.println(\"153 got \"+doc.asXML());\n \t\t\tReturnedURL url = conn.getURL(RequestMethod.POST,\"collectionobjects/\",doc);\n \t\t\tif(url.getStatus()>299 || url.getStatus()<200)\n \t\t\t\tthrow new UnderlyingStorageException(\"Bad response \"+url.getStatus());\n \t\t\treturn url.getURLTail();\n \t\t} catch (BadRequestException e) {\n \t\t\tthrow new UnderlyingStorageException(\"Service layer exception\",e);\n \t\t} catch (InvalidXTmplException e) {\n \t\t\tthrow new UnimplementedException(\"Error in template\",e);\n \t\t}\n \t}",
"private FlowRule buildTLineSessionMapFlowRule(Attachment attachment)\n throws BngProgrammableException {\n PiCriterion criterion = PiCriterion.builder()\n .matchExact(FabricConstants.HDR_LINE_ID,\n lineId(attachment))\n .build();\n TrafficSelector trafficSelector = DefaultTrafficSelector.builder()\n .matchPi(criterion)\n .build();\n PiAction action;\n if (attachment.lineActive()) {\n action = PiAction.builder()\n .withId(FabricConstants.FABRIC_INGRESS_BNG_INGRESS_DOWNSTREAM_SET_SESSION)\n .withParameter(new PiActionParam(FabricConstants.PPPOE_SESSION_ID,\n attachment.pppoeSessionId()))\n .build();\n } else {\n action = PiAction.builder()\n .withId(FabricConstants.FABRIC_INGRESS_BNG_INGRESS_DOWNSTREAM_DROP)\n .build();\n }\n TrafficTreatment instTreatment = DefaultTrafficTreatment.builder()\n .piTableAction(action)\n .build();\n return buildFlowRule(trafficSelector,\n instTreatment,\n FabricConstants.FABRIC_INGRESS_BNG_INGRESS_DOWNSTREAM_T_LINE_SESSION_MAP,\n attachment.appId());\n }",
"java.lang.String getSessionID();",
"@PostMapping(value=\"/create\")\n\tpublic Ticket creatTicket(@RequestBody Ticket ticket){\n\t\treturn ticketBookingService.createTicket(ticket);\n\t}",
"@PostMapping(path = \"/submit\")\n ResponseEntity<UUID> submit (@RequestBody JSONObject incidentJson){\n JSONObject description = incidentJson.getJSONObject(\"description\");\n String eventOpened = description.getString(\"event_opened\");\n Timestamp timestamp = new Timestamp((Instant.from(dtf.parse(eventOpened))).getEpochSecond());\n JSONObject address = incidentJson.getJSONObject(\"address\");\n String lat = address.getString(\"latitude\");\n String lon = address.getString(\"longitude\");\n JSONObject weather = WeatherIntegration.getWeather(lat, lon, timestamp);\n Incident.Builder builder = new Incident.Builder();\n Incident incident = builder.withId(UUID.randomUUID())\n .withIncidentJson(incidentJson)\n .withWeather(weather)\n .withTimestamp(timestamp)\n .build();\n return ResponseEntity.status(HttpStatus.ACCEPTED).body(incident.getId());\n }",
"@Override\n public CreateSessionResponse createSession()\n throws EwalletException {\n return null;\n }",
"public void inserErrorLog(String userID, String access_token,String errorDescription) {\n String uri = \"https://vinay9-dev-ed.my.salesforce.com/services/data/v56.0/sobjects/package_xml_error_log__c/\";\n try {\n System.out.println(\"access_token \"+access_token);\n Header oauthHeader = new BasicHeader(\"Authorization\", \"OAuth \" + access_token);\n JSONObject packageXMLRecord = new JSONObject();\n packageXMLRecord.put(\"error_description__c\", errorDescription);\n packageXMLRecord.put(\"user_name__c\", userID);\n DefaultHttpClient httpClient = new DefaultHttpClient();\n HttpPost httpPost = new HttpPost(uri);\n httpPost.addHeader(oauthHeader);\n StringEntity body = new StringEntity(packageXMLRecord.toString(1));\n body.setContentType(\"application/json\");\n httpPost.setEntity(body);\n\n HttpResponse response = httpClient.execute(httpPost);\n\n int statusCode = response.getStatusLine().getStatusCode();\n if (statusCode == 201) {\n String response_string = EntityUtils.toString(response.getEntity());\n JSONObject json = new JSONObject(response_string);\n System.out.println(\"New packagexml id from response: \" + json.getString(\"id\"));\n } else {\n System.out.println(\"Insertion unsuccessful. Status code returned is \" + statusCode);\n }\n } catch (JSONException e) {\n System.out.println(\"Issue creating JSON or processing results\");\n e.printStackTrace();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n }",
"@Test\n @SmallTest\n public void testSerializeToJson() throws Throwable {\n final String jsonObjectString =\n \"{'crash-local-id':'123456abc','crash-capture-time':1234567890,\"\n + \"'crash-is-hidden':false,\"\n + \"'crash-keys':{'app-package-name':'org.test.package'}}\";\n JSONObject expectedJsonObject = new JSONObject(jsonObjectString);\n\n CrashInfo c = createCrashInfo(\"123456abc\", 1234567890, null, -1, \"org.test.package\", null);\n Assert.assertEquals(c.serializeToJson(), expectedJsonObject.toString());\n }",
"@Test\r\n public void addEventTicketInstance() {\r\n System.out.println(\"addEventTicketInstance begin\");\r\n\r\n // Read an event ticket instance from a JSON file.\r\n HwWalletObject instance =\r\n JSONObject.parseObject(CommonUtil.readJSONFile(\"EventTicketInstance.json\"), HwWalletObject.class);\r\n\r\n // Validate parameters.\r\n boolean isValidInstance = HwWalletObjectUtil.validateInstance(instance);\r\n if (!isValidInstance) {\r\n System.out.println(\"Invalid instance parameters.\");\r\n return;\r\n }\r\n\r\n // Post the new event ticket instance to HMS wallet server.\r\n String urlSegment = \"eventticket/instance\";\r\n HwWalletObject responseInstance =\r\n walletBuildService.postHwWalletObjectToWalletServer(urlSegment, CommonUtil.toJson(instance));\r\n System.out.println(\"Posted event ticket instance: \" + CommonUtil.toJson(responseInstance));\r\n }",
"@Before\n public void setupJsonObject() throws IOException {\n jsonObject = JsonUtils.fromString(\"{\\n\"\n + \" \\\"@id\\\" : \\\"http://localhost:8080/fcrepo/rest/hello-world\\\",\\n\"\n + \" \\\"@type\\\" : \\\"koio:KnowledgeObject\\\",\\n\"\n + \" \\\"contributors\\\" : \\\"Kgrid Team\\\",\\n\"\n + \" \\\"hasImplementation\\\" : [ \\\"http://localhost:8080/fcrepo/rest/hello-world/v0.0.1\\\", \\\"http://localhost:8080/fcrepo/rest/hello-world/v0.0.2\\\" ],\\n\"\n + \" \\\"keywords\\\" : \\\"test hello world\\\",\\n\"\n + \" \\\"description\\\" : \\\"Test Hello World \\\",\\n\"\n + \" \\\"identifier\\\" : \\\"ark:/hello/world\\\",\\n\"\n + \" \\\"title\\\" : \\\"Hello World Title\\\",\\n\"\n + \" \\\"junknotinkoio\\\" : \\\"Junk Not in KOIO\\\",\\n\"\n + \" \\\"@context\\\" : {\\n\"\n + \" \\\"hasImplementation\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://kgrid.org/koio#hasImplementation\\\",\\n\"\n + \" \\\"@type\\\" : \\\"@id\\\"\\n\"\n + \" },\\n\"\n + \" \\\"description\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://purl.org/dc/elements/1.1/description\\\"\\n\"\n + \" },\\n\"\n + \" \\\"contributors\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://kgrid.org/koio#contributors\\\"\\n\"\n + \" },\\n\"\n + \" \\\"title\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://purl.org/dc/elements/1.1/title\\\"\\n\"\n + \" },\\n\"\n + \" \\\"keywords\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://kgrid.org/koio#keywords\\\"\\n\"\n + \" },\\n\"\n + \" \\\"identifer\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://purl.org/dc/elements/1.1/identifer\\\"\\n\"\n + \" },\\n\"\n + \" \\\"premis\\\" : \\\"http://www.loc.gov/premis/rdf/v1#\\\",\\n\"\n + \" \\\"test\\\" : \\\"info:fedora/test/\\\",\\n\"\n + \" \\\"rdfs\\\" : \\\"http://www.w3.org/2000/01/rdf-schema#\\\",\\n\"\n + \" \\\"xsi\\\" : \\\"http://www.w3.org/2001/XMLSchema-instance\\\",\\n\"\n + \" \\\"xmlns\\\" : \\\"http://www.w3.org/2000/xmlns/\\\",\\n\"\n + \" \\\"rdf\\\" : \\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\",\\n\"\n + \" \\\"fedora\\\" : \\\"http://fedora.info/definitions/v4/repository#\\\",\\n\"\n + \" \\\"xml\\\" : \\\"http://www.w3.org/XML/1998/namespace\\\",\\n\"\n + \" \\\"koio\\\" : \\\"http://kgrid.org/koio#\\\",\\n\"\n + \" \\\"ebucore\\\" : \\\"http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#\\\",\\n\"\n + \" \\\"ldp\\\" : \\\"http://www.w3.org/ns/ldp#\\\",\\n\"\n + \" \\\"xs\\\" : \\\"http://www.w3.org/2001/XMLSchema\\\",\\n\"\n + \" \\\"fedoraconfig\\\" : \\\"http://fedora.info/definitions/v4/config#\\\",\\n\"\n + \" \\\"foaf\\\" : \\\"http://xmlns.com/foaf/0.1/\\\",\\n\"\n + \" \\\"dc\\\" : \\\"http://purl.org/dc/elements/1.1/\\\"\\n\"\n + \" }\\n\"\n + \"}\");\n\n\n }",
"private Single<SessionEntity> newSession(UserEntity userEntity) {\n return this.authApi.getToken().flatMap(requestTokenEntity ->\n this.authApi.validateToken(\n new ValidateTokenEntity(\n userEntity.getTMDBUsername(),\n userEntity.getTMDBPassword(),\n requestTokenEntity.getRequestToken()\n )\n ).doOnError((e)-> {\n updateUser(new SessionEntity(false, \"\"), userEntity);\n createUserSession();\n })\n .flatMap(validatedRequestToken ->\n this.authApi.createSession(validatedRequestToken.getRequestToken()).doOnSuccess(sessionEntity -> {\n if (!sessionEntity.isSuccess()) {\n //TODO - refreshSession few times and return guest session.\n }\n\n updateUser(sessionEntity, userEntity);\n }\n )\n ));\n }",
"@RequestMapping(value = \"/projectreleasesprints\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Projectreleasesprint> createProjectreleasesprint(@Valid @RequestBody Projectreleasesprint projectreleasesprint) throws URISyntaxException {\n log.debug(\"REST request to save Projectreleasesprint : {}\", projectreleasesprint);\n if (projectreleasesprint.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"projectreleasesprint\", \"idexists\", \"A new projectreleasesprint cannot already have an ID\")).body(null);\n }\n Projectreleasesprint result = projectreleasesprintRepository.save(projectreleasesprint);\n return ResponseEntity.created(new URI(\"/api/projectreleasesprints/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"projectreleasesprint\", result.getId().toString()))\n .body(result);\n }",
"@PostMapping(\"/prix-tickets\")\n @Timed\n public ResponseEntity<PrixTicketDTO> createPrixTicket(@RequestBody PrixTicketDTO prixTicketDTO) throws URISyntaxException {\n log.debug(\"REST request to save PrixTicket : {}\", prixTicketDTO);\n if (prixTicketDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new prixTicket cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n PrixTicketDTO result = prixTicketService.save(prixTicketDTO);\n return ResponseEntity.created(new URI(\"/api/prix-tickets/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"private void storeJsonInObject(JsonObject dataJson, JsonObject metaJson,\r\n String oid) throws HarvesterException {\r\n // Does the object already exist?\r\n DigitalObject object = null;\r\n try {\r\n object = getStorage().getObject(oid);\r\n storeJsonInPayload(dataJson, metaJson, object);\r\n \r\n } catch (StorageException ex) {\r\n // This is going to be brand new\r\n try {\r\n object = StorageUtils.getDigitalObject(getStorage(), oid);\r\n storeJsonInPayload(dataJson, metaJson, object);\r\n } catch (StorageException ex2) {\r\n throw new HarvesterException(\r\n \"Error creating new digital object: \", ex2);\r\n }\r\n }\r\n \r\n // Set the pending flag\r\n if (object != null) {\r\n try {\r\n object.getMetadata().setProperty(\"render-pending\", \"true\");\r\n object.close();\r\n } catch (Exception ex) {\r\n log.error(\"Error setting 'render-pending' flag: \", ex);\r\n }\r\n }\r\n }",
"public createsessions() {\n initComponents();\n loadlec();\n loadlec2();\n\n // subcode() ;\n loadsubname();\n loadsubname1();\n\n loadtag();\n loadtag2();\n\n loadgrpid();\n loadgrpid2();\n\n loadsubgrpid1();\n loadsubgrpid2();\n\n }",
"@Test\n public void testProcessOutputInputsValid(){\n generateIssueService(args1);\n\n final String expected = \"{\\\"top_day\\\":{\\\"occurrences\\\":{\\\"HassleFreeRecords/hasslefree\\\":1,\\\"HassleFreeRecords/database-ddl\\\":1},\\\"day\\\":\\\"2018/11/30\\\"},\\\"issues\\\":{\\\"2018/11/30\\\":[{\\\"id\\\":386063580,\\\"state\\\":\\\"OPEN\\\",\\\"title\\\":\\\"Test Issue 2\\\",\\\"repository\\\":\\\"HassleFreeRecords/hasslefree\\\",\\\"createdOn\\\":\\\"Fri Nov 30 01:03:45 CST 2018\\\"},{\\\"id\\\":386063657,\\\"state\\\":\\\"OPEN\\\",\\\"title\\\":\\\"Test Issue 3\\\",\\\"repository\\\":\\\"HassleFreeRecords/database-ddl\\\",\\\"createdOn\\\":\\\"Fri Nov 30 01:04:06 CST 2018\\\"}],\\\"2018/11/29\\\":[{\\\"id\\\":386028849,\\\"state\\\":\\\"CLOSED\\\",\\\"title\\\":\\\"Test Issue \\\",\\\"repository\\\":\\\"HassleFreeRecords/hasslefree\\\",\\\"createdOn\\\":\\\"Thu Nov 29 22:02:21 CST 2018\\\"}]}}\";\n\n final String actual = testIssues.generateIssueReport();\n\n Assert.assertEquals(expected,actual);\n }",
"public static void main(String[] args) {\n\t\tJSONObject obj=new JSONObject(); \n\t\tobj.put(\"userId\", \"[email protected]\");\n\t\tJSONObject obj2=new JSONObject();\n\t\tobj2.put(\"modulename\", \"SCM\");\n\t\tobj2.put(\"hitserverflag\",1);\n\t\tobj.put(\"extraParam\",obj2);\n\t\tobj.put(\"action\",\"UPDATE\");\n\t\tJSONArray arr=new JSONArray();\n\t\tJSONObject obj3=new JSONObject();\n\t\tJSONArray arr3=new JSONArray();\n\t\tarr3.add(\"UPDATE_PRODUCT\");\n\t\tobj3.put(\"actionarray\",arr3);\n\t\tJSONObject obj4=new JSONObject();\n\t\tobj4.put(\"CML_TITLE\",\"CCR-2\");\n\t\tJSONArray arr4=new JSONArray();\n\t\tobj4.put(\"CML_IMAGE_PATH\",arr4);\n\t\tobj4.put(\"SYNC_PENDING_STATUS\",0);\n\t\tobj4.put(\"LAST_MODIFIED_ON\",\"2019-12-31T06:52:36.441Z\");\n\t\tobj4.put(\"stockMinValue\",36);\n\t\tobj3.put(\"calmailobject\",obj4);\n\t\tobj3.put(\"keyType\",\"TSK\");\n\t\tobj3.put(\"keyVal\",\"rebrand.clouzer.com#PRJ_DEPT_ORG_1231231231231_1234#SEC_WIZ_PRD_DB_0011#TSK_PRD_LST_1577774826691_49\");\n\t\tobj3.put(\"subKeyType\",\"TSK_PRD_LST\");\n\t\tarr.add(obj3);\n\t\t\n\t\tobj.put(\"dataarray\",arr);\n\t\tobj.put(\"modulename\",\"SCM\" );\n\t\tobj.put(\"requestId\",\"/sync#/sync#[email protected]#1577710294530r168r226\");\n\t\tobj.put(\"FROM\",\"senddatatoserver\");\n\t\tobj.put(\"socketId\",\"/sync#wjYh2leVm1goGm_DAABH\");\n\t\tJSONArray arr12=new JSONArray();\n\t\tJSONObject obj9=new JSONObject();\n\t\tobj9.put(\"Location\",\"serverOperation : front_end\");\n\t\tobj9.put(\"Timestamp\",157770);\n\t\tarr12.add(obj9);\n\t\tJSONObject obj11=new JSONObject();\n\t\tobj11.put(\"Location\",\"etRouteHandler2Paget_serverOperation : node\");\n\t\tobj11.put(\"Timestamp\",157770);\n\t\tarr.add(obj11);\n\t\tJSONObject obj12=new JSONObject();\n\t\tobj12.put(\"Location\",\"etOrgActionCreator_sendtoJava : node\");\n\t\tobj12.put(\"Timestamp\",157770);\n\t\tarr12.add(obj12);\n\t\tJSONObject obj13=new JSONObject();\n\t\tobj13.put(\"Location\",\"etDirectToQueue_sendToJavaProcess : node\");\n\t\tobj13.put(\"Timestamp\",157770);\n\t\tarr12.add(obj13);\n\t\tJSONObject obj14=new JSONObject();\n\t\tobj14.put(\"Location\",\"etKafka_producer_sendMessage:node\");\n\t\tobj14.put(\"Timestamp\",157770);\n\t\tarr12.add(obj14);\n\t\tobj.put(\"baton\",arr12);\n\t\tobj.put(\"topic\",\"CCR_CLZ_COM\");\n\t\tSystem.out.println(obj);\n\t\t\n\t\t\n\t}",
"private static Map<String, Object> buildIncidentReport(String sessionToken,\n String serverUrl,\n String signature,\n String detail,\n String requestId,\n String jobUuid,\n String cause)\n {\n // No session, no incident.\n Preconditions.checkArgument(sessionToken != null && serverUrl != null);\n\n Map<String, Object> incident = new HashMap<>();\n Map<String, Object> incidentInfo = new HashMap<>();\n Map<String, Object> incidentReport = new HashMap<>();\n\n // Record environment info\n incidentReport.put(CLIENT_TYPE, LoginInfoDTO.SF_JDBC_APP_ID);\n incidentReport.put(CLIENT_VERSION, SnowflakeDriver.implementVersion);\n\n // Incident data\n incidentReport.put(INCIDENT_ID, generateIncidentId());\n\n // The reporter is whoever called this method\n int topOfStack = 2;\n StackTraceElement[] stes = Thread.currentThread().getStackTrace();\n\n // Find the function that started this incident\n while (stes[topOfStack].getMethodName().startsWith(\"generateIncident\"))\n {\n topOfStack++;\n }\n\n StackTraceElement caller = stes[topOfStack];\n\n String reporter = caller.getClassName() + \":\" + caller.getMethodName() +\n \":\" + caller.getLineNumber();\n\n String detailMessage = (detail == null && cause == null) ? null :\n ((detail == null ? \"\" : (detail + \" : \")) +\n (cause == null ? \"\" : cause));\n\n // First N lines of the stacktrace\n StackTraceElement[] strace = new StackTraceElement[STACK_TRACE_SIZE];\n for (int i = 0; i < STACK_TRACE_SIZE && (i + topOfStack) < stes.length; i++)\n {\n strace[i] = stes[i + topOfStack];\n }\n incidentReport.put(STACKTRACE, strace);\n\n // Request ID associated with incident, if any\n incidentReport.put(REQUEST_ID, requestId);\n\n // Job ID associated with incident, if any\n incidentReport.put(JOB_ID, jobUuid);\n\n // Type of incident\n incidentReport.put(INCIDENT_TYPE, Event.EventType.INCIDENT.getDescription());\n\n // Error signature for calculating hash in GS.\n incidentInfo.put(SIGNATURE, signature);\n\n // What function reported this incident?\n incidentInfo.put(REPORTER, reporter);\n\n // Incident detail and exception for GS error message generation.\n incidentInfo.put(DETAIL, detailMessage);\n\n // Other metadata\n incidentInfo.put(TIMESTAMP, DateTime.now().toString());\n incidentInfo.put(INCIDENT_REPORT, incidentReport);\n\n incident.put(SFSessionProperty.SERVER_URL.getPropertyKey(), serverUrl);\n incident.put(SFSession.SF_HEADER_TOKEN_TAG, sessionToken);\n incident.put(INCIDENT_INFO, incidentInfo);\n\n // This is the incident string that we'll throttle on\n incident.put(THROTTLE_SIGNATURE, signature);\n\n return incident;\n }",
"public final File createParametersFile(final int taskid,\n final Path tmpPath) {\n File file = null;\n\n BufferedReader br = null;\n FileReader fr = null;\n try {\n fr = new FileReader(\"/home/futuregateway/FutureGateway/\"\n + \"fgAPIServer/apps/kepler-batch/models-mapping.json\");\n br = new BufferedReader(fr);\n\n String jsonsmapping = \"\";\n String sCurrentLine;\n while ((sCurrentLine = br.readLine()) != null) {\n jsonsmapping += sCurrentLine;\n }\n JSONObject jm = JSONFactoryUtil.createJSONObject(jsonsmapping);\n JSONArray modelsmapping = jm.getJSONArray(\"models\");\n\n String jsonString = \"{\";\n jsonString += \"\\\"parameters\\\": {\";\n jsonString += \"\\\"futuregateway_uri\\\": \\\"\" + fgURL + \"\\\",\";\n jsonString += \"\\\"authorization_token\\\": \\\"\" + token + \"\\\",\";\n jsonString += \"\\\"task_id\\\": \\\"\" + taskid + \"\\\",\";\n jsonString += \"\\\"config_json\\\": \\\"[\";\n\n for (int i = 0; i < models.length; i++) {\n String modelname = models[i];\n for (int j = 0; j < modelsmapping.length(); j++) {\n JSONObject modelmapping = modelsmapping.getJSONObject(j);\n String name = modelmapping.getString(\"model\");\n if (name.equals(modelname)) {\n String host = modelmapping.getString(\"host\");\n String port = modelmapping.getString(\"port\");\n String username = modelmapping.getString(\"username\");\n String password = modelmapping.getString(\"password\");\n String cores = modelmapping.getString(\"cores\");\n if (i == models.length - 1) {\n jsonString += \"{\\\\\\\"host\\\\\\\":\\\\\\\"\" + host\n + \"\\\\\\\",\\\\\\\"port\\\\\\\":\\\\\\\"\" + port\n + \"\\\\\\\",\\\\\\\"login\\\\\\\":\\\\\\\"\"\n + username + \"\\\\\\\",\\\\\\\"password\\\\\\\":\\\\\\\"\"\n + password + \"\\\\\\\",\\\\\\\"argument\\\\\\\":\\\\\\\"\"\n + cores + \" \"\n + modelname + \" \" + scenario + \" \"\n + timeFrequency + \" \" + percentile + \" \"\n + historicalTimeMin + \"_\"\n + historicalTimeMax\n + \" \" + scenarioTimeMin + \"_\"\n + scenarioTimeMax\n + \" \" + latmin + \":\" + latmax + \"|\"\n + lonmin\n + \":\" + lonmax + \" r360x180\\\\\\\"}\";\n } else {\n jsonString += \"{\\\\\\\"host\\\\\\\":\\\\\\\"\" + host\n + \"\\\\\\\",\\\\\\\"port\\\\\\\":\\\\\\\"\" + port\n + \"\\\\\\\",\\\\\\\"login\\\\\\\":\\\\\\\"\"\n + username + \"\\\\\\\",\\\\\\\"password\\\\\\\":\\\\\\\"\"\n + password\n + \"\\\\\\\",\\\\\\\"argument\\\\\\\":\\\\\\\"\" + cores + \" \"\n + modelname + \" \" + scenario + \" \"\n + timeFrequency + \" \" + percentile + \" \"\n + historicalTimeMin + \"_\"\n + historicalTimeMax\n + \" \" + scenarioTimeMin + \"_\"\n + scenarioTimeMax\n + \" \" + latmin + \":\" + latmax\n + \"|\" + lonmin\n + \":\" + lonmax + \" r360x180\\\\\\\"},\";\n }\n }\n }\n }\n jsonString += \"]\\\",\";\n jsonString += \"\\\"token_service_uri\\\": \\\"https://fgw01.ncg.ingrid\"\n + \".pt/api/jsonws/iam.token/get-token\\\",\";\n jsonString += \"\\\"token_service_user\\\": \\\"admin@fgapiserver\"\n + \".indigo.eu\\\",\";\n jsonString += \"\\\"token_service_password\\\": \\\"3t>145.v9u+CtVv\\\"\";\n jsonString += \"}\";\n jsonString += \"}\";\n jsonString += \"\\n\";\n\n file = new File(tmpPath + \"/parameters.json\");\n file.createNewFile();\n System.out.println(\"file: \" + tmpPath + \"/parameters.json\");\n FileWriter fileWriter = new FileWriter(file);\n fileWriter.write(jsonString);\n fileWriter.flush();\n fileWriter.close();\n } catch (IOException | JSONException e) {\n e.printStackTrace();\n } finally {\n try {\n if (br != null) {\n br.close();\n }\n if (fr != null) {\n fr.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n return file;\n }",
"public static IssueModel createIssueModel(String projectId) throws Exception, IOException {\n try (ContactCenterInsightsClient client = ContactCenterInsightsClient.create()) {\n // Construct a parent resource.\n LocationName parent = LocationName.of(projectId, \"us-central1\");\n\n // Construct an issue model.\n IssueModel issueModel =\n IssueModel.newBuilder()\n .setDisplayName(\"my-model\")\n .setInputDataConfig(\n IssueModel.InputDataConfig.newBuilder().setFilter(\"medium=\\\"CHAT\\\"\").build())\n .build();\n\n // Call the Insights client to create an issue model.\n IssueModel response = client.createIssueModelAsync(parent, issueModel).get();\n System.out.printf(\"Created %s%n\", response.getName());\n return response;\n }\n }",
"public static void createTicket(Ticket ticket) {\n try {\n Connection conn = Main.conn;\n PreparedStatement statement = conn.prepareStatement(\"INSERT INTO bs_tickets (username, admin, status, question, server, date_created, date_accepted, date_resolved) VALUES (?, ?, ?, ?, ?, ?, ?, ?)\");\n\n statement.setString(1, ticket.username);\n statement.setString(2, ticket.admin);\n statement.setString(3, ticket.status);\n statement.setString(4, ticket.question);\n statement.setString(5, ticket.server);\n statement.setInt(6, ticket.date_created);\n statement.setInt(7, ticket.date_accepted);\n statement.setInt(8, ticket.date_resolved);\n\n statement.executeUpdate();\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n }"
] | [
"0.62697643",
"0.6169218",
"0.53264314",
"0.5295412",
"0.5279232",
"0.52356166",
"0.52311134",
"0.5224574",
"0.5003889",
"0.492472",
"0.48774582",
"0.48764187",
"0.4816759",
"0.47770697",
"0.47714922",
"0.4760585",
"0.47169763",
"0.46984828",
"0.46625862",
"0.4657581",
"0.46473894",
"0.46095303",
"0.45833743",
"0.45791122",
"0.4568972",
"0.45601198",
"0.4552482",
"0.45195338",
"0.44943306",
"0.4485167",
"0.4482968",
"0.44791418",
"0.445975",
"0.4437293",
"0.44280556",
"0.44125617",
"0.4410731",
"0.44092247",
"0.44091532",
"0.44052714",
"0.44045728",
"0.43997863",
"0.43978",
"0.4396269",
"0.43901074",
"0.43888322",
"0.43886644",
"0.43803805",
"0.43772474",
"0.4372832",
"0.43722245",
"0.43720475",
"0.43697283",
"0.4368961",
"0.43663648",
"0.43639466",
"0.43585593",
"0.4355349",
"0.43427292",
"0.43420792",
"0.43333423",
"0.4328862",
"0.4325962",
"0.43257466",
"0.43220782",
"0.4301243",
"0.42966947",
"0.42966193",
"0.4295946",
"0.4292655",
"0.42832237",
"0.42812508",
"0.42668006",
"0.4250548",
"0.4250405",
"0.42501017",
"0.42380413",
"0.4237615",
"0.4236243",
"0.4234632",
"0.4233106",
"0.422456",
"0.4224072",
"0.42171374",
"0.4215968",
"0.4200984",
"0.41897988",
"0.41889513",
"0.41818285",
"0.41811654",
"0.417667",
"0.41748548",
"0.41736394",
"0.41718397",
"0.4169901",
"0.41693565",
"0.41602817",
"0.4159198",
"0.41551882",
"0.4154923"
] | 0.71947515 | 0 |
Inserting comment to the newly created Issue Read the properties file and convert to jsonObject | @Test(enabled = true)
public String createComment() throws Exception{
JSONParser parser = new JSONParser();
Object obj = parser.parse(new FileReader(JSON_FILE_3));
JSONObject jsonObject = (JSONObject) obj;
Response res =
given().
header("cookie","JSESSIONID="+createSession()).and().
header("Content-Type","application/json").
body(jsonObject.toJSONString()).
when().
post("/rest/api/2/issue/10008/comment").
then().
statusCode(201).log().all().extract().response();
//extracting values from the RestAssured Response
JsonPath jp = res.jsonPath();
String commentID = jp.get("id");
System.out.println("New Comment ID:" +commentID);//10002
return commentID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(enabled = true)\n public String createIssue() throws Exception {\n JSONParser parser = new JSONParser();\n Object obj = parser.parse(new FileReader(JSON_FILE_2));\n JSONObject jsonObject = (JSONObject) obj;\n\n Response res =\n given().\n header(\"Cookie\",\"JSESSIONID=\"+createSession()).and().\n header(\"Content-Type\",\"application/json\").\n body(jsonObject.toJSONString()).\n when().\n post(\"/rest/api/2/issue\").\n then().\n statusCode(201).log().all().extract().response();\n\n //extracting values from the RestAssured Response\n JsonPath jp = res.jsonPath();\n String issueID = jp.get(\"id\");\n System.out.println(\"New Issue ID:\" +issueID);//10005\n return issueID;\n }",
"@Test\n public void updateComment() throws Exception{\n JSONParser parser = new JSONParser();\n Object obj = parser.parse(new FileReader(JSON_FILE_4));\n JSONObject jsonObject = (JSONObject) obj;\n\n Response res =\n given().\n header(\"cookie\",\"JSESSIONID=\"+createSession()).and().\n header(\"Content-Type\",\"application/json\").\n body(jsonObject.toJSONString()).\n when().\n put(\"/rest/api/2/issue/10008/comment/10004\").\n then().\n statusCode(200).log().all().extract().response();\n }",
"private void addCommentsToIssue(String comment) {\n\t\tApplicationUser currentUser = ComponentAccessor.getUserManager().getUser(\"NoFails\");\n\t\t// Get access to the Jira comment and component manager\n\t\tCommentManager commentManager = ComponentAccessor.getCommentManager();\n\t\t// Get the last comment entered in on the issue to a String\n\t\tcommentManager.create(issue, currentUser, comment, true);\n\t}",
"private String getIssueData(Integer issue) {\r\n String data = \"{}\";\r\n if (issue != null) {\r\n String issuesTable = env.getProperty(\"postgres.local.issuesTable\");\r\n if (issuesTable != null && !issuesTable.isEmpty()) {\r\n /* Other systems will use the issues Postgres table */\r\n Map<String, Object> issueRec = magicDataTpl.queryForMap(\"SELECT * FROM \" + env.getProperty(\"postgres.local.issuesTable\") + \" WHERE id=?\", issue);\r\n data = jsonMapper.toJsonTree(issueRec).toString();\r\n }\r\n if (data == null || data.isEmpty()) {\r\n data = \"{}\";\r\n } \r\n }\r\n System.out.println(\"Issue data \" + data);\r\n return(data);\r\n }",
"public void createWorkOrders() {\n Main.orderCount += 1;\n\n WorkOrder newOrder = new WorkOrder();\n\n Scanner scanner = new Scanner(System.in);\n\n System.out.println(\"Create a new Work Order:\");\n\n System.out.println(\"Enter description of work requested:\");\n\n newOrder.setDescription(scanner.nextLine());\n\n System.out.println(\"Enter your full name for our records:\");\n\n newOrder.setSenderName(scanner.nextLine());\n\n newOrder.setStatus(Status.INITIAL);\n\n newOrder.setId(Main.orderCount);\n\n //\n // mapper below\n //\n\n String workOrder = \"\";\n ObjectMapper mapper = new ObjectMapper();\n try {\n workOrder = mapper.writeValueAsString(newOrder);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n String fileTitle = newOrder.getId() + \".json\";\n\n //\n // try catch block below for filewriting\n //\n\n try {\n File file = new File(fileTitle);\n FileWriter fileWriter = new FileWriter(file);\n fileWriter.write(workOrder);\n fileWriter.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n createWorkOrders();\n }",
"void createCommentWithAllSingleFileComments(String string);",
"String getIssueDetail();",
"@Before\n public void setupJsonObject() throws IOException {\n jsonObject = JsonUtils.fromString(\"{\\n\"\n + \" \\\"@id\\\" : \\\"http://localhost:8080/fcrepo/rest/hello-world\\\",\\n\"\n + \" \\\"@type\\\" : \\\"koio:KnowledgeObject\\\",\\n\"\n + \" \\\"contributors\\\" : \\\"Kgrid Team\\\",\\n\"\n + \" \\\"hasImplementation\\\" : [ \\\"http://localhost:8080/fcrepo/rest/hello-world/v0.0.1\\\", \\\"http://localhost:8080/fcrepo/rest/hello-world/v0.0.2\\\" ],\\n\"\n + \" \\\"keywords\\\" : \\\"test hello world\\\",\\n\"\n + \" \\\"description\\\" : \\\"Test Hello World \\\",\\n\"\n + \" \\\"identifier\\\" : \\\"ark:/hello/world\\\",\\n\"\n + \" \\\"title\\\" : \\\"Hello World Title\\\",\\n\"\n + \" \\\"junknotinkoio\\\" : \\\"Junk Not in KOIO\\\",\\n\"\n + \" \\\"@context\\\" : {\\n\"\n + \" \\\"hasImplementation\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://kgrid.org/koio#hasImplementation\\\",\\n\"\n + \" \\\"@type\\\" : \\\"@id\\\"\\n\"\n + \" },\\n\"\n + \" \\\"description\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://purl.org/dc/elements/1.1/description\\\"\\n\"\n + \" },\\n\"\n + \" \\\"contributors\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://kgrid.org/koio#contributors\\\"\\n\"\n + \" },\\n\"\n + \" \\\"title\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://purl.org/dc/elements/1.1/title\\\"\\n\"\n + \" },\\n\"\n + \" \\\"keywords\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://kgrid.org/koio#keywords\\\"\\n\"\n + \" },\\n\"\n + \" \\\"identifer\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://purl.org/dc/elements/1.1/identifer\\\"\\n\"\n + \" },\\n\"\n + \" \\\"premis\\\" : \\\"http://www.loc.gov/premis/rdf/v1#\\\",\\n\"\n + \" \\\"test\\\" : \\\"info:fedora/test/\\\",\\n\"\n + \" \\\"rdfs\\\" : \\\"http://www.w3.org/2000/01/rdf-schema#\\\",\\n\"\n + \" \\\"xsi\\\" : \\\"http://www.w3.org/2001/XMLSchema-instance\\\",\\n\"\n + \" \\\"xmlns\\\" : \\\"http://www.w3.org/2000/xmlns/\\\",\\n\"\n + \" \\\"rdf\\\" : \\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\",\\n\"\n + \" \\\"fedora\\\" : \\\"http://fedora.info/definitions/v4/repository#\\\",\\n\"\n + \" \\\"xml\\\" : \\\"http://www.w3.org/XML/1998/namespace\\\",\\n\"\n + \" \\\"koio\\\" : \\\"http://kgrid.org/koio#\\\",\\n\"\n + \" \\\"ebucore\\\" : \\\"http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#\\\",\\n\"\n + \" \\\"ldp\\\" : \\\"http://www.w3.org/ns/ldp#\\\",\\n\"\n + \" \\\"xs\\\" : \\\"http://www.w3.org/2001/XMLSchema\\\",\\n\"\n + \" \\\"fedoraconfig\\\" : \\\"http://fedora.info/definitions/v4/config#\\\",\\n\"\n + \" \\\"foaf\\\" : \\\"http://xmlns.com/foaf/0.1/\\\",\\n\"\n + \" \\\"dc\\\" : \\\"http://purl.org/dc/elements/1.1/\\\"\\n\"\n + \" }\\n\"\n + \"}\");\n\n\n }",
"public void createDefectBuilder(String defName, String testcaseId, String workspaceId, String projId, String DefSeverity,\r\n\t\t\t String DefOwner, String DefNotes, String storyId, String attachmentPath){\r\n\r\n\t \r\n\t try{\r\n\t \r\nMap<String, String> reqMap = new HashMap<String, String>();\r\nreqMap.put(RallyConstants.NAME, defName);\r\nreqMap.put(RallyConstants.CREATEDATE, DateUtil.getCurrentDateTime(RallyConstants.CREATION_DATE_FORMAT));\r\nreqMap.put(RallyConstants.TESTCASE, testcaseId);\r\nreqMap.put(RallyConstants.PROJECT, projId);\r\nreqMap.put(RallyConstants.SEVERITY, DefSeverity);\r\nreqMap.put(RallyConstants.OWNER, DefOwner);\r\nreqMap.put(RallyConstants.NOTES, DefNotes);\r\nreqMap.put(RallyConstants.WORKSPACE, workspaceId);\r\n//reqMap.put(\"Requirement\", storyId);\r\n\r\n\tRequestInfo reqInfo= new RequestInfo(RallyConstants.DEFECT, RallyConstants.CREATE, reqMap);\r\n\ttry {\r\n\t\t\tcreate(reqInfo, attachmentPath);\r\n\t\t\tSystem.out.println(\"done with logging defect. Now updating the testcase result\");\r\n\t\t\t\r\n\t\t} catch (DefectException ex) {\r\n\t\tlog.error(ex.getMessage());\r\n\t\t} catch (IOException 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}catch(NullPointerException e){\r\n\t\tlog.error(e.getMessage());\r\n\t\t}\r\n\t\t}",
"void createSingleFileComment(ChangedFile file, Integer line, String comment);",
"org.hl7.fhir.String addNewComments();",
"@Schema(description = \"A comment about the worklog in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/). Optional when creating or updating a worklog.\")\n public Object getComment() {\n return comment;\n }",
"public void create(RequestInfo requestInfo, String attachmentPath) throws DefectException, IOException{\r\n\t\tlog.info(\"Start - create\");\r\n\t\tcreateInstance();\r\n\t\t\r\n\t\tif(CommonUtil.isNull(requestInfo)){\r\n\t\t\tlog.error(\"Request Info is null - \"+ requestInfo);\t\t\t\r\n\t\t\tthrow new DefectException(\"failed to create, request information is missing\");\r\n\t\t}\r\n try {\r\n \t\r\n \tJsonObject newEntry = convertMapToJson(requestInfo.getEntry().get(RallyConstants.CREATE));\r\n \tCreateRequest createRequest = new CreateRequest(requestInfo.getRequestType(), newEntry);\r\n\t CreateResponse createResponse = null;\t \r\n\t \r\n\t\t\ttry {\r\n\t\t\t\tcreateResponse = restApi.create(createRequest);\t\t\t\t\r\n\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlog.error(\"failed to create new entry, message : \" + e.toString() + \"RallyInfo -\" + rallyInfo);\r\n\t \tthrow new DefectException(\"failed to create new entry, message : \" + e.toString());\r\n\t\t\t}\r\n\t\t\t\r\n if (createResponse.wasSuccessful()) {\r\n //Read defect\r\n String ref = Ref.getRelativeRef(createResponse.getObject().get(\"_ref\").getAsString());\r\n //String imageFilePath = \"/Users/sonamdeo/Desktop/\";\r\n String imageFileName = \"error.png\";\r\n String fullImageFile = attachmentPath + File.separator + imageFileName;\r\n String imageBase64String;\r\n long attachmentSize;\r\n \r\n // Open file\r\n RandomAccessFile myImageFileHandle;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tmyImageFileHandle = new RandomAccessFile(fullImageFile, \"r\");\r\n long longLength = myImageFileHandle.length();\r\n long maxLength = 5000000;\r\n if (longLength >= maxLength) throw new IOException(\"File size >= 5 MB Upper limit for Rally.\");\r\n int fileLength = (int) longLength; \r\n\r\n // Read file and return data\r\n byte[] fileBytes = new byte[fileLength];\r\n myImageFileHandle.readFully(fileBytes);\r\n imageBase64String = Base64.encodeBase64String(fileBytes);\r\n attachmentSize = fileLength;\r\n \r\n String workspaceRef = \"/\" + RallyConstants.WORKSPACE + \"/\" + TestBedManager.INSTANCE.getDefectConfig().getWorkspaceId();\r\n \r\n // First create AttachmentContent from image string\r\n JsonObject myAttachmentContent = new JsonObject();\r\n \r\n myAttachmentContent.addProperty(\"Workspace\", workspaceRef);\r\n \r\n myAttachmentContent.addProperty(\"Content\", imageBase64String);\r\n CreateRequest attachmentContentCreateRequest = new CreateRequest(\"AttachmentContent\", myAttachmentContent);\r\n CreateResponse attachmentContentResponse = restApi.create(attachmentContentCreateRequest);\r\n String myAttachmentContentRef = attachmentContentResponse.getObject().get(\"_ref\").getAsString();\r\n \r\n //Create the Attachment\r\n JsonObject myAttachment = new JsonObject();\r\n myAttachment.addProperty(\"Artifact\", ref);\r\n myAttachment.addProperty(\"Content\", myAttachmentContentRef);\r\n myAttachment.addProperty(\"Workspace\", workspaceRef);\r\n myAttachment.addProperty(\"Name\", RallyConstants.NAME);\r\n myAttachment.addProperty(\"Description\", RallyConstants.DESCRIPTION);\r\n myAttachment.addProperty(\"ContentType\",RallyConstants.CONTENTTYPE);\r\n myAttachment.addProperty(\"Size\", attachmentSize);\r\n // myAttachment.addProperty(\"User\", userRef); \r\n\r\n CreateRequest attachmentCreateRequest = new CreateRequest(\"Attachment\", myAttachment);\r\n CreateResponse attachmentResponse = restApi.create(attachmentCreateRequest);\r\n \r\n String myAttachmentRef = attachmentResponse.getObject().get(\"_ref\").getAsString();\r\n\r\n if (attachmentResponse.wasSuccessful()) {\r\n \t log.info(\"Successfully created Attachment\");\r\n \r\n } else {\r\n String[] attachmentContentErrors;\r\n attachmentContentErrors = attachmentResponse.getErrors();\r\n System.out.println(\"Error occurred creating Attachment: \");\r\n for (int j=0; j<attachmentContentErrors.length;j++) {\r\n System.out.println(attachmentContentErrors[j]);\r\n }\r\n }\r\n \r\n }catch (FileNotFoundException e1) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception e) {\r\n System.out.println(\"Exception occurred while attempting to create Content and/or Attachment: \");\r\n e.printStackTrace(); \r\n }\r\n\t\t\t\t\t\r\n\r\n } else {\r\n String[] createErrors;\r\n createErrors = createResponse.getErrors();\r\n System.out.println(\"Error occurred creating a defect: \");\r\n for (int j=0; j<createErrors.length;j++) {\r\n System.out.println(createErrors[j]);\r\n }\r\n } \r\n \r\n } finally {\r\n \t\r\n \t try {\r\n\t\t\t\t\trestApi.close();\r\n\t\t\t\t} catch (IOException 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 } \r\n}",
"GistComment deserializeCommentFromJson(String json);",
"@Nonnull\n private static JsonObject createRevisionChange(String workingRevId, JsonObject change) {\n return new JsonObject().put(workingRevId, change);\n }",
"@Override\r\n protected void parseIssues()\r\n {\n\r\n }",
"public void testClarificationJSON() throws Exception {\n\n IInternalContest contest = new UnitTestData().getContest();\n JSONTool jsonTool= new JSONTool(contest, null);\n\n Clarification[] clarifications = contest.getClarifications();\n Arrays.sort(clarifications, new ClarificationComparator());\n\n Clarification clarification = clarifications[4];\n ClarificationAnswer answer = null;\n String json = jsonTool.convertToJSON(clarification, answer ).toString();\n\n int problemNumber = JSONUtilities.getProblemIndex(contest, clarification.getProblemId());\n assertEquals(\"Expected problem number \", 1, problemNumber);\n\n// editFile(writeFile(new File(\"/tmp/stuf.\" + System.currentTimeMillis() + \".json\"), json));\n\n // System.out.println(\"debug clar json = \"+json);\n\n // debug json = {\"id\":\"5\", \"from_team_id\":\"5\", \"to_team_id\":\"5\", \"reply_to_id\": null, \"problem_id\":\"1\", \"text\":\"Why #2? from team5\", \"start_time\": null, \"start_contest_time\":\"0.000\"}\n\n asertEqualJSON(json, \"text\", \"Why #2? from team5\");\n asertEqualJSON(json, \"reply_to_id\", \"null\");\n asertEqualJSON(json, \"problem_id\", jsonTool.getProblemId(contest.getProblem(clarification.getProblemId())));\n\n// assertJSONStringValue(json, \"problem_id\", \"1\"); SOMEDAY\n assertJSONStringValue(json, \"problem_id\", jsonTool.getProblemId(contest.getProblem(clarification.getProblemId())));\n// assertJSONStringValue(json, \"id\", \"5\"); SOMEDAY\n assertJSONStringValue(json, \"id\", clarification.getElementId().toString());\n assertJSONStringValue(json, \"from_team_id\", \"5\" );\n assertJSONNullValue(json, \"to_team_id\");\n }",
"@Test\n public void testCreateJsonFromIssueEntity() throws Exception {\n List<IssueEntity> issueEntities = new ArrayList<IssueEntity>();\n \n String json1 = \"\"\n + \"{\\n\"\n + \" \\\"issues_in_text\\\": {\\n\"\n + \" \\\"context\\\": \\\"vimger test context\\\",\\n\"\n + \" \\\"k12n\\\": \\\"000\\\",\\n\"\n + \" \\\"subject\\\": \\\"000\\\",\\n\"\n + \" \\\"dod\\\": 60,\\n\"\n + \" \\\"type\\\": \\\"000\\\",\\n\"\n + \" \\\"qas\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"question\\\": \\\"which one is right?\\\",\\n\"\n + \" \\\"options\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"A. 1+1=1\\\",\\n\"\n + \" \\\"answer\\\": \\\"1\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"B. 1+1=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"0\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"C. 2+2=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"1\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"D. 2+2=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"0\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \"}\";\n IssueEntity issue1 = converter.createIssueEntityFromJson(json1);\n issueEntities.add(issue1);\n \n String json2 = \"\"\n + \"{\\n\"\n + \" \\\"issues_in_text\\\": {\\n\"\n + \" \\\"context\\\": \\\"vimger test context\\\",\\n\"\n + \" \\\"k12n\\\": \\\"010\\\",\\n\"\n + \" \\\"subject\\\": \\\"010\\\",\\n\"\n + \" \\\"dod\\\": 70,\\n\"\n + \" \\\"type\\\": \\\"010\\\",\\n\"\n + \" \\\"qas\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"question\\\": \\\"which one is wrong?\\\",\\n\"\n + \" \\\"options\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"A. 1+1=1\\\",\\n\"\n + \" \\\"answer\\\": \\\"0\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"B. 1+1=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"1\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"C. 2+2=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"0\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"D. 2+2=4\\\",\\n\"\n + \" \\\"answer\\\": \\\"1\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \"}\";\n IssueEntity issue2 = converter.createIssueEntityFromJson(json2);\n issueEntities.add(issue2);\n \n String actual = converter.createJsonFromIssueEntity(issueEntities);\n \n assertEquals(issue1, actual);\n }",
"public static void main(String[] args) {\n\t\tRestAssured.baseURI=\"http://localhost:8080/\";\n\t\t\n\t\t//Login Scenario\n\t\tSessionFilter session = new SessionFilter();\n\tString response = given()\n\t\t\t.relaxedHTTPSValidation() // method may be needed to be verified through HTTPS protocol (secured protocol)\n\t\t.header(\"Content-Type\", \"application/json\")\n\t\t.body(\"\t{ \\\"username\\\": \\\"usernameforjira\\\", \\\"password\\\": \\\"passwordforjira\\\" }\")\n\t\t.log()\n\t\t.all()\n\t\t.filter(session) // response data will be stored in the session object to be passed in future API requests\n\t\t.when()\n\t\t.post(\"/rest/auth/1/session\")\n\t\t.then()\n\t\t.extract()\n\t\t.response()\n\t\t.asString();\n\tString expectedMessage = \"Hello, how are you?\";\n\t\t\n\t// add comment to issue\n\t\tString addCommentResponse = given()\n\t\t.pathParam(\"key\", \"10100\")\n\t\t.log()\n\t\t.all()\n\t\t.header(\"Content-Type\", \"application/json\")\n\t\t.header(\"JSESSIONID\", \"\")\n\t\t.body(\"{\\r\\n\" + \n\t\t\t\t\" \\\"body\\\": \\\"\" + expectedMessage + \"\\\",\\r\\n\" + \n\t\t\t\t\" \\\"visibility\\\": {\\r\\n\" + \n\t\t\t\t\" \\\"type\\\": \\\"role\\\",\\r\\n\" + \n\t\t\t\t\" \\\"value\\\": \\\"Administrators\\\"\\r\\n\" + \n\t\t\t\t\" }\\r\\n\" + \n\t\t\t\t\"}\")\n\t\t.filter(session)\n\t\t.when()\n\t\t.post(\"/rest/api/2/issue/{key}/comment\")\n\t\t.then()\n\t\t.log()\n\t\t.all()\n\t\t.assertThat()\n\t\t.statusCode(201)\n\t\t.extract()\n\t\t.response()\n\t\t.asString();\n\t\tJsonPath js = new JsonPath(addCommentResponse);\n\t\tString commentId = js.getString(\"id\");\n\t\t\n\t\t// Add attachment to issue\n\t\tgiven()\n\t\t.header(\"X-Atlassian-Token\", \"no-check\")\n\t\t.filter(session)\n\t\t.pathParam(\"key\", \"10100\")\n\t\t.header(\"Content-Type\",\"multipart/form-data\")\n\t\t// Sending files using multiPart() method\n\t\t.multiPart(\"file\", new File(\"C:\\\\Users\\\\SQ363ZW\\\\Desktop\\\\EY Projects\\\\eclipse-workspace\\\\DemoProject\\\\jira.txt\")) // \"file\" is the key, \"file-path\" is the value passed in the new File() Object\n\t\t.when()\n\t\t.post(\"rest/api/2/issue/{key}/attachments\")\n\t\t.then()\n\t\t.log()\n\t\t.all()\n\t\t.assertThat()\n\t\t.statusCode(200);\n\t\t\n\t\t// get issue information\n\t\tString issueDetails =\n\t\tgiven()\n\t\t.filter(session)\n\t\t.pathParam(\"key\", \"10100\")\n\t\t.queryParam(\"fields\", \"comment\") // limit number of fields returned in GET request\n\t\t.when()\n\t\t.get(\"rest/api/2/issue/{key}\")\n\t\t.then()\n\t\t.log()\n\t\t.all()\n\t\t.extract()\n\t\t.response()\n\t\t.asString();\n\t\tSystem.out.println(issueDetails);\n\t\t\n\t\tJsonPath js1 = new JsonPath(issueDetails);\n\t\tint commentsCount = js1.getInt(\"fields.comment.comments.size\");\n\t\tfor (int i=0;i<commentsCount;i++) {\n\t\t\tString commentIdIssue = js1.get(\"fields.comment.comments[\" + i + \"].id\").toString();\n\t\t\tif (commentIdIssue.equalsIgnoreCase(commentId)) {\n\t\t\tString message = js1.get(\"fields.comment.comments[\"+i+\"].body\").toString();\n\t\t\tSystem.out.println(message);\n\t\t\tAssert.assertEquals(message, expectedMessage);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"@Test\n public void testCreateIssueEntityFromJson() throws Exception {\n String json = \"\"\n + \"{\\n\"\n + \" \\\"issues_in_text\\\": {\\n\"\n + \" \\\"context\\\": \\\"vimger test context\\\",\\n\"\n + \" \\\"k12n\\\": \\\"000\\\",\\n\"\n + \" \\\"subject\\\": \\\"000\\\",\\n\"\n + \" \\\"dod\\\": 60,\\n\"\n + \" \\\"type\\\": \\\"000\\\",\\n\"\n + \" \\\"qas\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"question\\\": \\\"which one is right?\\\",\\n\"\n + \" \\\"options\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"A. 1+1=1\\\",\\n\"\n + \" \\\"answer\\\": \\\"1\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"B. 1+1=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"0\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"C. 2+2=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"1\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"option\\\": \\\"D. 2+2=2\\\",\\n\"\n + \" \\\"answer\\\": \\\"0\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \"}\";\n \n IssueEntity issue = converter.createIssueEntityFromJson(json);\n \n assertEquals(\"vimger test context\", issue.getContext());\n assertEquals(\"000\", issue.getK12n());\n assertEquals(\"000\", issue.getSubject());\n assertEquals(60, issue.getDod(), 0.1);\n assertEquals(\"000\", issue.getType());\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 }",
"Comment createComment();",
"private void loadHelpContent() {\n\t\tGson gson = new GsonBuilder().setPrettyPrinting().create();\n\t\tBufferedReader br;\n\t\ttry {\n\t\t\tbr = new BufferedReader(\n\t\t\t\t\tnew UnicodeReader(new FileInputStream(new File(getHelpContentFilePath())), \"UTF-8\"));\n\t\t\tsx3ConfigurationHelp = gson.fromJson(br, SX3ConfiguartionHelp.class);\n\t\t\tSX3Manager.getInstance().setSx3ConfiguartionHelp(sx3ConfigurationHelp);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tsx3ConfigurationHelp = new SX3ConfiguartionHelp();\n\t\t\tSX3Manager.getInstance().addLog(\"<span style='color:red;'>\" + e.getMessage() + \".</span><br>\");\n\n\t\t}\n\t}",
"private LabWork convertJsonObjIntoLabWork(JSONObject jsonObject) throws java.text.ParseException {\n LabWork lw = new LabWork();\n // set ID\n Long newID = Long.parseLong(String.valueOf(jsonObject.get(\"id\")));\n System.out.println(newID);\n if(CollectionManager.IDChecker.contains(newID)){\n System.out.println(\"ID is duplicate, please insert valid input!\");\n }\n else {\n CollectionManager.IDChecker.add(newID);\n lw.setId(newID);\n }\n //set Name\n lw.setName((String)jsonObject.get(\"Name\"));\n System.out.println(lw.getName());\n\n // set Coordinates\n JSONObject coordinatesObj = (JSONObject) jsonObject.get(\"coordinates\");\n lw.setCoordinates(new Coordinates(Math.toIntExact(Long.parseLong(String.valueOf(coordinatesObj.get(\"x\")))), Double.parseDouble(String.valueOf(coordinatesObj.get(\"y\")))));\n\n /*\n parse String to LocalDateTime\n */\n\n// // date in String\n// String dateString = (String)jsonObject.get(\"creationDate\");\n//\n// //build formatter\n// DateTimeFormatter formatter = DateTimeFormatter.ISO_DATE_TIME;\n// //Parse String to LocalDateTime\n// LocalDateTime dateTime = LocalDateTime.parse(dateString,formatter);\n// lw.setCreationDate(dateTime);\n// //System.out.println(p.getCreationDate());\n\n // set minimalPoint\n lw.setMinimalPoint(Long.parseLong(String.valueOf(jsonObject.get(\"minpoint\"))));\n\n // set difficulty\n String difficultyString = (String)jsonObject.get(\"difficulty\");\n Difficulty difficultyEnum = Difficulty.valueOf(difficultyString);\n lw.setDifficulty(difficultyEnum);\n\n\n// set weight\n// lw.setWeight(Math.toIntExact(Long.parseLong(String.valueOf(jsonObject.get(\"weight\")))));\n\n// // set nationality\n// String countryString = (String)jsonObject.get(\"nationality\");\n// Country countryEnum = Country.valueOf(countryString);\n// lw.setNationality(countryEnum);\n //set author\n// set location\n JSONObject authorObj = (JSONObject)jsonObject.get(\"author\");\n JSONObject locationObj = (JSONObject)authorObj.get(\"location\");\n //System.out.println(locationObj);\n// lw.setLocation(new Location(\n// Math.toIntExact(Long.parseLong(String.valueOf(locationObj.get(\"x\")))),\n// Long.parseLong(String.valueOf(locationObj.get(\"y\"))),\n// (String)locationObj.get(\"name\")\n// ));\n\n lw.setAuthor(new Person(\n (String)authorObj.get(\"name\"), Double.parseDouble(String.valueOf(authorObj.get(\"weight\"))),Color.valueOf(String.valueOf(authorObj.get(\"eye color\"))),HairColor.valueOf(String.valueOf(authorObj.get(\"hair color\"))),Country.valueOf(String.valueOf(authorObj.get(\"nationality\"))), new Location(\n Integer.parseInt((String.valueOf(locationObj.get(\"x\")))),\n Long.parseLong(String.valueOf(locationObj.get(\"y\"))),\n (String)locationObj.get(\"name\")\n )\n ));\n\n\n\n return lw;\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 }",
"@Test\n public void testSetComments_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String comments = \"\";\n\n fixture.setComments(comments);\n\n }",
"protected JSONObject getJsonRepresentation() throws Exception {\r\n\r\n JSONObject jsonObj = new JSONObject();\r\n jsonObj.put(\"note\", note);\r\n return jsonObj;\r\n }",
"void extractDataFromJson(String commentData);",
"@Test(groups = { \"wso2.esb\" }, description = \"agilezen {createComment} integration test with mandatory parameters.\", dependsOnMethods = { \"testCreateStoryWithOptionalParameters\" })\n public void testCreateCommentWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:createComment\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createComment_mandatory.json\");\n final String commentIdMandatory = esbRestResponse.getBody().getString(\"id\");\n connectorProperties.setProperty(\"commentIdMandatory\", commentIdMandatory);\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/comments/\"\n + commentIdMandatory;\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(connectorProperties.getProperty(\"textCommentMandatory\"), apiRestResponse.getBody()\n .getString(\"text\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"createTime\").split(\"\\\\.\")[0], apiRestResponse\n .getBody().getString(\"createTime\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"author\").getString(\"id\"), apiRestResponse\n .getBody().getJSONObject(\"author\").getString(\"id\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"author\").getString(\"userName\"), apiRestResponse\n .getBody().getJSONObject(\"author\").getString(\"userName\"));\n }",
"@Override\n\tpublic String createJiraConfig(JiraParametersDTO jiraParametersDTO) {\n\t\treturn null;\n\t}",
"public IssueImpl(int p_levelObjectType, long p_levelObjectId, String p_title,\n String p_priority, String p_status, String p_category, String severity,\n String p_creatorId, String p_commentText)\n {\n super(Calendar.getInstance().getTime(), p_creatorId, p_title, null);\n m_levelObjectType = p_levelObjectType;\n m_levelObjectId = p_levelObjectId;\n setTitle(p_title);\n setPriority(p_priority);\n setStatus(p_status);\n setCategory(p_category);\n setSeverity(severity);\n addHistory(p_creatorId, p_commentText);\n }",
"@Test(dataProvider = \"Data\")\r\n\tpublic void createNewInc(String filename) {\n\t\tRestAssured.baseURI = \"https://dev78371.service-now.com/api/now/table/incident\";\r\n\t\t\r\n\t\t//Authentication (basic)\r\n\t\tRestAssured.authentication = RestAssured.basic(\"admin\", \"bv0MMhw0tUXC\");\r\n\t\t\r\n\t\t//Create a new File\r\n\t\tFile filesrc = new File(filename);\r\n\t\t\r\n\t\t/*//Create a new File\r\n\t\tFile filesrc = new File(\"./data1.json\");*/\r\n\t\t\r\n\t\t\r\n\t//Request type - post -> Response using file src\r\n\t\tResponse response = RestAssured\r\n\t\t\t\t.given()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t\t.body(filesrc)\r\n\t\t\t\t.post();\r\n\t\t\r\n\t\t\r\n\t\t/*Request type - post -> Response directly\r\n\t\tResponse response = RestAssured\r\n\t\t\t\t.given()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t\t.body(\"{\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"short_description\\\": \\\"Short description created\\\",\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"description\\\": \\\"Description created via postman\\\",\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"category\\\": \\\"Rest API\\\"\\r\\n\" + \r\n\t\t\t\t\t\t\"}\")\r\n\t\t\t\t.post()*/\r\n\t\t\r\n\t\t//Validate Response code\r\n\t\tSystem.out.println(response.getStatusCode());\r\n\t\t\r\n\t\t//Check the response format\r\n\t\tSystem.out.println(response.getContentType());\r\n\t\t\r\n\t\t//print the response from postman console\r\n\t\tresponse.prettyPrint();\r\n\t\t\r\n\t\t//to get the response in json\r\n\t\tJsonPath jsonresponse = response.jsonPath();\r\n\t\t\r\n\t\t//to get a single record\r\n\t\tString sys_id = jsonresponse.get(\"result.sys_id\");\r\n\t\tSystem.out.println(\"The sys_id is: \"+sys_id);\r\n\t\t\r\n\t\t\r\n\r\n\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"@PostMapping(consumes = \"application/json\")\n\tpublic void create (@Valid @RequestBody Bug bug) {\n\t\tbugService.createBug(bug);\n\t}",
"private void addComment() {\r\n Editor classEditor = null;\r\n try {\r\n classEditor = curClass.getEditor();\r\n } catch (Exception e) {\r\n }\r\n if (classEditor == null) {\r\n System.out.println(\"Can't create Editor for \" + curClass);\r\n return;\r\n }\r\n\r\n int textLen = classEditor.getTextLength();\r\n TextLocation lastLine = classEditor.getTextLocationFromOffset(textLen);\r\n lastLine.setColumn(0);\r\n // The TextLocation now points before the first character of the last line of the current text\r\n // which we'll assume contains the closing } bracket for the class\r\n classEditor.setText(lastLine, lastLine, \"// Comment added by SimpleExtension\\n\");\r\n }",
"public CrashReport withComment(String comment);",
"@Test\r\n public void testOpeningTicketPurposeJsonSerialization() {\r\n System.out.println(\"OpeningTicketPurposeJsonSerialization\");\r\n\r\n String filename = \"OpeningTicketPurpose.json\";\r\n String testFilename = \"testOpeningTicketPurpose.json\";\r\n OpeningTicketPurpose openingTicketPurpose = null;\r\n OpeningTicketPurpose expOpeningTicketPurpose = null;\r\n String json;\r\n\r\n try {\r\n openingTicketPurpose = objectMapper.readValue(new File(filename), OpeningTicketPurpose.class);\r\n System.out.println(\"openingTicketPurpose:\" + openingTicketPurpose);\r\n objectMapper.writeValue(new File(testFilename), openingTicketPurpose);\r\n\r\n json = objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(openingTicketPurpose);\r\n System.out.println(\" json(openingTicketPurpose):\" + json);\r\n\r\n expOpeningTicketPurpose = objectMapper.readValue(new File(filename), OpeningTicketPurpose.class);\r\n System.out.println(\"expOpeningTicketPurpose:\" + expOpeningTicketPurpose);\r\n } catch (IOException ex) {\r\n Logger.getLogger(OpeningTicketPurposeTest.class.getName()).log(Level.SEVERE, null, ex);\r\n fail(ex.getMessage());\r\n }\r\n assertNotNull(openingTicketPurpose);\r\n assertNotNull(expOpeningTicketPurpose);\r\n assertEquals(openingTicketPurpose.toString(), expOpeningTicketPurpose.toString());\r\n }",
"@Test\n public void fieldComments() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Set a value for the document's \"Comments\" built-in property.\n doc.getBuiltInDocumentProperties().setComments(\"My comment.\");\n\n // Create a COMMENTS field to display the value of that built-in property.\n FieldComments field = (FieldComments) builder.insertField(FieldType.FIELD_COMMENTS, true);\n field.update();\n\n Assert.assertEquals(\" COMMENTS \", field.getFieldCode());\n Assert.assertEquals(\"My comment.\", field.getResult());\n\n // If we give the COMMENTS field's Text property value and update it, the field will\n // overwrite the current value of the \"Comments\" built-in property with the value of its Text property,\n // and then display the new value.\n field.setText(\"My overriding comment.\");\n field.update();\n\n Assert.assertEquals(\" COMMENTS \\\"My overriding comment.\\\"\", field.getFieldCode());\n Assert.assertEquals(\"My overriding comment.\", field.getResult());\n\n doc.save(getArtifactsDir() + \"Field.COMMENTS.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.COMMENTS.docx\");\n\n Assert.assertEquals(\"My overriding comment.\", doc.getBuiltInDocumentProperties().getComments());\n\n field = (FieldComments) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_COMMENTS, \" COMMENTS \\\"My overriding comment.\\\"\", \"My overriding comment.\", field);\n Assert.assertEquals(\"My overriding comment.\", field.getText());\n }",
"public void createJSON(String filePath, JSONObject jsonObject) throws ExistException, UnimplementedException, UnderlyingStorageException {\n \t\tSystem.err.println(jsonObject);\n \t\tjsonObject=cspace264Hack_munge(jsonObject,filePath);\n \t\tautocreateJSON(\"\",jsonObject);\n \t\t// XXX End of here's what we do because of CSPACE-264\t\t\n \t\t// Here's what we should do ->\n \t\t// throw new UnimplementedException(\"Cannot create collectionobject at known path, use autocreateJSON\");\n \t}",
"@javax.annotation.Nullable\n @ApiModelProperty(example = \"##### Issue At approximately 17:02 UTC on 2013-04-21, our master database server unexpectedly went unresponsive to all network. A reboot of the machine at 17:05 UTC resulted in a failed mount of a corrupted EBS volume, and we made the decision at that time to fail over the slave database. ##### Resolution At 17:12 UTC, the slave database had been successfully promoted to master and the application recovered enough to accept web traffic again. A new slave database node was created and placed into the rotation to guard against future master failures. The promoted slave database performed slowly for the next couple of hours as the query cache began to warm up, and eventually settled into a reasonable performance profile around 20:00 UTC. ##### Future Mitigation Plans Over the past few months, we have been working on an overhaul to our data storage layer with a migration from a Postgres setup to a distributed, fault-tolerant, multi-region data layer using Riak. This initiative has been prioritized, and the migration will be performed in the coming weeks. We will notify our clients of the scheduled downtime via an incident on this status site, and via a blog post. \", value = \"Body of the Postmortem.\")\n\n public String getPostmortemBody() {\n return postmortemBody;\n }",
"public String getComment(){\n return comment;\n }",
"public ExtendedIssue(Issue issue) {\n this.issue = issue;\n this.reporterMetrics = new ExtendedUser(this.issue.getReporter());\n\n loadPriorityProperties();\n loadResolutionProperties();\n }",
"private JSONObject importFlowJSON (Path pathToFolder) {\n // Create a JSONParser to parse the content of the file\n JSONParser parser = new JSONParser();\n\n // The JSONObject instance that will be returned\n JSONObject flow;\n\n try{\n // Read and parse the json file\n flow = (JSONObject) parser.parse(new FileReader(pathToFolder.toString() + \"/\" + FLOW_FILE_NAME));\n // If the file has been found and parsed we return it as a JSONObject\n return flow;\n } catch (ParseException | IOException e) {\n // If the file hasn't been found we return null\n e.printStackTrace();\n return null;\n }\n }",
"public static void main(String[] args) throws IOException {\n String readPath=\"C:\\\\Users\\\\masou\\\\IdeaProjects\\\\SDETjavaBATCH10\\\\Files\\\\Config1.properties\";\n String writePath=\"C:\\\\Users\\\\masou\\\\IdeaProjects\\\\SDETjavaBATCH10\\\\Files\\\\Config.properties\";\n\n\n FileInputStream fileInputStream=new FileInputStream(readPath);\n FileInputStream fileInputStream1=new FileInputStream(writePath);\n\n\n Properties properties1=new Properties();\n properties1.load(fileInputStream1);\n\n Properties properties=new Properties();\n properties.load(fileInputStream);\n\n String URL=properties.get(\"URL\").toString(); // store it in a string\n\n\n properties1.put(\"URL\",URL);\n FileOutputStream fileOutputStream=new FileOutputStream(writePath);\n properties1.store(fileOutputStream,\"some comments\");\n\n\n\n }",
"@PutMapping(consumes = \"application/json\")\n\tpublic void updateBug(@RequestBody Bug bug) {\t\t\n\t\tbugService.updateBugDetails(bug);\t\t\n\t}",
"public PropFileReader(String filename, String jsonFileName){\n this.ruleJsonFile=jsonFileName;\n this.filename=filename;\n this.propertyBuilder();\n }",
"private void verifyCommentDetails(ZmailAccount commentor, String comment) throws HarnessException {\n\t\t\t\n\t\tString filename = \"filename\"+ ZmailSeleniumProperties.getUniqueString() +\".txt\";\n\t\tString filePath = ZmailSeleniumProperties.getBaseDirectory()\n\t\t\t\t+ \"/data/public/documents/doc01/plaintext.txt\";\n\t\tString subFolderName = \"subFolder\" + ZmailSeleniumProperties.getUniqueString();\n\n\t\t\n\n\n\n\t\t// Save uploaded file through SOAP\n\t\tFolderItem briefcaseRootFolder = FolderItem.importFromSOAP(app.zGetActiveAccount(), SystemFolder.Briefcase);\n\n\t\t// Create a shared folder\n\t\tapp.zGetActiveAccount().soapSend(\n\t\t\t\t\"<CreateFolderRequest xmlns='urn:zmailMail'>\"\n\t\t\t+\t\t\"<folder name='\" + subFolderName + \"' l='\" + briefcaseRootFolder.getId() + \"' view='document'/>\"\n\t\t\t+\t\"</CreateFolderRequest>\");\n\t\tFolderItem subFolderItem = FolderItem.importFromSOAP(app.zGetActiveAccount(), subFolderName);\n\t\tZAssert.assertNotNull(subFolderItem, \"Verify the subfolder is available\");\n\n\t\tapp.zGetActiveAccount().soapSend(\n\t\t\t\t\"<FolderActionRequest xmlns='urn:zmailMail'>\"\n\t\t\t+\t\t\"<action op='grant' id='\" + subFolderItem.getId() + \"'>\"\n\t\t\t+\t\t\t\"<grant gt='guest' perm='rwidxa' d='\"+ commentor.EmailAddress +\"'/>\"\n\t\t\t+\t\t\"</action>\"\n\t\t\t+\t\"</FolderActionRequest>\");\n\n\t\t\n\t\t// Upload file to server through RestUtil\n\t\tString attachmentId = app.zGetActiveAccount().uploadFile(filePath);\n\n\t\tapp.zGetActiveAccount().soapSend(\n\t\t\t\t\t\"<SaveDocumentRequest xmlns='urn:zmailMail'>\"\n\t\t\t\t+\t\t\"<doc name='\"+ filename +\"' l='\" + subFolderItem.getId() + \"'>\"\n\t\t\t\t+\t\t\t\"<upload id='\" + attachmentId + \"'/>\"\n\t\t\t\t+\t\t\"</doc>\"\n\t\t\t\t+\t\"</SaveDocumentRequest>\");\n\t\tString documentId = app.zGetActiveAccount().soapSelectValue(\"//mail:doc\", \"id\");\n\n\n\n\n\t\t// Add comments to the file using SOAP\n\t\tcommentor.soapSend(\n\t\t\t\t\t\"<AddCommentRequest xmlns='urn:zmailMail'>\"\n\t\t\t\t+\t\t\"<comment parentId='\"+ app.zGetActiveAccount().ZmailId + \":\" + documentId + \"' text='\" + XmlStringUtil.escapeXml(comment) + \"'/>\"\n\t\t\t\t+\t\"</AddCommentRequest>\");\n\n\t\t// Get file comments through SOAP\n\t\tcommentor.soapSend(\n\t\t\t\t\t\"<GetCommentsRequest xmlns='urn:zmailMail'>\"\n\t\t\t\t+\t\t\"<comment parentId='\"+ app.zGetActiveAccount().ZmailId + \":\" + documentId + \"'/>\"\n\t\t\t\t+\t\"</GetCommentsRequest>\");\n\n\n\t\t\n\n\t\t// Sync up\n//\t\tapp.zPageOctopus.zToolbarPressButton(Button.B_GETMAIL);\n\n\t\t// Click on My Files tab\n\t\tapp.zPageOctopus.zToolbarPressButton(Button.B_TAB_MY_FILES);\n\n\t\t// Since we are going to a subfolder, always back out to My Files at the end\n\t\ttry {\n\t\t\t\n\n\t\t\t// Go to the subfolder\n\t\t\tapp.zPageMyFiles.zListItem(Action.A_LEFTCLICK, subFolderName);\n\t\n\t\t\t// Verify file exists in My Files view\n\t\t\tZAssert.assertTrue(app.zPageMyFiles.zWaitForElementPresent(\n\t\t\t\t\tPageMyFiles.Locators.zMyFilesListViewItems.locator\n\t\t\t\t\t\t\t+ \":contains(\" + filename + \")\", \"3000\"),\n\t\t\t\t\t\"Verify file appears in My Files view\");\n\t\n\t\t\t// Select file in the list view\n\t\t\tDisplayFilePreview filePreview = (DisplayFilePreview) app.zPageMyFiles.zListItem(Action.A_LEFTCLICK, filename);\n\t\n\t\t\tDisplayFileComments fileComments = null;\n\t\t\t\n\t\t\ttry {\n\t\n\t\t\t\t// Click on Comments button\n\t\t\t\tfileComments = (DisplayFileComments) filePreview.zPressButton(Button.B_COMMENTS);\n\t\t\t\t\n\t\t\t\tCommentItem found = null;\n\t\t\t\tList<CommentItem> comments = fileComments.zGetCommentsList();\n\t\t\t\tfor ( CommentItem item : comments ) {\n\t\t\t\t\t\n\t\t\t\t\t// Verify the comment is found\n\t\t\t\t\tif (item.getCommentText().equals(comment)) {\n\t\t\t\t\t\tfound = item;\n\t\t\t\t\t\tbreak;\n\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\tZAssert.assertNotNull(found, \"Verify the commment is found\");\n\t\t\t\t\n\t\t\t\tZAssert.assertEquals(\n\t\t\t\t\t\tfound.getCommentEmail(),\n\t\t\t\t\t\t// If there is no displayName set, the app should fall back to the EmailAddress\n\t\t\t\t\t\tcommentor.getPref(\"displayName\") == null ? commentor.EmailAddress : commentor.getPref(\"displayName\"), \n\t\t\t\t\t\t\"Verify that in absense of a display name, the email is shown\");\n\n\t\t\t\tZAssert.assertEquals(\n\t\t\t\t\t\tfound.getCommentText(), \n\t\t\t\t\t\tcomment, \n\t\t\t\t\t\t\"Verify that in absense of a display name, the email is shown\");\n\n\t\t\t\n\t\t\t} finally {\n\t\t\t\tif ( fileComments != null ) {\n\t\t\t\t\t\n\t\t\t\t\t// close Comments view\n\t\t\t\t\tfileComments.zPressButton(Button.B_CLOSE);\n\t\t\t\t\tfileComments = null;\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t} finally {\n\t\t\tapp.zPageOctopus.zToolbarPressButton(Button.B_TAB_FAVORITES);\n\t\t\tapp.zPageOctopus.zToolbarPressButton(Button.B_TAB_MY_FILES);\t\t\t\n\t\t}\n\n\n\t}",
"public String toString()\n\t{\treturn \"Issue\" ;\n\t}",
"public void toCommentAnnotation() {\n if (ir != null) { // can't process if attahced ir is missing.\n List<Annotation> notes = this.ir.getAnnotations();\n int index = notes.indexOf(this);\n if (index >= 0) {\n CommentAnnotation comment =\n new CommentAnnotation(this.toString());\n notes.remove(this);\n comment.ir = ir;\n comment.setOneLiner(true);\n notes.add(index, comment);\n }\n }\n }",
"public String getComment(){\n return this.comment;\n }",
"interface WithNotes {\n /**\n * Specifies the notes property: Notes about the lock. Maximum of 512 characters..\n *\n * @param notes Notes about the lock. Maximum of 512 characters.\n * @return the next definition stage.\n */\n WithCreate withNotes(String notes);\n }",
"void setCheckinComment(String comment);",
"@Override\n\t\t\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\t\tJsonElement element = new JsonParser().parse(picture);\n\t\t\t\t\t\tComments NewComment = new Comments(0, MasterId, 0, 0, title, subject, new Date(),gps.getLongitude(),gps.getLatitude(),element,name);\n\t\t\t\t\t\tSubCommentModel modle = new SubCommentModel(NewComment);\n\t\t\t\t\t\tmodle.insertMaster(NewComment, MasterId);\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}",
"void create(Comment comment);",
"public Element reviewJSONtoXML() throws ParserConfigurationException, TransformerException\r\n\t {\r\n\t\t \t//System.out.println(subject);\r\n\t\t \t//just those reviews which have a traceable bug id in review's subject\r\n\t\t \tString BugId=regexBugId(subject);\r\n\t\t \t//System.out.println(BugId);\r\n\t\t \tif ((BugId.length()>0)&&(fileVector.size()>0)) \r\n\t\t \t{\r\n\t\t\t\t//creating BugId Element\r\n\t\t\t\tElement bug = createElementAttrib(\"BugId\", \"Id\", BugId, \"Status\",status, docnew);\r\n\t\t\t\t//rootElement.appendChild(bug);\r\n\t\t\t\t//create Elements Owner and Subject\r\n\t\t\t\tbug.appendChild(createElementAttrib(\"Owner\", \"name\", owner, \"Date\",CreatedDate, docnew));\r\n\t\t\t\tbug.appendChild(createElementAttrib(\"RevisionId\",\"Id\",revisionid,\"UpdatedDate\",UpdatedDate,docnew));\r\n\t\t\t\tbug.appendChild(createElementAttrib(\"PatchSize\",\"NumberofPatches\",NumberofPatches,\"Size\",patchsize,docnew));\r\n\t\t\t\tbug.appendChild(createElementAttrib(\"Subject\", \"text\", subject,\"number\", number, docnew));\r\n\t\t\t\tbug.appendChild(createElementAttrib(\"Project\", \"Product\", Project,\"\",\"\", docnew));\r\n\t\t\t\t// Create Element files which includes all of the files in patch set\r\n\t\t\t\tElement files = docnew.createElement(\"Files\");\r\n\t\t\t\tfor (int j = 1; j <= fileVector.size(); j++) {\r\n\t\t\t\t\tElement file = createElementAttrib(\"File\", \"path\",fileVector.get(j), \"\", \"\", docnew);\r\n\t\t\t\t\tfiles.appendChild(file);\r\n\t\t\t\t}\r\n\t\t\t\tbug.appendChild(files);\r\n\t\t\t\t//Create reviewer element + name and date attribute.\r\n\t\t\t\tElement reviewers = docnew.createElement(\"Reviewers\");\r\n\t\t\t\tfor (int k = 0; k < reviewMessageInfo.size(); k++) {\r\n\r\n\t\t\t\t\t//removing \"Hudson CI\" from reviewers which is a patch builder\r\n\t\t\t\t\tif (!(reviewMessageInfo.get(k).get(1).contains(\"Hudson CI\")))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tElement info = createElementAttrib(\"Info\", \"name\",reviewMessageInfo.get(k).get(1), \"date\",reviewMessageInfo.get(k).get(2), docnew);\r\n\t\t\t\t\t\treviewers.appendChild(info);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\tbug.appendChild(reviewers);\r\n\t\t\t\t//Create Reviewer Assignee: is a list of reviewers have been invited to review the patch.\r\n\t\t\t\tElement Assignee=docnew.createElement(\"Assignee\");\r\n\t\t\t\tfor(Entry<String,String> entry:AssigneeMap.entrySet())\r\n\t\t\t\t{\r\n\t\t\t\t\tElement info=createElementAttrib(\"AssigneeInfo\", \"name\",entry.getKey(), \"date\",entry.getValue(), docnew);\r\n\t\t\t\t\tAssignee.appendChild(info);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\tbug.appendChild(Assignee);\r\n\t\t\t\t\r\n\t\t\t\treturn bug;\r\n\t\t\t}\r\n\t\t \telse\r\n\t\t \t{\r\n\t\t \t\treturn null;\r\n\t\t \t}\r\n\r\n\t\t \r\n\t }",
"public String createJsonObject() {\n JSONObject jsonObject = new JSONObject();\n\n try {\n if (!vslaId.equalsIgnoreCase(\"-1\")) {\n // editing existing information\n jsonObject.put(\"VslaId\", vslaId);\n }\n jsonObject.put(\"GroupSupport\", grpSupportType);\n jsonObject.put(\"VslaName\", vslaName);\n jsonObject.put(\"grpPhoneNumber\", grpPhoneNumber);\n jsonObject.put(\"PhysicalAddress\", physAddress);\n jsonObject.put(\"GpsLocation\", locCoordinates);\n jsonObject.put(\"representativeName\", representativeName);\n jsonObject.put(\"representativePosition\", representativePost);\n jsonObject.put(\"GroupAccountNumber\", grpBankAccount);\n jsonObject.put(\"repPhoneNumber\", repPhoneNumber);\n jsonObject.put(\"RegionName\", regionName);\n jsonObject.put(\"tTrainerId\", tTrainerId);\n jsonObject.put(\"Status\", \"2\");\n jsonObject.put(\"numberOfCycles\", numberOfCycles);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return jsonObject.toString();\n }",
"@Test(groups = { \"wso2.esb\" }, description = \"agilezen {getComment} integration test with mandatory parameters.\", dependsOnMethods = { \"testCreateCommentWithMandatoryParameters\" })\n public void testGetCommentWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:getComment\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getComment_mandatory.json\");\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/comments/\"\n + connectorProperties.getProperty(\"commentIdMandatory\");\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"id\"), apiRestResponse.getBody().getString(\"id\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"text\"), apiRestResponse.getBody().getString(\"text\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"createTime\"), apiRestResponse.getBody().getString(\n \"createTime\"));\n }",
"public TranscriptEntry(String filename) {\n JSONParser jsonParser = new JSONParser();\n try (FileReader reader = new FileReader(filename)){\n Object obj = jsonParser.parse(reader);\n\n JSONObject entry = (JSONObject) obj;\n JSONObject myCourse = (JSONObject) entry.get(\"course\");\n course = parseCourse(myCourse);\n grade = (String) entry.get(\"grade\");\n inProgress = (boolean) entry.get(\"inProgress\");\n courseComplete = (boolean) entry.get(\"courseComplete\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Schema(description = \"The ID of the issue this worklog is for.\")\n public String getIssueId() {\n return issueId;\n }",
"public String getComment() {\n return comment ;\n }",
"interface WithNotes {\n /**\n * Specifies the notes property: Notes about the lock. Maximum of 512 characters..\n *\n * @param notes Notes about the lock. Maximum of 512 characters.\n * @return the next definition stage.\n */\n Update withNotes(String notes);\n }",
"String getCheckinComment();",
"public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }",
"String getIssue();",
"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 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 }",
"String getComment() {\n final StringBuilder sb = new StringBuilder();\n sb.append(indent(1)).append(\"/**\").append(EOL);\n sb.append(indent(1)).append(\" * \").append(\"{@code\").append(EOL);\n\n // Unwrapped so that you can search through the descriptor\n // file for a message and not have to worry about line breaks\n final String ws = formatString; // wrapText(formatString, 70);\n\n final String[] sa = ws.split(EOL);\n for (final String s : sa) {\n sb.append(indent(1)).append(\" * \").append(s).append(EOL);\n }\n\n sb.append(indent(1)).append(\" * \").append(\"}\").append(EOL);\n sb.append(indent(1)).append(\" */\").append(EOL);\n return sb.toString();\n }",
"public void setComment(String new_comment){\n this.comment=new_comment;\n }",
"Ack editProperty(ProjectEntity entity, String propertyTypeName, JsonNode data);",
"public String getComment()\n {\n return comment;\n }",
"public void setComment(String comment){\n this.comment = comment;\n }",
"void visitElement_issue(org.w3c.dom.Element element) { // <issue>\n // element.getValue();\n issue = list.createIssue();\n \n // TODO: error handling for parseInt()\n org.w3c.dom.NamedNodeMap attrs = element.getAttributes();\n for (int i = 0; i < attrs.getLength(); i++) {\n org.w3c.dom.Attr attr = (org.w3c.dom.Attr)attrs.item(i);\n if (attr.getName().equals(\"id\")) { // <issue id=\"???\">\n issue.id = Integer.parseInt(attr.getValue());\n }\n if (attr.getName().equals(\"component\")) { // <issue component=\"???\">\n issue.component = Integer.parseInt(attr.getValue());\n }\n if (attr.getName().equals(\"subcomponent\")) { // <issue subcomponent=\"???\">\n issue.subcomponent = Integer.parseInt(attr.getValue());\n }\n if (attr.getName().equals(\"status\")) { // <issue status=\"???\">\n issue.status = Integer.parseInt(attr.getValue());\n }\n if (attr.getName().equals(\"platform\")) { // <issue platform=\"???\">\n issue.platform = Integer.parseInt(attr.getValue());\n }\n if (attr.getName().equals(\"os\")) { // <issue os=\"???\">\n issue.os = Integer.parseInt(attr.getValue());\n }\n if (attr.getName().equals(\"version\")) { // <issue version=\"???\">\n issue.version = Integer.parseInt(attr.getValue());\n }\n if (attr.getName().equals(\"priority\")) { // <issue priority=\"???\">\n issue.priority = Integer.parseInt(attr.getValue());\n }\n if (attr.getName().equals(\"issue-type\")) { // <issue issue-type=\"???\">\n issue.type = Integer.parseInt(attr.getValue());\n }\n if (attr.getName().equals(\"target-version\")) { // <issue target-version=\"???\">\n issue.targetVersion = Integer.parseInt(attr.getValue());\n }\n if (attr.getName().equals(\"assigned-to\")) { // <issue assigned-to=\"???\">\n issue.assignedTo = Integer.parseInt(attr.getValue());\n }\n if (attr.getName().equals(\"url\")) { // <issue url=\"???\">\n try {\n issue.url = new URL(attr.getValue());\n } catch (MalformedURLException e) {\n e.printStackTrace(); // TODO\n }\n }\n if (attr.getName().equals(\"summary\")) { // <issue summary=\"???\">\n issue.summary = attr.getValue();\n }\n if (attr.getName().equals(\"resolution\")) { // <issue resolution=\"???\">\n issue.resolution = Integer.parseInt(attr.getValue());\n }\n }\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n if (nodeElement.getTagName().equals(\"depends-on\")) {\n visitElement_depends_on(nodeElement);\n }\n if (nodeElement.getTagName().equals(\"comment\")) {\n visitElement_comment(nodeElement);\n }\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n }\n }\n }",
"public String getComment() {\n return this.comment;\n }",
"public abstract void addIssue(IssueAbstract issue);",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"@Transactional(propagation = Propagation.REQUIRED)\n public void notifyIssue(Issue issue, AbstractSecuredEntity entity, String htmlText) {\n NotificationSettings newIssueSettings = notificationSettingsManager.load(NotificationType.NEW_ISSUE);\n if (newIssueSettings == null || !newIssueSettings.isEnabled()) {\n LOGGER.info(messageHelper.getMessage(MessageConstants.INFO_NOTIFICATION_TEMPLATE_NOT_CONFIGURED,\n \"new issue\"));\n return;\n }\n\n NotificationMessage message = new NotificationMessage();\n message.setTemplate(new NotificationTemplate(newIssueSettings.getTemplateId()));\n message.setCopyUserIds(getMentionedUsers(issue.getText()));\n\n Issue copyWithHtml = issue.toBuilder().text(htmlText).build();\n message.setTemplateParameters(jsonMapper.convertValue(copyWithHtml,\n new TypeReference<Map<String, Object>>() {}));\n\n if (newIssueSettings.isKeepInformedOwner()) {\n PipelineUser owner = userManager.loadUserByName(entity.getOwner());\n message.setToUserId(owner.getId());\n }\n\n monitoringNotificationDao.createMonitoringNotification(message);\n }",
"public static void setupNewBugAttributes(String repositoryUrl, Proxy proxySettings, String userName,\n \t\t\tString password, NewBugzillaReport newReport, String characterEncoding) throws IOException,\n \t\t\tKeyManagementException, GeneralSecurityException, NoSuchAlgorithmException, BugzillaException {\n \n \t\tnewReport.removeAllAttributes();\n \n \t\tRepositoryConfiguration repositoryConfiguration = BugzillaCorePlugin.getRepositoryConfiguration(false,\n \t\t\t\trepositoryUrl, proxySettings, userName, password, characterEncoding);\n \n \t\tRepositoryTaskAttribute a = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.PRODUCT);\n \t\tList<String> optionValues = repositoryConfiguration.getProducts();\n \t\tCollections.sort(optionValues);\n \t\t// for (String option : optionValues) {\n \t\t// a.addOptionValue(option, option);\n \t\t// }\n \t\ta.setValue(newReport.getProduct());\n \t\ta.setReadOnly(true);\n \t\tnewReport.addAttribute(BugzillaReportElement.PRODUCT.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.BUG_STATUS);\n \t\toptionValues = repositoryConfiguration.getStatusValues();\n \t\tfor (String option : optionValues) {\n \t\t\ta.addOptionValue(option, option);\n \t\t}\n \t\ta.setValue(IBugzillaConstants.VALUE_STATUS_NEW);\n \t\tnewReport.addAttribute(BugzillaReportElement.BUG_STATUS.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.VERSION);\n \t\toptionValues = repositoryConfiguration.getVersions(newReport.getProduct());\n \t\tCollections.sort(optionValues);\n \t\tfor (String option : optionValues) {\n \t\t\ta.addOptionValue(option, option);\n \t\t}\n \t\tif (optionValues != null && optionValues.size() > 0) {\n \t\t\ta.setValue(optionValues.get(optionValues.size() - 1));\n \t\t}\n \t\tnewReport.addAttribute(BugzillaReportElement.VERSION.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.COMPONENT);\n \t\toptionValues = repositoryConfiguration.getComponents(newReport.getProduct());\n \t\tCollections.sort(optionValues);\n \t\tfor (String option : optionValues) {\n \t\t\ta.addOptionValue(option, option);\n \t\t}\n \t\tif (optionValues != null && optionValues.size() > 0) {\n \t\t\ta.setValue(optionValues.get(0));\n \t\t}\n \t\tnewReport.addAttribute(BugzillaReportElement.COMPONENT.getKeyString(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.REP_PLATFORM);\n \t\toptionValues = repositoryConfiguration.getPlatforms();\n \t\tCollections.sort(optionValues);\n \t\tfor (String option : optionValues) {\n \t\t\ta.addOptionValue(option, option);\n \t\t}\n \t\tif (optionValues != null && optionValues.size() > 0) {\n \t\t\ta.setValue(optionValues.get(0));\n \t\t}\n \t\tnewReport.addAttribute(BugzillaReportElement.REP_PLATFORM.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.OP_SYS);\n \t\toptionValues = repositoryConfiguration.getOSs();\n \t\tfor (String option : optionValues) {\n \t\t\ta.addOptionValue(option, option);\n \t\t}\n \t\tif (optionValues != null && optionValues.size() > 0) {\n \t\t\ta.setValue(optionValues.get(optionValues.size() - 1));\n \t\t}\n \t\tnewReport.addAttribute(BugzillaReportElement.OP_SYS.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.PRIORITY);\n \t\toptionValues = repositoryConfiguration.getPriorities();\n \t\tfor (String option : optionValues) {\n \t\t\ta.addOptionValue(option, option);\n \t\t}\n \t\ta.setValue(optionValues.get((optionValues.size() / 2)));\n \t\tnewReport.addAttribute(BugzillaReportElement.PRIORITY.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.BUG_SEVERITY);\n \t\toptionValues = repositoryConfiguration.getSeverities();\n \t\tfor (String option : optionValues) {\n \t\t\ta.addOptionValue(option, option);\n \t\t}\n \t\ta.setValue(optionValues.get((optionValues.size() / 2)));\n \t\tnewReport.addAttribute(BugzillaReportElement.BUG_SEVERITY.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\t// a = new\n \t\t// RepositoryTaskAttribute(BugzillaReportElement.TARGET_MILESTONE);\n \t\t// optionValues =\n \t\t// BugzillaPlugin.getDefault().getProductConfiguration(serverUrl).getTargetMilestones(\n \t\t// newReport.getProduct());\n \t\t// for (String option : optionValues) {\n \t\t// a.addOptionValue(option, option);\n \t\t// }\n \t\t// if(optionValues.size() > 0) {\n \t\t// // new bug posts will fail if target_milestone element is included\n \t\t// // and there are no milestones on the server\n \t\t// newReport.addAttribute(BugzillaReportElement.TARGET_MILESTONE, a);\n \t\t// }\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.ASSIGNED_TO);\n \t\ta.setValue(\"\");\n \t\ta.setReadOnly(false);\n \t\tnewReport.addAttribute(BugzillaReportElement.ASSIGNED_TO.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.BUG_FILE_LOC);\n \t\ta.setValue(\"http://\");\n \t\ta.setHidden(false);\n \t\tnewReport.addAttribute(BugzillaReportElement.BUG_FILE_LOC.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\t// newReport.attributes = attributes;\n \t}",
"@Test\n public void testAddComment() throws Exception {\n\n Tracker tracker = new Tracker();\n\n String action = \"0\";\n String yes = \"y\";\n String no = \"n\";\n\n // add item\n\n String name = \"task1\";\n String desc = \"desc1\";\n String create = \"3724\";\n\n Input input1 = new StubInput(new String[]{action, name, desc, create, yes});\n new StartUI(input1).init(tracker);\n\n // get item id\n\n String id = \"\";\n\n Filter filter = new FilterByName(name);\n Item[] result = tracker.findBy(filter);\n for (Item item : result) {\n if (item !=null && item.getName().equals(name)) {\n id = item.getId();\n break;\n }\n }\n\n // add comment to item\n\n String action2 = \"3\";\n String comment = \"new comment\";\n\n Input input2 = new StubInput(new String[]{action2, comment, yes});\n new StartUI(input2).init(tracker);\n\n for (Comment nextComment : tracker.findById(id).getComments()) {\n if(nextComment != null) {\n Assert.assertEquals(nextComment.getText(), comment);\n break;\n }\n }\n }",
"public String getjComment() {\n return jComment;\n }",
"public IssueResponse(Issue issue) {\n\t\tthis.id = issue.getId();\n\t\tthis.name = issue.getName();\n\t\tthis.shortDate = issue.getShortDate();\n\t\tthis.testIssue = issue.getTestIssue();\n\t}",
"private void initiateFromSavedData(File nodeFile, File commentFile) {\n\t\tif(nodeFile.exists() && commentFile.exists()){\n\n\t\t\ttry {\n\t\t\t\tpopulatePostLayout(new JSONObject(AppUtil.readFile(nodeFile)));\n\n\t\t\t\tArrayList<JSONObject> commentsObjectsList =null;\n\n\t\t\t\tcommentsObjectsList=getCommentsFromJO(new JSONObject(AppUtil.readFile(commentFile)),commentsObjectsList);\n\n\t\t\t\tprocessCommentResponseAndStoreInLists(commentsObjectsList);\n\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}else{\n\t\t\tinitiateRefreshFromSever(nodeFile,commentFile);\n\t\t}\n\t}",
"private NewIssueDTO createIssueDTO(String title, String content, IssueState state, List<Long> idList, List<Long> attachments) {\n Issue simpleIssue = new Issue();\n simpleIssue.setContent(content);\n simpleIssue.setDate(new Date());\n simpleIssue.setTitle(title);\n simpleIssue.setState(state);\n\n NewIssueDTO issueDto = new NewIssueDTO();\n issueDto.setIssue(simpleIssue);\n issueDto.setLabelIdList(idList);\n issueDto.setAttachments(attachments);\n return issueDto;\n }",
"public String getSampleComment();",
"public void init() {\n\n mJokes = new ArrayList<>();\n\n StringBuilder sBuilder = new StringBuilder();\n\n try {\n\n InputStream in = getClass().getResourceAsStream(\"/jokes.json\");\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n String mLine = reader.readLine();\n while (mLine != null) {\n //process line\n sBuilder.append(mLine);\n mLine = reader.readLine();\n }\n\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n String jsonString = sBuilder.toString();\n\n if( jsonString != null ){\n\n JsonParser parser = new JsonParser();\n JsonObject jsonObject = parser.parse(jsonString).getAsJsonObject();\n\n JsonArray jokesArray = jsonObject.getAsJsonArray(\"jokes\");\n\n for (JsonElement element : jokesArray) {\n String joke = element.getAsJsonObject().get(\"joke\").getAsString();\n mJokes.add(joke);\n }\n }\n\n }",
"public Comment() {\n\t\tthis._id = UUID.randomUUID();\n\t\tthis.timestamp = System.currentTimeMillis();\n\t}",
"public Issue(String summary, String status, String description, int priority, String issue_type,\n Date time_reported, String reporter, String assignee, String issue_id, String project_id) {\n this.summary = summary;\n this.status = status;\n this.description = description;\n this.priority = priority;\n this.issue_type = issue_type;\n this.time_reported = time_reported;\n this.reporter = reporter;\n this.assignee = assignee;\n this.issue_id = issue_id;\n this.project_id = project_id;\n }",
"public void saveBug(Bugs theBug) {\n\t\tthis.bugId = theBug.getId();\n\t\tthis.category = theBug.getCategory();\n\t\tthis.date = theBug.getDate();\n\t\tthis.description = theBug.getDescription();\n\t\tthis.addedBy = theBug.getAddedBy();\n\t\tthis.status = theBug.getStatus();\n\t}",
"@JsonProperty(\"note\")\n\tpublic String getNote() {\n\t\treturn note;\n\t}",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment() {\r\n\t\treturn comment;\r\n\t}"
] | [
"0.6114627",
"0.59251183",
"0.54792726",
"0.5102812",
"0.50669163",
"0.5046216",
"0.50399214",
"0.5017131",
"0.50113446",
"0.5003388",
"0.49874073",
"0.49827096",
"0.49660712",
"0.4958284",
"0.49245813",
"0.49167994",
"0.48885944",
"0.48759547",
"0.48681924",
"0.48648638",
"0.48447078",
"0.48379195",
"0.48214114",
"0.48184368",
"0.48003545",
"0.47794038",
"0.47772077",
"0.47732362",
"0.47339034",
"0.47292513",
"0.4685862",
"0.46667144",
"0.4660173",
"0.4659671",
"0.46422207",
"0.4639967",
"0.46393865",
"0.46370807",
"0.46218592",
"0.46197623",
"0.46108013",
"0.46031728",
"0.4600185",
"0.45861852",
"0.45799932",
"0.45778063",
"0.4575245",
"0.4573999",
"0.4563179",
"0.45609352",
"0.45577145",
"0.4546125",
"0.4537643",
"0.4537543",
"0.45347697",
"0.45308885",
"0.45197326",
"0.4515716",
"0.45059526",
"0.44960597",
"0.44876677",
"0.44814038",
"0.44813752",
"0.44783673",
"0.44783673",
"0.44783673",
"0.44783673",
"0.44783673",
"0.44783673",
"0.44783673",
"0.44659212",
"0.44640118",
"0.44634518",
"0.4461396",
"0.4448598",
"0.44457635",
"0.44352108",
"0.443459",
"0.4428684",
"0.44214",
"0.44207028",
"0.44152424",
"0.44059694",
"0.44053558",
"0.43964458",
"0.43901643",
"0.43888983",
"0.43775466",
"0.43741772",
"0.43740112",
"0.4372814",
"0.43691644",
"0.43649617",
"0.43643576",
"0.43643576",
"0.43643576",
"0.43643576",
"0.43643576",
"0.43643576",
"0.4361955"
] | 0.62180763 | 0 |
Updating comment Read the properties file and convert to jsonObject | @Test
public void updateComment() throws Exception{
JSONParser parser = new JSONParser();
Object obj = parser.parse(new FileReader(JSON_FILE_4));
JSONObject jsonObject = (JSONObject) obj;
Response res =
given().
header("cookie","JSESSIONID="+createSession()).and().
header("Content-Type","application/json").
body(jsonObject.toJSONString()).
when().
put("/rest/api/2/issue/10008/comment/10004").
then().
statusCode(200).log().all().extract().response();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 }",
"public static void main(String[] args) throws IOException {\n String readPath=\"C:\\\\Users\\\\masou\\\\IdeaProjects\\\\SDETjavaBATCH10\\\\Files\\\\Config1.properties\";\n String writePath=\"C:\\\\Users\\\\masou\\\\IdeaProjects\\\\SDETjavaBATCH10\\\\Files\\\\Config.properties\";\n\n\n FileInputStream fileInputStream=new FileInputStream(readPath);\n FileInputStream fileInputStream1=new FileInputStream(writePath);\n\n\n Properties properties1=new Properties();\n properties1.load(fileInputStream1);\n\n Properties properties=new Properties();\n properties.load(fileInputStream);\n\n String URL=properties.get(\"URL\").toString(); // store it in a string\n\n\n properties1.put(\"URL\",URL);\n FileOutputStream fileOutputStream=new FileOutputStream(writePath);\n properties1.store(fileOutputStream,\"some comments\");\n\n\n\n }",
"void extractDataFromJson(String commentData);",
"private static void readAndWriteProperties(String name) throws IOException {\n System.out.println(name);\n boolean firstLine = true;\n fileReader = new BufferedReader(new FileReader(PATH + name));\n fileWriter = new BufferedWriter(new FileWriter(PATH + \"/uid/\" + name));\n String line;\n while ((line = fileReader.readLine()) != null) {\n if (!firstLine) {\n String[] lineTokens = LINE_TOKEN_SEPARATOR.split(line);\n long globalID = vertexList.get(3).get(Long.parseLong(lineTokens[0]));\n String writeLine = \"\";\n for (int i = 0; i < lineTokens.length; i++) {\n if (i == 0) {\n writeLine += globalID;\n } else {\n writeLine += lineTokens[i];\n }\n writeLine += \"|\";\n }\n fileWriter.write(writeLine);\n fileWriter.newLine();\n } else {\n fileWriter.write(line);\n fileWriter.newLine();\n firstLine = false;\n }\n }\n fileReader.close();\n fileWriter.close();\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 }",
"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 }",
"private static JSONTile parse(String configFile) {\n Gson gson = new Gson();\n\n try (BufferedReader reader = new BufferedReader(\n new InputStreamReader(new FileInputStream(configFile), StandardCharsets.UTF_8))) {\n return gson.fromJson(reader, JSONTile.class);\n } catch (IOException e) {\n throw new IllegalArgumentException(\"Error when reading file: \" + configFile, e);\n }\n }",
"@Override\n protected void updateProperties() {\n }",
"private void setUserDataFromJson(JSONObject jsonObject) { \n\t\tlogger.debug(\"creating UserData Object from json file \" + fileName);\n\t\t/* \n\t\t * JSON Structure\n\t\t * {\n\t\t * \t\"objectStatus\":\"fail\",\n\t\t * \t\"domain\":\"null\",\n\t\t * \t\"customer\":\"null\",\n\t\t * \t\"sn_id\":\"CC\",\n\t\t * \t\"user_id\":\"9\",\n\t\t * \t\"userName\":\"Cortal_Consors\",\n\t\t * \t\"nickName\":\"Cortal_Consors\",\n\t\t * \t\"postingsCount\":\"0\",\n\t\t * \t\"favoritesCount\":\"0\",\n\t\t * \t\"friends\":\"0\",\n\t\t * \t\"follower\":\"0\",\n\t\t * \t\"userLang\":null,\n\t\t * \t\"listsAndGroupsCount\":\"0\",\n\t\t * \t\"geoLocation\":\"\"\n\t\t * }\n\t\t */\n\t\tif (jsonObject.get(\"domain\") != null) {\n\t\t\tlogger.trace(\" domain\\t\"+jsonObject.get(\"domain\").toString());\n\t\t\tuData.setDomain((String) jsonObject.get(\"domain\"));\n\t\t}\n\t\tif (jsonObject.get(\"customer\") != null) {\n\t\t\tlogger.trace(\" customer\\t\"+jsonObject.get(\"customer\").toString());\n\t\t\tuData.setCustomer((String) jsonObject.get(\"customer\"));\n\t\t}\n\t\tif (jsonObject.get(\"objectStatus\") != null) {\n\t\t\tlogger.trace(\" objectStatus\\t\"+jsonObject.get(\"objectStatus\").toString());\n\t\t\tuData.setObjectStatus((String) jsonObject.get(\"objectStatus\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"sn_id\") != null) {\n\t\t\tlogger.trace(\" sn_id\\t\"+jsonObject.get(\"sn_id\").toString());\n\t\t\tuData.setSnId((String) jsonObject.get(\"sn_id\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"id\") == null) {\n\t\t\tlogger.trace(\" user_id\\t\"+jsonObject.get(\"user_id\").toString());\n\t\t\tuData.setId((String) jsonObject.get(\"user_id\"));\n\t\t} else {\n\t\t\tlogger.trace(\" id\\t\"+jsonObject.get(\"id\").toString());\n\t\t\tuData.setId((String) jsonObject.get(\"id\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"userName\") != null) {\n\t\t\tlogger.trace(\" userName\\t\"+jsonObject.get(\"userName\").toString());\n\t\t\tuData.setUserName((String) jsonObject.get(\"userName\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"nickName\") != null) {\n\t\t\tlogger.trace(\" nickName\\t\"+jsonObject.get(\"nickName\").toString());\n\t\t\tuData.setScreenName((String) jsonObject.get(\"nickName\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"userLang\") != null) {\n\t\t\tlogger.trace(\" userLang\\t\"+jsonObject.get(\"userLang\").hashCode());\n\t\t\tuData.setLang((String) jsonObject.get(\"userLang\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"follower\") != null) {\n\t\t\tlogger.trace(\" follower\\t\"+Long.parseLong(jsonObject.get(\"follower\").toString()));\n\t\t\tuData.setFollowersCount(Long.parseLong(jsonObject.get(\"follower\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"friends\") != null) {\n\t\t\tlogger.trace(\" friends\\t\"+Long.parseLong(jsonObject.get(\"friends\").toString()));\n\t\t\tuData.setFriendsCount(Long.parseLong(jsonObject.get(\"friends\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"postingsCount\") != null) {\n\t\t\tlogger.trace(\" postingsCount\\t\"+Long.parseLong(jsonObject.get(\"postingsCount\").toString()));\n\t\t\tuData.setPostingsCount(Long.parseLong(jsonObject.get(\"postingsCount\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"favoritesCount\") != null) {\n\t\t\tlogger.trace(\" favoritesCount\\t\"+Long.parseLong(jsonObject.get(\"favoritesCount\").toString()));\n\t\t\tuData.setFavoritesCount(Long.parseLong(jsonObject.get(\"favoritesCount\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"listsAndGroupsCount\") != null) {\n\t\t\tlogger.trace(\" listsAndGroupsCount\\t\"+Long.parseLong(jsonObject.get(\"listsAndGroupsCount\").toString()));\n\t\t\tuData.setListsAndGroupsCount(Long.parseLong(jsonObject.get(\"listsAndGroupsCount\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"geoLocation\") != null) {\n\t\t\tlogger.trace(\" geoLocation\\t\"+jsonObject.get(\"geoLocation\"));\n\t\t\tuData.setGeoLocation((String) jsonObject.get(\"geoLocation\"));\n\t\t}\n\t}",
"public void init() {\n\n mJokes = new ArrayList<>();\n\n StringBuilder sBuilder = new StringBuilder();\n\n try {\n\n InputStream in = getClass().getResourceAsStream(\"/jokes.json\");\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n String mLine = reader.readLine();\n while (mLine != null) {\n //process line\n sBuilder.append(mLine);\n mLine = reader.readLine();\n }\n\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n String jsonString = sBuilder.toString();\n\n if( jsonString != null ){\n\n JsonParser parser = new JsonParser();\n JsonObject jsonObject = parser.parse(jsonString).getAsJsonObject();\n\n JsonArray jokesArray = jsonObject.getAsJsonArray(\"jokes\");\n\n for (JsonElement element : jokesArray) {\n String joke = element.getAsJsonObject().get(\"joke\").getAsString();\n mJokes.add(joke);\n }\n }\n\n }",
"@Override\r\n\tpublic String[] updateJsonProperties() {\n\t\treturn null;\r\n\t}",
"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 static CommentedConfiguration loadConfiguration(InputStream inputStream) {\n return loadConfiguration(new InputStreamReader(inputStream, StandardCharsets.UTF_8));\n }",
"private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }",
"GistComment deserializeCommentFromJson(String json);",
"private void read() {\n // Read the properties from the project\n EditableProperties sharedProps = antProjectHelper.getProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH);\n EditableProperties privateProps = antProjectHelper.getProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH);\n final ProjectConfiguration cfgs[] = configHelper.getConfigurations().toArray(new ProjectConfiguration[0]);\n final ProjectConfiguration confs[] = new ProjectConfiguration[cfgs.length];\n System.arraycopy(cfgs, 0, confs, 0, cfgs.length);\n setConfigurations(confs);\n // Initialize the property map with objects\n properties.put(J2ME_PROJECT_NAME, new PropertyInfo(new PropertyDescriptor(J2ME_PROJECT_NAME, true, DefaultPropertyParsers.STRING_PARSER), ProjectUtils.getInformation(project).getDisplayName()));\n for (PropertyDescriptor pd:PROPERTY_DESCRIPTORS) {\n EditableProperties ep = pd.isShared() ? sharedProps : privateProps;\n String raw = ep.getProperty( pd.getName());\n properties.put( pd.getName(), new PropertyInfo( pd, raw == null ? pd.getDefaultValue() : raw));\n for (int j=0; j<devConfigs.length; j++) {\n final PropertyDescriptor clone = pd.clone(CONFIG_PREFIX + devConfigs[j].getDisplayName() + '.' + pd.getName());\n raw = ep.getProperty(clone.getName());\n if (raw != null) {\n properties.put(clone.getName(), new PropertyInfo(clone, raw));\n }\n }\n }\n }",
"@Test(enabled = true)\n public String createComment() throws Exception{\n JSONParser parser = new JSONParser();\n Object obj = parser.parse(new FileReader(JSON_FILE_3));\n JSONObject jsonObject = (JSONObject) obj;\n\n Response res =\n given().\n header(\"cookie\",\"JSESSIONID=\"+createSession()).and().\n header(\"Content-Type\",\"application/json\").\n body(jsonObject.toJSONString()).\n when().\n post(\"/rest/api/2/issue/10008/comment\").\n then().\n statusCode(201).log().all().extract().response();\n //extracting values from the RestAssured Response\n JsonPath jp = res.jsonPath();\n String commentID = jp.get(\"id\");\n System.out.println(\"New Comment ID:\" +commentID);//10002\n return commentID;\n }",
"protected void readProperties() {\n\t\tproperties = new HashMap<>();\n\t\tproperties.put(MQTT_PROP_CLIENT_ID, id);\n\t\tproperties.put(MQTT_PROP_BROKER_URL, brokerUrl);\n\t\tproperties.put(MQTT_PROP_KEEP_ALIVE, 30);\n\t\tproperties.put(MQTT_PROP_CONNECTION_TIMEOUT, 30);\n\t\tproperties.put(MQTT_PROP_CLEAN_SESSION, true);\n\t\tproperties.put(MQTT_PROP_USERNAME, user);\n\t\tproperties.put(MQTT_PROP_PASSWORD, password.toCharArray());\n\t\tproperties.put(MQTT_PROP_MQTT_VERSION, MqttConnectOptions.MQTT_VERSION_3_1_1);\n\t}",
"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 getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n logger.info(\"BASE URL :\" + properties.getProperty(\"BASEURL\"));\n setBaseUrl(properties.getProperty(\"BASEURL\"));\n setLoginMode(properties.getProperty(\"LOGINMODE\"));\n setProjectId(properties.getProperty(\"PROJECTID\"));\n setReportId(properties.getProperty(\"REPORTID\"));\n if (!(properties.getProperty(\"PASSWORD\").trim().equals(\"\"))) {\n setPassword(properties.getProperty(\"PASSWORD\"));\n }\n if (!(properties.getProperty(\"USERNAME\").trim().equals(\"\"))) {\n setUserName(properties.getProperty(\"USERNAME\"));\n }\n }catch(IOException ex) {\n logger.debug(\"Failed to fetch value from configure file: \", ex);\n }\n\n }",
"protected void readProperties() throws RepositoryException {\n try {\n log.debug(\"Reading meta file: \" + this.metaFile);\n this.properties = new HashMap();\n BufferedReader reader = new BufferedReader(new FileReader(this.metaFile));\n String line;\n while ((line = reader.readLine()) != null) {\n line = line.trim();\n String name;\n String typeName;\n String value;\n try {\n name = line.substring(0, line.indexOf(\"<\")).trim();\n typeName = line.substring(line.indexOf(\"<\")+1, line.indexOf(\">\")).trim();\n value = line.substring(line.indexOf(\":\")+1).trim();\n } catch (StringIndexOutOfBoundsException e) {\n throw new RepositoryException(\"Error while parsing meta file: \" + this.metaFile \n + \" at line \" + line);\n }\n Property property = new DefaultProperty(name, PropertyType.getType(typeName), this);\n property.setValueFromString(value);\n this.properties.put(name, property);\n }\n reader.close();\n } catch (IOException e) {\n throw new RepositoryException(\"Error while reading meta file: \" + metaFile + \": \" \n + e.getMessage());\n }\n }",
"private JsonObject loadJSONFile(String jsonFilePath) throws IOException {\r\n\tInputStream is = new FileInputStream(jsonFilePath);\r\n\tJsonReader jsonReader = Json.createReader(is);\r\n\tJsonObject json = jsonReader.readObject();\r\n\tjsonReader.close();\r\n\tis.close();\r\n\treturn json;\r\n }",
"private void GetRequiredProperties() {\r\n\r\n\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\t\r\n try {\r\n \r\n File file = new File(fileToRead);\r\n \r\n if (file.exists()) {\r\n logger.info(\"Config file exists\");\r\n } else {\r\n logger.error(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n }\r\n \r\n prop.load(new FileInputStream(file));\r\n\r\n } catch (Exception e) {\r\n\r\n logger.error(\"Exception :: GetRequiredProperties :: \" + e.getMessage(), e);\r\n\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: \" + e.getMessage());\r\n }\r\n\r\n\t sifUrl = prop.getProperty(\"MDM_SIF_URL\");\r\n\t orsId = prop.getProperty(\"MDM_ORS_ID\");\r\n\t username = prop.getProperty(\"MDM_USER_NAME\");\r\n\t password = prop.getProperty(\"MDM_PASSWORD\");\r\n\t \r\n\t logger.info(\"SIF URL ::\" + sifUrl);\r\n\t logger.info(\"ORS ID ::\" + orsId );\r\n\t logger.info(\"User Id ::\" + username);\r\n\t logger.info(\"Password ::\" + password);\r\n\t \r\n\t\r\n\t}",
"public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}",
"private static JsonObject readJSON(String path) {\n\n\t\tString fileContents = \"\";\n\t\tBufferedReader reader = null;\n\n\t\ttry {\n\t\t\treader = new BufferedReader(new FileReader(path));\n\t\t} catch (FileNotFoundException e) {\n\t\t\tfail(ErrorMessage.inputFileNotFoundError);\n\t\t}\n\n\t\tString line;\n\n\t\ttry {\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tfileContents += line;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tfail(ErrorMessage.readFileError);\n\t\t}\n\n\t\ttry {\n\t\t\treader.close();\n\t\t} catch (IOException e) {\n\t\t\tfail(ErrorMessage.closeFileError);\n\t\t}\n\n\t\tJsonObject jsonLicense = Json.createReader(new StringReader(fileContents)).readObject();\n\n\t\treturn jsonLicense;\n\t}",
"@Override\n public void updateProperties() {\n // unneeded\n }",
"public static void updateConfigFile() throws IOException {\n\t\tInputStreamReader is = new InputStreamReader(new FileInputStream(fileLocation));\n\t\tconfigurationFile = new Properties();\n\t\tconfigurationFile.load(is);\n\t\tis.close();\n\t}",
"public static String readJsonObject(String filename) {\r\n\t\tBufferedReader br = null;\r\n\t\tFileReader fr = null;\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tString sCurrentLine;\r\n\t\ttry {\r\n\r\n\t\t\tfr = new FileReader(filename);\r\n\t\t\tbr = new BufferedReader(fr);\r\n\t\t\t\r\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\r\n\t\t\t\tsb.append(sCurrentLine);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (br != null)\r\n\t\t\t\t\tbr.close();\r\n\t\t\t\tif (fr != null)\r\n\t\t\t\t\tfr.close();\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"public interface JsonProperties {\n\n String ACCESS_LEVEL = \"accessLevel\";\n String ADDRESS = \"address\";\n String ASSET_ID = \"assetId\";\n String CONTENT = \"content\";\n String CREATED_BY = \"createdBy\";\n String DATA = \"data\";\n String DATA_HASH = \"dataHash\";\n String EVENT_ID = \"eventId\";\n String ID_DATA = \"idData\";\n String META_DATA = \"metadata\";\n String PERMISSIONS = \"permissions\";\n String REGISTERED_BY = \"registeredBy\";\n String REGISTERED_ON = \"registeredOn\";\n String SEQUENCE_NUMBER = \"sequenceNumber\";\n String SIGNATURE = \"signature\";\n String TIMESTAMP = \"timestamp\";\n}",
"@Override\n public void updateProperties(final String id, final Map<Name, Property> properties ) {\n final File sidecarFile = sidecarFile(id);\n try {\n final EditableDocument document;\n if (!sidecarFile.exists()) {\n if (properties.isEmpty()) {\n return;\n }\n sidecarFile.createNewFile();\n document = Schematic.newDocument();\n } else {\n try (final FileInputStream sidecarStream = new FileInputStream(sidecarFile)) {\n final Document existing = Json.read(sidecarStream, false);\n document = Schematic.newDocument(existing);\n }\n }\n properties.forEach((key, property) -> {\n if (property == null) {\n translator.removeProperty(document, key, null, null);\n } else {\n translator.setProperty(document, property, null, null);\n }\n });\n try (final FileOutputStream outputStream = new FileOutputStream(sidecarFile)) {\n Json.write(document, outputStream);\n }\n } catch (final IOException e) {\n throw new RepositoryRuntimeException(id, e);\n }\n }",
"public void updateProperties() {\n\t\t\tEnumeration iter = properties.keys();\r\n\t\t\twhile (iter.hasMoreElements()) {\r\n\t\t\t\tString key = (String) iter.nextElement();\r\n\t\t\t\tif (key.startsWith(ConfigParameters.RECENT_FILE_PREFIX)) {\r\n\t\t\t\t\tproperties.remove(key);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Save the list of recent file information\r\n\t\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\t\tproperties.put(ConfigParameters.RECENT_FILE_PREFIX + (i + 1),\r\n\t\t\t\t\t\tfiles[i]);\r\n\t\t\t}\r\n\t\t\t// Save the number of recent files\r\n\t\t\tproperties.remove(ConfigParameters.RECENT_FILE_NUMBER);\r\n\t\t\tproperties.put(ConfigParameters.RECENT_FILE_NUMBER, files.length\r\n\t\t\t\t\t+ \"\");\r\n\t\t\t// Save to external file\r\n\t\t\tsim.core.AppEngine.getInstance().system.systemParameters\r\n\t\t\t\t\t.saveProperties(properties);\r\n\t\t\tdirty = false;\r\n\t\t}",
"Ack editProperty(ProjectEntity entity, String propertyTypeName, JsonNode data);",
"private void loadHelpContent() {\n\t\tGson gson = new GsonBuilder().setPrettyPrinting().create();\n\t\tBufferedReader br;\n\t\ttry {\n\t\t\tbr = new BufferedReader(\n\t\t\t\t\tnew UnicodeReader(new FileInputStream(new File(getHelpContentFilePath())), \"UTF-8\"));\n\t\t\tsx3ConfigurationHelp = gson.fromJson(br, SX3ConfiguartionHelp.class);\n\t\t\tSX3Manager.getInstance().setSx3ConfiguartionHelp(sx3ConfigurationHelp);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tsx3ConfigurationHelp = new SX3ConfiguartionHelp();\n\t\t\tSX3Manager.getInstance().addLog(\"<span style='color:red;'>\" + e.getMessage() + \".</span><br>\");\n\n\t\t}\n\t}",
"private void read() {\n\n\t\t\t\tString road=getActivity().getFilesDir().getAbsolutePath()+\"product\"+\".txt\";\n\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(road); \n\t\t\t\t\tFileInputStream fis = new FileInputStream(file); \n\t\t\t\t\tint length = fis.available(); \n\t\t\t\t\tbyte [] buffer = new byte[length]; \n\t\t\t\t\tfis.read(buffer); \n\t\t\t\t\tString res1 = EncodingUtils.getString(buffer, \"UTF-8\"); \n\t\t\t\t\tfis.close(); \n\t\t\t\t\tjson(res1.toString());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t}",
"public String generateJsonFileFromParsedTextFileInApp() {\n\t\treturn generateJsonFileFromParsedTextFile(TEXTSAMPLEFILE);\n\t}",
"public void readProperties() {\r\n File directory = new File(OptionItems.XML_DEFINITION_PATH);\r\n if (directory.exists()) {\r\n propertyParserXML.readPropertyDefinition(configData.getPropertyList());\r\n propertyParserXML.processPropertyDependency();\r\n }\r\n Log.info(\"info.progress_control.load_property_description\");\r\n }",
"public void IntialProperties() {\r\n Properties prop = new Properties();\r\n try (FileInputStream input = new FileInputStream(\"./config.properties\")) {\r\n prop.load(input);\r\n generate = prop.getProperty(\"generate\");\r\n solve = prop.getProperty(\"algorithm\");\r\n setChanged();\r\n notifyObservers(\"prop\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"public final Properties init() throws FileNotFoundException, IOException{\n /*\n Your properties file must be in the deployed .war file in WEB-INF/classes/tokens. It is there automatically\n if you have it in Source Packages/java/tokens when you build. That is how this will read it in without defining a root location\n https://stackoverflow.com/questions/2395737/java-relative-path-of-a-file-in-a-java-web-application\n */\n String fileLoc =TinyTokenManager.class.getResource(Constant.PROPERTIES_FILE_NAME).toString();\n fileLoc = fileLoc.replace(\"file:\", \"\");\n setFileLocation(fileLoc);\n InputStream input = new FileInputStream(propFileLocation);\n props.load(input);\n input.close();\n currentAccessToken = props.getProperty(\"access_token\");\n currentRefreshToken = props.getProperty(\"refresh_token\");\n currentS3AccessID = props.getProperty(\"s3_access_id\");\n currentS3Secret = props.getProperty(\"s3_secret\");\n currentS3BucketName = props.getProperty(\"s3_bucket_name\");\n currentS3Region = Region.US_WEST_2;\n apiSetting = props.getProperty(\"open_api_cors\");\n return props;\n }",
"public static HashMap<String,String> read_json_file(String filepath){\n HashMap<String,String> map = new HashMap<String,String>();\n try{\n BufferedReader bufferedReader = new BufferedReader(new FileReader(filepath));\n Gson gson = new Gson();\n Object json = gson.fromJson(bufferedReader, Object.class);\n map = new Gson().fromJson(\n json.toString(), new TypeToken<HashMap<String, String>>() {}.getType()\n );\n } catch (FileNotFoundException e ) {\n e.printStackTrace();\n }\n return map;\n }",
"private void readSettingsFromJson(String jsonFilePath) throws FileNotFoundException {\n File jsonFile = new File(jsonFilePath);\n GsonBuilder builder = new GsonBuilder().setPrettyPrinting();\n Gson gson = builder.create();\n if (jsonFile.exists()) {\n // try to read the settings from provided file\n FileReader fileReader = new FileReader(jsonFile);\n serverConfig = gson.fromJson(fileReader, ServerConfig.class);\n log.info(\"reading config from file {}\", jsonFile.getAbsoluteFile());\n } else {\n // file was not found, fall back to default config\n log.warn(\"settings file {} not found, falling back to default config\", jsonFile.getAbsoluteFile());\n serverConfig = ServerConfig.getDefaultConfig();\n String jsonStr = gson.toJson(serverConfig);\n\n try (PrintWriter out = new PrintWriter(jsonFile)) {\n out.print(jsonStr);\n }\n }\n\n // additionally create a map for easy access to repositories based on identifier\n for (ServerRepository serverRepository : serverConfig.getRepositories()) {\n this.serverRepositories.put(serverRepository.getIdentifier(), serverRepository);\n }\n }",
"private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properties();\n\n // Set defaults for 'standard' operation.\n // properties.setProperty(FILENAME_KEY, clientHome + \"/bmo-data.tsv\");\n properties.setProperty(BMO_URI_KEY,\n \"http://www.buildingmanageronline.com/members/mbdev_export.php/download.txt\");\n\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propertiesFilename);\n properties.load(stream);\n System.out.println(\"Loading data input client properties from: \" + propertiesFilename);\n }\n catch (IOException e) {\n System.out.println(propertiesFilename\n + \" not found. Using default data input client properties.\");\n throw e;\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n trimProperties(properties);\n }",
"private static void readCitProperties(String fileName) {\n/* */ try {\n/* 91 */ ResourceLocation e = new ResourceLocation(fileName);\n/* 92 */ InputStream in = Config.getResourceStream(e);\n/* */ \n/* 94 */ if (in == null) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 99 */ Config.dbg(\"CustomItems: Loading \" + fileName);\n/* 100 */ Properties props = new Properties();\n/* 101 */ props.load(in);\n/* 102 */ in.close();\n/* 103 */ useGlint = Config.parseBoolean(props.getProperty(\"useGlint\"), true);\n/* */ }\n/* 105 */ catch (FileNotFoundException var4) {\n/* */ \n/* */ return;\n/* */ }\n/* 109 */ catch (IOException var5) {\n/* */ \n/* 111 */ var5.printStackTrace();\n/* */ } \n/* */ }",
"void setPropertiesFile(File file);",
"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}",
"private JSONObject importFlowJSON (Path pathToFolder) {\n // Create a JSONParser to parse the content of the file\n JSONParser parser = new JSONParser();\n\n // The JSONObject instance that will be returned\n JSONObject flow;\n\n try{\n // Read and parse the json file\n flow = (JSONObject) parser.parse(new FileReader(pathToFolder.toString() + \"/\" + FLOW_FILE_NAME));\n // If the file has been found and parsed we return it as a JSONObject\n return flow;\n } catch (ParseException | IOException e) {\n // If the file hasn't been found we return null\n e.printStackTrace();\n return null;\n }\n }",
"private void populateUserObjectFromJsonObject(User userObject,\n JSONObject jsonObject) throws oracle.adfmf.json.JSONException {\n HashMap<String,Object> properties = new HashMap<String,Object>();\n Iterator keys = jsonObject.keys();\n \n while (keys.hasNext()){\n String key = (String) keys.next();\n \n //write content of the default realm into Java properties\n //and all the other properties into a HashMap\n switch (key) {\n case User.USER_ID:\n userObject.setUserId(jsonObject.getString(User.USER_ID));\n break;\n case User.USER_NAME:\n userObject.setUsername(jsonObject.getString(User.USER_NAME));\n break;\n case User.FIRST_NAME:\n userObject.setFirstName(jsonObject.getString(User.FIRST_NAME));\n break;\n case User.LAST_NAME:\n userObject.setLastName(jsonObject.getString(User.LAST_NAME));\n break;\n case User.EMAIL:\n userObject.setEmail(jsonObject.getString(User.EMAIL));\n break; \n default:\n //save property into MAP\n properties.put(key, jsonObject.get(key)); \n }\n }\n \n //update user object with auxillary properties\n userObject.setProperties(properties); \n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Properties Map contains: \"+MapUtils.dumpObjectProperties(properties), this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n }",
"public static void initialize() {\r\n\t\tjson = new JSONFile(filePath);\t\r\n\t}",
"public PropFileReader(String filename, String jsonFileName){\n this.ruleJsonFile=jsonFileName;\n this.filename=filename;\n this.propertyBuilder();\n }",
"public static void main(String[] args) throws IOException {\n\n String path = System.getProperty(\"user.dir\")+\"\\\\Files\\\\Config2.properties\";\n FileInputStream fileInputStream=new FileInputStream(path);\n Properties properties=new Properties();\n properties.load(fileInputStream);\n System.out.println(properties.get(\"browser\"));\n System.out.println(properties.get(\"url\"));\n System.out.println(properties.get(\"username\"));\n System.out.println(properties.get(\"password\"));\n //fileInputStream.close();\n FileOutputStream fileOutputStream=new FileOutputStream(path);\n Properties properties1=new Properties();\n properties.store(fileOutputStream,\"Masoud\");\n\n\n\n\n }",
"private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }",
"private static void exportJsonFile(File configFile) {\n Gson gson = new Gson();\n \n // Java object to JSON, and assign to a String\n String jsonInString = gson.toJson(GameConfig.getInstance());\n \n try {\n FileWriter writer = new FileWriter(configFile);\n \n writer.append(jsonInString);\n writer.flush();\n writer.close();\n } catch (IOException e) {\n LogUtils.error(\"exportJsonFile => \",e);\n }\n }",
"public static JSONObject loadMOTD() {\n File JSONFile = new File(plugin.getDataFolder() + \"/motd.json\");\n \n if (!JSONFile.exists()){\n Logger.getLogger(MOTDHandler.class.getName()).log(Level.INFO, \"motd.json was not found in the config directory. Attempting to create a blank file.\");\n boolean worked = saveMOTD(new JSONObject());\n if (worked) Logger.getLogger(MOTDHandler.class.getName()).log(Level.INFO, \"motd.json created!\");\n else Logger.getLogger(MOTDHandler.class.getName()).log(Level.INFO, \"JawaToolBox was unable to generate the blank motd.json. This is likely a permissions problem.\");\n return new JSONObject();\n }\n\n try {\n String source = new String(Files.readAllBytes(Paths.get(JSONFile.toURI())));\n return new JSONObject(source);\n } catch (FileNotFoundException ex) {\n return new JSONObject();\n } catch (IOException ex) {\n Logger.getLogger(MOTDHandler.class.getName()).log(Level.SEVERE, \"Something went wrong JawaToolBox wasn't able to read the motd.json. Check directory permissions.\");\n Logger.getLogger(MOTDHandler.class.getName()).log(Level.SEVERE, null, ex);\n return new JSONObject();\n }\n }",
"private void initiateFromSavedData(File nodeFile, File commentFile) {\n\t\tif(nodeFile.exists() && commentFile.exists()){\n\n\t\t\ttry {\n\t\t\t\tpopulatePostLayout(new JSONObject(AppUtil.readFile(nodeFile)));\n\n\t\t\t\tArrayList<JSONObject> commentsObjectsList =null;\n\n\t\t\t\tcommentsObjectsList=getCommentsFromJO(new JSONObject(AppUtil.readFile(commentFile)),commentsObjectsList);\n\n\t\t\t\tprocessCommentResponseAndStoreInLists(commentsObjectsList);\n\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}else{\n\t\t\tinitiateRefreshFromSever(nodeFile,commentFile);\n\t\t}\n\t}",
"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 }",
"public HashMap<String, String> readPropertyFile(String propertyFilePath) throws Exception {\n File propertyFile = null;\n InputStream inputStream = null;\n Properties properties = null;\n HashMap<String, String> propertyMap = new HashMap<String, String>();\n try {\n\n //creating file object\n propertyFile = new File(propertyFilePath);\n\n //check if property file exists on hard drive\n if (propertyFile.exists()) {\n inputStream = new FileInputStream(propertyFile);\n // check if the file exists in web environment or relative to class path\n } else {\n inputStream = getClass().getClassLoader().getResourceAsStream(propertyFilePath);\n }\n\n if (inputStream == null) {\n throw new Exception(\"FILE NOT FOUND : inputStream = null : \" + propertyFilePath);\n }\n\n properties = new Properties();\n properties.load(inputStream);\n Enumeration enuKeys = properties.keys();\n while (enuKeys.hasMoreElements()) {\n\n String key = (String) enuKeys.nextElement();\n String value = properties.getProperty(key);\n\n //System.out.print(\"key = \"+key + \" : value = \"+value);\n propertyMap.put(key, value);\n }\n if (propertyMap == null) {\n throw new Exception(\"readPropertyFile : propertyMap = null\");\n }\n\n return propertyMap;\n } catch (Exception e) {\n throw new Exception(\"readPropertyFile : \" + e.toString());\n } finally {\n try {\n inputStream.close();\n } catch (Exception e) {\n }\n try {\n properties = null;\n } catch (Exception e) {\n }\n }\n }",
"@Test\r\n\t\tpublic static void Properties() \r\n\r\n\t\t{\r\n\t\t\ttry{\r\n\t\t\t\tprop = new Properties();\r\n\t\t\t\tfile = new File(\"C:\\\\Users\\\\vardhan\\\\eclipse-workspace\\\\com.makemytrip\\\\prop.properties\");\r\n\t\t\t\tfilereader = new FileReader(file);\r\n\t\t\t\tprop.load(filereader);\r\n\t\t\t\t\r\n\t\t\t }\r\n\t\t\r\n\t\t\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}",
"@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }",
"PropertiesTask setProperties( File propertiesFile );",
"private JSONObject getJsonObject(Resource resource) {\n JSONParser parser = new JSONParser();\n JSONObject obj = null;\n try {\n obj = (JSONObject) parser.parse(new InputStreamReader(resource.getInputStream(), StandardCharsets.UTF_8));\n } catch (Exception e) {\n e.printStackTrace();\n }\n return obj;\n }",
"@Before\n public void setupJsonObject() throws IOException {\n jsonObject = JsonUtils.fromString(\"{\\n\"\n + \" \\\"@id\\\" : \\\"http://localhost:8080/fcrepo/rest/hello-world\\\",\\n\"\n + \" \\\"@type\\\" : \\\"koio:KnowledgeObject\\\",\\n\"\n + \" \\\"contributors\\\" : \\\"Kgrid Team\\\",\\n\"\n + \" \\\"hasImplementation\\\" : [ \\\"http://localhost:8080/fcrepo/rest/hello-world/v0.0.1\\\", \\\"http://localhost:8080/fcrepo/rest/hello-world/v0.0.2\\\" ],\\n\"\n + \" \\\"keywords\\\" : \\\"test hello world\\\",\\n\"\n + \" \\\"description\\\" : \\\"Test Hello World \\\",\\n\"\n + \" \\\"identifier\\\" : \\\"ark:/hello/world\\\",\\n\"\n + \" \\\"title\\\" : \\\"Hello World Title\\\",\\n\"\n + \" \\\"junknotinkoio\\\" : \\\"Junk Not in KOIO\\\",\\n\"\n + \" \\\"@context\\\" : {\\n\"\n + \" \\\"hasImplementation\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://kgrid.org/koio#hasImplementation\\\",\\n\"\n + \" \\\"@type\\\" : \\\"@id\\\"\\n\"\n + \" },\\n\"\n + \" \\\"description\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://purl.org/dc/elements/1.1/description\\\"\\n\"\n + \" },\\n\"\n + \" \\\"contributors\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://kgrid.org/koio#contributors\\\"\\n\"\n + \" },\\n\"\n + \" \\\"title\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://purl.org/dc/elements/1.1/title\\\"\\n\"\n + \" },\\n\"\n + \" \\\"keywords\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://kgrid.org/koio#keywords\\\"\\n\"\n + \" },\\n\"\n + \" \\\"identifer\\\" : {\\n\"\n + \" \\\"@id\\\" : \\\"http://purl.org/dc/elements/1.1/identifer\\\"\\n\"\n + \" },\\n\"\n + \" \\\"premis\\\" : \\\"http://www.loc.gov/premis/rdf/v1#\\\",\\n\"\n + \" \\\"test\\\" : \\\"info:fedora/test/\\\",\\n\"\n + \" \\\"rdfs\\\" : \\\"http://www.w3.org/2000/01/rdf-schema#\\\",\\n\"\n + \" \\\"xsi\\\" : \\\"http://www.w3.org/2001/XMLSchema-instance\\\",\\n\"\n + \" \\\"xmlns\\\" : \\\"http://www.w3.org/2000/xmlns/\\\",\\n\"\n + \" \\\"rdf\\\" : \\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\",\\n\"\n + \" \\\"fedora\\\" : \\\"http://fedora.info/definitions/v4/repository#\\\",\\n\"\n + \" \\\"xml\\\" : \\\"http://www.w3.org/XML/1998/namespace\\\",\\n\"\n + \" \\\"koio\\\" : \\\"http://kgrid.org/koio#\\\",\\n\"\n + \" \\\"ebucore\\\" : \\\"http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#\\\",\\n\"\n + \" \\\"ldp\\\" : \\\"http://www.w3.org/ns/ldp#\\\",\\n\"\n + \" \\\"xs\\\" : \\\"http://www.w3.org/2001/XMLSchema\\\",\\n\"\n + \" \\\"fedoraconfig\\\" : \\\"http://fedora.info/definitions/v4/config#\\\",\\n\"\n + \" \\\"foaf\\\" : \\\"http://xmlns.com/foaf/0.1/\\\",\\n\"\n + \" \\\"dc\\\" : \\\"http://purl.org/dc/elements/1.1/\\\"\\n\"\n + \" }\\n\"\n + \"}\");\n\n\n }",
"public String createJsonObject() {\n JSONObject jsonObject = new JSONObject();\n\n try {\n if (!vslaId.equalsIgnoreCase(\"-1\")) {\n // editing existing information\n jsonObject.put(\"VslaId\", vslaId);\n }\n jsonObject.put(\"GroupSupport\", grpSupportType);\n jsonObject.put(\"VslaName\", vslaName);\n jsonObject.put(\"grpPhoneNumber\", grpPhoneNumber);\n jsonObject.put(\"PhysicalAddress\", physAddress);\n jsonObject.put(\"GpsLocation\", locCoordinates);\n jsonObject.put(\"representativeName\", representativeName);\n jsonObject.put(\"representativePosition\", representativePost);\n jsonObject.put(\"GroupAccountNumber\", grpBankAccount);\n jsonObject.put(\"repPhoneNumber\", repPhoneNumber);\n jsonObject.put(\"RegionName\", regionName);\n jsonObject.put(\"tTrainerId\", tTrainerId);\n jsonObject.put(\"Status\", \"2\");\n jsonObject.put(\"numberOfCycles\", numberOfCycles);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return jsonObject.toString();\n }",
"private void loadProperties(){\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }",
"private void loadPropertyFile(InputStream stream) throws IOException{\n\t\tproperties = new Properties();\n\t\tproperties.load(stream);\n\t}",
"public Map<String, String> fetchPropertyFromFile()\n {\n Map<String, String> components = new HashMap<>();\n Properties props = new Properties();\n InputStream in = null;\n try {\n in = new FileInputStream(\"/slog/properties/LogAnalyzer.properties\");\n props.load(in);\n in.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n catch (IOException e) {\n e.printStackTrace();\n }\n// Add component config , logname RegEx pattern to a Map. This map will be used to search matching files and forming logstash command\n for (String key : props .stringPropertyNames())\n {\n System.out.println(key + \" = \" + props .getProperty(key));\n components.put (key, props.getProperty(key));\n }\n\n return components;\n }",
"private static void processIncludedConfig() {\n String configName = \"config.\" + getRunMode() + \".properties\";\n\n //relative path cannot be recognized and not figure out the reason, so here use absolute path instead\n InputStream configStream = Configuration.class.getResourceAsStream(\"/\" + configName);\n if (configStream == null) {\n log.log(Level.WARNING, \"configuration resource {0} is missing\", configName);\n return;\n }\n\n try (InputStreamReader reader = new InputStreamReader(configStream, StandardCharsets.UTF_8)) {\n Properties props = new Properties();\n props.load(reader);\n CONFIG_VALUES.putAll(props);\n } catch (IOException e) {\n log.log(Level.WARNING, \"Unable to process configuration {0}\", configName);\n }\n\n }",
"public static JsonObject fileToJson(File jsonFile) {\n Gson gson = new GsonBuilder().disableHtmlEscaping().setPrettyPrinting().create();\n JsonObject jsonObject = null;\n\n try {\n Reader reader = new FileReader(jsonFile);\n jsonObject = gson.fromJson(reader, JsonObject.class);\n } catch (FileNotFoundException e) {\n //log.error(\"FileNotFound Exception occurred when converting JSON file to JSON Object\", e); //todo: FileNotFound exception occured. error message?\n e.printStackTrace();\n }\n\n return jsonObject;\n }",
"public void readObjectDescription(String fileName) {\n Scanner in;\n try {\n in = new Scanner(new File(fileName));\n // Read the number of vertices\n numCtrlPoints = in.nextInt();\n controlPoints = new Point[numCtrlPoints];\n \n // Read the vertices\n for (int i = 0; i < numCtrlPoints; i++) {\n // Read a vertex\n int x = in.nextInt();\n int y = in.nextInt();\n //vertexArray[i] = new Point(x, y);\n controlPoints[i] = new Point(x, y);\n }\n } catch (FileNotFoundException e) {\n System.out.println(e);\n }\n\n }",
"static void getProp() throws Exception {\r\n\r\n\t\tFileInputStream fileInputStream = new FileInputStream(\r\n\t\t\t\t\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(fileInputStream);\r\n\r\n\t\tSystem.out.println(\"By using File Input stream class: \" + properties.getProperty(\"username\"));\r\n\r\n\t}",
"public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public UpdateUserResource() {\n Properties prop = new Properties();\n InputStream input = null;\n\n try {\n input = LDAPUtil.class.getResourceAsStream(\"/OktaLDAPBridgeConfig.properties\");\n\n // load a properties file\n prop.load(input);\n\n oktaAPIUrlPrefix = prop.getProperty(\"oktaAPIUrlPrefix\");\n myHTTPUtil = HTTPUtil.getInstance();\n\n } catch (IOException ex) {\n LOGGER.error(\"Error during reading config file : \", ex);\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n LOGGER.error(\"Error closing config file handle : \", e);\n }\n }\n }\n }",
"@BeforeSuite\n\tpublic void propertiesFileReader(){\n\t\tif(prop == null){\t\t\t\n\t\t\tprop = new Properties();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"qa\")){ prop.load(new\n\t\t\t\t * FileInputStream(qaProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"stage\")){ prop.load(new\n\t\t\t\t * FileInputStream(stagProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"prod\")){ prop.load(new\n\t\t\t\t * FileInputStream(prodProperty)); }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"qa\")) \n\t\t\t\t\tFileUtils.copyFile(new File(qaProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"stage\"))\n\t\t\t\t\tFileUtils.copyFile(new File(stagProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"prod\"))\n\t\t\t\t\tFileUtils.copyFile(new File(prodProperty), new File(defaultProperty));\n\t\t\t\t\n\t\t\t\tprop.load(new FileInputStream(defaultProperty));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"user + pass [\"+prop.getProperty(\"username\")+\"===\"+prop.getProperty(\"password\"));\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public TranscriptEntry(String filename) {\n JSONParser jsonParser = new JSONParser();\n try (FileReader reader = new FileReader(filename)){\n Object obj = jsonParser.parse(reader);\n\n JSONObject entry = (JSONObject) obj;\n JSONObject myCourse = (JSONObject) entry.get(\"course\");\n course = parseCourse(myCourse);\n grade = (String) entry.get(\"grade\");\n inProgress = (boolean) entry.get(\"inProgress\");\n courseComplete = (boolean) entry.get(\"courseComplete\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public ConfigFileReader(){\r\n\t\t \r\n\t\t BufferedReader reader;\r\n\t\t try {\r\n\t\t\t reader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\t properties = new Properties();\r\n\t\t\t try {\r\n\t\t\t\t properties.load(reader);\r\n\t\t\t\t reader.close();\r\n\t\t\t } catch (IOException e) {\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t throw new RuntimeException(\"configuration.properties not found at \" + propertyFilePath);\r\n\t \t } \r\n\t }",
"static void getProps() throws Exception {\r\n\t\tFileReader fileReader = new FileReader(\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\t\tProperties properties = new Properties();\r\n\r\n\t\tproperties.load(fileReader);\r\n\r\n\t\tSystem.out.println(\"By using File Reader: \" + properties.getProperty(\"username\"));\r\n\r\n\t}",
"private static JSONObject fileReader(String path) throws Exception{\r\n return (JSONObject) jsonParser.parse(new String(Files.readAllBytes(Paths.get(path))));\r\n }",
"private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = ConfigReader.class.getClassLoader().getResourceAsStream(\"source/config.properties\");\n\t\t// on peut remplacer ConfigReader.class par getClass()\n\t\ttry {\n\t\t\tconfigfic.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }",
"private JsonObject getSwaggerObject(String swaggerContent) throws RegistryException {\n\t\tJsonElement swaggerElement = parser.parse(swaggerContent);\n\n\t\tif (swaggerElement == null || swaggerElement.isJsonNull()) {\n\t\t\tthrow new RegistryException(\"Unexpected error occurred when parsing the swagger content.\");\n\t\t} else {\n\t\t\treturn swaggerElement.getAsJsonObject();\n\t\t}\n\t}",
"public void load(){\n // Recover docIDs\n try(Reader reader = new FileReader(\"postings/docIDs.json\")){\n this.docIDs = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, String>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/docLengths.json\")){\n this.docLengths = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/titleToNumber.json\")){\n this.titleToNumber = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void writeProperties() {\n propsMutex.writeAccess(new Runnable() {\n public void run() {\n OutputStream out = null;\n FileLock lock = null;\n try {\n FileObject pFile = file.getPrimaryFile();\n FileObject myFile = FileUtil.findBrother(pFile, extension);\n if (myFile == null) {\n myFile = FileUtil.createData(pFile.getParent(), pFile.getName() + \".\" + extension);\n }\n lock = myFile.lock();\n out = new BufferedOutputStream(myFile.getOutputStream(lock));\n props.store(out, \"\");\n out.flush();\n lastLoaded = myFile.lastModified();\n logger.log(Level.FINE, \"Written AssetData properties for {0}\", file);\n } catch (IOException e) {\n Exceptions.printStackTrace(e);\n } finally {\n if (out != null) {\n try {\n out.close();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n }\n if (lock != null) {\n lock.releaseLock();\n }\n }\n }\n });\n }",
"public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}",
"@Override\n public Map<String, String> readProperty(String fileName) {\n Map<String, String> result = new HashMap<>();\n Properties prop = new Properties();\n InputStream input;\n try {\n input = FullPropertyReader.class.getClassLoader().getResourceAsStream(fileName);\n prop.load(input);\n Set<String> strings = prop.stringPropertyNames();\n for (String string : strings) {\n result.put(string, prop.getProperty(string));\n }\n } catch (IOException e) {\n throw new PropertyReaderException(\"Trouble in FullPropertyReader\", e);\n }\n return result;\n }",
"public ConfigFileReader(){\r\n\t\tBufferedReader reader;\r\n\t\ttry {\r\n\t\t\treader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\tproperties = new Properties();\r\n\t\t\ttry {\r\n\t\t\t\tproperties.load(reader);\r\n\t\t\t\treader.close();\r\n\t\t\t}catch(IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}catch(FileNotFoundException ex) {\r\n\t\t\tSystem.out.println(\"Configuration.properties not found at \"+propertyFilePath);\r\n\t\t}\r\n\t}",
"public Integer loadJSONFile()\n {\n JSONParser parser = new JSONParser();\n try{\n\n Object obj = parser.parse(new FileReader(\"/Users/rnuka/Desktop/sample.json\"));\n JSONObject jsonObj = (JSONObject)obj;\n\n Long age = (Long)jsonObj.get(\"age\");\n System.out.println(\"age:\"+age);\n\n String name = (String)jsonObj.get(\"name\");\n System.out.println(\"name:\" + name);\n\n JSONArray address = (JSONArray)jsonObj.get(\"address\");\n\n for(Object str : address){\n System.out.println(str);\n }\n\n\n\n }catch(Exception e){\n e.printStackTrace();\n }\n return 1;\n }",
"private static void updateGitHubProps(String aToken) {\n\t\tFile homeDir = new File(System.getProperty(\"user.home\"));\n\t\tFile propertyFile = new File(homeDir, PROP_FILE_NAME);\n\n\t\tProperties props = new Properties();\n\n\t\tif (propertyFile.exists()) {\n\t\t\tFileInputStream fis = null;\n\t\t\ttry {\n\t\t\t\tfis = new FileInputStream(propertyFile);\n\t\t\t\tprops.load(fis);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (fis != null) {\n\t\t\t\t\t\tfis.close();\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// nothing to do\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// update the token property which also happens to be the only property\n\t\tprops.setProperty(PROP_KEY_TOKEN, aToken);\n\n\t\t// write the updated properties file to the file system\n\t\tFileOutputStream fos = null;\n\n\t\ttry {\n\t\t\tfos = new FileOutputStream(propertyFile);\n\t\t\tprops.store(fos, \"The properties files for git hub authentication tokens\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (fos != null) {\n\t\t\t\ttry {\n\t\t\t\t\tfos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// nothing to do\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tLog.out(GHConnectionBuilder.class, \"Updated the token properties file at: \" + propertyFile.getAbsolutePath());\n\t}",
"public static void readProperties(String propFilename){\n\t\tString propertiesFilename = propFilename;\n\t\tProperties properties = new Properties();\n\n\t\tFileInputStream in;\n\t\ttry {\n\t\t\tin = new FileInputStream(propertiesFilename);\n\t\t\tproperties.load(in);\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading properties \"+propertiesFilename);\n\t\t\tSystem.exit(1);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tString path=\"Not set\";\n\t\tint popSize=0;\n\t\tint features=0;\n\t\tint maxGenerations=0;\n\t\tboolean log=false;\n\t\tboolean debug=false;\n\t\tboolean printbest=false;\n\t\tboolean cwd=false;\n\t\tboolean arrcache=false;\n\t\tdouble addSubRangeH;\n\t\tdouble divMultRangeH;\n\t\tdouble randomThicknessRange;\n\t\tdouble randomVelocityRange;\n\n\t\tdouble addSubRangeVS;\n\t\tdouble divMultRangeVS;\n\n\t\tint zThreshold=0;\n\t\tboolean useThreshold = true;\n\n\tif(properties.containsKey(\"path\")){\n\t\tpath = ((String)properties.get(\"path\"));\n\t\tif(properties.containsKey(\"cwd\")){\n\t\t\tcwd = Boolean.parseBoolean((String)properties.get(\"cwd\"));\n\t\t}\n\t\tc.path=path;\n\t\tc.setPaths(cwd);\n\t}else{\n\t\tSystem.out.println(\"Path : \"+path);\n\t\tSystem.exit(1);\n\t}if(properties.containsKey(\"populationSize\")){\n\t\tpopSize = Integer.parseInt((String)properties.get(\"populationSize\"));\n\t\tc.populationSize =popSize;\n\t}if(properties.containsKey(\"printBest\")){\n\t\tprintbest = Boolean.parseBoolean((String)properties.get(\"printBest\"));\n\t\tc.printBest=printbest;\n\t}if(properties.containsKey(\"maxGenerations\")){\n\t\tmaxGenerations = Integer.parseInt((String)properties.get(\"maxGenerations\"));\n\t\tc.maxGenerations=maxGenerations;\n\t}if(properties.containsKey(\"log\")){\n\t\tlog = Boolean.parseBoolean((String)properties.get(\"log\"));\n\t\tc.log=log;\n\t}if(properties.containsKey(\"debug\")){\n\t\tdebug = Boolean.parseBoolean((String)properties.get(\"debug\"));\n\t\tc.debug=debug;\n\t}if(properties.containsKey(\"features\")){\n\t\tfeatures = Integer.parseInt((String)properties.get(\"features\"));\n\t\tc.features=features;\n\t}if(properties.containsKey(\"addSubRangeH\")){\n\t\taddSubRangeH = Double.parseDouble((String)properties.get(\"addSubRangeH\"));\n\t\tc.addSubRangeH=addSubRangeH;\n\t}if(properties.containsKey(\"addSubRangeVS\")){\n\t\taddSubRangeVS = Double.parseDouble((String)properties.get(\"addSubRangeVS\"));\n\t\tc.addSubRangeVS=addSubRangeVS;\n\t}if(properties.containsKey(\"divMultRangeH\")){\n\t\tdivMultRangeH = Double.parseDouble((String)properties.get(\"divMultRangeH\"));\n\t\tc.divMultRangeH=divMultRangeH;\n\t}if(properties.containsKey(\"divMultRangeVS\")){\n\t\tdivMultRangeVS = Double.parseDouble((String)properties.get(\"divMultRangeVS\"));\n\t\tc.divMultRangeVS=divMultRangeVS;\n\t}if(properties.containsKey(\"randomThicknessRange\")){\n\t\trandomThicknessRange = Double.parseDouble((String)properties.get(\"randomThicknessRange\"));\n\t\tc.randomThicknessRange=randomThicknessRange;\n\t}if(properties.containsKey(\"randomVelocityRange\")){\n\t\trandomVelocityRange = Double.parseDouble((String)properties.get(\"randomVelocityRange\"));\n\t\tc.randomVelocityRange=randomVelocityRange;\n\t}if(properties.containsKey(\"zThreshold\")){\n\t\tzThreshold = Integer.parseInt((String)properties.get(\"zThreshold\"));\n\t\tc.zThreshold=zThreshold;\n\t}if(properties.containsKey(\"useThreshold\")){\n\t\tuseThreshold = Boolean.parseBoolean((String)properties.get(\"useThreshold\"));\n\t\tc.useThreshold=useThreshold;\n\t}\n\n\tSystem.out.println(\" Debug? \"+debug + \" | Log? \"+ log + \" | printBest? \"+ printbest);\n\tSystem.out.println(\"Pop: \"+c.populationSize+\" | Max Gens: \"+ maxGenerations+ \"\\nPath: \"+c.path);\n\tSystem.out.println(\"randomThicknessRange :\"+c.randomThicknessRange+\" randomVelocityRange :\"+c.randomVelocityRange);\n\tSystem.out.println(\"AddSubRange H :\"+c.addSubRangeH+\" VS :\"+c.addSubRangeVS);\n\tSystem.out.println(\"divMultRange H :\"+c.divMultRangeH+\" VS :\"+c.divMultRangeVS);\n\tSystem.out.println(\"Threshold ? \"+c.useThreshold+\" : \"+c.zThreshold);\n\t}",
"java.lang.String getMetadataJson();",
"public ReadConfigFile (){\n\t\ttry {\n\t\t\tinput = ReadConfigFile.class.getClassLoader().getResourceAsStream(Constant.CONFIG_PROPERTIES_DIRECTORY);\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}",
"public static void savePropertiesFile(Properties propFile, String path, String comments) {\n\t\ttry {\n\t\t\tpropFile.store(new FileOutputStream(path), comments);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error Saving Properties File\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n\tpublic void OC_setPropsJSON(JSONObject jo)\r\n\t{\n\t\t\r\n\t}",
"public static void parseUiProperties() throws IOException\n\t{\n \n File uiFile = new File(getJarDirectory(), \"GoBibleCore/ui.properties\");\n boolean bRet = uiFile.exists();\n String sFileExists = \"False\";\n if (bRet)\n sFileExists = \"True\";\n System.out.println(uiFile.getAbsolutePath() + \" exists:\" + sFileExists);\n\t\t// Open the file for reading one line at a time in UTF-8 character encoding\n\t\tLineNumberReader reader = new LineNumberReader(new InputStreamReader(new FileInputStream(uiFile), \"UTF-8\"));\n\t\t\n\t\tString line = null;\n\t\t\n\t\t// Read the properties in the file\n\t\twhile ((line = reader.readLine()) != null)\n\t\t{\n\t\t\tif (line.startsWith(\"UI-\"))\n\t\t\t{\n\t\t\t\tint index = line.indexOf(':');\n\t\t\t\tuiProperties.put(line.substring(0, index), line.substring(index + 1));\n\t\t\t}\n\t\t else if(line.startsWith(\"#\") ||line.startsWith(\"//\") || line.startsWith(\"rem\") || line.startsWith(\"REM\"))\n\t\t {\n\t\t //do nothing - ignore line\n\t\t }\n\t\t\t// If line isn't empty then report that we don't know what it is\n\t\t\telse if (!line.trim().equals(\"\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error parsing ui.properties file. Can't understand line:\\n\" + line);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Close the file\n\t\treader.close();\n\t}",
"@Override\r\n\tpublic void setPropFile(Properties prop) {\n\t\t\r\n\t}",
"private void initializeProperties() throws IOException {\n String userHome = org.wattdepot.util.logger.WattDepotUserHome.getHomeString();\n String wattDepotHome = userHome + \"/.wattdepot\";\n String clientHome = wattDepotHome + \"/client\";\n String propFile = clientHome + \"/datainput.properties\";\n initializeProperties(propFile);\n }",
"public void write() throws IOException { \n FileOutputStream fos = new FileOutputStream(new File(_propertyFileDir, \n DAS_PROPERTY_FILE_NAME));\n _properties.store(fos, _strMgr.getString(\"dasPropertyFileComment\"));\n fos.close(); \n }",
"public void loadObject() {\n\n obj = new Properties();\n try {\n obj.load(new FileInputStream(\"./src/test/resources/config.properties\"));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"@Test\n public void testGetDuplicateTranslationKeysWithComment() throws Exception {\n final File testFile = getTestFile(\"messages.properties\");\n FileUtils.writeLines(testFile, Arrays.asList(\"comment.dup=foo\", \"comment.not.dup=bar\", \"# This is a comment\", \"comment.dup=fizzbuzz\"));\n assertThat(parser.getDuplicateTranslationKeys(testFile)).hasSize(1).contains(\"comment.dup\");\n }",
"private void reloadVersion2(BufferedReader in)\n throws ReloadFault, IOException {\n String line;\n\n // look for optional checksum and then test description,\n // skipping comments\n while ((line = in.readLine()) != null) {\n if (line.equals(JTR_V2_TESTDESC)) {\n break;\n }\n //else if (line.startsWith(JTR_V2_CHECKSUM)) {\n //checksumText = line.substring(JTR_V2_CHECKSUM.length());\n //}\n else if (!line.startsWith(\"#\")) {\n throw new ReloadFault(i18n, \"rslt.badLine\", line);\n }\n }\n\n // this probably won't work with a normal Properties object\n String[] tdProps = PropertyArray.load(in);\n\n if (desc == null) {\n uniquifyStrings(tdProps);\n desc = TestDescription.load(tdProps);\n }\n tdProps = null; // dump it\n\n // XXX compare to TD\n\n // remove comment lines and look for test env props\n while ((line = in.readLine()) != null) {\n if (line.startsWith(JTR_V2_RESPROPS)) {\n break;\n } else if (line.startsWith(JTR_V2_ENVIRONMENT)) {\n env = PropertyArray.load(in);\n uniquifyStrings(env);\n } else if (!line.startsWith(\"#\")) {\n throw new ReloadFault(i18n, \"rslt.badLine\", line);\n }\n }\n\n if (env == null) {\n env = new String[]{};\n }\n\n if (line == null) {\n throw new ReloadFault(i18n, \"rslt.badFormat\");\n }\n\n String[] trProps = PropertyArray.load(in);\n\n if (props == null) {\n // restore the properties of this result\n uniquifyStrings(trProps);\n props = trProps;\n }\n\n trProps = null; // dump it\n\n // read the sections\n int sectionCount = parseSectionCount(PropertyArray.get(props, SECTIONS));\n sections = new Section[sectionCount];\n for (int i = 0; i < getSectionCount(); i++) {\n sections[i] = new Section(in);\n }\n\n // get the final test status\n while ((line = in.readLine()) != null) {\n if (line.startsWith(JTR_V2_TSTRESULT)) {\n execStatus = Status.parse(line.substring(JTR_V2_TSTRESULT.length()));\n break;\n }\n }\n\n if (execStatus == null) {\n execStatus = Status.error(\"NO STATUS RECORDED IN FILE\");\n }\n\n // checksum support removed\n checksumState = NO_CHECKSUM;\n }",
"private void parseMaterialProperties(String line) {\n int colonIdx = line.indexOf(\":\");\n //find matdef file\n if (colonIdx != -1) {\n line = line.replaceFirst(\"Material\", \"\");\n line = line.replace(\"{\", \"\");\n String[] lines = line.split(\":\");\n setName(lines[0].trim());\n setMatDefName(lines[1].trim());\n }\n }",
"public JSONObject toJSON() {\n\t\tJSONObject json = new JSONObject();\n\t\tjson.putOpt(ABSOLUTE_FILE_PATH, absoluteFilePath);\n\t\tjson.putOpt(RELATIVE_FILE_PATH, relativeFilePath);\n\t\tjson.putOpt(EVENT_TYPE, type);\n\t\tjson.putOpt(TIME, time);\n\t\treturn json;\n\t}"
] | [
"0.5790496",
"0.5508893",
"0.5405721",
"0.5382717",
"0.5288125",
"0.51542693",
"0.51514375",
"0.51063085",
"0.510056",
"0.50909805",
"0.5083305",
"0.50813806",
"0.50807685",
"0.5071786",
"0.5067584",
"0.50278986",
"0.5005074",
"0.4997109",
"0.49960077",
"0.4993361",
"0.49921066",
"0.49906805",
"0.49843627",
"0.49824134",
"0.49610496",
"0.49469662",
"0.49435133",
"0.4942639",
"0.49413556",
"0.4939692",
"0.49381623",
"0.49336857",
"0.4922056",
"0.4918985",
"0.4904872",
"0.49032703",
"0.49022487",
"0.4887756",
"0.48694053",
"0.4862233",
"0.48605976",
"0.48574364",
"0.48560128",
"0.48504052",
"0.4842682",
"0.48412523",
"0.4834794",
"0.4829895",
"0.4821446",
"0.4818321",
"0.481137",
"0.48109928",
"0.48087025",
"0.4808354",
"0.4799439",
"0.47833526",
"0.47820318",
"0.4768777",
"0.47621852",
"0.4754907",
"0.47536483",
"0.47483268",
"0.47469515",
"0.47395572",
"0.4737059",
"0.47335443",
"0.4717775",
"0.47034392",
"0.4699021",
"0.46968278",
"0.4695913",
"0.46950886",
"0.46930283",
"0.46929052",
"0.46694937",
"0.46671954",
"0.4660787",
"0.4639686",
"0.4636823",
"0.46317506",
"0.4631688",
"0.46311355",
"0.46244815",
"0.46231288",
"0.4620404",
"0.46186352",
"0.46085197",
"0.46057293",
"0.4597506",
"0.45966345",
"0.4592993",
"0.45916387",
"0.45877627",
"0.4586962",
"0.4581666",
"0.45797232",
"0.45741558",
"0.4573941",
"0.4572482",
"0.45720708"
] | 0.5917904 | 0 |
Billing Time service exposes methods to deal with billing time operations. | public interface BillingTimeService
{
/**
* This method returns the {@link BillingTimeModel} associated with the code.
*
* @param code
* the code
* @return The {@link BillingTimeModel}
*/
@Nonnull
BillingTimeModel getBillingTimeForCode(@Nonnull String code);
/**
* This method returns all {@link BillingTimeModel}s.
*
* @return All {@link BillingTimeModel}s.
*/
@Nonnull
List<BillingTimeModel> getAllBillingTimes();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BillingSource billingSource();",
"ShipmentTimeEstimate createShipmentTimeEstimate();",
"hr.client.appuser.CouponCenter.TimeRange getUseTime();",
"hr.client.appuser.CouponCenter.TimeRange getUseTime();",
"hr.client.appuser.CouponCenter.TimeRange getExchangeTime();",
"BillingAccount getBillingAccount();",
"TemporalService accountingForTransmissionTime();",
"public Date getPayTime() {\n return payTime;\n }",
"public Date getPayTime() {\n return payTime;\n }",
"ShipmentItemBilling createShipmentItemBilling();",
"public void setPaidTime(Date paidTime) {\n this.paidTime = paidTime;\n }",
"@Override\r\n\tpublic void pay(long dateTime, float charge) {\n\t\t\r\n\t}",
"public Date getPaidTime() {\n return paidTime;\n }",
"public void timeLogic(int time){\n //Add logic to decide time increments at which tickets will be granted\n }",
"TimeSpent createTimeSpent();",
"public Purchase_product() {\n initComponents();\n \n// SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n// Date d = new Date();\n// String date=dateFormat.format(d);\n//\n// \n// DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"HH:mm:ss\");\n// LocalDateTime now = LocalDateTime.now();\n// String time = dtf.format(now);\n \n \n }",
"hr.client.appuser.CouponCenter.TimeRangeOrBuilder getUseTimeOrBuilder();",
"hr.client.appuser.CouponCenter.TimeRangeOrBuilder getUseTimeOrBuilder();",
"public Date getOrderTime();",
"public Date getPaymentTime() {\n\t\treturn paymentTime;\n\t}",
"public InvoiceTimeTypeTransferCache(UserVisit userVisit, InvoiceControl invoiceControl) {\n super(userVisit, invoiceControl);\n \n setIncludeEntityInstance(true);\n }",
"void payBills();",
"public void validate_Billable_Task_Using_All_Customer_And_All_Project(String custListOption,String projectName,String taskName,String taskBudgetTime,String billingType) {\n\t\tselectSingleDropDownItem(driver, AttSelectCustListBox, custListOption);\n\t\tselectSingleDropDownItem(driver, AttSelectProjectListBox, projectName);\n\t\tAttTaskNameTextBox.sendKeys(taskName);\n\t\tAttBudgetTimeTextBox.sendKeys(taskBudgetTime);\n\t\tAttCreateTaskBtn.click();\n\t\t\n\t}",
"public Date getWishPaymentTime() {\n return wishPaymentTime;\n }",
"StatusTimeType getStatusTime();",
"public void setPayTime(Date payTime) {\n this.payTime = payTime;\n }",
"public void setPayTime(Date payTime) {\n this.payTime = payTime;\n }",
"public void setWishPaymentTime(Date wishPaymentTime) {\n this.wishPaymentTime = wishPaymentTime;\n }",
"private Timecurve createTimecurve(String objectId, String tenantId,\n String clearingReference, Boolean needBalanceApproval, LocalDate refDate) {\n String name = \"TIMECURVE: \" + clearingReference;\n\n return createTimecurve(objectId, new Timecurve(null, tenantId, name, clearingReference,\n needBalanceApproval), refDate);\n }",
"public static void chargeHire(int minutes) {\n int time = minutes;\n double cost;\n\n if(time >= 0 && time <30) {\n cost = 0;\n }\n else {\n if(time >30 && time < 60) {\n cost = 0.5;\n }\n else {\n if(time > 60 && time < 120) {\n cost = 1.50;\n }\n else{\n if(time > 120 && time <180) {\n cost = 6.50;\n }\n else {\n\n int numOfHalfHours = (time/30);\n int b = (numOfHalfHours - 5);\n int c = (b*2);\n cost = (6.50 + c);\n }\n }\n }\n }\n System.out.println(\"€\" +cost);\n if(cost <= accountBalance) {\n accountBalance = (accountBalance - cost);\n// System.out.println(\"Bike rent successful! you have been charged\" + cost);\n Receipt.printSlip(cost);\n }\n else {\n System.out.println(\"There were insuficient funds in your account.\" + \"\\n\" +\n \"We will now charge the credit card you have provided us instead.\");\n }\n }",
"public double calculatePayment (int hours);",
"public FreeTime() {}",
"public DateTime getBilledAt() {\n return this.billedAt;\n }",
"public interface TimeService {\n\n Calendar getCalendar();\n\n Calendar createCalendarFromDate(Date date);\n\n long getTimeDifference(Calendar startDate, Calendar endDate);\n\n long getTimeDifferenceInDays(Calendar startDate, Calendar endDate);\n\n long getTimeDifferenceInHours(Calendar startDate, Calendar endDate);\n\n long getTimeDifferenceInMinutes(Calendar startDate, Calendar endDate);\n\n}",
"public void setPaymentTime(String paymentTime) {\r\n\t\tthis.paymentTime = paymentTime;\r\n\t}",
"public List<Map<String, Object>> getSubscriptionsDueForBilling();",
"private BillingPeriod getBillingPeriod() {\n\t\treturn (BillingPeriod) this.getBean();\n\t}",
"public void setProvisionTime(java.util.Calendar param){\n localProvisionTimeTracker = true;\n \n this.localProvisionTime=param;\n \n\n }",
"public void setPaymentTime(Date paymentTime) {\n\t\tthis.paymentTime = paymentTime;\n\t}",
"@Override\n public String toString() {return super.toString()+\" payment by hours\";}",
"public void validate_Billable_Task_Using_Existing_Customer_And_Existing_Project(String custListOption,String projectName,String taskName,String taskBudgetTime,String billingType) {\n\t\tselectSingleDropDownItem(driver, AttSelectCustListBox, custListOption);\n\t\tselectSingleDropDownItem(driver, AttSelectProjectListBox, projectName);\n\n\t\tAttTaskNameTextBox.sendKeys(taskName);\n\t\tAttBudgetTimeTextBox.sendKeys(taskBudgetTime);\n\t\tAttEnterDateInDateField.sendKeys(getTodaysDate());\n\t\tselectSingleDropDownItem(driver, AttSelectBillingType, billingType);\n\t\tAttSelectCheckBoxMarkToBeAdd.click();\n\t\tAttCreateTaskBtn.click();\n\t\t\n\t}",
"public String getSettlementTime() {\n return this.settlementTime;\n }",
"public TimeOffDTO manageTimeOff(final TimeOffDTO timeOffDTO) throws ApplicationCustomException;",
"public BrightTimeService() {\n super(\"BrightTimeService\");\n }",
"public abstract double calculateStartTime();",
"public void setBillingEntity(String billingEntity) {\n this.billingEntity = billingEntity;\n }",
"public Date getActualBuyingTime() {\n return actualBuyingTime;\n }",
"BusinessCenterTime getValuationTime();",
"public Address getBillingAddress() {\n return billingAddress;\n }",
"public Builder setTime(final ZonedDateTime value) {\n _time = value;\n return this;\n }",
"com.google.ads.googleads.v6.resources.BillingSetup getBillingSetup();",
"String getBilling() {\r\n return null;\r\n }",
"public ActivitiesAndHr() {\r\n\t\tthis.overtimePaymentRate = new OvertimePaymentRate();\r\n\t}",
"hr.client.appuser.CouponCenter.TimeRangeOrBuilder getExchangeTimeOrBuilder();",
"@Test\n public void createBillingLineTestHappyPath() {\n\n Billinglines BillingLineObj = new Billinglines();\n\n BillingLineObj.setOrderId(\"b1375915-6c3d-4df5-aac2-aaf400e3ebab\");\n BillingLineObj.setPlannerId(\"90C44CAE-2A4A-4B5D-A5EC-AA9500A6C839\");\n BillingLineObj.setProductId(\"3B50FC9A-26B1-42C7-A7B4-AACB0084B9E4\");\n BillingLineObj.setStartMonth(\"2019-11-30\");\n BillingLineObj.setDurationInMonths(2);\n\n // final JSONArray arr = new JSONArray();\n\n /*for(int i = 0 ; i< list.size() ; i++) {\n final JSONObject obj = new JSONObject();\n p = list.get(i);\n obj.add(\"id\", p.getId());\n arr.add(obj);\n }\n\n\n for(int i = 0 ; i< list.size() ; i++) {\n final JSONObject obj = new JSONObject();\n p = list.get(i);\n obj.add(\"date\", new MyDateFormatter().getStringFromDateDifference(p.getCreationDate()));\n obj.add(\"value\", p.getValue());\n }*/\n\n BillingLineObj.setBillingLineBuyingAreaRevenues(Arrays.asList(new String[]{\"id\",\"8798f1f5-cd1b-455e-b44a-aacb00845536\"}));\n BillingLineObj.setMonthBuyingAreaRevenues(Arrays.asList(new String[]{\"date\",\"2019-11-30\"}));\n //BillingLineObj.setValue(444);\n BillingLineObj.setRevenue(444);\n String json = Utilities.createJsonObject(BillingLineObj);\n System.out.println(\">>>>>>>\\n\\n\\n\" + json);\n\n Response response = APIRequests.PostAPI(path, json);\n Assert.assertEquals(\"Check status codes for successful response \", 200,response.getStatusCode());\n System.out.println(\">>>>> \" + response.getStatusCode());\n\n }",
"public double getCBRTime();",
"public void setTime(){\r\n \r\n }",
"private AppointmentCashRequest appointmentCashRequest() {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy hh:mm aa\", Locale.getDefault());\n String currentDateandTime = sdf.format(new Date());\n\n AppointmentCashRequest appointmentCashRequest = new AppointmentCashRequest();\n appointmentCashRequest.set_id(appoinmentid);\n appointmentCashRequest.setAmount(txt_serviceamout.getText().toString());\n Log.w(TAG,\"appointmentCashRequest\"+ \"--->\" + new Gson().toJson(appointmentCashRequest));\n return appointmentCashRequest;\n }",
"public String getBillingStatus() {\r\n return billingStatus;\r\n }",
"public void setShippingTime(Integer shippingTime) {\n this.shippingTime = shippingTime;\n }",
"private Timecurve saveTimecurve(String tenantId, String name, String clearingReference,\n Boolean needBalanceApproval) {\n Timecurve timecurve = new Timecurve(null, tenantId, name,\n clearingReference, needBalanceApproval);\n\n // save Timecurve\n return saveTimecurve(timecurve);\n }",
"public void time() {\n System.out.println(\"Enter the time you wish to free up\");\n }",
"public void validate_Billable_Task_Using_New_Customer_And_New_Project(String custListOption,String custListName, String projectName,String taskName,String taskBudgetTime,String billingType) {\n\t\tselectSingleDropDownItem(driver, AttSelectCustListBox, custListOption);\n\t\tAttCustomerNameTextBox.sendKeys(custListName);\n\t\tAttProjectNameTextBox.sendKeys(projectName);\n\t\tAttTaskNameTextBox.sendKeys(taskName);\n\t\tAttBudgetTimeTextBox.sendKeys(taskBudgetTime);\n\t\tAttEnterDateInDateField.sendKeys(getTodaysDate());\n\t\tselectSingleDropDownItem(driver, AttSelectBillingType, billingType);\n\t\tAttSelectCheckBoxMarkToBeAdd.click();\n\t\tAttCreateTaskBtn.click();\n\t\t\n\t}",
"@Override\n public Long getRunningTimeInHours() {\n return null;\n }",
"public double getStartTime();",
"public String getBillingEntity() {\n return this.billingEntity;\n }",
"@Override\n public void onBillingServiceDisconnected() {\n }",
"public void autoPay() {}",
"java.lang.String getDepartureTime();",
"java.lang.String getDepartureTime();",
"java.lang.String getArrivalTime();",
"java.lang.String getArrivalTime();",
"if (payDateTime == adhocTicket.getPaidDateTime()) {\n System.out.println(\"Paid Date Time is passed\");\n }",
"public void saveScheduleManagement(Runnable task, LocalTime timePoint, Integer period, TimeUnit timeUnit) {\n LOGGER.info(\"START UP SAVE SCHEDULE MANAGEMENT.\");\n if (checkTodayCurrencyListInDb()) {\n saveCurrencyListToDb();\n ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor();\n service.scheduleAtFixedRate(task, calculateTimeBeforeStart(timePoint), period, timeUnit);\n } else {\n ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor();\n service.scheduleAtFixedRate(task, calculateTimeBeforeStart(timePoint), period, timeUnit);\n }\n }",
"public String handleGenerate()\n throws HttpPresentationException\n\t {\n String month = this.getComms().request.getParameter(MONTH);\n \tString year = this.getComms().request.getParameter(YEAR);\n \tString description = this.getComms().request.getParameter(DESCRIPTION);\n \t\n/*\tString billingflag = this.getbillreportflag();\n\tSystem.out.println(\"flag off bill_report\"+billingflag);\n\t\n\tthis.setbillreportflag(billingflag);*/\n\n \t System.out.println(\"Month off credit hours module \"+month); \t\n int lastday;\n\tint daysPerMonth[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};\n\tString monthnames[] = {\"Jan\",\"Feb\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October \",\"November\",\"December\"};\n/*\tint billsdate = Integer.parseInt(sdate);\n\tint billedate = Integer.parseInt(edate);*/\n\tint billmonth = Integer.parseInt(month);\n\tint billyear = Integer.parseInt(year);\n\tString username = null, firstname=null, lastname=null;\n\t\n\t// get the last day of the month check for leap year\n\tif (billmonth == 1 && (billyear % 400 == 0 && billyear % 100 != 0))\n\t\t{\n\t\t\tlastday = 29;\n\t\t} else {\n\t\t\tlastday = daysPerMonth [billmonth];\n\t\t}\n\n/* \tthis.setbillsday(billsdate);\n\tthis.setbilleday(billedate);*/\n\tthis.setbillmonth(billmonth);\n\tthis.setbillyear(billyear);\n\tthis.setbilldescription(description);\n\t\n\t\n\t//calculation for the time right now\n \tCalendar cancelinfo = Calendar.getInstance();\n \tint todaydate = cancelinfo.get(cancelinfo.DAY_OF_MONTH);\n \tint todaymonth = cancelinfo.get(cancelinfo.MONTH);\n \tint todayyear = cancelinfo.get(cancelinfo.YEAR);\n\t\n\ttry {\n\t// report info = 1 for debt and 0 for credit\n\t//Check if the credit hours has been generate for the spec. month and year\n\tif (null == ReporttrackFactory.findReporttrackForMonth(billyear,billmonth,0))\n\t {\n\t Reporttrack report = new Reporttrack();\n\t report.setDay(todaydate);\n\t report.setMonth(todaymonth);\n\t report.setYear(todayyear);\n\t report.setStartday(1);\n\t report.setStartm(billmonth);\n\t report.setStartyear(billyear);\n\t report.setEndday(31);\n\t report.setEndmonth(billmonth);\n\t report.setEndyear(billyear);\n\t report.setPreparedby(description);\n\t report.setInvoice_num(0);\n\t report.setReportinfo(1);\n\t report.save();\n\t throw new ClientPageRedirectException(DEBT_PILOT_HOURS_PAGE);\t\n\t } else {\nreturn showPage(\"The debt hours for month \" + month + \" year \"+year+\" has been debited\"); \n\t }\n\t } catch(webscheduleBusinessException ex) {\n throw new webschedulePresentationException(\"Exception logging in user: \", ex);\n }\t\n\t\t\t\n\t}",
"public void updateActualTime() {\n if (role.getText().equals(\"Member\")) {\n warning.setText(\"\");\n String orderNumber = orderNo.getText();\n int orderNum = 0;\n String realTime = actualTime.getText();\n int actlTime = 0;\n if (orderNumber.equals(\"\")) {\n warning.setText(emptyOrderNum);\n } else if (!Validation.isValidOrderNumber(orderNumber)) {\n warning.setText(invalidOrderNum);\n } else if (actualTime.getText().isEmpty() || !Validation.isValidActualTime(realTime)) {\n warning.setText(invalidActualTime);\n } else {\n orderNum = Integer.parseInt(orderNo.getText());\n actlTime = Integer.parseInt(actualTime.getText());\n\n UserDAO userDAO = new UserDAO();\n User user = userDAO.getUser(logname.getText());\n PlanDAO planDAO = new PlanDAO();\n int userId = user.getId();\n Plan plan = new Plan(orderNum, actlTime);\n planDAO.editActualTime(plan, userId);\n updateTableFromDB(orderNumber);\n warning.setText(\"Actual time of order \" + orderNum + \" updated successfully \");\n }\n } else {\n warning.setText(\"Please use Update button\");\n }\n }",
"public void setRechargeTime(int time)\n {\n\t rechargeTime = time;\n }",
"public interface TimesheetHoursDetail {\n\n List<HoursDetail> getHoursDetailByAuthorizeCharge(PayTypeConfiguration payTypeConfiguration);\n}",
"public TimeBlock() {\n name = \"To be assigned\";\n startingTime = \"00:00\";\n endingTime = \"00:00\";\n duration = 0;\n }",
"public _179._6._235._119.cebwebservice.Bill billing_CalculateDetailMonthlyBill(java.lang.String accessToken, int tariff, int kwh) throws java.rmi.RemoteException;",
"public java.util.Calendar getProvisionTime(){\n return localProvisionTime;\n }",
"default void onCustomStartTimeChanged(LocalTime startTime) {}",
"public void anualTasks(){\n List<Unit> units = unitService.getUnits();\n for(Unit unit: units){\n double amount = 10000; //@TODO calculate amount based on unit type\n Payment payment = new Payment();\n payment.setPaymentMethod(PaymentMethod.Cash);\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.MONTH, 1);\n calendar.set(Calendar.DATE, 30);\n payment.setDate(LocalDate.now());\n TimeZone tz = calendar.getTimeZone();\n ZoneId zid = tz == null ? ZoneId.systemDefault() : tz.toZoneId();\n payment.setAmount(amount);\n payment.setDueDate(LocalDateTime.ofInstant(calendar.toInstant(), zid).toLocalDate());\n payment.setClient(unit.getOwner());\n payment.setUnit(unit);\n payment.setRecurringInterval(365L);\n payment.setStatus(PaymentStatus.Pending);\n paymentService.savePayment(payment);\n }\n }",
"public Cost(boolean time) {\r\n defaultCost = 5;\r\n haveSchedule = time;\r\n }",
"public void setShippingTime (java.util.Date shippingTime) {\r\n\t\tthis.shippingTime = shippingTime;\r\n\t}",
"public FreeTime(String name, String description, LocalDateTime startDT, long duration) {\n super(name, description, startDT, duration);\n }",
"public void setActualBuyingTime(Date actualBuyingTime) {\n this.actualBuyingTime = actualBuyingTime;\n }",
"public interface TimeService {\n\n /**\n * Saves a specified entity.\n *\n * @param entity\n * @return the saved entity\n */\n Time save(Time time);\n\n /**\n * Method returns average temperature from database for last hour.\n *\n * @return Long value\n */\n Long getTemperatureForLastHour();\n\n /**\n * Method saves random temperature value every 10 seconds.\n */\n void saveRandom();\n}",
"@Test\n void deve_retornar_uma_lista_de_time() {\n List<TimeEntity> timeEntityList = TimeEntityStub.getTimeEntityList();\n when(timeManagementRepository.findAllByUserIdAndAndDate(any(), any())).thenReturn(timeEntityList);\n List<LocalTime> times = timeService.findTimes(TimeModelStub.getTimeModel());\n Assert.assertEquals(\"10:30:00.000\", times.get(0).toString());\n }",
"public void setRechargeTime(Skills skill, int time);",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"@RequestForEnhancement(\r\n\t\tid=2868724,\r\n\t\tsynopsis=\"Provide time-travel functionality\",\r\n\t\tengineer=\"Mr. Peabody\",\r\n\t\tdate=\"4/1/2004\")\r\n\tpublic static void travelThroughTime(Date destination) {\r\n\t}",
"void updateActiveTime(int T);",
"@Cache(usage = NONSTRICT_READ_WRITE)\n @JoinColumn(name = \"billing_state_id\")\n @ManyToOne(cascade = PERSIST, fetch = LAZY)\n public TdState getBillingState() {\n return billingState;\n }",
"public String getEndTime(){return endTime;}",
"long getStartTime();",
"public void setTimeStatus(Boolean timeStatus)\n {\n this.timeStatus = timeStatus;\n }"
] | [
"0.61318743",
"0.57786405",
"0.57350004",
"0.57350004",
"0.5672641",
"0.5630331",
"0.5597681",
"0.5596552",
"0.5596552",
"0.55949277",
"0.5568205",
"0.55585146",
"0.5557768",
"0.5469456",
"0.5448014",
"0.5331394",
"0.53284866",
"0.53284866",
"0.5276958",
"0.5253057",
"0.52524006",
"0.5229734",
"0.5178697",
"0.51663077",
"0.51494884",
"0.5126464",
"0.5126464",
"0.51264304",
"0.5108488",
"0.5103182",
"0.5102508",
"0.50966454",
"0.50947237",
"0.509095",
"0.5085006",
"0.5084268",
"0.50735456",
"0.5047679",
"0.5035489",
"0.50300336",
"0.50203854",
"0.50195044",
"0.5010247",
"0.49942702",
"0.49869508",
"0.49837053",
"0.4979646",
"0.49687782",
"0.49680176",
"0.49635562",
"0.49600664",
"0.49404943",
"0.49387497",
"0.49288866",
"0.49243656",
"0.4923689",
"0.4913114",
"0.4908999",
"0.49056575",
"0.48977017",
"0.48964685",
"0.48937201",
"0.4887874",
"0.4886209",
"0.48853663",
"0.48840097",
"0.4863383",
"0.4863186",
"0.4852038",
"0.4852038",
"0.48496643",
"0.48496643",
"0.48470372",
"0.4842128",
"0.48395956",
"0.48259905",
"0.48080498",
"0.48012686",
"0.48009515",
"0.47967926",
"0.47963697",
"0.47933263",
"0.47858843",
"0.47826362",
"0.47787803",
"0.47744605",
"0.4772076",
"0.47713193",
"0.47690976",
"0.47582853",
"0.4758085",
"0.4758085",
"0.4758085",
"0.4758085",
"0.47577083",
"0.47559574",
"0.47557116",
"0.47487253",
"0.47436196",
"0.47435337"
] | 0.59524846 | 1 |
Invoked by a BeanFactory on destruction of a singleton. | public void destroy() throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void destroy() throws Exception {\n\t\t\n\t\tSystem.out.println(\"Bean distroy completed from class !!\");\n\t\t\n\t}",
"@PreDestroy\n public void perDestroyFn (){\n LOOGER.info(\" ==== pre destroy the bean ====> {}:\");\n }",
"@Override\r\n\tpublic void destroy() throws Exception {\n\t\tSystem.out.println(\"DisposableBean.destroy\");\r\n\t\t\r\n\t}",
"@PreDestroy //code will execute before the bean is destroyed \r\n\tpublic void doMyCleanupStuff()\r\n\t{\r\n\t\tSystem.out.println(\"TennisCoach: inside doMyCleanupStuff method\");\r\n\t}",
"@PreDestroy\n public void destroy() {\n LOG.debug(\"destroy\");\n }",
"@Override\n @Destroy\n\n public void destroy() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"destroy\");\n }\n\n }",
"@Override\n @Destroy\n\n public void destroy() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"destroy\");\n }\n\n }",
"@Override\n\tpublic void destroy() {\n\t\tlogService=null;\n\t\tnoInterceptUrlRegxList=null;\n\n\t}",
"@Override\r\n\tpublic void destroy() {\r\n\t\tsuper.destroy();\r\n\t\ttry {\r\n\t\t\tspringContext.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.warn(e);\r\n\t\t}\r\n\t}",
"@Override\n protected void onDestroy() {\n Initialization.exit(this);\n super.onDestroy();\n }",
"@Override\n protected void onDestroy() {\n EventBus.getDefault().unregister(this);\n\n super.onDestroy();\n }",
"@Destroy\r\n\tpublic void destroy() {\r\n\t\t// Component disposal code.\r\n\t\t// All properties are disposed.\r\n\t\temailConfiguration=null;\r\n\t}",
"@Override\n public void onDestroy() {\n BusProvider.getInstance().unregister(this);\n super.onDestroy();\n }",
"@Override\r\n protected void onDestroy() {\r\n GlobalBus.getBus().unregister(this);\r\n super.onDestroy();\r\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n EventBus.getDefault().unregister(this);\n }",
"public void cleanUp(){\n\t\tSystem.out.println(\"Destroying beans cleanUp method() for triangle\");\n\t}",
"public static void destroy() {\n handler = null;\n initialized = false;\n }",
"public void destroy() {\r\n final String METHOD_NAME = \"destroy\";\r\n LOGGER.info(\"Entering \" + METHOD_NAME);\r\n\r\n this.filterConfig = null;\r\n\r\n LOGGER.info(\"Exiting \" + METHOD_NAME);\r\n }",
"@Override\r\n public void destroy() {\n }",
"@Override\r\n public void destroy() {\n }",
"@Override\r\n\tpublic void onDestroy() {\n\t\tSystem.out.println(\"Service onDestory\");\r\n\t\tsuper.onDestroy();\r\n\t}",
"public void destroy()\r\n\t{\r\n\t\tlog.fine(\"destroy\");\r\n\t}",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n }",
"@Override\r\n\tpublic void destroy()\r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t}",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n super.destroy();\n logger.log(Level.INFO, \"destory() Invoked\");\n }",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"void destroy() {\n INSTANCE = null;\n }",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\r\n\t\tpublic void destroy() {\n\t\t\t\r\n\t\t}",
"@Override\n public void destroy() {\n }",
"public static void destruct() {\n\t\tinstance = null;\n\t}",
"public static void destroyIfInitalized() {\n if ( instance != null )\n {\n instance.destroy();\n instance = null;\n }\n }",
"@Override\n\tpublic void onDestroy() {\n\t\tsuper.DeInit();\n\t\tsuper.onDestroy();\n\t}",
"@Override\n public void onDestroy() {\n EventBusWraper.getInstance().unregister(mContext);\n super.onDestroy();\n // unRegister();\n }",
"public static final void onExit() {\r\n isShutdown = true;\r\n if (instance != null) {\r\n if (instance.logBase.isInfoEnabled()) {\r\n instance.logBase.info(\"LogUtil.onExit : free singleton : \" + SingletonSupport.getSingletonLogName(instance));\r\n }\r\n\r\n // After the Log4J shutdown, Loggers are no more usable :\r\n\r\n // Release Log4J resources :\r\n Log4JCleaner.shutdown();\r\n\r\n // Classloader unload problem with commons-logging :\r\n LogFactory.release(Thread.currentThread().getContextClassLoader());\r\n // force GC :\r\n instance.log = null;\r\n instance.logBase = null;\r\n instance.logDev = null;\r\n instance.logs.clear();\r\n\r\n // free singleton :\r\n instance = null;\r\n }\r\n\r\n // clean up custom logger instances associated with eclipseLink :\r\n CommonsLoggingSessionLog.onExit();\r\n }",
"@PreDestroy\n\tpublic void destroy() {\n\t\tthis.executorService.shutdown();\n\t}",
"public static void shut () {\r\n if(factory != null) { \t \r\n factory.finalixe(); \r\n }\r\n factory = null ;\r\n }",
"@Override\n\tpublic void onDestroy() {\n\t\tif (mApplication != null) {\n\t\t\tmApplication.cleanupObservers();\n\t\t}\n\t\tsuper.onDestroy();\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\tsuper.destroy();\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\tsuper.destroy();\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\tsuper.destroy();\r\n\t}",
"@Override\n public void destroy() {\n\n }",
"@Override\n public void destroy() {\n\n }",
"@Override\n public void destroy() {\n\n }",
"public static void destroy() {\n\t}",
"@Override\r\n\tpublic void destroyControllerBean() throws Exception {\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}"
] | [
"0.726147",
"0.7144273",
"0.7033684",
"0.701992",
"0.6862295",
"0.6747425",
"0.6747425",
"0.66827685",
"0.6648377",
"0.6611208",
"0.6587549",
"0.6553431",
"0.6549659",
"0.65317386",
"0.6530036",
"0.6516559",
"0.64848304",
"0.6480124",
"0.6472182",
"0.6472182",
"0.6469924",
"0.645833",
"0.64543515",
"0.64543515",
"0.64543515",
"0.64543515",
"0.64543515",
"0.645231",
"0.64466393",
"0.6444564",
"0.64396554",
"0.6435693",
"0.6435693",
"0.6435693",
"0.6435693",
"0.6435693",
"0.6435693",
"0.6435693",
"0.6435693",
"0.6435693",
"0.6435693",
"0.6435693",
"0.6435693",
"0.6435693",
"0.6435693",
"0.6434683",
"0.6418879",
"0.6418879",
"0.6418879",
"0.6418879",
"0.6418879",
"0.6418879",
"0.6418879",
"0.6418879",
"0.6418879",
"0.64128166",
"0.6412742",
"0.6396854",
"0.63880324",
"0.638771",
"0.6376207",
"0.6366112",
"0.6358025",
"0.63576335",
"0.635345",
"0.6352828",
"0.6352828",
"0.6352828",
"0.6339079",
"0.6339079",
"0.6339079",
"0.63331914",
"0.633254",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276",
"0.63230276"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle multimediacourse) {
super.onCreate(multimediacourse);
// Keep the Device Screen ON
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
// Make Activity FullScreen
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.splash);
// Background music for Splash Screen
myPlayer=MediaPlayer.create(Splash.this, R.raw.music);
myPlayer.start();
myPlayer.setLooping(true);
// Animation
// Load the ImageView that will host the animation and
ImageView Img = (ImageView) findViewById(R.id.background);
// set its background to our AnimationDrawable XML resource.
Img.setBackgroundResource(R.layout.anim);
AnimationDrawable frameAnimation = (AnimationDrawable) Img.getBackground();
// Start the animation (looped PlayBack by default).
frameAnimation.start();
// End of Animation
// MUTE BUTTON
imageButton = (ImageButton) findViewById(R.id.imageButton1);
imageButton.bringToFront();
imageButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
if(clicked==1){
AudioManager aManager=(AudioManager)getSystemService(Context.AUDIO_SERVICE);
aManager.setStreamMute(AudioManager.STREAM_MUSIC, false);
Toast.makeText(Splash.this,"Music is ON!", Toast.LENGTH_SHORT).show();
imageButton.setImageResource(R.drawable.unmute);
clicked=0;
}
else{
AudioManager aManager=(AudioManager)getSystemService(Context.AUDIO_SERVICE);
aManager.setStreamMute(AudioManager.STREAM_MUSIC, true);
Toast.makeText(Splash.this,"Music is OFF!", Toast.LENGTH_SHORT).show();
imageButton.setImageResource(R.drawable.mute);
clicked=1;
}
}
});
// QUICK START BUTTON
startButton = (ImageButton) findViewById(R.id.button1);
startButton.bringToFront();
startButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
startButton.setImageResource(R.drawable.quick2);
Intent intent= new Intent("com.android.BrickBreaker.main");
startActivity(intent);
myPlayer.release();
}
});
// SELECT BACKGROUND IMAGE BUTTON
selectButton = (ImageButton) findViewById(R.id.button2);
selectButton.bringToFront();
selectButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
selectButton.setImageResource(R.drawable.select2);
Toast.makeText(Splash.this,"Please Select 'Low or Medium Quality' Images", Toast.LENGTH_LONG).show();
Intent i = new Intent(
Intent.ACTION_PICK,
android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(i, SELECT_IMAGE);
}
});
// EXIT GAME BUTTON
exitButton = (ImageButton) findViewById(R.id.exitButton);
exitButton.bringToFront();
exitButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
exitButton.setImageResource(R.drawable.exit2);
Toast.makeText(Splash.this,"Credits: Berk SOYSAL, Aditi ARYA", Toast.LENGTH_LONG).show();
Thread timer = new Thread(){
public void run(){
try{
sleep(2200);
} catch (InterruptedException e){
e.printStackTrace();
} finally{
System.exit(0);
}
}
};
timer.start();
}
});
} | {
"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 onPause() {
super.onPause();
myPlayer.release();
startButton.setImageResource(R.drawable.quick);
selectButton.setImageResource(R.drawable.select);
} | {
"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 |
/ xmsoriginalfile: specification/subscription/resourcemanager/Microsoft.Subscription/stable/20200901/examples/deleteAlias.json Sample code: DeleteAlias. | public static void deleteAlias(com.azure.resourcemanager.subscription.SubscriptionManager manager) {
manager.alias().deleteWithResponse("aliasForNewSub", com.azure.core.util.Context.NONE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeAlias(Origin alias) {\n aliases.remove(alias);\n }",
"@Override\n public String getDescription() {\n return \"Delete alias\";\n }",
"@ZAttr(id=775)\n public void unsetDomainAliasTargetId() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainAliasTargetId, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public export.serializers.avro.DeviceInfo.Builder clearAlias() {\n alias = null;\n fieldSetFlags()[4] = false;\n return this;\n }",
"private void clearAliasList() throws AliasNotFoundException {\n for (Alias alias : uniqueAliasList.getAliasObservableList()) {\n uniqueAliasList.remove(alias.getAlias());\n }\n }",
"public void setAlias(java.lang.CharSequence value) {\n this.alias = value;\n }",
"public void setAlias(String alias)\n {\n this.alias = alias;\n }",
"public void setAlias(String alias);",
"public void setAlias(String alias) {\n this.alias = alias == null ? null : alias.trim();\n }",
"public void setAlias(String alias) {\n this.alias = alias == null ? null : alias.trim();\n }",
"public void setAlias(String alias) {\r\n\t\tthis.alias = alias;\r\n\t}",
"public boolean deleteCertificate(String alias) {\n CertificateManager certificateManager = CertificateManagerImpl.getInstance();\n return certificateManager.deleteCertificateFromGateway(alias);\n }",
"public void setAlias(String newAlias) {\n alias = newAlias;\n }",
"public void setAlias(String alias) {\n\t\tthis.alias = alias;\n\t}",
"public boolean deleteClientCertificate(String alias) {\n int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();\n /*\n Tenant ID is checked to make sure that tenant admins cannot delete the alias that do not belong their\n tenant. Super tenant is special cased, as it is required to delete the certificates from different tenants.\n */\n if (alias.endsWith(\"_\" + tenantId) || tenantId == MultitenantConstants.SUPER_TENANT_ID) {\n CertificateManager certificateManager = CertificateManagerImpl.getInstance();\n return certificateManager.deleteClientCertificateFromGateway(alias);\n } else {\n log.warn(\"Attempt to delete the alias \" + alias + \" by tenant \" + tenantId + \" has been rejected. Only \"\n + \"the client certificates that belongs to \" + tenantId + \" can be deleted. All the client \"\n + \"certificates belongs to \" + tenantId + \" have '_\" + tenantId + \"' suffix in alias\");\n return false;\n }\n }",
"public export.serializers.avro.DeviceInfo.Builder setAlias(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.alias = value;\n fieldSetFlags()[4] = true;\n return this;\n }",
"private static String cleanAlias(String alias) {\r\n char[] chars = alias.toCharArray();\r\n\r\n // short cut check...\r\n if (!Character.isLetter(chars[0])) {\r\n for (int i = 1; i < chars.length; i++) {\r\n // as soon as we encounter our first letter, return the substring\r\n // from that position\r\n if (Character.isLetter(chars[i])) {\r\n return alias.substring(i);\r\n }\r\n }\r\n }\r\n\r\n return alias;\r\n }",
"@Override\n public byte getSubtype() {\n return SUBTYPE_MESSAGING_ALIAS_DELETE;\n }",
"public static AliasAction newRemoveAliasAction(String index, String alias) {\n\t\treturn new AliasAction(Type.REMOVE, index, alias);\n\t}",
"public void setAliasId(String AliasId) {\n this.AliasId = AliasId;\n }",
"public void setAliasname(String aliasname) {\n this.aliasname = aliasname;\n }",
"void deleteKeyword(String name);",
"public String getAliasId() {\n return this.AliasId;\n }",
"public String getAlias() {\n return alias;\n }",
"public String getAlias();",
"public String getAlias();",
"@Override\r\n\tpublic void delete(TAdAddress account) {\n\r\n\t}",
"public String deleteAS(String asName) {\n\t\tDeleteAutoScalingGroupRequest request = new DeleteAutoScalingGroupRequest()\n\t\t\t\t.withAutoScalingGroupName(asName).withForceDelete(true);\n\t\tDeleteAutoScalingGroupResult response = asClient\n\t\t\t\t.deleteAutoScalingGroup(request);\n\t\tString res = \"DeleteASGroupResult: \" + response;\n\t\tlog.info(res);\n\n\t\treturn res;\n\t}",
"@NotNull\n public String getAlias()\n {\n return alias;\n }",
"public RecCertDeleteResponseSuccess recCertDelete(String alias) throws ApiException {\n ApiResponse<RecCertDeleteResponseSuccess> resp = recCertDeleteWithHttpInfo(alias);\n return resp.getData();\n }",
"net.zyuiop.ovhapi.api.objects.license.Task deleteServiceNameOptionLabel(java.lang.String serviceName, java.lang.String label) throws java.io.IOException;",
"public String getAlias() {\n return alias;\n }",
"public String getAlias() {\n return alias;\n }",
"public Type removeAlias(Type t){\n while(t instanceof AliasType){\n AliasType aliast = (AliasType) t;\n t = aliast.getType();\n }\n return t;\n }",
"public String getAlias() {\n return alias;\n }",
"public abstract void deleteSAMEnvironment(String envName);",
"@RequestLine(\"DELETE /zones/{zoneName}\")\n void deleteZone(@Param(\"zoneName\") final String zoneName);",
"public ApiResponse<RecCertDeleteResponseSuccess> recCertDeleteWithHttpInfo(String alias) throws ApiException {\n com.squareup.okhttp.Call call = recCertDeleteValidateBeforeCall(alias, null, null);\n Type localVarReturnType = new TypeToken<RecCertDeleteResponseSuccess>(){}.getType();\n return apiClient.execute(call, localVarReturnType);\n }",
"public String getAlias() {\n\t\treturn alias;\n\t}",
"String deleteDatasource(String dsID) throws RepoxException;",
"public java.lang.CharSequence getAlias() {\n return alias;\n }",
"public String getAliasname() {\n return aliasname;\n }",
"LinkedService deleteById(String id);",
"public void setCallAlias(String callAlias) {\n\n\t}",
"public com.squareup.okhttp.Call recCertDeleteAsync(String alias, final ApiCallback<RecCertDeleteResponseSuccess> callback) throws ApiException {\n\n ProgressResponseBody.ProgressListener progressListener = null;\n ProgressRequestBody.ProgressRequestListener progressRequestListener = null;\n\n if (callback != null) {\n progressListener = new ProgressResponseBody.ProgressListener() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n callback.onDownloadProgress(bytesRead, contentLength, done);\n }\n };\n\n progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {\n @Override\n public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {\n callback.onUploadProgress(bytesWritten, contentLength, done);\n }\n };\n }\n\n com.squareup.okhttp.Call call = recCertDeleteValidateBeforeCall(alias, progressListener, progressRequestListener);\n Type localVarReturnType = new TypeToken<RecCertDeleteResponseSuccess>(){}.getType();\n apiClient.executeAsync(call, localVarReturnType, callback);\n return call;\n }",
"public java.lang.CharSequence getAlias() {\n return alias;\n }",
"public void deleteAzureClient(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getDeleteAzureClientMethod(), getCallOptions()),\n request,\n responseObserver);\n }",
"public void removeAlias(Material material) {\n\t\tthis.removeAlias(material, null);\n\t}",
"@Test\r\n\tpublic void testExecuteCommandsDeleteAdl() throws Exception {\r\n\t\t\r\n\t\tadvertising.executeCommand(advertising, \"adl delete --Name L1-r-medical\");\r\n\t\tassertTrue(\"adc all\", true);\r\n\t\t\r\n\t}",
"public boolean deleteApiForTenant(String apiProviderName, String apiName, String version, String tenantDomain)\n throws AxisFault {\n RESTAPIAdminClient restClient = getRestapiAdminClient();\n // Delete secure vault alias properties if exists\n try {\n deleteRegistryProperty(apiProviderName, apiName, version, tenantDomain);\n } catch (APIManagementException e) {\n String msg = \"Failed to delete secure endpoint password alias \" + e.getMessage();\n throw new AxisFault(msg, e);\n }\n String qualifiedName = GatewayUtils.getQualifiedApiName(apiProviderName, apiName, version);\n return restClient.deleteApi(qualifiedName, tenantDomain);\n }",
"public com.google.longrunning.Operation deleteAzureClient(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getDeleteAzureClientMethod(), getCallOptions(), request);\n }",
"public void setAliasintroduce(String aliasintroduce) {\n this.aliasintroduce = aliasintroduce;\n }",
"private void deleteSubscription(RoutingContext routingContext) {\n LOGGER.debug(\"Info: deleteSubscription method started;\");\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String domain = request.getParam(JSON_DOMAIN);\n String usersha = request.getParam(JSON_USERSHA);\n String alias = request.getParam(JSON_ALIAS);\n String subsId = domain + \"/\" + usersha + \"/\" + alias;\n JsonObject requestJson = new JsonObject();\n String instanceID = request.getHeader(HEADER_HOST);\n requestJson.put(SUBSCRIPTION_ID, subsId);\n requestJson.put(JSON_INSTANCEID, instanceID);\n String subHeader = request.getHeader(HEADER_OPTIONS);\n String subscrtiptionType =\n subHeader != null && subHeader.contains(SubsType.STREAMING.getMessage())\n ? SubsType.STREAMING.getMessage()\n : SubsType.CALLBACK.getMessage();\n requestJson.put(SUB_TYPE, subscrtiptionType);\n JsonObject authInfo = (JsonObject) routingContext.data().get(\"authInfo\");\n if (requestJson.containsKey(SUB_TYPE)) {\n JsonObject jsonObj = requestJson.copy();\n jsonObj.put(JSON_CONSUMER, authInfo.getString(JSON_CONSUMER));\n Future<JsonObject> subsReq = subsService.deleteSubscription(jsonObj, databroker, database);\n subsReq.onComplete(subHandler -> {\n if (subHandler.succeeded()) {\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n subHandler.result().toString());\n } else {\n processBackendResponse(response, subHandler.cause().getMessage());\n }\n });\n } else {\n handleResponse(response, ResponseType.BadRequestData, MSG_SUB_TYPE_NOT_FOUND);\n }\n }",
"public static void setAlias(String alias, String value) throws ConfigurationException, IOException {\r\n if (!alias.equals(\"\")) {\r\n UnitAction.SetRunTimeData(alias, value);\r\n }\r\n }",
"DeleteACLResult deleteACL(DeleteACLRequest deleteACLRequest);",
"int deleteByExample(AdExample example);",
"public void deleteAzureCluster(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getDeleteAzureClusterMethod(), getCallOptions()),\n request,\n responseObserver);\n }",
"@Test\n public void deleteAccount() {\n Account accountToBeDeleted = new Account(\"deleteMe\", \"deleteMe\", false,\n \"Fontys Stappegoor\", \"[email protected]\");\n accountQueries.addAccount(accountToBeDeleted);\n\n // Get ID of recently inserted Account to be able to test deletion\n Account toDelete = accountQueries.getAccountByUserName(\"deleteMe\");\n boolean succeeded = accountQueries.deleteAccount(toDelete.getID());\n\n assertEquals(succeeded, true);\n }",
"@Override\n public void setAlias(String alias) {\n throw new UnsupportedOperationException(\"View doesn't support alias\");\n }",
"@Override\n\tpublic void deleteAgence(Agence a) {\n\t\t\n\t}",
"void makeLinksWithStudiesDeleted(Long tenantId, Long dataSourceId);",
"public void deleteAccount(String userName) {\n\n }",
"@Override\n\tpublic void deleteByName(String name) {\n\t\t\n\t}",
"public void delete(String name)\r\n\t{\r\n\t\tOntResource res = this.obtainOntResource(name);\r\n\t\tres.remove();\r\n\t}",
"@DeleteMapping(\"/authority/{name:\" + Constants.AUTHORITY_REGEX + \"}\")\n @Timed\n @PreAuthorize(\"hasRole(\\\"\" + AuthoritiesConstants.ADMIN + \"\\\")\")\n public ResponseEntity<Void> deleteAuthority(@PathVariable String name) {\n log.debug(\"REST request to delete Authority: {}\", name);\n userService.deleteAuthority(name);\n return ResponseEntity.ok().headers(HeaderUtil.createAlert( \"userManagement.deleted\", name)).build();\n }",
"public void deleteNsIdentifier(String s) throws MethodNotImplementedException, NotExistingEntityException, FailedOperationException {\r\n log.info(\"Received call to deleteNsIdentifier, parameter {}.\", s);\r\n throw new MethodNotImplementedException(\"not supported in SM.\");\r\n }",
"default void deleteAzureCluster(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureClusterMethod(), responseObserver);\n }",
"@DeleteMapping(\"/subscriptions/{id}\")\n @Timed\n public ResponseEntity<Void> deleteSubscription(@PathVariable String id) {\n log.debug(\"REST request to delete Subscription : {}\", id);\n subscriptionService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"private String substituteAlias(String referencedAlias,\n String referencedFunc, String aFunc) {\n\n String returnedFunc = aFunc;\n /*\n * Process single word functions first\n */\n if (!returnedFunc.contains(\"(\")) {\n if (returnedFunc.trim().equalsIgnoreCase(referencedAlias)) {\n return returnedFunc.replace(referencedAlias, referencedFunc);\n }\n return returnedFunc;\n }\n\n /*\n * Need to make sure that the number of closing and opening parenthesis\n * is the same.\n */\n int openParenthesisNumber = 0;\n int closeParenthesisNumber = 0;\n\n for (char c : returnedFunc.toCharArray()) {\n if (c == '(') {\n openParenthesisNumber++;\n } else if (c == ')') {\n closeParenthesisNumber++;\n }\n }\n\n /*\n * If the some closing parenthesis are missing add them at the end of\n * returnedFunc\n */\n if (openParenthesisNumber != closeParenthesisNumber) {\n int parenthesisDeficit = openParenthesisNumber\n - closeParenthesisNumber;\n for (int idef = 0; idef < parenthesisDeficit; idef++) {\n returnedFunc = returnedFunc + \")\";\n }\n }\n\n /*\n * Find all the words that make up our returnedFunc\n */\n String delims = \"[ (),]+\";\n String[] returnedFuncWords = returnedFunc.split(delims);\n\n /*\n * Go over each returnedFunc word and replaced each referencedAlias with\n * referencedFunc\n */\n for (String component : returnedFuncWords) {\n if (component.equalsIgnoreCase(referencedAlias)) {\n /*\n * Word that potentially needs de-aliasing found.\n */\n boolean doneDealiasing = false;\n int startInd = 0;\n while (!doneDealiasing) {\n int componentBeforePosition = returnedFunc\n .indexOf(component, startInd) - 1;\n int componentAfterPosition = componentBeforePosition\n + component.length() + 1;\n boolean isRoundedBefore = Character\n .toString(returnedFunc\n .charAt(componentBeforePosition))\n .equalsIgnoreCase(\"(\")\n || Character\n .toString(returnedFunc\n .charAt(componentBeforePosition))\n .equalsIgnoreCase(\")\")\n || Character\n .toString(returnedFunc\n .charAt(componentBeforePosition))\n .equalsIgnoreCase(\",\");\n boolean isRroundedAfter = Character\n .toString(\n returnedFunc.charAt(componentAfterPosition))\n .equalsIgnoreCase(\"(\")\n || Character\n .toString(returnedFunc\n .charAt(componentAfterPosition))\n .equalsIgnoreCase(\")\")\n || Character\n .toString(returnedFunc\n .charAt(componentAfterPosition))\n .equalsIgnoreCase(\",\");\n if (isRoundedBefore && isRroundedAfter) {\n /*\n * De-alias word since surrounded by '(', ')', or ','\n */\n StringBuilder strb = new StringBuilder();\n int startIndx = componentBeforePosition + 1;\n int endIndx = startIndx + component.length();\n int returnedFuncLen = returnedFunc.length();\n strb.append(returnedFunc, 0, startIndx);\n strb.append(referencedFunc);\n strb.append(returnedFunc, endIndx, returnedFuncLen);\n returnedFunc = strb.toString();\n doneDealiasing = true;\n } else {\n startInd = componentAfterPosition;\n }\n }\n }\n }\n\n logger.debug(\"returnedFunc=\" + returnedFunc);\n\n return returnedFunc;\n }",
"AliasStatement createAliasStatement();",
"void delete(String identifier) throws IOException;",
"LinkedService deleteByIdWithResponse(String id, Context context);",
"@VisibleForTesting\n protected static String quoteAlias(String alias) {\n return String.format(\"`%s`\", alias);\n }",
"@Deprecated\r\n public Criteria setAlias(String alias) {\r\n this.alias = alias.trim();\r\n return this;\r\n }",
"@Override\n\tpublic int deleteByName(String cname) {\n\t\treturn cm.deleteByName(cname);\n\t}",
"public void delete()\n {\n call(\"Delete\");\n }",
"@Override\n\tpublic void delete(String name) {\n\t}",
"public void setAlias(com.flexnet.opsembedded.webservices.SimpleQueryType alias) {\n this.alias = alias;\n }",
"public static void deleteNote(int tenantID, String noteName) throws RegistryException {\n UserRegistry userRegistry = ServiceHolder.getRegistryService().getConfigSystemRegistry(tenantID);\n String noteLocation = getNoteLocation(noteName);\n\n if (userRegistry.resourceExists(noteLocation)) {\n userRegistry.delete(noteLocation);\n } else {\n log.error(\"Cannot to delete note note with name \" + noteName +\n \" for tenant with tenant ID \" + tenantID + \" because it does not exist\");\n }\n }",
"void registerAlias( String beanName, String alias );",
"public static boolean removeIndexAlias(String indexName, String aliasName) {\n\t\tif (StringUtils.isBlank(aliasName) || !existsIndex(indexName)) {\n\t\t\treturn false;\n\t\t}\n\t\tString alias = aliasName.trim();\n\t\ttry {\n\t\t\tString index = getIndexNameWithWildcard(indexName.trim());\n\t\t\treturn getRESTClient().indices().updateAliases(b -> b.\n\t\t\t\t\tactions(a -> a.remove(r -> r.index(index).alias(alias)))).acknowledged();\n\t\t} catch (Exception e) {\n\t\t\tlogger.warn(\"Failed to remove index alias '\" + alias + \"' for index \" + indexName + \": {}\", e.getMessage());\n\t\t\treturn false;\n\t\t}\n\t}",
"public void addAlias(String domain)\n {\n _aliasList.add(domain);\n }",
"DeleteDestinationResult deleteDestination(DeleteDestinationRequest deleteDestinationRequest);",
"@HTTP(\n method = \"DELETE\",\n path = \"/apis/dapr.io/v1alpha1/namespaces/{namespace}/subscriptions\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.Status> deleteCollectionNamespacedSubscription(\n @Path(\"namespace\") String namespace, \n @QueryMap DeleteCollectionNamespacedSubscription queryParameters);",
"private void deleteMetadataStrings(String idpName, int tenantId) throws IdentityProviderManagementException {\n\n for (MetadataConverter metadataConverter : IdpMgtServiceComponentHolder.getInstance().getMetadataConverters()) {\n if (metadataConverter.canDelete(tenantId, idpName)) {\n metadataConverter.deleteMetadataString(tenantId, idpName);\n }\n }\n }",
"public String getAliasName() {\n return name;\n }",
"public String getAliasName() {\n return name;\n }",
"public String getAliasName() {\n return name;\n }",
"public String getAliasName() {\n return name;\n }",
"@Headers({\n \t\"Content-Type:application/vnd.api+json\" \n })\n @DELETE(\"api/v2/sub_organizations/{id}.json_api\")\n Call<Meta> delete(\n @retrofit2.http.Path(\"id\") Integer id\n );",
"@Override\n public int delete(@NonNull Uri uri, @Nullable String value, @Nullable String[] selectAgrs) {\n int count = 0;\n count = db.delete(\"account\", \"accountid = '\" + value + \"'\", selectAgrs);\n getContext().getContentResolver().notifyChange(uri, null);\n return count;\n }",
"@HTTP(\n method = \"DELETE\",\n path = \"/apis/dapr.io/v1alpha1/namespaces/{namespace}/subscriptions\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.Status> deleteCollectionNamespacedSubscription(\n @Path(\"namespace\") String namespace);",
"void deleteTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;",
"public void delete(String arg0) {\n\t\t\n\t}",
"public final AstValidator.alias_return alias() throws RecognitionException {\n AstValidator.alias_return retval = new AstValidator.alias_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree IDENTIFIER26=null;\n\n CommonTree IDENTIFIER26_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:148:2: ( IDENTIFIER )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:148:4: IDENTIFIER\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n IDENTIFIER26=(CommonTree)match(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_alias278); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n IDENTIFIER26_tree = (CommonTree)adaptor.dupNode(IDENTIFIER26);\n\n\n adaptor.addChild(root_0, IDENTIFIER26_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n retval.name = (IDENTIFIER26!=null?IDENTIFIER26.getText():null);\n retval.node = IDENTIFIER26;\n }\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"void deleteByOrgId(String csaOrgId);",
"@Override\n\tpublic void delete(String arg0) {\n\t\t\n\t}",
"public void onClickAddAlias(View v) {\n aliasDefined = true;\n aliasStringList += aliases.getText() + \";\";\n aliases.setText(\"\");\n }",
"public void delete(String arg0) {\n\n\t}",
"public void deleteCatalog(Catalog catalog) throws BackendException;"
] | [
"0.6576587",
"0.6493569",
"0.61289674",
"0.60885346",
"0.6054655",
"0.59603095",
"0.5935419",
"0.5856147",
"0.58548415",
"0.58548415",
"0.5744333",
"0.5737626",
"0.56709653",
"0.56708896",
"0.56510776",
"0.5591629",
"0.55301946",
"0.54957455",
"0.54871815",
"0.5349537",
"0.53473717",
"0.52941215",
"0.5225702",
"0.5223346",
"0.51967204",
"0.51967204",
"0.5189335",
"0.5184881",
"0.5153402",
"0.5136366",
"0.51292145",
"0.512681",
"0.512681",
"0.50909674",
"0.5082821",
"0.5039994",
"0.50355923",
"0.50164783",
"0.5015765",
"0.5015639",
"0.50117135",
"0.5010596",
"0.49948683",
"0.49778402",
"0.49750358",
"0.49670926",
"0.4959731",
"0.49546847",
"0.49543664",
"0.4947066",
"0.49411786",
"0.49291402",
"0.49285328",
"0.49106798",
"0.48957527",
"0.48936158",
"0.489287",
"0.48897135",
"0.48852828",
"0.48809108",
"0.48788995",
"0.4878523",
"0.4875632",
"0.48672846",
"0.48612997",
"0.48582542",
"0.48572162",
"0.48545322",
"0.48514077",
"0.48462588",
"0.48449326",
"0.48369068",
"0.4834573",
"0.48332614",
"0.4831566",
"0.48277682",
"0.48260975",
"0.4818429",
"0.4813391",
"0.48128197",
"0.48126435",
"0.4807247",
"0.48047397",
"0.47991103",
"0.47987792",
"0.479536",
"0.479536",
"0.479536",
"0.479536",
"0.47926554",
"0.47894073",
"0.47837198",
"0.47799373",
"0.47793487",
"0.47716272",
"0.47712472",
"0.47459847",
"0.47459555",
"0.47440138",
"0.47423974"
] | 0.74611837 | 0 |
A no context matcher used to register element type bindings in the extension points | @Override
public boolean matches(EObject eObject) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isExtensionElement();",
"public interface BindingExt extends ExtComponent {\n\n//TODO: define get/set methods for properties for BindingExt if the extension element has attributes.\n /**\n * This class is an implementation of BindingExt interface that provides java model\n * for binding extensibility element.\n */\n public static class BindingExtImpl extends ExtModelImpl implements BindingExt {\n\n public BindingExtImpl(WSDLModel model, Element e) {\n super(model, e);\n }\n\n public BindingExtImpl(WSDLModel model) {\n this(model, createPrefixedElement(QN_BINDING_EXT, model));\n }\n\n public void accept(ExtVisitor visitor) {\n visitor.visit(this);\n }\n\n @Override\n public boolean canBeAddedTo(Component target) {\n if (target instanceof Binding) {\n return true;\n }\n return false;\n }\n }\n}",
"@Test\n\tpublic void testTypeExtension() {\n\t}",
"public boolean match( ElementExp p ) { return false; }",
"Binding<T> withAnyQualifier();",
"public void bind(IPrivateTestCompView.IContextElement element) {\r\n bind(element == null ? java.util.Collections.EMPTY_LIST : java.util.Collections.singletonList(element));\r\n }",
"Binding<T> unqualified();",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf28027_failAssert26_literalMutation29405() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"? e{xtends @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(expected, \"? e{xtends @com.squareup.javapoet.AmplAnnotatedTypeNameTest.NeverNull java.lang.String\");\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_12432 = (java.util.Map)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_12432);\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_12430 = (javax.lang.model.type.TypeMirror)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_12430);\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_12428 = (com.squareup.javapoet.TypeName)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_12428);\n // StatementAdderMethod cloned existing statement\n vc_12428.get(vc_12430, vc_12432);\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf28027 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf27968() {\n java.lang.String expected = (\"? extends @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // AssertGenerator replace invocation\n boolean o_annotatedWildcardTypeNameWithExtends_cf27968__8 = // StatementAdderMethod cloned existing statement\n type.isBoxedPrimitive();\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedWildcardTypeNameWithExtends_cf27968__8);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"public TypeElementMatcher(Class<?> type) {\n this(type, Qualifiers.matchDefault());\n }",
"public interface ElementExtensibleXMLObject extends XMLObject {\n\n /**\n * Gets the list of XMLObjects added to this XMLObject as part of the \"any\" content model.\n * \n * @return list of XMLObjects added to this XMLObject as part of the \"any\" content model\n */\n public List<XMLObject> getUnknownXMLObjects();\n \n /**\n * Gets the list of XMLObjects added to this XMLObject as part of the \"any\" content model,\n * and which match the specified QName.\n * \n * @param typeOrName the QName of the statements to return\n * @return list of XMLObjects added to this XMLObject as part of the \"any\" content model\n */\n public List<XMLObject> getUnknownXMLObjects(QName typeOrName);\n}",
"@Override\r\n\tpublic TypeBinding literalType(BlockScope scope) {\n\t\treturn null;\r\n\t}",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf27960() {\n java.lang.String expected = (\"? extends @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // StatementAdderOnAssert create null value\n java.lang.Object vc_12386 = (java.lang.Object)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_12386);\n // AssertGenerator replace invocation\n boolean o_annotatedWildcardTypeNameWithExtends_cf27960__10 = // StatementAdderMethod cloned existing statement\n type.equals(vc_12386);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedWildcardTypeNameWithExtends_cf27960__10);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"private boolean isIgnoredByTag(ExtensionContext context) {\n AnnotatedElement element = context.getElement().get();\n return isIgnoredByTag(element);\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf28040_failAssert29() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"? extends @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // StatementAdderMethod cloned existing statement\n type.unbox();\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf28040 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }",
"public boolean visit(SimpleExtensionElement node) {\n return visit((CommonTypeDerivation)node);\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf27961() {\n java.lang.String expected = (\"? extends @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // StatementAdderOnAssert create random local variable\n java.lang.Object vc_12387 = new java.lang.Object();\n // AssertGenerator replace invocation\n boolean o_annotatedWildcardTypeNameWithExtends_cf27961__10 = // StatementAdderMethod cloned existing statement\n type.equals(vc_12387);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedWildcardTypeNameWithExtends_cf27961__10);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf28023_failAssert25() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"? extends @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_12426 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderMethod cloned existing statement\n type.get(vc_12426);\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf28023 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf28009_failAssert22() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"? extends @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_12422 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_12420 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_12418 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_12418.get(vc_12420, vc_12422);\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf28009 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }",
"JCExpression TODO(JFXTree tree) {\n return TODO(\"BIND functionality: \" + tree.getClass().getSimpleName());\n }",
"ExtensionType createExtensionType();",
"public abstract TypeBindings bindingsForBeanType();",
"static ElementMatcher.Junction<? super TypeDescription> createTypeMatcher() {\n return isSubTypeOf(ThreadPoolExecutor.class)\n // ScheduledThreadPoolExecutor is handled separately, via ScheduledFutureTaskInterceptor\n .and(not(isSubTypeOf(ScheduledThreadPoolExecutor.class)));\n }",
"private static boolean expectedInterfaceType(Expr e) {\n \t\treturn e.attrExpectedTyp() instanceof PscriptTypeInterface || e.attrExpectedTyp() instanceof PscriptTypeTypeParam;\n \t}",
"boolean hasPlaceholderType();",
"DOMType() {\n // Constructs an empty type node\n }",
"@Override\n public String visit(WildcardType n, Object arg) {\n return null;\n }",
"protected abstract Matcher<? super ExpressionTree> specializedMatcher();",
"protected abstract Type loadDefaultElement();",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf28045_failAssert31_literalMutation29460_cf33137_failAssert3() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"? extens @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_12438 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_14798 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_14796 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_14794 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_14794.get(vc_14796, vc_14798);\n // MethodAssertGenerator build local variable\n Object o_22_0 = vc_12438;\n // StatementAdderMethod cloned existing statement\n vc_12438.hashCode();\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf28045 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf28045_failAssert31_literalMutation29460_cf33137 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }",
"@Ignore\n @Test\n public void discoverNoTypes() throws Exception {\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testParseDOMWidgetElemNoTypeFails()\n {\n parser.parse(DefaultConfigurationParserMockDOMs.createDOMWidgetElemNoType());\n fail(\"Should have thrown an IllegalArgumentException\");\n }",
"boolean no_type(DiagnosticChain diagnostics, Map<Object, Object> context);",
"@Override\n\tpublic String getBindingTypes() {\n\t\treturn null;\n\t}",
"private static boolean willGenerateExtensionFor(IInterfaceDefinition iDef,\n\t\t\tEnvironment base)\n\t{\n\t\tIInterfaceDefinition overtureEquivalent = base.lookUpType(iDef.getName().getName());\n\t\tboolean hasSameTag = overtureEquivalent == null ? false\n\t\t\t\t: iDef.getName().getTag().equals(overtureEquivalent.getName().getTag());\n\t\treturn hasSameTag && !isUtilityOrTemplateClass(iDef, base);\n\t}",
"public void added(IExtensionPoint[] extensionPoints) {\r\n\r\n\t\t// Do nothing\r\n\t}",
"@Override\n public String visit(TypeExpr n, Object arg) {\n return null;\n }",
"protected DebugRuleElementMatch() {/* intentionally empty block */}",
"void bind(Object element);",
"public interface Matcher<T> {\n\n\t/**\n\t * This method determines if the element must be allowed to be on the list.\n\t * \n\t * @param element\n\t * \n\t * @return true if the element is allowed. false otherwise.\n\t */\n\tboolean accepts(T element);\n\n}",
"@Override\n public String visit(ModuleProvidesDirective n, Object arg) {\n return null;\n }",
"TypeElement getTypeElement();",
"@Override\r\n\t\t\tpublic void _dont_implement_Matcher___instead_extend_BaseMatcher_() {\n\t\t\t\t\r\n\t\t\t}",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf28013_failAssert23_literalMutation29375_cf35869_failAssert9() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"? extends @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \"\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_12422 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_14_0 = vc_12422;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_12420 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_16032 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_16030 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_16028 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_16028.get(vc_16030, vc_16032);\n // MethodAssertGenerator build local variable\n Object o_26_0 = vc_12420;\n // StatementAdderMethod cloned existing statement\n type.get(vc_12420, vc_12422);\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf28013 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf28013_failAssert23_literalMutation29375_cf35869 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }",
"@Override\n public void onIgnored(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded) {\n }",
"public ExtensibleMatchFilter()\n {\n super();\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedWildcardTypeNameWithExtends_cf27960_cf28212_failAssert20() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"? extends @\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n java.lang.String actual = com.squareup.javapoet.WildcardTypeName.subtypeOf(type).toString();\n // StatementAdderOnAssert create null value\n java.lang.Object vc_12386 = (java.lang.Object)null;\n // MethodAssertGenerator build local variable\n Object o_10_0 = vc_12386;\n // AssertGenerator replace invocation\n boolean o_annotatedWildcardTypeNameWithExtends_cf27960__10 = // StatementAdderMethod cloned existing statement\n type.equals(vc_12386);\n // MethodAssertGenerator build local variable\n Object o_14_0 = o_annotatedWildcardTypeNameWithExtends_cf27960__10;\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_12498 = (javax.lang.model.type.TypeMirror)null;\n // StatementAdderMethod cloned existing statement\n type.get(vc_12498);\n org.junit.Assert.fail(\"annotatedWildcardTypeNameWithExtends_cf27960_cf28212 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }",
"public String typeOf() { return null; }",
"WithFlexibleName withTypeVariables(ElementMatcher<? super Generic> matcher, Transformer<TypeVariableToken> transformer);",
"@Override\n public boolean hasTagProcessor(String uri, String localName) {\n return cdiManager.exists(Object.class, new TemplateProcessorLiteral(uri, localName));\n }",
"public void testLocalType() throws JavaModelException {\n\t\tASTNode node = buildAST(\n\t\t\t\"public class X {\\n\" +\n\t\t\t\" void foo() {\\n\" +\n\t\t\t\" /*start*/class Y {\\n\" +\n\t\t\t\" }/*end*/\\n\" +\n\t\t\t\" }\\n\" +\n\t\t\t\"}\"\n\t\t);\n\t\tIBinding binding = ((TypeDeclarationStatement) node).resolveBinding();\n\t\tassertNotNull(\"No binding\", binding);\n\t\tIJavaElement element = binding.getJavaElement();\n\t\tassertElementEquals(\n\t\t\t\"Unexpected Java element\",\n\t\t\t\"Y [in foo() [in X [in [Working copy] X.java [in <default> [in <project root> [in P]]]]]]\",\n\t\t\telement\n\t\t);\n\t\tassertTrue(\"Element should exist\", element.exists());\n\t}",
"protected PluginExtensionMatcher getExtensionMatcher() {\n PluginParameterExtensionMatcher matcher = new PluginParameterExtensionMatcher();\n matcher.put(ViewActionPluginJPFImpl.VIEW_ID_PARAM, view.getId());\n return matcher;\n }",
"public void testTopLevelType2() throws CoreException {\n\t\ttry {\n\t\t\tcreateFile(\n\t\t\t\t\"/P/Y.java\",\n\t\t\t\t\"public class Y {\\n\" +\n\t\t\t\t\"}\"\n\t\t\t);\n\t\t\tASTNode node = buildAST(\n\t\t\t\t\"public class X extends /*start*/Y/*end*/ {\\n\" +\n\t\t\t\t\"}\"\n\t\t\t);\n\t\t\tIBinding binding = ((SimpleType) node).resolveBinding();\n\t\t\tassertNotNull(\"No binding\", binding);\n\t\t\tIJavaElement element = binding.getJavaElement();\n\t\t\tassertElementEquals(\n\t\t\t\t\"Unexpected Java element\",\n\t\t\t\t\"Y [in Y.java [in <default> [in <project root> [in P]]]]\",\n\t\t\t\telement\n\t\t\t);\n\t\t\tassertTrue(\"Element should exist\", element.exists());\n\t\t} finally {\n\t\t\tdeleteFile(\"/P/Y.java\");\n\t\t}\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testAnotherInvalidMatch() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String.class);\n typeList.add(Object.class);\n typeList.add(Object.class);\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(StringListSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }",
"public interface GosuTypeArgumentList extends IGosuPsiElement\n{\n GosuTypeElement[] getTypeArgumentElements();\n}",
"boolean isTypeAdapterAware();",
"@Override\n public ElementMatcher<TypeDescription> typeMatcher() {\n return named(\"com.google.api.client.http.HttpRequest\");\n }",
"public interface ExtensionInterface {\n\n public static final Object CONST_class =\n \"Symfony\\\\Component\\\\CssSelector\\\\XPath\\\\Extension\\\\ExtensionInterface\";\n\n @ConvertedMethod\n public Object getNodeTranslators(RuntimeEnv env, Object... args);\n\n @ConvertedMethod\n public Object getCombinationTranslators(RuntimeEnv env, Object... args);\n\n @ConvertedMethod\n public Object getFunctionTranslators(RuntimeEnv env, Object... args);\n\n @ConvertedMethod\n public Object getPseudoClassTranslators(RuntimeEnv env, Object... args);\n\n @ConvertedMethod\n public Object getAttributeMatchingTranslators(RuntimeEnv env, Object... args);\n\n @ConvertedMethod\n public Object getName(RuntimeEnv env, Object... args);\n\n static final ReflectionClassData runtimeConverterReflectionData =\n ReflectionClassData.builder()\n .setName(\n \"Symfony\\\\Component\\\\CssSelector\\\\XPath\\\\Extension\\\\ExtensionInterface\")\n .setLookup(ExtensionInterface.class, MethodHandles.lookup())\n .setLocalProperties()\n .setFilename(\n \"vendor/symfony/css-selector/XPath/Extension/ExtensionInterface.php\")\n .get();\n}",
"@Test(expected = IllegalArgumentException.class)\n public void testParseDOMWidgetElemEmptyTypeFails()\n {\n parser.parse(DefaultConfigurationParserMockDOMs.createDOMWidgetElemEmptyType());\n fail(\"Should have thrown an IllegalArgumentException\");\n }",
"public void testPackage2() throws CoreException {\n\t\tASTNode node = buildAST(\n\t\t\t\"/*start*/public class X {\\n\" +\n\t\t\t\"}/*end*/\"\n\t\t);\n\t\tITypeBinding typeBinding = ((TypeDeclaration) node).resolveBinding();\n\t\tassertNotNull(\"No binding\", typeBinding);\n\t\tIPackageBinding binding = typeBinding.getPackage();\n\t\tIJavaElement element = binding.getJavaElement();\n\t\tassertElementEquals(\n\t\t\t\"Unexpected Java element\",\n\t\t\t\"<default> [in <project root> [in P]]\",\n\t\t\telement\n\t\t);\n\t\tassertTrue(\"Element should exist\", element.exists());\n\t}",
"@Test\n public void testRepeatStageType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String.class);\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(NoOpSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }",
"private void addExtraBindings() {\n }",
"public interface TypePoll {\n /**\n * ddd\n * @param clazz\n * @param itemViewBinder\n * @param linker\n * @param <T>\n */\n <T> void register(@NonNull Class<? extends T> clazz,\n @NonNull BaseItemViewBinder<?,T> itemViewBinder,\n @NonNull Linker<T> linker);\n\n int indexOf(@NonNull Class<?> clazz);\n\n\n @NonNull\n BaseItemViewBinder getItemBinder(int index);\n\n @NonNull\n BaseItemViewBinder getBinderByClass(@NonNull int index);\n\n\n @NonNull\n Linker<?> getLinker(int index);\n}",
"public boolean\nmatches( SoElement element)\n{\n//#ifdef DEBUG\n SoDebugError.post(\"SoLazyElement.matches\", \n \"Should never be called\\n\");\n//#endif\n return true;\n}",
"private static boolean willGenerateExtentionFor(IInterfaceDefinition iDef, Environment base)\n \t{\n \t\treturn base.lookUpType(iDef.getName().getName()) != null && !isUtilityOrTemplateClass(iDef, base);\n \t}",
"Element getGenericElement();",
"@Override\n protected void checkElementNameUnique(Element element)\n {\n }",
"public Element newElement(Binding binding, ElementKind kindHint) {\n if (binding == null)\n return null;\n switch(binding.kind()) {\n case Binding.FIELD:\n case Binding.LOCAL:\n case Binding.VARIABLE:\n return new VariableElementImpl(_env, (VariableBinding) binding);\n case Binding.TYPE:\n case Binding.GENERIC_TYPE:\n ReferenceBinding referenceBinding = (ReferenceBinding) binding;\n if ((referenceBinding.tagBits & TagBits.HasMissingType) != 0) {\n return new ErrorTypeElement(this._env, referenceBinding);\n }\n if (CharOperation.equals(referenceBinding.sourceName, TypeConstants.PACKAGE_INFO_NAME)) {\n return new PackageElementImpl(_env, referenceBinding.fPackage);\n }\n return new TypeElementImpl(_env, referenceBinding, kindHint);\n case Binding.METHOD:\n return new ExecutableElementImpl(_env, (MethodBinding) binding);\n case Binding.RAW_TYPE:\n case Binding.PARAMETERIZED_TYPE:\n return new TypeElementImpl(_env, ((ParameterizedTypeBinding) binding).genericType(), kindHint);\n case Binding.PACKAGE:\n return new PackageElementImpl(_env, (PackageBinding) binding);\n case Binding.TYPE_PARAMETER:\n return new TypeParameterElementImpl(_env, (TypeVariableBinding) binding);\n // TODO: fill in the rest of these\n case Binding.IMPORT:\n case Binding.ARRAY_TYPE:\n case Binding.BASE_TYPE:\n case Binding.WILDCARD_TYPE:\n case Binding.INTERSECTION_TYPE:\n //$NON-NLS-1$\n throw new UnsupportedOperationException(\"NYI: binding type \" + binding.kind());\n }\n return null;\n }",
"private AnnotatedTypes() { throw new AssertionError(\"Class AnnotatedTypes cannot be instantiated.\");}",
"public boolean hasNotClass(final String elementLocator, final String clazz);",
"public interface FindContext {\n\n /**\n * when searching for an element, check if scope element shadow root should be expanded\n *\n * @return true if need to expand\n */\n boolean isExpandScopeShadowRoot();\n\n /**\n * if element is marked as nullable, it can be not found inside its parent\n *\n * @return true is element can be non-existing\n */\n boolean isNullable();\n\n /**\n * string for logging and errors\n *\n * @return string to use in logging\n */\n String getString();\n\n /**\n * currently known four types of context - nullable or not and in or outside shadow\n *\n * @author elizaveta.ivanova\n */\n enum Type implements FindContext {\n\n EXISTING,\n NULLABLE,\n EXISTING_IN_SHADOW,\n NULLABLE_IN_SHADOW;\n\n public static Type build(boolean isNullable, boolean isExpandsShadowRoot) {\n if (isNullable) {\n return isExpandsShadowRoot ? NULLABLE_IN_SHADOW : NULLABLE;\n }\n return isExpandsShadowRoot ? EXISTING_IN_SHADOW : EXISTING;\n }\n\n @Override\n public boolean isNullable() {\n return this == NULLABLE || this == NULLABLE_IN_SHADOW;\n }\n\n @Override\n public boolean isExpandScopeShadowRoot() {\n return this == EXISTING_IN_SHADOW || this == NULLABLE_IN_SHADOW;\n }\n\n @Override\n public String getString() {\n return isExpandScopeShadowRoot() ? \">>\" : \">\";\n }\n }\n}",
"private void registerBindings(){\t\t\n\t}",
"private void registerBindings(){\t\t\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testAddConfigurationProviderNullTag()\n {\n factory.addConfigurationProvider(null,\n new DefaultConfigurationBuilder.ConfigurationProvider());\n }",
"@Override\r\n public void setupTypeCheck() {\n ITypesCalculator derLit = new DeriveSymTypeOfCombineExpressionsWithSIUnitTypesDelegator();\r\n\r\n // other arguments not used (and therefore deliberately null)\r\n setTypeCheck(new TypeCheck(null, derLit));\r\n }",
"ExtensionsType getExtensions();",
"@Ignore\n @Test\n public void untypedLambda2() {\n DependentLink A = param(\"A\", Universe(0));\n DependentLink params = params(A, param(\"B\", Pi(Reference(A), Universe(0))), param(\"a\", Reference(A)));\n Expression type = Pi(params, Apps(Reference(params.getNext()), Reference(params.getNext().getNext())));\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n\n CheckTypeVisitor.Result result = typeCheckExpr(context, \"\\\\lam x1 x2 x3 => f x1 x2 x3\", null);\n assertEquals(type, result.type);\n }",
"public void testTopLevelType1() throws JavaModelException {\n\t\tASTNode node = buildAST(\n\t\t\t\"/*start*/public class X {\\n\" +\n\t\t\t\"}/*end*/\"\n\t\t);\n\t\tIBinding binding = ((TypeDeclaration) node).resolveBinding();\n\t\tassertNotNull(\"No binding\", binding);\n\t\tIJavaElement element = binding.getJavaElement();\n\t\tassertElementEquals(\n\t\t\t\"Unexpected Java element\",\n\t\t\t\"X [in [Working copy] X.java [in <default> [in <project root> [in P]]]]\",\n\t\t\telement\n\t\t);\n\t\tassertTrue(\"Element should exist\", element.exists());\n\t}",
"public EpicExtensionProvider() {\r\n\t}",
"@Test\n public void testParseDOMToExistenceValidationWidgetPlusIgnoredElemSucceeds()\n {\n FixtureProperties properties = parser.parse(DefaultConfigurationParserMockDOMs\n .createDOMToExistenceValidationWidgetPlusIgnoredElem());\n verifyCommonPropertiesAssertions(properties);\n }",
"@XmlAnyElement ( lax = true )\n @JsonSerialize ( using = AnyElementSerializer.class )\n public List<Object> getExtensionElements() {\n return extensionElements;\n }",
"public interface IRegexFinder {\n String getTag();\n\n // Put tag for a item in tiarray if the item match to a regex.\n default boolean putTagIfRegexFound(TaggedItemsArray tiarray) {\n Iterator<String> itr = tiarray.getIterator();\n boolean anyRegexFound = false;\n\n while (itr.hasNext()) {\n String item = itr.next();\n\n if (match(item)) {\n tiarray.modify(item, getTag());\n anyRegexFound = true;\n }\n }\n\n return anyRegexFound;\n }\n\n // Returns kind / name of regex finder.\n String whoAmI();\n\n boolean match(String toCheck);\n}",
"@Override\n\tpublic boolean test(MyRegex t) {\n\t\treturn false;\n\t}",
"public interface ATypeCheckNode {}",
"public void assertNotElementPresent(final String elementLocator);",
"public interface UnaryTest extends DMNElement {\n}",
"public void setMatchAny() {\n this.value = ANY;\n }",
"protected boolean isSupported(Class<?> type, Type genericType, Annotation[] anns) {\n return type.getAnnotation(XmlRootElement.class) != null\n || JAXBElement.class.isAssignableFrom(type)\n || objectFactoryForClass(type)\n || (type != genericType && objectFactoryForType(genericType))\n || adapterAvailable(type, anns);\n \n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static void testNgWithoutTypeParametersSpecified() {\n\t\tArrayList list = new ArrayList();\n\t\tlist.add(\"abc\");\n\t\tlist.add(\"def\");\n\t\tlist.add(\"ghi\");\n\n\t\tString firstElement = (String) list.get(0);\n\t\tSystem.out.println(\"firstElement: \" + firstElement);\n\t}",
"@Test\n public void testListExtensions() {\n FlumeBuilder.getSinkNames().contains(\"agentSink\");\n FlumeBuilder.getDecoratorNames().contains(\"regex\");\n FlumeBuilder.getSourceNames().contains(\"collectorSource\");\n }",
"void emptyType(ComplexTypeSG type) throws SAXException;",
"@Override\n\t\t\t public Value visit(UndefinedType type, Void ctx) {\n\t\t\t\t throw new UnsupportedOperationException(\n\t\t\t\t\t\t\t\"Error WidgetInterface: Value type is undefined!\");\n\t\t\t }",
"public ExtensionAttributes_() {\n }",
"@Override\n public String visit(TypeParameter n, Object arg) {\n return null;\n }",
"@Override\n public Matcher way() {\n return withView(getElementView(this));\n }",
"@SuppressWarnings(\"unchecked\")\n public void register()\n {\n this.phpProcessor.registerProcessorExtension(this);\n \n // Register the node type if specified\n if (this.nodeType != null)\n {\n try\n {\n QName type = QName.createQName(this.nodeType);\n Class clazz = Class.forName(this.extensionClass); \n this.nodeFactory.addNodeType(type, clazz);\n }\n catch (ClassNotFoundException exception)\n {\n throw new PHPProcessorException(\"Unable to load node type (\" + this.extensionClass + \")\", exception);\n }\n }\n }",
"@Override\r\n\t\tpublic final INamedElement resolveTypeForValueContext() {\n\t\t\treturn null;\r\n\t\t}",
"protected abstract void onElementRegistered(Level level, T element);",
"public TransferredPacketExtension()\n {\n super(NAMESPACE, ELEMENT_NAME);\n }",
"public boolean visit(SunExtExpression expression) {\n return false;\n }",
"@Test\n\tpublic void testGuardRenaming() throws Exception {\n\t\ttestRenaming(IGuard.ELEMENT_TYPE);\n\t}"
] | [
"0.57127917",
"0.55783224",
"0.55655456",
"0.5406063",
"0.5267254",
"0.5265003",
"0.52289563",
"0.51348263",
"0.51191777",
"0.5081036",
"0.5051629",
"0.5010273",
"0.5005084",
"0.50026673",
"0.49854517",
"0.49754617",
"0.49715143",
"0.49562225",
"0.49417144",
"0.49247524",
"0.49196228",
"0.49154267",
"0.49117535",
"0.49115962",
"0.49096543",
"0.49022165",
"0.48864886",
"0.48524544",
"0.4848114",
"0.48274615",
"0.48165864",
"0.4810369",
"0.48074168",
"0.48040462",
"0.48028654",
"0.4794709",
"0.47935092",
"0.479197",
"0.47874373",
"0.47780895",
"0.47771993",
"0.47627",
"0.4757691",
"0.4749096",
"0.47355002",
"0.47349092",
"0.47314444",
"0.46985728",
"0.46908787",
"0.4682319",
"0.4656731",
"0.46541348",
"0.46445006",
"0.46414447",
"0.46402782",
"0.46402258",
"0.4639703",
"0.46384907",
"0.46325788",
"0.46313208",
"0.4625907",
"0.4625191",
"0.46234998",
"0.46230733",
"0.4616602",
"0.4616436",
"0.4615231",
"0.46143067",
"0.46106935",
"0.46080482",
"0.46006867",
"0.459887",
"0.459887",
"0.45957047",
"0.45887402",
"0.45680377",
"0.45647156",
"0.4560902",
"0.45546186",
"0.45501593",
"0.45482743",
"0.45462397",
"0.45434925",
"0.45396212",
"0.453912",
"0.45383936",
"0.4536225",
"0.45352057",
"0.45208544",
"0.4517474",
"0.45172128",
"0.45155582",
"0.45153806",
"0.4508863",
"0.4506062",
"0.44978774",
"0.44846728",
"0.44832087",
"0.44813004",
"0.44784784",
"0.44775924"
] | 0.0 | -1 |
/ CsvFileWriter csvFileWriter = new CsvFileWriter(issuerRepository); CsvFileWriter csvFileWriter = new CsvFileWriter(); csvFileWriter.writerCsvFile("test.csv"); | @Scheduled(cron = "*/10 * * * * *")
public void startJob() {
BooleanBuilder booleanIssuer = new BooleanBuilder();
booleanIssuer.and(QIssuer.issuer.status.eq(Issuer.Status.ACTIVE));
QIssuer qIssuer = QIssuer.issuer;
JPAQuery<?> query = new JPAQuery<Void>(entityManager);
List<Issuer> listIssuer = query.select(qIssuer).from(qIssuer).where(booleanIssuer).fetch();
for (Issuer issuer : listIssuer) {
System.out.println(issuer.toString());
}
FileWriter fileWirter = null;
if (!(CollectionUtils.isEmpty(listIssuer))) {
try {
fileWirter = new FileWriter("test.csv");
fileWirter.append(FILE_HEADER.toString());
fileWirter.append(NEW_LINE_SEPARATOR);
for (Issuer issuer : listIssuer) {
fileWirter.append(String.valueOf(issuer.getId()));
fileWirter.append(COMMA_DELIMITER);
fileWirter.append(issuer.getIssuerCode());
fileWirter.append(COMMA_DELIMITER);
fileWirter.append(issuer.getName());
fileWirter.append(COMMA_DELIMITER);
fileWirter.append(String.valueOf(issuer.getStatus()));
fileWirter.append(COMMA_DELIMITER);
fileWirter.append(String.valueOf(issuer.getLastUpdate()));
fileWirter.append(NEW_LINE_SEPARATOR);
}
System.out.println("writer successfully !");
} catch (IOException e) {
slackService.send(" " + e.getMessage());
e.printStackTrace();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createCsvFile(String fileName) { \n \n try { \n \n fileWriter = new FileWriter(fileName); \n \n //Write the CSV file header \n fileWriter.append(FILE_HEADER.toString()); \n \n //Add a new line separator after the header \n fileWriter.append(NEW_LINE_SEPARATOR); \n \n System.out.println(\"CSV file was created successfully !!!\"); \n \n } catch (Exception e) { \n \n System.out.println(\"Error in CsvFileWriter !!!\"); \n e.printStackTrace(); \n \n } finally { \n \n try {\n \n fileWriter.flush(); \n //fileWriter.close(); \n \n } catch (IOException e) { \n \n System.out.println(\"Error while flushing/closing fileWriter !!!\"); \n e.printStackTrace(); \n } \n \n } \n \n}",
"public void createCSV() {\n\t\t// Need to integrate CSV calling logic\n\t}",
"CSV createCSV();",
"public void closeCsvFile()\n{\n try {\n \n fileWriter.flush(); \n fileWriter.close(); \n \n } catch (IOException e) { \n \n System.out.println(\"Error while flushing/closing fileWriter !!!\"); \n e.printStackTrace(); \n } \n \n}",
"@Override\n\tpublic void createCSVOutput() {\n\t\tFile file = new File(\"rejectedByEsteticalRestructurationRejector.csv\"); \n\t\t\n\t\t//test if the file already exist\n\t\tif(file.exists()) {\n\t\t\tSystem.out.println(\"le fichier rejectedByEstheticalRestructurationRejector.csv existe deja\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\t//create the different column for the CSV file\n\t\tString[] titles = { \"before\" , \"after\", \"id\"};\n\t\ttry {\n\t\t\toutputFile = new CsvFileWriter(file, '\\t', titles);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\t// if(StringUtils.isNotEmpty(empId)) {\n\t\t\t\t// filePath += \"/\" + empId;\n\t\t\t\t// }\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(EMPLOYEE_DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\t// Write a new student object list to the CSV file\n\t\t\t\t\tfor (EmployeeDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\t// log.debug(\"Writing transaction record for Employee id :\"+\n\t\t\t\t\t\t// transaction.getEmployeeEmpId());\n\t\t\t\t\t\trecord.add(transaction.getEmpId());\n\t\t\t\t\t\trecord.add(transaction.getName());\n\t\t\t\t\t\trecord.add(transaction.getDesignation());\n\t\t\t\t\t\trecord.add(transaction.getManagerName());\n\t\t\t\t\t\trecord.add(transaction.getProjectName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getActive());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}",
"@Override\n\tpublic void exportToCSV() {\n\n\t}",
"public void openCSVStream() {\n\t\ttry {\n\t\t\twriter = new CSVWriter(new FileWriter(getCSVFolder() + File.separator + getFileName() + \".csv\"), ',');\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void initializewriters() {\n try {\n outputfile = new FileWriter(journeyfile);\n // create CSVWriter object filewriter object as parameter\n writer = new CSVWriter(outputfile);\n\n // adding header to csv\n String[] header = {\"Lat\", \"Lng\", \"Zacc\", \"Timestamp\"};\n writer.writeNext(header);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\t// Write a new student object list to the CSV file\n\t\t\t\t\tfor (AttendanceDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for Employee id :\" + transaction.getEmployeeEmpId());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getCreatedDate());\n\t\t\t\t\t\trecord.add(String.valueOf(transaction.getEmployeeEmpId()));\n\t\t\t\t\t\trecord.add(transaction.getEmployeeFullName());\n\t\t\t\t\t\trecord.add(DateUtil.convertUTCToIST(transaction.getCheckInTime()));\n\t\t\t\t\t\trecord.add(DateUtil.convertUTCToIST(transaction.getCheckOutTime()));\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}",
"public void exportToCSV();",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(JOB_DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (JobDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(String.valueOf(transaction.getTitle()));\n\t\t\t\t\t\trecord.add(transaction.getEmployeeName());\n\t\t\t\t\t\trecord.add(transaction.getJobType());\n\t\t\t\t\t\trecord.add(transaction.getPlannedStartTime());\n\t\t\t\t\t\trecord.add(transaction.getActualEndTime());\n\t\t\t\t\t\trecord.add(transaction.getJobStatus() != null ? transaction.getJobStatus().name()\n\t\t\t\t\t\t\t\t: JobStatus.OPEN.name());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!! \" + e);\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\tString siteName = null;\n\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(CONSOLIDATED_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (ReportResult transaction : content) {\n\t\t\t\t\t\tif (StringUtils.isEmpty(siteName) || !siteName.equalsIgnoreCase(transaction.getSiteName())) {\n\t\t\t\t\t\t\tcsvFilePrinter.printRecord(\"\");\n\t\t\t\t\t\t\tcsvFilePrinter\n\t\t\t\t\t\t\t\t\t.printRecord(\"CLIENT - \" + projName + \" SITE - \" + transaction.getSiteName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getLocatinName());\n\t\t\t\t\t\trecord.add(transaction.getAssignedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getCompletedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getOverdueJobCount());\n\t\t\t\t\t\trecord.add(transaction.getTat());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}",
"public static void save() {\r\n\t\ttry {\r\n\t\t\tFile csv = new File(\"src/transaction.csv\");\r\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(csv, false));\r\n\t\t\tbw.write(\"type,account number,amount,year,month,date,cleared\");\r\n\t\t\tbw.newLine();\r\n\t\t\tfor (int i = 0; i < transList.size(); i++) {\r\n\t\t\t\tbw.write(transList.get(i).toFile());\r\n\t\t\t\tbw.newLine();\r\n\t\t\t}\r\n\t\t\tbw.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Bean\r\n public ItemWriter<OrderEntity> databaseCsvItemWriter() {\r\n LOG.debug(\"=== databaseCsvItemWriter\");\r\n FlatFileItemWriter<OrderEntity> csvFileWriter = new FlatFileItemWriter<>();\r\n\r\n // Extracting column names from properties file\r\n ArrayList<String> columns = (ArrayList<String>) fileProperties.getColumns();\r\n String columnsHeaders = \"\";\r\n for (int i = 0; i < columns.size(); i++) {\r\n columnsHeaders += columns.get(i);\r\n if (i < (columns.size() - 1)) {\r\n columnsHeaders += \",\";\r\n }\r\n }\r\n LOG.debug(\"=== columnsHeaders=>\" + columnsHeaders);\r\n\r\n StringHeaderWriter headerWriter = new StringHeaderWriter(columnsHeaders);\r\n csvFileWriter.setHeaderCallback(headerWriter);\r\n\r\n // Extracting destination file from properties file, adding de suffix Processed\r\n String exportFilePath =\r\n fileProperties.getName().substring(0, fileProperties.getName().lastIndexOf('.'))\r\n + \"Processed.csv\";\r\n LOG.debug(\"=== exportFilePath=>\" + exportFilePath);\r\n csvFileWriter.setResource(new FileSystemResource(exportFilePath));\r\n\r\n LineAggregator<OrderEntity> lineAggregator = createOrderLineAggregator();\r\n csvFileWriter.setLineAggregator(lineAggregator);\r\n\r\n return csvFileWriter;\r\n }",
"@RequestMapping(\"/generatecsv\")\r\n\tpublic String generateCsvFile() throws CsvDataTypeMismatchException, CsvRequiredFieldEmptyException {\r\n\r\n\t\tList<FinalCritExtDTO> list = service.generateDataForCsvFile();\r\n\r\n\t\tif (Objects.nonNull(list) && !list.isEmpty()) {\r\n\t\t\tlogger.info(\"data fetched from db and mapped of size \" + list.size());\r\n\t\t\twriter.writeDataAtOnce(list);\r\n\t\t} else\r\n\t\t\tlogger.info(\"No records found in db to be written\");\r\n\t\tlogger.debug(\"File successfully generated\");\r\n\t\treturn \"SUCCESS\";\r\n\t}",
"private void writeCSVToFile(List<String[]> dataRows, String filepath) {\n try {\n FileWriter output = new FileWriter(filepath);\n CSVWriter csvWriter = new CSVWriter(output);\n\n csvWriter.writeAll(dataRows);\n\n csvWriter.close();\n\n System.out.println(\"Your order has been succesfully sent to Foodora\");\n\n } catch (IOException e) {\n System.out.println(\"Could not write to Foodora output file\");\n }\n\n }",
"public static void createCSV(Passengers passengers) {\n String csvFile = \"miles_per_existing_member_NEW.csv\";\n try {\n writer = new FileWriter(csvFile);\n \n \n \n Map<Long,Integer> Members = passengers.getMembers();\n \n writeLine(Arrays.asList(\"memberID\",\"miles\"));\n for(Map.Entry<Long, Integer> entry : Members.entrySet()) {\n writeLine(Arrays.asList( entry.getKey().toString() , entry.getValue().toString() ));\n }\n\n writer.flush();\n writer.close();\n } \n catch (IOException ex) {\n Logger.getLogger(CSVUtilities.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void appendLogFile(String str)\n{\n if(fileWriter != null)\n {\n try { \n \n fileWriter.append(str); \n \n } catch (Exception e) { \n \n System.out.println(\"Error in CsvFileWriter !!!\"); \n e.printStackTrace(); \n \n } finally { \n \n try {\n \n fileWriter.flush(); \n //fileWriter.close(); \n \n } catch (IOException e) { \n \n System.out.println(\"Error while flushing/closing fileWriter !!!\"); \n e.printStackTrace(); \n } \n \n } \n }\n}",
"public static void csvMake() throws ClassNotFoundException, SQLException, IOException{\n\t\tClass.forName(\"org.h2.Driver\");\n\t\tConnection conn = DriverManager.getConnection(DB, user, pass);\n\t\tCSV newFile = new CSV();\n\t\tnewFile.make(conn);\n\t\tconn.close();\n\t}",
"public void csv() throws IOException {\n\t\t\n\t\tSystem.out.println(); //spacing\\\n\t\tFileWriter f;\n\t\t\n\t\tif (bundle.getString(\"csvName\").endsWith(\".csv\")) {\n\t\t\tf = new FileWriter(bundle.getString(\"csvName\"));\n\t\t}\n\t\t\n\t\telse {\n\t\t\tf = new FileWriter(bundle.getString(\"csvName\") + \".csv\");\n\t\t}\n\t\t\n\t\tPrintWriter p = new PrintWriter(f);\n\t\tObject[][] input = {revisionsToo, flowOfTime};\n\t\tCSVWork(input, p, f);\n\t\t\n\t\tObject[][] nextInput = {revisions, ratings};\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tnextInput[1] = irrelevants;\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tnextInput[1] = relevants;\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tnextInput[0] = intervals;\n\t\tnextInput[1] = commits;\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tspecialCSV(existsHere, p);\n\t\t\n\t\tp.flush();\n\t\tp.close();\n\t\tf.close();\n\t}",
"public void saveAsCsv() {\n\n try(BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(\"saves/data.csv\"))){\n for(Publication book : library){\n StringBuilder stringBuilder = new StringBuilder();\n\n stringBuilder.append(\"\\\"\").append(book.getClass().getSimpleName()).append(\"\\\"\"); // type\n stringBuilder.append(\",\"); // delimiter\n stringBuilder.append(\"\\\"\").append(book.getTitle()).append(\"\\\"\"); // title\n stringBuilder.append(\",\");\n stringBuilder.append(\"\\\"\").append(book.getAuthor().toString()).append(\"\\\"\"); // author\n stringBuilder.append(\",\");\n stringBuilder.append(\"\\\"\").append(book.getPages()).append(\"\\\"\"); // pages\n stringBuilder.append(\",\");\n stringBuilder.append(\"\\\"\").append(book.getIsbn()).append(\"\\\"\"); // isbn\n stringBuilder.append(\",\");\n stringBuilder.append(\"\\\"\").append(book.getReleaseYear()).append(\"\\\"\"); // year\n stringBuilder.append(\"\\n\");\n\n bufferedWriter.write(stringBuilder.toString()); // creates a line of one publication information and puts it to file\n }\n } catch (IOException e){\n System.out.println(\"IOException occurred: \" + e.getMessage());\n }\n }",
"void createCsv(String location);",
"@Override\n public void saveCSVFile(String csvPath, String output) {\n this.csvPath = csvPath;\n BufferedWriter outputFile = null;\n\n try {\n outputFile = new BufferedWriter(new FileWriter(this.csvPath));\n if (this.header == null) {\n this.header = Rules.getDefaultHeaders();\n }\n outputFile.write(header);\n outputFile.write(output);\n outputFile.close();\n } catch (FileNotFoundException fnfe) {\n System.out.println(\"File not found\");\n } catch (IOException ioe) {\n System.out.println(\"Something went wrong\");\n }\n }",
"private static void generateCsvFileWithFinalData(File path) // String sFileName\n {\n String COMMA_DELIMITER = \",\";\n String NEW_LINE_SEPARATOR = \"\\n\";\n try\n {\n // String path to our created output data file\n String finalFilePath = String.valueOf(path.getParent()) + \"\\\\test.csv\";\n FileWriter writer = new FileWriter(finalFilePath);\n\n for (Player player : sortedFinalPlayerList) {\n writer.append(player.getLastName());\n writer.append(COMMA_DELIMITER);\n writer.append(player.getFirstName());\n writer.append(COMMA_DELIMITER);\n writer.append(player.getCountry());\n writer.append(COMMA_DELIMITER);\n writer.append(String.valueOf(player.getLongCommSubsCounter()));\n writer.append(NEW_LINE_SEPARATOR);\n }\n\n //generate whatever data you want\n writer.flush();\n writer.close();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }",
"public void dataFileCreate() {\r\n\t\tString COMMA_DELIMITER = \",\";\r\n\t\tString NEW_LINE_SEPERATOR = \"\\n\";\r\n\t\tString FILE_HEADER = \"Title,First Name,Last Name,Email,Phone Number\";\r\n\t\ttry {\r\n\t\t\tList<Customer> dataList = new ArrayList<Customer>();\r\n\t\t\tdataList.add(\r\n\t\t\t\t\tnew Customer(title, customerFirstName, customerLastName, custromerEmailId, customerPhoneNumber));\r\n\r\n\t\t\tFileWriter fileWriter = new FileWriter(\"CustomerDetails.csv\");\r\n\t\t\tBufferedWriter bufferWriter = new BufferedWriter(fileWriter);\r\n\t\t\tbufferWriter.append(FILE_HEADER);\r\n\r\n\t\t\tfor (Customer c : dataList) {\r\n\t\t\t\tbufferWriter.write(NEW_LINE_SEPERATOR);\r\n\t\t\t\tbufferWriter.write(c.getTitle());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getFirstName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getLastName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getEmailAddress());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(String.valueOf(c.getPhone()));\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t}\r\n\r\n\t\t\tbufferWriter.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"public static void writeDataToCsvUsingStringArrayForAssay(PrintWriter writer, List<AssayTabDTO> assayTabList, List<ReferenceTabDTO> referenceTabDTOList, List<StructureDetailsTabDTO> structureDetailsTabDTOList) {\n\n String[] CSV_ASSAY_TITLE = {\"Assay Details\"};\n\n String[] CSV_ASSAY_HEADER = {\"ASSAY_ID\", \"REF_ID\", \"GVK_ID\", \"PROTEIN\", \"STANDARD_NAME\", \"MUTANT\", \"WILD_TYPE\", \"NEW_RESIDUE\", \"OLD_RESIDUE\", \"OPERATION\", \"ASSAY_POSITION\", \"TARGET_PROFILE\", \"P_S_M\", \"BUFFER\", \"BUFFER_CONC\", \"BUFFER_PREFIX\", \"BUFFER_UOM\", \"SUBSTRATE\", \"SUBSTRATE_CONC\", \"SUBSTRATE_PREFIX\", \"SUBSTRATE_UOM\", \"RADIO_LIGAND\", \"RADIO_LIGAND_PREFIX\", \"RADIO_LIGAND_UOM\", \"RADIO_LIGAND_CONC\", \"CO_ADMINISTERED\", \"CO_ADMINISTERED_PREFIX\", \"CO_ADMINISTERED_UOM\", \"CO_ADMINISTERED_VALUE\", \"IN_PRESENCE_OF\", \"IN_PRESENCE_OF_CONC\", \"IN_PRESENCE_OF_PREFIX\", \"IN_PRESENCE_OF_UOM\", \"INCUBATION_TIME\", \"INCUBATION_PREFIX\", \"INCUBATION_UOM\", \"TEMPERATURE\", \"TEMPERATURE_PREFIX\", \"TEMPERATURE_UOM\", \"PH_PREFIX\", \"PH\"};\n\n try (\n CSVWriter csvWriter = new CSVWriter(writer,\n CSVWriter.DEFAULT_SEPARATOR,\n CSVWriter.DEFAULT_ESCAPE_CHARACTER,\n CSVWriter.DEFAULT_LINE_END);\n ) {\n csvWriter.writeNext(CSV_ASSAY_TITLE);\n csvWriter.writeNext(CSV_ASSAY_HEADER);\n for (AssayTabDTO assayTabDataReturn : assayTabList) {\n for (ReferenceTabDTO referenceTabDTO : referenceTabDTOList) {\n for (StructureDetailsTabDTO structureDetailsTabDTO : structureDetailsTabDTOList) {\n String[] assayData = new String[]{\n assayTabDataReturn.getAssayId() + \"\",\n referenceTabDTO.getRefId() + \"\",\n structureDetailsTabDTO.getGvkId() + \"\",\n assayTabDataReturn.getProtein() + \"\",\n assayTabDataReturn.getStandardName() + \"\",\n assayTabDataReturn.getMutant() + \"\",\n assayTabDataReturn.getWildType() + \"\",\n assayTabDataReturn.getNewResidue() + \"\",\n assayTabDataReturn.getOldResidue() + \"\",\n assayTabDataReturn.getOperation() + \"\",\n assayTabDataReturn.getAssayPosition() + \"\",\n assayTabDataReturn.getTargetProfile() + \"\",\n assayTabDataReturn.getP_s_m() + \"\",\n assayTabDataReturn.getBuffer() + \"\",\n assayTabDataReturn.getBufferConc() + \"\",\n assayTabDataReturn.getBufferPrefix() + \"\",\n assayTabDataReturn.getBufferUom() + \"\",\n assayTabDataReturn.getSubstrate() + \"\",\n assayTabDataReturn.getSubstrateConc() + \"\",\n assayTabDataReturn.getSubstratePrefix() + \"\",\n assayTabDataReturn.getSubstrateUom() + \"\",\n assayTabDataReturn.getRadioLigand() + \"\",\n assayTabDataReturn.getRadioLigandPrefix() + \"\",\n assayTabDataReturn.getRadioLigandUom() + \"\",\n assayTabDataReturn.getRadioLigandConc() + \"\",\n assayTabDataReturn.getCoAdministered() + \"\",\n assayTabDataReturn.getCoAdministeredPrefix() + \"\",\n assayTabDataReturn.getCoAdministeredUom() + \"\",\n assayTabDataReturn.getCoAdministeredValue() + \"\",\n assayTabDataReturn.getInPresenceOf() + \"\",\n assayTabDataReturn.getInPresenceOfConc() + \"\",\n assayTabDataReturn.getInPresenceOfPrefix() + \"\",\n assayTabDataReturn.getInPresenceOfUom() + \"\",\n assayTabDataReturn.getIncubationTime() + \"\",\n assayTabDataReturn.getIncubationPrefix() + \"\",\n assayTabDataReturn.getIncubationUom() + \"\",\n assayTabDataReturn.getTemperature() + \"\",\n assayTabDataReturn.getTemperaturePrefix() + \"\",\n assayTabDataReturn.getTemperatureUom() + \"\",\n assayTabDataReturn.getPhPrefix() + \"\",\n assayTabDataReturn.getPh() + \"\"\n\n };\n\n csvWriter.writeNext(assayData);\n }\n }\n\n }\n\n\n } catch (Exception e) {\n System.out.println(\"Exception occured into the AssayTab Data Export\" + e.getMessage());\n e.printStackTrace();\n }\n\n }",
"public static void writeIntoMappingCSV(String fileName, MappingClass newRecords, String[] header) throws Exception {\n logger.info(\"Start executing writeIntoMappingCSV method !!!\");\n\n FileWriter fileWriter = null;\n CSVPrinter csvFilePrinter = null;\n List mappingFileRecords = new ArrayList();\n\n CSVFormat csvFileFormat = CSVFormat.DEFAULT.withHeader(header);\n try {\n fileWriter = new FileWriter(fileName);\n csvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n for (Map.Entry<String, Integer> entry : newRecords.entrySet()) {\n mappingFileRecords.clear();\n mappingFileRecords.add(entry.getKey());\n mappingFileRecords.add(entry.getValue());\n csvFilePrinter.printRecord(mappingFileRecords);\n }\n\n logger.info(\"Successfully : writeIntoMappingCSV CSV file was created successfully !!!\");\n } finally {\n try {\n fileWriter.flush();\n fileWriter.close();\n csvFilePrinter.close();\n } finally {\n logger.warn(\"End executing writeIntoMappingCSV method !!!\");\n }\n }\n }",
"public static void writeCsvFile(List<Person> currentState, Path exportPath) {\n requireNonNull(currentState);\n File dir = new File(exportPath.toString());\n dir.mkdirs();\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy HH-mm-ss\");\n Date date = new Date();\n String exportUniqueName = \"export[\" + dateFormat.format(date) + \"].csv\";\n Path exportFilePath = Paths.get(exportPath.toString() , exportUniqueName);\n try {\n FileUtil.createIfMissing(exportFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n try {\n serializeObjectToCsvFile(exportFilePath, currentState);\n } catch (IOException e) {\n logger.warning(\"Error writing from CsvFile file \" + exportFilePath);\n }\n }",
"public void writecsv(String path, String username, String ccyCode, String usernameData, String ccyCodeData) {\r\n\t\tString csv = path;\r\n\t\tCSVWriter writer = null;\r\n\t\ttry {\r\n\t\t\twriter = new CSVWriter(new FileWriter(csv));\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\tList<String[]> data = new ArrayList<String[]>();\r\n\t\tdata.add(new String[] {username,ccyCode});\r\n\t\tdata.add(new String[] {usernameData,ccyCodeData});\r\n\r\n\t\twriter.writeAll(data);\r\n\t\ttry {\r\n\t\t\twriter.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Test\n public void testOutputCSV() throws Throwable {\n testOutputCSV(false);\n }",
"public void writeToCsv()\r\n {\r\n //listeye urunler eklendiginde cagrılacak (Products.csv)\r\n PrintWriter pWrite = null;\r\n try {\r\n pWrite = new PrintWriter(new File(\"Products.csv\"));\r\n }\r\n catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n StringBuilder sBuilder = new StringBuilder();\r\n for (Product theProduct : allProducts ) {\r\n if (theProduct.getSize() == null && theProduct.getGender()!= null){\r\n sBuilder.append(theProduct.getName() + \";\" + theProduct.getPrice() + \";\"\r\n + theProduct.getGender() + \";\" + theProduct.getTag() + \";\"\r\n + theProduct.getContent() + \";\" + theProduct.getNumberOfProduct() + \"\\n\");\r\n }\r\n else if(theProduct.getGender() == null && theProduct.getSize() == null){\r\n sBuilder.append( theProduct.getName() + \";\" + theProduct.getPrice() + \";\"\r\n + theProduct.getTag() + \";\"+\r\n theProduct.getContent() + \";\" + theProduct.getNumberOfProduct() + \"\\n\");\r\n }\r\n else {\r\n sBuilder.append( theProduct.getName() + \";\" + theProduct.getPrice() + \";\" + theProduct.getSize() + \";\"\r\n + (theProduct).getGender() + \";\" + theProduct.getTag() + \";\"\r\n + theProduct.getContent() + \";\" + theProduct.getNumberOfProduct() + \"\\n\");\r\n }\r\n\r\n }\r\n pWrite.write(sBuilder.toString());\r\n pWrite.flush();\r\n pWrite.close();\r\n }",
"private void saveToFile(Agent agent, String _login)\n {\n File file = new File(_login + \".csv\");\n FileWriter fw;\n BufferedWriter bw;\n try {\n fw = new FileWriter(file, false);\n bw = new BufferedWriter (fw);\n String csvData = agent.getCSVData();\n bw.write(csvData);\n bw.close();\n fw.close();\n }\n catch(IOException ioEx) {\n JOptionPane.showMessageDialog(null, ioEx.getMessage());\n }\n }",
"public static FileWriter getWriter() {\n return new CsvFileWriter();\n }",
"@Test\n public void testOutputCsvStream() throws Throwable {\n testOutputCSV(true);\n }",
"public static void writeNewCSV(Calendar cal) {\n\n try {\n\n BufferedWriter bw = null;\n\n String fileString = \"P5Calendar.csv\";\n String fileLine = \"\";\n\n FileWriter fw = new FileWriter(fileString, true);\n bw = new BufferedWriter(fw);\n\n ArrayList<Activity> activities = cal.getActivities();\n\n int lastElement = activities.size();\n Activity activity = activities.get(lastElement - 1);\n bw.write(activity.Year + \",\" + activity.Month + \",\" + activity.Name + \",\" + activity.Roles.name + \" \" + \"(\"\n + activity.Roles.subRole + \")\" + \"\\n\");\n\n bw.close();\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n }",
"public static void writeCSV(Calendar cal) {\n\n try {\n\n BufferedWriter bw = null;\n\n String fileString = \"P5Calendar.csv\";\n String fileLine = \"\";\n\n FileWriter fw = new FileWriter(fileString, false);\n bw = new BufferedWriter(fw);\n\n ArrayList<Activity> activities = cal.getActivities();\n\n for (int j = 0; j < 1; j++) {\n bw.write(\"Year\" + \",\" + \"Month\" + \",\" + \"Activity\" + \",\" + \"Role\" + \"\\n\");\n }\n\n for (int i = 0; i < activities.size(); i++) {\n Activity activity = activities.get(i);\n bw.append(activity.Year + \",\" + activity.Month + \",\" + activity.Name + \",\" + activity.Roles);\n }\n\n bw.close();\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n\n }",
"public static void writeDataToCsvUsingStringArrayForActivity(PrintWriter writer, List<ActivityTabDTO> activityTabList, List<AssayTabDTO> assayTabDTOList, List<ReferenceTabDTO> referenceTabDTOList, List<StructureDetailsTabDTO> structureDetailsTabDTOList) {\n\n String[] CSV_ACTIVITY_TITLE = {\"Activity Details\"};\n String[] CSV_ACTIVITY_NEWLINE = {\"\"};\n\n String[] CSV_ACTIVITY_HEADER = {\"ACT_ID\", \"ASSAY_ID\", \"REF_ID\", \"GVK_ID\", \"ACTIVITY_TYPE\", \"STD_ACTIVITY_TYPE\", \"ACTIVITY_UOM\", \"STANDARD_UOM\", \"ACTIVITY_PREFIX\", \"STD_ACT_PREFIX\", \"ACTIVITY_VALUE\", \"SD\", \"ACTIVITY_REMARKS\", \"MICRO_MOLARVALUE\", \"ASSAY_TYPE\", \"ENZYME_CELL_ASSAY\", \"COMMON_NAME\", \"ACTIVITY_MECHANISM\", \"SOURCE\", \"CELLS_CELLLINE_ORGAN\", \"MEASURED\", \"ROA\", \"ASSAY_METHOD_NAME\", \"DOSE\", \"DOSE_UOM\", \"DOSE_PREFIX\", \"ACTIVITY\", \"PARAMETER\", \"REFERENCE\"};\n\n try (\n CSVWriter csvWriter = new CSVWriter(writer,\n CSVWriter.DEFAULT_SEPARATOR,\n CSVWriter.DEFAULT_ESCAPE_CHARACTER,\n CSVWriter.DEFAULT_LINE_END);\n ) {\n csvWriter.writeNext(CSV_ACTIVITY_TITLE);\n csvWriter.writeNext(CSV_ACTIVITY_HEADER);\n if (Objects.nonNull(activityTabList)) {\n for (ActivityTabDTO activityTabDataReturn : activityTabList) {\n for (AssayTabDTO assayTabDTO : assayTabDTOList) {\n for (ReferenceTabDTO referenceTabDTO : referenceTabDTOList) {\n for (StructureDetailsTabDTO reStructureDetailsTabDTO : structureDetailsTabDTOList) {\n String[] activityData = new String[]{\n activityTabDataReturn.getActId() + \"\",\n assayTabDTO.getAssayId() + \"\",\n referenceTabDTO.getRefId() + \"\",\n reStructureDetailsTabDTO.getGvkId() + \"\",\n activityTabDataReturn.getActivityType(),\n activityTabDataReturn.getStdActivityType() + \"\",\n activityTabDataReturn.getActivityUom() + \"\",\n activityTabDataReturn.getStandardUom() + \"\",\n activityTabDataReturn.getActivityPrefix() + \"\",\n activityTabDataReturn.getStdActPrefix() + \"\",\n activityTabDataReturn.getActivityValue() + \"\",\n activityTabDataReturn.getSd() + \"\",\n activityTabDataReturn.getActivityRemarks() + \"\",\n activityTabDataReturn.getMicroMolarvalue() + \"\",\n activityTabDataReturn.getAssayType() + \"\",\n activityTabDataReturn.getEnzymeCellAssay() + \"\",\n activityTabDataReturn.getCommonName() + \"\",\n activityTabDataReturn.getActivityMechanism() + \"\",\n activityTabDataReturn.getSource() + \"\",\n activityTabDataReturn.getCellsCelllineOrgan() + \"\",\n activityTabDataReturn.getMeasured() + \"\",\n activityTabDataReturn.getRoa() + \"\",\n activityTabDataReturn.getAssayMethodName() + \"\",\n activityTabDataReturn.getDose() + \"\",\n activityTabDataReturn.getDoseUom() + \"\",\n activityTabDataReturn.getDosePrefix() + \"\",\n activityTabDataReturn.getActivity() + \"\",\n activityTabDataReturn.getParameter() + \"\",\n activityTabDataReturn.getReference() + \"\",\n\n };\n\n csvWriter.writeNext(activityData);\n }\n }\n }\n }\n csvWriter.writeNext(CSV_ACTIVITY_NEWLINE);\n csvWriter.writeNext(CSV_ACTIVITY_NEWLINE);\n }\n\n\n } catch (Exception e) {\n System.out.println(\"Exception occured into the ActivityTab Data Export\" + e.getMessage());\n e.printStackTrace();\n }\n\n }",
"public CSVHarvester() {\r\n super(\"csv\", \"CSV Harvester\");\r\n }",
"public static String writeToFile(String csvData, String exportDirectory){\n String writeToFileOutput = \"\";\n try {\n String currentTimeStamp = new SimpleDateFormat(\"yyyy-MM-dd_HHmmss\").format(new java.util.Date());\n BufferedWriter writer = new BufferedWriter(new FileWriter(exportDirectory + \"JiraIssues_\" + currentTimeStamp + \".csv\"));\n writer.write(csvData);\n writer.close();\n \n } catch (Exception ex) {\n System.out.println(\"Error in writeToFile: \" + ex.getMessage());\n writeToFileOutput = \"ERROR\";\n }\n System.out.println(\"\\nwriteToFileOutput:\");\n System.out.println(writeToFileOutput);\n return writeToFileOutput;\n }",
"public void createCsvFile(String filePath, String []courses) {\n\t\tLogger.info(\"Creating CSV file containing the text: \");\n\t\tfor (int i=0;i<courses.length;i++){\n\t\t\tLogger.info(courses[i]);\n\t\t}\n\t\tFileWriter os;\n\t\ttry {\n\t\t\tos = new FileWriter(filePath);\n\t\t\tfor (int i=0;i<(courses.length)-1;i++){\n\t\t\t\tos.write(courses[i]);\n\t\t\t\tos.write(System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t\tos.write(courses[(courses.length)-1]);\n\t\t\t//os.write(fileContent2);\n\t\t\tos.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void writeToCSV() {\n final String CSV_SEPARATOR = \",\";\n final String QUOTE = \"\\\"\";\n if (!Crawler.getKeyWordsHits().isEmpty()) {\n try (BufferedWriter bufferedWriter =\n new BufferedWriter(\n new OutputStreamWriter(\n new FileOutputStream(\"results.csv\", true), StandardCharsets.UTF_8))) {\n\n Crawler.getKeyWordsHits().forEach((keyWord, hitsNumber) -> {\n String oneLine = QUOTE + keyWord + QUOTE +\n CSV_SEPARATOR +\n hitsNumber;\n try {\n bufferedWriter.write(oneLine);\n bufferedWriter.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n String lastLine = QUOTE + Crawler.getUrl() + QUOTE + CSV_SEPARATOR + Crawler.getTotalHits();\n bufferedWriter.write(lastLine);\n bufferedWriter.newLine();\n bufferedWriter.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n Crawler.setKeyWordsHits(new HashMap<>());\n Crawler.setTotalHits(0);\n }",
"public void writeDataToCsv(String filename , ArrayList<TestDataInstance> inputData) {\n \n String header = \"\";\n \n File outFile = null;\n int dataCount = 0;\n try {\n outFile = new File(filename);\n \n FileWriter fw = new FileWriter(outFile);\n \n BufferedWriter bw = new BufferedWriter(fw);\n \n bw.write(header);\n \n for(TestDataInstance data : inputData) {\n bw.newLine();\n bw.write(data.toSamiamCsvString());\n dataCount++;\n }\n \n System.out.println(\"Written \" + dataCount + \" rows of data to SAMIAM CSV format @ \" + filename);\n \n } catch(Exception e) {\n e.printStackTrace();\n }\n \n }",
"@Test\r\n\tpublic void ExportOrdersInCsv() {\n\t\tdriver.findElement(By.id(\"username\")).sendKeys(\"user01\");\r\n\t\t\r\n\t\t//password\r\n\t\tdriver.findElement(By.id(\"login\")).sendKeys(\"guru99com\");\r\n\t\t\r\n\t\t//Login btn\r\n\t\tdriver.findElement(By.xpath(\"//*[@value='Login']\")).click();\r\n\t\t\r\n\t\t//close the Pop-Up\r\n\t\tdriver.findElement(By.xpath(\"//*[@title='close']\")).click();\r\n\t\t\r\n\t\tWebElement wb=driver.findElement(By.xpath(\"//span[text()='Sales']\"));\r\n\t\t\r\n\t\tActions act=new Actions(driver);\r\n\t\tact.moveToElement(wb).perform();\r\n\t\t\r\n\t\t//click on submenu link\r\n\t\tdriver.findElement(By.xpath(\"//span[text()='Orders']\")).click();\r\n\t\t\r\n\t\t/*FirefoxProfile profile=new FirefoxProfile();\r\n\t\tprofile.setPreference(\"browser.download.folderList\", 0);\r\n\t\tprofile.setPreference(\"browser.helperApps.neverAsk.saveToDisk\",\"text/csv\");*/\r\n\t\t\r\n\t\t//click on 'EXPORT' btn\r\n\t\tdriver.findElement(By.xpath(\"//*[@title='Export']\")).click();\r\n\t\t\r\n\t\t\r\n\t}",
"@Test\n public void testCSVHandlerForEmployees() throws IOException, URISyntaxException {\n val csvHandler = TestInjector.create(CSVHandler.class);\n // todo clean this up but also keep it working on windows\n val input = Paths.get(getClass().getResource(\"PrototypeEmployees.csv\").toURI()).toString();\n val output = \"build/Employees.csv\";\n csvHandler.importEmployees(input);\n csvHandler.exportEmployees(output);\n val inputLines = Files.readAllLines(Paths.get(input));\n val outputLines = Files.readAllLines(Paths.get(output));\n assertEquals(inputLines.size(), outputLines.size());\n assertEquals(inputLines.get(0), outputLines.get(0)); // make sure header lines are the same\n assertTrue(outputLines.containsAll(inputLines));\n assertTrue(inputLines.containsAll(outputLines));\n }",
"public void writeCSVFile(File file, String data) throws Exception{\n BufferedWriter bufferWritter = new BufferedWriter(new FileWriter(file));\n bufferWritter.write(data);\n bufferWritter.close();\n }",
"@Then(\"^the results should be displayed and saved in csv file$\")\n\tpublic void the_results_should_be_displayed_and_saved_in_csv_file() throws Throwable {\n\t\thomepage.waitForPageToLoad(homepage.getTitle());\n\t\thomepage.waitForVisibility(homepage.searchResults);\n\t\tList<WebElement> allSearchResults = homepage.findElements(homepage.searchResults);\n\n\t\ttry{\n\n\t\t\tfile = new File(csvFilePath);\n\n\t\t\tif (!file.exists())\n\t\t\t\tfile.createNewFile();\n\t\t\tpw = new PrintWriter(new File(csvFilePath));\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\n\t\t\t//for header\n\t\t\tsb.append(\"Title\");\n\t\t\tsb.append(\" , \");\n\t\t\tsb.append(\"Link\");\n\t\t\tsb.append('\\n');\n\n\t\t\t// writing the required data to CSV file\n\t\t\tfor (WebElement result : allSearchResults){\n\n\t\t\t\tsb.append(result.getText());\n\t\t\t\tsb.append(\" , \");\n\t\t\t\tsb.append(result.getAttribute(\"href\"));\n\t\t\t\tsb.append('\\n');\n\t\t\t}\n\n\t\t\tpw.write(sb.toString());\n\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Error while writing to csv file !!!\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpw.flush();\n\t\t\t\tpw.close();\n\t\t\t} catch (Exception e) {\n\n\t\t\t\tSystem.out.println(\"Error while flushing/closing fileWriter !!!\");\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void export(List<User> listUsers, HttpServletResponse response) throws IOException {\n\t\t/*\n\t\t * NB commented code moved to setResponseHeader method in AbstractExporter class and modified\n\t\t * \n\t\t * // the code below is for generating the file name for the csv file //using\n\t\t * time stamp\n\t\t * \n\t\t * //creates date format object DateFormat dateFormatter = new\n\t\t * SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\");\n\t\t * \n\t\t * //creates time stamp that format the current date and time String timestamp =\n\t\t * dateFormatter.format(new Date());\n\t\t * \n\t\t * \n\t\t * // users_ can be any name of your choice //creates file name. String fileName\n\t\t * = \"users_\" + timestamp + \".csv\";\n\t\t * \n\t\t * //set information for HttpServletResponse for the browser to download the\n\t\t * file // as csv file response.setContentType(\"text/csv\");\n\t\t * \n\t\t * //header for the file to be downloaded. String headerKey =\n\t\t * \"Content-Disposition\"; String headerValue = \"attachment; filename=\" +\n\t\t * fileName; response.setHeader(headerKey, headerValue);\n\t\t * \n\t\t */\n\t\tsuper.setResponseHeader(response,\"text/csv\",\".csv\",\"users_\");\n\t\t\n\t\t//creates csv writer from csv library\n\t\tICsvBeanWriter csvWriter = new CsvBeanWriter(response.getWriter(),\n\t\t\t\tCsvPreference.STANDARD_PREFERENCE);\n\t\t\n\t\t//header line of the csv file\n\t\tString[] csvHeader = {\"User ID\",\"E-mail\",\"First Name\",\"Last Name\",\"Role\",\"Enabled\"};\n\t\t\n\t\t//map fields for the actual data to be exported\n\t\t//this field mapping must correspond with the class entity variable names\n\t\tString[] fieldMapping = {\"id\",\"email\",\"firstName\",\"lastName\",\"roles\",\"enabled\"};\n\t\t\n\t\t//writes the header\n\t\tcsvWriter.writeHeader(csvHeader);\n\t\t\n\t\t//iterate through each of the list of users\n\t\tfor(User user : listUsers) {\n\t\t\tcsvWriter.write(user, fieldMapping);\n\t\t}\n\t\t\n\t\t//close the writer\n\t\tcsvWriter.close();\n\t\t\n\t}",
"private Result outputCsv(Request request, Entry entry) throws Exception {\r\n Result result = getCsvResult(request, entry);\r\n result.setReturnFilename(\r\n IOUtil.stripExtension(getStorageManager().getFileTail(entry))\r\n + \".csv\");\r\n result.setMimeType(\"text/csv\");\r\n\r\n return result;\r\n }",
"private void exportFiles()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\t\t\n\t\t// Report String\n\t\t//----------------\n\t\tString reportString = \"Date,Location Latitude, Location Longitude,Vehicle,Description\\n\";\t\n\t\t\n\t\tStringBuilder reportBuilder = new StringBuilder();\n\t\treportBuilder.append(reportString);\n\t\t\n\t\tString objectString = \"\"+ \n\t\t\t\tincident.getDate()+\",\" +\n\t\t\t\tincident.getLatitude() + \",\" +\n\t\t\t\tincident.getLongitude()+\",\" +\n\t\t\t\tincident.getVehicleReg()+\",\" +\n\t\t\t\tincident.getDescription()+\",\" + \"\\n\";\n\t\t\n\t\treportBuilder.append(objectString);\n\t\t\n\t\t// Witnesses String\n\t\t//----------------\n\t\tString witnessString = \"witnessName,witnessEmail,witnessNumber,witnessStatement\\n\";\n\t\t\n\t\tStringBuilder witnessesBuilder = new StringBuilder();\n\t\twitnessesBuilder.append(witnessString);\n\t\t\n\t\tfor(int i=0; i<incident.getWitnesses().size(); i++)\n\t\t{\n\t\t\tobjectString = \"\"+ \n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessName\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessEmail\") + \",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessNumber\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessStatement\")+\",\" + \"\\n\";\n\t\t\t\n\t\t\twitnessesBuilder.append(objectString);\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Create file\n\t\t//===========================================\n\t\t// Incident Report\n\t\t//-------------------------------------------------\n\t\tfinal File reportFile = new File(getFilesDir() + \"/\" + \"incident_report.csv\");\n\t\treportFile.setReadable(true,false);\n\t\t\n\t\tif( reportFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"incident_report.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(reportBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Witnesses file\n\t\t//-------------------------------------------------\n\t\tfinal File witnessesFile = new File(getFilesDir() + \"/\" + \"witnesses.csv\");\n\t\twitnessesFile.setReadable(true,false);\n\t\t\n\t\tif( witnessesFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"witnesses.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(witnessesBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Media files\n\t\t//-------------------------------------------------\t\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(),new GetCallback<ParseObject>() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void done(final ParseObject parseIncident, ParseException e) \n\t\t\t{\n\t\t\t\tif(e == null)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t// Get number of photos attached\n\t\t\t\t\tParseQuery<ParseObject> queryPhotos = parseIncident.getRelation(\"incidentPhotos\").getQuery();\n\t\t\t\t\tqueryPhotos.findInBackground(new FindCallback<ParseObject>()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> parsePhotos, ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tArrayList<byte[]> bytes = new ArrayList<byte[]>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i=0; i<parsePhotos.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Get photo from the parse\n\t\t\t\t\t\t\t\tParseFile photo = (ParseFile) parsePhotos.get(i).get(\"photoFile\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tbytes.add(photo.getData());\n\t\t\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tphotoFiles = AssetsUtilities.saveIncidentPhoto(ReviewReportActivity.this, bytes);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Video\n\t\t\t\t\t\t\tParseFile parseVideo = (ParseFile) parseIncident.get(\"incidentVideo\");\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(parseVideo != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tparseVideo.getDataInBackground(new GetDataCallback()\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void done(byte[] data, ParseException e) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(e == null)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t// Save file\n\t\t\t\t\t\t\t\t\t\t\tvideoFile = AssetsUtilities.saveIncidentVideo(ReviewReportActivity.this,data);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\n\t\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\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void save() {\n CSVWriter csvWriter = new CSVWriter();\n csvWriter.writeToTalks(\"phase1/src/Resources/Talks.csv\", this.getTalkManager()); //Not implemented yet\n }",
"public void writeCsvFiles(String trainCsvFile, String testCsvFile) throws IOException {\n WekaDataset dataset = new WekaDataset(trainInstances, testInstances);\n final List<WekaDataset.AttributeHeader> attributeHeaders = dataset.getHeaders();\n final List<String> headers = attributeHeaders.stream().map(e -> e.getAttribute().getName()).collect(Collectors.toList());\n final List<List<String>> trainData = dataset.getTrainData();\n final List<List<String>> testData = dataset.getTestData();\n writeCsvFile(trainCsvFile, headers, trainData);\n writeCsvFile(testCsvFile, headers, testData);\n }",
"public static void writeIntoCSVFromTable() {\n try {\n backItUp(ROOT);\n backItUp(ROOT + Calendar.getInstance().getTime() + \"/\");\n } catch (Throwable e) {\n itsLogger.error(e.getMessage(), e);\n }\n\n }",
"public void generateCSV(numList l) {\r\n\t\tFile file = new File(\"E:\\\\altruism results/\" + filename + \".csv\"); //the storage path of the csv file\r\n\t\ttry {\r\n\t\t\tif (file.exists() == false) {\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t}\r\n\t\t\tFileWriter fw = new FileWriter(file);\r\n\t\t\tBufferedWriter writer = new BufferedWriter(fw);\r\n\t\t\twriter.write(\"altruism,selfish\\r\\n\");\r\n\t\t\tfor (int i = 0; i < numList.TIME; i++) {\r\n\t\t\t\twriter.write(l.aList[i] + \",\");\r\n\t\t\t\twriter.write(l.sList[i] + \"\\r\\n\");\r\n\t\t\t}\r\n\r\n\t\t\twriter.flush();\r\n\t\t\twriter.close();\r\n\t\t\tfw.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n\t@Transactional\n\tpublic void exportCSV(User user, long id, Writer writer) throws IOException\n\t{\n\t\t// uses the Super CSV API to generate CSV data from the model data\n\t\tICsvBeanWriter csvWriter = new CsvBeanWriter(writer,\n\t\t\tCsvPreference.STANDARD_PREFERENCE);\n\n\t\tString[] headers = getHeaders();\n\t\tcsvWriter.writeHeader(headers);\n\n\t\tOptional<Corpus> corpusFromUser = collect.getCorpusFromUser(user,id);\n\t\tif (corpusFromUser.isPresent())\n\t\t{\n\t\t\tfor (Tweet aBook : corpusFromUser.get().getTweets())\n\t\t\t{\n\t\t\t\tcsvWriter.write(aBook,headers);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tthrow new NotFoundException();\n\n\t\tcsvWriter.close();\n\t}",
"public void writeDataToCSV(Context context, String competition) throws IOException {\n\n fileExists = false;\n\n String FILE_PATH = \"Scouting_Data_\" + competition + \".csv\";\n File file = new File(context.getExternalFilesDir(\n Environment.DIRECTORY_DOCUMENTS), FILE_PATH);\n\n// if (!file.exists()) {\n// FileWriter fw = new FileWriter(file);\n// BufferedWriter bw = new BufferedWriter(fw);\n// bw.write(str);\n// bw.close();\n// }\n//\n// else {\n// FileOutputStream fileinput = new FileOutputStream(file, true);\n// PrintStream printstream = new PrintStream(fileinput);\n// printstream.print(\"\\n\" + str);\n// fileinput.close();\n// fileExists = true;\n// }\n }",
"public interface ICsvListWriter extends ICsvWriter {\n\t\n\t/**\n\t * Writes a List of Objects as columns of a CSV file. <tt>toString()</tt> will be called on each element prior to\n\t * writing.\n\t * \n\t * @param columns\n\t * the columns to write\n\t * @throws IllegalArgumentException\n\t * if columns.size == 0\n\t * @throws IOException\n\t * If an I/O error occurs\n\t * @throws NullPointerException\n\t * if columns is null\n\t * @throws SuperCsvException\n\t * if there was a general exception while writing\n\t * @since 1.0\n\t */\n\tvoid write(List<?> columns) throws IOException;\n\t\n\t/**\n\t * Writes a List of Objects as columns of a CSV file, performing any necessary processing beforehand.\n\t * <tt>toString()</tt> will be called on each (processed) element prior to writing.\n\t * \n\t * @param columns\n\t * the columns to write\n\t * @param processors\n\t * an array of CellProcessors used to further process data before it is written (each element in the\n\t * processors array corresponds with a CSV column - the number of processors should match the number of\n\t * columns). A <tt>null</tt> entry indicates no further processing is required (the value returned by\n\t * toString() will be written as the column value).\n\t * @throws IllegalArgumentException\n\t * if columns.size == 0\n\t * @throws IOException\n\t * If an I/O error occurs\n\t * @throws NullPointerException\n\t * if columns or processors is null\n\t * @throws SuperCsvConstraintViolationException\n\t * if a CellProcessor constraint failed\n\t * @throws SuperCsvException\n\t * if there was a general exception while writing/processing\n\t * @since 1.0\n\t */\n\tvoid write(List<?> columns, CellProcessor[] processors) throws IOException;\n\t\n\t/**\n\t * Writes a array of Objects as columns of a CSV file. <tt>toString()</tt> will be called on each element prior to\n\t * writing.\n\t * \n\t * @param columns\n\t * the columns to write\n\t * @throws IllegalArgumentException\n\t * if columns.length == 0\n\t * @throws IOException\n\t * If an I/O error occurs\n\t * @throws NullPointerException\n\t * if columns is null\n\t * @throws SuperCsvException\n\t * if there was a general exception while writing\n\t * @since 1.0\n\t */\n\tvoid write(Object... columns) throws IOException;\n\t\n\t/**\n\t * Writes an array of strings as columns of a CSV file.\n\t * \n\t * @param columns\n\t * the columns to write\n\t * @throws IllegalArgumentException\n\t * if columns.length == 0\n\t * @throws IOException\n\t * If an I/O error occurs\n\t * @throws NullPointerException\n\t * if columns is null\n\t * @throws SuperCsvException\n\t * if there was a general exception while writing\n\t * @since 1.0\n\t */\n\tvoid write(String... columns) throws IOException;\n\t\n}",
"@Override\n\tpublic void configuration(String csv) {\n\n\t}",
"@Test\r\n\tpublic void generateFile() {\n\t\tfor (int i = 1; i <= 5; i++) {\r\n\t\t\t// String filePath = \"C://Users//AtifKhan//Desktop//sample-\" + i +\r\n\t\t\t// \".csv\";\r\n\t\t\tString filePath = \"C://Users//olcay tarazan//Desktop//sample-\" + i + \".csv\";\r\n\t\t\tint numberOfDataLines = 400;\r\n\t\t\ttry {\r\n\t\t\t\tgenerateCsvFile(filePath, numberOfDataLines);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"File generated : sample-\" + i + \".csv \");\r\n\t\t}\r\n\t}",
"public void outputToCSV() throws FileNotFoundException, UnsupportedEncodingException {\n PrintWriter writer = new PrintWriter(\"test_data.csv\", \"UTF-8\");\n\n //For every object in array list, print surname, initials and extension, separated by commmas\n for (int i=0; i<toArrayList().size(); i++) {\n writer.println(toArrayList().get(i).getSurname() + \",\" + toArrayList().get(i).getInitials() + \",\" +\n toArrayList().get(i).getExtension());\n }\n writer.close();\n }",
"public static File createExtraColsFile(ClinicalCode parser, EmisCsvHelper csvHelper) throws Exception {\n\n //use the CSV helper thread pool to perform multiple lookups in parallel\n List<Long> codeIds = new ArrayList<>();\n Map<Long, String> hmAdjustedCodes = new ConcurrentHashMap<>();\n Map<Long, Integer> hmIsEmisCodes = new ConcurrentHashMap<>(); //use int rather than boolean so we end up with 1 or 0 not \"true\" or \"false\"\n Map<Long, String> hmSnomedTerms = new ConcurrentHashMap<>();\n\n try {\n\n Task nextTask = new Task(hmAdjustedCodes, hmIsEmisCodes, hmSnomedTerms);\n\n while (parser.nextRecord()) {\n CsvCell codeIdCell = parser.getCodeId();\n CsvCell readCodeCell = parser.getReadTermId();\n CsvCell snomedConceptIdCell = parser.getSnomedCTConceptId();\n\n long codeId = codeIdCell.getLong().longValue();\n String readCode = readCodeCell.getString();\n Long snomedConceptId = snomedConceptIdCell.getLong();\n\n codeIds.add(new Long(codeId));\n\n //perform the lookups in the thread pool\n nextTask.addRecord(codeId, readCode, snomedConceptId);\n if (nextTask.isFull()) {\n csvHelper.submitToThreadPool(nextTask);\n nextTask = new Task(hmAdjustedCodes, hmIsEmisCodes, hmSnomedTerms);\n }\n }\n\n //finish off the current task\n if (!nextTask.isEmpty()) {\n csvHelper.submitToThreadPool(nextTask);\n }\n\n } finally {\n csvHelper.waitUntilThreadPoolIsEmpty();\n }\n\n //then write out the results to file\n File tempDir = FileHelper.getTempDir();\n File subTempDir = new File(tempDir, UUID.randomUUID().toString());\n if (!subTempDir.exists()) {\n boolean createDir = subTempDir.mkdirs();\n if (!createDir) {\n throw new Exception(\"Failed to create temp dir \" + subTempDir);\n }\n }\n\n File dstFile = new File(subTempDir, \"EmisCodeExtraCols.csv\");\n\n FileOutputStream fos = new FileOutputStream(dstFile);\n OutputStreamWriter osw = new OutputStreamWriter(fos);\n BufferedWriter bufferedWriter = new BufferedWriter(osw);\n\n //the Emis records use Windows record separators, so we need to match that otherwise\n //the bulk import routine will fail\n CSVFormat format = EmisCsvToFhirTransformer.CSV_FORMAT\n .withHeader(\"CodeId\", \"AdjustedCode\", \"IsEmisCode\", \"SnomedTerm\")\n .withRecordSeparator(\"\\r\\n\");\n\n CSVPrinter printer = new CSVPrinter(bufferedWriter, format);\n\n for (Long codeId: codeIds) {\n String adjustedCode = hmAdjustedCodes.get(codeId);\n Integer isEmisCode = hmIsEmisCodes.get(codeId);\n String snomedTerm = hmSnomedTerms.get(codeId);\n\n printer.printRecord(codeId, adjustedCode, isEmisCode, snomedTerm);\n }\n\n printer.close();\n\n return dstFile;\n }",
"public static void csvWrite(FileWriter csvWriter, String[] data) {\n try {\n for(int j = 0; j < data.length; j++) {\n if(j < data.length -1) {\n csvWriter.write(data[j] + \", \");\n } else {\n csvWriter.write(data[j] + \"\\n\");\n }\n }\n } catch (IOException e) {\n System.out.println(\"Writing error: \" + e.getMessage());\n }\n }",
"public void exportCsv() throws IOException\n {\n File csvOutputFile = new File(\"datas.csv\");\n try (PrintWriter writer = new PrintWriter(csvOutputFile)) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Temps\");\n sb.append(\",\");\n for (String title : this.getModelLabels())\n {\n sb.append(title);\n sb.append(\",\");\n }\n sb.append(\"\\n\");\n for (int i = 0; i < this.getEtatPopulation().size(); i++)\n {\n sb.append(i);\n sb.append(\",\");\n for (double value : this.getEtatPopulation().get(i))\n {\n sb.append(value);\n sb.append(\",\");\n }\n sb.append(\"\\n\");\n }\n writer.write(sb.toString());\n System.out.println(\"Datas Successfully Exported !\");\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n }\n\n }",
"public void closeCSVStream() {\n\t\ttry {\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void writeCsvHeader(String h1, String h2, String h3,String h4,String h5) throws IOException\r\n {\r\n \t String line = String.format(\"%s,%s,%s,%s,%s\\n\",h1,h2,h3,h4,h5);\r\n \t writer.write(line);\r\n }",
"public void writeCSVtable(String outBuffer) throws IOException\n {\n String csvFile;\n // Create a file chooser\n File currentDir = new File(\"\").getAbsoluteFile();\n final JFileChooser fc = new JFileChooser(currentDir);\n // In response to a button click:\n int returnVal = fc.showSaveDialog(null);\n // open file\n File file = fc.getSelectedFile();\n // obtain filename\n csvFile = file.getName();\n\n // open the file\n fWriter = new FileWriter(csvFile); \n // write ALL the to the file in 1 burst\n fWriter.write(outBuffer); \n // close the file\n fWriter.close();\n }",
"private void startLogFile() {\n try {\n createLogFile();\n // First line of file contains field names\n String [] header = new String [] {\"Job\", \"Step\", \"Total Residents\", \"Domestic\", \"Employed\", \"Student\", \"Rebel\", \"Heard original rumor\", \"Heard new rumor\", \"Run\"};\n dataCSVFile_identity.writeLine(header);\n\n // activity\n String [] header_actions = new String [] {\"Job\",\"Step\",\"total residents\", \"At Home\", \"Work\", \"Searching for Work\",\n \"School\", \"Socialiazing\", \"Church\", \"Getting Water\", \"Rebel\", \"Run\"};\n\n dataCSVFile_action.writeLine(header_actions);\n\n String [] header_network = new String [] {\"Job\", \"Step\", \"node1\", \"node2\", \"weight\"};\n dataCSVFile_network.writeLine(header_network);\n\n String [] header_working = new String [] {\"Job\", \"Step\", \"Business\", \"School\", \"Health Facility\", \"Religious Facility\", \n \"Formal\", \"Informal\", \"Searching\", \"Inactive\", \"Formal at home\", \"Informal at home\", \"Run\"};\n dataCSVFile_working.writeLine(header_working);\n \n String [] header_rebels = new String [] {\"Job\", \"Step\", \"AgeGroup\", \"HHDiscrepancy\", \"Identity\", \"Count\" };\n dataCSVFile_rebels.writeLine(header_rebels);\n\n String[] header_residents = new String [] {\"Job\", \"Step\", \"Resident\", \"Age\", \"Employment status\", \"Laid off\", \"Action\", \n \"Daily water use\", \"Remaining water\", \"Required water\",\n \"Identity\",\"Is initial rebel\", \n \"Heard original rumor\", \"Heard new rumor\", \"Energy\", \"Current Aggression\", \"Aggression Rate\", \"Formal Business Capacity\", \n \"Informal Business Capacity\", \"School Capacity\", \"Has School\", \"Has formal employer\", \"Has informal Employer\", \n \"Formal income\", \"Informal income\", \"Searching income\", \"Inactive income\", \"Household Income\", \"Has electricity\", \"Has sanitation\",\n \"Has water\", \"Household expenditures\", \"Rent cost\", \"Water cost\", \"Electric cost\", \"Sanitation cost\", \n \"Transportation cost\", \"Other cost\", \"Food cost\", \"Discrepancy\", \"Run\", \"Preference\"};\n \n \n dataCSVFile_residents.writeLine(header_residents);\n\n String [] header_degreestats = new String [] {\"Job\", \"Step\", \"max degree\", \"min degree\", \"mean degree\", \"sum degree\", \"mean connections\", \"Run\"};\n dataCSVFile_degreestats.writeLine(header_degreestats);\n\n }\n\n catch (IOException ex) {\n Logger.getLogger(Kibera.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void saveFile()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString newLine = System.getProperty(\"line.separator\");\n\t\t\n\t\tfor(CSVItem cItem : itemList)\n\t\t{\n\t\t\tsb.append(cItem.buildCSVString()).append(newLine);\n\t\t\t\n\t\t}\n\t\tString fileString = sb.toString();\n\t\t\n\t\t File newTextFile = new File(filePath);\n\n FileWriter fw;\n\t\ttry {\n\t\t\tfw = new FileWriter(newTextFile);\n\t\t\t fw.write(fileString);\n\t\t fw.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n\n\t}",
"public void createCSV(ArrayList<String> result, String output){\t\r\n\t\ttry{\r\n\t\t\tFileOutputStream fileOutputStream = new FileOutputStream(output);\r\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream, \"MS949\");\r\n\t\t\tBufferedWriter fw = new BufferedWriter(outputStreamWriter);\r\n\t\t\tfor(String line : result){\r\n\t\t\t\tfw.write(line+\"\\n\");\r\n\t\t\t}\r\n\t\t\tfw.flush();\r\n\t\t\tfw.close();\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static void main(String arr[]) {\n\t\t\n\t\tMap<String,String>map = new LinkedHashMap<String,String>();\n\t\t\n\t\tFileWriter fileWriter = null;\n\t\t\t\t\n\t\ttry {\n\t\t\tfileWriter = new FileWriter(fileName);\n\n\t\t\t//Write the CSV file header\n\t\t\tfileWriter.append(FILE_HEADER.toString());\n\t\t\t\n\t\t\t//Add a new line separator after the header\n\t\t\tfileWriter.append(NEW_LINE_SEPARATOR);\n\t\t\t\n\t\t\t//Write a new student object list to the CSV file\n\t\t\t\n\t\t\tfor(int i = 1; i <500000; i++){\n\t\t\t\t\n\t\t\t\tfileWriter.append(String.valueOf(i));\n\t\t\t\tfileWriter.append(COMMA_DELIMITER);\n\n\t\t\t\tfileWriter.append(\"ABC\"+i);\n\t\t\t\tfileWriter.append(COMMA_DELIMITER);\n\n\t\t\t\tfileWriter.append(\"lastname\"+i);\n\t\t\t\tfileWriter.append(COMMA_DELIMITER);\n\n\t\t\t\tfileWriter.append(\"M\"+i);\n\t\t\t\tfileWriter.append(COMMA_DELIMITER);\n\n\t\t\t\tfileWriter.append(String.valueOf(i));\n\t\t\t\tfileWriter.append(NEW_LINE_SEPARATOR);\n\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"CSV file was created successfully !!!\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in CsvFileWriter !!!\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tfileWriter.flush();\n\t\t\t\tfileWriter.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Error while flushing/closing fileWriter !!!\");\n e.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public static void writeCsvFile(List<City> cities, String filename) {\r\n\tCsvMapper mapper = new CsvMapper();\r\n\tCsvSchema schema = mapper.schemaFor(City.class).withHeader();\r\n\tObjectWriter writer = mapper.writer(schema);\r\n\r\n\ttry {\r\n\t writer.writeValue(new File(filename + \".csv\"), cities); // making separate file for each city\r\n\t System.out.println(\"The results are saved to \" + filename + \".csv\");\r\n\t} catch (JsonGenerationException | JsonMappingException e) {\r\n\t System.out.println(\"Could not write CSV file.\");\r\n\t e.printStackTrace();\r\n\t} catch (IOException e) {\r\n\t System.out.println(\"Could not write CSV file. File I/O problems.\");\r\n\t e.printStackTrace();\r\n\t}\r\n\r\n }",
"private void openCsvDialog(){\n JFileChooser aFileChooser = new JFileChooser();\n aFileChooser.setFileFilter(new MyFileFilterCSV());\n if (lastUsedFileCSV != null){\n aFileChooser.setCurrentDirectory(lastUsedFileCSV.getParentFile());\n aFileChooser.setSelectedFile(lastUsedFileCSV);\n }else{\n File file = new File(aFileChooser.getCurrentDirectory(), dataset.getName()+\".csv\");\n aFileChooser.setSelectedFile(file);\n }\n int r = aFileChooser.showSaveDialog(this);\n if (r == JFileChooser.APPROVE_OPTION){\n setCursor(new Cursor(Cursor.WAIT_CURSOR));\n File file = aFileChooser.getSelectedFile();\n if(!MyUtilities.isCSVFile(file)){\n file = MyUtilities.getCSVFile(file);\n }\n lastUsedFileCSV = file;\n String sep = getCSVSeparator();\n PrintWriter writer = null;\n try{\n writer = new PrintWriter(new BufferedWriter (new OutputStreamWriter(new FileOutputStream(file), \"utf-8\")));\n // header\n String s = \"\";\n for(int j=0; j<dataset.getListDataHeader().length; j++){\n s += dataset.getListDataHeader()[j] == null? \"\" : dataset.getListDataHeader()[j].getValue();\n if(j <dataset.getListDataHeader().length -1)\n s+= sep;\n }\n writer.println(s);\n // data\n Data[][] data = dataset.getData();\n int nbR = dataset.getNbRows();\n int nbC = dataset.getNbCol();\n for(int i=0; i<nbR; i++){\n s = \"\";\n for(int j=0; j<nbC; j++){\n if(data[i][j] != null){\n if(data[i][j].isDoubleValue()){\n if(!Double.isNaN(data[i][j].getDoubleValue()))\n s += NumberFormat.getNumberInstance(getLocale()).format(data[i][j].getDoubleValue());\n }else{\n s += data[i][j].getValue();\n }\n }\n if(j <nbC -1)\n s+= sep;\n }\n writer.println(s);\n }\n //log\n\t\tdataProcessToolPanel.logExportCSV(dataset, file.getPath());\n }catch (IOException e){\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n displayError(new CopexReturn(getBundleString(\"MSG_ERROR_CSV\"), false), getBundleString(\"TITLE_DIALOG_ERROR\"));\n }\n finally{\n if (writer != null)\n try{\n writer.close();\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n }catch (Exception e){\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n displayError(new CopexReturn(getBundleString(\"MSG_ERROR_CSV\"), false), getBundleString(\"TITLE_DIALOG_ERROR\"));\n }\n }\n }\n }",
"private InvoiceCSVHelper() {\n }",
"public static void PrintToCsv() throws Exception {\n\t\tBufferedWriter bw1 = new BufferedWriter(new FileWriter(\"./data/output1.csv\"));\n\t\tBufferedWriter bw2 = new BufferedWriter(new FileWriter(\"./data/output2.csv\"));\n\t\tBufferedWriter bw3 = new BufferedWriter(new FileWriter(\"./data/output3.csv\"));\n\t\tBufferedWriter bw4 = new BufferedWriter(new FileWriter(\"./data/output4.csv\"));\n\t\t\n\t\t//print the name of attributes in Table\n\t\tPrint_attribute(bw1,bw2,bw3,bw4);\n\t\tIterator<String> iter = BugDBConnection.Domain.keySet().iterator();\n\t\ttry{\n\t\t\twhile(iter.hasNext()){\n\t\t\t\tString key = iter.next();\n\t\t\t\tdomain = key.split(\"-\")[0];\n\t\t\t\tproject = key.split(\"-\")[1];\n\n\t\t\t\tFieldSet fieldset = BugDBConnection.Domain.get(key);\n\t\t\t\tPrintQ1(bw1,fieldset.field);\n\t\t\t\tPrintQ2(bw2, fieldset.refield);\n\t\t\t\tPrintQ3(bw3, fieldset.f1, fieldset.f2, fieldset.f3, fieldset.f4);\n\t\t\t\tPrintQ4(bw4, fieldset.avg, fieldset.min, fieldset.max);\n\t\t\t\t\n\t\t\t}\n\t\t\tbw1.close();\n\t\t\tbw2.close();\n\t\t\tbw3.close();\n\t\t\tbw4.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static File createFile(String filename){\n try {\n File outputFile = new File(filename + \".csv\");\n\n //Prevent File Overwrite\n int tmp = 1;\n while (outputFile.exists()){\n outputFile = new File(filename + \".csv\" + \".\" + tmp);\n tmp++;\n }\n\n //Creates File\n outputFile.createNewFile();\n\n return outputFile;\n\n } catch (IOException ex) {\n Logger.getLogger(CSVWriter.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n }",
"public static void writeDataToCsvUsingStringArrayForReference(PrintWriter writer, List<ReferenceTabDTO> referenceTabList) {\n\n String[] CSV_REFERENCE_TITLE = {\"Reference Details\"};\n\n String[] CSV_REFERENCE_HEADER = {\"REF_ID\", \"REF_TYPE\", \"JOURNAL_PATENT_NAME\", \"REFERENCE\", \"YEAR\", \"VOLUME\", \"ISSUE\", \"START_PAGE\", \"END_PAGE\", \"DOI\", \"PUBMED_ID\", \"PATENT_NO\", \"APPLICATION_TYPE\", \"ISSN_NO\", \"TITLE\", \"ABSTRACT\", \"AUTHORS\", \"COMPANY_NAMES\", \"COMPANY_ADDRESSES\"};\n try (\n CSVWriter csvWriter = new CSVWriter(writer,\n CSVWriter.DEFAULT_SEPARATOR,\n CSVWriter.DEFAULT_ESCAPE_CHARACTER,\n CSVWriter.DEFAULT_LINE_END);\n ) {\n csvWriter.writeNext(CSV_REFERENCE_TITLE);\n csvWriter.writeNext(CSV_REFERENCE_HEADER);\n\n for (ReferenceTabDTO referenceTabDataReturn : referenceTabList) {\n String[] referenceData = new String[]{\n referenceTabDataReturn.getRefId() + \"\",\n referenceTabDataReturn.getRefType() + \"\",\n referenceTabDataReturn.getJournalPatentName(),\n referenceTabDataReturn.getReference(),\n referenceTabDataReturn.getYear() + \"\",\n referenceTabDataReturn.getVolume() + \"\",\n referenceTabDataReturn.getIssue() + \"\",\n referenceTabDataReturn.getStartPage() + \"\",\n referenceTabDataReturn.getEndPage() + \"\",\n referenceTabDataReturn.getDoi() + \"\",\n referenceTabDataReturn.getPubmedId() + \"\",\n referenceTabDataReturn.getPatentNo() + \"\",\n referenceTabDataReturn.getApplicationType() + \"\",\n referenceTabDataReturn.getIssnNo() + \"\",\n referenceTabDataReturn.getTitle() + \"\",\n referenceTabDataReturn.getAbstrac(),\n referenceTabDataReturn.getAuthors() + \"\",\n referenceTabDataReturn.getCompanyNames() + \"\",\n referenceTabDataReturn.getCompanyAddresses() + \"\"\n\n };\n csvWriter.writeNext(referenceData);\n }\n\n } catch (Exception e) {\n System.out.println(\"Exception occured into the ReferenceTab Data Export\" + e.getMessage());\n e.printStackTrace();\n }\n\n }",
"public void ExportCSV(Event event) {\n\t\t\ttry {\n\t\t\t\tcsvWriter = new FileWriter(\"Test.csv\",true);\n\t \t csvWriter.append(event.getEvent_name());\n\t \t csvWriter.append(\",\");\n\t\t csvWriter.append(event.getEvent_date());\n\t\t csvWriter.append(\",\");\n\t\t csvWriter.append(\"N/A\");\n\t\t csvWriter.append(\",\");\n\t\t csvWriter.append(event.getEvent_StartTime());\n\t\t csvWriter.append(\",\");\n\t\t csvWriter.append(event.getEvent_EndTime());\n\t\t csvWriter.append(\",\");\n\t\t csvWriter.append(event.getEvent_description());\n\t\t csvWriter.append(\",\");\n\t\t csvWriter.append(\"N/A\");\n\t\t csvWriter.append(\"\\n\");\n\t\t csvWriter.flush();\n\t\t csvWriter.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 }",
"static void saveEdgesInfoToCSV(\r\n ITaxonomy taxonomy,\r\n String strCSVFilename) throws IOException, Exception\r\n {\r\n BufferedWriter writer; // Writer\r\n \r\n String strLine; // Line written\r\n \r\n char sep = ';'; // Separator dield\r\n \r\n // We create a writer for the text file\r\n \r\n writer = new BufferedWriter(new FileWriter(strCSVFilename, false));\r\n \r\n // We write the titles\r\n \r\n strLine = \"Source ID\" + sep\r\n + \"Target ID\" + sep\r\n + \"CondProbability\" + sep\r\n + \"IC weight\" + \"\\n\";\r\n \r\n writer.write(strLine);\r\n \r\n // We write the info for each taxonomy node\r\n \r\n for (IEdge edge: taxonomy.getEdges())\r\n {\r\n // We get the vertx info into a linte\r\n \r\n strLine = getEdgeLine(edge, sep);\r\n \r\n // We write the vertx line\r\n \r\n writer.write(strLine);\r\n }\r\n \r\n // We close the file\r\n \r\n writer.close();\r\n }",
"public static File createNewFile(String filename){\n try {\n File outputFile = new File(filename + \".csv\");\n\n //Creates File\n outputFile.createNewFile();\n\n return outputFile;\n\n } catch (IOException ex) {\n Logger.getLogger(CSVWriter.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n }",
"private void export(){\n //get available number for file name\n int number = getPosition();\n\n //creates the file\n final File file = new File(Environment.getExternalStorageDirectory().getPath() + \"/csv_\" + number + \".csv\");\n\n //creates a output stream and then streams the file to the external storage\n try {\n file.createNewFile();\n FileOutputStream fOut = new FileOutputStream(file);\n OutputStreamWriter myOutWriter = new OutputStreamWriter(fOut);\n myOutWriter.append(csvFile.toString());\n\n //closes the writer and stream\n\n myOutWriter.close();\n\n fOut.flush();\n fOut.close();\n\n Toast.makeText(this, \"CSV created\", Toast.LENGTH_LONG).show();\n\n Intent intentShareFile = new Intent(Intent.ACTION_SEND);\n\n //opens the chooser pop-up to choose share function\n if(file.exists()) {\n intentShareFile.setType(\"text/*\");\n intentShareFile.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file));\n\n intentShareFile.putExtra(Intent.EXTRA_SUBJECT,\"CSV\");\n intentShareFile.putExtra(Intent.EXTRA_TEXT, \"The exported CSV File\");\n\n StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();\n StrictMode.setVmPolicy(builder.build());\n\n startActivity(Intent.createChooser(intentShareFile, \"Share File\"));\n }\n } catch (IOException e) {\n e.printStackTrace();\n Log.d(\"csvError\", e.getMessage());\n }\n }",
"public static void writeDataToFlatFileUsingStringArrayForReference(PrintWriter printWriter, String directory) {\n\n try {\n\n String home = System.getProperty(\"user.home\");\n System.out.println(\"file path test\" + home);\n\n String dirPath = home + \"\\\\Downloads\\\\\";\n\n File directoryFile = new File(dirPath);\n\n File[] fList = directoryFile.listFiles();\n\n String[] row = null;\n for (File file : fList) {\n if (file.isFile()) {\n if (file.getName().startsWith(\"export\") && file.getName().endsWith(\".csv\")) {\n System.out.println(\"all file names\" + file.getName());\n\n CSVReader csvReader = new CSVReader(new FileReader(dirPath + file.getName()));\n\n while ((row = csvReader.readNext()) != null) {\n\n for (String cell : row) {\n\n printWriter.write(cell.replaceAll(\"Activity Details\", \"\").replaceAll(\"Assay Details\", \"\").replaceAll(\"Structure Details\", \"\").replaceAll(\"Reference Details\", \"\") + \"\\t\");\n }\n printWriter.println();\n System.out.println();\n }\n csvReader.close();\n }\n }\n\n }\n\n } catch (FileNotFoundException exception) {\n System.out.println(\"Exception occured in FlatFile Service File Not Found \" + exception.getMessage());\n } catch (Exception e) {\n System.out.println(\"Exception occured in FlatFile Service \" + e.getMessage());\n }\n\n }",
"public void tester() {\n FileResource fr = new FileResource();\n CSVParser parser = fr.getCSVParser();\n //listExporters(parser, \"coffee\");\n //System.out.println(countryInfo(parser, \"Nauru\"));\n //listExportersTwoProducts(parser, \"cotton\",\"flowers\");\n //System.out.println(numberOfExporters(parser, \"cocoa\"));\n bigExporters(parser, \"$999,999,999,999\");\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent ae) {\n\t\tFile file = FileChooser.SaveCsvFile();\r\n\t\tif(file==null)\r\n\t\t\treturn;\r\n\t\tBufferedWriter bw = null;\r\n\t\ttry {\r\n\t\t\tbw = new BufferedWriter(new FileWriter(file));\r\n\t\t\tSystem.out.println(file.getAbsolutePath());\r\n\t\t\tbw.write(\"Phonenumber\");\r\n\t\t\tbw.newLine();\r\n\t\t\tfor(int i = 0;i<CSVFrame.model.getRowCount();i++) {\r\n\t\t\t\tRecord r = CSVFrame.model.getRowAt(i);\r\n\t\t\t\tSystem.out.println(r.getPhone());\r\n\t\t\t\tbw.write(r.getPhone());\r\n\t\t\t\tbw.newLine();\r\n\t\t\t}\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Finished creating suppression file\");\r\n\t\t} catch(IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tbw.close();\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\t}",
"private void addLineToCSV(String str) throws IOException\r\n {\r\n csvOutput.write(str.getBytes());\r\n csvOutput.write('\\n');\r\n }",
"private void writeCsv(float[] vals, String stimulus, PrintWriter outfile) throws FileNotFoundException {\n for (int i = 0; i < vals.length; i++) {\n outfile.append(vals[i] + \",\");\n }\n outfile.append(stimulus);\n outfile.append(\"\\n\");\n\n }",
"public static void writeCSV(Collection<? extends CSVable> src, File to) throws IOException {\r\n\t\tfinal String SYSTEM_LINE_END = System.getProperty(\"line.separator\");\r\n\t\t\r\n\t\tFileWriter fw = null;\r\n\t\tBufferedWriter bw = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// Create the file if it doesn't exist yet\r\n\t\t\tif ( ! to.exists() ) {\r\n\t\t\t\tto.createNewFile();\r\n\t\t\t}\r\n\r\n\t\t\tfw = new FileWriter(to.getAbsoluteFile(), false);\r\n\t\t\tbw = new BufferedWriter(fw);\r\n\r\n\t\t\tsynchronized (src) {\r\n\t\t\t\tfor ( CSVable obj : src ) {\r\n\t\t\t\t\tbw.write(obj.toCSVRow() + SYSTEM_LINE_END);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tif (bw != null) {\r\n\t\t\t\t\tbw.close();\r\n\t\t\t\t}\r\n\t\t\t\tif (fw != null) {\r\n\t\t\t\t\tfw.close();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (IOException e) {\r\n\t\t\t\tSystem.err.println(\"I'm having really bad luck today - I couldn't even close the CSV file!\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"String toCSVString();",
"private static void writeRecords(Collection<Record> values)\n throws IOException {\n for (Record record : values) {\n writer2.writeRecord(record.makeup());\n // over write, update writer\n // System.out.println(lineNum);\n if (++lineNum > Merge.lineNumbers.get(fileNum)) {\n writer2.flush();\n writer2.close();\n\n fileNum++;\n lineNum = 0;\n writer2 = new CsvWriter(new OutputStreamWriter(\n new FileOutputStream(SORT_USER_FN + fileNum + \".csv\"),\n \"UTF-8\"), ',');\n }\n }\n\n }",
"@Test\n public void testCSVHandlerForNodes() throws IOException, URISyntaxException {\n val csvHandler = TestInjector.create(CSVHandler.class);\n // todo clean this up but also keep it working on windows\n val input = Paths.get(getClass().getResource(\"PrototypeNodes.csv\").toURI()).toString();\n val output = \"build/Nodes.csv\";\n csvHandler.importNodes(input);\n csvHandler.exportNodes(output);\n val inputLines = Files.readAllLines(Paths.get(input));\n val outputLines = Files.readAllLines(Paths.get(output));\n assertEquals(inputLines.size(), outputLines.size());\n assertEquals(inputLines.get(0), outputLines.get(0)); // make sure header lines are the same\n assertTrue(outputLines.containsAll(inputLines));\n assertTrue(inputLines.containsAll(outputLines));\n }",
"public void Read_Csv() {\n\t\t\n\t\tFile file = new File(\"Faucets.csv\");\n\t\tif(file.exists() == false) {\n\t\t\ttry {\n\t\t\t\t if (file.createNewFile()) {\n\t\t\t\t System.out.println(\"File created: \" + file.getName());\n\t\t\t\t } else {\n\t\t\t\t System.out.println(\"File already exists... Error\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\tFileWriter myWriter = new FileWriter(\"Faucets.csv\");\n\t\t\t\tmyWriter.write(\"Freebitco.in,3600,228,\");\n\t\t\t\tmyWriter.close();\n\t\t\t\t\n\t\t\t\t\n\t\t\t}catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t//Reading the file\n\t\tString line = null;\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(\"Faucets.csv\");\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fileReader);\n\t\t\t\n\t\t\tint x = 0;\n\t\t\tint commacounter = 0;\n\t\t\tint commaposition[] = new int[3];\n\t\t\twhile((line = bufferedReader.readLine()) != null) {\n\t\t\t\t\n\t\t\t\twhile(x < line.length()) {\n\t\t\t\t\t\n\t\t\t\t\tif(line.charAt(x) == ',') {\n\t\t\t\t\t\tcommaposition[commacounter] = x;\n\t\t\t\t\t\tcommacounter +=1;\n\t\t\t\t\t}\n\t\t\t\t\tif(commacounter == 3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tFaucets.site[amount_counter] = line.substring(0, commaposition[0]);\n\t\t\t\t\t\tFaucets.time[amount_counter] = Integer.parseInt(line.substring(commaposition[0]+1, commaposition[1]));\n\t\t\t\t\t\tFaucets.amount[amount_counter] = Integer.parseInt(line.substring(commaposition[1]+1, commaposition[2]));\n\t\t\t\t\t\tamount_counter += 1;\n\t\t\t\t\t\tcommacounter=0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tx+=1;\n\t\t\t\t}\n\t\t\t\tx=0;\n\t\t\t}\n\t\t\tbufferedReader.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\n\t\t\t\n\t}",
"private void saveMarkovToCSVFileInformation(){\n //Clear out the current NewCensusColumnDetails before saving.\n this.currentMarkovChain.setNewCensusColumnDetails(new ArrayList<NewCensusColumnDetails>());\n \n ArrayList<NewCensusColumnDetails> newCensusColumnDetails = new ArrayList<>();\n \n ArrayList<cerl.gui.utilities.Class> censusClasses = this.currentMarkovChain.getCensusClasses();\n List<SurveyColumnValuesGrouping> surveyGroupings = this.currentMarkovChain.getSelectSurveyClass().getSurveyColumnValuesGroupings();\n\n /**\n * These will be used to find the min and max values stored in the grid. \n * \n * Row data starts at index 1.\n * Column data starts at index 2.\n */\n int rowToStartAt = START_EDITABLE_ROW;\n \n for(int surveyCounter = 0; surveyCounter < surveyGroupings.size(); surveyCounter++){ //rows\n int currentColumnNumber = START_EDITABLE_COL;\n SurveyColumnValuesGrouping surveyGrouping = surveyGroupings.get(surveyCounter);\n\n double newTotalRandomNumber = 0;\n ArrayList<Integer> oldValueLookUpColumns = new ArrayList<Integer>();\n\n for(int censusCounter = 0; censusCounter < censusClasses.size(); censusCounter++){ //columns\n cerl.gui.utilities.Class censusClass = censusClasses.get(censusCounter);\n oldValueLookUpColumns.add(censusClass.getColumnNumber());\n\n double[] minMaxValues = this.myTable.getMinMaxObject(rowToStartAt + surveyCounter, currentColumnNumber);\n\n double foundMin = minMaxValues[0];\n double foundMax = minMaxValues[1];\n\n double foundRandomNumber = 0.0;\n if(foundMin == foundMax){\n foundRandomNumber = foundMax;\n }else {\n foundRandomNumber = ThreadLocalRandom.current().nextDouble(foundMin, foundMax);\n foundRandomNumber = Math.round(foundRandomNumber * 100.0) / 100.0;\n }\n\n newTotalRandomNumber += foundRandomNumber;\n if(currentColumnNumber < END_EDITABLE_COL){\n currentColumnNumber++;\n }\n }\n\n //set min and max numbers\n //New column header that will appear in the new csv file\n NewCensusColumnDetails details = new NewCensusColumnDetails(\n surveyGrouping.toString(), \n newTotalRandomNumber,\n oldValueLookUpColumns,\n 0\n );\n\n newCensusColumnDetails.add(details);\n }\n \n newCensusColumnDetails = setCensusTotalColumns(newCensusColumnDetails);\n \n //Add the new NewCensusColumnDetails to the current MarkovChain object\n this.currentMarkovChain.setNewCensusColumnDetails(newCensusColumnDetails);\n }",
"public ValidationInfo createCsv() {\n LocaleModule lm = LocaleManager.getInstance().getModule(LocaleModuleResource.Main);\n\n ValidationInfo vi = new ValidationInfo();\n if (_rows == null || _rows.size() == 0) {\n vi.setMessageWarning(lm.getString(\"general_export_nothing\"));\n return vi;\n }\n\n String fullFilePath = getFileName();\n\n StringBuilder sb = new StringBuilder();\n\n //create header\n String headerRow = _rows.get(0).createCsvRow(true);\n\n sb.append(headerRow + System.lineSeparator());\n\n try {\n //create rows\n for (Exportable e : _rows) {\n String rowString = e.createCsvRow(false);\n sb.append(rowString + System.lineSeparator());\n }\n\n //Output\n String strContent = sb.toString();\n Utils.writeFile(strContent, fullFilePath);\n\n vi.setMessageSuccess(String.format(lm.getString(\"general_export_success\"),\n _rows.size(), fullFilePath));\n } catch (Exception ex) {\n vi.setMessageError(lm.getString(\"general_export_error\"));\n }\n\n //open\n Utils.openFolder(fullFilePath);\n\n return vi;\n }",
"public void exportCsv() throws IOException {\n\t\tPanelSheet panel = ((PanelGraph) Application.getInstance().getjFrame().getContentPane()).getPanelSheet();\n\t\t\n\t\tString path = \"./\" + ManagerGraph.getInstance().getGraph().getName() + \".csv\";\n\t\tFile file = new File(path);\n\t\tboolean alreadyExists = file.exists();\n\t\t\n\t\tif (alreadyExists) {\n\t\t\tfile.delete();\n\t\t}\n\n\t\tCsvWriter writer = new CsvWriter(new FileWriter(path), ';');\n\t\t\n\t\t{\n\t\t\twriter.writeRecord(new String[]{\"Graph\"});\n\t\t\twriter.writeRecord(new String[]{ManagerGraph.getInstance().getGraph().getName()});\n\t\t\twriter.writeRecord(new String[]{\"\"});\n\t\t\twriter.writeRecord(new String[]{\"Nodes\"});\n\t\t\twriter.writeRecord(new String[]{\"ID\",\"Name\",\"X\",\"Y\"});\n\t\t\tSet<Node> nodes = panel.getNodeDraws().keySet();\n\t\t\tfor (Node node : nodes) {\n\t\t\t\twriter.writeRecord(new String[]{String.valueOf(node.getId()),node.getName(),\n\t\t\t\t\t\tString.valueOf(panel.getNodeDraws().get(node).getX()),String.valueOf(panel.getNodeDraws().get(node).getY())});\n\t\t\t}\n\t\t\twriter.writeRecord(new String[]{\"\"});\n\t\t\twriter.writeRecord(new String[]{\"Arcs\"});\n\t\t\twriter.writeRecord(new String[]{\"ID\",\"headId\",\"tailId\",\"directed\",\"color\"});\n\t\t\tSet<Arc> arcs = panel.getArcDraws().keySet();\n\t\t\tfor (Arc arc : arcs) {\n\t\t\t\twriter.writeRecord(new String[]{String.valueOf(arc.getId()),String.valueOf(arc.getHeadNode().getId()),\n\t\t\t\t\t\tString.valueOf(arc.getTailNode().getId()),String.valueOf(arc.isDirected()),String.valueOf(arc.getColor())});\n\t\t\t}\n\t\t\tHashMap<Integer, Color> colorMap = ManagerGraph.getInstance().getColors();\n\t\t\tif(colorMap.size() > 0) {\n\t\t\t\twriter.writeRecord(new String[]{\"\"});\n\t\t\t\twriter.writeRecord(new String[]{\"Colors\"});\n\t\t\t\twriter.writeRecord(new String[]{\"ID\",\"red\",\"green\",\"blue\"});\n\t\t\t\tfor (Entry<Integer, Color> entry : colorMap.entrySet()) {\n\t\t\t\t\t//if(entry.getKey() > 7) {\n\t\t\t\t\t\tColor color = entry.getValue();\n\t\t\t\t\t\twriter.writeRecord(new String[]{String.valueOf(entry.getKey()), \n\t\t\t\t\t\t\t\tString.valueOf(color.getRed()), String.valueOf(color.getGreen()), \n\t\t\t\t\t\t\t\tString.valueOf(color.getBlue())});\n\t\t\t\t\t//}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\twriter.close();\n\t\t\n\t}",
"private void save(List<String[]> data, Integer numFichier, String nomFichier) throws IOException {\n FileWriter fileWriter = null;\n CSVWriter cSVWriter2 = null;\n //-------------------------------------------------------------\n // Construction du nom de fichier\n //-------------------------------------------------------------\n\n\n// String nomFichier = constructionNomFichier(flux);\n\n// // Mini rappel sur les ternaire en java : variable = (condition) ? valeur_si_vrai : valeur_si_faux; \n// String pays = (flux.getJournalLie() != null && flux.getJournalLie().getPays() != null && !flux.getJournalLie().getPays().isEmpty()) ? flux.getJournalLie().getPays() : \"XX\";\n// String ville = (flux.getJournalLie() != null && flux.getJournalLie().getCodeVille() != null && !flux.getJournalLie().getCodeVille().isEmpty()) ? flux.getJournalLie().getCodeVille() : \"XX\";\n// String langue = (flux.getJournalLie() != null && flux.getJournalLie().getLangue() != null && !flux.getJournalLie().getLangue().isEmpty()) ? flux.getJournalLie().getLangue() : \"XX\";\n// String codeJournal = (flux.getJournalLie() != null && flux.getJournalLie().getCodeJournal() != null && !flux.getJournalLie().getCodeJournal().isEmpty()) ? flux.getJournalLie().getCodeJournal() : \"XX\";\n// String codeTypeFlux = (flux.getTypeFlux() != null && flux.getTypeFlux().getCodeType() != null && !flux.getTypeFlux().getCodeType().isEmpty()) ? flux.getTypeFlux().getCodeType() : \"XXX\";\n//\n// nomFichier = langue + \"_\" + pays + \"_\" + codeJournal + \"_\" + codeTypeFlux;\n\n //--------------------------------------------------------------------------------\n // Enregistrement \n //--------------------------------------------------------------------------------\n try {\n fileWriter = new FileWriter(exportPath + nomFichier + \"__F__\" + numFichier.toString() + \".csv\");\n\n if (escapebySlash) {\n cSVWriter2 = new CSVWriter(fileWriter, '\\t', '\"', '\\\\');\n } else {\n cSVWriter2 = new CSVWriter(fileWriter, '\\t', '\"');\n }\n\n cSVWriter2.writeAll(data);\n\n\n } catch (Exception e) {\n logger.debug(\"Erreur lors de l'enregistrement\");\n } finally {\n if (cSVWriter2 != null) {\n try {\n cSVWriter2.close();\n } catch (Exception e) {\n }\n }\n\n if (fileWriter != null) {\n try {\n fileWriter.close();\n } catch (Exception e) {\n }\n }\n }\n\n data.clear(); // On purge le fichier data\n //---------------------------------------------------------------------------\n // Assemblage \n //---------------------------------------------------------------------------\n // Si ce n'est pas le premier fichier. Il faut réassembler\n// if (numFichier != 0) {\n// File f1 = new File(exportPath + nomFichier + \"__F__0.csv\");\n// File fCurrent = new File(exportPath + nomFichier + \"__F__\" + numFichier.toString() + \".csv\");\n// \n// String content = FileUtils.readFileToString(fCurrent);\n// FileUtils.write(f1, content, true);\n// \n// fCurrent.delete();\n// }\n }",
"public static void writeCSV(List<Item> items) throws IOException {\n\n try (BufferedWriter writer = Files.newBufferedWriter(Paths.get(USER_ITEMS_FILE));\n\n CSVPrinter csvPrinter = new CSVPrinter(writer, CSVFormat.EXCEL.withHeader(\"itemNo\",\"Room\",\"Category\",\"Type\",\"make\",\"model\",\"serial\",\"receipt\",\"photo\",\"value\",\"comments\",\"lastupdate\",\"delete\",\"email_own\"));//4/30 JGP added email_own header\n ) {\n for (Item i: items) {\n if (!\"itemNo\".equals(i.getItemNo())) {\n csvPrinter.printRecord(i.getItemNo(), i.getRoom().getStatus(), i.getCategory().getCategory(), i.getType().getProductTypeString(), i.getMake(), i.getModel(), i.getSerial(), i.getReceipt(), i.getPhoto(), i.getValue(), i.getComments(), FORMATTER.format(new Date()).toString(), i.isDeleted().booleanValue(), i.email);//4/30 JGP added i.email string\n }\n }\n csvPrinter.flush();\n }\n\n /* EventBus eventBus = EventBusFactory.getEventBus();\n ParseEvent pevent = new ParseEvent(items);\n eventBus.register(pevent);\n eventBus.post(pevent);*/\n }",
"public CSVExporter() {\n super(NAME, CONTENTTYPE);\n }",
"public static void savecars(){\n Cars xx = new Cars();\n System.out.println(\"save cars\");\n String outtext;\n try {\n File rentfile = new File(\"cars.csv\");\n FileWriter out = new FileWriter(rentfile);\n for (int i = 0; i < listcars.size();i++) {\n xx = listcars.get(i);\n String newline = System.getProperty(\"line.separator\");\n outtext = xx.getBrand()+ \";\"+ xx.getModel()+ \";\"+ xx.getReference()+ \";\"+ xx.getYear()+ newline;\n out.write(outtext);\n }\n out.close();\n System.out.println(\"cars data saved in cars.csv\");\n } catch (IOException i) {\n i.printStackTrace();\n }\n }",
"private static void memberExport(String club, HttpServletResponse resp, PrintWriter out, HttpServletRequest req, Connection con) {\r\n\r\n \r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n \r\n //\r\n // First, verify club name and key as a security measure (all new clubs must be added here!)\r\n //\r\n if (!club.equals(\"interlachen\") || !req.getParameter(\"key\").equals(\"asdf\")) {\r\n \r\n Utilities.logError(\"dataLoader.memberExport - Unknown Club or Key: Club = \" +club+ \", key = \" +req.getParameter(\"key\")+ \", todo = memberExport\");\r\n out.print(\"Error: Improper request. Invalid club or key.\");\r\n return;\r\n }\r\n \r\n resp.setContentType(\"text/csv\"); // text-csv file\r\n resp.setHeader(\"Content-Disposition\", \"attachment;filename=\\\"\"+club+\"-login-counts.csv\\\"\"); \r\n \r\n StringBuffer sb = new StringBuffer(\"\"); // Use a stringbuffer to hold the records\r\n \r\n //\r\n // Add header row\r\n //\r\n sb.append(\"\\\"ForeTees Id\\\",\");\r\n sb.append(\"\\\"Member #\\\",\");\r\n sb.append(\"\\\"Membership\\\",\");\r\n sb.append(\"\\\"Member Type\\\",\");\r\n sb.append(\"\\\"Total Logins\\\",\");\r\n sb.append(\"\\\"Mobile Logins\\\",\");\r\n sb.append(\"\\\"App Logins\\\"\\n\");\r\n \r\n try {\r\n\r\n //\r\n // Get member info and output as table rows\r\n //\r\n if (con != null) {\r\n \r\n stmt = con.createStatement(); \r\n \r\n String sql = \"\" +\r\n \"SELECT id, username, count, m_ship, m_type, mobile_count, mobile_app_count \" +\r\n \"FROM member2b \" +\r\n \"WHERE inact=0 AND billable = 1\";\r\n \r\n rs = stmt.executeQuery(sql);\r\n \r\n while (rs.next()) {\r\n\r\n sb.append(\"\\\"\" + rs.getInt(\"id\") + \"\\\",\");\r\n sb.append(\"\\\"\" + rs.getString(\"username\") + \"\\\",\");\r\n sb.append(\"\\\"\" + rs.getString(\"m_ship\") + \"\\\",\");\r\n sb.append(\"\\\"\" + rs.getString(\"m_type\") + \"\\\",\");\r\n sb.append(\"\\\"\" + rs.getInt(\"count\") + \"\\\",\");\r\n sb.append(\"\\\"\" + rs.getInt(\"mobile_count\") + \"\\\",\");\r\n sb.append(\"\\\"\" + rs.getInt(\"mobile_app_count\") + \"\\\"\\n\");\r\n }\r\n \r\n stmt.close();\r\n }\r\n \r\n out.print(sb.toString()); // output the file\r\n \r\n } catch (Exception e) {\r\n\r\n Utilities.logError(\"Error in dataLoader.memberExport for club: \" + club + \". Exception= \" + org.apache.commons.lang.exception.ExceptionUtils.getStackTrace(e));\r\n out.print(\"Error: Database error gathering member data.\");\r\n\r\n } finally {\r\n\r\n try { rs.close(); }\r\n catch (Exception ignore) {}\r\n\r\n try { stmt.close(); }\r\n catch (Exception ignore) {}\r\n }\r\n\r\n }",
"@Override\n public File importCSV(String query) {\n String retorno = executeQuery(query);\n File file = new File(\"export.csv\");\n try {\n file.createNewFile();\n if(file.exists()){\n try (Writer writer = new FileWriter(file)) {\n writer.append(retorno);\n writer.flush();\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n return file;\n }",
"@FXML\n public void handleExport() throws Exception{\n \n Writer writer = null;\n String filename = file.getText();\n file.clear();\n \n try {\n File file = new File(filename+\".csv\");\n writer = new BufferedWriter(new FileWriter(file));\n for (MarkLayer1 mark : data) {\n\n String text = mark.getStunum()+\";\" + mark.getCoursename() + \";\" + mark.getClassM()\n + \";\"+ mark.getExam()+\";\"+mark.getFinalM()+\"\\n\";\n\n writer.write(text);\n msg.setText(\"Export Success\");\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n msg.setText(\"Error with export\");\n }\n finally {\n\n writer.flush();\n writer.close();\n } \n \n }"
] | [
"0.7434009",
"0.7417792",
"0.71553713",
"0.7029317",
"0.70234513",
"0.69050026",
"0.68682665",
"0.6802154",
"0.6745614",
"0.67368007",
"0.6712076",
"0.671174",
"0.6662091",
"0.6586632",
"0.65664953",
"0.65067613",
"0.6494751",
"0.6482678",
"0.64821905",
"0.64521694",
"0.6385399",
"0.63546497",
"0.6351916",
"0.63503045",
"0.6346798",
"0.63437283",
"0.63171285",
"0.6229265",
"0.6213732",
"0.621049",
"0.6207601",
"0.6188298",
"0.61720777",
"0.61619323",
"0.60978836",
"0.6097757",
"0.60972834",
"0.609429",
"0.60498995",
"0.6016161",
"0.60156655",
"0.60088533",
"0.5996565",
"0.5971677",
"0.5953274",
"0.59467673",
"0.5944206",
"0.5930024",
"0.59257436",
"0.5924771",
"0.592461",
"0.5918719",
"0.58981055",
"0.5882512",
"0.5872211",
"0.58692545",
"0.58553517",
"0.5847354",
"0.5828947",
"0.58248353",
"0.5800282",
"0.5794537",
"0.5794208",
"0.578587",
"0.57785463",
"0.5774785",
"0.57636756",
"0.57626754",
"0.5756949",
"0.57447565",
"0.574459",
"0.5738886",
"0.57366055",
"0.5730948",
"0.57268655",
"0.57230306",
"0.5718049",
"0.57078326",
"0.5702242",
"0.56999815",
"0.5693318",
"0.5689787",
"0.5689397",
"0.5688316",
"0.5678513",
"0.56654936",
"0.5659399",
"0.5650507",
"0.5645835",
"0.5644127",
"0.56406844",
"0.5634558",
"0.56333417",
"0.563302",
"0.56261635",
"0.56248856",
"0.56047547",
"0.56034523",
"0.5582914",
"0.5572222"
] | 0.5879617 | 54 |
private JLabel label; Creates new form lala | public plateInterface() {
initComponents();
setTitle("停车场计费系统");
// label = new JLabel();
// add(label);
chooser = new JFileChooser();
chooser = new JFileChooser();
chooser.setCurrentDirectory(new File("E:"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLabel( String label )\n { \n this.label = label;\n show_text();\n }",
"public void setLabel(String label) {\n this.label = label;\n }",
"void setlabel (String label){\r\n\t\tthis.label = label;\r\n\t}",
"public void setLabel( String label ) {\r\n lbl = label;\r\n }",
"public void setLabel(String label) {\r\n this.label = label;\r\n }",
"void setLabel(Label label);",
"public void setLabel(String label)\n\t{\n\t\tthis.label = label;\n\t}",
"public void setLabel(String label) {\r\n\t\tthis.label = label;\r\n\t}",
"public void setLabel(String label) {\r\n\t\tthis.label = label;\r\n\t}",
"private void crearLabels(){\n\t\tJLabel label = new JLabel(\" USER \");\n\t\tuser = new JTextField(15);\n\t\tthis.getContentPane().add(label);\n\t\tthis.getContentPane().add(user);\n\t\tJLabel label1 = new JLabel(\"PASSWORD\");\n\t\tpassword = new JPasswordField(15);\n\t\tthis.getContentPane().add(label1);\n\t\tthis.getContentPane().add(password);\n\t}",
"void setLabel(String label);",
"@Override\r\n\tpublic JLabel createLabel() {\r\n\t\treturn new JLabel();\r\n\t}",
"public void setLabel(String label) {\n\t\tthis.label = label;\n\t}",
"public JLabel addLabel(String texte) {\n JLabel label = new JLabel(texte);\n simplePanel.add(label);\n return label;\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Calibri Light\", 0, 36)); // NOI18N\n jLabel1.setText(\"¡DESPIERTA!\");\n jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 591, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(88, 88, 88)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(69, Short.MAX_VALUE))\n );\n\n pack();\n }",
"public void setLabel(final String label) {\n this.label = label;\n }",
"public void setLabel(String label) {\n\t\t_label = label;\n\t}",
"public MyGUIProgram() {\n Label MyLabel = new Label(\"Test string.\", Label.CENTER);\n this.add(MyLabel);\n\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n LabelEntrar = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel2.setBackground(new java.awt.Color(255, 255, 255));\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/rsz_uaem-logo.png\"))); // NOI18N\n\n jLabel1.setFont(new java.awt.Font(\"Meiryo UI\", 0, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(39, 83, 51));\n jLabel1.setText(\"Sistema administrador de base de datos \");\n\n LabelEntrar.setFont(new java.awt.Font(\"Meiryo UI\", 3, 36)); // NOI18N\n LabelEntrar.setForeground(new java.awt.Color(39, 83, 51));\n LabelEntrar.setText(\"Entrar\");\n LabelEntrar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n LabelEntrarMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(94, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(89, 89, 89))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(152, 152, 152))))\n .addGroup(layout.createSequentialGroup()\n .addGap(274, 274, 274)\n .addComponent(LabelEntrar, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(LabelEntrar, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(63, Short.MAX_VALUE))\n );\n\n pack();\n }",
"public void setLabel(final String label) {\n this.label = label;\n }",
"Label getLabel();",
"Label getLabel();",
"Label getLabel();",
"public void setLabel(String label) {\n addNewLabel().setText(label);\n }",
"public void setLabel(final String _label)\n {\n this.label = _label;\n }",
"@Override\n\tpublic void setLabel(String label) {\n\t\t\n\t}",
"private JLabel getLblEkipeMorajuBiti() {\r\n\t\tif (lblEkipeMorajuBiti == null) {\r\n\t\t\tlblEkipeMorajuBiti = new JLabel(\"Ekipe moraju biti razlicite!\");\r\n\t\t\tlblEkipeMorajuBiti.setPreferredSize(new Dimension(150, 14));\r\n\t\t\tlblEkipeMorajuBiti.setVisible(false);\r\n\t\t}\r\n\t\treturn lblEkipeMorajuBiti;\r\n\t}",
"private void initComponents_label(){\n label_today_date.setText(\"Today Date : \" + Main.DATE_FORMAT.format(Main.getToday_date()));\n this.neon.setIcon(new ImageIcon(Interface_Payment.getScaledImage(new ImageIcon(\"resource/neon.png\").getImage(), 524, 160)));\n this.menu_lable_1.setIcon(new ImageIcon(new ImageIcon(\"resource/menu_button/pos_main_menu.png\").getImage().getScaledInstance(485, 60, Image.SCALE_DEFAULT)));\n this.menu_lable_2.setIcon(new ImageIcon(new ImageIcon(\"resource/menu_button/customer_manager.png\").getImage().getScaledInstance(485, 60, Image.SCALE_DEFAULT)));\n this.menu_lable_3.setIcon(new ImageIcon(new ImageIcon(\"resource/menu_button/order_manager.png\").getImage().getScaledInstance(485, 60, Image.SCALE_DEFAULT)));\n this.menu_lable_4.setIcon(new ImageIcon(new ImageIcon(\"resource/menu_button/exit.png\").getImage().getScaledInstance(485, 60, Image.SCALE_DEFAULT)));\n this.menu_lable_1.setCursor(new Cursor(Cursor.HAND_CURSOR));\n this.menu_lable_2.setCursor(new Cursor(Cursor.HAND_CURSOR));\n this.menu_lable_3.setCursor(new Cursor(Cursor.HAND_CURSOR));\n this.menu_lable_4.setCursor(new Cursor(Cursor.HAND_CURSOR)); \n }",
"public final void setLabel(final String label) {\r\n this.label = label;\r\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n label1 = new abstractt.visual.Label();\n tf_fecha = new abstractt.visual.Label();\n label2 = new abstractt.visual.Label();\n label3 = new abstractt.visual.Label();\n tf_mesa = new abstractt.visual.Label();\n label4 = new abstractt.visual.Label();\n label5 = new abstractt.visual.Label();\n tf_folio = new abstractt.visual.Label();\n tf_mesero = new abstractt.visual.Label();\n tf_estado = new abstractt.visual.Label();\n\n setBackground(new java.awt.Color(110, 230, 118));\n setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n setLayout(null);\n\n label1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"resources/language/ComandaPanel\"); // NOI18N\n label1.setText(bundle.getString(\"FECHA \")); // NOI18N\n label1.setFont(new java.awt.Font(\"Tahoma\", 3, 11)); // NOI18N\n add(label1);\n label1.setBounds(176, 47, 38, 16);\n\n tf_fecha.setBackground(new java.awt.Color(255, 255, 255));\n tf_fecha.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n tf_fecha.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n tf_fecha.setAlignmentY(0.0F);\n tf_fecha.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n tf_fecha.setOpaque(true);\n tf_fecha.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n add(tf_fecha);\n tf_fecha.setBounds(218, 45, 97, 24);\n\n label2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n java.util.ResourceBundle bundle1 = java.util.ResourceBundle.getBundle(\"gui/restaurant/ComandaPanel\"); // NOI18N\n label2.setText(bundle1.getString(\"FOLIO \")); // NOI18N\n label2.setFont(new java.awt.Font(\"Tahoma\", 3, 11)); // NOI18N\n add(label2);\n label2.setBounds(13, 49, 38, 16);\n\n label3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n label3.setText(bundle1.getString(\"MESERO \")); // NOI18N\n label3.setFont(new java.awt.Font(\"Tahoma\", 3, 11)); // NOI18N\n add(label3);\n label3.setBounds(2, 78, 56, 16);\n\n tf_mesa.setBackground(new java.awt.Color(255, 255, 255));\n tf_mesa.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n tf_mesa.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n tf_mesa.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n tf_mesa.setOpaque(true);\n add(tf_mesa);\n tf_mesa.setBounds(57, 10, 88, 28);\n\n label4.setText(bundle1.getString(\"M E S A \")); // NOI18N\n label4.setFont(new java.awt.Font(\"Tahoma\", 3, 11)); // NOI18N\n add(label4);\n label4.setBounds(14, 8, 43, 31);\n\n label5.setText(bundle1.getString(\"E S T A D O \")); // NOI18N\n label5.setFont(new java.awt.Font(\"Tahoma\", 3, 11)); // NOI18N\n add(label5);\n label5.setBounds(148, 9, 71, 31);\n\n tf_folio.setBackground(new java.awt.Color(255, 255, 255));\n tf_folio.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n tf_folio.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n tf_folio.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n tf_folio.setOpaque(true);\n add(tf_folio);\n tf_folio.setBounds(58, 44, 88, 25);\n\n tf_mesero.setBackground(new java.awt.Color(255, 255, 255));\n tf_mesero.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n tf_mesero.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n tf_mesero.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n tf_mesero.setOpaque(true);\n add(tf_mesero);\n tf_mesero.setBounds(59, 76, 256, 24);\n\n tf_estado.setBackground(new java.awt.Color(255, 255, 255));\n tf_estado.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n tf_estado.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n tf_estado.setAlignmentY(0.0F);\n tf_estado.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n tf_estado.setOpaque(true);\n tf_estado.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n add(tf_estado);\n tf_estado.setBounds(220, 10, 95, 30);\n }",
"private void criaLabel(String nome, int eixoY) {\r\n\t\tJLabel nova = new JLabel(nome);\r\n\t\tnova.setFont(new Font(\"Arial\", Font.PLAIN, 14));\r\n\t\tnova.setForeground(Color.BLACK);\r\n\t\tnova.setBounds(28, eixoY, 70, 14);\r\n\t\tpainelPrincipal.add(nova);\r\n\t}",
"private void generateLabelPanel() {\n speedLabel = new JLabel(\"\");\n loopbackLabel = new JLabel(\"\");\n playingLabel = new JLabel(\"\");\n\n JPanel labelPanel = new JPanel();\n labelPanel.setLayout(new FlowLayout());\n labelPanel.add(playingLabel);\n labelPanel.add(Box.createHorizontalStrut(50));\n labelPanel.add(speedLabel);\n labelPanel.add(Box.createHorizontalStrut(50));\n labelPanel.add(loopbackLabel);\n mainPanel.add(labelPanel);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel1.setText(\"Este é um software desenvolvido para a componente de \");\n\n jLabel2.setText(\"Programação Orientada à Objeto, da Universidade de Sorocaba.\");\n\n jLabel5.setFont(new java.awt.Font(\"Tempus Sans ITC\", 3, 18)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 0, 0));\n jLabel5.setText(\"Loja CaBaite\");\n\n jLabel6.setFont(new java.awt.Font(\"Tw Cen MT Condensed\", 1, 12)); // NOI18N\n jLabel6.setText(\"tm\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel6)\n .addGap(135, 135, 135))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel1))\n .addContainerGap(20, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jLabel6))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2)\n .addContainerGap())\n );\n\n pack();\n setLocationRelativeTo(null);\n }",
"private void crearJLabels() {\n lTitulo = sObjGraficos.construirJLabel(\"Eliminar\", 255, 5, 500, 30,\n null,null, sRecursos.getFontTPrincipal(),sRecursos.getColorPrincipalOscuro(), sRecursos.getColorPrincipal(), null, \"c\");\n panel.add(lTitulo);\n //Titulo de libro ID\n lInfo = sObjGraficos.construirJLabel(\"Seleccione una fila de la tabla, luego oprima el boton retirar\", 0, 445, 350, 20,\n null,null, sRecursos.getFontLigera(),sRecursos.getColorPrincipalOscuro(), sRecursos.getColorPrincipal(), null, \"c\");\n panel.add(lInfo);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n String text=\"<html><p>The Railway Reservation System fasciliates the passengers to enquire about the trains available on the basis of source and destination, booking, and cancelation of tickets. In our country India, there are number of counters for the reservation of the seats and one can easily make reservations, and get ticket.</p></html>\";\n jLabel1 = new javax.swing.JLabel(text);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 3, 18)); // NOI18N\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(4, 8, 520, 360));\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n \n jLabel1 = new javax.swing.JLabel();\n \n setName(\"Form\"); // NOI18N\n setLayout(new java.awt.GridBagLayout());\n \n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(facebin.FacebinApp.class).getContext().getResourceMap(FriendsView.class);\n jLabel1.setText(resourceMap.getString(\"jLabel1.text\")); // NOI18N\n jLabel1.setName(\"jLabel1\"); // NOI18N\n add(jLabel1, new java.awt.GridBagConstraints());\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Oyun Bitti\");\n\n jLabel2.setText(\"Sure:\");\n\n jLabel4.setText(\"Puan:\");\n\n jLabel6.setText(\"Yanlis:\");\n\n jLabel7.setText(\"Dogru:\");\n\n jButton1.setText(\"Tekrar Oyna\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(92, 92, 92)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel1)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(20, 20, 20)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addGap(18, 18, 18)\n .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, 129, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(20, 20, 20)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jButton1))\n .addContainerGap(128, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(49, 49, 49)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 127, Short.MAX_VALUE)\n .addComponent(jButton1)\n .addGap(33, 33, 33))\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n formMouseClicked(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Monotype Corsiva\", 1, 34)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"EASY RTO AGENCY\");\n\n jLabel2.setFont(new java.awt.Font(\"Times New Roman\", 1, 24));\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setText(\"Welcome \");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 18));\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel3.setText(\"To\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(111, 111, 111)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(146, 146, 146)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 360, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(30, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(75, Short.MAX_VALUE))\n );\n\n pack();\n }",
"String addLabel(String label);",
"@Override\n\t\tpublic void addLabel(Label label) {\n\n\t\t}",
"public static JLabel newFormLabel(String text) {\n JLabel label = newLabel(text);\n label.setHorizontalAlignment(SwingConstants.RIGHT);\n label.setForeground(label.getForeground().brighter());\n return label;\n }",
"private JLabel _createNewLabel(String sCaption_) \n{\n Util.panicIf( sCaption_ == null );\n\n JLabel lblNew = new JLabel(sCaption_);\n lblNew.setFont( _pFont );\n \n return lblNew;\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jpnTimVeTau = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jpnTraCuuThongTin = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jpnThemLoaiVe = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(0, 0, 0));\n setMinimumSize(new java.awt.Dimension(1010, 144));\n setPreferredSize(new java.awt.Dimension(1010, 457));\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jpnTimVeTau.setBackground(new java.awt.Color(255, 255, 255));\n jpnTimVeTau.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jpnTimVeTauMousePressed(evt);\n }\n });\n\n jLabel1.setBackground(new java.awt.Color(255, 255, 255));\n jLabel1.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/baseline_location_searching_white_18dp.png\"))); // NOI18N\n jLabel1.setText(\"Tìm chuyến tàu\");\n jLabel1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jLabel1MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout jpnTimVeTauLayout = new javax.swing.GroupLayout(jpnTimVeTau);\n jpnTimVeTau.setLayout(jpnTimVeTauLayout);\n jpnTimVeTauLayout.setHorizontalGroup(\n jpnTimVeTauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnTimVeTauLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jpnTimVeTauLayout.setVerticalGroup(\n jpnTimVeTauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 115, Short.MAX_VALUE)\n );\n\n add(jpnTimVeTau, new org.netbeans.lib.awtextra.AbsoluteConstraints(29, 29, 219, -1));\n\n jpnTraCuuThongTin.setBackground(new java.awt.Color(255, 255, 255));\n jpnTraCuuThongTin.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jpnTraCuuThongTinMousePressed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/baseline_image_search_white_18dp.png\"))); // NOI18N\n jLabel2.setText(\"Tra cứu thông tin vé\");\n\n javax.swing.GroupLayout jpnTraCuuThongTinLayout = new javax.swing.GroupLayout(jpnTraCuuThongTin);\n jpnTraCuuThongTin.setLayout(jpnTraCuuThongTinLayout);\n jpnTraCuuThongTinLayout.setHorizontalGroup(\n jpnTraCuuThongTinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jpnTraCuuThongTinLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jpnTraCuuThongTinLayout.setVerticalGroup(\n jpnTraCuuThongTinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 115, Short.MAX_VALUE)\n );\n\n add(jpnTraCuuThongTin, new org.netbeans.lib.awtextra.AbsoluteConstraints(266, 29, 207, -1));\n\n jpnThemLoaiVe.setBackground(new java.awt.Color(255, 255, 255));\n jpnThemLoaiVe.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jpnThemLoaiVeMousePressed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/baseline_note_add_white_18dp.png\"))); // NOI18N\n jLabel3.setText(\"Thêm loại vé\");\n jLabel3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jLabel3MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout jpnThemLoaiVeLayout = new javax.swing.GroupLayout(jpnThemLoaiVe);\n jpnThemLoaiVe.setLayout(jpnThemLoaiVeLayout);\n jpnThemLoaiVeLayout.setHorizontalGroup(\n jpnThemLoaiVeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnThemLoaiVeLayout.createSequentialGroup()\n .addGap(0, 25, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jpnThemLoaiVeLayout.setVerticalGroup(\n jpnThemLoaiVeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n add(jpnThemLoaiVe, new org.netbeans.lib.awtextra.AbsoluteConstraints(491, 29, -1, 115));\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rs/etf/aor/images/CPU_blok_operacije_prvi.jpg\"))); // NOI18N\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 .addComponent(jLabel1)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jpnTimVeTau = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jpnTraCuuThongTin = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(255, 255, 204));\n\n jpnTimVeTau.setBackground(new java.awt.Color(255, 102, 102));\n jpnTimVeTau.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jpnTimVeTauMousePressed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/baseline_location_searching_white_18dp.png\"))); // NOI18N\n jLabel1.setText(\"Tìm chuyến tàu\");\n jLabel1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jLabel1MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout jpnTimVeTauLayout = new javax.swing.GroupLayout(jpnTimVeTau);\n jpnTimVeTau.setLayout(jpnTimVeTauLayout);\n jpnTimVeTauLayout.setHorizontalGroup(\n jpnTimVeTauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnTimVeTauLayout.createSequentialGroup()\n .addGap(0, 15, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jpnTimVeTauLayout.setVerticalGroup(\n jpnTimVeTauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jpnTraCuuThongTin.setBackground(new java.awt.Color(153, 153, 255));\n jpnTraCuuThongTin.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jpnTraCuuThongTinMousePressed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/baseline_image_search_white_18dp.png\"))); // NOI18N\n jLabel2.setText(\"Tra cứu thông tin vé\");\n\n javax.swing.GroupLayout jpnTraCuuThongTinLayout = new javax.swing.GroupLayout(jpnTraCuuThongTin);\n jpnTraCuuThongTin.setLayout(jpnTraCuuThongTinLayout);\n jpnTraCuuThongTinLayout.setHorizontalGroup(\n jpnTraCuuThongTinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jpnTraCuuThongTinLayout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel2)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jpnTraCuuThongTinLayout.setVerticalGroup(\n jpnTraCuuThongTinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 115, Short.MAX_VALUE)\n );\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 .addGap(29, 29, 29)\n .addComponent(jpnTimVeTau, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jpnTraCuuThongTin, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(220, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jpnTraCuuThongTin, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jpnTimVeTau, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(313, Short.MAX_VALUE))\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(144, 210, 144));\n\n jLabel1.setBackground(new java.awt.Color(144, 210, 144));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\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 .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)\n );\n }",
"public void setLabel(int label) {\n\t\tthis.label = label;\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblText = new javax.swing.JLabel();\n\n setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n setLayout(new java.awt.BorderLayout());\n\n lblText.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n lblText.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblText.setText(\"content\");\n lblText.setOpaque(true);\n add(lblText, java.awt.BorderLayout.CENTER);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblText = new javax.swing.JLabel();\n\n setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n setLayout(new java.awt.BorderLayout());\n\n lblText.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n lblText.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblText.setText(\"content\");\n lblText.setOpaque(true);\n add(lblText, java.awt.BorderLayout.CENTER);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n\n jLabel1.setText(\"jLabel1\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n pack();\n }",
"public void setLabelToBeShown(String label);",
"public JLabel addChamp(String texte) {\n JLabel label = new JLabel(texte); //Cree le label\n simplePanel.add(label); //Ajoute le label au panneau\n JTextField champ = new JTextField(10);//Cree le champ\n simplePanel.add(champ); //Ajoute le champ au panneau\n champs.add(champ);//Ajoute le champ dans le tableau champs\n return label; //Retourne le label\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setIconImage((new javax.swing.ImageIcon(getClass().getResource(\"/fileserver/FSLogo.png\"))).getImage());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 20)); // NOI18N\n jLabel1.setText(\" #tkctehnologies\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 773, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 497, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n imagenP = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n add(imagenP, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 80, 172, 175));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 36)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(6, 58, 88));\n jLabel1.setText(\"GESTIÓN\");\n add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 110, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 36)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(6, 58, 88));\n jLabel2.setText(\"ESTUDIANTIL\");\n add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 150, -1, -1));\n }",
"private JPanel label() {\r\n\t\tJPanel position = new JPanel();\r\n\t\tJPanel positionLabelLigue = new JPanel();\r\n\t\tJPanel positionLabelnomadmin = new JPanel();\r\n\t\tJPanel positionLabelprenomadmin = new JPanel();\r\n\t\tJPanel positionLabeladresse = new JPanel();\r\n\r\n\t\t// On définit le layout en lui indiquant qu'il travaillera en ligne\r\n\t\tpositionLabelLigue.setLayout(new BoxLayout(positionLabelLigue,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabelLigue.add(nomLigue);\r\n\t\tpositionLabeladresse.setLayout(new BoxLayout(positionLabeladresse,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabeladresse.add(adresse);\r\n\t\tpositionLabelnomadmin.setLayout(new BoxLayout(positionLabelnomadmin,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabelnomadmin.add(nomAdmin);\r\n\t\tpositionLabelprenomadmin.setLayout(new BoxLayout(\r\n\t\t\t\tpositionLabelprenomadmin, BoxLayout.X_AXIS));\r\n\t\tpositionLabelprenomadmin.add(prenomAdmin);\r\n\r\n\t\t/*\r\n\t\t * positionnement en colonne des lignes précédemment crées grace a\r\n\t\t * position.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS))\r\n\t\t */\r\n\t\tposition.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS));\r\n\t\tposition.add(nomLigue);\r\n\t\t/*\r\n\t\t * la ligne suivante position.add(Box.createRigidArea(new\r\n\t\t * Dimension(10,5))) permet de créer un espace entre les composants du\r\n\t\t * panel adresse et nom administrateur et le nom de la ligue\r\n\t\t */\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(adresse);\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(nomAdmin);\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(prenomAdmin);\r\n\r\n\t\treturn position;\r\n\t}",
"private javax.swing.JLabel getJLabel() {\n\t\tif(jLabel == null) {\n\t\t\tjLabel = new javax.swing.JLabel();\n\t\t\tjLabel.setText(\"Porcentaje Vendido+Abonado:\");\n\t\t\tjLabel.setPreferredSize(new java.awt.Dimension(180,20));\n\t\t}\n\t\treturn jLabel;\n\t}",
"public void setLabel(String label)\n {\n if (StringUtils.isBlank(label))\n throw new IllegalArgumentException(\"label cannot be null or empty\");\n \n this.label = label;\n }",
"public static void initLabel(JLabel jlabel, String text, JPanel panel) {\n jlabel = new JLabel(text);\n panel.add(jlabel);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rs/etf/aor/images/CPU_blok_registri_sedmi.jpg\"))); // NOI18N\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 .addComponent(jLabel1)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n );\n }",
"@Override\n\tpublic void setLabelText(String label) {\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n outputLbl = new javax.swing.JLabel();\n\n outputLbl.setFont(new java.awt.Font(\"Dialog\", 1, 36)); // NOI18N\n outputLbl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n outputLbl.setText(\"jLabel1\");\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(outputLbl, javax.swing.GroupLayout.DEFAULT_SIZE, 197, 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(outputLbl, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)\n .addContainerGap())\n );\n }",
"private void makeLabels() {\n infoPanel = new JPanel();\n\n infoText = new JTextArea(30,25);\n\n infoPanel.add(infoText);\n }",
"public void setLabel(JLabel label) {\n\t\tswitch (label.getName()) {\t\t\t// the three labels are named via label.setName(labelName)\n\t\tcase \"title\": \t\ttitleLabel = label; break;\n\t\tcase \"artist(s)\": \tartistLabel = label; break;\n\t\tcase \"album\": \t\talbumLabel = label; break;\n\t\t}\n\t}",
"private void LabelEntrarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_LabelEntrarMouseClicked\n final JLabel label = new JLabel();\n int timerDelay = 500;\n new Timer(timerDelay, new ActionListener() {\n int timeLeft = 3;\n\n @Override\n public void actionPerformed(ActionEvent e) {\n if (timeLeft > 0) {\n label.setText(\"Estableciendo conexión...\");\n timeLeft--;\n } else {\n ((Timer) e.getSource()).stop();\n Window win = SwingUtilities.getWindowAncestor(label);\n \n //------------------------------------------------------------------\n FormConsulta formConsulta = new FormConsulta();\n\n AlumnoService.obtenerTodos(formConsulta.TablaAlumnos);\n CursosService.obtenerTodos(formConsulta.TableCursos);\n CursoAlumnoService.obtenerTodos(formConsulta.TablaAlumnosCursos);\n \n //Se muestra el Form de consulta\n formConsulta.setVisible(true);\n win.setVisible(false);\n }\n }\n }) {\n {\n setInitialDelay(0);\n }\n }.start();\n\n JOptionPane.showMessageDialog(null, label);\n //Se oculta el Formulario de principal\n this.setVisible(false);\n }",
"public LLabel() {\n this(\"\");\n }",
"String getFormFieldLabel();",
"public String getLabel(){\n return label;\n }",
"public Label() {\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n judul_1 = new javax.swing.JLabel();\n label8 = new javax.swing.JLabel();\n label7 = new javax.swing.JLabel();\n label4 = new javax.swing.JLabel();\n notifikasi = new javax.swing.JLabel();\n input = new javax.swing.JTextField();\n judul_2 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(51, 51, 255));\n\n judul_1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n judul_1.setForeground(new java.awt.Color(255, 255, 0));\n judul_1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n judul_1.setText(\"Judul 1\");\n\n label8.setFont(new java.awt.Font(\"Tahoma\", 0, 20)); // NOI18N\n label8.setForeground(new java.awt.Color(255, 255, 0));\n label8.setText(\"Salah -->\");\n\n label7.setFont(new java.awt.Font(\"Tahoma\", 0, 20)); // NOI18N\n label7.setForeground(new java.awt.Color(255, 255, 0));\n label7.setText(\"Benar -->\");\n\n label4.setFont(new java.awt.Font(\"Tahoma\", 0, 20)); // NOI18N\n label4.setForeground(new java.awt.Color(255, 255, 0));\n label4.setText(\"<-- Kembali\");\n\n notifikasi.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n notifikasi.setForeground(new java.awt.Color(255, 255, 0));\n notifikasi.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n notifikasi.setText(\"Notifikasi\");\n\n input.setFont(new java.awt.Font(\"Dialog\", 0, 18)); // NOI18N\n\n judul_2.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n judul_2.setForeground(new java.awt.Color(255, 255, 0));\n judul_2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n judul_2.setText(\"Judul 2\");\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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 128, Short.MAX_VALUE)\n .addComponent(input, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(124, 124, 124))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(judul_1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(label7))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(label4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(label8))\n .addComponent(notifikasi, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(judul_2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 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(judul_1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 188, Short.MAX_VALUE)\n .addComponent(input, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(43, 43, 43)\n .addComponent(label7)\n .addGap(46, 46, 46)\n .addComponent(notifikasi)\n .addGap(53, 53, 53)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(label8)\n .addComponent(label4))\n .addGap(29, 29, 29))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(57, 57, 57)\n .addComponent(judul_2)\n .addContainerGap(414, Short.MAX_VALUE)))\n );\n }",
"public JLabel getLabel() {\n return label;\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel3 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setSize(new java.awt.Dimension(1080, 720));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel3.setBackground(new java.awt.Color(0, 0, 0));\n jLabel3.setFont(new java.awt.Font(\"Papyrus\", 3, 36)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"TOMMASO NARRACCI\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 460, 570, 140));\n\n jLabel2.setBackground(new java.awt.Color(0, 0, 0));\n jLabel2.setFont(new java.awt.Font(\"Papyrus\", 3, 36)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Grazie per aver giocato!!!Ecco la storia del nostro Hobbit !!!\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 130, 1030, 210));\n\n jLabel4.setBackground(new java.awt.Color(0, 0, 0));\n jLabel4.setFont(new java.awt.Font(\"Papyrus\", 3, 36)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Creatori: \");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 390, 470, 140));\n\n jLabel5.setBackground(new java.awt.Color(0, 0, 0));\n jLabel5.setFont(new java.awt.Font(\"Papyrus\", 3, 36)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"LEONARDO MENNA\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 530, 550, 140));\n\n jLabel1.setBackground(new java.awt.Color(0, 0, 0));\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/finalhobbiton.jpeg\"))); // NOI18N\n jLabel1.setMaximumSize(new java.awt.Dimension(1080, 720));\n jLabel1.setMinimumSize(new java.awt.Dimension(1080, 720));\n jLabel1.setOpaque(true);\n jLabel1.setPreferredSize(new java.awt.Dimension(1080, 720));\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1080, 720));\n\n pack();\n }",
"@Override\n\tpublic void setComponentLabel(String label) {\n\t\t\n\t}",
"private javax.swing.JLabel getJLabel1() {\n\t\tif(jLabel1 == null) {\n\t\t\tjLabel1 = new javax.swing.JLabel();\n\t\t\tjLabel1.setText(\"Datos del Invitado\");\n\t\t\tjLabel1.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 18));\n\t\t\tjLabel1.setForeground(java.awt.Color.white);\n\t\t\tjLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/becoblohm/cr/gui/resources/icons/ix48x48/id_card.png\")));\n\t\t}\n\t\treturn jLabel1;\n\t}",
"public void setLabel()\r\n {\r\n int i = Converter(Input);\r\n \r\n if(j<i && label.getText().equals(\"Player 1\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n \r\n }else if(j<i && label.getText().equals(\"Player 2\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n }else if(j<i && label.getText().equals(\"Player 3\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n }else if(j==i && label.getText().equals(\"Player \"+j))\r\n {\r\n j=1;\r\n label.setText(\"Player \"+j);\r\n }\r\n \r\n \r\n }",
"protected void setLabel(final String label) {\n\t\tmyLabel = label;\n\t}",
"public boolean labelOnOlemassa(String label);",
"public String getLabel() {\n return label;\n }",
"private void setupLabelUI(Label l, String ff, double f, double w, Pos p, double x, double y) {\n\t\tl.setFont(Font.font(ff, f));\n\t\tl.setMinWidth(w);\n\t\tl.setAlignment(p);\n\t\tl.setLayoutX(x);\n\t\tl.setLayoutY(y);\n\t}",
"public void setLabel(Object v) \n {\n this.label = v;\n }",
"public String getLabel()\n { \n return label;\n }",
"public String getLabel() {\n return label;\n }",
"private javax.swing.JLabel getJLabel() {\n\t\tif(jLabel == null) {\n\t\t\tjLabel = new javax.swing.JLabel();\n\t\t\tjLabel.setText(\"Nombre Invitado:\");\n\t\t\tjLabel.setPreferredSize(new java.awt.Dimension(96,16));\n\t\t}\n\t\treturn jLabel;\n\t}",
"public void setL1(JLabel l1) {\n this.l1 = l1;\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setIconImage(getIconImage());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Grafica de Estatus\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setText(\"Creado por Marlon ®\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(199, 199, 199)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(177, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 332, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addContainerGap())\n );\n\n pack();\n }",
"protected JLabel makeLabel(String s) {\n JLabel label = new JLabel(s);\n label.setFont(new Font(QuizAppUtilities.UI_FONT, Font.PLAIN, 16));\n\n return label;\n }",
"public void setLabel(String label) {\n this.label = label == null ? null : label.trim();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(204, 204, 204));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel1.setText(\"TRANG CHỦ\");\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Image/Untitled-2.png\"))); // NOI18N\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 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(70, 70, 70)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 794, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(398, 398, 398)\n .addComponent(jLabel1)))\n .addContainerGap(175, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(35, 35, 35)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(41, 41, 41)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(354, Short.MAX_VALUE))\n );\n }",
"String getLabel();",
"String getLabel();",
"public void setLabel(String rawLabel) { //sets the label\n\t\tthis.rawLabel = rawLabel; //save the raw label\n\n\t\t//Add spaces to each end of the rawLabel to make it\n\t\t// easier to center the label in the LWButton.\n\t\tthis.label = \" \" + rawLabel + \" \";\n\t\tthis.invalidate();\n\t\tthis.repaint();\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n infoLabel = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n infoLabel.setName(\"infoLabel\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(infoLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(infoLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 383, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n clefJLabel = new javax.swing.JLabel();\n valeurJLabel = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n\n jLabel1.setText(\"Clef:\");\n\n jLabel2.setText(\"Valeur:\");\n\n clefJLabel.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n\n valeurJLabel.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(jLabel2)\n .add(18, 18, 18)\n .add(valeurJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .add(layout.createSequentialGroup()\n .add(jLabel1)\n .add(31, 31, 31)\n .add(clefJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 75, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(0, 197, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(12, 12, 12)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel1)\n .add(clefJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel2)\n .add(valeurJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(new Color(60, 179, 113));\n\t\tframe.setBounds(100, 100, 622, 486);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJLabel lblNewLabel = new JLabel(\"INSCRIPTION NESTI\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\n\t\tlblNewLabel.setBounds(0, 28, 222, 14);\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tframe.getContentPane().add(lblNewLabel);\n\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Vous pouvez vous inscrire via ce formulaire :\");\n\t\tlblNewLabel_1.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlblNewLabel_1.setBounds(20, 52, 293, 14);\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Votre nom :\");\n\t\tlblNewLabel_2.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlblNewLabel_2.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel_2.setBounds(27, 86, 89, 14);\n\t\tframe.getContentPane().add(lblNewLabel_2);\n\n\t\tlblNewLabel_3 = new JLabel(\"Votre pr\\u00E9nom :\");\n\t\tlblNewLabel_3.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlblNewLabel_3.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel_3.setBounds(31, 128, 100, 14);\n\t\tframe.getContentPane().add(lblNewLabel_3);\n\n\t\tlblNewLabel_4 = new JLabel(\"Ville :\");\n\t\tlblNewLabel_4.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlblNewLabel_4.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel_4.setBounds(27, 172, 46, 14);\n\t\tframe.getContentPane().add(lblNewLabel_4);\n\n\t\tlblNewLabel_5 = new JLabel(\"* E-mail : \");\n\t\tlblNewLabel_5.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlblNewLabel_5.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel_5.setBounds(22, 221, 71, 14);\n\t\tframe.getContentPane().add(lblNewLabel_5);\n\n\t\tlblNewLabel_6 = new JLabel(\"* Pseudo : \");\n\t\tlblNewLabel_6.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlblNewLabel_6.setBounds(27, 273, 85, 14);\n\t\tframe.getContentPane().add(lblNewLabel_6);\n\n\t\tlblNewLabel_7 = new JLabel(\"* Mot De Passe : \");\n\t\tlblNewLabel_7.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlblNewLabel_7.setBounds(27, 323, 114, 14);\n\t\tframe.getContentPane().add(lblNewLabel_7);\n\n\t\tlblNewLabel_8 = new JLabel(\"* Champs obligatoires\");\n\t\tlblNewLabel_8.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlblNewLabel_8.setBounds(285, 416, 158, 20);\n\t\tframe.getContentPane().add(lblNewLabel_8);\n\n\t\ttextFieldName = new JTextField();\n\t\ttextFieldName.setBounds(170, 83, 409, 20);\n\t\tframe.getContentPane().add(textFieldName);\n\t\ttextFieldName.setColumns(10);\n\n\t\ttextField_FirstName = new JTextField();\n\t\ttextField_FirstName.setBounds(170, 125, 409, 20);\n\t\tframe.getContentPane().add(textField_FirstName);\n\t\ttextField_FirstName.setColumns(10);\n\n\t\ttextField_Town = new JTextField();\n\t\ttextField_Town.setBounds(170, 170, 409, 20);\n\t\tframe.getContentPane().add(textField_Town);\n\t\ttextField_Town.setColumns(10);\n\n\t\ttextField_Email = new JTextField();\n\n\t\ttextField_Email.setBounds(170, 219, 409, 20);\n\t\tframe.getContentPane().add(textField_Email);\n\t\ttextField_Email.setColumns(10);\n\n\t\ttextField_Pseudo = new JTextField();\n\t\ttextField_Pseudo.setBounds(170, 271, 409, 20);\n\t\tframe.getContentPane().add(textField_Pseudo);\n\t\ttextField_Pseudo.setColumns(10);\n\n\t\ttextField_Mtp = new JTextField();\n\t\ttextField_Mtp.setBounds(170, 320, 409, 20);\n\t\tframe.getContentPane().add(textField_Mtp);\n\t\ttextField_Mtp.setColumns(10);\n\n\t\tJButton btnNewButton = new JButton(\"INSCRIPTION\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tvalidation();\n\t\t\t\t\n\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBackground(new Color(0, 191, 255));\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tbtnNewButton.setBounds(285, 369, 160, 46);\n\t\tbtnNewButton.setBorder(new RoundedBorder(10));\n\t\tframe.getContentPane().add(btnNewButton);\n\n\t\tpanel = new JPanel() {\n\n\t\t\tpublic void paintComponent(Graphics g) {\n\t\t\t\tImage img = Toolkit.getDefaultToolkit().getImage(Connection.class.getResource(\"/image/image2.jpg\"));\n\t\t\t\tg.drawImage(img, 0, 0, this.getWidth(), this.getHeight(), this);\n\t\t\t}\n\t\t};\n\t\tpanel.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tpanel.setLayout(new BorderLayout(0, 0));\n\t\tpanel.setBounds(0, 0, 606, 447);\n\t\tframe.getContentPane().add(panel);\n\n\t}",
"DepartureBox(Label label)\n {\n label.getStyleClass().add(\"stopover-label\");\n getStyleClass().addAll(\"bordered-pane\", \"white-background\");\n getChildren().add(label);\n layoutControls();\n addEventHandlers();\n }",
"public JLabel getJLabel(String txt) {\r\n\t\treturn new JLabel(txt);\r\n\t}",
"public void motif_zone(){\n\n JLabel lbl_Motif = new JLabel(\"Motif du Rapport :\");\n lbl_Motif.setBounds(40, 130, 119, 16);\n add(lbl_Motif);\n\n motif_content = new JTextField();\n motif_content.setBounds(200, 130, 200, 22);\n motif_content.setText(rapport_visite.elementAt(DAO_Rapport.indice)[4]);\n motif_content.setEditable(false);\n add(motif_content);\n\n\n\n }",
"private javax.swing.JLabel getJLabel15() {\n\t\tif(jLabel15 == null) {\n\t\t\tjLabel15 = new javax.swing.JLabel();\n\t\t\tjLabel15.setText(\"Monto Vendidos:\");\n\t\t\tjLabel15.setPreferredSize(new java.awt.Dimension(105,20));\n\t\t\tjLabel15.setVerticalAlignment(javax.swing.SwingConstants.CENTER);\n\t\t\t//jLabel15.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,1));\n\t\t\tjLabel15.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12));\n\t\t\tjLabel15.setFocusable(false);\n\t\t}\n\t\treturn jLabel15;\n\t}",
"public void\nsetNewLabel()\nthrows Exception\n{\n\tdouble lineLength = this.getNucLabelLineLength();\n\tif (lineLength <= 0.0)\n\t\tlineLength = ComplexDefines.NUCLABEL_LINE_LENGTH;\n\tthis.setNewLabel(\n\t\tnew Font(\"Helvetica\", Font.PLAIN, 12),\n\t\tthis.getParentSSData2D().getNucLabelLineWidth(),\n\t\tlineLength, Color.black, this.getID());\n}",
"private javax.swing.JLabel getJLabel2() {\n\t\tif(jLabel2 == null) {\n\t\t\tjLabel2 = new javax.swing.JLabel();\n\t\t\tjLabel2.setText(\"A. Lista:\");\n\t\t\tjLabel2.setPreferredSize(new java.awt.Dimension(80,20));\n\t\t\tjLabel2.setFocusable(false);\n\t\t}\n\t\treturn jLabel2;\n\t}",
"Label setLocation();",
"public String getLabel()\r\n {\r\n return label;\r\n }"
] | [
"0.75298506",
"0.7524063",
"0.7500044",
"0.74234414",
"0.7376604",
"0.7270919",
"0.7255701",
"0.7213383",
"0.7213383",
"0.72027576",
"0.7196441",
"0.71478236",
"0.7134711",
"0.7129573",
"0.7122222",
"0.71081716",
"0.7103396",
"0.7101679",
"0.70693505",
"0.70609784",
"0.70365524",
"0.70365524",
"0.70365524",
"0.69987124",
"0.69703484",
"0.6957948",
"0.6954608",
"0.6952571",
"0.6894762",
"0.6884923",
"0.68790454",
"0.68738866",
"0.68714386",
"0.68530804",
"0.68430483",
"0.6840807",
"0.6838422",
"0.68277204",
"0.6812797",
"0.68097115",
"0.6806207",
"0.67938095",
"0.67784977",
"0.6766901",
"0.67644674",
"0.6763141",
"0.67620724",
"0.67482865",
"0.67482865",
"0.67449987",
"0.67406344",
"0.6734914",
"0.67307574",
"0.67231476",
"0.67231154",
"0.66915923",
"0.668675",
"0.6681086",
"0.66727483",
"0.66566086",
"0.66523576",
"0.6649553",
"0.66442645",
"0.6637332",
"0.66261023",
"0.6625002",
"0.6623288",
"0.6623041",
"0.66183555",
"0.66120446",
"0.66001284",
"0.65945923",
"0.6593598",
"0.6590578",
"0.65794104",
"0.65793264",
"0.6576464",
"0.6564504",
"0.65630555",
"0.6560015",
"0.65562946",
"0.6555414",
"0.6553936",
"0.65452343",
"0.6544972",
"0.65433747",
"0.6536997",
"0.6535145",
"0.6535145",
"0.6531067",
"0.65292656",
"0.6524193",
"0.6519858",
"0.6506916",
"0.6496082",
"0.6496024",
"0.6489081",
"0.64799786",
"0.64772004",
"0.64754456",
"0.6465551"
] | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
choose = new javax.swing.JButton();
PicLocation = new javax.swing.JTextField();
money = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
action = new javax.swing.JButton();
jPanel1 = new javax.swing.JPanel();
jLabel3 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
choose.setLabel("选择");
choose.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
chooseActionPerformed(evt);
}
});
PicLocation.setDisabledTextColor(new java.awt.Color(0, 0, 0));
PicLocation.setEnabled(false);
PicLocation.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
PicLocationActionPerformed(evt);
}
});
jLabel1.setText("图片位置:");
jLabel2.setText("应收金额:");
action.setText("确认计费");
action.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
try {
actionActionPerformed(evt);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 303, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 303, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 440, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 175, Short.MAX_VALUE)
.addContainerGap()))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(37, 37, 37)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel1))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(PicLocation, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(choose))
.addGroup(layout.createSequentialGroup()
.addComponent(money, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(action))))
.addGroup(layout.createSequentialGroup()
.addGap(38, 38, 38)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(407, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(choose)
.addComponent(PicLocation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(action)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(money, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(13, 13, 13))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\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 .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public FrmMenu() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\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 .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"public Ablak() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\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 .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] | [
"0.7321245",
"0.7292375",
"0.7292375",
"0.7292375",
"0.7286756",
"0.7250393",
"0.7215278",
"0.7208825",
"0.7197639",
"0.71918",
"0.7185626",
"0.716065",
"0.71489197",
"0.7094757",
"0.7081307",
"0.7057363",
"0.69892997",
"0.6978972",
"0.6956389",
"0.69543713",
"0.69465107",
"0.6943616",
"0.69370526",
"0.69335246",
"0.6928895",
"0.69262075",
"0.69259804",
"0.69132626",
"0.69122165",
"0.68949795",
"0.6893638",
"0.689148",
"0.68909764",
"0.6890215",
"0.6884557",
"0.688259",
"0.68825203",
"0.6878597",
"0.6876452",
"0.6876008",
"0.6872711",
"0.68606186",
"0.6857626",
"0.6856689",
"0.6856538",
"0.68560165",
"0.6854488",
"0.6853594",
"0.6853594",
"0.6844268",
"0.68379426",
"0.68377364",
"0.6829578",
"0.6829284",
"0.6827213",
"0.6825348",
"0.6823862",
"0.68184686",
"0.68176556",
"0.6810581",
"0.6809514",
"0.6809368",
"0.68090004",
"0.68081117",
"0.680376",
"0.67957234",
"0.6795017",
"0.6793054",
"0.679084",
"0.6790513",
"0.6789456",
"0.67890406",
"0.6783252",
"0.6767314",
"0.6766593",
"0.67663574",
"0.67581284",
"0.67565966",
"0.67531246",
"0.6752959",
"0.67438525",
"0.67397165",
"0.6738271",
"0.67369807",
"0.67342347",
"0.6728663",
"0.67280626",
"0.6720753",
"0.6717359",
"0.6715002",
"0.671486",
"0.67094135",
"0.670803",
"0.67050165",
"0.67018557",
"0.67018354",
"0.67003953",
"0.6698949",
"0.6695529",
"0.6692286",
"0.6691619"
] | 0.0 | -1 |
Determines if the graph has been initially laid out. This method should be called prior to any painting to be done by the graph layout manager, as most internal variables are only initialized during layout. | public boolean isInitialized() {
return initialized;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isWasLayouting();",
"public boolean isShowGraph() {\n return showGraph;\n }",
"@Override\n public boolean isSetupToBeDrawn() {\n return !(designParameters == null || slabStrip == null || graphicsContext == null || colour == null || slabImageScale == 0);\n }",
"public boolean isDisplayed() {\n return graphConfig.isDisplayed();\n }",
"public boolean provideGraphInfo() { return node_size == NodeSize.GRAPHINFO; }",
"public boolean isGraphActive()\n { \n return false;\n }",
"public boolean isInitialized() {\n return (WINDOW != null && WINDOW_BORDER != null);\n }",
"public boolean isInit() {\n\t\t\treturn this.gridIsInit;\n\t\t}",
"public boolean isLayoutNeeded() {\n return this.mLayoutNeeded;\n }",
"private boolean isCoupledGraphSelected() {\n\t\treturn (getMainTabbedPane().getSelectedComponent().getName().equals(\"Coupled\"));\n\t}",
"public boolean isInitial() {\n return currentItemState == ItemProcessingState.INITIAL;\n }",
"public boolean isSetGraph_addr() {\n return this.graph_addr != null;\n }",
"private void checkIfReadyToParse() {\r\n\t\tif (this.hostGraph != null)\r\n\t\t\tif (this.stopGraph != null)\r\n\t\t\t\tif (this.criticalPairs != null || this.criticalPairGraGra != null) {\r\n\t\t\t\t\tthis.readyToParse = true;\r\n\t\t\t\t}\r\n\t}",
"private boolean isLayouting() {\n return isLayouting;\n }",
"protected boolean canPaintGraph() {\r\n\t\treturn pv.canPaintGraph;\r\n\t}",
"public boolean isShowLegend() { return _legend.isVisible(); }",
"public boolean isShouldFillShape() {\n return this.shouldFillShape;\n }",
"private void checkIfAllGraphRelativeLayoutsAreGone() {\n\n if (mHeartRateLayout.getVisibility() == View.GONE && mSkinTempLayout.getVisibility() == View.GONE &&\n mBodyTempLayout.getVisibility() == View.GONE && mBloodPressureLayout.getVisibility() == View.GONE &&\n mActivityTypeLayout.getVisibility() == View.GONE && mPerspirationLayout.getVisibility() == View.GONE) {\n\n tvNoData.setVisibility(View.VISIBLE);\n }\n else {\n\n tvNoData.setVisibility(View.GONE);\n }\n }",
"public boolean isGraphEnabled() {\r\n \t\treturn graph.isEnabled();\r\n \t}",
"private boolean hasTableContainerLoaded() {\n return delegationDefaultCreationScreen.tableContainer.isDisplayed();\n }",
"@java.lang.Override\n public boolean hasFillBehavior() {\n return fillBehavior_ != null;\n }",
"public boolean hasNonEscapingEdges() {\n return addedEdges != null;\n }",
"boolean isDrawState()\n\t{\n\t\treturn !state.contains(0);\n\t}",
"public boolean isGridPainted() {\r\n return gridPainted;\r\n }",
"public void checkHostGraphAndNextStep() {\r\n\t\tif (this.hostGraph != null) {\r\n\t\t\tthis.stepPanel.setStep(StepPanel.STEP_STOP_GRAPH);\r\n\t\t\tthis.gragraNames.setSelectedIndex(-1);\r\n\t\t}\r\n\t}",
"public boolean checkLastNodeStatus()\r\n {\r\n return visitedNodes.isEmpty();\r\n }",
"public boolean isSet() {\n return nViewportUpdates > 0 && nWindowUpdates > 0;\n }",
"public boolean isReady() {\n return mPoints != null && mPoints.size() >= MINIMUM_SIZE;\n }",
"private void isPopulateView() {\n if (!isPopulate) {\n llHeader.setVisibility(View.GONE);\n CoordinatorLayout.LayoutParams relativeParams = new CoordinatorLayout.LayoutParams(CoordinatorLayout.LayoutParams.MATCH_PARENT, CoordinatorLayout.LayoutParams.WRAP_CONTENT);\n relativeParams.setMargins(0, 0, 0, 0);\n rlMain.setLayoutParams(relativeParams);\n }\n }",
"protected boolean isChartViewDrawn()\n {\n return mChartViewDrawn;\n }",
"public boolean isDynamicGraph();",
"public boolean comesFromDiagramElement() {\n return getOriginalElement() != null;\n }",
"private boolean isConsideredFresh() {\n \t\treturn this.isNew || this.area.getPolygon() == null;\n \t}",
"boolean hasFillBehavior();",
"boolean isParentInitialized();",
"public boolean isEmpty()\n {\n return graph.isEmpty();\n }",
"public boolean needsNeighborhood()\r\n\t{\r\n\t\treturn m_needsNeighborhood;\t\r\n\t}",
"public boolean isStartingVertexCity() {\r\n\t\t\treturn (getDegrees() == ZERO_DEGREE);\r\n\t\t}",
"public boolean drawNodeLegend() {\n return node_legend_flag;\n }",
"public boolean isInitialRefreshComplete() {\r\n return initialRefreshComplete;\r\n }",
"public boolean isEmpty() {\n return vertexLayer.isEmpty();\n }",
"public boolean initialConditions() {\n\n boolean evaluable;\n\n\n evaluable = diag.directedLinks();\n\n if (evaluable == false) {\n System.out.print(\"Influence Diagram with no directed links\\n\\n\");\n return (false);\n }\n\n evaluable = ((((IDWithSVNodes) diag).hasOnlyOneTerminalSVNode())\n || (((IDWithSVNodes) diag).hasOnlyOneValueNode()));\n\n\n if (evaluable == false) {\n System.out.print(\"Influence Diagram with 0 or more than 1 terminal super value nodes\\n or hasn't got an only utility node\\n\");\n return (false);\n }\n\n evaluable = diag.hasCycles();\n if (evaluable == true) {\n System.out.print(\"Influence Diagram with cycles\\n\\n\");\n return (false);\n }\n\n diag.addNonForgettingArcs();\n\n evaluable = diag.pathBetweenDecisions();\n if (evaluable == false) {\n System.out.print(\"Influence Diagram with non ordered decisions\\n\\n\");\n return (false);\n }\n\n evaluable = ((IDWithSVNodes) diag).isTreeStructureSV();\n if (evaluable == false) {\n System.out.print(\"Influence Diagram whose structure of value nodes isn't a tree\\n\\n\");\n return (false);\n }\n\n // Remove barren nodes\n\n //diag.eliminateRedundancy();\n diag.removeBarrenNodes();\n\n\n\n // Return true if OK\n\n return (true);\n }",
"@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}",
"public boolean getModelChartIsVisible();",
"public boolean hasDisplay() {\n return displayBuilder_ != null || display_ != null;\n }",
"public boolean isFinished() {\n Figure[] figures = this.getFigures();\n for (Figure figure : figures) {\n if (this.map.isFigureInHome(figure) == -1) {\n return false;\n }\n }\n\n return true;\n }",
"public boolean isLegend() {\n return this.legend;\n }",
"public boolean hasFirstFrame() {\n return firstFrame_ != null;\n }",
"public boolean isModelChartIsVisible();",
"boolean hasMosaicLayout();",
"public boolean isSetShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SHOWANIMATION$20) != null;\n }\n }",
"public boolean hasBeenVisited() {\n\t\treturn visited; // Replace with your code\n\t}",
"public void startGraph() {\r\n this.setStatus(false);\r\n this.isGraphStarted = true;\r\n\r\n // if (Alg not started yet or Alg started, but not ready for graph) or\r\n // (Alg started but (already read from DB but now fileSelected) or (DB\r\n // selected but not read yet))\r\n if ((!this.is_alg_started || !this.isAlgStartedForGraph)\r\n || (this.is_alg_started && ((this.is_already_read_from_DB && this.UseFile.isSelected())\r\n || (!this.is_already_read_from_DB && this.UseDB.isSelected())))) {\r\n this.dBInError = false;\r\n this.startALG(false);\r\n } else {\r\n try {\r\n Thread t1 = new Thread(new MyGraphGUI(this.display_sub_current, (ChineseWhispers) this.cw.clone(),\r\n this.display_edges_temp, this.scale_temp, 30, this.display_degree_temp));\r\n t1.start();\r\n } catch (CloneNotSupportedException e) {\r\n e.printStackTrace();\r\n }\r\n this.setStatus(true);\r\n this.isGraphStarted = false;\r\n this.isAlgStartedForGraph = true;\r\n }\r\n }",
"public boolean isDescriptionInitialized() {\n return description_is_initialized; \n }",
"@Override\n public boolean isRealFigure() {\n return getD() > 0 && super.isRealFigure();\n }",
"public boolean isReadyToRender() {\n return mHasSwapChain;\n }",
"public boolean isInitialSetuped(){\r\n\t\treturn initialSetuped;\r\n\t}",
"protected synchronized boolean isLabelReady() {\n\t\treturn label != null;\r\n\t}",
"public boolean isFrontLoadLast() {\n return frontLoadLast;\n }",
"protected boolean isFullyInitialized() {\n return html == null;\n }",
"public boolean isStartState() {\r\n\t\treturn flow.getStartState() == this;\r\n\t}",
"public boolean isContentPainted() {\r\n return contentPainted;\r\n }",
"public boolean hasBeenDisplayed() {\n return beenDisplayed;\n }",
"@Override\n\tpublic Boolean initTool() {\n\t\tHalfEdgeDataStructure<CPMVertex, CPMEdge, CPMFace> graph = controller.getEditedGraph();\n\t\tif (graph == null)\n\t\t\treturn false;\n\t\ttry {\n\t\t\tHalfEdgeUtility.removeAllFaces(graph);\n\t\t\tSurfaceUtility.linkAllEdges(graph);\n\t\t\tSurfaceUtility.fillHoles(graph);\n\t\t\tSurfaceUtility.constructBoundary(graph);\n\t\t} catch (SurfaceException e1) {\n\t\t\tcontroller.setStatus(e1.getMessage());\n\t\t}\n\t\tif (!ConsistencyCheck.isThreeConnected(graph)){\n\t\t\tcontroller.setStatus(\"graph not 3-connected\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!halfedge.triangulationutilities.ConsistencyCheck.isDisk(graph)){\n\t\t\tcontroller.setStatus(\"Graph is no disk!\");\n\t\t\treturn false;\n\t\t}\t\t\t\n\t\tHalfEdgeDataStructure<CPMVertex, CPMEdge, CPMFace> newGraph = null;\n\t\ttry {\n\t\t\tnewGraph = new HalfEdgeDataStructure<CPMVertex, CPMEdge, CPMFace>(controller.getEditedGraph());\n\t\t\tAlexandrovCap.constructCap(newGraph, 1E-5, 200);\n\t\t\tcontroller.setStatus(\"cap successfully constructed\");\n\t\t} catch (Exception e) {\n\t\t\tcontroller.setStatus(e.getMessage());\n\t\t\treturn false;\n\t\t}\n\t\tviewer.updateGeometry(newGraph);\n\t\tviewer.encompass();\n\t\treturn false;\n\t}",
"public final boolean isChildrenLayoutNecessary() {\n return isStatusBitsNonZero(CHILDREN_LAYOUT_NECESSARY_BIT);\n }",
"public boolean isSetDisplay() {\n return this.display != null;\n }",
"public boolean hasFirstFrame() {\n return firstFrameBuilder_ != null || firstFrame_ != null;\n }",
"boolean hasStartingConfig() {\n return startCfg_ != null;\n }",
"protected synchronized void initGraph() throws Throwable {\r\n\t\tif (!initialized) {\r\n\t\t\tinitialized = true;\r\n\t\t\tif (rootGenerator instanceof MultipleRootGenerator) {\r\n\t\t\t\tCollection<Node<T, V>> roots = ((MultipleRootGenerator<T>) rootGenerator).getRoots().stream().map(n -> newNode(null, n)).collect(Collectors.toList());\r\n\t\t\t\tfor (Node<T, V> root : roots) {\r\n\t\t\t\t\tlabelNode(root);\r\n\t\t\t\t\topen.add(root);\r\n\t\t\t\t\tlogger.info(\"Labeled root with {}\", root.getInternalLabel());\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tNode<T, V> root = newNode(null, ((SingleRootGenerator<T>) rootGenerator).getRoot());\r\n\t\t\t\tlabelNode(root);\r\n\t\t\t\topen.add(root);\r\n\t\t\t}\r\n\r\n\t\t\t// check if the equals method is explicitly implemented.\r\n\t\t\t// Method [] methods = open.peek().getPoint().getClass().getDeclaredMethods();\r\n\t\t\t// boolean containsEquals = false;\r\n\t\t\t// for(Method m : methods)\r\n\t\t\t// if(m.getName() == \"equals\") {\r\n\t\t\t// containsEquals = true;\r\n\t\t\t// break;\r\n\t\t\t// }\r\n\t\t\t//\r\n\t\t\t// if(!containsEquals)\r\n\t\t\t// this.parentDiscarding = ParentDiscarding.NONE;\r\n\t\t}\r\n\t}",
"protected final boolean computeHasNext() {\n return this.getEnds().getGraph().getPredecessorEdges(this.getNext()).isEmpty();\n }",
"public boolean isViewing() { RMShape p = getParent(); return p!=null && p.isViewing(); }",
"public boolean isEmpty() {\n return this.top == null;\n }",
"public boolean isSetObservedLobeAnalysis() {\n return ((this.observedLobeAnalysis != null) && (!this.observedLobeAnalysis.isEmpty()));\n }",
"protected final boolean isShowing() {\n synchronized (getPeerTreeLock()) {\n if (isVisible()) {\n final LWContainerPeer<?, ?> container = getContainerPeer();\n return (container == null) || container.isShowing();\n }\n }\n return false;\n }",
"public boolean isLoaded()\n {\n return m_syntheticKind == JCacheSyntheticKind.JCACHE_SYNTHETHIC_LOADED;\n }",
"public boolean a() {\n if (getChildCount() == 0) {\n ArrayList<Drawable> arrayList = this.f2858d;\n if (arrayList == null || arrayList.size() == 0) {\n return true;\n }\n }\n return false;\n }",
"boolean hasGridLayout();",
"public final boolean isAcyclic() {\n return this.topologicalSort().size() == this.sizeNodes();\n }",
"public boolean isSetTblBg()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TBLBG$0) != 0;\n }\n }",
"public boolean isOver() {\n return this.treeNode.getBuilding().isFinished();\n }",
"boolean isReadyForShowing();",
"public boolean isInit() {\r\n\t\treturn isInit;\r\n\t}",
"public boolean isPaletteRoot() {\n return className == null \n && parent != null && parent.parent == null;\n }",
"public boolean isBackgroundPainted() {\r\n return backPainted;\r\n }",
"public boolean isLoaded() {\n\t\treturn started;\n\t}",
"public boolean isSetObservedPolarisationAnalysis() {\n return ((this.observedPolarisationAnalysis != null) && (!this.observedPolarisationAnalysis.isEmpty()));\n }",
"public boolean isShowing() {\n return getRoot().isShowing();\n }",
"public boolean isRenderInsideShape() {\n return this.renderInsideShape;\n }",
"public boolean hasVertices() {\n return mFactoryVertices != null && mFactoryVertices.size() > 0;\n }",
"public boolean isEmpty()\r\n {\n return this.top == null;\r\n }",
"public boolean hasFront();",
"boolean isDrawOnChartArea();",
"public boolean getPlot() {\r\n\t\treturn this.plot;\r\n\t}",
"public boolean isReady() {\n return mInputPoints != null && mOutputPoints != null &&\n mInputPoints.size() == mOutputPoints.size() &&\n mInputPoints.size() >= getMinimumPoints();\n }",
"boolean hasGrid();",
"public boolean isPalette() {\n return className == null \n && parent != null && parent.parent != null \n && parent.parent.parent == null;\n }",
"@Override\n\tpublic boolean isStartingState(State state, MaxNode maxNode) {\n\t\treturn false;\n\t}",
"public boolean isPracticallyEmpty() {\n\treturn getDimension()==0 ||\n\t getDimension()==1 && id2label.elementAt(0).equals(DUMMY_LABEL);\n }",
"public boolean isSet() {\n return !this.stack.isEmpty();\n }",
"public boolean isLoaded() {\n\t\treturn chestsLoaded;\r\n\t}",
"public boolean isSetBorder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(BORDER$22) != null;\n }\n }"
] | [
"0.6365209",
"0.63248104",
"0.6278527",
"0.6223948",
"0.609486",
"0.6079276",
"0.60197127",
"0.58729726",
"0.58501685",
"0.58457625",
"0.5820516",
"0.58128214",
"0.5809735",
"0.57965875",
"0.575688",
"0.5728283",
"0.57107466",
"0.56418276",
"0.5605365",
"0.55889493",
"0.5560157",
"0.5554571",
"0.55481833",
"0.5542923",
"0.55315053",
"0.552685",
"0.5523155",
"0.55185384",
"0.55143726",
"0.550859",
"0.55057895",
"0.55043423",
"0.5501937",
"0.5500617",
"0.5498028",
"0.54977",
"0.5488442",
"0.54867697",
"0.5486387",
"0.54733014",
"0.5461366",
"0.54606104",
"0.54389983",
"0.5431466",
"0.5424278",
"0.5418767",
"0.54062706",
"0.5403016",
"0.53975993",
"0.5394029",
"0.5392751",
"0.5375956",
"0.5371599",
"0.5367954",
"0.5357327",
"0.53488266",
"0.5348163",
"0.53479326",
"0.5346718",
"0.5332501",
"0.53322166",
"0.53318924",
"0.5328629",
"0.53279245",
"0.5326698",
"0.53230536",
"0.53142387",
"0.5311136",
"0.5299839",
"0.5292882",
"0.52865046",
"0.528256",
"0.5281248",
"0.5277841",
"0.52771735",
"0.5268721",
"0.52659065",
"0.5265813",
"0.52636534",
"0.5263636",
"0.5259653",
"0.5256083",
"0.5249374",
"0.5247399",
"0.52466196",
"0.52453166",
"0.52445084",
"0.5243069",
"0.52403975",
"0.5239047",
"0.5238615",
"0.5235472",
"0.5216723",
"0.52159387",
"0.52108616",
"0.52098304",
"0.5202781",
"0.51985645",
"0.51964426",
"0.51956654",
"0.5193989"
] | 0.0 | -1 |
Implementation of the visit() method of the Visitor interface. | public boolean visit( Vertex vertexToVisit ) {
VisualVertex visualVertex;
Arc2D arc;
double annulusWedgeDegree;
double positionDegree;
double startAtDegree;
int depth;
VertexDegrees degrees = new VertexDegrees();
VertexDegrees parentDegrees;
this.logCategory.debug( "Visiting " + vertexToVisit );
try {
visualVertex = this.vGraph.getVisualVertex( vertexToVisit );
depth = this.tree.getDepth( vertexToVisit );
this.logCategory.debug( "Depth: " + depth );
if( this.tree.getRoot() == vertexToVisit ) {
// For the root of the tree, set the annulus wedge to 360 degrees
annulusWedgeDegree = 360;
center = new Point2D.Double( this.tree.getHeight() * this.radius / 2, this.tree.getHeight() * this.radius / 2 );
this.logCategory.debug( "Setting center " + center );
visualVertex.setLocation( center.getX(), center.getY() );
degrees.annulusWedgeDegree = annulusWedgeDegree;
degrees.positionDegree = 0;
this.annulusWedgeMap.put( vertexToVisit, degrees );
this.previousParent = vertexToVisit;
}
else {
// For non-root, set the annulus wedge to:
// ( leaves of current node / leaves of parent node ) * annulus wedge of parent
Vertex parent = this.tree.getParent( vertexToVisit );
parentDegrees = (VertexDegrees) this.annulusWedgeMap.get( parent );
double parentAnnulusWedge = parentDegrees.annulusWedgeDegree;
Tree parentSubTree = this.tree.getSubTree( parent );
Tree subTree = this.tree.getSubTree( vertexToVisit );
// Note that 120 degrees here is valid only if the concentric circles
// are doubling in radius for every depth.
// 120 degrees is taken from cos(A)=radius/(radius/2)=0.5
annulusWedgeDegree =
Math.min(
( (double) subTree.getLeaves().size() / (double) parentSubTree.getLeaves().size() ) * parentAnnulusWedge,
Math.toDegrees( Math.acos( (this.radius * ( depth - 1 ) ) / (this.radius * depth) ) ) * 2 );
this.logCategory.debug( "Annulus Wedge: " + annulusWedgeDegree );
if( this.previousDepth != this.tree.getDepth( vertexToVisit ))
this.depthStartAtDegrees = parentDegrees.positionDegree - ( parentDegrees.annulusWedgeDegree / 2 );
if( this.previousParent != parent )
this.depthStartAtDegrees = parentDegrees.positionDegree - ( parentDegrees.annulusWedgeDegree / 2 );
positionDegree = this.depthStartAtDegrees + annulusWedgeDegree / 2;
this.logCategory.debug( "Start At:" + this.depthStartAtDegrees );
this.logCategory.debug( "Position:" + positionDegree );
arc = new Arc2D.Double(
center.getX() - ( this.radius / 2 ) * ( depth - 1 ),
center.getY() - ( this.radius / 2 ) * ( depth - 1 ),
(double) ( this.radius * ( depth - 1 )),
(double) ( this.radius * ( depth - 1 )),
positionDegree, 1,
Arc2D.OPEN );
visualVertex.setLocation( arc.getEndPoint().getX(), arc.getEndPoint().getY() );
degrees.annulusWedgeDegree = annulusWedgeDegree;
degrees.positionDegree = positionDegree;
this.annulusWedgeMap.put( vertexToVisit, degrees );
this.depthStartAtDegrees += annulusWedgeDegree;
this.previousDepth = this.tree.getDepth( vertexToVisit );
this.previousParent = parent;
}
}
catch( Exception ex ) {
ex.printStackTrace();
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void visit();",
"@Override\r\n\tpublic void visit() {\n\r\n\t}",
"@Override\r\n\tpublic void accept(Visitor v) {\r\n\t\tv.visit(this);\t\r\n\t}",
"public abstract void accept(Visitor visitor);",
"@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}",
"@Override\r\n\tpublic void accept(Visitor visitor) {\r\n\t\tvisitor.visit(this);\r\n\t}",
"@Override\n\tpublic void accept(Visitor visitor) {\n\t\tvisitor.visit(this);\n\t}",
"@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n }",
"@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n }",
"@Override\n\tpublic void accept(Visitor v) {\n\t\tv.visit(this);\n\t}",
"public abstract void accept(Visitor v);",
"void visit(Visitor visitor);",
"@Override\n\tpublic void accept(NodeVisitor visitor) {\n\t\tvisitor.visit(this);\n\t}",
"@Override\n\tpublic Object accept(Visitor visitor) {\n\t\treturn visitor.visit(this);\n\t}",
"@Override\n public void visit(NodeVisitor v){\n v.visit(this);\n }",
"public void accept(Visitor visitor);",
"public abstract void visit(V v) throws VisitorException;",
"@Override\n public void accept(TreeVisitor visitor) {\n }",
"@Override\n\tpublic void accept(TreeVisitor visitor) {\n\n\t}",
"public void accept(IVisitor visitor);",
"void accept(Visitor visitor);",
"void visit(Element node);",
"void accept(Visitor<V> visitor);",
"public void accept(Visitor visitor) {\n\t\tvisitor.visit(this);\n\t}",
"@Override\r\n \tpublic final void accept(IASTNeoVisitor visitor) {\r\n \t\tassertNotNull(visitor);\r\n \t\t\r\n \t\t// begin with the generic pre-visit\r\n \t\tif(visitor.preVisit(this)) {\r\n \t\t\t// dynamic dispatch to internal method for type-specific visit/endVisit\r\n \t\t\taccept0(visitor);\r\n \t\t}\r\n \t\t// end with the generic post-visit\r\n \t\tvisitor.postVisit(this);\r\n \t}",
"@Override\n public <T> T accept(Visitor<T> v) {\n return v.visit(this);\n }",
"public Object accept(Visitor v, Object params);",
"public interface Visitor {\n\t/* METHODS */\n\t/**\n\t * Visits a Liquor.\n\t * @param liquor The Liquor to visit.\n\t */\n\tvoid visit(Liquor liquor);\n\t\n\t/**\n\t * Visits a Tobacco.\n\t * @param tobacco The Tobacco to visit.\n\t */\n\tvoid visit(Tobacco tobacco);\n\t\n\t/**\n\t * Visits a Necessity.\n\t * @param necessity The Necessity to visit.\n\t */\n\tvoid visit(Necessity necessity);\n}",
"@Override\n\tpublic <T> T accept(ASTVisitor<T> v) {\n\t\treturn v.visit(this);\n\t}",
"public Object accept (Visitor v) {\n return v.visit(this);\n }",
"public void accept(ParseNodeVisitor visitor) {\n visitor.visit(this);\n }",
"public void accept(Visitor v) {\n\t\tv.visit(this);\n\t}",
"public void visit()\n\t{\n\t\t// Visit data element.\n\t\tcargo.visit();\n\t}",
"public interface Visitor {\n void accept(Element element);\n}",
"public abstract <E, F, D, I> E accept(ReturnVisitor<E, F, D, I> visitor);",
"@Override\r\n\tpublic void visitar(jugador jugador) {\n\t\t\r\n\t}",
"public void visit() {\n visited = true;\n }",
"@Override\n public void accept(ElementVisitor visitor) {\n if (visitor instanceof DefaultElementVisitor) {\n DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;\n defaultVisitor.visit(this);\n } else {\n visitor.visit(this);\n }\n }",
"@Override\n public void accept(ElementVisitor visitor) {\n if (visitor instanceof DefaultElementVisitor) {\n DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;\n defaultVisitor.visit(this);\n } else {\n visitor.visit(this);\n }\n }",
"@SuppressWarnings(\"unused\")\npublic interface Visitor {\n /**\n * <p>\n * Visits the given <code>Document</code>\n * </p>\n * \n * @param document\n * is the <code>Document</code> node to visit.\n */\n void visit(Document document);\n\n /**\n * <p>\n * Visits the given <code>DocumentType</code>\n * </p>\n * \n * @param documentType\n * is the <code>DocumentType</code> node to visit.\n */\n void visit(DocumentType documentType);\n\n /**\n * <p>\n * Visits the given <code>Element</code>\n * </p>\n * \n * @param node\n * is the <code>Element</code> node to visit.\n */\n void visit(Element node);\n\n /**\n * <p>\n * Visits the given <code>Attribute</code>\n * </p>\n * \n * @param node\n * is the <code>Attribute</code> node to visit.\n */\n void visit(Attribute node);\n\n /**\n * <p>\n * Visits the given <code>CDATA</code>\n * </p>\n * \n * @param node\n * is the <code>CDATA</code> node to visit.\n */\n void visit(CDATA node);\n\n /**\n * <p>\n * Visits the given <code>Comment</code>\n * </p>\n * \n * @param node\n * is the <code>Comment</code> node to visit.\n */\n void visit(Comment node);\n\n /**\n * <p>\n * Visits the given <code>Entity</code>\n * </p>\n * \n * @param node\n * is the <code>Entity</code> node to visit.\n */\n void visit(Entity node);\n\n /**\n * <p>\n * Visits the given <code>Namespace</code>\n * </p>\n * \n * @param namespace\n * is the <code>Namespace</code> node to visit.\n */\n void visit(Namespace namespace);\n\n /**\n * <p>\n * Visits the given <code>ProcessingInstruction</code>\n * </p>\n * \n * @param node\n * is the <code>ProcessingInstruction</code> node to visit.\n */\n void visit(ProcessingInstruction node);\n\n /**\n * <p>\n * Visits the given <code>Text</code>\n * </p>\n * \n * @param node\n * is the <code>Text</code> node to visit.\n */\n void visit(Text node);\n}",
"public void visit(Interested i);",
"public void accept(ExpressionNodeVisitor visitor);",
"public interface Visitor {\n //----------------------------------------------------------------------------------- \n\n /**\n * Visit method to handle <code>Assignment</code> elements.\n * \n * @param assignment Assignment object to be handled.\n */\n void visit(final Assignment assignment);\n\n /**\n * Visit method to handle <code>Delete</code> elements.\n * \n * @param delete Delete object to be handled.\n */\n void visit(final Delete delete);\n\n /**\n * Visit method to handle <code>Insert</code> elements.\n * \n * @param insert Insert object to be handled.\n */\n void visit(final Insert insert);\n\n /**\n * Visit method to handle <code>Join</code> elements.\n * \n * @param join Join object to be handled\n */\n void visit(final Join join);\n\n /**\n * Visit method to handle select elements.\n * \n * @param select Select object to be handled.\n */\n void visit(final Select select);\n\n /**\n * Visit method to handle <code>Table</code> elements.\n * \n * @param table Table object to be handled.\n */\n void visit(final Table table);\n\n /**\n * Visit method to handle <code>TableAlias</code> elements.\n * \n * @param tableAlias TableAlias object to be handled.\n */\n void visit(final TableAlias tableAlias);\n\n /**\n * Visit method to handle update elements.\n * \n * @param update Update object to be handled.\n */\n void visit(final Update update);\n\n /**\n * Visit method to handle <code>AndCondition</code> elements.\n * \n * @param andCondition AndCondition object to be handled.\n */\n void visit(final AndCondition andCondition);\n\n /**\n * Visit method to handle <code>Compare</code> elements.\n * \n * @param compare Compare object to be handled.\n */\n void visit(final Compare compare);\n\n /**\n * Visit method to handle <code>IsNullPredicate</code> elements.\n * \n * @param isNullPredicate IsNullPredicate object to be handled.\n */\n void visit(final IsNullPredicate isNullPredicate);\n\n /**\n * Visit method to handle <code>OrCondition</code> elements.\n * \n * @param orCondition OrCondition object to be handled.\n */\n void visit(final OrCondition orCondition);\n\n /**\n * Visit method to handle <code>Column</code> elements.\n * \n * @param column Column object to be handled.\n */\n void visit(final Column column);\n\n /**\n * Visit method to handle <code>NextVal</code> elements.\n * \n * @param nextVal NextVal object to be handled.\n */\n void visit(final NextVal nextVal);\n\n /**\n * Visit method to handle <code>Parameter</code> elements.\n * \n * @param parameter Parameter object to be handled.\n */\n void visit(final Parameter parameter);\n\n //-----------------------------------------------------------------------------------\n\n /**\n * Method returning constructed String.\n * \n * @return Constructed query string.\n */\n String toString();\n\n //----------------------------------------------------------------------------------- \n}",
"public void visit() {\n\t\tvisited = true;\n\t}",
"@Override\n\tpublic void visit(Matches arg0) {\n\t\t\n\t}",
"@Override\n public void accept(final SqlNodeVisitor<E> visitor) throws SQLException {\n visitor.visit(this);\n }",
"@Override\r\n\tpublic Relation accept(Visitor v)\t\t{ return v.visit(this);\t\t\t\t\t\t\t}",
"void visit(Text node);",
"@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}",
"@Override public <T> T apply(TreeVisitor<T> visitor)\n {\n return visitor.visit(this);\n }",
"<R,D> R accept(TreeVisitor<R,D> visitor, D data);",
"public abstract void accept(GameObjectVisitor v);",
"@Override public <T> T apply(TreeVisitor<T> visitor)\n {\n return visitor.visit(this);\n }",
"public Visitor visitor(Visitor v) \n { \n return visitor = v; \n }",
"public Object accept(ExpressionNodeVisitor visitor) {\n\t\t\n\t\treturn visitor.visit(this);\n\t\t\n\t}",
"public interface Visitor {\r\n \r\n /**\r\n * Visits an Operand and performs the action given when overriding\r\n * this method.\r\n * @param operand An Operand this Visitor has visited\r\n * @return \r\n * @see Operand\r\n */\r\n public void visit(Operand operand);\r\n \r\n /**\r\n * Visits an Operator and performs the action given when overriding\r\n * this method.\r\n * @param operator An Operator this Visitor has visited.\r\n * @see Operator\r\n */\r\n public void visit(Operator operator);\r\n \r\n}",
"public abstract void accept0(IASTNeoVisitor visitor);",
"@Override\r\n\tpublic void accept(iRenderVisitor visitor) {\n\t\tvisitor.render(this);\r\n\t\t\r\n\t}",
"public abstract void accept(CodeVisitor v);",
"public interface Visitable {\n\n\tpublic double accept(Visitor visitor);\n}",
"void visit(User user);",
"@Override\n\tpublic void visit(Matches arg0) {\n\n\t}",
"void visit(Entity node);",
"@Override\n\tpublic void visit(Division arg0) {\n\t\t\n\t}",
"public void visit(Request r);",
"@Override\n\tpublic void visit(Function arg0) {\n\n\t}",
"public interface Visitor<R> {\n\n //Lists\n public <T extends IRNode> R visit(List<T> ns);\n\n //IRStms\n public R visit(CJUMP n);\n\n public R visit(CMOVE n);\n\n public R visit(EXP n);\n\n public R visit(JUMP n);\n\n public R visit(LABEL n);\n\n public R visit(MOVE n);\n\n public R visit(SEQ n);\n\n //Types\n public R visit(BINOP n);\n\n public R visit(CALL n);\n\n public R visit(CONST n);\n\n public R visit(ESEQ n);\n\n //Statements\n public R visit(MEM n);\n\n public R visit(NAME n);\n\n public R visit(TEMP n);\n}",
"@Override\n\tpublic void visitarObjeto(Objeto o) {\n\t\t\n\t}",
"public void visit(Choke c);",
"void visit(Liquor liquor);",
"public void visit(Operand operand);",
"public interface Visitor {\n\tpublic void visit(WordTreeI wt);\n}",
"void accept0(ASTVisitor visitor) {\n boolean visitChildren = visitor.visit(this);\n if (visitChildren) {\n // visit children in normal left to right reading order\n acceptChild(visitor, getExpression());\n acceptChildren(visitor, this.typeArguments);\n acceptChild(visitor, getName());\n }\n visitor.endVisit(this);\n }",
"void visit(Entry entry);",
"@Override\r\n\tpublic void visit(User user) {\n\t\t\r\n\t}",
"@Override\n\tpublic void visit(Division arg0) {\n\n\t}",
"interface CarElement {\n // the element being visited accepts the visitor\n void accept(final CarElementVisitor visitor);\n}",
"void accept0(ASTVisitor visitor) {\r\n\t\tboolean visitChildren = visitor.visit(this);\r\n\t\tif (visitChildren) {\r\n\t\t\t// visit children in normal left to right reading order\r\n\t\t\tacceptChild(visitor, getExpression());\r\n\t\t\tacceptChildren(visitor, newArguments);\r\n\t\t\tacceptChildren(visitor, constructorArguments);\r\n\t\t\tacceptChildren(visitor, baseClasses);\r\n\t\t\tacceptChildren(visitor, declarations);\r\n\t\t}\r\n\t\tvisitor.endVisit(this);\r\n\t}",
"void accept(TmxElementVisitor visitor);",
"public void accept(ParseNodeVisitor visitor) {\n\t\tvisitor.visitEnter(this);\n\t\tvisitChildren(visitor);\n\t\tvisitor.visitLeave(this);\n\t}",
"public void accept(ParseNodeVisitor visitor) {\n\t\tvisitor.visitEnter(this);\n\t\tvisitChildren(visitor);\n\t\tvisitor.visitLeave(this);\n\t}",
"public void accept(ParseNodeVisitor visitor) {\n\t\tvisitor.visitEnter(this);\n\t\tvisitChildren(visitor);\n\t\tvisitor.visitLeave(this);\n\t}",
"@Override\n\tpublic void visit(final Aunt person) {\n\t\t\n\t}",
"@Override\r\n\tpublic void accept(MemoryVisitor memVis) {\r\n\t\tmemVis.visit(this);\r\n\t}",
"@Override\n public void visit(Index node) {\n }",
"@Override\n public synchronized void accept(ClassVisitor cv) {\n super.accept(cv);\n }",
"@Override\r\n\tpublic void visit(TypeID typeID) {\n\r\n\t}",
"@Override\r\n\tpublic void visit(Personality personality)\r\n\t{\n\t\t\r\n\t}",
"void visit(Document document);",
"public Visitor() {}",
"public void accept(Visitor v, Context c) {\n\t\tv.visit(this, c);\n\t}",
"@Override\n\tpublic Object visit(SimpleNode node, Object data)\n\t{\n\t\t//Delegate to the appropriate class\n\t\treturn node.jjtAccept(this, data);\n\t}",
"protected void visit(Graph<VLabel, ELabel>.Vertex v) {\n }",
"public void visit(Call call) {}",
"public abstract int visit(SpatialVisitor visitor);",
"void visit(final NextVal nextVal);",
"public interface FlowerElement {\n public void accept(Visitor visitor);\n}",
"void accept(Visitor visitor, BufferedImage im);",
"public void visit(Message message);",
"@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n for (Step step : steps) {\n step.accept(visitor);\n }\n }",
"@Override\r\n\tpublic void visit(Page page) {\r\n\t\t// Some business logic I won't expose here\r\n\t\t// My boss won't be happy ;-)\r\n\t}"
] | [
"0.8366334",
"0.7958937",
"0.7832401",
"0.7749395",
"0.77420354",
"0.77406996",
"0.7737616",
"0.77192974",
"0.77192974",
"0.7693925",
"0.7683223",
"0.76634365",
"0.76525265",
"0.7572184",
"0.75688535",
"0.7487952",
"0.7477007",
"0.7414134",
"0.7370206",
"0.73087937",
"0.7262187",
"0.7129959",
"0.7087464",
"0.7070748",
"0.7058236",
"0.70281273",
"0.6984679",
"0.69373417",
"0.68693256",
"0.6868935",
"0.684526",
"0.68178153",
"0.67367566",
"0.67240226",
"0.6720062",
"0.6707405",
"0.6686703",
"0.66827655",
"0.66827655",
"0.66665894",
"0.6662116",
"0.66364723",
"0.65974545",
"0.6580941",
"0.6570052",
"0.65483564",
"0.65347177",
"0.6530459",
"0.65232474",
"0.65207195",
"0.65194505",
"0.6512987",
"0.6493473",
"0.64882636",
"0.6483501",
"0.64828897",
"0.64660406",
"0.64659643",
"0.64613026",
"0.6460422",
"0.64588904",
"0.6435319",
"0.6434582",
"0.643376",
"0.64324415",
"0.6430968",
"0.64260405",
"0.6420581",
"0.6417252",
"0.64169407",
"0.6414577",
"0.6398829",
"0.6380796",
"0.637537",
"0.6370342",
"0.6369188",
"0.63456565",
"0.63416266",
"0.6328589",
"0.63178957",
"0.63178957",
"0.63178957",
"0.6306868",
"0.630522",
"0.63045466",
"0.6297401",
"0.62889755",
"0.6271431",
"0.62690455",
"0.6266489",
"0.6246818",
"0.6241808",
"0.62412",
"0.6232474",
"0.6226965",
"0.6207096",
"0.6203545",
"0.61972845",
"0.61934924",
"0.61928314",
"0.6186627"
] | 0.0 | -1 |
Returns file information similar to the output of "stat t". | public String toTerseString()
{
return TextUtils.join(" ", new String[] {
this.file.getPath(),
String.valueOf(this.size),
String.valueOf(this.blockCount),
Integer.toHexString(this.mode.getValue()),
String.valueOf(this.userId),
String.valueOf(this.groupId),
Long.toHexString(this.deviceId),
String.valueOf(this.inode),
String.valueOf(this.hardLinkCount),
Long.toHexString(this.deviceIdSpecial >> 8),
Long.toHexString(this.deviceIdSpecial & 0xff),
String.valueOf(this.lastAccessed.getTime() / 1000),
String.valueOf(this.lastModified.getTime() / 1000),
String.valueOf(this.lastChanged.getTime() / 1000),
String.valueOf(this.blockSize)
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int stat(String pathname, Stat statbuf);",
"public static native FileStatus stat(String path) throws IOException;",
"@DISPID(6) //= 0x6. The runtime will prefer the VTID if present\r\n @VTID(13)\r\n short stat();",
"private void gatherFile(FileStatus[] fstat)\r\n\t{\r\n\t inputSize = 0;\t\r\n\t paths = new Path[fstat.length];\t\r\n\t for(int i=0;i<fstat.length;i++)\r\n\t {\r\n\t inputSize+=fstat[i].getLen();\r\n\t paths[i] = fstat[i].getPath();\r\n\t }\r\n\t }",
"public static native FileStatus lstat(String path) throws IOException;",
"private static void info ( File f ) {\n\tString nume = f . getName () ;\n\tif( f.isFile () )\n\tSystem.out.println ( \" Fisier : \" + nume ) ;\n\telse\n\tif( f.isDirectory () )\n\tSystem.out.println ( \" Director : \" + nume ) ;\n\tSystem.out.println (\n\t\" Cale absoluta : \" + f.getAbsolutePath () +\n\t\" \\n Poate citi : \" + f.canRead () +\n\t\" \\n Poate scrie : \" + f.canWrite () +\n\t\" \\n Parinte : \" + f.getParent () +\n\t\" \\n Cale : \" + f.getPath () +\n\t\" \\n Lungime : \" + f.length () +\n\t\" \\n Data ultimei modificari : \" +\n\tnew Date ( f.lastModified () ) ) ;\n\tSystem.out.println ( \" --------------\" ) ;\n\t}",
"int getFileInfoCount();",
"private void getDetailsOfFiles(){\n\t\tString path = tfile.getAbsolutePath();\n\t\t\n\t\ttype = path.substring(path.lastIndexOf('.')+1);\n\t\t\n\t\tif(path.contains(\"/\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"/\")+1);\n\t\t}else if(path.contains(\"\\\\\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"\\\\\")+1);\n\t\t}\n\t}",
"String getStats()\n {\n StringBuffer result = new StringBuffer(\"\\n<LogFile file='\" + file + \"'>\" +\n \"\\n <rewindCount value='\" + rewindCounter + \"'>Number of times this file was rewind to position(0)</rewindCount>\" +\n \"\\n <bytesWritten value='\" + bytesWritten + \"'>Number of bytes written to the file</bytesWritten>\" +\n \"\\n <position value='\" + position + \"'>FileChannel.position()</position>\" +\n \"\\n</LogFile>\" +\n \"\\n\" \n );\n\n return result.toString();\n }",
"IOStatistics getIOStatistics();",
"public abstract FStat stat(UnixRuntime r, String path) throws ErrnoException;",
"public void fileInfo(String info);",
"@java.lang.Override\n public int getFileInfoCount() {\n return fileInfo_.size();\n }",
"public String getStat() {\r\n\t\treturn stat;\r\n\t}",
"private static int m2538d(Context context) {\n try {\n File file = new File(Log.m2547a(context, Log.f1857e));\n if (file.exists()) {\n return file.list().length;\n }\n return 0;\n } catch (Throwable th) {\n BasicLogHandler.m2542a(th, \"StatisticsManager\", \"getFileNum\");\n return 0;\n }\n }",
"Map<String, Long> getAdminFileExtensionStats();",
"java.lang.String getFileLoc();",
"@java.lang.Override\n public entities.Torrent.FileInfo getFileInfo() {\n return fileInfo_ == null ? entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n }",
"@java.lang.Override\n public entities.Torrent.FileInfo getFileInfo() {\n return fileInfo_ == null ? entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n }",
"public final FileInfoBase getFileInfo() {\r\n return fileInfo;\r\n }",
"public FileDesc getFileDesc();",
"private static void printFileInfo(File file) {\n window.putLog(String.format(\"[%6dkb] Modified %s @%s\", 1 + file.length() / 1024,\n new SimpleDateFormat(\"YYYY-MM-dd HH:mm\").format(new Date(file.lastModified())),\n file.getPath().substring(workingDirectory.getParent().length())));\n }",
"public final int getAttributes() {\n\t\treturn m_info.getFileAttributes();\n\t}",
"entities.Torrent.FileInfo getFileInfo();",
"entities.Torrent.FileInfo getFileInfo();",
"long getFileSize();",
"public final int getFileStatus() {\n\t return m_fileStatus;\n\t}",
"public String getFileHeaderInfo() {\n return this.fileHeaderInfo;\n }",
"public FileInfo getFileInformation(SrvSession sess, TreeConnection tree, String name)\n throws IOException {\n\n // Check for the null file name\n \n if (name == null)\n return null;\n\n // Access the JDBC context\n\n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n\n // Check if the database is online\n \n if ( dbCtx.getDBInterface().isOnline() == false)\n throw new DiskOfflineException( \"Database is offline\");\n \n // Check if the path is a file stream\n \n FileState fstate = null;\n FileInfo finfo = null;\n \n if ( FileName.containsStreamName(name)) {\n\n // Check if there is an active file state for the stream\n \n fstate = getFileState(name,dbCtx,true);\n \n if ( fstate != null) {\n \n // Check if the file information is available\n \n finfo = (FileInfo) fstate.findAttribute(FileState.FileInformation);\n }\n\n // If the cached file information is not available then create it\n \n if ( finfo == null) { \n\n // Split the path into directory, file and stream name components\n \n String[] paths = FileName.splitPathStream(name); \n \n // Get, or create, the file state for main file path\n \n String filePath = paths[0] + paths[1];\n FileState parent = getFileState(filePath,dbCtx,true);\n \n // Check if the top level file exists\n \n if ( parent != null && parent.fileExists() == true) {\n \n // Get the top level file details\n \n DBFileInfo dbInfo = getFileDetails(name,dbCtx,parent);\n \n if ( dbInfo != null) {\n \n // Get the list of available streams\n \n StreamInfoList streams = loadStreamList(parent, dbInfo, dbCtx, true);\n \n if ( streams != null && streams.numberOfStreams() > 0) {\n \n // Get the details for the stream, if the information is valid copy it to a file information\n // object\n \n StreamInfo sInfo = streams.findStream(paths[2]);\n \n if ( sInfo != null) {\n \n // Create a file information object, copy the stream details to it\n \n finfo = new DBFileInfo(paths[1], name, dbInfo.getFileId(), dbInfo.getDirectoryId());\n finfo.setFileId(sInfo.getFileId());\n finfo.setFileSize(sInfo.getSize());\n \n // Use the parent files timestamps for now\n \n finfo.setCreationDateTime(dbInfo.getCreationDateTime());\n finfo.setAccessDateTime(dbInfo.getAccessDateTime());\n finfo.setModifyDateTime(dbInfo.getModifyDateTime());\n \n // Attach to the file state\n \n fstate.addAttribute(FileState.FileInformation, finfo);\n \n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"getFileInformation() stream=\" + name + \", info=\" + finfo);\n }\n }\n }\n }\n }\n }\n else {\n\n // Get, or create, the file state for the path\n \n fstate = getFileState(name, dbCtx, true);\n \n // Get the file details for the path\n \n DBFileInfo dbInfo = getFileDetails(name, dbCtx, fstate);\n \n // Set the full file/path name\n \n if ( dbInfo != null)\n dbInfo.setFullName(name);\n finfo = dbInfo;\n }\n\n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug() && finfo != null)\n Debug.println(\"getFileInformation info=\" + finfo.toString());\n\n // Return the file information\n\n return finfo;\n }",
"public int getStat() {\n return statUse.getNumerator();\n }",
"public entities.Torrent.FileInfo getFileInfo() {\n if (fileInfoBuilder_ == null) {\n return fileInfo_ == null ? entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n } else {\n return fileInfoBuilder_.getMessage();\n }\n }",
"public entities.Torrent.FileInfo getFileInfo() {\n if (fileInfoBuilder_ == null) {\n return fileInfo_ == null ? entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n } else {\n return fileInfoBuilder_.getMessage();\n }\n }",
"public String toString() {\n\t StringBuffer str = new StringBuffer();\n\t \n\t str.append(\"[\");\n\t str.append(getPath());\n\t str.append(\",\");\n\t str.append(FileStatus.asString(getFileStatus()));\n\t str.append(\":Opn=\");\n\t \n\t str.append(super.getOpenCount());\t// Local open count only\n\t if ( getOpenCount() > 0) {\n\t\t str.append( \"(shr=0x\");\n\t\t str.append( Integer.toHexString( getSharedAccess()));\n\t\t str.append( \",pid=\");\n\t\t str.append( getProcessId());\n\t\t str.append( \",primary=\");\n\t\t str.append( getPrimaryOwner());\n\t\t str.append( \")\");\n\t }\n\n\t str.append(\",Fid=\");\n\t str.append(getFileId());\n\n\t str.append(\",Expire=\");\n\t str.append(getSecondsToExpire(System.currentTimeMillis()));\n\t\t\n\t str.append(\",Sts=\");\n\t str.append(getStatusAsString());\n\n\t str.append(\",Locks=\");\n\t str.append(numberOfLocks());\n\t\t\n\t if ( hasOpLock()) {\n\t\t str.append(\",OpLock=\");\n\t\t str.append(getOpLock());\n\t }\n\t\t\n\t // Near-cache details\n\t \n\t if ( getNearCacheTime() != 0L) {\n\t\t str.append(\" - Near at=\");\n\t\t str.append( System.currentTimeMillis() - getNearCacheTime());\n\t\t str.append(\"ms,\");\n\t\t \n\t\t if ( getNearCacheLastAccessTime() > 0L) {\n\t\t\t str.append(\"acc=\");\n\t\t\t str.append( System.currentTimeMillis() - getNearCacheLastAccessTime());\n\t\t\t str.append(\"ms,\");\n\t\t }\n\t\t \n\t\t if ( getNearRemoteUpdateTime() > 0L) {\n\t\t\t str.append(\"upd=\");\n\t\t\t str.append( System.currentTimeMillis() - getNearRemoteUpdateTime());\n\t\t\t str.append(\"ms,\");\n\t\t }\n\t\t \n\t\t str.append(\"hits=\");\n\t\t str.append( getNearCacheHitCount());\n\t\t if ( isStateValid() == false)\n\t\t\t str.append(\",NotValid\");\n\t }\n\t \n\t str.append(\"]\");\n\t \n\t return str.toString();\n\t}",
"@Override\n public String getFileList() {\n StringBuilder string = null;\n //if (parentFile.isDirectory()) {\n File parentFile = currentDir;\n string = new StringBuilder();\n for (File childFile : parentFile.listFiles()) {\n try {\n //TODO: Verify that Paths.get() is retrieving a valid path relative to the project's location.\n Path file = Paths.get(childFile.getPath());\n\n BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"M\");\n String month = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"d\");\n String dayOfMonth = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"y\");\n String year = dateFormat.format(attr.creationTime().toMillis());\n\n char fileType = childFile.isDirectory() ? 'd' : '-'; //'-' represents a file.\n string.append(String.format(\"%srw-r--r--\", fileType)); //Linux style permissions\n string.append(\"\\t\");\n string.append(\"1\"); //?\n string.append(\" \");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(childFile.length()); //Length\n string.append(\" \");\n string.append(month); //Month\n string.append(\" \");\n string.append(dayOfMonth); //Day\n string.append(\" \");\n string.append(\" \");\n string.append(year); //Year\n string.append(\" \");\n string.append(childFile.getName());\n string.append(System.getProperty(\"line.separator\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //}\n\n String format = \"%S\\t%d %d\\t%d\\t%d %S %d %d %S\";\n //return \"-rw-r--r-- 1 0 0 1073741824000 Feb 19 2016 1000GB.zip\";\n if (!string.equals(null)) {\n return string.toString();\n } else {\n return \"Error when creating file list.\";\n }\n }",
"public int getFileInfoCount() {\n if (fileInfoBuilder_ == null) {\n return fileInfo_.size();\n } else {\n return fileInfoBuilder_.getCount();\n }\n }",
"public FileInfo getFileInfo() {\n return fileInfo;\n }",
"private void getExtractWithFiles(){\n\t\ttry{\n\t\t\t\n\t\t\tFileInputStream fStream = new FileInputStream(tfile);\n\t\t\tfileBytes = new byte[(int)tfile.length()];\n\t\t\t\n\t\t\tfStream.read(fileBytes, 0, fileBytes.length);\n\t\t\tfileSize = fileBytes.length;\n\t\t}catch(Exception ex){\n\t\t\tSystem.err.println(\"File Packet \"+ex.getMessage());\n\t\t}\n\t}",
"public String toString() {\n\t StringBuffer str = new StringBuffer();\n\t \n\t str.append(\"[\");\n\t str.append(getPath());\n\t str.append(\",\");\n\t str.append(FileStatus.asString(getFileStatus()));\n\t str.append(\":Opn=\");\n\t str.append(getOpenCount());\n\t str.append(\",Str=\");\n\t \n\t str.append(\",Fid=\");\n\t str.append(getFileId());\n\n\t str.append(\",Expire=\");\n\t str.append(getSecondsToExpire(System.currentTimeMillis()));\n\t\t\n\t str.append(\",Sts=\");\n\t str.append(_fileStates[getStatus()]);\n\n\t str.append(\",Locks=\");\n\t str.append(numberOfLocks());\n\t\t\n\t if ( hasOpLock()) {\n\t\t str.append(\",OpLock=\");\n\t\t str.append(getOpLock());\n\t }\n\t\t\n\t str.append(\"]\");\n\t \n\t return str.toString();\n\t}",
"long getLastAccessTime(String path) throws IOException;",
"public int getFileFlags() { return fileFlags; }",
"Map<String, Set<String>> stat(String arg);",
"int getFileCount();",
"DiscFileInfo getFileInfo(String path) throws IOException;",
"public long getFileSize();",
"public long getFileSize();",
"public interface FileSystemEntry {\n public long getCount();\n public long getSize();\n public String getName();\n}",
"entities.Torrent.FileInfo getFileInfo(int index);",
"public long getSize()\n\t{\n\t\treturn file.length() ;\n\t}",
"public com.opentext.bn.converters.avro.entity.PayloadRef getFileInfo() {\n return fileInfo;\n }",
"@java.lang.Override\n public entities.Torrent.FileInfo getFileInfo(int index) {\n return fileInfo_.get(index);\n }",
"boolean hasFileInfo();",
"boolean hasFileInfo();",
"public com.opentext.bn.converters.avro.entity.PayloadRef getFileInfo() {\n return fileInfo;\n }",
"public String getFormattedFileContents ();",
"@Override\n\tpublic int getFileStatus() {\n\t\treturn 0;\n\t}",
"@java.lang.Override\n public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder() {\n return getFileInfo();\n }",
"@java.lang.Override\n public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder() {\n return getFileInfo();\n }",
"com.google.protobuf.ByteString\n getFileLocBytes();",
"public final long getFileSize() {\n\t\treturn m_info.getSize();\n\t}",
"public void fileInformation(String filePath){\n File myFile = new File(filePath);\n if (myFile.exists()) {\n System.out.println(\"File name: \"+myFile.getName());\n System.out.println(\"Absolute path: \"+ myFile.getAbsolutePath());\n System.out.println(\"Writeable: \"+myFile.canWrite());\n System.out.println(\"Readable: \"+myFile.canRead());\n System.out.println(\"File size in bytes: \"+myFile.length());\n } else {\n System.out.println(\"File does not exists\");\n }\n }",
"public void showFileSize(long size);",
"public boolean hasFileInfo() {\n return fieldSetFlags()[15];\n }",
"long getLastModifiedTime() throws FileSystemException;",
"@Override\n public FileStatus getFileStatus(File file) {\n\treturn null;\n }",
"java.util.List<entities.Torrent.FileInfo>\n getFileInfoList();",
"long getLastWriteTime(String path) throws IOException;",
"public static int size_infos_timestamp() {\n return (32 / 8);\n }",
"public static int fstat(int fd, Stat buf)\n throws Exception {\n // check fd\n int status = check_fd(fd);\n if (status < 0)\n return status;\n\n FileDescriptor fileDescriptor = process.openFiles[fd];\n short deviceNumber = fileDescriptor.getDeviceNumber();\n short indexNodeNumber = fileDescriptor.getIndexNodeNumber();\n IndexNode indexNode = fileDescriptor.getIndexNode();\n\n // copy information to buf\n buf.st_dev = deviceNumber;\n buf.st_ino = indexNodeNumber;\n buf.copyIndexNode(indexNode);\n\n return 0;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.FileInfo> getFileInfoList() {\n return fileInfo_;\n }",
"long getSize() throws FileSystemException;",
"public String getFileNamingDetails();",
"Status stat() throws IOException {\n Protocol protocol = this;\n synchronized (protocol) {\n Status status;\n String string2;\n Response response = this.simpleCommand(\"STAT\");\n status = new Status();\n if (response.ok && (string2 = response.data) != null) {\n try {\n StringTokenizer stringTokenizer = new StringTokenizer(response.data);\n status.total = Integer.parseInt((String)stringTokenizer.nextToken());\n status.size = Integer.parseInt((String)stringTokenizer.nextToken());\n }\n catch (Exception exception) {}\n }\n return status;\n }\n }",
"public Integer getStat() {\r\n return stat;\r\n }",
"long getWorkfileSize();",
"public static MountInfo getExternalStorageInfo() {\n if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {\n return null;\n };\n try {\n MountInfo mountInfo = new MountInfo();\n mountInfo.mpoint = Environment.getExternalStorageDirectory().getAbsolutePath();\n StatFs statFs = new StatFs(mountInfo.mpoint);\n long total = ((long) statFs.getBlockCount() * (long) statFs.getBlockSize());\n long free = (statFs.getAvailableBlocks() * (long) statFs.getBlockSize());\n mountInfo.used = total - free;\n mountInfo.free = free;\n mountInfo.total = total;\n return mountInfo;\n } catch (Exception e){\n e.printStackTrace();\n return null;\n }\n }",
"Object getUptodatefile();",
"public String[] getInfoFile(){\n String [] values = new String[4];\n values[0]= _file.getName(); //nombre\n values[1]= cities.size()+\"\";//ciudades\n values[2]= paths.length+\"\";\n return values;\n }",
"public entities.Torrent.FileInfo getFileInfo(int index) {\n if (fileInfoBuilder_ == null) {\n return fileInfo_.get(index);\n } else {\n return fileInfoBuilder_.getMessage(index);\n }\n }",
"DiscFileSystemInfo getFileSystemInfo(String path) throws IOException;",
"public Integer getStat() {\n return stat;\n }",
"public Integer getStat() {\n return stat;\n }",
"FileInfo getAttr(String path) throws NoSuchFileException;",
"long getFileOffset();",
"public static void printStatistics(String statFile)\r\n\t{\r\n\t\t// TODO add code here to print statistics in the output file\r\n\t}",
"entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder();",
"entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder();",
"protected String makeFileInfoTable(ImageFileInformation finfo) {\n table = new StringTable(null, Languages.message(\"ImageFileInformation\"));\n File file = finfo.getFile();\n table.add(Arrays.asList(Languages.message(\"FilesPath\"), file.getParent()));\n table.add(Arrays.asList(Languages.message(\"FileName\"), file.getName()));\n table.add(Arrays.asList(Languages.message(\"FileSize\"), FileTools.showFileSize(finfo.getFileSize())));\n table.add(Arrays.asList(Languages.message(\"CreateTime\"), DateTools.datetimeToString(finfo.getCreateTime())));\n table.add(Arrays.asList(Languages.message(\"ModifyTime\"), DateTools.datetimeToString(finfo.getModifyTime())));\n table.add(Arrays.asList(Languages.message(\"Format\"), finfo.getImageFormat()));\n table.add(Arrays.asList(Languages.message(\"NumberOfImagesInFile\"), finfo.getNumberOfImages() + \"\"));\n return StringTable.tableDiv(table);\n }",
"public static void printFileInfo(String filePath) {\n File f1 = new File(filePath);\n System.out.println(\"File name: \" + f1.getName());\n System.out.println(\"Path: \" + f1.getPath());\n System.out.println(\"Parent: \" + f1.getParent());\n System.out.println(f1.exists() ? \"file exist\" : \"file is not exist\");\n System.out.println(f1.canRead() ? \"file readable\" : \"file is not readable\");\n System.out.println(f1.canWrite() ? \"file writable\" : \"file is not writable\");\n System.out.println(f1.isDirectory() ? \"It is directory\" : \"It is not directory\");\n System.out.println(f1.isFile() ? \"It is a simple file\" : \"It can be named channel\");\n System.out.println(f1.isAbsolute() ? \"It is absolute\" : \"It is not absolute\");\n System.out.println(\"Last modified: \" + f1.lastModified());\n System.out.println(\"Size is \" + f1.length() + \" byte\");\n }",
"public long size() {\n return file.length();\n }",
"long getCreationTime(String path) throws IOException;",
"protected final DBFileInfo getFileDetails(String path, DBDeviceContext dbCtx, FileState fstate) {\n\n // Check if the file details are attached to the file state\n \n if ( fstate != null) {\n \n // Return the file information\n \n DBFileInfo finfo = (DBFileInfo) fstate.findAttribute(FileState.FileInformation);\n if ( finfo != null)\n return finfo;\n }\n \n // Check for the root directory\n \n if ( path.length() == 0 || path.compareTo(\"\\\\\") == 0) {\n \n // Get the root directory information from the device context\n\n DBFileInfo rootDir = dbCtx.getRootDirectoryInfo();\n \n // Mark the directory as existing\n \n if ( fstate != null)\n fstate.setFileStatus( FileStatus.DirectoryExists);\n return rootDir;\n }\n \n // Split the path string and find the parent directory id\n \n int dirId = findParentDirectoryId(dbCtx,path,true);\n if ( dirId == -1)\n return null;\n\n // Get the file name\n \n String[] paths = FileName.splitPathStream(path);\n String fname = paths[1];\n \n String filePath = null;\n \n if ( paths[0] != null && paths[0].endsWith(FileName.DOS_SEPERATOR_STR) == false)\n filePath = paths[0] + FileName.DOS_SEPERATOR_STR + paths[1];\n else\n filePath = paths[0] + paths[1];\n \n // Get the file id for the specified file\n\n int fid = getFileId(filePath, fname, dirId, dbCtx);\n if (fid == -1)\n return null;\n \n // Create the file information\n \n DBFileInfo finfo = getFileInfo( filePath, dirId, fid, dbCtx);\n if ( finfo != null && fstate != null) {\n \n // Set various file state details\n \n fstate.setFileStatus( finfo.isDirectory() ? FileStatus.DirectoryExists : FileStatus.FileExists);\n fstate.setFileId(finfo.getFileId());\n \n // Set the file name\n \n finfo.setFileName( fname);\n finfo.setFullName(path);\n \n // check if files should be marked as offline\n \n if ( dbCtx.hasOfflineFiles() && finfo.hasAttribute( FileAttribute.NTOffline) == false) {\n if ( dbCtx.getOfflineFileSize() == 0 || finfo.getSize() >= dbCtx.getOfflineFileSize())\n finfo.setFileAttributes( finfo.getFileAttributes() + FileAttribute.NTOffline);\n }\n }\n\n // Check if the path is a file stream\n \n if ( paths[2] != null) {\n \n // Get the file information for the stream\n \n finfo = getStreamInfo(fstate, paths, dbCtx);\n }\n \n // Return the file/stream information\n \n return finfo;\n }",
"public abstract String getFileLocation();",
"List<File> getSystemDescriptionFiles();",
"public final String getFilePath() {\n\t\treturn m_info.getPath();\n\t}",
"HFileContext getFileContext();",
"HFileContext getFileContext();",
"long getSize() throws IOException {\n return fileRWAccessSize.get();\n }",
"public static void _generateStatistics() {\n\t\ttry {\n\t\t\t// Setup info\n\t\t\tPrintStream stats = new PrintStream(new File (_statLogFileName + \".txt\"));\n\n\t\t\tScanner scan = new Scanner(new File(_logFileName+\".txt\"));\n\t\t\twhile (scan.hasNext(SETUP.toString())) {\n\t\t\t\t// Append setup info\n\t\t\t\tstats.append(scan.nextLine()+\"\\n\");\n\t\t\t}\n\t\t\tstats.append(\"\\n\");\n\n\t\t\twhile (scan.hasNext(DETAILS.toString()) || scan.hasNext(RUN.toString())) {\n\t\t\t\t// Throw detailed info away\n\t\t\t\tscan.nextLine();\n\t\t\t}\n\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\t// Append post-run info\n\t\t\t\tstats.append(scan.nextLine()+\"\\n\");\n\t\t\t}\n\t\t\tscan.close();\n\t\t\tstats.append(\"\\n\");\n\n\t\t\t// Perf4J info\n\t\t\tReader reader = new FileReader(_logFileName+\".txt\");\n\t\t\tLogParser parser = new LogParser(reader, stats, null, 10800000, true, new GroupedTimingStatisticsTextFormatter());\n\t\t\tparser.parseLog();\n\t\t\tstats.close();\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"FileObject getFile();",
"FileObject getFile();",
"int getStatMetadataCount();"
] | [
"0.6731613",
"0.67311794",
"0.6406757",
"0.6403349",
"0.63856024",
"0.6312656",
"0.6284699",
"0.6283627",
"0.6167909",
"0.6156262",
"0.61181855",
"0.6081698",
"0.6064068",
"0.59487724",
"0.5940782",
"0.59348524",
"0.5930514",
"0.58837676",
"0.58837676",
"0.5872565",
"0.5867648",
"0.584359",
"0.58107036",
"0.58081406",
"0.58081406",
"0.5795252",
"0.5772798",
"0.5770306",
"0.57593405",
"0.56981087",
"0.56968933",
"0.56968933",
"0.56609976",
"0.56365365",
"0.56156623",
"0.5589783",
"0.5581373",
"0.5576625",
"0.5573862",
"0.5566712",
"0.55560374",
"0.5538505",
"0.5536268",
"0.5529648",
"0.5529648",
"0.5513225",
"0.54979277",
"0.5493009",
"0.54842716",
"0.5481119",
"0.5480012",
"0.5480012",
"0.54523516",
"0.54306453",
"0.5421001",
"0.540734",
"0.540734",
"0.5406783",
"0.54035395",
"0.53980553",
"0.53972864",
"0.5379835",
"0.5367573",
"0.5356756",
"0.5354853",
"0.53529996",
"0.5345489",
"0.5341387",
"0.5332051",
"0.5331504",
"0.5328854",
"0.53286177",
"0.53102314",
"0.5310028",
"0.5305067",
"0.5300247",
"0.5284193",
"0.5281647",
"0.5277832",
"0.5267246",
"0.5267246",
"0.5250353",
"0.5238276",
"0.52344435",
"0.5233171",
"0.5233171",
"0.52206814",
"0.5220646",
"0.52199435",
"0.5214165",
"0.5207218",
"0.5189692",
"0.51893973",
"0.5189244",
"0.51849335",
"0.51849335",
"0.5183833",
"0.5174799",
"0.5170361",
"0.5170361",
"0.51421857"
] | 0.0 | -1 |
Returns file information similar to the output of "ls l". | public String toLsString()
{
String sizeOrDeviceId = "";
String name = this.file.getName();
String realPath = this.isSymLink() ? RootTools.getRealPath(this.file.getPath()) : null;
switch (this.type)
{
case File:
sizeOrDeviceId = String.valueOf(this.size);
break;
case CharacterDevice:
case BlockDevice:
sizeOrDeviceId = String.format("%3d,%4d", this.deviceIdSpecial >> 8, this.deviceIdSpecial & 0xff);
break;
case SymbolicLink:
name = name + " -> " + (realPath == null ? "(null)" : new File(realPath).getName());
break;
}
return String.format("%s %-8s %-8s %8s %s %s",
this.mode.getSymbols(),
//this.hardLinkCount,
RootTools.getUserName(this.userId),
RootTools.getUserName(this.groupId),
sizeOrDeviceId,
new SimpleDateFormat("yyyy-MM-dd HH:mm").format(this.lastModified),
name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String ls()\n\t{\n\t\tString toReturn = \"\";\n\t\tIterable<Position<FileElement>> kids = fileSystem.children(currentFileElement);\n\t\tif (kids == null) return \"Nothing to list\";\n\t\t{\n\t\t\tfor (Position<FileElement> fe : kids)\n\t\t\t{\n\t\t\t\ttoReturn += fe.toString() + \", \";\n\t\t\t}\n\t\t}\n\t\treturn toReturn;\n\t}",
"List<File> getSystemDescriptionFiles();",
"@Override\n public String toString() {\n return \"ls [PATH ...]:\\n\" + \"\\tList the contents.\\n\" + \"\\tNote:\\n\"\n + \"\\t1.If no PATH given, print contents of current directory.\\n\"\n + \"\\t2.If PATH specifies a directory, print its contents(file or \"\n + \"directory).\\n\" + \"\\t3.If PATH specifies a file, print its name.\";\n }",
"@Override\n public String getFileList() {\n StringBuilder string = null;\n //if (parentFile.isDirectory()) {\n File parentFile = currentDir;\n string = new StringBuilder();\n for (File childFile : parentFile.listFiles()) {\n try {\n //TODO: Verify that Paths.get() is retrieving a valid path relative to the project's location.\n Path file = Paths.get(childFile.getPath());\n\n BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"M\");\n String month = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"d\");\n String dayOfMonth = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"y\");\n String year = dateFormat.format(attr.creationTime().toMillis());\n\n char fileType = childFile.isDirectory() ? 'd' : '-'; //'-' represents a file.\n string.append(String.format(\"%srw-r--r--\", fileType)); //Linux style permissions\n string.append(\"\\t\");\n string.append(\"1\"); //?\n string.append(\" \");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(childFile.length()); //Length\n string.append(\" \");\n string.append(month); //Month\n string.append(\" \");\n string.append(dayOfMonth); //Day\n string.append(\" \");\n string.append(\" \");\n string.append(year); //Year\n string.append(\" \");\n string.append(childFile.getName());\n string.append(System.getProperty(\"line.separator\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //}\n\n String format = \"%S\\t%d %d\\t%d\\t%d %S %d %d %S\";\n //return \"-rw-r--r-- 1 0 0 1073741824000 Feb 19 2016 1000GB.zip\";\n if (!string.equals(null)) {\n return string.toString();\n } else {\n return \"Error when creating file list.\";\n }\n }",
"java.util.List<entities.Torrent.FileInfo>\n getFileInfoList();",
"java.lang.String getFileLoc();",
"private static void info ( File f ) {\n\tString nume = f . getName () ;\n\tif( f.isFile () )\n\tSystem.out.println ( \" Fisier : \" + nume ) ;\n\telse\n\tif( f.isDirectory () )\n\tSystem.out.println ( \" Director : \" + nume ) ;\n\tSystem.out.println (\n\t\" Cale absoluta : \" + f.getAbsolutePath () +\n\t\" \\n Poate citi : \" + f.canRead () +\n\t\" \\n Poate scrie : \" + f.canWrite () +\n\t\" \\n Parinte : \" + f.getParent () +\n\t\" \\n Cale : \" + f.getPath () +\n\t\" \\n Lungime : \" + f.length () +\n\t\" \\n Data ultimei modificari : \" +\n\tnew Date ( f.lastModified () ) ) ;\n\tSystem.out.println ( \" --------------\" ) ;\n\t}",
"private void getDetailsOfFiles(){\n\t\tString path = tfile.getAbsolutePath();\n\t\t\n\t\ttype = path.substring(path.lastIndexOf('.')+1);\n\t\t\n\t\tif(path.contains(\"/\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"/\")+1);\n\t\t}else if(path.contains(\"\\\\\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"\\\\\")+1);\n\t\t}\n\t}",
"static void viewFiles()\r\n\t {\n\t\t File directoryPath = new File(\"D:\\\\java_project\");\r\n\t File filesList[] = directoryPath.listFiles();\r\n System.out.println(\"List of files and directories in the specified directory:\");\r\n\t for(File file : filesList) \r\n\t {\r\n\t System.out.println(\"File name: \"+file.getName());\r\n\t System.out.println(\"File path: \"+file.getAbsolutePath());\r\n\t System.out.println(\"Size :\"+file.getTotalSpace());\r\n\t System.out.println(\"last time file is modified :\"+new Date(file.lastModified()));\r\n System.out.println(\" \");\r\n\t }\r\n }",
"public String[] listFilesString() {\n\t\tFile[] FL = listFiles();\n\t\treturn FU.listFilesString(FL);\n\t}",
"java.util.List<entities.Torrent.FileInfo>\n getFilesList();",
"public static native FileStatus lstat(String path) throws IOException;",
"public static void Java_ls(File dir, String display_method, String sort_method) {\n // TODO: list files\n File[] list = dir.listFiles();\n if (display_method==null&&sort_method==null){\n for (File file:list){\n System.out.println(file.getName());\n }\n }\n // list file properties\n else if (display_method.equalsIgnoreCase(\"property\")){\n if (sort_method!=null){\n list = sortFileList(list, sort_method);\n }\n for (File file:list){\n System.out.println(file.getName()+\" Size: \"+file.length()+\" Last Modified: \"+(new Date(file.lastModified())).toString());\n }\n }\n }",
"public String getFileNamingDetails();",
"java.util.List<ds.hdfs.generated.FileMetadata> \n getFilesList();",
"private static String files()\n\t{\n\t\tString path = dirpath + \"\\\\Server\\\\\";\n\t\tFile folder = new File(path);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tString msg1 = \"\";\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++)\n\t\t{\n\t\t\tif (listOfFiles[i].isFile())\n\t\t\t{\n\t\t\t\tmsg1 = msg1 + \"&\" + listOfFiles[i].getName();\n\t\t\t}\n\t\t}\n\t\tmsg1 = msg1 + \"#\" + path + \"\\\\\";\n\t\treturn msg1;\n\t}",
"public List listFiles(String path);",
"public Vector<String> listFiles()\n {\n Vector<String> fileNames = new Vector<String>();\n\n File[] files = fileLocation.listFiles();\n\n for (File file : files)\n {\n fileNames.add(file.getName());\n }\n\n return fileNames;\n }",
"public static void Java_ls(File dir, String display_method, String sort_method) {\n // TODO: list files\n File[] fileList = dir.listFiles();\n if (display_method == null) {\n for (File file : fileList) {\n System.out.println(file.getName());\n }\n } else if (sort_method == null) {\n for (File file : fileList) {\n System.out.format(\"%-15s Size: %-10s Last Modified: %-40s\", file.getName(), file.length(), new Date(file.lastModified()));\n System.out.println();\n }\n } else {\n File[] sorted = sortFileList(fileList, sort_method);\n for (File file : sorted) {\n System.out.format(\"%-15s Size: %-10s Last Modified: %-40s\", file.getName(), file.length(), new Date(file.lastModified()));\n System.out.println();\n }\n }\n }",
"public FileDesc getFileDesc();",
"public List<LsFileEntry> lsFiles() \n \tthrows CorruptObjectException, IOException {\n \t\tMap<String, LsFileEntry> cachedEntries = new TreeMap<String, LsFileEntry>(); \n \t\t\n \t\t//first read all the files which are the Index\n \t\tfinal DirCache cache = DirCache.read(db);\n \t\tfor (int i = 0; i < cache.getEntryCount(); i++) {\n \t\t\tfinal DirCacheEntry ent = cache.getEntry(i);\n \t\t\t\n \t\t\t//X TODO this is surely not enough ;)\n \t\t\tLsFileStatus fs = LsFileStatus.CACHED;\n \t\t\tLsFileEntry fileEntry = new LsFileEntry(ent.getPathString(), fs, ent.getObjectId());\n \t\t\tcachedEntries.put(ent.getPathString(), fileEntry);\n \t\t}\n \n \t\t// now read all the files on the disk\n \t\tSet<String> filesOnDisk = new TreeSet<String>(); \n \t\tFile workDir = db.getWorkDir();\n \t\taddFiles(filesOnDisk, \"\", workDir);\n \t\t\n \t\t// and now compare them. since both are already sorted because we used TreeMap and TreeSort\n \t\t// we can simply crawl over them end compare them. kind of a merge sort though...\n \t\tArrayList<LsFileEntry> fileEntries = new ArrayList<LsFileEntry>();\n \n \t\tIterator<String> cacheIt = cachedEntries.keySet().iterator();\n \t\tIterator<String> fileIt = filesOnDisk.iterator();\n \t\t\n \t\tString cachedPath = null;\n \t\tString fsPath = null;\n \t\twhile (cacheIt.hasNext() || fileIt.hasNext()) {\n \t\t\t\n \t\t\tif (cachedPath == null && cacheIt.hasNext()) {\n \t\t\t\tcachedPath = cacheIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath == null && fileIt.hasNext()) {\n \t\t\t\tfsPath = fileIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && cachedPath.equals(fsPath)) {\n \t\t\t\t// oh found in both systems\n \t\t\t\tfileEntries.add(cachedEntries.get(cachedPath));\n \t\t\t\tcachedPath = null;\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && !fileEntries.contains(cachedPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(cachedPath, LsFileStatus.REMOVED, null));\n \t\t\t\tcachedPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath != null && !cachedEntries.keySet().contains(fsPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(fsPath, LsFileStatus.OTHER, null));\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tcachedPath = null;\n \t\t\tfsPath = null;\n \t\t\t\n \t\t}\n \t\t\n \t\treturn fileEntries;\n \t}",
"java.util.List<java.lang.String>\n getFileNamesList();",
"private String[] nlstHelper(String args) {\n // Construct the name of the directory to list.\n String filename = currDirectory;\n if (args != null) {\n filename = filename + fileSeparator + args;\n }\n\n // Now get a File object, and see if the name we got exists and is a\n // directory.\n File f = new File(filename);\n\n if (f.exists() && f.isDirectory()) {\n return f.list();\n } else if (f.exists() && f.isFile()) {\n String[] allFiles = new String[1];\n allFiles[0] = f.getName();\n return allFiles;\n } else {\n return null;\n }\n }",
"java.util.List<java.lang.String>\n getFileNamesList();",
"int getFileInfoCount();",
"public synchronized int load()\n {\n int cb = (maxFiles * maxChars * SysLib.CBCHAR) + \n (maxFiles * SysLib.CBINT);\n byte b[] = new byte[cb];\n files.clear();\n int fileNameOffset = maxFiles * SysLib.CBINT;\n int offset = 0;\n\n // Read the entire potential directory listing\n if (inode.read(0, b) < 0)\n {\n return -1;\n }\n\n for (int i = 0; i < maxFiles; i++)\n {\n // Read the file name length\n int strLen = SysLib.bytes2int(b, offset);\n offset += SysLib.CBINT;\n\n // Read the file name, if one is stored\n if (strLen > 0)\n {\n byte strBytes[] = new byte[strLen * SysLib.CBCHAR];\n\n System.arraycopy(b, fileNameOffset, strBytes, 0,\n strBytes.length);\n\n files.add(new String(strBytes));\n\n fileNameOffset += strLen;\n }\n // Add a zero-length placeholder for this listing\n else\n {\n files.add(new String(\"\"));\n }\n }\n\n return 0;\n }",
"public void getFiles()\n\t{\n\t\tif(fileList.size() == 0)\n\t\t{\n\t\t\tSystem.out.println(\"There is no file or file not found\");\n\t\t}\n\t\tfor(int i = 0; i < fileList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(\"File is at: \" + fileList.get(i));\n\t\t}\n\t}",
"public static void main(String[] args) {\nFile files=new File(\"C:\\\\Users\\\\k74\");\nString filenames[]=files.list();\nfor(String filename :filenames)\n\tSystem.out.println(filename);\n\t}",
"public final synchronized String list()\r\n { return a_info(true); }",
"DiscFileInfo getFileInfo(String path) throws IOException;",
"public abstract List<File> listFiles() throws AccessException;",
"public static native FileStatus stat(String path) throws IOException;",
"DiscFileSystemInfo getFileSystemInfo(String path) throws IOException;",
"public List<String> getFiles();",
"java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> \n getEntryList();",
"String[] ls(String path) throws NoSuchPathException;",
"public void fileInfo(String info);",
"@java.lang.Override\n public java.util.List<entities.Torrent.FileInfo> getFileInfoList() {\n return fileInfo_;\n }",
"private static void listar(Path a){\n File dir = new File(a.toString());\n if(dir.isDirectory()){\n String[] dirContents = dir.list();\n for(int i =0; i < dirContents.length; i++){\n System.out.println(dirContents[i]);\n }\n }\n }",
"public String toString() {\r\n return fileSystem.getCurrentDirectory().toString();\r\n }",
"public String toString() {\n\t StringBuffer str = new StringBuffer();\n\t \n\t str.append(\"[\");\n\t str.append(getPath());\n\t str.append(\",\");\n\t str.append(FileStatus.asString(getFileStatus()));\n\t str.append(\":Opn=\");\n\t \n\t str.append(super.getOpenCount());\t// Local open count only\n\t if ( getOpenCount() > 0) {\n\t\t str.append( \"(shr=0x\");\n\t\t str.append( Integer.toHexString( getSharedAccess()));\n\t\t str.append( \",pid=\");\n\t\t str.append( getProcessId());\n\t\t str.append( \",primary=\");\n\t\t str.append( getPrimaryOwner());\n\t\t str.append( \")\");\n\t }\n\n\t str.append(\",Fid=\");\n\t str.append(getFileId());\n\n\t str.append(\",Expire=\");\n\t str.append(getSecondsToExpire(System.currentTimeMillis()));\n\t\t\n\t str.append(\",Sts=\");\n\t str.append(getStatusAsString());\n\n\t str.append(\",Locks=\");\n\t str.append(numberOfLocks());\n\t\t\n\t if ( hasOpLock()) {\n\t\t str.append(\",OpLock=\");\n\t\t str.append(getOpLock());\n\t }\n\t\t\n\t // Near-cache details\n\t \n\t if ( getNearCacheTime() != 0L) {\n\t\t str.append(\" - Near at=\");\n\t\t str.append( System.currentTimeMillis() - getNearCacheTime());\n\t\t str.append(\"ms,\");\n\t\t \n\t\t if ( getNearCacheLastAccessTime() > 0L) {\n\t\t\t str.append(\"acc=\");\n\t\t\t str.append( System.currentTimeMillis() - getNearCacheLastAccessTime());\n\t\t\t str.append(\"ms,\");\n\t\t }\n\t\t \n\t\t if ( getNearRemoteUpdateTime() > 0L) {\n\t\t\t str.append(\"upd=\");\n\t\t\t str.append( System.currentTimeMillis() - getNearRemoteUpdateTime());\n\t\t\t str.append(\"ms,\");\n\t\t }\n\t\t \n\t\t str.append(\"hits=\");\n\t\t str.append( getNearCacheHitCount());\n\t\t if ( isStateValid() == false)\n\t\t\t str.append(\",NotValid\");\n\t }\n\t \n\t str.append(\"]\");\n\t \n\t return str.toString();\n\t}",
"public java.util.List<entities.Torrent.FileInfo> getFileInfoList() {\n if (fileInfoBuilder_ == null) {\n return java.util.Collections.unmodifiableList(fileInfo_);\n } else {\n return fileInfoBuilder_.getMessageList();\n }\n }",
"public List<File> getListing(){\n\t return getFileList(new File(defaultPath));\n }",
"public String toString() {\n\t StringBuffer str = new StringBuffer();\n\t \n\t str.append(\"[\");\n\t str.append(getPath());\n\t str.append(\",\");\n\t str.append(FileStatus.asString(getFileStatus()));\n\t str.append(\":Opn=\");\n\t str.append(getOpenCount());\n\t str.append(\",Str=\");\n\t \n\t str.append(\",Fid=\");\n\t str.append(getFileId());\n\n\t str.append(\",Expire=\");\n\t str.append(getSecondsToExpire(System.currentTimeMillis()));\n\t\t\n\t str.append(\",Sts=\");\n\t str.append(_fileStates[getStatus()]);\n\n\t str.append(\",Locks=\");\n\t str.append(numberOfLocks());\n\t\t\n\t if ( hasOpLock()) {\n\t\t str.append(\",OpLock=\");\n\t\t str.append(getOpLock());\n\t }\n\t\t\n\t str.append(\"]\");\n\t \n\t return str.toString();\n\t}",
"@java.lang.Override\n public int getFileInfoCount() {\n return fileInfo_.size();\n }",
"private static void showFiles(File f) {\n\t\n}",
"public String [] listContents(File directory) throws IOException{\n\t\tFile [] dirContents = directory.listFiles();\n\t\tString [] arrOfFileNames = new String[dirContents.length];\n\t\tint i = 0;\n\t\tfor(File file: dirContents) {\n\t\t\tarrOfFileNames[i++] = file.getName();\n }\n return arrOfFileNames;\n }",
"List<File> list(String directory) throws FindException;",
"List<String> getFileSystemEntries(String path) throws IOException;",
"int stat(String pathname, Stat statbuf);",
"public String[] list() {\n String[] list = _file.list();\n if (list == null) {\n return null;\n }\n for (int i = list.length; i-- > 0; ) {\n if (new File(_file, list[i]).isDirectory() && !list[i].endsWith(\"/\")) {\n list[i] += \"/\";\n }\n }\n return list;\n }",
"public int getFileFlags() { return fileFlags; }",
"public abstract List<LocalFile> getAllFiles();",
"public void displayDirectoryList() {\r\n //-----------------------------------\r\n String appDirecotry = APP_INSTANCE.getAppDirectory();\r\n\r\n //-----------------------------------\r\n\r\n System.out.println(\"/// FILE LIST OF DIRECTORY: \"+appDirecotry);\r\n System.out.println(\"/// ------------------ START OF DIRECTORY FILES LIST -------------------\");\r\n\r\n //-----------------------------------\r\n getCurrentDirectoryFiles(appDirecotry).forEach(listItemFile-> {\r\n intProperty = (intProperty +1 );\r\n System.out.println(\"/// [\"+intProperty+\"] \"+listItemFile.getName());\r\n });\r\n\r\n //-----------------------------------\r\n System.out.println(\"/// ------------------- END OF DIRECTORY FILES LIST --------------------\");\r\n }",
"public abstract List<String> getFiles( );",
"public String getFileName(){\r\n\t\treturn linfo != null ? linfo.getFileName() : \"\";\r\n\t}",
"public static void printFileInfo(String filePath) {\n File f1 = new File(filePath);\n System.out.println(\"File name: \" + f1.getName());\n System.out.println(\"Path: \" + f1.getPath());\n System.out.println(\"Parent: \" + f1.getParent());\n System.out.println(f1.exists() ? \"file exist\" : \"file is not exist\");\n System.out.println(f1.canRead() ? \"file readable\" : \"file is not readable\");\n System.out.println(f1.canWrite() ? \"file writable\" : \"file is not writable\");\n System.out.println(f1.isDirectory() ? \"It is directory\" : \"It is not directory\");\n System.out.println(f1.isFile() ? \"It is a simple file\" : \"It can be named channel\");\n System.out.println(f1.isAbsolute() ? \"It is absolute\" : \"It is not absolute\");\n System.out.println(\"Last modified: \" + f1.lastModified());\n System.out.println(\"Size is \" + f1.length() + \" byte\");\n }",
"private void getDirectoryContents() {\n\t File directory = Utilities.prepareDirectory(\"Filtering\");\n\t if(directory.exists()) {\n\t FilenameFilter filter = new FilenameFilter() {\n\t public boolean accept(File dir, String filename) {\n\t return filename.contains(\".pcm\") || filename.contains(\".wav\");\n\t }\n\t };\n\t fileList = directory.list(filter);\n\t }\n\t else {\n\t fileList = new String[0];\n\t }\n\t}",
"public interface FileSystemEntry {\n public long getCount();\n public long getSize();\n public String getName();\n}",
"private void gatherFile(FileStatus[] fstat)\r\n\t{\r\n\t inputSize = 0;\t\r\n\t paths = new Path[fstat.length];\t\r\n\t for(int i=0;i<fstat.length;i++)\r\n\t {\r\n\t inputSize+=fstat[i].getLen();\r\n\t paths[i] = fstat[i].getPath();\r\n\t }\r\n\t }",
"public String[] listDirectory( String directory, FileType type );",
"private static void printFileInfo(File file) {\n window.putLog(String.format(\"[%6dkb] Modified %s @%s\", 1 + file.length() / 1024,\n new SimpleDateFormat(\"YYYY-MM-dd HH:mm\").format(new Date(file.lastModified())),\n file.getPath().substring(workingDirectory.getParent().length())));\n }",
"public static void main(String[] args) {\n\t\tFile f = new File(\"src/com/briup/java_day19/ch11/FileTest.txt\");// \"src/com/briup/\"(win and linux)\r\n\t\t\r\n\t\tSystem.out.println(f);\r\n\t\tSystem.out.println(f.exists());\r\n\t\tif(!f.exists()){\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\t\tSystem.out.println(f.canWrite());\r\n\t\tSystem.out.println(f.canExecute());\r\n\t\tSystem.out.println(f.canRead());\r\n\t\tSystem.out.println(f.getAbsolutePath());//override toString\r\n\t\tSystem.out.println(f.getAbsoluteFile());\r\n\t\tSystem.out.println(f.getName());\r\n\t\tSystem.out.println(f.getParent());\r\n\t\tSystem.out.println(f.getParentFile());\r\n\t\tSystem.out.println(f.isDirectory());\r\n\t\tSystem.out.println(f.isFile());\r\n\t\tSystem.out.println(f.length());//how many byte\r\n\t\t\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tString[] str = f.getParentFile().list();\r\n\t\tSystem.out.println(Arrays.toString(str));\r\n\t\tfor(String s:str){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tFile pf = f.getParentFile();\r\n\t\tString[] str2 = pf.list(new FilenameFilter() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\t//文件名以txt结尾的\r\n//\t\t\t\treturn name.endsWith(\"java\");\r\n//\t\t\t\treturn name.contains(\"Byte\");\r\n\t\t\t\treturn name.startsWith(\"Byte\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfor(String s:str2){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t\r\n\t}",
"public void getPeerFiles(){\n\t\t\n\t\tFile[] files = new File(path).listFiles();\n\t\tfor (File file : files) {\n\t\t\tfileNames.add(file.getName());\n\t\t}\n\t\tSystem.out.println(\"Number of Files Registerd to the server - \"+fileNames.size());\n\t\tSystem.out.println(\"To search for file give command: get <Filename>\");\n\t\tSystem.out.println(\"To refresh type command: refresh\");\n\t\tSystem.out.println(\"To disconnect type command: disconnect\");\n\t}",
"public abstract String getFileLocation();",
"public List<String> ls(String path) {\n\t\treturn getDirectory(path, directory).stringy();\n\t}",
"public static ArrayList B() {\n int n10;\n ArrayList<String[]> arrayList = new ArrayList<String[]>();\n Object object = Environment.getRootDirectory().getAbsoluteFile();\n ((StringBuilder)((Object)arrayList)).append(object);\n object = File.separator;\n ((StringBuilder)((Object)arrayList)).append((String)object);\n Object object2 = \"etc\";\n ((StringBuilder)((Object)arrayList)).append((String)object2);\n ((StringBuilder)((Object)arrayList)).append((String)object);\n object = \"vold.fstab\";\n ((StringBuilder)((Object)arrayList)).append((String)object);\n arrayList = ((StringBuilder)((Object)arrayList)).toString();\n Object object3 = new File((String)((Object)arrayList));\n arrayList = new ArrayList<String[]>();\n boolean bl2 = ((File)object3).exists();\n if (!bl2) {\n return arrayList;\n }\n object = new ArrayList();\n try {\n object.clear();\n Object object4 = new FileReader((File)object3);\n object2 = new BufferedReader((Reader)object4);\n while ((object3 = ((BufferedReader)object2).readLine()) != null) {\n object4 = \"dev_mount\";\n n10 = ((String)object3).startsWith((String)object4);\n if (n10 == 0) continue;\n object.add(object3);\n }\n ((BufferedReader)object2).close();\n object.trimToSize();\n }\n catch (IOException iOException) {}\n object3 = object.iterator();\n while (bl2 = object3.hasNext()) {\n int n11;\n object = (String)object3.next();\n if (object == null || (object = object.split((String)(object2 = \" \"))) == null || (n11 = ((String[])object).length) < (n10 = 4) || (object = object[n11 = 2]) == null || (n11 = (int)(((File)(object2 = new File((String)object))).exists() ? 1 : 0)) == 0) continue;\n arrayList.add((String[])object);\n }\n return arrayList;\n }",
"public List<File> getFiles();",
"public final int getAttributes() {\n\t\treturn m_info.getFileAttributes();\n\t}",
"List<Path> getFiles();",
"String ls(String pRoot) throws RemoteException;",
"ds.hdfs.generated.FileMetadata getFiles(int index);",
"private String[] getFileNames() {\n\t\tFile directory = new File(this.getClass().getClassLoader()\n\t\t\t\t.getResource(\"data\").getFile());\n\t\tList<String> fileNames = new ArrayList<String>();\n\n\t\tfor (File file : directory.listFiles())\n\t\t\tfileNames.add(file.getName());\n\n\t\treturn fileNames.toArray(new String[fileNames.size()]);\n\t}",
"public String getFileHeaderInfo() {\n return this.fileHeaderInfo;\n }",
"java.lang.String getFileNames(int index);",
"java.lang.String getFileNames(int index);",
"@Override\r\n\tpublic String ShowListCMD() {\n\t\treturn \"dir\";\r\n\t}",
"public FileInfo getFileInformation(SrvSession sess, TreeConnection tree, String name)\n throws IOException {\n\n // Check for the null file name\n \n if (name == null)\n return null;\n\n // Access the JDBC context\n\n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n\n // Check if the database is online\n \n if ( dbCtx.getDBInterface().isOnline() == false)\n throw new DiskOfflineException( \"Database is offline\");\n \n // Check if the path is a file stream\n \n FileState fstate = null;\n FileInfo finfo = null;\n \n if ( FileName.containsStreamName(name)) {\n\n // Check if there is an active file state for the stream\n \n fstate = getFileState(name,dbCtx,true);\n \n if ( fstate != null) {\n \n // Check if the file information is available\n \n finfo = (FileInfo) fstate.findAttribute(FileState.FileInformation);\n }\n\n // If the cached file information is not available then create it\n \n if ( finfo == null) { \n\n // Split the path into directory, file and stream name components\n \n String[] paths = FileName.splitPathStream(name); \n \n // Get, or create, the file state for main file path\n \n String filePath = paths[0] + paths[1];\n FileState parent = getFileState(filePath,dbCtx,true);\n \n // Check if the top level file exists\n \n if ( parent != null && parent.fileExists() == true) {\n \n // Get the top level file details\n \n DBFileInfo dbInfo = getFileDetails(name,dbCtx,parent);\n \n if ( dbInfo != null) {\n \n // Get the list of available streams\n \n StreamInfoList streams = loadStreamList(parent, dbInfo, dbCtx, true);\n \n if ( streams != null && streams.numberOfStreams() > 0) {\n \n // Get the details for the stream, if the information is valid copy it to a file information\n // object\n \n StreamInfo sInfo = streams.findStream(paths[2]);\n \n if ( sInfo != null) {\n \n // Create a file information object, copy the stream details to it\n \n finfo = new DBFileInfo(paths[1], name, dbInfo.getFileId(), dbInfo.getDirectoryId());\n finfo.setFileId(sInfo.getFileId());\n finfo.setFileSize(sInfo.getSize());\n \n // Use the parent files timestamps for now\n \n finfo.setCreationDateTime(dbInfo.getCreationDateTime());\n finfo.setAccessDateTime(dbInfo.getAccessDateTime());\n finfo.setModifyDateTime(dbInfo.getModifyDateTime());\n \n // Attach to the file state\n \n fstate.addAttribute(FileState.FileInformation, finfo);\n \n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"getFileInformation() stream=\" + name + \", info=\" + finfo);\n }\n }\n }\n }\n }\n }\n else {\n\n // Get, or create, the file state for the path\n \n fstate = getFileState(name, dbCtx, true);\n \n // Get the file details for the path\n \n DBFileInfo dbInfo = getFileDetails(name, dbCtx, fstate);\n \n // Set the full file/path name\n \n if ( dbInfo != null)\n dbInfo.setFullName(name);\n finfo = dbInfo;\n }\n\n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug() && finfo != null)\n Debug.println(\"getFileInformation info=\" + finfo.toString());\n\n // Return the file information\n\n return finfo;\n }",
"entities.Torrent.FileInfo getFileInfo(int index);",
"public void printFilenames(){\n\t\tSystem.out.println(\"\\nAgent list of files: \" + this.filenames.size());\n\t\tfor(int i = 0;i<filenames.size();i++){\n\t\t\tSystem.out.println(i+1+ \") \" + filenames.get(i));\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"String getFile();",
"String getFile();",
"String getFile();",
"public String getFormattedFileContents ();",
"public void printFileNames() {\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()) {\n System.out.println(f);\n }\n }",
"DiscDirectoryInfo getDirectoryInfo(String path) throws IOException;",
"@java.lang.Override\n public java.util.List<entities.Torrent.FileInfo> getFilesList() {\n return files_;\n }",
"private List<String> getDataFromApi() throws IOException {\n // Get a list of up to 10 files.\n List<String> fileInfo = new ArrayList<String>();\n FileList result = mService.files().list()\n .setMaxResults(10)\n .execute();\n List<File> files = result.getItems();\n if (files != null) {\n for (File file : files) {\n fileInfo.add(String.format(\"%s (%s)\\n\",\n file.getTitle(), file.getId()));\n }\n }\n return fileInfo;\n }",
"void doShowFiles()\n\t{\n\t\ttry\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tIterator itr = m_fileInfo.getAllFiles();\n\n\t\t\twhile(itr.hasNext())\n\t\t\t{\n\t\t\t\tSourceFile m = (SourceFile) ((Map.Entry)itr.next()).getValue();\n\n\t\t\t\tString name = m.getName();\n\t\t\t\tint id = m.getId();\n\t\t\t\tString path = m.getFullPath();\n\n\t\t\t\tsb.append(id);\n\t\t\t\tsb.append(' ');\n\t\t\t\tsb.append(path);\n\t\t\t\tsb.append(\", \"); //$NON-NLS-1$\n\t\t\t\tsb.append(name);\n\t\t\t\tsb.append(m_newline);\n\t\t\t}\n\t\t\tout( sb.toString() );\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noSourceFilesFound\")); //$NON-NLS-1$\n\t\t}\n\t}",
"public static void showfiles()\n\t{\n File curDir = new File(\".\");\n String[] fileNames = curDir.list();\n ArrayList<String> data = new ArrayList<String>();\n\n //Find files which may have data. (aka, are in the .dat format)\n for(String s:fileNames)\n if(s.endsWith(\".dat\"))\n data.add(s);\n\n\t\tdata.trimToSize();\n\t\t\n\t\tclearScreen();\n\n\t\tSystem.out.println(\"\\t\\t\\tTHE BOOK SEARCH PROGRAM\");\n\n\t\t\n\t\tfor(int i = 0; i < 80; i++)\n\t\tSystem.out.print(\"-\");\n\t\n\n\t\tSystem.out.println(\"\\nWhat file is your book data stored in?\\n\");\n\t\n\t\tSystem.out.println(\"Here are the .dat file(s) in the current directory:\\n\");\n\n\t \tfor(int i = 0; i < data.size(); i++)\n\t\tSystem.out.print(\"[ \" + data.get(i) + \" ]\\t\");\n\t\tSystem.out.println(\"\\n\");\n\n\n\t}",
"public static void main(String[] args) {\n\t\tFile dir = new File(\"H:\");\r\n\t\tString[] filelist = dir.list();\r\n\t\tlong total = 0;\r\n\t\tlong t = 0;\r\n\t\tfor(int i=0;i<filelist.length;i++){\r\n\t\t\t File readfile = new File(\"H:\" + \"\\\\\" + filelist[i]);\r\n\t\t\t t = readFile(readfile)/1024/1024;\r\n\t\t\t System.out.println(\"name=\" + readfile.getName() + \" size:=\" + t + \"MB\");\r\n\t\t\t total += t;\r\n\t\t}\r\n\t\tSystem.out.println(\"OK,all the files is list over,the number is \" + filelist.length + \"the total size is \" + total); \r\n\t}",
"private void readFileList() throws IOException {\n\t\tint entries = metadataFile.readInt();\n\n\t\tfor (int i = 0; i < entries; i++) {\n\t\t\tint hash = metadataFile.readInt();\n\t\t\tlong dataOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tlong dataSize = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tint pathListIndex = metadataFile.readInt();\n\n\t\t\tlong position = metadataFile.getPosition();\n\t\t\tmetadataFile.setPosition(pathListOffset + 8 + (pathListIndex * 8));\n\n\t\t\tlong pathOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tint pathSize = metadataFile.readInt();\n\n\t\t\tmetadataFile.setPosition(pathListOffset + pathOffset);\n\t\t\tString path = metadataFile.readString(pathSize).trim();\n\n\t\t\tif (hash == hash(path)) \n\t\t\t\tfileEntries.add(new RAFFileEntry(dataOffset, dataSize, path));\n\t\t\telse\n\t\t\t\tthrow new IOException(\"Invalid hash for item '\" + path + \"'.\");\n\n\t\t\tmetadataFile.setPosition(position);\n\t\t}\n\t}",
"Map<String, Long> getAdminFileExtensionStats();",
"public java.util.List<entities.Torrent.FileInfo> getFilesList() {\n if (filesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(files_);\n } else {\n return filesBuilder_.getMessageList();\n }\n }",
"public synchronized Hashtable getFileList(String wc) throws IOException {\r\n Hashtable ht = new Hashtable();\r\n String pattern = translatePattern(wc);\r\n\tout.rlsWrite(\"lrc_get_pfn_wc\"); // RPC call name\r\n\tout.rlsWrite(pattern); // LFN being looked for\r\n\tout.rlsWrite(\"0\"); // offset\r\n\tout.rlsWrite(\"0\"); // max results\r\n \r\n\tint res = (int)in.rlsReadLong();\r\n if (res == 12) {\r\n // If we get \"LFN does not exist\", return empty hashtable rather than\r\n // throwing an exception\r\n in.rlsRead();\r\n return ht;\r\n }\r\n\r\n\tif (res != 0) {\r\n in.rlsRead();\r\n\t throw new IOException(\"Error getting file locations for \" + wc +\r\n\t\t\t\t \" from RLS: \" + errorCodeToString(res));\r\n\t}\r\n\r\n String lfn = in.rlsRead();\r\n if (lfn.length() == 0) {\r\n // empty result set\r\n return ht;\r\n }\r\n String pfn = in.rlsRead();\r\n\r\n String oldlfn = lfn;\r\n \r\n Vector v = new Vector();\r\n\r\n v.add(pfn);\r\n\r\n // loop over lfn/pfn pairs returned\r\n while (pfn.length() > 0) {\r\n\r\n if (!oldlfn.equals(lfn)) {\r\n ht.put(oldlfn, v);\r\n v = new Vector();\r\n }\r\n v.add(pfn);\r\n\r\n oldlfn = lfn;\r\n lfn = in.rlsRead();\r\n if (lfn.length() == 0) {\r\n ht.put(oldlfn, v);\r\n return ht;\r\n }\r\n pfn = in.rlsRead();\r\n }\r\n\r\n ht.put(oldlfn, v);\r\n\r\n return ht;\r\n }",
"entities.Torrent.FileInfo getFileInfo();",
"entities.Torrent.FileInfo getFileInfo();",
"public String getLocationOfFiles() {\n\t\ttry {\n\t\t\tFile f = new File(\n\t\t\t\t\tgetRepositoryManager().getMetadataRecordsLocation() + \"/\" + getFormatOfRecords() + \"/\" + getKey());\n\t\t\treturn f.getAbsolutePath();\n\t\t} catch (Throwable e) {\n\t\t\tprtlnErr(\"Unable to get location of files: \" + e);\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static List<String> getAllFileNames() {\n List<String> fileNames = new ArrayList();\n\n String sql = \"SELECT fileName FROM files;\";\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n while (rs.next()) {\n fileNames.add(rs.getString(\"fileName\"));\n }\n return fileNames;\n } catch (SQLException e) {\n System.out.println(\"getAllFileIDs: \" + e.getMessage());\n }\n return null;\n }",
"public final String toString() {\n\n\t\t// Build the file information string\n\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Add the file information string\n\n\t\tstr.append(m_info.toString());\n\n\t\t// Append the SMB file id\n\n\t\tstr.append(\" ,FID=\");\n\t\tstr.append(m_FID);\n\n\t\t// Return the string\n\n\t\treturn str.toString();\n\t}"
] | [
"0.6484505",
"0.6459852",
"0.64421624",
"0.64248914",
"0.63727325",
"0.63632584",
"0.63548",
"0.62452006",
"0.61788696",
"0.6128605",
"0.6098189",
"0.60909027",
"0.6077558",
"0.60538304",
"0.60274315",
"0.60051584",
"0.5960581",
"0.59550196",
"0.5949784",
"0.5946854",
"0.59374475",
"0.59321564",
"0.59299695",
"0.5872468",
"0.585763",
"0.5857179",
"0.5832106",
"0.58218163",
"0.5789233",
"0.5765724",
"0.5761125",
"0.5758683",
"0.5747065",
"0.57104295",
"0.57101464",
"0.57022595",
"0.56850904",
"0.5682423",
"0.5666002",
"0.5655245",
"0.5651683",
"0.5649234",
"0.5637239",
"0.5636801",
"0.5626987",
"0.5626094",
"0.5621278",
"0.5619109",
"0.56179875",
"0.55904514",
"0.55893034",
"0.5582862",
"0.55598193",
"0.5551835",
"0.55388886",
"0.5535322",
"0.5510395",
"0.5501828",
"0.5501785",
"0.5498125",
"0.5493496",
"0.5476113",
"0.5470118",
"0.5454001",
"0.5433383",
"0.5433083",
"0.54254276",
"0.5416213",
"0.5411151",
"0.54021233",
"0.5385533",
"0.5385485",
"0.5381328",
"0.5364652",
"0.5356624",
"0.5356624",
"0.5354623",
"0.53524196",
"0.53520274",
"0.5352007",
"0.53489053",
"0.53489053",
"0.53489053",
"0.53428024",
"0.5339626",
"0.5333576",
"0.5330355",
"0.5323207",
"0.5309921",
"0.53049797",
"0.5299795",
"0.52993345",
"0.528613",
"0.527551",
"0.52706254",
"0.5264469",
"0.5264469",
"0.5263584",
"0.5260971",
"0.52537906"
] | 0.54871494 | 61 |
Returns file information similar to the output of "ls l". | @Override
public String toString()
{
return this.toLsString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String ls()\n\t{\n\t\tString toReturn = \"\";\n\t\tIterable<Position<FileElement>> kids = fileSystem.children(currentFileElement);\n\t\tif (kids == null) return \"Nothing to list\";\n\t\t{\n\t\t\tfor (Position<FileElement> fe : kids)\n\t\t\t{\n\t\t\t\ttoReturn += fe.toString() + \", \";\n\t\t\t}\n\t\t}\n\t\treturn toReturn;\n\t}",
"List<File> getSystemDescriptionFiles();",
"@Override\n public String toString() {\n return \"ls [PATH ...]:\\n\" + \"\\tList the contents.\\n\" + \"\\tNote:\\n\"\n + \"\\t1.If no PATH given, print contents of current directory.\\n\"\n + \"\\t2.If PATH specifies a directory, print its contents(file or \"\n + \"directory).\\n\" + \"\\t3.If PATH specifies a file, print its name.\";\n }",
"@Override\n public String getFileList() {\n StringBuilder string = null;\n //if (parentFile.isDirectory()) {\n File parentFile = currentDir;\n string = new StringBuilder();\n for (File childFile : parentFile.listFiles()) {\n try {\n //TODO: Verify that Paths.get() is retrieving a valid path relative to the project's location.\n Path file = Paths.get(childFile.getPath());\n\n BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"M\");\n String month = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"d\");\n String dayOfMonth = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"y\");\n String year = dateFormat.format(attr.creationTime().toMillis());\n\n char fileType = childFile.isDirectory() ? 'd' : '-'; //'-' represents a file.\n string.append(String.format(\"%srw-r--r--\", fileType)); //Linux style permissions\n string.append(\"\\t\");\n string.append(\"1\"); //?\n string.append(\" \");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(childFile.length()); //Length\n string.append(\" \");\n string.append(month); //Month\n string.append(\" \");\n string.append(dayOfMonth); //Day\n string.append(\" \");\n string.append(\" \");\n string.append(year); //Year\n string.append(\" \");\n string.append(childFile.getName());\n string.append(System.getProperty(\"line.separator\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //}\n\n String format = \"%S\\t%d %d\\t%d\\t%d %S %d %d %S\";\n //return \"-rw-r--r-- 1 0 0 1073741824000 Feb 19 2016 1000GB.zip\";\n if (!string.equals(null)) {\n return string.toString();\n } else {\n return \"Error when creating file list.\";\n }\n }",
"java.util.List<entities.Torrent.FileInfo>\n getFileInfoList();",
"java.lang.String getFileLoc();",
"private static void info ( File f ) {\n\tString nume = f . getName () ;\n\tif( f.isFile () )\n\tSystem.out.println ( \" Fisier : \" + nume ) ;\n\telse\n\tif( f.isDirectory () )\n\tSystem.out.println ( \" Director : \" + nume ) ;\n\tSystem.out.println (\n\t\" Cale absoluta : \" + f.getAbsolutePath () +\n\t\" \\n Poate citi : \" + f.canRead () +\n\t\" \\n Poate scrie : \" + f.canWrite () +\n\t\" \\n Parinte : \" + f.getParent () +\n\t\" \\n Cale : \" + f.getPath () +\n\t\" \\n Lungime : \" + f.length () +\n\t\" \\n Data ultimei modificari : \" +\n\tnew Date ( f.lastModified () ) ) ;\n\tSystem.out.println ( \" --------------\" ) ;\n\t}",
"private void getDetailsOfFiles(){\n\t\tString path = tfile.getAbsolutePath();\n\t\t\n\t\ttype = path.substring(path.lastIndexOf('.')+1);\n\t\t\n\t\tif(path.contains(\"/\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"/\")+1);\n\t\t}else if(path.contains(\"\\\\\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"\\\\\")+1);\n\t\t}\n\t}",
"static void viewFiles()\r\n\t {\n\t\t File directoryPath = new File(\"D:\\\\java_project\");\r\n\t File filesList[] = directoryPath.listFiles();\r\n System.out.println(\"List of files and directories in the specified directory:\");\r\n\t for(File file : filesList) \r\n\t {\r\n\t System.out.println(\"File name: \"+file.getName());\r\n\t System.out.println(\"File path: \"+file.getAbsolutePath());\r\n\t System.out.println(\"Size :\"+file.getTotalSpace());\r\n\t System.out.println(\"last time file is modified :\"+new Date(file.lastModified()));\r\n System.out.println(\" \");\r\n\t }\r\n }",
"public String[] listFilesString() {\n\t\tFile[] FL = listFiles();\n\t\treturn FU.listFilesString(FL);\n\t}",
"java.util.List<entities.Torrent.FileInfo>\n getFilesList();",
"public static native FileStatus lstat(String path) throws IOException;",
"public static void Java_ls(File dir, String display_method, String sort_method) {\n // TODO: list files\n File[] list = dir.listFiles();\n if (display_method==null&&sort_method==null){\n for (File file:list){\n System.out.println(file.getName());\n }\n }\n // list file properties\n else if (display_method.equalsIgnoreCase(\"property\")){\n if (sort_method!=null){\n list = sortFileList(list, sort_method);\n }\n for (File file:list){\n System.out.println(file.getName()+\" Size: \"+file.length()+\" Last Modified: \"+(new Date(file.lastModified())).toString());\n }\n }\n }",
"public String getFileNamingDetails();",
"java.util.List<ds.hdfs.generated.FileMetadata> \n getFilesList();",
"private static String files()\n\t{\n\t\tString path = dirpath + \"\\\\Server\\\\\";\n\t\tFile folder = new File(path);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tString msg1 = \"\";\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++)\n\t\t{\n\t\t\tif (listOfFiles[i].isFile())\n\t\t\t{\n\t\t\t\tmsg1 = msg1 + \"&\" + listOfFiles[i].getName();\n\t\t\t}\n\t\t}\n\t\tmsg1 = msg1 + \"#\" + path + \"\\\\\";\n\t\treturn msg1;\n\t}",
"public List listFiles(String path);",
"public Vector<String> listFiles()\n {\n Vector<String> fileNames = new Vector<String>();\n\n File[] files = fileLocation.listFiles();\n\n for (File file : files)\n {\n fileNames.add(file.getName());\n }\n\n return fileNames;\n }",
"public static void Java_ls(File dir, String display_method, String sort_method) {\n // TODO: list files\n File[] fileList = dir.listFiles();\n if (display_method == null) {\n for (File file : fileList) {\n System.out.println(file.getName());\n }\n } else if (sort_method == null) {\n for (File file : fileList) {\n System.out.format(\"%-15s Size: %-10s Last Modified: %-40s\", file.getName(), file.length(), new Date(file.lastModified()));\n System.out.println();\n }\n } else {\n File[] sorted = sortFileList(fileList, sort_method);\n for (File file : sorted) {\n System.out.format(\"%-15s Size: %-10s Last Modified: %-40s\", file.getName(), file.length(), new Date(file.lastModified()));\n System.out.println();\n }\n }\n }",
"public FileDesc getFileDesc();",
"public List<LsFileEntry> lsFiles() \n \tthrows CorruptObjectException, IOException {\n \t\tMap<String, LsFileEntry> cachedEntries = new TreeMap<String, LsFileEntry>(); \n \t\t\n \t\t//first read all the files which are the Index\n \t\tfinal DirCache cache = DirCache.read(db);\n \t\tfor (int i = 0; i < cache.getEntryCount(); i++) {\n \t\t\tfinal DirCacheEntry ent = cache.getEntry(i);\n \t\t\t\n \t\t\t//X TODO this is surely not enough ;)\n \t\t\tLsFileStatus fs = LsFileStatus.CACHED;\n \t\t\tLsFileEntry fileEntry = new LsFileEntry(ent.getPathString(), fs, ent.getObjectId());\n \t\t\tcachedEntries.put(ent.getPathString(), fileEntry);\n \t\t}\n \n \t\t// now read all the files on the disk\n \t\tSet<String> filesOnDisk = new TreeSet<String>(); \n \t\tFile workDir = db.getWorkDir();\n \t\taddFiles(filesOnDisk, \"\", workDir);\n \t\t\n \t\t// and now compare them. since both are already sorted because we used TreeMap and TreeSort\n \t\t// we can simply crawl over them end compare them. kind of a merge sort though...\n \t\tArrayList<LsFileEntry> fileEntries = new ArrayList<LsFileEntry>();\n \n \t\tIterator<String> cacheIt = cachedEntries.keySet().iterator();\n \t\tIterator<String> fileIt = filesOnDisk.iterator();\n \t\t\n \t\tString cachedPath = null;\n \t\tString fsPath = null;\n \t\twhile (cacheIt.hasNext() || fileIt.hasNext()) {\n \t\t\t\n \t\t\tif (cachedPath == null && cacheIt.hasNext()) {\n \t\t\t\tcachedPath = cacheIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath == null && fileIt.hasNext()) {\n \t\t\t\tfsPath = fileIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && cachedPath.equals(fsPath)) {\n \t\t\t\t// oh found in both systems\n \t\t\t\tfileEntries.add(cachedEntries.get(cachedPath));\n \t\t\t\tcachedPath = null;\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && !fileEntries.contains(cachedPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(cachedPath, LsFileStatus.REMOVED, null));\n \t\t\t\tcachedPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath != null && !cachedEntries.keySet().contains(fsPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(fsPath, LsFileStatus.OTHER, null));\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tcachedPath = null;\n \t\t\tfsPath = null;\n \t\t\t\n \t\t}\n \t\t\n \t\treturn fileEntries;\n \t}",
"java.util.List<java.lang.String>\n getFileNamesList();",
"private String[] nlstHelper(String args) {\n // Construct the name of the directory to list.\n String filename = currDirectory;\n if (args != null) {\n filename = filename + fileSeparator + args;\n }\n\n // Now get a File object, and see if the name we got exists and is a\n // directory.\n File f = new File(filename);\n\n if (f.exists() && f.isDirectory()) {\n return f.list();\n } else if (f.exists() && f.isFile()) {\n String[] allFiles = new String[1];\n allFiles[0] = f.getName();\n return allFiles;\n } else {\n return null;\n }\n }",
"java.util.List<java.lang.String>\n getFileNamesList();",
"int getFileInfoCount();",
"public synchronized int load()\n {\n int cb = (maxFiles * maxChars * SysLib.CBCHAR) + \n (maxFiles * SysLib.CBINT);\n byte b[] = new byte[cb];\n files.clear();\n int fileNameOffset = maxFiles * SysLib.CBINT;\n int offset = 0;\n\n // Read the entire potential directory listing\n if (inode.read(0, b) < 0)\n {\n return -1;\n }\n\n for (int i = 0; i < maxFiles; i++)\n {\n // Read the file name length\n int strLen = SysLib.bytes2int(b, offset);\n offset += SysLib.CBINT;\n\n // Read the file name, if one is stored\n if (strLen > 0)\n {\n byte strBytes[] = new byte[strLen * SysLib.CBCHAR];\n\n System.arraycopy(b, fileNameOffset, strBytes, 0,\n strBytes.length);\n\n files.add(new String(strBytes));\n\n fileNameOffset += strLen;\n }\n // Add a zero-length placeholder for this listing\n else\n {\n files.add(new String(\"\"));\n }\n }\n\n return 0;\n }",
"public void getFiles()\n\t{\n\t\tif(fileList.size() == 0)\n\t\t{\n\t\t\tSystem.out.println(\"There is no file or file not found\");\n\t\t}\n\t\tfor(int i = 0; i < fileList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(\"File is at: \" + fileList.get(i));\n\t\t}\n\t}",
"public static void main(String[] args) {\nFile files=new File(\"C:\\\\Users\\\\k74\");\nString filenames[]=files.list();\nfor(String filename :filenames)\n\tSystem.out.println(filename);\n\t}",
"public final synchronized String list()\r\n { return a_info(true); }",
"DiscFileInfo getFileInfo(String path) throws IOException;",
"public abstract List<File> listFiles() throws AccessException;",
"public static native FileStatus stat(String path) throws IOException;",
"DiscFileSystemInfo getFileSystemInfo(String path) throws IOException;",
"public List<String> getFiles();",
"java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> \n getEntryList();",
"String[] ls(String path) throws NoSuchPathException;",
"public void fileInfo(String info);",
"@java.lang.Override\n public java.util.List<entities.Torrent.FileInfo> getFileInfoList() {\n return fileInfo_;\n }",
"private static void listar(Path a){\n File dir = new File(a.toString());\n if(dir.isDirectory()){\n String[] dirContents = dir.list();\n for(int i =0; i < dirContents.length; i++){\n System.out.println(dirContents[i]);\n }\n }\n }",
"public String toString() {\r\n return fileSystem.getCurrentDirectory().toString();\r\n }",
"public String toString() {\n\t StringBuffer str = new StringBuffer();\n\t \n\t str.append(\"[\");\n\t str.append(getPath());\n\t str.append(\",\");\n\t str.append(FileStatus.asString(getFileStatus()));\n\t str.append(\":Opn=\");\n\t \n\t str.append(super.getOpenCount());\t// Local open count only\n\t if ( getOpenCount() > 0) {\n\t\t str.append( \"(shr=0x\");\n\t\t str.append( Integer.toHexString( getSharedAccess()));\n\t\t str.append( \",pid=\");\n\t\t str.append( getProcessId());\n\t\t str.append( \",primary=\");\n\t\t str.append( getPrimaryOwner());\n\t\t str.append( \")\");\n\t }\n\n\t str.append(\",Fid=\");\n\t str.append(getFileId());\n\n\t str.append(\",Expire=\");\n\t str.append(getSecondsToExpire(System.currentTimeMillis()));\n\t\t\n\t str.append(\",Sts=\");\n\t str.append(getStatusAsString());\n\n\t str.append(\",Locks=\");\n\t str.append(numberOfLocks());\n\t\t\n\t if ( hasOpLock()) {\n\t\t str.append(\",OpLock=\");\n\t\t str.append(getOpLock());\n\t }\n\t\t\n\t // Near-cache details\n\t \n\t if ( getNearCacheTime() != 0L) {\n\t\t str.append(\" - Near at=\");\n\t\t str.append( System.currentTimeMillis() - getNearCacheTime());\n\t\t str.append(\"ms,\");\n\t\t \n\t\t if ( getNearCacheLastAccessTime() > 0L) {\n\t\t\t str.append(\"acc=\");\n\t\t\t str.append( System.currentTimeMillis() - getNearCacheLastAccessTime());\n\t\t\t str.append(\"ms,\");\n\t\t }\n\t\t \n\t\t if ( getNearRemoteUpdateTime() > 0L) {\n\t\t\t str.append(\"upd=\");\n\t\t\t str.append( System.currentTimeMillis() - getNearRemoteUpdateTime());\n\t\t\t str.append(\"ms,\");\n\t\t }\n\t\t \n\t\t str.append(\"hits=\");\n\t\t str.append( getNearCacheHitCount());\n\t\t if ( isStateValid() == false)\n\t\t\t str.append(\",NotValid\");\n\t }\n\t \n\t str.append(\"]\");\n\t \n\t return str.toString();\n\t}",
"public java.util.List<entities.Torrent.FileInfo> getFileInfoList() {\n if (fileInfoBuilder_ == null) {\n return java.util.Collections.unmodifiableList(fileInfo_);\n } else {\n return fileInfoBuilder_.getMessageList();\n }\n }",
"public List<File> getListing(){\n\t return getFileList(new File(defaultPath));\n }",
"public String toString() {\n\t StringBuffer str = new StringBuffer();\n\t \n\t str.append(\"[\");\n\t str.append(getPath());\n\t str.append(\",\");\n\t str.append(FileStatus.asString(getFileStatus()));\n\t str.append(\":Opn=\");\n\t str.append(getOpenCount());\n\t str.append(\",Str=\");\n\t \n\t str.append(\",Fid=\");\n\t str.append(getFileId());\n\n\t str.append(\",Expire=\");\n\t str.append(getSecondsToExpire(System.currentTimeMillis()));\n\t\t\n\t str.append(\",Sts=\");\n\t str.append(_fileStates[getStatus()]);\n\n\t str.append(\",Locks=\");\n\t str.append(numberOfLocks());\n\t\t\n\t if ( hasOpLock()) {\n\t\t str.append(\",OpLock=\");\n\t\t str.append(getOpLock());\n\t }\n\t\t\n\t str.append(\"]\");\n\t \n\t return str.toString();\n\t}",
"@java.lang.Override\n public int getFileInfoCount() {\n return fileInfo_.size();\n }",
"private static void showFiles(File f) {\n\t\n}",
"public String [] listContents(File directory) throws IOException{\n\t\tFile [] dirContents = directory.listFiles();\n\t\tString [] arrOfFileNames = new String[dirContents.length];\n\t\tint i = 0;\n\t\tfor(File file: dirContents) {\n\t\t\tarrOfFileNames[i++] = file.getName();\n }\n return arrOfFileNames;\n }",
"List<File> list(String directory) throws FindException;",
"List<String> getFileSystemEntries(String path) throws IOException;",
"int stat(String pathname, Stat statbuf);",
"public String[] list() {\n String[] list = _file.list();\n if (list == null) {\n return null;\n }\n for (int i = list.length; i-- > 0; ) {\n if (new File(_file, list[i]).isDirectory() && !list[i].endsWith(\"/\")) {\n list[i] += \"/\";\n }\n }\n return list;\n }",
"public int getFileFlags() { return fileFlags; }",
"public abstract List<LocalFile> getAllFiles();",
"public void displayDirectoryList() {\r\n //-----------------------------------\r\n String appDirecotry = APP_INSTANCE.getAppDirectory();\r\n\r\n //-----------------------------------\r\n\r\n System.out.println(\"/// FILE LIST OF DIRECTORY: \"+appDirecotry);\r\n System.out.println(\"/// ------------------ START OF DIRECTORY FILES LIST -------------------\");\r\n\r\n //-----------------------------------\r\n getCurrentDirectoryFiles(appDirecotry).forEach(listItemFile-> {\r\n intProperty = (intProperty +1 );\r\n System.out.println(\"/// [\"+intProperty+\"] \"+listItemFile.getName());\r\n });\r\n\r\n //-----------------------------------\r\n System.out.println(\"/// ------------------- END OF DIRECTORY FILES LIST --------------------\");\r\n }",
"public abstract List<String> getFiles( );",
"public String getFileName(){\r\n\t\treturn linfo != null ? linfo.getFileName() : \"\";\r\n\t}",
"public static void printFileInfo(String filePath) {\n File f1 = new File(filePath);\n System.out.println(\"File name: \" + f1.getName());\n System.out.println(\"Path: \" + f1.getPath());\n System.out.println(\"Parent: \" + f1.getParent());\n System.out.println(f1.exists() ? \"file exist\" : \"file is not exist\");\n System.out.println(f1.canRead() ? \"file readable\" : \"file is not readable\");\n System.out.println(f1.canWrite() ? \"file writable\" : \"file is not writable\");\n System.out.println(f1.isDirectory() ? \"It is directory\" : \"It is not directory\");\n System.out.println(f1.isFile() ? \"It is a simple file\" : \"It can be named channel\");\n System.out.println(f1.isAbsolute() ? \"It is absolute\" : \"It is not absolute\");\n System.out.println(\"Last modified: \" + f1.lastModified());\n System.out.println(\"Size is \" + f1.length() + \" byte\");\n }",
"private void getDirectoryContents() {\n\t File directory = Utilities.prepareDirectory(\"Filtering\");\n\t if(directory.exists()) {\n\t FilenameFilter filter = new FilenameFilter() {\n\t public boolean accept(File dir, String filename) {\n\t return filename.contains(\".pcm\") || filename.contains(\".wav\");\n\t }\n\t };\n\t fileList = directory.list(filter);\n\t }\n\t else {\n\t fileList = new String[0];\n\t }\n\t}",
"public interface FileSystemEntry {\n public long getCount();\n public long getSize();\n public String getName();\n}",
"private void gatherFile(FileStatus[] fstat)\r\n\t{\r\n\t inputSize = 0;\t\r\n\t paths = new Path[fstat.length];\t\r\n\t for(int i=0;i<fstat.length;i++)\r\n\t {\r\n\t inputSize+=fstat[i].getLen();\r\n\t paths[i] = fstat[i].getPath();\r\n\t }\r\n\t }",
"public String[] listDirectory( String directory, FileType type );",
"public String toLsString()\n {\n String sizeOrDeviceId = \"\";\n String name = this.file.getName();\n String realPath = this.isSymLink() ? RootTools.getRealPath(this.file.getPath()) : null;\n\n switch (this.type)\n {\n case File:\n sizeOrDeviceId = String.valueOf(this.size);\n break;\n case CharacterDevice:\n case BlockDevice:\n sizeOrDeviceId = String.format(\"%3d,%4d\", this.deviceIdSpecial >> 8, this.deviceIdSpecial & 0xff);\n break;\n case SymbolicLink:\n name = name + \" -> \" + (realPath == null ? \"(null)\" : new File(realPath).getName());\n break;\n }\n\n return String.format(\"%s %-8s %-8s %8s %s %s\",\n this.mode.getSymbols(),\n //this.hardLinkCount,\n RootTools.getUserName(this.userId),\n RootTools.getUserName(this.groupId),\n sizeOrDeviceId,\n new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").format(this.lastModified),\n name);\n }",
"private static void printFileInfo(File file) {\n window.putLog(String.format(\"[%6dkb] Modified %s @%s\", 1 + file.length() / 1024,\n new SimpleDateFormat(\"YYYY-MM-dd HH:mm\").format(new Date(file.lastModified())),\n file.getPath().substring(workingDirectory.getParent().length())));\n }",
"public static void main(String[] args) {\n\t\tFile f = new File(\"src/com/briup/java_day19/ch11/FileTest.txt\");// \"src/com/briup/\"(win and linux)\r\n\t\t\r\n\t\tSystem.out.println(f);\r\n\t\tSystem.out.println(f.exists());\r\n\t\tif(!f.exists()){\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\t\tSystem.out.println(f.canWrite());\r\n\t\tSystem.out.println(f.canExecute());\r\n\t\tSystem.out.println(f.canRead());\r\n\t\tSystem.out.println(f.getAbsolutePath());//override toString\r\n\t\tSystem.out.println(f.getAbsoluteFile());\r\n\t\tSystem.out.println(f.getName());\r\n\t\tSystem.out.println(f.getParent());\r\n\t\tSystem.out.println(f.getParentFile());\r\n\t\tSystem.out.println(f.isDirectory());\r\n\t\tSystem.out.println(f.isFile());\r\n\t\tSystem.out.println(f.length());//how many byte\r\n\t\t\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tString[] str = f.getParentFile().list();\r\n\t\tSystem.out.println(Arrays.toString(str));\r\n\t\tfor(String s:str){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tFile pf = f.getParentFile();\r\n\t\tString[] str2 = pf.list(new FilenameFilter() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\t//文件名以txt结尾的\r\n//\t\t\t\treturn name.endsWith(\"java\");\r\n//\t\t\t\treturn name.contains(\"Byte\");\r\n\t\t\t\treturn name.startsWith(\"Byte\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfor(String s:str2){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t\r\n\t}",
"public void getPeerFiles(){\n\t\t\n\t\tFile[] files = new File(path).listFiles();\n\t\tfor (File file : files) {\n\t\t\tfileNames.add(file.getName());\n\t\t}\n\t\tSystem.out.println(\"Number of Files Registerd to the server - \"+fileNames.size());\n\t\tSystem.out.println(\"To search for file give command: get <Filename>\");\n\t\tSystem.out.println(\"To refresh type command: refresh\");\n\t\tSystem.out.println(\"To disconnect type command: disconnect\");\n\t}",
"public abstract String getFileLocation();",
"public List<String> ls(String path) {\n\t\treturn getDirectory(path, directory).stringy();\n\t}",
"public static ArrayList B() {\n int n10;\n ArrayList<String[]> arrayList = new ArrayList<String[]>();\n Object object = Environment.getRootDirectory().getAbsoluteFile();\n ((StringBuilder)((Object)arrayList)).append(object);\n object = File.separator;\n ((StringBuilder)((Object)arrayList)).append((String)object);\n Object object2 = \"etc\";\n ((StringBuilder)((Object)arrayList)).append((String)object2);\n ((StringBuilder)((Object)arrayList)).append((String)object);\n object = \"vold.fstab\";\n ((StringBuilder)((Object)arrayList)).append((String)object);\n arrayList = ((StringBuilder)((Object)arrayList)).toString();\n Object object3 = new File((String)((Object)arrayList));\n arrayList = new ArrayList<String[]>();\n boolean bl2 = ((File)object3).exists();\n if (!bl2) {\n return arrayList;\n }\n object = new ArrayList();\n try {\n object.clear();\n Object object4 = new FileReader((File)object3);\n object2 = new BufferedReader((Reader)object4);\n while ((object3 = ((BufferedReader)object2).readLine()) != null) {\n object4 = \"dev_mount\";\n n10 = ((String)object3).startsWith((String)object4);\n if (n10 == 0) continue;\n object.add(object3);\n }\n ((BufferedReader)object2).close();\n object.trimToSize();\n }\n catch (IOException iOException) {}\n object3 = object.iterator();\n while (bl2 = object3.hasNext()) {\n int n11;\n object = (String)object3.next();\n if (object == null || (object = object.split((String)(object2 = \" \"))) == null || (n11 = ((String[])object).length) < (n10 = 4) || (object = object[n11 = 2]) == null || (n11 = (int)(((File)(object2 = new File((String)object))).exists() ? 1 : 0)) == 0) continue;\n arrayList.add((String[])object);\n }\n return arrayList;\n }",
"public List<File> getFiles();",
"public final int getAttributes() {\n\t\treturn m_info.getFileAttributes();\n\t}",
"List<Path> getFiles();",
"String ls(String pRoot) throws RemoteException;",
"ds.hdfs.generated.FileMetadata getFiles(int index);",
"private String[] getFileNames() {\n\t\tFile directory = new File(this.getClass().getClassLoader()\n\t\t\t\t.getResource(\"data\").getFile());\n\t\tList<String> fileNames = new ArrayList<String>();\n\n\t\tfor (File file : directory.listFiles())\n\t\t\tfileNames.add(file.getName());\n\n\t\treturn fileNames.toArray(new String[fileNames.size()]);\n\t}",
"public String getFileHeaderInfo() {\n return this.fileHeaderInfo;\n }",
"java.lang.String getFileNames(int index);",
"java.lang.String getFileNames(int index);",
"@Override\r\n\tpublic String ShowListCMD() {\n\t\treturn \"dir\";\r\n\t}",
"public FileInfo getFileInformation(SrvSession sess, TreeConnection tree, String name)\n throws IOException {\n\n // Check for the null file name\n \n if (name == null)\n return null;\n\n // Access the JDBC context\n\n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n\n // Check if the database is online\n \n if ( dbCtx.getDBInterface().isOnline() == false)\n throw new DiskOfflineException( \"Database is offline\");\n \n // Check if the path is a file stream\n \n FileState fstate = null;\n FileInfo finfo = null;\n \n if ( FileName.containsStreamName(name)) {\n\n // Check if there is an active file state for the stream\n \n fstate = getFileState(name,dbCtx,true);\n \n if ( fstate != null) {\n \n // Check if the file information is available\n \n finfo = (FileInfo) fstate.findAttribute(FileState.FileInformation);\n }\n\n // If the cached file information is not available then create it\n \n if ( finfo == null) { \n\n // Split the path into directory, file and stream name components\n \n String[] paths = FileName.splitPathStream(name); \n \n // Get, or create, the file state for main file path\n \n String filePath = paths[0] + paths[1];\n FileState parent = getFileState(filePath,dbCtx,true);\n \n // Check if the top level file exists\n \n if ( parent != null && parent.fileExists() == true) {\n \n // Get the top level file details\n \n DBFileInfo dbInfo = getFileDetails(name,dbCtx,parent);\n \n if ( dbInfo != null) {\n \n // Get the list of available streams\n \n StreamInfoList streams = loadStreamList(parent, dbInfo, dbCtx, true);\n \n if ( streams != null && streams.numberOfStreams() > 0) {\n \n // Get the details for the stream, if the information is valid copy it to a file information\n // object\n \n StreamInfo sInfo = streams.findStream(paths[2]);\n \n if ( sInfo != null) {\n \n // Create a file information object, copy the stream details to it\n \n finfo = new DBFileInfo(paths[1], name, dbInfo.getFileId(), dbInfo.getDirectoryId());\n finfo.setFileId(sInfo.getFileId());\n finfo.setFileSize(sInfo.getSize());\n \n // Use the parent files timestamps for now\n \n finfo.setCreationDateTime(dbInfo.getCreationDateTime());\n finfo.setAccessDateTime(dbInfo.getAccessDateTime());\n finfo.setModifyDateTime(dbInfo.getModifyDateTime());\n \n // Attach to the file state\n \n fstate.addAttribute(FileState.FileInformation, finfo);\n \n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"getFileInformation() stream=\" + name + \", info=\" + finfo);\n }\n }\n }\n }\n }\n }\n else {\n\n // Get, or create, the file state for the path\n \n fstate = getFileState(name, dbCtx, true);\n \n // Get the file details for the path\n \n DBFileInfo dbInfo = getFileDetails(name, dbCtx, fstate);\n \n // Set the full file/path name\n \n if ( dbInfo != null)\n dbInfo.setFullName(name);\n finfo = dbInfo;\n }\n\n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug() && finfo != null)\n Debug.println(\"getFileInformation info=\" + finfo.toString());\n\n // Return the file information\n\n return finfo;\n }",
"entities.Torrent.FileInfo getFileInfo(int index);",
"public void printFilenames(){\n\t\tSystem.out.println(\"\\nAgent list of files: \" + this.filenames.size());\n\t\tfor(int i = 0;i<filenames.size();i++){\n\t\t\tSystem.out.println(i+1+ \") \" + filenames.get(i));\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"String getFile();",
"String getFile();",
"String getFile();",
"public String getFormattedFileContents ();",
"public void printFileNames() {\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()) {\n System.out.println(f);\n }\n }",
"DiscDirectoryInfo getDirectoryInfo(String path) throws IOException;",
"@java.lang.Override\n public java.util.List<entities.Torrent.FileInfo> getFilesList() {\n return files_;\n }",
"private List<String> getDataFromApi() throws IOException {\n // Get a list of up to 10 files.\n List<String> fileInfo = new ArrayList<String>();\n FileList result = mService.files().list()\n .setMaxResults(10)\n .execute();\n List<File> files = result.getItems();\n if (files != null) {\n for (File file : files) {\n fileInfo.add(String.format(\"%s (%s)\\n\",\n file.getTitle(), file.getId()));\n }\n }\n return fileInfo;\n }",
"void doShowFiles()\n\t{\n\t\ttry\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tIterator itr = m_fileInfo.getAllFiles();\n\n\t\t\twhile(itr.hasNext())\n\t\t\t{\n\t\t\t\tSourceFile m = (SourceFile) ((Map.Entry)itr.next()).getValue();\n\n\t\t\t\tString name = m.getName();\n\t\t\t\tint id = m.getId();\n\t\t\t\tString path = m.getFullPath();\n\n\t\t\t\tsb.append(id);\n\t\t\t\tsb.append(' ');\n\t\t\t\tsb.append(path);\n\t\t\t\tsb.append(\", \"); //$NON-NLS-1$\n\t\t\t\tsb.append(name);\n\t\t\t\tsb.append(m_newline);\n\t\t\t}\n\t\t\tout( sb.toString() );\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noSourceFilesFound\")); //$NON-NLS-1$\n\t\t}\n\t}",
"public static void showfiles()\n\t{\n File curDir = new File(\".\");\n String[] fileNames = curDir.list();\n ArrayList<String> data = new ArrayList<String>();\n\n //Find files which may have data. (aka, are in the .dat format)\n for(String s:fileNames)\n if(s.endsWith(\".dat\"))\n data.add(s);\n\n\t\tdata.trimToSize();\n\t\t\n\t\tclearScreen();\n\n\t\tSystem.out.println(\"\\t\\t\\tTHE BOOK SEARCH PROGRAM\");\n\n\t\t\n\t\tfor(int i = 0; i < 80; i++)\n\t\tSystem.out.print(\"-\");\n\t\n\n\t\tSystem.out.println(\"\\nWhat file is your book data stored in?\\n\");\n\t\n\t\tSystem.out.println(\"Here are the .dat file(s) in the current directory:\\n\");\n\n\t \tfor(int i = 0; i < data.size(); i++)\n\t\tSystem.out.print(\"[ \" + data.get(i) + \" ]\\t\");\n\t\tSystem.out.println(\"\\n\");\n\n\n\t}",
"public static void main(String[] args) {\n\t\tFile dir = new File(\"H:\");\r\n\t\tString[] filelist = dir.list();\r\n\t\tlong total = 0;\r\n\t\tlong t = 0;\r\n\t\tfor(int i=0;i<filelist.length;i++){\r\n\t\t\t File readfile = new File(\"H:\" + \"\\\\\" + filelist[i]);\r\n\t\t\t t = readFile(readfile)/1024/1024;\r\n\t\t\t System.out.println(\"name=\" + readfile.getName() + \" size:=\" + t + \"MB\");\r\n\t\t\t total += t;\r\n\t\t}\r\n\t\tSystem.out.println(\"OK,all the files is list over,the number is \" + filelist.length + \"the total size is \" + total); \r\n\t}",
"private void readFileList() throws IOException {\n\t\tint entries = metadataFile.readInt();\n\n\t\tfor (int i = 0; i < entries; i++) {\n\t\t\tint hash = metadataFile.readInt();\n\t\t\tlong dataOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tlong dataSize = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tint pathListIndex = metadataFile.readInt();\n\n\t\t\tlong position = metadataFile.getPosition();\n\t\t\tmetadataFile.setPosition(pathListOffset + 8 + (pathListIndex * 8));\n\n\t\t\tlong pathOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tint pathSize = metadataFile.readInt();\n\n\t\t\tmetadataFile.setPosition(pathListOffset + pathOffset);\n\t\t\tString path = metadataFile.readString(pathSize).trim();\n\n\t\t\tif (hash == hash(path)) \n\t\t\t\tfileEntries.add(new RAFFileEntry(dataOffset, dataSize, path));\n\t\t\telse\n\t\t\t\tthrow new IOException(\"Invalid hash for item '\" + path + \"'.\");\n\n\t\t\tmetadataFile.setPosition(position);\n\t\t}\n\t}",
"Map<String, Long> getAdminFileExtensionStats();",
"public java.util.List<entities.Torrent.FileInfo> getFilesList() {\n if (filesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(files_);\n } else {\n return filesBuilder_.getMessageList();\n }\n }",
"public synchronized Hashtable getFileList(String wc) throws IOException {\r\n Hashtable ht = new Hashtable();\r\n String pattern = translatePattern(wc);\r\n\tout.rlsWrite(\"lrc_get_pfn_wc\"); // RPC call name\r\n\tout.rlsWrite(pattern); // LFN being looked for\r\n\tout.rlsWrite(\"0\"); // offset\r\n\tout.rlsWrite(\"0\"); // max results\r\n \r\n\tint res = (int)in.rlsReadLong();\r\n if (res == 12) {\r\n // If we get \"LFN does not exist\", return empty hashtable rather than\r\n // throwing an exception\r\n in.rlsRead();\r\n return ht;\r\n }\r\n\r\n\tif (res != 0) {\r\n in.rlsRead();\r\n\t throw new IOException(\"Error getting file locations for \" + wc +\r\n\t\t\t\t \" from RLS: \" + errorCodeToString(res));\r\n\t}\r\n\r\n String lfn = in.rlsRead();\r\n if (lfn.length() == 0) {\r\n // empty result set\r\n return ht;\r\n }\r\n String pfn = in.rlsRead();\r\n\r\n String oldlfn = lfn;\r\n \r\n Vector v = new Vector();\r\n\r\n v.add(pfn);\r\n\r\n // loop over lfn/pfn pairs returned\r\n while (pfn.length() > 0) {\r\n\r\n if (!oldlfn.equals(lfn)) {\r\n ht.put(oldlfn, v);\r\n v = new Vector();\r\n }\r\n v.add(pfn);\r\n\r\n oldlfn = lfn;\r\n lfn = in.rlsRead();\r\n if (lfn.length() == 0) {\r\n ht.put(oldlfn, v);\r\n return ht;\r\n }\r\n pfn = in.rlsRead();\r\n }\r\n\r\n ht.put(oldlfn, v);\r\n\r\n return ht;\r\n }",
"entities.Torrent.FileInfo getFileInfo();",
"entities.Torrent.FileInfo getFileInfo();",
"public String getLocationOfFiles() {\n\t\ttry {\n\t\t\tFile f = new File(\n\t\t\t\t\tgetRepositoryManager().getMetadataRecordsLocation() + \"/\" + getFormatOfRecords() + \"/\" + getKey());\n\t\t\treturn f.getAbsolutePath();\n\t\t} catch (Throwable e) {\n\t\t\tprtlnErr(\"Unable to get location of files: \" + e);\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static List<String> getAllFileNames() {\n List<String> fileNames = new ArrayList();\n\n String sql = \"SELECT fileName FROM files;\";\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n while (rs.next()) {\n fileNames.add(rs.getString(\"fileName\"));\n }\n return fileNames;\n } catch (SQLException e) {\n System.out.println(\"getAllFileIDs: \" + e.getMessage());\n }\n return null;\n }",
"public final String toString() {\n\n\t\t// Build the file information string\n\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Add the file information string\n\n\t\tstr.append(m_info.toString());\n\n\t\t// Append the SMB file id\n\n\t\tstr.append(\" ,FID=\");\n\t\tstr.append(m_FID);\n\n\t\t// Return the string\n\n\t\treturn str.toString();\n\t}"
] | [
"0.6484505",
"0.6459852",
"0.64421624",
"0.64248914",
"0.63727325",
"0.63632584",
"0.63548",
"0.62452006",
"0.61788696",
"0.6128605",
"0.6098189",
"0.60909027",
"0.6077558",
"0.60538304",
"0.60274315",
"0.60051584",
"0.5960581",
"0.59550196",
"0.5949784",
"0.5946854",
"0.59374475",
"0.59321564",
"0.59299695",
"0.5872468",
"0.585763",
"0.5857179",
"0.5832106",
"0.58218163",
"0.5789233",
"0.5765724",
"0.5761125",
"0.5758683",
"0.5747065",
"0.57104295",
"0.57101464",
"0.57022595",
"0.56850904",
"0.5682423",
"0.5666002",
"0.5655245",
"0.5651683",
"0.5649234",
"0.5637239",
"0.5636801",
"0.5626987",
"0.5626094",
"0.5621278",
"0.5619109",
"0.56179875",
"0.55904514",
"0.55893034",
"0.5582862",
"0.55598193",
"0.5551835",
"0.55388886",
"0.5535322",
"0.5510395",
"0.5501828",
"0.5501785",
"0.5498125",
"0.5493496",
"0.54871494",
"0.5476113",
"0.5470118",
"0.5454001",
"0.5433383",
"0.5433083",
"0.54254276",
"0.5416213",
"0.5411151",
"0.54021233",
"0.5385533",
"0.5385485",
"0.5381328",
"0.5364652",
"0.5356624",
"0.5356624",
"0.5354623",
"0.53524196",
"0.53520274",
"0.5352007",
"0.53489053",
"0.53489053",
"0.53489053",
"0.53428024",
"0.5339626",
"0.5333576",
"0.5330355",
"0.5323207",
"0.5309921",
"0.53049797",
"0.5299795",
"0.52993345",
"0.528613",
"0.527551",
"0.52706254",
"0.5264469",
"0.5264469",
"0.5263584",
"0.5260971",
"0.52537906"
] | 0.0 | -1 |
Creates new form Insert_Details | public InsertOrUpdate_Details() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveAndCreateNew() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"saveAndCreateNewButton\").click();\n\t}",
"int insert(AbiFormsForm record);",
"public void clickCreate() {\n\t\tbtnCreate.click();\n\t}",
"private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}",
"public void insert() {\n SiswaModel m = new SiswaModel();\n m.setNisn(view.getTxtNis().getText());\n m.setNik(view.getTxtNik().getText());\n m.setNamaSiswa(view.getTxtNama().getText());\n m.setTempatLahir(view.getTxtTempatLahir().getText());\n \n //save date format\n String date = view.getDatePickerLahir().getText();\n DateFormat df = new SimpleDateFormat(\"MM/dd/yyyy\"); \n Date d = null;\n try {\n d = df.parse(date);\n } catch (ParseException ex) {\n System.out.println(\"Error : \"+ex.getMessage());\n }\n m.setTanggalLahir(d);\n \n //Save Jenis kelamin\n if(view.getRadioLaki().isSelected()){\n m.setJenisKelamin(JenisKelaminEnum.Pria);\n }else{\n m.setJenisKelamin(JenisKelaminEnum.Wanita);\n }\n \n m.setAsalSekolah(view.getTxtAsalSekolah().getText());\n m.setHobby(view.getTxtHoby().getText());\n m.setCita(view.getTxtCita2().getText());\n m.setJumlahSaudara(Integer.valueOf(view.getTxtNis().getText()));\n m.setAyah(view.getTxtNamaAyah().getText());\n m.setAlamat(view.getTxtAlamat().getText());\n \n if(view.getRadioLkkAda().isSelected()){\n m.setLkk(LkkEnum.ada);\n }else{\n m.setLkk(LkkEnum.tidak_ada);\n }\n \n //save agama\n m.setAgama(view.getComboAgama().getSelectedItem().toString());\n \n dao.save(m);\n clean();\n }",
"@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void save1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_save1ActionPerformed\n\n //Save Button action\n //eid int\n //level int\n //rank int\n String lname = LectName.getText();\n String eid = EmpID.getText();\n String fac = faculty.getSelectedItem().toString();\n String dep = department.getSelectedItem().toString();\n String cent = center.getSelectedItem().toString();\n String build = building.getSelectedItem().toString();\n String lev = level.getSelectedItem().toString();\n String rnk = Rank.getText();\n\n try {\n\n String s = \"INSERT INTO lecturer (eid, lectur_name, faculty, department, center, building, lec_level, lec_rank) values ('\" + eid + \"', '\" + lname + \"', '\" + fac + \"', '\" + dep + \"', '\" + cent + \"', '\" + build + \"', '\" + lev + \"', '\" + rnk + \"')\";\n pst = con.prepareStatement(s);\n pst.execute();\n\n //load tabledetails after adding a new one\n lectureDetails();\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e);\n System.out.print(e);\n }\n\n }",
"@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }",
"@PostMapping(\"/addFormation/{eid}\")\n\t\tpublic Formation createFormation(@PathVariable(value = \"eid\") Long Id, @Valid @RequestBody Formation formationDetails) {\n\n\t\t \n\t\t Formation me=new Formation();\n\t\t\t Domaine domaine = Domainev.findById(Id).orElseThrow(null);\n\t\t\t \n\t\t\t \n\t\t\t\t me.setDom(domaine);\n\t\t\t me.setTitre(formationDetails.getTitre());\n\t\t\t me.setAnnee(formationDetails.getAnnee());\n\t\t\t me.setNb_session(formationDetails.getNb_session());\n\t\t\t me.setDuree(formationDetails.getDuree());\n\t\t\t me.setBudget(formationDetails.getBudget());\n\t\t\t me.setTypeF(formationDetails.getTypeF());\n\t\t\t \n\t\t\t \n\n\t\t\t //User affecterUser= \n\t\t\t return Formationv.save(me);\n\t\t\t//return affecterUser;\n\t\t\n\n\t\t}",
"public void databaseinsert() {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tSite site = new Site(Sid.getText().toString().trim(), Scou.getText().toString().trim());\n\t\tlong rowId = dbHlp.insertDB(site);\n\t\tif (rowId != -1) {\n\t\t\tsb.append(getString(R.string.insert_success));\n\n\t\t} else {\n\n\t\t\tsb.append(getString(R.string.insert_fail));\n\t\t}\n\t\tToast.makeText(Stu_state.this, sb, Toast.LENGTH_SHORT).show();\n\t}",
"public FrmInsertar() {\n initComponents();\n }",
"private void insertFields()\n {\n RideDetails details=new RideDetails();\n details.setStartPt(editStartingPt.getText().toString());\n details.setEndPt(editEndingPt.getText().toString());\n\n try {\n details.setTravelDate(dateFormatter.parse(editDate.getText().toString()));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n details.setNoSpot(Integer.parseInt(editNoSpot.getText().toString()));\n\n\n dbOperations(details);\n\n }",
"public FormInserir() {\n initComponents();\n }",
"public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}",
"private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }",
"private void submitActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n\n Class.forName(\"oracle.jdbc.driver.OracleDriver\");\n Connection connection = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:orcl\", \"batman\", \"54928\");\n String query = \"insert into COMPANY_DETAILS(COMPANY_NAME,COMPANY_ID)VALUES(?,?)\";\n PreparedStatement pst;\n pst = connection.prepareStatement(query);\n pst.setString(1, compname.getText());\n pst.setString(2, compid.getText());\n \n \n pst.executeUpdate();\n JOptionPane.showMessageDialog(null, \"inserted successfully\");\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n\n } // TODO add your h\n showTableData();\n \n }",
"int insertSelective(AbiFormsForm record);",
"public insertExp() throws SQLException {\n this.setExtendedState(JFrame.MAXIMIZED_BOTH);\n initComponents();\n jLabel1.setVisible(false);\n idLable.setVisible(false);\n showNextId();\n showProjCombo();\n detailsText.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);\n }",
"public CreateAccount() {\n initComponents();\n selectionall();\n }",
"@Override\n\tpublic void insert(DhtmlxGridForm f) throws Exception {\n\t\t\n\t}",
"private void insert() {//将数据录入数据库\n\t\tUser eb = new User();\n\t\tUserDao ed = new UserDao();\n\t\teb.setUsername(username.getText().toString().trim());\n\t\tString pass = new String(this.pass.getPassword());\n\t\teb.setPassword(pass);\n\t\teb.setName(name.getText().toString().trim());\n\t\teb.setSex(sex1.isSelected() ? sex1.getText().toString().trim(): sex2.getText().toString().trim());\t\n\t\teb.setAddress(addr.getText().toString().trim());\n\t\teb.setTel(tel.getText().toString().trim());\n\t\teb.setType(role.getSelectedIndex()+\"\");\n\t\teb.setState(\"1\");\n\t\t\n\t\tif (ed.addUser(eb) == 1) {\n\t\t\teb=ed.queryUserone(eb);\n\t\t\tJOptionPane.showMessageDialog(null, \"帐号为\" + eb.getUsername()\n\t\t\t\t\t+ \"的客户信息,录入成功\");\n\t\t\tclear();\n\t\t}\n\n\t}",
"public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }",
"@FXML\n private void newStudent() {\n System.out.println(\"trying to insert new student to database\");\n DBhandler db = new DBhandler();\n Student s = new Student(\n txfID.getText(),\n txfFirstName.getText(),\n txfLastName.getText(),\n txfAddress.getText(),\n txfZIP.getText(),\n txfZIPloc.getText(),\n txfEmail.getText(),\n txfPhone.getText()\n );\n System.out.println(s.toString());\n db.insertStudent(s);\n Cancel(new ActionEvent());\n }",
"public DRIVER_INSERT() {\n initComponents();\n }",
"public void newRecord() {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tdateTxt.setText(dateFormat.format(new Date()));\n\t\t//mark all students enrolled as attendant\n\t\tif (courseTable.getSelectedRow() != -1) {\n\t\t\tsetWarningMsg(\"\");\n\t\t\tupdateStudent(currentCourse);\n\t\t\tfor (int i = 0; i < studentTable.getRowCount(); i++) {\n\t\t\t\tstudentTable.setValueAt(new Boolean(true), i, 0);\n\t\t\t}\t\t\t\n\t\t}\n\t\telse {\n\t\t\t//show message: choose course first\n\t\t\tsetWarningMsg(\"please select course first\");\n\t\t}\n\t}",
"public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }",
"public void insert2(AccessionRegister docDetails) {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n session.save(docDetails);\n tx.commit();\n } catch (RuntimeException e) {\n \n tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n }",
"public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}",
"public void mmCreateClick(ActionEvent event) throws Exception{\r\n displayCreateProfile();\r\n }",
"@RequestMapping(value = \"/report.create\", method = RequestMethod.GET)\n @ResponseBody public ModelAndView newreportForm(HttpSession session) throws Exception {\n ModelAndView mav = new ModelAndView();\n mav.setViewName(\"/sysAdmin/reports/details\");\n\n //Create a new blank provider.\n reports report = new reports();\n \n mav.addObject(\"btnValue\", \"Create\");\n mav.addObject(\"reportdetails\", report);\n\n return mav;\n }",
"public StavkaFaktureInsert() {\n initComponents();\n CBFakture();\n CBProizvod();\n }",
"private void insertEntry() {\n String desiredId = idField.getText();\n String desiredName = nameField.getText();\n String desiredMajor = majorField.getText();\n\n if (studentHashMap.containsKey(desiredId)) {\n this.displayStatusPanel(\n \"Error: A student with this information already exists.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n } else {\n studentHashMap.put(desiredId, new Student(desiredName, desiredMajor));\n\n this.displayStatusPanel(\n \"Success: \" + desiredName + \" has been added.\",\n \"Success\",\n JOptionPane.INFORMATION_MESSAGE\n );\n }\n }",
"public abstract void addDetails();",
"public static void inserttea() {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"insert into teacher values ('\"+teaid+\"','\"+teaname+\"','\"+teabirth+\"','\"+protitle+\"','\"+cno+\"')\");\n\t\t\tSystem.out.println(\"cno:\"+cno);\n\t\t\tps.executeUpdate();\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"教师记录添加成功!\", \"提示消息\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}catch (Exception e){\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"数据添加异常!\", \"提示消息\", JOptionPane.ERROR_MESSAGE);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public String createQuiz() {\n quiz = quizEJB.createQuiz(quiz);\n quizList = quizEJB.listQuiz();\n FacesContext.getCurrentInstance().addMessage(\"successForm:successInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Success\", \"New record added successfully\"));\n return \"quiz-list.xhtml\";\n }",
"@RequestMapping(value = \"insert\", method = RequestMethod.POST)\r\n\tpublic String insert(HttpServletRequest request) {\n\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\r\n\t\tString name = request.getParameter(\"name\");\r\n\t\tint marks = Integer.parseInt(request.getParameter(\"marks\"));\r\n\t\t// Create the student\r\n\t\tStudent student = new Student(id, name,marks);\r\n\t\tSystem.out.println(student);\r\n\t\t// insert student to db\r\n\r\n\t\tString res = studentService.insert(student);\r\n\r\n\t\tif (res.equals(\"SUCCESS\"))\r\n\t\t\trequest.setAttribute(\"msg\", \"Record Inserted\");\r\n\t\telse\r\n\t\t\trequest.setAttribute(\"msg\", \"Record Not Inserted\");\r\n\t\treturn \"insert\";\r\n\t}",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"int insert(WizardValuationHistoryEntity record);",
"@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}",
"@Override\n\tpublic void insert(HttpServletRequest request,HttpServletResponse response) {\n\t\tHttpSession session = request.getSession();\n\t\tRegVo regVo = (RegVo) session.getAttribute(\"RegObj\");\n\t\tString question_department=regVo.getRegistration_department();\n\t\tint question_semester=regVo.getRegistration_semester();\n\t\tString question_name=regVo.getRegistration_name();\n\t\tlong question_enrollment=regVo.getRegistration_enrollment();\n\t\tString question_title=request.getParameter(\"que_title\");\n\t\t\n\t\tDate date= new Date();\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tString question_date=sdf.format(date);\n\t\t\n\t\tQuestionVo qv=new QuestionVo(question_department, question_semester,\n\t\t\t\tquestion_name, question_enrollment,\n\t\t\t\tquestion_title,question_date);\n \tcd.insert(qv);\n\t\ttry{\n\t\tresponse.sendRedirect(request.getContextPath()+\"/CTServlet?type=question&operation=view\");\n\t\t}\n\t\tcatch(Exception e){}\n\t\t\n\t\t\n\t}",
"@FXML\r\n public void addTreatmentButton(){\r\n //if any text field is empty, show error\r\n if(addTreatmentIDtf.getText().equals(\"\") || addTreatmentNametf.getText().equals(\"\") || addMedicineIDtf.getText().equals(\"\")\r\n || addDepartmentIDtf.getText().equals(\"\") || addDiseaseIDtf.getText().equals(\"\")){\r\n\r\n Notifications.create().title(\"Error Adding Treatment\")\r\n .text(\"One of the Text fields is empty, Please insert valid information to all text fields!\")\r\n .showError();\r\n }\r\n //if treatment id is a duplicate, show error\r\n else if (checkDuplicate(addTreatmentIDtf.getText())) {\r\n Notifications.create().title(\"Error Adding Treatment ID\")\r\n .text(\"Treatment ID already exists. Please enter a valid Treatment ID that does not already exist!\")\r\n .showError();\r\n }\r\n //else insert data\r\n else{\r\n\r\n String treatmentID = addTreatmentIDtf.getText();\r\n String treatmentName = addTreatmentNametf.getText();\r\n String medicineID = addMedicineIDtf.getText();\r\n String departmentID = addDepartmentIDtf.getText();\r\n String diseaseID = addDiseaseIDtf.getText();\r\n\r\n\r\n treatment tm = new treatment();\r\n tm.setIdProperty(treatmentID);\r\n tm.setTreatmentNameProperty(treatmentName);\r\n tm.setMedicineIDProperty(medicineID);\r\n tm.setDepartmentIDProperty(departmentID);\r\n tm.setDiseaseIDProperty(diseaseID);\r\n treatmentData.add(tm);\r\n String addButton = \"insert into treatment(treatmentID, treatmentName, medicineID,departmentID ,DiseaseID)\"+\"values (?,?,?,?,?)\";\r\n try {\r\n ps = mysql.prepareStatement(addButton);\r\n ps.setString(1,treatmentID);\r\n ps.setString(2,treatmentName);\r\n ps.setString(3,medicineID);\r\n ps.setString(4,departmentID);\r\n ps.setString(5,diseaseID);\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null; //might have to change this or take it away\r\n }\r\n catch (SQLException e) {\r\n e.printStackTrace();\r\n\r\n }\r\n addTreatmentIDtf.clear();\r\n addTreatmentNametf.clear();\r\n addMedicineIDtf.clear();\r\n addDepartmentIDtf.clear();\r\n addDiseaseIDtf.clear();\r\n\r\n }\r\n }",
"@OnClick (R.id.create_course_btn)\n public void createCourse()\n {\n\n CourseData courseData = new CourseData();\n courseData.CreateCourse( getView() ,UserData.user.getId() ,courseName.getText().toString() , placeName.getText().toString() , instructor.getText().toString() , Integer.parseInt(price.getText().toString()), date.getText().toString() , descreption.getText().toString() ,location.getText().toString() , subField.getSelectedItem().toString() , field.getSelectedItem().toString());\n }",
"public void insertDB() {\n sql = \"Insert into Order (OrderID, CustomerID, Status) VALUES ('\"+getCustomerID()+\"','\"+getCustomerID()+\"', '\"+getStatus()+\"')\";\n db.insertDB(sql);\n \n }",
"public void insertCourse(){\n \n }",
"private void teaInfoAddActionPerformed(ActionEvent evt) throws SQLException, Exception {//添加老师新信息\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n String teaID = this.teaIDText.getText();\n String teaName = this.teaNameText.getText();\n String teaCollege = this.teaCollegeText.getText();\n String teaDepartment = this.teaDepartmentText.getText();\n String teaPhone = this.teaPhoneText.getText();\n String teaRemark = this.teaInterestText.getText();\n if(StringUtil.isEmpty(teaID)){\n JOptionPane.showMessageDialog(null,\"教工号不能为空!\");\n return;\n }\n if(StringUtil.isEmpty(teaName)){\n JOptionPane.showMessageDialog(null,\"姓名不能为空!\");\n return;\n }\n if(StringUtil.isEmpty(teaCollege)){\n JOptionPane.showMessageDialog(null,\"学院不能为空!\");\n return;\n }\n if(StringUtil.isEmpty(teaDepartment)){\n JOptionPane.showMessageDialog(null,\"系不能为空!\");\n return;\n }\n if(StringUtil.isEmpty(teaPhone)){\n JOptionPane.showMessageDialog(null,\"手机不能为空!\");\n return;\n }\n if(teaID.length() != 11){\n JOptionPane.showMessageDialog(null,\"教工号位数不为11位!\");\n return;\n } \n if(!StringUtil.isAllNumber(teaID)){\n JOptionPane.showMessageDialog(null,\"教工号不为纯数字!\");\n return;\n }\n if(teaPhone.length() != 11){\n JOptionPane.showMessageDialog(null,\"手机号位数不为11位!\");\n return;\n } \n if(!StringUtil.isAllNumber(teaPhone)){\n JOptionPane.showMessageDialog(null,\"手机号不为纯数字!\");\n return;\n }\n Connection con = null;\n con = dbUtil.getConnection();\n if(teacherInfo.checkExist(con, teaID)){\n JOptionPane.showMessageDialog(null,\"当前教工号已存在,请勿重复添加!\");\n return;\n }\n Teacher teacher = new Teacher(teaID,teaName,teaSex,teaCollege,teaDepartment,teaType,teaPhone,teaRemark);\n try{\n con = dbUtil.getConnection();\n int result = teacherInfo.teacherInfoAdd(con, teacher);\n if(result == 1){\n JOptionPane.showMessageDialog(null,\"老师添加成功!\");\n resetTeaInfo();//重置老师信息所有栏\n return;\n }\n else{\n JOptionPane.showMessageDialog(null,\"老师添加失败!\");\n return;\n }\n }catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"public void insertIntoAdminDetails(String NIC, int CanteenNo, String Name, int ContactNo, String Password)\r\n {\r\n try \r\n {\r\n stmt = con.createStatement();\r\n stmt.execute(\"INSERT INTO admindetails(NIC, CanteenNo, Name, ContactNo, Password) VALUES('\"+NIC+\"',\"+CanteenNo+\",'\"+Name+\"',\"+ContactNo+\",'\"+Password+\"')\");\r\n\r\n } \r\n catch (SQLException ex) \r\n {\r\n JOptionPane.showMessageDialog(null,\"Invalid Entry\\n(\" + ex + \")\");\r\n }\r\n }",
"private void insertPerform(){\n \tif(!verify()){\n \t\treturn;\n \t}\n \tString val=new String(\"\");\n \tval=val+\"'\"+jTextField1.getText()+\"', \"; // poNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker1.getValue()\n \t\t)\n \t\t+\"', \"; // poDate\n \tval=val+\"'\"+vndList[jTextField2.getSelectedIndex()-1]+\"', \"; // vndNo\n \tval=val+\"'\"+jTextField3.getText()+\"', \"; // qtnNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker2.getValue()\n \t\t)\n \t\t+\"', \"; // qtnDate\n \tval=val+\"'\"+poAmount+\"', \"; // poTotal\n \tval=val+\"'pending', \"; // poStatus\n \tval=val+\"'\"+jEditorPane1.getText()+\"' \"; // remark\n \t\n \ttry{\n \t\tdbInterface1.cmdInsert(\"poMaster\", val);\n \t\tinsertPoBomDesc();\n \t\tinsertPoDesc();\n\t \tupdateBOM();\n \t}\n \tcatch(java.sql.SQLException ex){\n \t\tSystem.out.println (ex);\n \t}\n \tresetPerform();\n }",
"@Override\n public void onClick(View v) {\n if (!Validate()) return;\n\n //create new table movie class\n MovieTable i = new MovieTable(getApplicationContext());\n\n //create new movie with given data and get the states\n boolean is_created = i.create(getData());\n\n String message = \"\";\n if (is_created) { //successfully created\n clearData(); //clear the filled inputs\n message = \"Saved\";\n } else {\n message = \"Unknown Error Occurred!\";\n }\n //show status message\n Snackbar snackBar = Snackbar.make(findViewById(R.id.activity_register_base_layout), message, BaseTransientBottomBar.LENGTH_SHORT);\n snackBar.show();\n }",
"@RequestMapping(method=RequestMethod.POST)\n\tpublic ResponseEntity<Void> insert(@Valid @RequestBody ClienteNewDTO objDTO){\n\t\t\n\t\tCliente obj = service.fromDTO(objDTO);\n\t\tobj = service.insert(obj);\n\t\t\n\t\t//abaixo uma boa pratica para retornar a url do novo objeto quandro cria-lo\n\t\tURI uri = ServletUriComponentsBuilder.fromCurrentRequest()\n\t\t\t\t\t.path(\"/{id}\").buildAndExpand(obj.getId()).toUri(); //o from currente request vai pegar a requisicao atual, e logo depois a gente add o /id\n\t\t\n\t\treturn ResponseEntity.created(uri).build();\n\t}",
"private void jButtonInsertRowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonInsertRowActionPerformed\n // TODO add your handling code here:\n \n try {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n ActivityTypeTable at = new ActivityTypeTable(jTextFieldActivityType.getText(),\n sdf.format(jDateChooserStart.getDate()), sdf.format(jDateChooserEnd.getDate()));\n dm.insertActivity(at);\n JOptionPane.showMessageDialog(new JFrame(), \"New Row is Inserted \", \"Completed\", JOptionPane.INFORMATION_MESSAGE);\n\n } catch (SQLException | HeadlessException ex) {\n System.out.println(ex.getMessage());\n JOptionPane.showMessageDialog(new JFrame(), \"An SQL Exception was thrown: \\n\" + ex.getMessage(), \"SQL Exception\", JOptionPane.ERROR_MESSAGE);\n\n } catch (Exception e) {\n System.out.println(e.getMessage());\n JOptionPane.showMessageDialog(new JFrame(), \"Please Type in Correct Values\", \"Incorrect/Null Vaules\", JOptionPane.ERROR_MESSAGE);\n }\n\n }",
"public static void insertForm(Form form) {\n\t\t\n\t\ttry {\n\t\t\tConnection connection = getConnection();\n\t\t\ttry {\n\t\t\t\tPreparedStatement statement = connection.prepareStatement(\"INSERT INTO form (form_version, form_name, field_id, field_value) \"\n\t\t\t\t\t\t+ \"VALUES ('\"+form.getTheVersion()+\"','\"+form.getTheName()+\"', '\"+form.getTheFieldId()+\"', '\"+form.getTheFieldValue()+\"')\");\n\t\t\t\t\n\t\t\t\tstatement.executeUpdate();\n\n statement.close();\n connection.close();\n\t\t\t\t\n\t\t\t}catch(SQLException ex) {\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}catch (Exception e) {\n e.printStackTrace();\n }\n\t\t\n\t}",
"public void addData(final String name,final int phone){\n boolean isInserted = myDb.insertData(name,phone);\n if (isInserted =true){\n builder.setTitle(\" User Created Successfully\");\n builder.setMessage(\" Name : \"+ name +\"\\n Phone : +265\"+ phone);\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ///// go to general assessment///////\n\n mainActivity();\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }\n else {\n builder.setTitle(\"User Creation\");\n builder.setMessage(\"Response : Sorry Error occured!! Try again \" );\n builder.setNegativeButton(\"Try Again\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }\n }",
"public void insert(BibliographicDetails bibDetails) {\n\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n session.save(bibDetails);\n tx.commit();\n } catch (RuntimeException e) {\n \n tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n }",
"private void save() {\r\n if (String.valueOf(txt_name.getText()).equals(\"\") || String.valueOf(txt_bagian.getText()).equals(\"\")|| String.valueOf(txt_address.getText()).equals(\"\")|| String.valueOf(txt_telp.getText()).equals(\"\")) {\r\n Toast.makeText(getApplicationContext(),\r\n \"Anda belum memasukan Nama atau ALamat ...\", Toast.LENGTH_SHORT).show();\r\n } else {\r\n SQLite.insert(txt_name.getText().toString().trim(),txt_bagian.getText().toString().trim(), txt_address.getText().toString().trim(), txt_telp.getText().toString().trim());\r\n Toast.makeText(getApplicationContext(),\"Berhasil Menambahkan Data\",Toast.LENGTH_SHORT).show();\r\n blank();\r\n finish();\r\n }\r\n }",
"private void insertItemDetails() {\n String nameString = mItemNameEditText.getText().toString().trim();\n String locationString = mItemLocationEditText.getText().toString().trim();\n String commentsString = mItemCommentsEditText.getText().toString().trim();\n Bitmap bitmap = null;\n byte[] imageData = null;\n if (!(picturePath == null)) {\n bitmap = BitmapFactory.decodeFile(picturePath);\n imageData = getBitmapAsByteArray(bitmap);\n } else {\n BitmapDrawable drawable = (BitmapDrawable) mItemImageView.getDrawable();\n bitmap = drawable.getBitmap();\n imageData = getBitmapAsByteArray(bitmap);\n }\n // Create a ContentValues object where column names are the keys,\n // and item attributes from the editor are the values.\n ContentValues values = new ContentValues();\n values.put(FindEzContract.FindEzEntry.COLUMN_ITEM_NAME, nameString);\n values.put(FindEzContract.FindEzEntry.COLUMN_ITEM_LOCATION, locationString);\n values.put(FindEzContract.FindEzEntry.COLUMN_ITEM_COMMENTS, commentsString);\n if (imageData != null) {\n values.put(FindEzContract.FindEzEntry.COLUMN_ITEM_IMAGE, imageData);\n }\n mProgressbarView.setVisibility(View.VISIBLE);\n if (mCurrentItemInfoUri != null) {\n new updateDeleteItemToDbTask().execute(values);\n } else {\n new InsertItemToDbTask().execute(values);\n }\n }",
"public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }",
"private void saveData() {\n try {\n Student student = new Student(firstName.getText(), lastName.getText(),\n form.getText(), stream.getText(), birth.getText(),\n gender.getText(), Integer.parseInt(admission.getText()),\n Integer.parseInt(age.getText()));\n\n\n if (action.equalsIgnoreCase(\"new\") && !assist.checkIfNull(student)) {\n\n dao.insertNew(student);\n JOptionPane.showMessageDialog(null, \"Student saved !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n\n } else if (action.equalsIgnoreCase(\"update\") && !assist.checkIfNull(student)) {\n dao.updateStudent(student, getSelected());\n JOptionPane.showMessageDialog(null, \"Student Updated !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n }\n\n prepareTable();\n prepareHistory();\n buttonSave.setVisible(false);\n admission.setEditable(true);\n }catch (Exception e)\n {}\n }",
"public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}",
"protected void doNew() {\n\t\tgetRegisterView().clearTableSelection();\n\t\tclear();\n\t\tenableForm(true);\n\t\tgetForm().getButton(EDIT).setEnabled(false);\n\t\tgetForm().getField(CHECK_NUMBER).requestFocus();\n\t}",
"@RequestMapping(\"/insert\") \r\n\tpublic String insert(Person person, Model model) {\n\t\tif (service.newRecord(person)) {\r\n\t\t\tmodel.addAttribute(\"error\", false);\r\n\t\t\treturn listPeople(model);\r\n\t\t//If I can not save the record then set the variable to true and go to newperson template.\r\n\t\t} else {\r\n\t\t\tmodel.addAttribute(\"error\", true);\r\n\t\t\treturn \"people/newperson.html\";\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n ID = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n Ph = new javax.swing.JTextField();\n Cell = new javax.swing.JTextField();\n Name = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n Email = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n Address = new javax.swing.JTextArea();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"New Supplier\");\n setResizable(false);\n\n jLabel1.setText(\"Supplier ID\");\n\n jLabel2.setFont(new java.awt.Font(\"Forte\", 1, 14));\n jLabel2.setText(\"New Supplier\");\n\n jLabel4.setText(\"Cell\");\n\n jLabel5.setText(\"TelPh\");\n\n jLabel6.setText(\"Supplier Name\");\n\n jLabel11.setText(\"Email\");\n\n jLabel12.setText(\"Address\");\n\n Address.setColumns(20);\n Address.setRows(5);\n jScrollPane1.setViewportView(Address);\n\n jButton2.setText(\"Exit\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setFont(new java.awt.Font(\"Franklin Gothic Heavy\", 1, 12)); // NOI18N\n jButton3.setText(\"Save\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addGap(218, 218, 218))\n .addGroup(layout.createSequentialGroup()\n .addGap(63, 63, 63)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel6)\n .addComponent(jLabel1)\n .addComponent(jLabel5)\n .addComponent(jLabel4))\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(ID, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(Ph, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)\n .addComponent(Name)\n .addComponent(Cell, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE))\n .addGap(6, 6, 6)))\n .addGap(76, 76, 76)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Email, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, 0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(87, 87, 87)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(281, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(200, 200, 200))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(84, 84, 84)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(78, 78, 78)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(Name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Email, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Ph, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)\n .addComponent(jLabel12)))\n .addGroup(layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Cell, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)))\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addComponent(jButton3)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(25, 25, 25))\n );\n\n pack();\n }",
"private void jbtn_addActionPerformed(ActionEvent evt) {\n\t\ttry {\n\t\t\tconn cc=new conn();\n \t\t//String query1=\"SELECT * FROM doctor\";\n \t\t//ResultSet rs=cc.st.executeQuery(query1);\n \t\tpst=cc.c.prepareStatement(\"insert into medicine(medicine_name,brand,mfd_date,expiry_date,price)value(?,?,?,?,?)\");\n \t\t\n \t\tpst.setString(1,jtxt_medname.getText());\n \t\tpst.setString(2,jtxt_brand.getText());\n \t\tpst.setString(3,jtxt_mfd.getText());\n \t\tpst.setString(4,jtxt_exp.getText());\n \t\tpst.setString(5,jtxt_price.getText());\n \t\t\n \t\tpst.executeUpdate();\n \t\tJOptionPane.showMessageDialog(this,\"Record Added\");\n \t\tupDateDB();\n \t\ttxtblank();\n \t\t\n\t\t}\n\t\t \n\t\t\n\t\tcatch (SQLException ex)\n\t\t{\n\t\t\tjava.util.logging.Logger.getLogger(show_doc.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t}\n\t\t\n\t}",
"public void insert(TbAdminMenu record) {\n getSqlMapClientTemplate().insert(\"tb_admin_menu.ibatorgenerated_insert\", record);\n }",
"public void addContactDetails() {\n firstNameField.setText(contact.getFirstName());\n middleNameField.setText(contact.getMiddleName());\n lastNameField.setText(contact.getLastName());\n\n homePhoneField.setText(contact.getHomePhone());\n workPhoneField.setText(contact.getWorkPhone());\n\n homeAddressField.setText(contact.getHomeAddress());\n workAddressField.setText(contact.getWorkAddress());\n\n personalEmailField.setText(contact.getPersonalEmail());\n workEmailField.setText(contact.getWorkEmail());\n\n }",
"public void submitInfoButton(View v) {\n //each entry needs a unique ID\n Business newBusiness = new Business();\n String newKey = appState.firebaseReference.push().getKey();\n newBusiness.setName(nameField.getText().toString());\n newBusiness.setPrimaryBusiness(primaryBusinessField.getText().toString());\n newBusiness.setBusinessNumber(numberField.getText().toString());\n newBusiness.setAddress(addressField.getText().toString());\n newBusiness.setProvince(provinceField.getSelectedItem().toString());\n\n appState.firebaseReference.child(newKey).setValue(newBusiness,\n new DatabaseReference.CompletionListener(){\n @Override\n public void onComplete(DatabaseError databaseError, DatabaseReference databaseReference){\n if(databaseError != null){\n Toast toast = Toast.makeText(appState, \"Error: Creation failed!\",\n Toast.LENGTH_LONG);\n toast.show();\n } else {\n finish();\n Toast toast = Toast.makeText(appState, \"Business entry created\",\n Toast.LENGTH_LONG);\n toast.show();\n }\n }\n });\n }",
"public WCreateExam() {\n initComponents();\n setLocationRelativeTo(null);\n this.setExamID();\n this.updateTable();\n }",
"public void newStudentButtonPushed() {\r\n String firstName = firstNameTextField.getText();\r\n String lastName = lastNameTextField.getText();\r\n LocalDate birthdayDate = birthdayDatePicker.getValue();\r\n \r\n // Firts Name Validation\r\n if (firstName != null && (firstName.length() < MIN_CHARS)) {\r\n Alert alert = new Alert(Alert.AlertType.WARNING);\r\n alert.setTitle(\"Invalid Input\");\r\n alert.setHeaderText(null);\r\n alert.setContentText(\r\n \"First Name is not correct \"\r\n + \"(empty name or shorter that three characters)!\");\r\n alert.showAndWait();\r\n \r\n return;\r\n }\r\n \r\n // Last Name Validation\r\n if (lastName != null && (lastName.length() < MIN_CHARS)) {\r\n Alert alert = new Alert(Alert.AlertType.WARNING);\r\n alert.setTitle(\"Invalid Input\");\r\n alert.setHeaderText(null);\r\n alert.setContentText(\r\n \"Last Name is not correct \"\r\n + \"(empty name or shorter that three characters)!\");\r\n alert.showAndWait();\r\n \r\n return;\r\n }\r\n \r\n // Date Validation\r\n if (birthdayDate == null || birthdayDate.isAfter(\r\n LocalDate.now().minusYears(MIN_YEARS_OLD))) {\r\n Alert alert = new Alert(Alert.AlertType.WARNING);\r\n alert.setTitle(\"Invalid Input\");\r\n alert.setHeaderText(null);\r\n alert.setContentText(\r\n \"Date is not correct \"\r\n + \"(empty date or student < 17 years old)!\");\r\n alert.showAndWait();\r\n \r\n return;\r\n }\r\n \r\n // Construct new student\r\n Student newStudent = new Student(firstName, lastName, birthdayDate);\r\n \r\n try {\r\n newStudent = covidMngrService.addStudent(newStudent);\r\n \r\n // Get all the items from the table as a list, then add the \r\n // new student to the list\r\n tableView.getItems().add(newStudent);\r\n } catch (RemoteException ex) {\r\n Logger.getLogger(StudentMainCntrl.class.getName()).\r\n log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}",
"public pInsertar() {\n initComponents();\n }",
"@GetMapping(\"/showFormForAdd\")\r\n\tpublic String showFormForAdd(Model theModel){\n\t\tCustomer theCustomer = new Customer();\r\n\t\t\r\n\t\ttheModel.addAttribute(\"customer\",theCustomer);\r\n\t\t\r\n\t\treturn \"customer-form\";\r\n\t}",
"private void insertar() {\n try {\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.insertar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Ingresado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para guardar registro!\");\n }\n }",
"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 }",
"@PostMapping(\"/createAccount\")\n public ModelAndView createNewAccount(AccountCreateDTO createDTO){\n ModelAndView modelAndView = new ModelAndView();\n\n accountService.createAccount(createDTO);\n modelAndView.addObject(\"successMessage\", \"Account has been created\");\n modelAndView.setViewName(\"accountPage\");\n\n return modelAndView;\n }",
"@RequestMapping(\"showForm\")\n\tpublic String showForm( Model theModel) {\n\t\t\n\t\t//create a student\n\t\tStudent theStudent = new Student();\n\t\t\n\t\t//add student to the model\n\t\ttheModel.addAttribute(\"student\", theStudent);\n\t\t\n\t\treturn \"student-form\";\n\t}",
"public void savePerson()\r\n { \r\n\t/*get values from text fields*/\r\n\tname = tfName.getText();\r\n\taddress = tfAddress.getText();\r\n\tphone = Integer.parseInt(tfPhone.getText());\r\n\temail = tfEmail.getText();\r\n\r\n\tif(name.equals(\"\"))\r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null, \"Please enter person name.\");\r\n\t}else\r\n {\r\n\r\n\t /*create a new PersonInfo object and pass it to PersonDAO to save it*/\r\n\t PersonInfo person = new PersonInfo(name, address, phone, email);\r\n\t pDAO.savePerson(person);\r\n\r\n\t JOptionPane.showMessageDialog(null, \"Record added\");\r\n }\r\n }",
"public void insertBooking(){\n \n Validator v = new Validator();\n if (createBookingType.getValue() == null)\n {\n \n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Booking Type!\")\n .showInformation();\n \n return;\n \n }\n if (createBookingType.getValue().toString().equals(\"Repair\"))\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Go to Diagnosis and Repair tab for creating Repair Bookings!\")\n .showInformation();\n \n \n if(v.checkBookingDate(parseToDate(createBookingDate.getValue(),createBookingTimeStart.localTimeProperty().getValue()),\n parseToDate(createBookingDate.getValue(),createBookingTimeEnd.localTimeProperty().getValue()))\n && customerSet)\n \n { \n \n int mID = GLOBAL.getMechanicID();\n \n try {\n mID = Integer.parseInt(createBookingMechanic.getSelectionModel().getSelectedItem().toString().substring(0,1));\n } catch (Exception ex) {\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Mechanic!\")\n .showInformation();\n return;\n }\n \n if (mID != GLOBAL.getMechanicID())\n if (!getAuth(mID)) return;\n \n createBookingClass();\n dbH.insertBooking(booking);\n booking.setID(dbH.getLastBookingID());\n appointment = createAppointment(booking);\n closeWindow();\n \n }\n else\n {\n String extra = \"\";\n if (!customerSet) extra = \" Customer and/or Vehicle is not set!\";\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Errors with booking:\"+v.getError()+extra)\n .showInformation();\n }\n \n }",
"public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }",
"public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\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 String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}",
"public static void RcForm() throws ClassNotFoundException, SQLException {\r\n Statement s = DBConnect.connection.createStatement();\r\n String chkDte = \"SELECT Date_Created As dateCreated FROM existing_forms WHERE Date_Created IS NOT NULL AND Form_Name = '\"+ StFrmNm + \"'\";\r\n s.execute(chkDte);\r\n try (ResultSet rs1 = s.getResultSet()) {\r\n if (rs1.next()) {\r\n dteCreate = rs1.getString(\"dateCreated\");\r\n }\r\n }\r\n if (dteCreate == null) {\r\n String insertTable = \"INSERT INTO existing_forms\"\r\n + \"(Store, Form_Name, Date_Created, Last_Updated, Status) \"\r\n + \"VALUES(\"\r\n + \"'\" + GtStore.store.toLowerCase() + \"'\" + \",\"\r\n + \"'\" + StFrmNm + \"'\" + \",\"\r\n + \"'\" + GtDates.tdate + \"'\" + \",\"\r\n + \"'\" + GtDates.tdate + \"'\" + \",\"\r\n + \"'\" + \"In-Process\" + \"'\"\r\n + \")\";\r\n s.execute(insertTable); \r\n \r\n //String crtTable = \"SELECT * INTO \" + StFrmNm + \" FROM ias WHERE 1=2\";\r\n String crtTable = \"CREATE TABLE \" + StFrmNm + \" SELECT * FROM ebas\";\r\n s.execute(crtTable); \r\n }\r\n \r\n insLns();\r\n // lastUpdate();\r\n }",
"public void insert()\n {\n CInsertUser cInsertUser = new CInsertUser();\n window.dispose();\n }",
"private void insert(HttpServletRequest request)throws Exception {\n\t\tPedido p = new Pedido();\r\n\t\tCliente c = new Cliente();\r\n\t\tCancion ca = new Cancion();\r\n\t\tp.setCod_pedido(request.getParameter(\"codigo\"));\r\n\t\tca.setCod_cancion(request.getParameter(\"cod_cancion\"));\r\n\t\tc.setCod_cliente(request.getParameter(\"cod_cliente\"));\r\n\t\tp.setCan(ca);\r\n\t\tp.setCl(c);\r\n\t\t\r\n\t\tpdmodel.RegistrarPedido(p);\r\n\t\t\r\n\t}",
"private void createNewUser() {\n ContentValues contentValues = new ContentValues();\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.GENDER, getSelectedGender());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.PIN, edtConfirmPin.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.LAST_NAME, edtLastName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.FIRST_NAME, edtFirstName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.STATUS, spnStatus.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.DATE_OF_BIRTH, edtDateOfBirth.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.BLOOD_GROUP, spnBloodGroup.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.IS_DELETED, \"N\");\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.MOBILE_NUMBER, edtMobileNumber.getText().toString());\n contentValues.put(DataBaseConstants.Constants_TBL_CATEGORIES.CREATE_DATE, Utils.getCurrentDateTime(Utils.DD_MM_YYYY));\n\n dataBaseHelper.saveToLocalTable(DataBaseConstants.TableNames.TBL_PATIENTS, contentValues);\n context.startActivity(new Intent(CreatePinActivity.this, LoginActivity.class));\n }",
"@Override\r\n\tpublic String insert() {\n\t\tboolean mesg=false;\r\n\t\tif(adminDao.doSave(admin)==1)\r\n\t\t\tmesg=true;\r\n\t\tthis.setResultMesg(mesg, \"²åÈë\");\r\n\t\treturn SUCCESS;\r\n\t}",
"@Override\n public void successInsertBranch() {\n edtAddress.setText(\"\");\n edtPassword.setText(\"\");\n edtBranchName.setText(\"\");\n Toast.makeText(context, \"Branch has been added\", Toast.LENGTH_SHORT).show();\n // presenter.getBranchData();\n\n }",
"public AjaxResponse insertNewAssetDetails(AjaxSubmitEvent event) {\n\n\t\tAjaxResponse response = new AjaxResponseImpl();\n\n\t\tManufacturingOrder dto = (ManufacturingOrder) event.getCommandObject();\n\n\t\tif ((dto.getError() != null) && !(dto.getError().isEmpty())) {\n\n\t\t\tReplaceContentAction action = new ReplaceContentAction(\n\t\t\t\t\t\"statusMessage\", new SimpleText(\n\t\t\t\t\t\t\t\"<font color=\\\"red\\\" size=\\\"2px\\\">\"\n\t\t\t\t\t\t\t\t\t+ dto.getError() + \"</font>\"));\n\t\t\tresponse.addAction(action);\n\n\t\t\tReplaceContentAction buttonAction = new ReplaceContentAction(\n\t\t\t\t\t\"buttonsDiv\", buildNewButtonContainer());\n\t\t\tresponse.addAction(buttonAction);\n\n\t\t\tExecuteJavascriptFunctionAction enableFields = new ExecuteJavascriptFunctionAction(\n\t\t\t\t\t\"enableAssetFields\", new HashMap<String, Object>());\n\t\t\tresponse.addAction(enableFields);\n\n\t\t\tdto.setError(\"\");\n\n\t\t} else {\n\t\t\t// Success Message\n\t\t\tReplaceContentAction action = new ReplaceContentAction(\n\t\t\t\t\t\"statusMessage\",\n\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\"<font color=\\\"green\\\" size=\\\"2px\\\">Added Successfully</font>\"));\n\t\t\tresponse.addAction(action);\n\n\t\t\tgetAssetTableDetails(response, dto);\n\n\t\t}\n\n\t\treturn response;\n\n\t}",
"@RequestMapping(value =\"/fromCreateScreenCode\", params = \"Save\", method = RequestMethod.POST) \r\n\t public ModelAndView saveCreateScreenCode(@ModelAttribute(\"SpringWeb\")CreateScreenCode createScreenCode, ModelMap model) { \r\n\r\n\t\t\t//Text_T_Intract intract=Text_T_Intract.getModel();\r\n\t\t\t//Text_T_Services tServices=new Text_T_Services();\r\n\t\t\tFunction_T_Intract intract=Function_T_Intract.getModel();\r\n\t\t\tFunction_T_Services tServices=new Function_T_Services();\r\n\t\t\t\r\n\t\t\tCreateHeaderInfo header=new CreateHeaderInfo();\r\n\t \r\n\t\t\tCreateScreenCode cCode=tServices.addCreatedInfo(createScreenCode);\r\n\t System.out.println(\"Save started\");\r\n\t intract.saveOrUpdateCode(cCode);\r\n\t System.out.println(\"save finished\");\r\n\t System.out.println(\"load started\");\r\n\t List<CreateScreenCode> list=intract.loadFunctionTRecords();\r\n\t System.out.println(\"load Ended\");\r\n\t ModelAndView mnv = new ModelAndView(\"CreateScreenCode\", \"command\", new CreateScreenCode());\r\n\t \r\n\t mnv.addObject(\"headerinfo\",header.getCodeHeaderInfo());\r\n\t mnv.addObject(\"lists\", list);\r\n\t \r\n\t intract.sf.close();\r\n\t return mnv;\r\n\t }",
"public String createRegisterForm(Register reg)\n {\n DBConnect db = new DBConnect();\n Connection con;\n \n try\n {\n con = (Connection) db.establishConnection();\n String q = \"insert into registerUser (register_name, register_email, register_phone, register_pass)\"\n + \"values (?, ?, ?, ?)\";\n \n PreparedStatement prepareState = con.prepareStatement(q);\n \n prepareState.setString(1, reg.getRegisterName());\n prepareState.setString(2, reg.getRegisterEmail());\n prepareState.setString(3, reg.getRegisterPhone());\n prepareState.setString(4, reg.getRegisterPassword());\n \n prepareState.execute();\n con.close();\n \n return \"Successfully Registered..!!\";\n }\n \n catch(Exception ex)\n {\n System.err.println(\"Exception..!!\");\n System.err.println(\"Message: \" + ex.getMessage());\n \n return \"Data Not Registered..!!\";\n }\n \n }",
"@ModelAttribute(\"student\")\n public Student_gra_84 setupAddForm() {\n return new Student_gra_84();\n }",
"@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}",
"private void showAddDetailsDialog() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());\n AlertDialog dialog = alertDialog.create();\n\n if (dialog.getWindow() != null) {\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);\n }\n\n View view = LayoutInflater.from(getActivity()).inflate(R.layout.add_student_details_layout, null);\n dialog.setView(view);\n\n final EditText studentIDText = view.findViewById(R.id.studentIDText);\n final EditText studentNameText = view.findViewById(R.id.studentNameText);\n final EditText fatherNameText = view.findViewById(R.id.fatherNameText);\n final EditText phoneText = view.findViewById(R.id.phoneText);\n final EditText emailText = view.findViewById(R.id.emailText);\n final MaterialSpinner standardDropdown = view.findViewById(R.id.standardDropdown);\n final MaterialSpinner sectionDropdown = view.findViewById(R.id.sectionDropdown);\n\n //just in case,, error is to be generated\n studentIDLayout = view.findViewById(R.id.studentIDInputLayout);\n studentNameLayout = view.findViewById(R.id.studentNameInputLayout);\n fatherNameLayout = view.findViewById(R.id.fatherNameInputLayout);\n phoneLayout = view.findViewById(R.id.phoneInputLayout);\n emailLayout = view.findViewById(R.id.emailInputLayout);\n genderErrorText = view.findViewById(R.id.genderErrorText);\n\n final RadioButton maleRadio = view.findViewById(R.id.maleRadio);\n final RadioButton femaleRadio = view.findViewById(R.id.femaleRadio);\n\n final CardView addDetailsCard = view.findViewById(R.id.addDetailsButton);\n final CardView closeCard = view.findViewById(R.id.closeButton);\n\n final String[] arrStandard = getResources().getStringArray(R.array.standard_array);\n standard = arrStandard[0];\n if (standardDropdown != null) {\n standardDropdown.setItems(arrStandard);\n standardDropdown.setOnItemSelectedListener((MaterialSpinner.OnItemSelectedListener<String>) (view12, position, id, item) -> standard = item);\n }\n\n final String[] arrSection = getResources().getStringArray(R.array.section_array);\n section = arrSection[0];\n if (sectionDropdown != null) {\n sectionDropdown.setItems(arrSection);\n sectionDropdown.setOnItemSelectedListener((MaterialSpinner.OnItemSelectedListener<String>) (view12, position, id, item) -> section = item);\n }\n\n if (addDetailsCard != null) {\n addDetailsCard.setOnClickListener(view1 -> {\n studentID = studentIDText.getText().toString();\n studentName = studentNameText.getText().toString();\n fatherName = fatherNameText.getText().toString();\n phone = phoneText.getText().toString();\n\n List<School> schools = db.schoolDao().getAll();\n int school = -1;\n if (schools.size() > 0)\n school = schools.get(0).getId();\n\n email = emailText.getText().toString();\n\n if (maleRadio != null && femaleRadio != null) {\n if (maleRadio.isChecked()) {\n gender = \"M\";\n } else if (femaleRadio.isChecked()) {\n gender = \"F\";\n }\n }\n\n //input validation\n if (isInputValid()) {\n try {\n SchoolAPI.getInstance(getContext()).addStudentDetails(studentID, studentName, school, email, phone, this.standard, section, gender, fatherName, dialog, db);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n });\n }\n\n if (closeCard != null) {\n Log.d(TAG, \"close card!!\");\n closeCard.setOnClickListener(view1 -> {\n Log.d(TAG, \"card closed\");\n dialog.dismiss();\n });\n }\n\n dialog.setCancelable(false);\n dialog.show();\n }",
"int insert(AdminTab record);",
"public String addNew() {\r\n\t\ttry {\r\n\t\t\tgetNavigationPanel(2);\r\n\t\t\treturn \"questData\";\r\n\t\t} catch(Exception e) {\r\n\t\t\tlogger.error(\"Exception in addNew in action:\" + e);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}",
"private void InsertActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_InsertActionPerformed\n try{\n if(isEmpty())\n throw new Exception(\"Introdu toate datele!\");\n\n // if phone is frequency dont insert\n if(isExitsPhone())\n throw new Exception(\"Eroare nr telefon!\");\n\n boolean ok = insert();\n if(ok){\n Vector data = getData(\"\");\n showData(data);\n } else\n throw new Exception(\"Eroare la inserare!\");\n\n }catch(Exception e){\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n }",
"public void popupAdd() {\n builder = new AlertDialog.Builder(getView().getContext());\n View views = getLayoutInflater().inflate(R.layout.departmentpopup, (ViewGroup) null);\n DepartmentName = (EditText) views.findViewById(R.id.department_name);\n DepartmentId = (EditText) views.findViewById(R.id.department_id);\n pbar =views.findViewById(R.id.departmentProgress);\n Button button =views.findViewById(R.id.save_depart);\n saveButton = button;\n button.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n addDeparatments();\n }\n });\n builder.setView(views);\n AlertDialog create =builder.create();\n dialog = create;\n create.show();\n }",
"@PostMapping(\"/addPharmacist\")\n public String pharmacistSubmit(@ModelAttribute Pharmacist pharmacist) {\n \t\n jdbcTemplate.update(\"insert into lshoemake.pharmacist values (?, ?, ?, ?, ?, ?)\", \n \t\tpharmacist.getPhID(), pharmacist.getLastName(), \n \t\tpharmacist.getFirstName(), pharmacist.getDOB(), \n \t\tpharmacist.getDeptID() == 0 ? null : pharmacist.getDeptID(), \n \t\tpharmacist.getOfficeNumber() == 0 ? null : pharmacist.getOfficeNumber());\n\n return \"success\";\n }",
"public Result createRoom() {\n\n DynamicForm dynamicForm = Form.form().bindFromRequest();\n String roomType = dynamicForm.get(\"roomType\");\n Double price = Double.parseDouble(dynamicForm.get(\"price\"));\n int bedCount = Integer.parseInt(dynamicForm.get(\"beds\"));\n String wifi = dynamicForm.get(\"wifi\");\n String smoking = dynamicForm.get(\"smoking\");\n\n RoomType roomTypeObj = new RoomType(roomType, price, bedCount, wifi, smoking);\n\n if (dynamicForm.get(\"AddRoomType\") != null) {\n\n Ebean.save(roomTypeObj);\n String message = \"New Room type is created Successfully\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n } else{\n\n String message = \"Failed to create a new Room type\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n\n }\n\n\n\n }",
"public void insert1(DocumentDetails docDetails) {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n session.save(docDetails);\n tx.commit();\n } catch (RuntimeException e) {\n \n tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n }"
] | [
"0.6356612",
"0.6323447",
"0.6210363",
"0.6193803",
"0.61913824",
"0.61446065",
"0.6140461",
"0.61097145",
"0.6107637",
"0.5962219",
"0.59357303",
"0.59339064",
"0.59335524",
"0.59266186",
"0.59235597",
"0.5911977",
"0.5899524",
"0.58428687",
"0.58306676",
"0.5827202",
"0.5813236",
"0.5812332",
"0.580648",
"0.5760785",
"0.5760513",
"0.574668",
"0.57278013",
"0.57270175",
"0.57256407",
"0.5716897",
"0.57160765",
"0.57124794",
"0.570706",
"0.5698551",
"0.569462",
"0.5689104",
"0.5656945",
"0.56551015",
"0.5650467",
"0.5649195",
"0.5640911",
"0.5633638",
"0.56324965",
"0.56308854",
"0.56305146",
"0.56111133",
"0.5606785",
"0.5596186",
"0.55959684",
"0.5595329",
"0.5589443",
"0.5583152",
"0.55732644",
"0.55725944",
"0.5572447",
"0.55658436",
"0.5558049",
"0.5554548",
"0.55544466",
"0.554948",
"0.55479944",
"0.55478567",
"0.55477583",
"0.5545835",
"0.5539807",
"0.55239826",
"0.5518614",
"0.5517274",
"0.5516791",
"0.551211",
"0.5511182",
"0.5504602",
"0.5504583",
"0.5503689",
"0.5500061",
"0.5499094",
"0.5495257",
"0.5482203",
"0.5480871",
"0.5479553",
"0.5479204",
"0.5474055",
"0.54727095",
"0.54689807",
"0.5464537",
"0.54601884",
"0.5459522",
"0.5452082",
"0.5450284",
"0.5446834",
"0.5446783",
"0.5441029",
"0.5437498",
"0.5436883",
"0.54364014",
"0.5432933",
"0.5419242",
"0.5412667",
"0.54125404",
"0.5411668"
] | 0.6997195 | 0 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jComboBox1 = new javax.swing.JComboBox<>();
buttonGroup1 = new javax.swing.ButtonGroup();
buttonGroup2 = new javax.swing.ButtonGroup();
jPanel9 = new javax.swing.JPanel();
jTabbedPane1 = new javax.swing.JTabbedPane();
jPanel2 = new javax.swing.JPanel();
jLabel6 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
Court_ID = new javax.swing.JTextField();
Address = new javax.swing.JTextField();
Chief_Justice = new javax.swing.JTextField();
Jury = new javax.swing.JTextField();
Submit_Court = new javax.swing.JButton();
Update_Court = new javax.swing.JButton();
Supreme = new javax.swing.JRadioButton();
High = new javax.swing.JRadioButton();
Tribunal = new javax.swing.JRadioButton();
District = new javax.swing.JRadioButton();
Sessions = new javax.swing.JRadioButton();
jPanel1 = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
Court_ID_Case = new javax.swing.JTextField();
Verdict = new javax.swing.JTextField();
Verdict_Date = new javax.swing.JTextField();
Charges = new javax.swing.JTextField();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
Submit_Case = new javax.swing.JButton();
Case_ID = new javax.swing.JTextField();
jLabel13 = new javax.swing.JLabel();
Update_Case = new javax.swing.JButton();
CivilButton = new javax.swing.JRadioButton();
CriminalButton = new javax.swing.JRadioButton();
jPanel4 = new javax.swing.JPanel();
jLabel23 = new javax.swing.JLabel();
jLabel24 = new javax.swing.JLabel();
jLabel25 = new javax.swing.JLabel();
Prison_ID = new javax.swing.JTextField();
Prison_Location = new javax.swing.JTextField();
Jurisdiction = new javax.swing.JTextField();
Update_Prison = new javax.swing.JButton();
Blocks = new javax.swing.JTextField();
jLabel48 = new javax.swing.JLabel();
jLabel49 = new javax.swing.JLabel();
No_Of_Cells = new javax.swing.JTextField();
Update_Prison1 = new javax.swing.JButton();
jPanel5 = new javax.swing.JPanel();
jLabel27 = new javax.swing.JLabel();
jLabel28 = new javax.swing.JLabel();
jLabel29 = new javax.swing.JLabel();
jLabel30 = new javax.swing.JLabel();
jLabel31 = new javax.swing.JLabel();
jLabel32 = new javax.swing.JLabel();
Staff_Salary = new javax.swing.JTextField();
Staff_Designation = new javax.swing.JTextField();
Staff_Address = new javax.swing.JTextField();
Staff_ID = new javax.swing.JTextField();
Staff_DoB = new javax.swing.JTextField();
Submit_Staff = new javax.swing.JButton();
Staff_Name = new javax.swing.JTextField();
Update_Staff = new javax.swing.JButton();
jLabel43 = new javax.swing.JLabel();
Morning_Box = new javax.swing.JCheckBox();
Evening_Box = new javax.swing.JCheckBox();
Noon_Box = new javax.swing.JCheckBox();
Night_Box = new javax.swing.JCheckBox();
jPanel3 = new javax.swing.JPanel();
jLabel14 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
jLabel17 = new javax.swing.JLabel();
jLabel18 = new javax.swing.JLabel();
jLabel19 = new javax.swing.JLabel();
jLabel20 = new javax.swing.JLabel();
jLabel21 = new javax.swing.JLabel();
jLabel22 = new javax.swing.JLabel();
Inmate_ID = new javax.swing.JTextField();
Release_Date = new javax.swing.JTextField();
Alias = new javax.swing.JTextField();
Inmate_Name = new javax.swing.JTextField();
Start_Date = new javax.swing.JTextField();
Inmate_DoB = new javax.swing.JTextField();
Case_ID_Inmate = new javax.swing.JTextField();
Prison_ID_Inmate = new javax.swing.JTextField();
Supervisor_Staff_ID = new javax.swing.JTextField();
Submit_Inmate = new javax.swing.JButton();
Update_Inmate = new javax.swing.JButton();
jLabel50 = new javax.swing.JLabel();
jLabel51 = new javax.swing.JLabel();
Blocks_Inmate = new javax.swing.JTextField();
Cells_Inmate = new javax.swing.JTextField();
jPanel6 = new javax.swing.JPanel();
jLabel33 = new javax.swing.JLabel();
jLabel34 = new javax.swing.JLabel();
Job_ID = new javax.swing.JTextField();
jScrollPane2 = new javax.swing.JScrollPane();
Job_Description = new javax.swing.JTextArea();
Submit_Job_Desc = new javax.swing.JButton();
Submit_Job_Desc1 = new javax.swing.JButton();
jPanel10 = new javax.swing.JPanel();
jLabel26 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jPanel11 = new javax.swing.JPanel();
jLabel47 = new javax.swing.JLabel();
jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jScrollPane1.setViewportView(jTextArea1);
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setResizable(false);
jPanel9.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBackground(new java.awt.Color(204, 255, 255));
jLabel6.setText("Court_ID");
jLabel9.setText("Address");
jLabel10.setText("Chief_Justice");
jLabel11.setText("Level");
jLabel12.setText("Jury_Members");
Jury.setToolTipText("(Enter multiple values separated by comma.)");
Jury.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JuryActionPerformed(evt);
}
});
Submit_Court.setBackground(new java.awt.Color(255, 255, 255));
Submit_Court.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Submit_Court.setText("Insert");
Submit_Court.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Submit_CourtActionPerformed(evt);
}
});
Update_Court.setBackground(new java.awt.Color(255, 255, 255));
Update_Court.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Update_Court.setText("Update");
Update_Court.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Update_CourtActionPerformed(evt);
}
});
buttonGroup1.add(Supreme);
Supreme.setText("Supreme");
buttonGroup1.add(High);
High.setText("High");
High.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
HighActionPerformed(evt);
}
});
buttonGroup1.add(Tribunal);
Tribunal.setText("Tribunal");
buttonGroup1.add(District);
District.setText("District");
buttonGroup1.add(Sessions);
Sessions.setText("Sessions");
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addContainerGap(64, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(Submit_Court, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(Update_Court, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel6)
.addComponent(jLabel9)
.addComponent(jLabel12)
.addComponent(jLabel11)
.addComponent(jLabel10))
.addGap(32, 32, 32)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Sessions)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(Tribunal)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(District))
.addComponent(Chief_Justice, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
.addComponent(Court_ID, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
.addComponent(Address, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
.addComponent(Jury, javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(Supreme)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(High))))))
.addGap(54, 54, 54))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(165, 165, 165)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel6)
.addComponent(Court_ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel9)
.addComponent(Address, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel10)
.addComponent(Chief_Justice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel11)
.addComponent(Supreme)
.addComponent(High))
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(Tribunal)
.addComponent(District))
.addGap(18, 18, 18)
.addComponent(Sessions)
.addGap(15, 15, 15)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel12)
.addComponent(Jury, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(Submit_Court)
.addGap(18, 18, 18)
.addComponent(Update_Court)
.addContainerGap(231, Short.MAX_VALUE))
);
jTabbedPane1.addTab("Court", jPanel2);
jPanel1.setBackground(new java.awt.Color(204, 255, 255));
jLabel2.setText("Type");
jLabel3.setText("Verdict");
jLabel4.setText("Verdict_Date");
jLabel5.setText("Court_ID");
Verdict_Date.setToolTipText("YYYY-MM-DD");
Verdict_Date.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Verdict_DateActionPerformed(evt);
}
});
Charges.setToolTipText("(Enter multiple values separated by comma.)");
Charges.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ChargesActionPerformed(evt);
}
});
jLabel7.setText("Charges");
Submit_Case.setBackground(new java.awt.Color(255, 255, 255));
Submit_Case.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Submit_Case.setText("Insert");
Submit_Case.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Submit_CaseActionPerformed(evt);
}
});
Case_ID.setToolTipText("");
Case_ID.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Case_IDActionPerformed(evt);
}
});
jLabel13.setText("Case_ID");
Update_Case.setBackground(new java.awt.Color(255, 255, 255));
Update_Case.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Update_Case.setText("Update");
Update_Case.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Update_CaseActionPerformed(evt);
}
});
buttonGroup2.add(CivilButton);
CivilButton.setText("Civil");
CivilButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
CivilButtonActionPerformed(evt);
}
});
buttonGroup2.add(CriminalButton);
CriminalButton.setText("Criminal");
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(49, 49, 49)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(Submit_Case, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel13)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(Case_ID, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4)
.addComponent(jLabel3)
.addComponent(jLabel2)
.addComponent(jLabel5)
.addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(52, 52, 52)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(CivilButton)
.addGap(92, 92, 92)
.addComponent(CriminalButton))
.addComponent(Verdict)
.addComponent(Court_ID_Case)
.addComponent(Verdict_Date, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(Charges)))
.addComponent(Update_Case, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(60, 60, 60)
.addComponent(jLabel8)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(190, 190, 190)
.addComponent(jLabel8))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(155, 155, 155)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel13)
.addComponent(Case_ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(CivilButton)
.addComponent(CriminalButton))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(Verdict, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(Verdict_Date, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(Court_ID_Case, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel7)
.addComponent(Charges, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGap(27, 27, 27)
.addComponent(Submit_Case)
.addGap(18, 18, 18)
.addComponent(Update_Case)
.addContainerGap(273, Short.MAX_VALUE))
);
jTabbedPane1.addTab("Case", jPanel1);
jPanel4.setBackground(new java.awt.Color(204, 255, 255));
jLabel23.setText("Prison_ID");
jLabel24.setText("Location");
jLabel25.setText("Jurisdiction");
Prison_ID.setToolTipText("");
Jurisdiction.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JurisdictionActionPerformed(evt);
}
});
Update_Prison.setBackground(new java.awt.Color(255, 255, 255));
Update_Prison.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Update_Prison.setText("Update");
Update_Prison.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Update_PrisonActionPerformed(evt);
}
});
Blocks.setToolTipText("(Enter multiple values separated by comma.)");
Blocks.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
BlocksActionPerformed(evt);
}
});
jLabel48.setText("Blocks");
jLabel49.setText("No_Of_Cells");
No_Of_Cells.setToolTipText("(Enter multiple values separated by comma.)");
No_Of_Cells.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
No_Of_CellsActionPerformed(evt);
}
});
Update_Prison1.setBackground(new java.awt.Color(255, 255, 255));
Update_Prison1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Update_Prison1.setText("Insert");
Update_Prison1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Update_Prison1ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addGap(44, 44, 44)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel4Layout.createSequentialGroup()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel25)
.addComponent(jLabel48)
.addComponent(jLabel49, javax.swing.GroupLayout.Alignment.TRAILING))
.addGap(43, 43, 43)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(No_Of_Cells, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
.addComponent(Jurisdiction, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(Blocks, javax.swing.GroupLayout.Alignment.TRAILING)))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel4Layout.createSequentialGroup()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel23)
.addComponent(jLabel24))
.addGap(56, 56, 56)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(Prison_Location, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
.addComponent(Prison_ID)))
.addComponent(Update_Prison, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(Update_Prison1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap(74, Short.MAX_VALUE))
);
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addGap(150, 150, 150)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel23)
.addComponent(Prison_ID))
.addGap(18, 18, 18)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel24)
.addComponent(Prison_Location))
.addGap(18, 18, 18)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel25)
.addComponent(Jurisdiction))
.addGap(18, 18, 18)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel48)
.addComponent(Blocks))
.addGap(18, 18, 18)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel49)
.addComponent(No_Of_Cells))
.addGap(18, 18, 18)
.addComponent(Update_Prison1)
.addGap(18, 18, 18)
.addComponent(Update_Prison)
.addGap(275, 275, 275))
);
Prison_Location.getAccessibleContext().setAccessibleDescription("");
Jurisdiction.getAccessibleContext().setAccessibleDescription("");
jTabbedPane1.addTab("Prison", jPanel4);
jPanel5.setBackground(new java.awt.Color(204, 255, 255));
jLabel27.setText("Staff_ID");
jLabel28.setText("Name");
jLabel29.setText("Date_Of_Birth");
jLabel30.setText("Designation");
jLabel31.setText("Address");
jLabel32.setText("Salary");
Staff_Salary.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Staff_SalaryActionPerformed(evt);
}
});
Staff_Designation.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Staff_DesignationActionPerformed(evt);
}
});
Staff_Address.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Staff_AddressActionPerformed(evt);
}
});
Staff_ID.setToolTipText("Ignore on Insertion");
Staff_ID.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Staff_IDActionPerformed(evt);
}
});
Staff_DoB.setToolTipText("YYYY-MM-DD");
Staff_DoB.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Staff_DoBActionPerformed(evt);
}
});
Submit_Staff.setBackground(new java.awt.Color(255, 255, 255));
Submit_Staff.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Submit_Staff.setText("Insert");
Submit_Staff.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Submit_StaffActionPerformed(evt);
}
});
Staff_Name.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Staff_NameActionPerformed(evt);
}
});
Update_Staff.setBackground(new java.awt.Color(255, 255, 255));
Update_Staff.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Update_Staff.setText("Update");
Update_Staff.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Update_StaffActionPerformed(evt);
}
});
jLabel43.setText("Shift");
Morning_Box.setText("Morning");
Evening_Box.setText("Evening");
Noon_Box.setText("Noon");
Night_Box.setText("Night");
javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
jPanel5.setLayout(jPanel5Layout);
jPanel5Layout.setHorizontalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addGap(51, 51, 51)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addComponent(jLabel43)
.addGap(65, 65, 65)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel5Layout.createSequentialGroup()
.addComponent(Morning_Box)
.addGap(18, 18, 18)
.addComponent(Noon_Box))
.addGroup(jPanel5Layout.createSequentialGroup()
.addComponent(Evening_Box)
.addGap(18, 18, 18)
.addComponent(Night_Box))))
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel28)
.addGroup(jPanel5Layout.createSequentialGroup()
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel29)
.addComponent(jLabel32)
.addComponent(jLabel31)
.addComponent(jLabel30)
.addComponent(jLabel27))
.addGap(18, 18, 18)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(Staff_Designation, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Staff_Address, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Staff_DoB, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Staff_Name, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Staff_Salary)
.addComponent(Staff_ID, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(Update_Staff, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(Submit_Staff, javax.swing.GroupLayout.PREFERRED_SIZE, 287, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(82, Short.MAX_VALUE))
);
jPanel5Layout.setVerticalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addGap(149, 149, 149)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel27)
.addComponent(Staff_ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel28)
.addComponent(Staff_Name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel29)
.addComponent(Staff_DoB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(15, 15, 15)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel31)
.addComponent(Staff_Address, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel30)
.addComponent(Staff_Designation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel32)
.addComponent(Staff_Salary, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel43)
.addComponent(Morning_Box)
.addComponent(Noon_Box))
.addGap(18, 18, 18)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(Evening_Box)
.addComponent(Night_Box))
.addGap(18, 18, 18)
.addComponent(Submit_Staff)
.addGap(18, 18, 18)
.addComponent(Update_Staff)
.addContainerGap(212, Short.MAX_VALUE))
);
jTabbedPane1.addTab("Staff", jPanel5);
jPanel3.setBackground(new java.awt.Color(204, 255, 255));
jLabel14.setText("Inmate_ID");
jLabel15.setText("Name");
jLabel16.setText("Alias");
jLabel17.setText("Date_Of_Birth");
jLabel18.setText("Start_Date");
jLabel19.setText("Release Date");
jLabel20.setText("Case_ID");
jLabel21.setText("Prison_ID");
jLabel22.setText("Supervisor_Staff_ID");
Release_Date.setToolTipText("YYYY-MM-DD");
Alias.setToolTipText("(Enter multiple values separated by comma.)");
Inmate_Name.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Inmate_NameActionPerformed(evt);
}
});
Start_Date.setToolTipText("YYYY-MM-DD");
Start_Date.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Start_DateActionPerformed(evt);
}
});
Inmate_DoB.setToolTipText("YYYY-MM-DD");
Case_ID_Inmate.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Case_ID_InmateActionPerformed(evt);
}
});
Submit_Inmate.setBackground(new java.awt.Color(255, 255, 255));
Submit_Inmate.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Submit_Inmate.setText("Insert");
Submit_Inmate.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Submit_InmateActionPerformed(evt);
}
});
Update_Inmate.setBackground(new java.awt.Color(255, 255, 255));
Update_Inmate.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Update_Inmate.setText("Update");
Update_Inmate.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Update_InmateActionPerformed(evt);
}
});
jLabel50.setText("Cell_No");
jLabel51.setText("Block");
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGap(38, 38, 38)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(Submit_Inmate, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel22)
.addComponent(jLabel21)
.addComponent(jLabel20)
.addComponent(jLabel19)
.addComponent(jLabel18)
.addComponent(jLabel17)
.addComponent(jLabel16)
.addComponent(jLabel15)
.addComponent(jLabel14)
.addComponent(jLabel51)
.addComponent(jLabel50))
.addGap(41, 41, 41)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(Blocks_Inmate)
.addComponent(Prison_ID_Inmate, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
.addComponent(Case_ID_Inmate)
.addComponent(Release_Date)
.addComponent(Start_Date)
.addComponent(Inmate_DoB)
.addComponent(Alias)
.addComponent(Inmate_Name)
.addComponent(Supervisor_Staff_ID)
.addComponent(Cells_Inmate)
.addComponent(Inmate_ID)))
.addComponent(Update_Inmate, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap(43, Short.MAX_VALUE))
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGap(21, 21, 21)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel14)
.addComponent(Inmate_ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel15)
.addComponent(Inmate_Name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel16)
.addComponent(Alias, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel17)
.addComponent(Inmate_DoB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel18)
.addComponent(Start_Date, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel19)
.addComponent(Release_Date, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel20)
.addComponent(Case_ID_Inmate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel21)
.addComponent(Prison_ID_Inmate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel22)
.addComponent(Supervisor_Staff_ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel51)
.addComponent(Blocks_Inmate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel50)
.addComponent(Cells_Inmate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(Submit_Inmate)
.addGap(18, 18, 18)
.addComponent(Update_Inmate)
.addContainerGap())
);
jTabbedPane1.addTab("Inmate", jPanel3);
jPanel6.setBackground(new java.awt.Color(204, 255, 255));
jLabel33.setText("Job_ID");
jLabel34.setText("Description");
Job_ID.setToolTipText("Ignore on Insertion");
Job_ID.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Job_IDActionPerformed(evt);
}
});
Job_Description.setColumns(20);
Job_Description.setRows(5);
jScrollPane2.setViewportView(Job_Description);
Submit_Job_Desc.setBackground(new java.awt.Color(255, 255, 255));
Submit_Job_Desc.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Submit_Job_Desc.setText("Insert");
Submit_Job_Desc.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Submit_Job_DescActionPerformed(evt);
}
});
Submit_Job_Desc1.setBackground(new java.awt.Color(255, 255, 255));
Submit_Job_Desc1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
Submit_Job_Desc1.setText("Update");
Submit_Job_Desc1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Submit_Job_Desc1ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
jPanel6.setLayout(jPanel6Layout);
jPanel6Layout.setHorizontalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addGap(62, 62, 62)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel6Layout.createSequentialGroup()
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel33)
.addComponent(jLabel34))
.addGap(37, 37, 37)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(Job_ID)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(Submit_Job_Desc, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(Submit_Job_Desc1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap(68, Short.MAX_VALUE))
);
jPanel6Layout.setVerticalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addGap(126, 126, 126)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel33)
.addComponent(Job_ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel34)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(30, 30, 30)
.addComponent(Submit_Job_Desc)
.addGap(18, 18, 18)
.addComponent(Submit_Job_Desc1)
.addContainerGap(224, Short.MAX_VALUE))
);
jTabbedPane1.addTab("Job_Info", jPanel6);
jPanel10.setBackground(new java.awt.Color(51, 51, 255));
jPanel10.setPreferredSize(new java.awt.Dimension(370, 236));
jLabel26.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
jLabel26.setForeground(new java.awt.Color(255, 255, 255));
jLabel26.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel26.setText("Insert Details");
jButton1.setBackground(new java.awt.Color(255, 255, 255));
jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Prison_Management_System/Images/logout.png"))); // NOI18N
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jButton2.setBackground(new java.awt.Color(255, 255, 255));
jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Prison_Management_System/Images/back.png"))); // NOI18N
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
jPanel10.setLayout(jPanel10Layout);
jPanel10Layout.setHorizontalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel10Layout.createSequentialGroup()
.addGap(22, 22, 22)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(66, 66, 66)
.addComponent(jLabel26)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton1)
.addGap(42, 42, 42))
);
jPanel10Layout.setVerticalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel10Layout.createSequentialGroup()
.addGap(21, 21, 21)
.addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jButton1)
.addComponent(jLabel26)
.addComponent(jButton2))
.addContainerGap(26, Short.MAX_VALUE))
);
jPanel11.setBackground(new java.awt.Color(255, 51, 51));
jPanel11.setPreferredSize(new java.awt.Dimension(370, 236));
jLabel47.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel47.setForeground(new java.awt.Color(255, 255, 255));
jLabel47.setText("© Copyright 2017");
javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
jPanel11.setLayout(jPanel11Layout);
jPanel11Layout.setHorizontalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel11Layout.createSequentialGroup()
.addGap(157, 157, 157)
.addComponent(jLabel47)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel11Layout.setVerticalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
.addContainerGap(44, Short.MAX_VALUE)
.addComponent(jLabel47)
.addGap(39, 39, 39))
);
javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
jPanel9.setLayout(jPanel9Layout);
jPanel9Layout.setHorizontalGroup(
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, 425, Short.MAX_VALUE)
.addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, 425, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 425, javax.swing.GroupLayout.PREFERRED_SIZE))
);
jPanel9Layout.setVerticalGroup(
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel9Layout.createSequentialGroup()
.addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTabbedPane1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\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 .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\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 .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\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 .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] | [
"0.73207104",
"0.7291319",
"0.7291319",
"0.7291319",
"0.7286366",
"0.7249061",
"0.7213687",
"0.7208364",
"0.7196237",
"0.7191069",
"0.7185096",
"0.7159581",
"0.7148432",
"0.70938945",
"0.707995",
"0.7056585",
"0.69874734",
"0.697786",
"0.6955647",
"0.6953296",
"0.69459146",
"0.69428194",
"0.6936552",
"0.69322175",
"0.69277817",
"0.69254535",
"0.6924436",
"0.6911809",
"0.69109863",
"0.6893012",
"0.68926495",
"0.6890599",
"0.6890469",
"0.68885326",
"0.6883081",
"0.6882415",
"0.6881812",
"0.6877777",
"0.6875785",
"0.68753934",
"0.6871827",
"0.6860309",
"0.6856308",
"0.6856036",
"0.6855982",
"0.6855114",
"0.68534535",
"0.6852785",
"0.6852785",
"0.6843386",
"0.6837386",
"0.6836681",
"0.6829016",
"0.6828373",
"0.682562",
"0.68242836",
"0.6824113",
"0.68170315",
"0.6816446",
"0.6809835",
"0.6809063",
"0.68086475",
"0.68084246",
"0.68067324",
"0.680243",
"0.67958206",
"0.67952377",
"0.67921954",
"0.67895496",
"0.6789109",
"0.6788819",
"0.6787745",
"0.6781665",
"0.67660797",
"0.6765446",
"0.67648655",
"0.67567086",
"0.6755449",
"0.67523944",
"0.67501897",
"0.6743238",
"0.6739293",
"0.6737096",
"0.67359924",
"0.67333084",
"0.6727463",
"0.6727338",
"0.6719593",
"0.67159104",
"0.6714441",
"0.67143345",
"0.67083734",
"0.6707862",
"0.6705247",
"0.67009693",
"0.6700449",
"0.6699227",
"0.66980296",
"0.6693873",
"0.66914207",
"0.66897386"
] | 0.0 | -1 |
enables DanishNewsGen to set adapter | public void setlv()
{
if(dng!= null)
lv.setAdapter(dng.adapter);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public void setUpAdapter();",
"void setAdapter(SqueezerItemAdapter<T> adapter);",
"private void initializeAdapter() {\n }",
"private void setAdapter(){\n ArrayList<Veranstaltung>ver = new ArrayList<>(studium.getLVS());\n recyclerView = findViewById(R.id.rc);\n LinearLayoutManager manager = new LinearLayoutManager(this);\n recyclerView.setLayoutManager(manager);\n recyclerView.setHasFixedSize(true);\n adapter = new StudiumDetailsRecylerAdapter(ver);\n recyclerView.setAdapter(adapter);\n }",
"public void setAdapter(String adapter) {\n this.adapter = adapter;\n }",
"public void setAdapter(String adapter) {\n this.adapter = adapter;\n }",
"public void setAdapter() {\n // Create Custom Adapter\n Resources res = getResources();\n adapter = null;\n adapter = new WebsearchListAdapter(this, CustomListViewValuesArr, res);\n list.setAdapter(adapter);\n }",
"public void configs() {\n adaptadorRecyclerView = new AdaptadorRecyclerView(new ArrayList<>(), this);//configuramos el adaptador; necesitamos implementar interfaz OnItemClickListener y sobreescribir sus metodos\n recyclerView.setLayoutManager(new LinearLayoutManager(this));//configuramos la recyclerView\n recyclerView.setAdapter(adaptadorRecyclerView);\n }",
"@Override\n\tprotected void setListenerAndAdapter() {\n\t\t\n\t}",
"@Override\n public void setNews(News object) {\n headerHolder.bindHolder(object);\n adapter.addList(object.getComments());\n }",
"private void iniAdapter(List<Task> tasks) {\n presAdapter = new TaskAdapter(tasks, this, 1);\n// recyclerView.setAdapter(presAdapter);\n }",
"private void setUpAdapter(){\n customMovieAdapter= new CustomMovieAdapter(getActivity(),R.layout.list_movie_forecast,movieRowItemsList);\n gridView.setAdapter(customMovieAdapter);\n }",
"@Override\npublic void setObjectAdapter(ObjectAdapter adapter) {\n\t\n}",
"public void setAdapter(Adapter adapter) {\n this.adapter = adapter;\n }",
"public SiteItemProvider ( AdapterFactory adapterFactory )\n {\n super ( adapterFactory );\n }",
"private void init() {\n articleList = new ArrayList<>();\n newsAdapter = new NewsAdapter(getContext(), articleList, mListener, this);\n\n recyclerViewNews.setHasFixedSize(false);\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getContext());\n\n recyclerViewNews.setLayoutManager(layoutManager);\n recyclerViewNews.setAdapter(newsAdapter);\n }",
"MyAdapter(List<FakeNews> myList) {\n list = myList;\n }",
"public void setAdapter() {\n datalist = new ArrayList<>();\n\n adapter = new SoundListAdapter(context, datalist, new AdapterClickListener() {\n @Override\n public void onItemClick(View view, int pos, Object object) {\n\n SoundsModel item = (SoundsModel) object;\n\n if (view.getId() == R.id.done) {\n stopPlaying();\n downLoadMp3(item.id, item.sound_name, item.acc_path);\n } else if (view.getId() == R.id.fav_btn) {\n callApiForFavSound(pos, item);\n } else {\n if (thread != null && !thread.isAlive()) {\n stopPlaying();\n playaudio(view, item);\n } else if (thread == null) {\n stopPlaying();\n playaudio(view, item);\n }\n }\n }\n });\n\n recyclerView.setAdapter(adapter);\n\n\n }",
"public void bind() {\n\t\tview.setAdapter(adapter);\n\t}",
"private void fillAdapter() {\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<String> recipesListLoader = loaderManager.getLoader(RECIPES_LIST_LOADER);\n if(recipesListLoader == null) {\n loaderManager.initLoader(RECIPES_LIST_LOADER, null, this);\n } else {\n loaderManager.restartLoader(RECIPES_LIST_LOADER, null, this);\n }\n }",
"private void setListAdapter(ListAdapter adapter) {\n\n\t\t}",
"public interface NewsView {\n\n\n void showInternetErrorMessage();\n void stopRefreshLayout();\n void startRefreshing();\n\n void updateArticlesToAdapter(ArrayList<Article> articles);\n}",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setAdapterFactory(AdapterFactory adapterFactory)\n {\n this.adapterFactory = adapterFactory;\n }",
"public void setUpRecycler() {\n StaggeredGridLayoutManager gridManager = new StaggeredGridLayoutManager(3,StaggeredGridLayoutManager.VERTICAL);\n gvResults.setLayoutManager(gridManager);\n gvResults.addOnScrollListener(new EndlessRecyclerViewScrollListener(gridManager) {\n @Override\n public void onLoadMore(int page, int totalItemsCount) {\n fetchArticles(page,false);\n }\n });\n }",
"private void configureRecyclerView(){\n this.postAdapter = new PostAdapter(generateOptionsForAdapter(PostHelper.getAllMyPosts(BaseActivity.getUid())),\n Glide.with(this), this,false, false);\n\n\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n recyclerView.setAdapter(this.postAdapter);\n }",
"@Override\r\n\tprotected ListBaseAdapter<News> getListAdapter() {\n\t\treturn null;\r\n\t}",
"private void setAdapter() {\n adapter = new MessageAdapter(messages);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(adapter);\n }",
"public void setupAdapter() {\n recyclerAdapter = new PhotosAdapter(this);\n recyclerViewPhotos.setAdapter(recyclerAdapter);\n }",
"@Override\n\tpublic void setAdapter(DmcAdapterIF adapter) {\n\t\t\n\t}",
"@Override\n public void onLoaderReset(Loader<List<News>> loader) {\n mAdapter = new NewsRecyclerAdapter(MainActivity.this, new ArrayList<News>());\n }",
"private void setRecyclerAdapter() {\n if (mRecyclerAdapter == null) {\n mRecyclerAdapter = new IssueResultsRecyclerAdapter(this, issueResult, mNation);\n mRecyclerView.setAdapter(mRecyclerAdapter);\n } else {\n ((IssueResultsRecyclerAdapter) mRecyclerAdapter).setContent(issueResult, mNation);\n }\n }",
"public void cargarAdaptador(){\n gridLayoutManager = new GridLayoutManager(getContext(), 2);\n recyclerView.setLayoutManager(gridLayoutManager);\n adapterRecetas = new AdapterRecetas(getContext());\n recyclerView.setAdapter(adapterRecetas);\n }",
"private void setupViews() {\n this.rvArticles = (RecyclerView) findViewById(R.id.rvArticles);\n this.articles = new ArrayList<>();\n this.articleArrayAdapter = new ArticleArrayAdapter(this, this.articles);\n this.rvArticles.setAdapter(this.articleArrayAdapter);\n StaggeredGridLayoutManager gridLayoutManager =\n new StaggeredGridLayoutManager(GRID_NUM_COLUMNS,\n StaggeredGridLayoutManager.VERTICAL);\n this.rvArticles.setLayoutManager(gridLayoutManager);\n ItemClickSupport.addTo(this.rvArticles).setOnItemClickListener(\n (recyclerView, position, v) -> launchArticleView(position)\n );\n SpacesItemDecoration decoration = new SpacesItemDecoration(GRID_SPACE_SIZE);\n this.rvArticles.addItemDecoration(decoration);\n this.rvArticles.addOnScrollListener(\n new EndlessRecyclerViewScrollListener(gridLayoutManager) {\n @Override\n public void onLoadMore(int page, int totalItemsCount) {\n articleSearch(searchView.getQuery().toString(), page);\n }\n });\n }",
"@Override\n public void setRecyclerViewAdapter() {\n recyclerView.setAdapter(favouritePageRecyclerViewAdapter);\n\n }",
"@Override\n\tprotected void initDataSource() {\n\t}",
"public void setupArticlesList();",
"public FeedRecyclerAdapter() {\n super();\n }",
"protected void init_adapter()\n {\n manager = new GridLayoutManager(this, 2);\n recycler_view.setLayoutManager(manager);\n //recycler_view.setit\n\n adapter = new NasaApodAdapter();\n\n adapter.setOnItemClickListener(new NasaApodAdapter.OnItemClickListener()\n {\n @Override\n public void onItemClick(Photo photo)\n {\n Log.d(\"APOD\", photo.getImgSrc());\n\n intent = new Intent(getApplicationContext(), DetailActivity.class);\n intent.putExtra(\"photo\", photo);\n\n startActivity(intent);\n }\n });\n }",
"@Override\n protected void onStart() {\n super.onStart();\n adapter.startListening();\n }",
"@Override\r\n\tpublic void setAdapter(ListAdapter adapter) {\n\t\tsuper.setAdapter(adapter);\r\n\t\tthis.adapter = (FlowListAdapter)adapter;\r\n\t}",
"@Override\r\n protected void onStart() {\r\n super.onStart();\r\n adapter.startListening();\r\n }",
"private void setupCustomAdapter() {\n AnimalAdapter adapter = new AnimalAdapter(this, animals);\n aListView.setAdapter(adapter);\n }",
"private void setup() {\n adapter = new HomeAdapter(this);\n\n linearLayoutManager = new LinearLayoutManager\n (this, LinearLayoutManager.VERTICAL, false);\n rv.setLayoutManager(linearLayoutManager);\n rv.setItemAnimator(new DefaultItemAnimator());\n\n rv.setAdapter(adapter);\n showWait();\n if (NetworkUtils.isNetworkConnected(this)) {\n\n presenter.loadPage(currentPage);\n } else {\n onFailure(NetworkError.NETWORK_ERROR_MESSAGE);\n }\n rv.addOnScrollListener(new PaginationScrollListener(linearLayoutManager) {\n @Override\n protected void loadMoreItems() {\n AppLogger.d(TAG,\"currentPage:\"+currentPage);\n isLoading = true;\n currentPage += 1;\n presenter.loadPage(currentPage);\n\n\n }\n\n @Override\n public int getTotalPageCount() {\n AppLogger.d(TAG,\"TOTAL_PAGES:\"+TOTAL_PAGES);\n return TOTAL_PAGES;\n }\n\n @Override\n public boolean isLastPage() {\n return isLastPage;\n }\n\n @Override\n public boolean isLoading() {\n return isLoading;\n }\n });\n\n\n }",
"public NewsCardAdapter(Activity activity, List<AlMaghribNewsModelContainer> dataset) {\n mActivity = activity;\n mDataset = dataset;\n mImageLoader = RequestQueueSingleton.getInstance(activity.getApplicationContext()).getImageLoader();\n }",
"private void setAdaptersForDataToShow() {\n LinearLayoutManager linearLayoutManager_SectionOfDays = new LinearLayoutManager(this);\n linearLayoutManager_SectionOfDays.setOrientation(LinearLayoutManager.HORIZONTAL);\n recyclerView_sectionOfDays.setLayoutManager(linearLayoutManager_SectionOfDays);\n recyclerView_sectionOfDays.setAdapter(new SectionOfDays_RecyclerViewAdapter(this, daysArray, this));\n\n /**\n * Vertical Recycler View showing List Of Trains\n */\n LinearLayoutManager linearLayoutManager_ListOfTrains = new LinearLayoutManager(this);\n linearLayoutManager_ListOfTrains.setOrientation(LinearLayoutManager.VERTICAL);\n recyclerView_listOfTrains.setLayoutManager(linearLayoutManager_ListOfTrains);\n setAdapter_ListOfTrains_Vertical_RecyclerView(0);\n }",
"public interface NewsView {\n void initNewsData(ArrayList<News> list);\n\n void initOfflineData(List<News> list);\n\n void toastFailString(String msg);\n}",
"private void createAdapter() {\n Query query = partituraDaoImpl.getOwnPartituras();\n FirestoreRecyclerOptions<Partitura> options = new FirestoreRecyclerOptions.Builder<Partitura>()\n //query and class in which the data is saved\n .setQuery(query, Partitura.class).setLifecycleOwner(this).build();\n if (adapter != null) adapter.stopListening();\n //Create adapter\n adapter = new PartituraAdapter(options, getContext());\n //assign the adapter\n rvPartituras.setAdapter(adapter);\n //we began to listen.\n adapter.startListening();\n // Move the scroll of the recyclerView to the beginning to see the new message\n adapter.getSnapshots().addChangeEventListener(new ChangeEventListener() {\n @Override\n public void onChildChanged(@NonNull ChangeEventType type, @NonNull\n DocumentSnapshot snapshot, int newIndex, int oldIndex) {\n rvPartituras.smoothScrollToPosition(0);\n }\n @Override\n public void onDataChanged() {\n }\n @Override\n public void onError(@NonNull FirebaseFirestoreException e) {\n }\n });\n }",
"private void setAdapter() {\n AdapterSymptomList adapter = new AdapterSymptomList(allSymptomsList, ActivityRecordsListSymptoms.this);\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(ActivityRecordsListSymptoms.this);\n symptomRecyclerView.setLayoutManager(layoutManager);\n symptomRecyclerView.setItemAnimator(new DefaultItemAnimator());\n symptomRecyclerView.setAdapter(adapter);\n }",
"@Override protected void onStart()\n {\n super.onStart();\n adapter.startListening();\n }",
"public news_adapter(Context context,ArrayList<data> dataset) {\n mData=dataset;\n mInflater = LayoutInflater.from(context);\n }",
"abstract public NewsBrowserComponent addToGraph(NewsBrowserModule module);",
"public FeedCustomAdapter(List<Post> dataSet) {\n outfitDataSet = dataSet;\n }",
"@Override\n public void initData() {\n super.initData();\n\n RetrofitService.getInstance()\n .getApiCacheRetryService()\n .getDetail(appContext.getWenDang(Const.Detail, wendangid))\n .enqueue(new SimpleCallBack<WenDangMode>() {\n @Override\n public void onSuccess(Call<WenDangMode> call, Response<WenDangMode> response) {\n if (response.body() == null) return;\n WenDangMode data = response.body();\n title_text.setText(data.getPost().getPost_title());\n String s = data.getPost().getPost_excerpt();\n excerpt_text.setText(s.replaceAll(\"[…]\", \"\"));\n wendang_text.setText(stripHtml(data.getPost().getPost_content()));\n url = data.getPost().getDownload_page();\n list.clear();\n\n list = quChu(getImgStr(data.getPost().getPost_content()));\n\n adapter.bindData(true, list);\n//\t\t\t\t\t\trecyclerView.notifyMoreFinish(true);\n rootAdapter.notifyDataSetChanged();\n beautifulRefreshLayout.finishRefreshing();\n }\n });\n }",
"private void populateAdapter(){\n mAdapter = new MovieRecyclerAdapter(context, moviesList, this);\n mRecyclerView.setAdapter(mAdapter);\n }",
"@Override\n public void run() {\n myAdapter = new MyAdapter(thisCnxt, data);\n recyclerView.setAdapter(myAdapter);\n }",
"private void setAdapter(List<MovieList> listMovies) {\n adapter = new CardAdapter(listMovies, this);\n //Adding adapter to recyclerview\n AlphaInAnimationAdapter alphaAdapter = new AlphaInAnimationAdapter(adapter);\n alphaAdapter.setFirstOnly(false);\n recyclerView.setAdapter(alphaAdapter);\n// recyclerView.setAdapter(adapter);\n }",
"@Override\n\tpublic void loadNews() {\n\t\tif(newsUrl.contains(\"xyz\")) {\n\t\t\tnewsUrl = \"abc\";\n\t\t}\n\t\t\n\t\tif(realNews==null) {\n\t\t\trealNews = new RealNews(newsUrl);\n\t\t}\n\t\trealNews.loadNews();\n\t}",
"private void setAdapters() {\n buildingInput.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, buildings));\n brandInput.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, brands));\n osInput.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, operatingSystems));\n /*\n If we want to use pre-determined lists\n getResources().getStringArray(R.array.brands);\n getResources().getStringArray(R.array.operating_systems);\n */\n }",
"public void setAdapter() {\n binding.RvwalletAmount.setLayoutManager(new GridLayoutManager(getActivity(), 2));\n binding.RvwalletAmount.setHasFixedSize(true);\n WalletAdapter kyCuploadAdapter = new WalletAdapter(getActivity(), getListWallet(), this);\n binding.RvwalletAmount.setAdapter(kyCuploadAdapter);\n }",
"private void showMyAdapt() {\n\t\tmyAdapt = new MyAdapt(this, persons);\n\t\tlistView.setAdapter(myAdapt);\n\t}",
"public PreGalleryAdaptador(String[] dataSet) {\n mDataSet = dataSet;\n }",
"public NewsFeed_Adapter(List<NewsFeed> news, Context context) {\n this.news = news;\n this.context = context;\n this.inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n }",
"public void initialzeAdapter() {\n // find grid view\n GridView gridView = (GridView) findViewById(R.id.gridView);\n\n // initialize and set adapter to grid view\n FriendsAdapter adapter = new FriendsAdapter(this, R.layout.grid_item, friends);\n gridView.setAdapter(adapter);\n }",
"@Override\n public void onSearchStateChanged(boolean enabled) {\n if (!enabled)\n recycler_product.setAdapter(adapter);\n }",
"@Override\n public void run() {\n\n\n RecyclerView.Adapter adapter = new RecyclerViewAdapter(aa,aa1,aa4,aa5,aa6,aa7,aa8,aa9);\n\n recyclerview.setAdapter(adapter);\n\n\n\n }",
"private void ConfigRecyclerMovies(){\n movieRecyclerAdapter = new MovieRecyclerAdapter(this);\n popularMovieRecycler.setAdapter(movieRecyclerAdapter);\n popularMovieRecycler.setLayoutManager(new LinearLayoutManager(getActivity()));\n }",
"@Override\n public void onSearchStateChanged(boolean enabled) {\n if (!enabled)\n recycler_activities.setAdapter(adapter);\n }",
"@Override\n public void onBindViewHolder(final NewsCardViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n final AlMaghribNewsModelContainer bannerModel = mDataset.get(position);\n\n switch (holder.getItemViewType()) {\n case TYPE_VIDEO:\n final VideoNewsCardViewHolder videoNewsHolder = (VideoNewsCardViewHolder) holder;\n // TODO: something for play button click\n\n break;\n case TYPE_ARTICLE:\n break;\n }\n\n holder.mBannerImageView.setDefaultImageResId(R.drawable.love_notes_card);\n holder.mBannerImageView.setImageUrl(bannerModel.getBannerUrl(), mImageLoader);\n holder.mJournalTitleTextView.setText(bannerModel.getTitle());\n final String transitionName = mActivity.getString(R.string.seminar_banner_name) + position;\n ViewCompat.setTransitionName(holder.mBannerImageView, transitionName);\n\n final View.OnClickListener openArticleListener = new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n addNextFragment(holder.mBannerImageView, bannerModel);\n }\n };\n // set on click listener on view so we still get ripple effect\n holder.itemView.setOnClickListener(openArticleListener);\n holder.mReadMoreButton.setOnClickListener(openArticleListener);\n }",
"public void setupScrollViewAdapter(){\n scrollViewAdapter = new ArrayAdapter<Integer>(this, android.R.layout.simple_list_item_1, currentNotifications);\n notifcationIdView.setAdapter(scrollViewAdapter);\n }",
"public void refreshDatas(GsonNews requestNews){\n if (newsItems != null){\n Log.e(\"xx\", \"suaxinshuju\");\n// newsItems.setAdapter(newsAdapter);\n newsAdapter.setItems(requestNews.getData());\n// newsAdapter.notifyDataSetChanged();\n }\n }",
"public void DetailAdapter(String[] myDataset) {\n this.mDataset = myDataset;\n }",
"private void iniRecyclerView() {\n// RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recycler_view);\n// recyclerView.setHasFixedSize(true);\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n recyclerView.setAdapter(presAdapter);\n }",
"@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\tnewsArticles = ((MainActivity) getActivity()).getNewsArticles();\n//\t\t//if the most recent refresh of articles was successful, displays list of articles\n\t\tadapter = new NewsListAdapter(getActivity(), newsArticles);\n\t\t// fill listview\n\t\tsetListAdapter(adapter);\n\t}",
"public void ejecutarAdaptador(){\n gvResultados.setAdapter(new ImagenAdapter(this, listaMomentos));\n }",
"private void setAdapter() {\n\n\t\tathleteCheckInAdapter = new AthleteStickyHeaderCheckInAdapter(getActivity(), athleteAttendanceList);\n\n\t}",
"private void setRecyclerViewAdapter(List<Task> tasks){\n adapter = new DataAdapter(ViewTaskActivity.this, tasks);\n recyclerView.setAdapter(adapter);\n recyclerView.setLayoutManager(layoutManager);\n }",
"public void inicializarAdaptador()\n {\n //creamos el adaptador y le pasamos el arreglo de mascotas, en que activity estamos\n //y el numero es para saber en la clase MascotaAdaptador como mostrara los datos y si seran clicables o no\n MascotaAdaptador adaptador = new MascotaAdaptador(mascotas, getActivity(), 1);\n listamascotas.setAdapter(adaptador);\n //agregamos iconos a cada TabLayout\n }",
"public interface AdapterInterface {\n}",
"private void initializeViewMoreSellersAdapter() {\n mViewMoreSellersAdapter = new ViewMoreSellersAdapter(mSupplierArrayList, this);\n mBinding.rvViewSellersDetails.setAdapter(mViewMoreSellersAdapter);\n }",
"protected void setAdapterClass(Class<?> adapterClass) {\n this.adapterClass = adapterClass;\n }",
"private void Init(Context context){\n\n if(adapter == null){\n adapter = new ArrayAdapter<String>(context, android.R.layout.simple_list_item_1);\n }\n\n this.setAdapter(adapter);\n }",
"@Override\r\n\tprotected void onStart() {\n\t\tadapter = new TabAdapter(this);\r\n\t\tgrid.setAdapter(adapter);\r\n\t\tsuper.onStart();\r\n\t}",
"private void setAdapter() {\n resultsRv.setLayoutManager(new LinearLayoutManager(getActivity()));\n resultsRv.setHasFixedSize(true);\n resultsRv.setItemAnimator(new DefaultItemAnimator());\n resultsRv.setAdapter(resultsListAdapter);\n }",
"private void setUpBookingAdapter() {\n// mBinding.swipeRefresh.setRefreshing(false);\n if (null == mRequestAdapter) {\n mRequestAdapter = new RequestAdapter(mThis, mRequestModelList, this);\n mBinding.requestRv.setAdapter(mRequestAdapter);\n } else {\n mRequestAdapter.setmBooking_itemModelList(mRequestModelList);\n mRequestAdapter.notifyDataSetChanged();\n }\n }",
"public PageAdapter() {\n this.mapper = new MapperImpl();\n }",
"public void spn_adaptor(){\n final String[] sem = getResources().getStringArray(R.array.Semester);\n\n //Creating an instance of ArrayAdaptor\n ArrayAdapter<String> adapter = new ArrayAdapter<>(\n this, android.R.layout.simple_spinner_item, sem);\n\n //Setting the view which will be used in the spinner\n adapter.setDropDownViewResource(\n simple_spinner_dropdown_item\n );\n\n //Assigning the adaptor1 to the spinner\n spn_semester.setAdapter(adapter);\n }",
"public listAdapter(List<Genres> myDataset,List<Anime> anime) {\n values = myDataset;\n animevalues = anime;\n }",
"public customAdapter() {\n super(SeekerRatingsListActivity.this, R.layout.rating_content, seekerRatingsList);\n }",
"private void setAdapters() \n\t{\n\t\tArrayAdapter<CharSequence> adapter =\n\t\tArrayAdapter.createFromResource(\n\t\tthis, R.array.languages,\n\t\tandroid.R.layout.simple_spinner_item);\n\t\tadapter.setDropDownViewResource(\n\t\tandroid.R.layout.simple_spinner_dropdown_item);\n\t\tfromSpinner.setAdapter(adapter);\n\t\ttoSpinner.setAdapter(adapter);\n\t\t// Automatically select two spinner items\n\t\tfromSpinner.setSelection(8); // English (en)\n\t\ttoSpinner.setSelection(11); // French (fr)\n\t\torigText.setText(data);\n\t}",
"public interface IAdapterGridView {\n int countGridView();\n ItemDataNews getDataGridView(int position);\n}",
"public void createmenu(){\n\n\n Context context = getApplicationContext();\n menuadpater = new MenuAdapter(context);\n\n MENULIST.setAdapter(menuadpater);\n\n\n }",
"@Override\n protected void init() {\n REQUEST_PERMISSION_FOR_ACTIVITY = false;\n viewModel.setNavigator(this);\n viewModel.onStart(this);\n binding.welcomePager.setAdapter(adapter);\n\n addDots(0);\n binding.welcomePager.addOnPageChangeListener(viewListener);\n\n// handlingBackground();\n }",
"@Override\n protected void initData() {\n this.classes = new ArrayList<>();\n this.classes.add(SmartRouterSampleActivity.class);\n this.classes.add(CustomRouterActivity.class);\n this.classes.add(RouterCenterActivity.class);\n this.adapter = new MenuRecyclerViewAdapter();\n this.adapter.setList(classes);\n this.recyclerView.setAdapter(adapter);\n }",
"public void setDatasource( String ds )\n {\n datasource = ds;\n }",
"private void setRecyclerViewData() {\n }"
] | [
"0.6524895",
"0.6410094",
"0.62911135",
"0.6091598",
"0.60460144",
"0.6020585",
"0.6011046",
"0.59832054",
"0.59477913",
"0.5947138",
"0.5942495",
"0.5936751",
"0.58043146",
"0.58021873",
"0.5702789",
"0.570272",
"0.5650501",
"0.5649316",
"0.5648063",
"0.55979013",
"0.55872005",
"0.5573061",
"0.55696356",
"0.55696356",
"0.55696356",
"0.55696356",
"0.55696356",
"0.55696356",
"0.5567537",
"0.55488",
"0.5544433",
"0.55396724",
"0.55223906",
"0.551607",
"0.55060124",
"0.5485723",
"0.5482863",
"0.546376",
"0.5457311",
"0.54559714",
"0.5454203",
"0.54530334",
"0.54421645",
"0.54394895",
"0.54234844",
"0.5419914",
"0.5412358",
"0.5396363",
"0.53950113",
"0.53892964",
"0.5386192",
"0.5382599",
"0.53810084",
"0.53547084",
"0.5352241",
"0.53500193",
"0.53245157",
"0.5312091",
"0.53049654",
"0.53032213",
"0.52870315",
"0.5283382",
"0.5279456",
"0.5274961",
"0.5273825",
"0.5273",
"0.5265292",
"0.5252815",
"0.52519125",
"0.5249008",
"0.5241134",
"0.5239731",
"0.5235238",
"0.5234258",
"0.52291554",
"0.5227879",
"0.5208286",
"0.52071905",
"0.52067477",
"0.520519",
"0.51983637",
"0.5197736",
"0.5192257",
"0.51912874",
"0.51797926",
"0.5162784",
"0.5160685",
"0.5152533",
"0.5149583",
"0.5149465",
"0.51462364",
"0.51208127",
"0.5120718",
"0.51124305",
"0.51106036",
"0.51073784",
"0.51033145",
"0.5093656",
"0.50936455",
"0.5088648",
"0.5087231"
] | 0.0 | -1 |
TODO Autogenerated method stub process(new Upcase(), s); process(new Downcase(), s); process(new Splitter(), s); | public static void main(String[] args) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void firstToUpperCase() {\n \n }",
"private static String cup(String str) {\n\t\treturn str.substring(0,1).toLowerCase() + str.substring(1); \n\t}",
"private static String xcase(String s, Function<Character, Character> f) {\n if (s == null || s.length() == 0) {\n return s;\n }\n return f.apply(s.charAt(0)) + (s.length() > 1 ? s.substring(1) : \"\");\n }",
"protected String alterCase(String value) {\n\t\tswitch (getCase()) {\n\t\tcase UPPERCASE:\n\t\t\treturn value.toUpperCase();\n\t\tcase LOWERCASE:\n\t\t\treturn value.toLowerCase();\n\t\tdefault:\n\t\t\treturn value;\n\t\t}\n\t}",
"private String upperCaseFL(String in) {\n\t\treturn in.substring(0,1).toUpperCase() + in.substring(1,in.length());\n\t}",
"public ICase retourneLaCase() ;",
"private String fixupCase(String s) {\r\n boolean nextIsUpper = true;\r\n StringBuffer sb = new StringBuffer();\r\n\r\n for (int i = 0; i < s.length(); i++) {\r\n char c = s.charAt(i);\r\n if (nextIsUpper) {\r\n c = Character.toUpperCase(c);\r\n } else {\r\n c = Character.toLowerCase(c);\r\n }\r\n sb.append(c);\r\n nextIsUpper = Character.isWhitespace(c);\r\n }\r\n return sb.toString();\r\n }",
"public static void main(String[] args) {\n String S1=\"THE QUICK BROWN FOR JUMPS OVER THE LAZY DOG.\";//convert into lowercase\n String result = S1.toLowerCase();//formula to convert\n System.out.println(result);//print the outcome\n }",
"public static void main(String[] args) {\n\t\tScanner scan= new Scanner(System.in);\n\t\tString word=scan.next();\n\t\tchar [] split= word.toCharArray();\n\t\tString x=String.valueOf(split[0]).toUpperCase();\n\t\tx.concat(String.copyValueOf(split, 1, split.length-1));\n\t\tSystem.out.println(x.concat(String.copyValueOf(split, 1, split.length-1)));\n\n\t}",
"public void upperString() {\n\t\t\tString sentence = \"I am studying\";\n\t\t\t//have to assign it to new string with = to change string\n\t\t\tsentence = sentence.toLowerCase();\n\t\t\t//have to assign it to sentence\n\t\t\tSystem.out.println(\"lower case sentence \" + sentence);\n\t\t}",
"String processing();",
"public static String textFormat(String s){\r\n s =s.toLowerCase();\r\n s = s.substring(0, 1).toUpperCase() + s.substring(1);\r\n return(s);\r\n }",
"public static void main(String[] args) {\n stringhandler obj=new stringhandler();\r\n obj.transform(\"Greety\");\r\n }",
"String nombreDeClase(String s) {\n return s.substring(0, 1).toUpperCase() + s.substring(1).toLowerCase();\n }",
"@org.junit.Test\n\tpublic void testingStringChangeCase() {\n\t\tString result=object.replaceLowerUpperCase(\"Game of Thrones\");\n\t\tassertEquals(\"gAME OF tHRONES\",result );\n\t}",
"public interface ParentStringService {\n String MakeLower(String in);\n}",
"public static void main (String[] args){\n\n System.out.println(\"Input a sentence\");\n Scanner sc = new Scanner(System.in);\n\n\n //2. Make the scanner read the input.scanner.nextLine()\n\n String input = sc.nextLine();\n\n //3. input.replaceAll(\"a\",\"A\");\n\n String output = input.replaceAll(\"a\",\"A\");\n\n\n //4. print the modified string.\n\n System.out.println(\"The code made the lowercase 'a' to uppercase\");\n System.out.println(output);\n\n }",
"public static void main(String[] args) {\n\n\n String ad=\"erdogan\";\n String soyad= \"HOZAN\";\n\n System.out.println(\"ad: \"+ ad.toUpperCase());\n System.out.println(\"soyad:\" + soyad.toLowerCase());\n\n }",
"@Override\n public String split(String source) {\n String result = (hasEnd()) ? source.substring(getStart(), getEnd()) : source.substring(getStart());\n result = (trimmed) ? result.trim() : result;\n return wordCase.apply(result);\n }",
"@org.junit.Test\n public void casing()\n {\n assertEquals(\"simple\", \"Just A Test\",\n Encodings.toWordUpperCase(\"just a test\"));\n assertEquals(\"spaces\", \" Just A TeST \",\n Encodings.toWordUpperCase(\" just A teST \"));\n assertEquals(\"start\", \"Start With Lower. Case\",\n Encodings.toWordUpperCase(\"start with lower. case\"));\n assertEquals(\"word\", \"Test\", Encodings.toWordUpperCase(\"test\"));\n assertEquals(\"word\", \"Test\", Encodings.toWordUpperCase(\"Test\"));\n // Does not work on the server\n //assertEquals(\"word\", \"Faer��n\",\n //Encodings.toWordUpperCase(\"faer��n\"));\n assertEquals(\"brackets\", \"Test (Test)\",\n Encodings.toWordUpperCase(\"test (test)\"));\n assertEquals(\"empty\", \"\", Encodings.toWordUpperCase(\"\"));\n }",
"static String changeStr(StringFunc sf, String s){\n return sf.func(s);\n }",
"public String convertToUpperCase(String word);",
"public static void main(String[] args) {\nString s = \"HElLo WoRlD WelCOMe To JaVa\";\nSystem.out.println(s.toLowerCase());\n\t}",
"static String pascalCase(String s){\n\t\treturn s.substring(0, 1).toUpperCase() + s.substring(1);\n\t}",
"@Test\n public void parseCamelCase_returnsSortCommand() {\n assertParseSuccess(PARAM_CAMEL_CASE);\n }",
"public static void main(String[] args) {\n\t\tString theString = \"This IS a mix of UPPERcase and lowerCASE\";\n\n\t\tString uppercase = theString.toUpperCase();\n\t\tString lowercase = theString.toLowerCase();\n\t\tSystem.out.println(\"Uppercase string=\"+uppercase);\n\t\tSystem.out.println(\"Lowercase string=\"+lowercase);\n\n\t}",
"private void Trans(String s) {\n }",
"private Vector<String> separateLineup(){\n Vector<String> lineup = new Vector<String>();\n StringTokenizer st = new StringTokenizer(masterLineup, \",\");\n\n while(st.hasMoreTokens()){\n lineup.add(st.nextToken().toLowerCase());\n }\n\n return lineup;\n\t\t\n\t}",
"@Test\n public void testUnCapitalize1() {\n Object target = \"ABC\";\n String expResult = \"aBC\";\n String result = StringUtils.unCapitalize(target);\n Assertions.assertEquals(expResult, result);\n }",
"public String test(String x){\r\n\t\treturn x.toUpperCase();\r\n\t}",
"private String getTitle(String s) {\n if (this.isCaseFolding) {\n s = s.toLowerCase();\n }\n\n if (this.isPunctuationHandling) {\n s = punctuationHandler(s);\n }\n\n return s;\n }",
"@Test\n public void testCapitalizeWords1() {\n Object s = \"\";\n String expResult = \"\";\n String result = StringUtils.capitalizeWords(s);\n Assertions.assertEquals(expResult, result);\n }",
"public static void main(String[] args) {\n\t\tSecondUpper s=new SecondUpper();\r\n\t\tSystem.out.println(s.getSecondWordInUppercase(\"Hello \"));\r\n\r\n\t}",
"@Override\n\tpublic String process(String input) {\n\t\treturn filter.process((String)input);\n\t}",
"private static String capitalize (String input) {\n\n String output = WordUtils.capitalize(input.toLowerCase());\n\n return output;\n }",
"public String EndUp(String s) {\r\n if (s.length() >= 3) {\r\n return s.substring(0, s.length()-3)+s.substring(s.length()-3).toUpperCase();\r\n } else {\r\n return s.toUpperCase();\r\n }\r\n }",
"public String upperCase(String word){\n return word.toUpperCase();\n }",
"private final static String toTitleCase( String s ) {\n\n char[] ca = s.toCharArray();\n\n boolean changed = false;\n boolean capitalise = true;\n\n for ( int i=0; i<ca.length; i++ ) {\n char oldLetter = ca[i];\n if ( oldLetter <= '/'\n || ':' <= oldLetter && oldLetter <= '?'\n || ']' <= oldLetter && oldLetter <= '`' ) {\n /* whitespace, control chars or punctuation */\n /* Next normal char should be capitalized */\n capitalise = true;\n } else {\n char newLetter = capitalise\n ? Character.toUpperCase(oldLetter)\n : Character.toLowerCase(oldLetter);\n ca[i] = newLetter;\n changed |= (newLetter != oldLetter);\n capitalise = false;\n }\n } // end for\n\n return new String (ca);\n\n }",
"public String transform(String input);",
"@Test\n void labTask() {\n String s = \"abczefoh\";\n List<String> result = StringSplitter.labTask(s);\n\n String first = result.get(0);\n assertEquals(3, first.length());\n assertEquals('a', first.charAt(0));\n assertFalse(\"abc\".contains(String.valueOf(first.charAt(1))));\n assertEquals('c', first.charAt(2));\n\n String second = result.get(1);\n assertEquals(2, second.length());\n assertEquals('o', second.charAt(0));\n assertFalse(\"oh\".contains(String.valueOf(second.charAt(1))));\n\n String third = result.get(2);\n assertEquals(3, third.length());\n assertEquals('z', third.charAt(0));\n assertFalse(\"zef\".contains(String.valueOf(second.charAt(1))));\n assertEquals('f', third.charAt(2));\n }",
"public static void main(String[] args) {\n\n\n\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter your name here: \");\n String name = scan.next();\n System.out.println(\"Your name corrected is: \");\n String name2 = name.substring(0, 1).toUpperCase() + name.substring(1).toLowerCase();\n System.out.println(name2);\n\n // make whole name uppercase the get the first character\n // get the rest of the characters starting from 2nd character\n /// then make it lowercase\n // eventually concatenate them\n\n\n }",
"private String processWord(String word){\r\n\t\tString lword = word.toLowerCase();\r\n\t\tfor (int i = 0;i<word.length();++i){\r\n\t\t\tstemmer.add(lword.charAt(i));\r\n\t\t}\r\n\t\tstemmer.stem();\r\n\t\treturn stemmer.toString();\r\n\t}",
"@Test\n public final void testCapitalize1() {\n Object target = \"abc\";\n String expResult = \"Abc\";\n String result = StringUtils.capitalize(target);\n Assertions.assertEquals(expResult, result);\n }",
"public String smartUpperCase(String s) {\n\t\t\t \ts = s.substring(0, 1).toUpperCase() + s.substring(1, (s.length()));\n\t s = s.replace(\".\", \"_\");\n\t while (s.contains(\"_ \")) {\n\t \ts = s.replace( s.substring(s.indexOf(\"_ \"), s.indexOf(\"_ \") + 3),\n\t \t\t \". \" + (s.substring(s.indexOf(\"_ \") + 2, s.indexOf(\"_ \") + 3)).toUpperCase()\n\t \t\t );\n\t \t}\n\t s = s.replace(\"_\", \".\");\n\t return s;\n\t\t\t }",
"public static void main(String[] args) {\n\t\t\n\t\tString str = \"hello world\";\n\t\t\n\t\tString output = str.substring(0,1).toUpperCase()+str.substring(1);\n\t\tSystem.out.println(output);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*String str = \"hello world!\";\n\n\t\t// capitalize first letter\n\t\tString output = str.substring(0, 1).toUpperCase() + str.substring(1);\n\n\t\t// print the string\n\t\tSystem.out.println(output);\n\t\t*/\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tfindCaps(\"Hello\");\r\n\t\tfindCaps(\"hello\");\r\n\t\treplaceCaps(\"HeLlO\");\r\n\t\tadd10(\"10\");\r\n\t}",
"public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tString s0=\"\";\n\t\tString s1=\"HELLO\";\n\t\tString s2=new String(\"how are you\");\n\t\tSystem.out.println(s1.length());\n\t\tSystem.out.println(s1.compareTo(s2));\n\t\tSystem.out.println(s1.concat(s2));\n\t\tSystem.out.println(s0.isEmpty());\n\t\tSystem.out.println(s1.toLowerCase());\n\t\tSystem.out.println(s2.toUpperCase());\n\t\tSystem.out.println(s1.replace(\"HELLO\",\"Sarava\"));\n\t\tSystem.out.println(s2.contains(\"are\"));\n\t System.out.println(s2.endsWith(\"you\"));\n\t\t\n\t\t\n\t\t\n\t}",
"public CaseChangingCharStream(CharStream stream, boolean upper) {\n\t\tthis.stream = stream;\n\t\tthis.upper = upper;\n\t}",
"public static void main(String[] args)\n {\n String fruit = \"strawberry\";\n String s = fruit.substring(0, 5);\n System.out.println(s);\n \n // Extract the string \"berry\"\n String u = fruit.substring(5, 10);\n System.out.println(u);\n \n String v = fruit.substring(5);\n System.out.println(v);\n \n // Extract the first character\n String w = fruit.substring(0, 1);\n System.out.println(w);\n \n // Extract the last character\n String x = fruit.substring(9, 10);\n System.out.println(x);\n \n String z = fruit.substring(9);\n System.out.println(z);\n \n // We want to turn the inital \"s\" in\n // \"strawberry\" to an uppercase \"S\"\n \n String uc = \"S\" + fruit.substring(1, 10);\n System.out.println(uc);\n \n String ud = \"S\" + fruit.substring(1);\n System.out.println(ud);\n \n String ue = \"S\" + fruit.substring(1, fruit.length());\n System.out.println(ue);\n }",
"public void conversionTest(){\n String test = \"ABCDEFabcdef123!#\";\n for(int k=0; k < test.length(); k++){\n char ch = test.charAt(k);\n char uch = Character.toUpperCase(ch);\n char lch = Character.toLowerCase(ch);\n System.out.println(ch+\" \"+uch+\" \"+lch);\n }\n }",
"public static String convert1(String input) {\n\t\tString sRes = \"\";\n\t\tString[] splitInput = input.split(\"\\n\");\n\n\t\tfor (String s : splitInput) {\n\t\t\tString[] splitStr = s.split(\" \");\n\t\t\tfor (int i = 0; i < splitStr.length; i++) {\n\t\t\t\tsplitStr[i] = firstUpperCase(splitStr[i].toLowerCase());\n\t\t\t\tsRes = sRes.concat(splitStr[i] + \" \");\n\t\t\t}\n\t\t\tsRes += \"\\n\";\n\t\t}\n\n\t\treturn sRes;\n\t}",
"@Test\r\n\tpublic void testCapitalizeAllWords() throws Exception{\r\n\t\tAssert.assertEquals(\"Hello World\", Capitalizer.capitalizeAllWords(\"hello woRLd\"));\r\n\t}",
"@Test\n public void thenCompose() {\n String original = \"Message\";\n CompletableFuture<String> cf = CompletableFuture\n .completedFuture(original)\n .thenApply(s -> delayedUpperCase(s))\n .thenCompose(upper -> CompletableFuture\n .completedFuture(original)\n .thenApply(s -> delayedLowerCase(s))\n .thenApply(s -> upper + s));\n assertEquals(\"MESSAGEmessage\", cf.join());\n }",
"public static void transform()\r\n {\r\n \t\r\n \tString in = BinaryStdIn.readString();\r\n \tint length = in.length();\r\n \t\t\t\r\n \tchar[] characters = new char[length];\r\n \tcharacters[0] = in.charAt(length-1);\r\n \tfor (int i = 1; i < length ; i++)\r\n \t\tcharacters[i] = in.charAt(i-1);\r\n \t\r\n \tCircularSuffixArray sortedSuffixes = new CircularSuffixArray(in);\r\n \t\r\n \tStringBuilder out = new StringBuilder();\r\n \tint first = -1;\r\n \tfor (int i = 0; i < length; i++)\r\n \t{\r\n \t\tint index = sortedSuffixes.index(i);\r\n \t\tout = out.append(characters[index]);\r\n \t\tif (index == 0)\r\n \t\t\tfirst = i;\r\n \t}\r\n \t\r\n \tBinaryStdOut.write(first);\r\n \tBinaryStdOut.write(out.toString());\r\n \tBinaryStdOut.close();\r\n\r\n }",
"private SortCaseOrder(String strName) { m_strName = strName; }",
"public static void upperCaseFirstOfWord() {\n\t\tString isExit = \"\";\n\t\twhile (!isExit.equals(\"N\")) {\n\t\t\tStringBuffer bf = readInput();\n\t\t\tStringBuffer result = new StringBuffer();\n\t\t\tString str = bf.toString();\n\t\t\tString char_prev = \"\";\n\t\t\tString char_current = \"\";\n\t\t\tString key = \" ,.!?:\\\"\";\n\t\t\tresult.append(String.valueOf(str.charAt(0)).toUpperCase());\n\t\t\tfor (int i = 1; i < str.length(); i++) {\n\t\t\t\tchar_prev = String.valueOf(str.charAt(i - 1));\n\t\t\t\tchar_current = String.valueOf(str.charAt(i));\n\t\t\t\tif (key.contains(char_prev)) {\n\t\t\t\t\tchar_current = char_current.toUpperCase();//uppercase first letter each word\n\t\t\t\t}\n\t\t\t\tresult.append(char_current);\n\t\t\t}\n\t\t\tSystem.out.println(\"Chuỗi có chữ cái đầu viết hoa: \\n\" + result);\n\t\t\tSystem.out.println(\"Bạn có muốn nhập tiếp không(0/1):\");\n\t\t\tisExit= scan.next().toString();\n\t\t}\n\t}",
"public static String splitCamelCase(String s, String replacement) {\n return s.replaceAll(\n String.format(\"%s|%s|%s\",\n \"(?<=[A-Z])(?=[A-Z][a-z])\",\n \"(?<=[^A-Z])(?=[A-Z])\",\n \"(?<=[A-Za-z])(?=[^A-Za-z])\"\n ), replacement\n );\n }",
"@Override\n\tpublic void processCommand(String s)\n\t{\n\t\tif (s.contentEquals(\"atStart\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t\tSystem.out.println(isAtStart());\n\t\t}\n\t\telse if (s.contentEquals(\"atEnd\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t\tSystem.out.println(isAtEnd());\n\t\t}\n\t\telse if (s.contentEquals(\"moveToStart\"))\n\t\t{\n\t\t\tmoveToStart();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"moveToEnd\"))\n\t\t{\n\t\t\tmoveToEnd();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"toString\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.startsWith(\"toStringCursor\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"moveLeft\"))\n\t\t{\n\t\t\tmoveLeft();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"moveRight\"))\n\t\t{\n\t\t\tmoveRight();\n\t\t\tprinttest(s);\n\t\t}\n\t\t\n\t\t//ERROR CHECKING\n\t\telse if(left.isEmpty() && right.isEmpty())\n\t\t{\n\t\t\t//we have no inputted characters\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Now executing the command \" + s + \"...\");\n\t\t\tSystem.out.println(\"The Results of this command are:\");\n\t\t\tSystem.out.println(\"Sorry but you need to input something before using that command...\");\n\t\t}\n\t\telse if (s.startsWith(\"insertChar\"))\n\t\t{\n\t\t\tinsertChar(s.charAt(s.length() - 1));\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"backspace\"))\n\t\t{\n\t\t\tbackspace();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"delete\"))\n\t\t{\n\t\t\tdelete();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.startsWith(\"search\"))\n\t\t{\n\t\t\tsearch(s.charAt(s.length() - 1));\n\t\t\tprinttest(s);\n\t\t}\n\t\t\n\t\t//ERORR CHECKING\n\t\telse\n\t\t{\n\t\t\t//it is an unaccepted command, doing it this way since we cant pass two strings to printtest\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Now executing the command \" + s + \"...\");\n\t\t\tSystem.out.println(\"The Results of this command are:\");\n\t\t\tSystem.out.println(\"Sorry but this is not valid command...\");\n\t\t}\n\n\t}",
"public static String splitCamelCase(String s) {\n return s.replaceAll(\n String.format(\"%s|%s|%s\",\n \"(?<=[A-Z])(?=[A-Z][a-z])\",\n \"(?<=[^A-Z])(?=[A-Z])\",\n \"(?<=[A-Za-z])(?=[^A-Za-z])\"),\n \" \").replaceAll(\"[-_]\", \"\").replaceAll(\" \", \" \");\n }",
"@Override\n public void handleString(String s) {\n\n }",
"public String prefix(String s) {\n\t\tString tmp = methodBase();\n\t\treturn s+tmp.substring(0,1).toUpperCase()+tmp.substring(1);\n\t}",
"public XMLString toUpperCase() {\n/* 746 */ return new XMLStringDefault(this.m_str.toUpperCase());\n/* */ }",
"public void processInput(String text);",
"private String preprocessName(String original){\n\t\t// Remove non-alphabetical characters from the name\n\t\toriginal = original.replaceAll( \"[^A-Za-z]\", \"\" );\n\t\t\t\t\n\t\t// Convert to uppercase to help us ignore case-sensitivity\n\t\toriginal = original.toUpperCase();\n\t\t\n\t\t// Remove all occurences of the letters outlined in step 3\n\t\toriginal = original.substring(0,1) + original.substring(1).replaceAll(\"[AEIHOUWY]\",\"\");\n\t\t\n\t\t// Return the result\n\t\treturn original;\n\t}",
"public static String upperCase(String s) {\n\t\tString upper= \" \";\n\t\tfor (int i=0; i<s.length(); i++){\n\t\t\tString letter=s.substring(i, i+1);\n\t\t\tif (Constants.LOWER_CASE.indexOf(letter)!=-1){\n\t\t\t\tint indexLetter= Constants.LOWER_CASE.indexOf(letter);\n\t\t\t\tString upperLetter= Constants.UPPER_CASE.substring(indexLetter, indexLetter+1);\n\t\t\t\tupper=upper+upperLetter;\n\t\t\t} else {\n\t\t\t\tupper=upper+letter;\n\t\t\t}\n\t\t}\n\t\treturn upper;\n\n\t}",
"private Vector<String> separateSubs(){\n Vector<String> subs = new Vector<String>();\n StringTokenizer st = new StringTokenizer(masterSubs, \",\");\n\n while(st.hasMoreTokens()){\n subs.add(st.nextToken().toLowerCase());\n }\n\n return subs;\n\t\t\n\t}",
"protected void handleInput(String input) {}",
"public static void main(String[] args) {\n\n\t\t\n\t\tString s =\"Soni Shirwani\";\n\t\t\n\t\tSystem.out.println(s.charAt(3));\n\t\t\n\t\tString s1=\"Soni\",s2=\"Soni\";\n\t\t\n\t\tSystem.out.println(s1.equals(s2));\n\t\t\n\t\tString empty=\"\";\n\t\t\n\t\tSystem.out.println(empty.isEmpty());\n\t\t\n\t\tSystem.out.println(s.length());\n\t\t\n\t\tSystem.out.println(s.replace(\"i\", \"y\"));\n\t\t\n\t\tSystem.out.println(s.substring(5));\n\t\tSystem.out.println(s.substring(3,8));\n\t\t\n\t\tSystem.out.println(s.indexOf('n'));\n\t\t\n\t\tSystem.out.println(s.lastIndexOf('n'));\n\t\t\n\t\tSystem.out.println(s.toUpperCase());\n\t\t\n\t\tSystem.out.println(s.toLowerCase());\n\t\t\n\t\tScanner ss= new Scanner(System.in);\n\t\tString input=ss.nextLine();\n\t\t\n\t\tSystem.out.println(input.trim());\n\t\t\n\t\tfinal String s1f=\"final\";\n\t\tfinal StringBuffer sb1= new StringBuffer(\"asd0\");\n\t\tsb1.append(\"tets\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public String doIt(String s);",
"private static String capitaliseSingleWord(String word) {\n String capitalisedFirstLetter = word.substring(0, 1).toUpperCase();\n String lowercaseRemaining = word.substring(1).toLowerCase();\n return capitalisedFirstLetter + lowercaseRemaining;\n }",
"protected String normalize(String text) {\r\n\t\tString normalized = text.toLowerCase();\r\n\t\treturn normalized;\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tString str= \"Hello Dear Dan, how are you Dan, How you been?\";\n\t\tString str1= \"Honesty, I dont care bro\";\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(str.replace('e', 'z')); // we used .replace and replaced all 'e', to 'z' \n\t\t\n\t\tSystem.out.println(str.replace(\"Dear\", \"Love\")); // we used .replace target, replacement to replace specific words. Here I replaced \"Dear with Love\"\n\t\tSystem.out.println(str.replaceFirst(\"Dan\", \"Sir\")); //This replaces the FIRST Dan, and leaves the rest \n\n\t\tString str2=\"12-22-1990\"; // 12/22/1990\n\t\t\n\t\tSystem.out.println(str2.replace('-', '/'));\n\t\t\n\t\t\n\t\t \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}",
"private static String toStartCase(String words) {\n String[] tokens = words.split(\"\\\\s+\");\n StringBuilder builder = new StringBuilder();\n for (String token : tokens) {\n builder.append(capitaliseSingleWord(token)).append(\" \");\n }\n return builder.toString().stripTrailing();\n }",
"public static String ucase(String s) {\n return xcase(s, Character::toUpperCase);\n }",
"public abstract void split(Space s);",
"public static void main(String[] args) {\n\t\tString str = \"Bangalore is capital of Karnataka where\";\n\t\tString[] words = str.split(\" \");\n\t\tString newString=\"\";\n\t\t\t\n\t\tfor(String word: words) {\n\t\n\t\t\t\tnewString= newString+reverse(word);\n\t\t}\n\t\t\n\t\tSystem.out.println(newString);\n\t}",
"void unsetCapital();",
"String normalizeString(String s) {\n if (s == null) {\n return null;\n } else if (caseInsensitive) {\n return s.toLowerCase(Locale.getDefault());\n } else {\n return s;\n }\n }",
"private static String capitalize(String s) {\n if (s == null || s.length() == 0) {\n return \"\";\n }\n char first = s.charAt(0);\n if (Character.isUpperCase(first)) {\n return s;\n } else {\n return Character.toUpperCase(first) + s.substring(1);\n }\n }",
"public static String splitCamelCase(String s) {\n return s.replaceAll(\n String.format(\"%s|%s|%s\",\n \"(?<=[A-Z])(?=[A-Z][a-z])\",\n \"(?<=[^A-Z])(?=[A-Z])\",\n \"(?<=[A-Za-z])(?=[^A-Za-z])\"\n ),\n \" \"\n );\n }",
"public static void print(BiConsumer<String, String> biConsumer, String str, String str1) {\r\n\t\tstr = str.toUpperCase();\r\n\t\tstr1 = str1.toUpperCase();\r\n\t\t//If You accept then behaviour executes,Otherwise not\r\n\t\tbiConsumer.accept(str, str1);\r\n\t}",
"StemChange(String _old, String _new) {\n\t\tthis(_old, _new, TenseType.PRESENT, (Pronoun[]) null);\n\t}",
"public void remCamelCaseName(){\n ((MvwDefinitionDMO) core).remCamelCaseName();\n }",
"public static String toSentenceCase(String s) {\n if (s != null && !s.isEmpty()) {\n int length = s.length();\n String temp = \"\";\n int position = 0;\n for (int i = 0; i < length; i++) {\n if (s.charAt(i) == '.') {\n temp = temp.concat(s.substring(position, position + 1).toUpperCase() + s.substring(position + 1, i + 1));\n position = i + 1;\n }\n }\n if (position < length)\n temp = temp.concat(s.substring(position, position + 1).toUpperCase() + (position >= length - 1 ? \"\" : s.substring(position + 1)));\n return temp;\n } else\n return \"\";\n }",
"public static void main(String[] args){\r\n String first = \"jin\";\r\n String last = \"jung\";\r\n String ay = \"ay\";\r\n/*\r\n use substring() and toUpperCase methods to reorder and capitalize\r\n*/\r\n\r\n String letFirst = first.substring(0,1);\r\n String capFirst = letFirst.toUpperCase();\r\n String letLast = last.substring(0,1);\r\n String capLast = letLast.toUpperCase();\r\n\r\n String nameInPigLatin = first.substring(1,3) + capFirst + ay + \" \" + last.substring(1,4) + capLast + ay;\r\n\r\n/*\r\n output resultant string to console\r\n*/\r\n\r\n System.out.println(nameInPigLatin);\r\n\r\n }",
"private void strin() {\n\n\t}",
"private static String capitalize(String s) {\n if (s == null || s.length() == 0) {\n return \"\";\n }\n\n char first = s.charAt(0);\n if (Character.isUpperCase(first)) {\n return s;\n } else {\n return Character.toUpperCase(first) + s.substring(1);\n }\n }",
"public static void main(String[] args) {\n\t\tString str1=\"This is the thread that given\";\n\t\tSystem.out.println(\"original String :\\n\" +str1);\n\t\tString str2=\"th\";\n\t\twhile(str1.toLowerCase().contains(str2)) {\n\t\t\tint i1=str1.toLowerCase().indexOf(str2);\n\t\t\tString temp=\"\"+str1.charAt(i1+1)+str1.charAt(i1);\n\t\t\tstr1=str1.replaceAll((str1.substring(i1, i1+2)), temp);\n\t\t}\n\t\tSystem.out.println(\"String after replace HT with TH :\\n\"+str1);\n\t}",
"private String parseMethod() {\n\t\tString[] splitted = command.split(\":\", 2);\n\t\tif (splitted.length == 1) {\n\t\t\treturn splitted[0];\n\t\t} else {\n\t\t\treturn splitted[1] + splitted[0].substring(0, 1).toUpperCase() + splitted[0].substring(1);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tchar a=sc.next().charAt(0);\r\n\t\t\r\n\t\tif(Character.isLowerCase(a))\r\n\t\t{\r\n\t\t\tSystem.out.println(Character.toUpperCase(a));\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(Character.toLowerCase(a));\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) {\n String str = \"welcome to Programr!\";\n\n System.out.println(\"UpperCase: - \"+str.toUpperCase());\n }",
"private static String kebapToUpperCamel(String input) {\n return CaseFormat.LOWER_HYPHEN.to(CaseFormat.UPPER_CAMEL, input);\n }",
"public static void main(String[] args) {\n Function<String, String> func = text -> text.toLowerCase().trim();\n String original = \" WIELKI NAPIS \";\n //wywołujemy funkcję przekazująć jej oryginał jako parametr\n String loweCaseTrim = func.apply(original);\n System.out.println(loweCaseTrim);\n\n }",
"int lower();",
"@Override\n public void write(char[] cbuf, int off, int len) throws IOException {\n for (int i = 0; i < cbuf.length; ++i)\n cbuf[i] = Character.toUpperCase(cbuf[i]);\n \n super.write(cbuf, off, len);\n \n }",
"public static final String javaName(String s, int firstCase, int otherCase,\n\t\t\t\t boolean elideDash, boolean elideDot) {\n String n = \"\";\n int nxcase = firstCase;\n for (int i = 0; i < s.length(); ++i) {\n char c = s.charAt(i);\n if (elideDash && c == '-') \t\t{ nxcase = 1; continue; }\n else if (elideDot && c == '.') \t\t{ nxcase = 1; continue; }\n else if (!Character.isLetterOrDigit(c)) \tn += '_';\n else if (nxcase < 0) \t\t\tn += Character.toLowerCase(c);\n else if (nxcase > 0) \t\t\tn += Character.toUpperCase(c);\n else \t\t\t\t\tn += c;\n nxcase = otherCase;\n }\n return n;\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"public static void main(String[] args) {\n\t\tString fname=\"shahin\",lname=\"Shahin \",fullname=fname+lname;\r\n\t\tString name=\"I live in india\";\r\n\t\tSystem.out.println(\"fname equals lname is \"+fname.equals(lname));\r\n\t\tSystem.out.println(\"fname equals lname is \"+fname.equalsIgnoreCase(lname));\r\n\t\tSystem.out.println(\"fname starts with \"+ \"'shah is'\"+fname.startsWith(\"shah\"));\r\n\t\tSystem.out.println(\"fname ends with \"+ \"'in is'\"+fname.endsWith(\"in\"));\r\n\t\tSystem.out.println(\"fname upper \"+ fname.toUpperCase());\r\n\t\tSystem.out.println(\"lname lower \"+ lname.toLowerCase());\r\n\t\tSystem.out.println(\"lname substring\"+ lname.substring(2));\r\n\t\tSystem.out.println(\"lname substring length\"+ lname.substring(2,3));\r\n\t\tSystem.out.println(\"Trim is \"+ lname.trim());\r\n\t\tSystem.out.println(\"fname equals lname is \"+fname.replace(\"a\", \"b\"));\r\n\t\tSystem.out.println(\"split \"+name.split(\" \")[2]);\r\n\t}",
"public static void main(String[] args) {\n /*camelCase(\"Bill is,\\n\" +\n \"in my opinion,\\n\" +\n \"an easier name to spell than William.\\n\" +\n \"Bill is shorter,\\n\" +\n \"and Bill is\\n\" +\n \"first alphabetically.\");*/\n\n String str = \"Bill is,\\n\" +\n \"in my opinion,\\n\" +\n \"an easier name to spell than William.\\n\" +\n \"Bill is shorter,\\n\" +\n \"and Bill is\\n\" +\n \"first alphabetically.\";\n convertToCamelCase(str,str.toCharArray());\n\n String value = \"BillIs,\\n\" +\n \"InMyOpinion,\\n\" +\n \"AnEasierNameToSpellThanWilliam.\\n\" +\n \"BillIsShorter,\\n\" +\n \"AndBillIsFirstAlphabetically.\";\n\n //reverseCamelCase(value,value.toCharArray());\n\n /* Set<Integer> set = new LinkedHashSet<Integer>(\n Arrays.asList(1,2,3,4,5,6));\n\n ArrayList<List<List<Integer>>> results =\n new ArrayList<List<List<Integer>>>();\n compute(set, new ArrayList<List<Integer>>(), results);\n for (List<List<Integer>> result : results)\n {\n System.out.println(result);\n }*/\n\n /*reverseCamelCase(\"BillIsOk\\n\" +\n \"ThisIsGood.\");*/\n\n //System.out.println(\"abc \\r\\n test\");\n\n //permutation(\"abc\");\n\n /*String[] database = {\"a\",\"b\",\"c\"};\n for(int i=1; i<=database.length; i++){\n String[] result = getAllLists(database, i);\n for(int j=0; j<result.length; j++){\n System.out.println(result[j]);\n }\n }*/\n\n /*char[] database = {'a', 'b', 'c'};\n char[] buff = new char[database.length];\n int k = database.length;\n for(int i=1;i<=k;i++) {\n permGen(database,0,i,buff);\n }*/\n\n\n\n }",
"public static void main(String[] args) {\n\t\tString str=\"HowAreYouBros\";\r\n\t\tSystem.out.println(\"length of string=\"+str.length());\r\n\t\tSystem.out.println(\"**************\");\r\n\t\tfor(int i=0;i<str.length();i++)\r\n\t\t{\r\n\t\t\tchar c=str.charAt(i);\r\n\t\t\tSystem.out.println(Character.isUpperCase(c));\r\n\t\t\tSystem.out.println(\"Charater at index \"+i+\" is \"+str.charAt(i));\r\n\t\t}\r\n\t\tSystem.out.println(\"*************\");\r\n\t\t//CompareTo() operation\r\n\t\t\r\n\t\tSystem.out.println(\"abc\".compareTo(\"ABC\"));\r\n\t\tSystem.out.println(\"abc\".compareTo(\"pqr\"));\r\n\t\tSystem.out.println(\"pqr\".compareTo(\"abc\"));\r\n\t\tSystem.out.println(\"abc\".compareTo(\"abc\"));\r\n\t\t\r\n\t\t//Concat()\r\n\t\tSystem.out.println(\"abc\".concat(\"pqr\"));\r\n\t\t\r\n\t\t//containtEquals()\r\n\t\tSystem.out.println(\"*************\");\r\n\t\tSystem.out.println(\"abc\".contentEquals(new StringBuffer(\"abc\")));\r\n\t\tSystem.out.println(\"abc\".contentEquals(new StringBuffer(\"abc \")));\r\n\t\tSystem.out.println(\"abc\".contentEquals(new StringBuffer(\"ABC\")));\r\n\t\t\r\n\t\t//copyValueOf()\r\n\t\tchar[] chr={'h','e','l','l','o',' ','w','o','r','l','d'};\r\n\t\tSystem.out.println(\"\".copyValueOf(chr));\r\n\t\tSystem.out.println(\"\".copyValueOf(chr,2,5));\r\n\t\t\r\n\t\t//indexOf\r\n\t\tSystem.out.println(\"****************\");\r\n\t\tSystem.out.println(\"abc\".indexOf(\"b\"));\r\n\t\tSystem.out.println(\"abcabc\".indexOf(\"a\",1));\r\n\t\tSystem.out.println(\"abcabc\".indexOf(\"abc\",1));\r\n\t\t\r\n\t\t//replace\r\n\t\tSystem.out.println(\"****************\");\r\n\t\tSystem.out.println(\"abcabc\".replace(\"a\",\"e\"));\r\n\t\tSystem.out.println(\"abc\".replaceAll(\"[a-z]\",\"[A-Z]\"));\r\n\t\t\r\n\t\t//join list content to form string\r\n\t\tSystem.out.println(\"****************\");\r\n\t\tList<String> list=Arrays.asList(\"This\",\"is\", \"a\", \"List\");\r\n\t\tSystem.out.println(String.join(\" \", list));\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\tString s1=\"Sachin\"; \n\t\t String s2=\"Sachin\"; \n\t\t String s3=new String(\"Sachin\"); \n\t\t String s4=\"Saurav\"; \n\t\t String s5=\"SACHIN\";\n\t\t \n\t\t // System.out.println(s1.equalsIgnoreCase(s5));\n\t\t \n\tString s6=s1.substring(2,5);\n\tBoolean s8=s1.endsWith(\"chin\");\n\tchar s7=s1.charAt(2);\n\t\n\t//System.out.println(s8);\n\t\n\t\n\tString s9=\"Puja Kumari\";\n\t\n\tchar c[] =s9.toCharArray();\n\t\n\tSystem.out.println(c[10]);\n\t\n\n\t}"
] | [
"0.60298026",
"0.5849163",
"0.5835364",
"0.56800544",
"0.56738573",
"0.5659604",
"0.5631036",
"0.547665",
"0.54618776",
"0.54474455",
"0.54403496",
"0.5412",
"0.5376158",
"0.5298793",
"0.5298751",
"0.52641803",
"0.5260725",
"0.5257722",
"0.5251756",
"0.52517533",
"0.525166",
"0.5249683",
"0.52290696",
"0.52277154",
"0.52225745",
"0.5216365",
"0.52124447",
"0.5192379",
"0.5191324",
"0.51902956",
"0.5187835",
"0.5182715",
"0.5148906",
"0.51447386",
"0.5135021",
"0.5132642",
"0.51263785",
"0.51263356",
"0.50948185",
"0.5094109",
"0.50863117",
"0.508051",
"0.5079392",
"0.50788164",
"0.50755906",
"0.50710446",
"0.50593984",
"0.50569427",
"0.5055946",
"0.5043618",
"0.50414073",
"0.5039087",
"0.5038825",
"0.50247914",
"0.50208545",
"0.5017841",
"0.50148994",
"0.5005375",
"0.49955255",
"0.49835834",
"0.4983468",
"0.49771318",
"0.49662378",
"0.49380353",
"0.49335212",
"0.4933177",
"0.49323162",
"0.49276337",
"0.49249998",
"0.49186808",
"0.49180675",
"0.49076784",
"0.49056643",
"0.49010238",
"0.48965624",
"0.488694",
"0.4886526",
"0.48816898",
"0.4881077",
"0.48765224",
"0.4867084",
"0.48625693",
"0.4853584",
"0.4852542",
"0.4851827",
"0.4851623",
"0.4851372",
"0.48506963",
"0.48497015",
"0.48481506",
"0.48471585",
"0.4842145",
"0.4841683",
"0.48414305",
"0.48348674",
"0.4833988",
"0.4829878",
"0.4826552",
"0.48258913",
"0.4825852",
"0.4825075"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.